/* ============================================================
   Pages — header, hero, watch layout, video player,
   bottom nav, footer, list pages, categories, responsive.
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(4, 4, 6, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-5);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  font-size: var(--fs-lg);
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #050505;
  display: grid; place-items: center;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { line-height: 1; }

.nav { display: flex; gap: var(--sp-1); }
.nav__link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}
.nav__link:hover { color: var(--accent); background: rgba(255, 255, 255, 0.02); }
.nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.04); }

.header-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--sp-2);
}
.menu-btn { display: none; }

/* ---------- Mobile drawer ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: var(--z-overlay); visibility: hidden; }
.mobile-nav[data-open="true"] { visibility: visible; }
.mobile-nav__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.7);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.mobile-nav[data-open="true"] .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(300px, 84vw);
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: var(--sp-6);
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease-out);
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.mobile-nav[data-open="true"] .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__link {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: var(--sp-3);
}
.mobile-nav__link:hover { background: var(--card-2); }
.mobile-nav__link.is-active { background: var(--accent-soft); }
.mobile-nav__link svg { width: 18px; height: 18px; }
.mobile-nav__close { align-self: flex-end; margin-bottom: var(--sp-2); }

.mobile-profile-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.mobile-profile-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid var(--border-strong);
}
.mobile-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mobile-profile-name { font-size: var(--fs-md); font-weight: 700; color: var(--text); }
.mobile-profile-email { font-size: var(--fs-xs); color: var(--text-muted); }
.mobile-nav-links { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
.mobile-drawer-footer {
  margin-top: auto; font-size: 11px; color: var(--text-faint);
  text-align: center; padding-top: var(--sp-4);
  border-top: 1px solid var(--border-faint);
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(30px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 12vh;
  animation: fade-in var(--dur) var(--ease);
}
.search-overlay__box { width: min(640px, 92vw); }
.search-field {
  display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: all var(--dur) var(--ease);
}
.search-field:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 32px rgba(83, 252, 24, 0.06), var(--ring);
}
.search-field svg { width: 22px; height: 22px; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.search-field:focus-within svg { color: var(--accent); }
.search-field input {
  flex: 1; background: none; border: none; outline: none;
  font-size: var(--fs-lg); color: var(--text);
  font-weight: 600;
}
.search-field input::placeholder { color: var(--text-faint); }
.search-hint { margin-top: var(--sp-3); color: var(--text-faint); font-size: var(--fs-xs); align-self: center; }
.search-hint kbd {
  padding: 2px 6px; border: 1px solid var(--border);
  font-family: var(--font-mono); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}
.search-results {
  width: min(640px, 92vw); margin-top: var(--sp-5);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: var(--sp-3);
  max-height: 55vh; overflow-y: auto;
}

/* ---------- Header Search Bar ---------- */
.header-search-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  width: 320px;
  margin-left: auto;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.header-search-bar:hover {
  border-color: rgba(83, 252, 24, 0.25);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(83, 252, 24, 0.03);
}
.header-search-bar svg { width: 16px; height: 16px; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.header-search-bar:hover svg { color: var(--accent); }
.header-search-bar input {
  background: transparent; border: none; outline: none;
  font-size: var(--fs-xs); color: var(--text);
  width: 100%; pointer-events: none;
}
.header-search-bar input::placeholder { color: var(--text-faint); }
.header-search-shortcut {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-faint); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px;
}

/* User Avatar & Notifications */
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid var(--border-strong); cursor: pointer;
  transition: border-color var(--dur) var(--ease); margin-left: var(--sp-2);
}
.user-avatar:hover { border-color: var(--accent); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notification-badge {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-faint);
  background: var(--bg-elev-1);
  margin-top: var(--sp-9);
}
.site-footer__inner {
  padding-block: var(--sp-7);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--sp-5);
}
.footer-col h4 {
  font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: var(--tracking-mono); color: var(--text-faint);
  margin-bottom: var(--sp-4); font-weight: 600;
}
.footer-col a {
  display: block; color: var(--text-muted);
  padding: var(--sp-1) 0; font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--text); }
.site-footer__bottom {
  border-top: 1px solid var(--border-faint);
  padding-block: var(--sp-5);
  text-align: center; color: var(--text-faint); font-size: var(--fs-xs);
}

/* ---------- Hero Banner (Redesigned Single featured match) ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-block: var(--sp-2) var(--sp-5);
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-6) var(--sp-7);
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.hero-banner__badge-row {
  margin-bottom: 2px;
}
.hero-banner__league {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono);
}
.hero-banner__title {
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.hero-banner__vs {
  font-size: var(--fs-md);
  color: var(--text-faint);
  font-weight: 500;
}
.hero-banner__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-banner__cta {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

/* ---------- Home News Layout ---------- */
.home-news-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.home-news-left {
  min-width: 0;
}
.home-news-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
}

@media (max-width: 768px) {
  .hero-banner {
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
  .hero-banner__content {
    padding: var(--sp-4) var(--sp-5);
  }
  .hero-banner__title {
    font-size: var(--fs-lg);
  }
  .home-news-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Watch layout ---------- */
.watch-layout {
  --bg: #050505;
  --card: #0F172A;
  --card-2: #1E293B;
  --border: #334155;
  --border-strong: #475569;
  --accent: #00c896; /* Green Accent */
  --accent-glow: rgba(0, 200, 150, 0.15);
  
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-block: var(--sp-4);
  color: #fff;
}

/* 1. Match Header */
.match-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: flex-start;
  padding-bottom: var(--sp-1);
}
.match-header__league {
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono);
}
.match-header__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #fff;
  margin: 0;
}

/* 2. Responsive Video Player Container */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.video-container iframe,
.video-container video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
  object-fit: cover;
  z-index: 1;
}

/* LIVE NOW badge in top-left */
.player__live-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  pointer-events: none;
}
.live-dot-pulsar {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: live-pulse-glow 1.5s infinite;
}
@keyframes live-pulse-glow {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.7); }
  70% { transform: scale(1.1); opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 200, 150, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 200, 150, 0); }
}

/* 3. Player Elements & Custom Overlay */
.player {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

/* Custom Bottom Control Bar */
.player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  width: 100%;
  gap: var(--sp-4);
}
.player:hover .player__controls,
.player.paused .player__controls,
.player:focus-within .player__controls {
  opacity: 1;
  transform: translateY(0);
}
.player__controls-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.player__controls-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.player__live-indicator {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono);
}
.player__time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Button Design */
.player__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: #1f2937;
  border: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.player__btn:hover {
  background: #00c896;
  color: #fff;
}
.player__btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

/* Volume control range */
.player__volume {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.player__volume input[type="range"] {
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  appearance: none;
  outline: none;
  cursor: pointer;
}
.player__volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: background var(--dur) var(--ease);
}
.player__volume input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--accent);
}

/* Native/HLS player progress bar style */
.player__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
}
.player__progress .fill {
  height: 100%;
  background: var(--accent);
  width: 0;
}
.player__progress .buffer {
  height: 100%;
  background: rgba(255,255,255,0.15);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
}
.player__progress .thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.player__controls:hover .player__progress .thumb {
  opacity: 1;
}

/* 4. Related Matches */
.related-section {
  margin-top: var(--sp-4);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

/* Theater Mode overrides */
body.watch-theater .watch-layout {
  max-width: 100% !important;
  padding-inline: 0 !important;
}
body.watch-theater .video-wrapper {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
}
body.watch-theater .video-container {
  aspect-ratio: 21 / 9;
}
body.watch-theater .match-header,
body.watch-theater .related-section {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--sp-5);
}
@media (max-width: 768px) {
  body.watch-theater .match-header,
  body.watch-theater .related-section {
    padding-inline: var(--sp-4) !important;
  }
}

/* Iframe overrides to hide overlays */
.player[data-player-type="iframe"] .player__overlay {
  pointer-events: none;
}
.player[data-player-type="iframe"] .player__controls {
  display: none !important;
}
.player[data-player-type="iframe"] .player__bigplay {
  display: none !important;
}

.player__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.player__topbar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.player__title { color: #fff; font-weight: 600; font-size: var(--fs-sm); }

.player__controls {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  pointer-events: auto;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.player:hover .player__topbar,
.player:hover .player__controls,
.player.paused .player__controls,
.player.paused .player__topbar,
.player:focus-within .player__controls { opacity: 1; }

.player__progress {
  flex: 1; position: relative; height: 16px; display: flex; align-items: center;
  cursor: pointer;
}
.player__progress .track {
  position: absolute; inset: 50% 0 auto; transform: translateY(-50%);
  height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,.2);
  width: 100%;
}
.player__progress .buffer {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,.4);
}
.player__progress .fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: var(--radius-pill); background: var(--accent);
}
.player__progress .thumb {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.player__progress:hover .thumb { opacity: 1; }

.player__btn {
  color: #fff;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease);
}
.player__btn:hover { background: rgba(255,255,255,.14); }
.player__btn svg { width: 20px; height: 20px; }
.player__time { color: #fff; font-size: var(--fs-xs); font-family: var(--font-mono); min-width: 96px; }
.player__spacer { flex: 1; }

.player__volume { display: flex; align-items: center; gap: var(--sp-2); }
.player__volume input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 80px; height: 4px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.3); cursor: pointer;
}
.player__volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff;
}

/* settings/quality dropdown */
.menu { position: relative; }
.menu__list {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  min-width: 160px;
  display: none;
}
.menu[data-open="true"] .menu__list { display: block; }
.menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: var(--fs-sm); width: 100%; text-align: left;
  font-family: var(--font-mono); letter-spacing: var(--tracking-mono);
}
.menu__item:hover { background: var(--card-2); }
.menu__item.is-active { color: var(--accent); }
.menu__item.is-active::after { content: "✓"; }

/* player states (loading / error) */
.player__state {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.6); text-align: center; padding: var(--sp-5);
  pointer-events: auto;
}
.player__state-inner { max-width: 420px; }
.player__state .spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent);
  animation: spin .9s linear infinite; margin: 0 auto var(--sp-4);
}
@keyframes spin { to { transform: rotate(360deg); } }
.player__state h3 { color: #fff; margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.player__state p { color: var(--text-muted); font-size: var(--fs-sm); }
.player__state .btn { margin-top: var(--sp-4); }
.player[data-status="playing"] .player__state { display: none; }

/* center big play */
.player__bigplay {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; opacity: 0; transition: opacity var(--dur) var(--ease);
}
.player.paused:not([data-status="error"]):not([data-status="loading"]) .player__bigplay { opacity: 1; }
.player__bigplay span {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
}
.player__bigplay svg { width: 32px; height: 32px; color: #fff; margin-left: 3px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border-faint);
  height: var(--bottomnav-h);
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-faint); font-size: 10px; font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
  transition: color var(--dur) var(--ease);
}
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item.is-active { color: var(--text); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh; display: grid; place-items: center; text-align: center;
}
.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 16vw, 160px);
  font-weight: 700; color: var(--text); line-height: 1;
  letter-spacing: -.04em;
}
.notfound__title { font-size: var(--fs-xl); margin: var(--sp-3) 0; }
.notfound__msg { color: var(--text-muted); margin-bottom: var(--sp-5); max-width: 42ch; margin-inline: auto; }

/* ---------- List page layout (live / upcoming) ---------- */
.list-page-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-4);
}
.list-page-head .section-title { margin-bottom: 0; }

.list-filters {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.filter-btn--pill { border-radius: var(--radius-pill); }

.list-layout {
  display: block;
}

.list-empty {
  text-align: center; padding: var(--sp-8) 0; color: var(--text-muted);
}
.list-empty__title { font-size: var(--fs-lg); font-weight: 700; color: #fff; margin-bottom: var(--sp-2); }
.list-empty__sub { font-size: var(--fs-sm); }

/* top-leagues sidebar "view all" link */
.top-leagues-all {
  display: block; text-align: center; font-size: var(--fs-xs);
  font-weight: 700; color: var(--accent); margin-top: var(--sp-5);
  text-transform: uppercase; letter-spacing: var(--tracking-mono);
}

/* ---------- Match Row List Item (Live/Upcoming Pages) ---------- */
.match-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.match-row:hover {
  border-color: rgba(83, 252, 24, 0.35);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(83, 252, 24, 0.04);
}
.match-row__team { display: flex; align-items: center; gap: var(--sp-3); flex: 1; }
.match-row__team.home { justify-content: flex-end; text-align: right; }
.match-row__team.away { justify-content: flex-start; text-align: left; }
.match-row__team-name { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.match-row__vs {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--text-faint); font-weight: 700;
  padding-inline: var(--sp-4); text-align: center;
}
.match-row__status { width: 90px; display: flex; justify-content: center; }
.match-row__action { width: 40px; display: flex; justify-content: flex-end; }
.match-row__time { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); width: 70px; }
.chevron-btn {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--card-2); color: var(--text-muted);
  border: 1px solid var(--border); transition: all var(--dur) var(--ease);
}
.chevron-btn svg { width: 14px; height: 14px; }
.match-row:hover .chevron-btn {
  background: var(--accent); color: #050505; border-color: var(--accent);
}

/* More Live Matches bottom layout overrides */
.match-card__league-bottom {
  font-size: 11px; font-family: var(--font-mono);
  color: var(--text-muted); text-transform: uppercase;
}
.match-card__watch-pill {
  font-size: 11px; padding: 4px 10px; font-weight: 800;
  border-radius: var(--radius-sm);
}

/* ---------- Categories / Leagues Grid ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.category-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  min-height: 160px;
}
.category-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(83, 252, 24, 0.08);
}
.category-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.category-card__icon {
  font-size: 32px; margin-bottom: var(--sp-3);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--card-2); display: grid; place-items: center;
  border: 1px solid var(--border-strong); transition: all var(--dur) var(--ease);
}
.category-card:hover .category-card__icon { background: var(--bg); border-color: var(--accent); }
.category-card.is-active .category-card__icon {
  background: var(--accent); color: #050505; border-color: var(--accent);
}
.category-card__name { font-weight: 700; font-size: var(--fs-sm); color: var(--text); }

/* ---------- Stream Server Sidebar List Rows ---------- */
.servers-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.server-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  width: auto;
  text-align: left;
  color: var(--text-muted);
}
.server-row:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  color: var(--text);
}
.server-row.is-active {
  border-color: var(--accent);
  background: rgba(83, 252, 24, 0.08);
  color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.server-row .signal {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  color: var(--text-faint);
  margin-left: var(--sp-2);
}
.server-row.is-active .signal {
  color: var(--accent);
}
.server-row .signal i {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
}
.server-row .signal i:nth-child(1) { height: 4px; }
.server-row .signal i:nth-child(2) { height: 7px; }
.server-row .signal i:nth-child(3) { height: 10px; }
.server-row .signal i:nth-child(4) { height: 13px; }

/* ---------- Responsive ---------- */

/* ============================================================
   New page layouts: News, Teams, Leagues, Dashboard, Match Center
   ============================================================ */

/* ---------- News page layout ---------- */
.news-layout { display: flex; flex-direction: column; gap: var(--sp-6); }
.news-featured { margin-bottom: var(--sp-2); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--sp-4);
}

/* ---------- Teams page layout ---------- */
.teams-layout { display: flex; flex-direction: column; gap: var(--sp-5); }
.teams-search {
  display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  transition: all var(--dur) var(--ease);
  max-width: 480px;
}
.teams-search:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 32px rgba(83, 252, 24, 0.06), var(--ring);
}
.teams-search svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.teams-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: var(--fs-sm); color: var(--text); font-weight: 500;
}
.teams-search input::placeholder { color: var(--text-faint); }
.teams-filters {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-4); flex-wrap: wrap;
}
.teams-sort {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-muted); font-size: var(--fs-xs); font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
}
.teams-sort select {
  background: none; border: none; outline: none;
  color: var(--text-muted); font-size: var(--fs-xs);
  font-family: var(--font-mono); cursor: pointer;
  appearance: none;
}
.teams-sort select:focus { color: var(--text); }
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}

/* ---------- Leagues page layout ---------- */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

/* ---------- Dashboard page layout ---------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.dashboard-main {
  display: flex; flex-direction: column; gap: var(--sp-5);
  min-width: 0;
}
.dashboard-welcome {
  padding: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.dashboard-welcome__title {
  font-size: var(--fs-xl); font-weight: 800; color: var(--text);
  margin-bottom: var(--sp-1);
}
.dashboard-welcome__sub {
  font-size: var(--fs-sm); color: var(--text-muted);
}

/* ---------- Match Center layout ---------- */
.match-center-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.match-center__header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
}
.match-center__teams {
  display: flex; align-items: center; gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.match-center__team {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  flex: 1;
}
.match-center__team-name {
  font-weight: 700; font-size: var(--fs-sm); color: var(--text);
}
.match-center__score-area {
  font-family: var(--font-mono);
  font-size: var(--fs-xl); font-weight: 800;
  color: var(--accent);
  padding: 0 var(--sp-3);
}
.match-center__meta {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.match-center__meta-row {
  display: flex; justify-content: space-between;
  font-size: var(--fs-xs);
}
.match-center__meta-label {
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}
.match-center__meta-value {
  color: var(--text-muted); font-weight: 600;
}

/* Timeline */
.match-center__timeline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.match-center__timeline-title {
  font-size: var(--fs-md); font-weight: 700; color: var(--text);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.timeline-events {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.timeline-events::before {
  content: "";
  position: absolute;
  left: 28px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-event {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-3) 0;
  position: relative;
}
.timeline-event__minute {
  width: 56px; flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-faint);
  text-align: right;
  padding-top: 2px;
}
.timeline-event__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border);
}
.timeline-event--goal .timeline-event__icon {
  background: rgba(83, 252, 24, 0.15);
  border-color: rgba(83, 252, 24, 0.4);
  color: var(--accent);
}
.timeline-event--yellow_card .timeline-event__icon {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}
.timeline-event--red_card .timeline-event__icon {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}
.timeline-event--substitution .timeline-event__icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.timeline-event__detail {
  flex: 1; min-width: 0;
}
.timeline-event__player {
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.timeline-event__team {
  font-size: 11px; color: var(--text-faint); margin-top: 2px;
}
.timeline-event__extra {
  font-size: 11px; color: var(--text-faint); margin-top: 2px;
}

/* Match center sidebar */
.match-center__sidebar {
  display: flex; flex-direction: column; gap: var(--sp-4);
}

/* Match center not-found state */
.match-center-notfound {
  text-align: center; padding: var(--sp-9) var(--sp-4);
}
.match-center-notfound__title {
  font-size: var(--fs-xl); font-weight: 700; color: var(--text);
  margin-bottom: var(--sp-2);
}
.match-center-notfound__msg {
  font-size: var(--fs-sm); color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

/* ---------- Responsive (new pages) ---------- */
@media (max-width: 1024px) {
  .watch-content-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .list-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-search-bar { display: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .hero__media { aspect-ratio: 16 / 10; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .match-center-layout { grid-template-columns: 1fr; }
  .match-center__sidebar { display: none; }
  .teams-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .page { padding-bottom: calc(var(--sp-8) + var(--bottomnav-h)); }
  .toast-region { bottom: calc(var(--bottomnav-h) + var(--sp-4)); }
  .match-grid { grid-template-columns: 1fr; }
  .player__time { display: none; }
  .player__volume input[type="range"] { width: 56px; }
  .section-title { font-size: var(--fs-lg); }
  .mobile-search-btn { display: block !important; }
  .match-row { flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-4); }
  .match-row__team.home { order: 1; flex-basis: 40%; }
  .match-row__vs { order: 2; padding-inline: var(--sp-1); }
  .match-row__team.away { order: 3; flex-basis: 40%; }
  .match-row__status { order: 4; flex-basis: calc(100% - 40px); justify-content: flex-start; margin-top: var(--sp-2); }
  .match-row__action { order: 5; width: 30px; margin-top: var(--sp-2); }
  .watch-layout { padding-inline: 0 !important; }
  .player-wrapper { border-radius: 0; border-left: none; border-right: none; }
  .match-header,
  .watch-content-grid,
  .related-section { padding-inline: var(--sp-4) !important; }
  .match-header__main { flex-direction: column; gap: var(--sp-4); }
  .match-header__team { flex-direction: column; align-items: center; text-align: center; }
  .match-header__team.home { justify-content: center; }
  .match-header__team.away { justify-content: center; }
  .news-grid { grid-template-columns: 1fr; }
  .featured-card__thumb { aspect-ratio: 16 / 9; }
  .featured-card__title { font-size: var(--fs-lg); }
  .teams-grid { grid-template-columns: 1fr; }
  .teams-search { max-width: 100%; }
  .leagues-grid { grid-template-columns: 1fr 1fr; }
  .match-center__teams { flex-direction: column; gap: var(--sp-3); }
  .match-center__score-area { font-size: var(--fs-lg); }
}

@media (max-width: 520px) {
  .container { padding-inline: var(--sp-4); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero__content { padding: var(--sp-6) var(--sp-4); }
  .watch-title { font-size: var(--fs-lg); }
  .servers-list { width: 100%; }
  .server-pill { flex: 1; justify-content: center; }
  .leagues-grid { grid-template-columns: 1fr; }
  .teams-filters { flex-direction: column; align-items: flex-start; }
  .dashboard-welcome__title { font-size: var(--fs-lg); }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr !important;
  }
}
