/* dev2.bagol.tv — YouTube/Blibli inspired sports streaming
   Dark mode, thumbnail-grid dominant, image-first */

:root {
  /* dark broadcast palette — slight cool temperature (DAZN/Apple TV Sports feel)
   *  220° hue family keeps the page from looking like a Chromebook admin shell. */
  --bg:           hsl(220 10% 6%);    /* ~#0e0f12 */
  --bg-elev1:     hsl(220 8% 11%);    /* ~#1a1c1f */
  --bg-elev2:     hsl(220 7% 15%);    /* ~#23262a */
  --bg-elev3:     hsl(220 6% 19%);    /* ~#2d3036 */
  --bg-hover:     rgba(220,228,255,0.06);

  --border:       rgba(200,215,255,0.07);
  --border-hover: rgba(200,215,255,0.16);

  --text:         #f5f5f5;
  --text-0:       #ffffff;   /* primary headings, scores (brightest) */
  --text-1:       #e5e7eb;   /* body text, slightly softer than --text-0 */
  --text-2:       #b3b3b3;
  --text-3:       #8a8a8a;

  /* ── ACCENT (warm amber) — single source. Use --primary for solid CTAs,
   *     --primary-soft for tinted backgrounds (active filter chips),
   *     --primary-ring for outlined borders. NO competing yellow tones. */
  --primary:      #fbbf24;
  --primary-hover:#facc15;
  --primary-ink:  #0f0f0f;
  --primary-soft: rgba(251,191,36,0.14);
  --primary-ring: rgba(251,191,36,0.40);
  --brand-1:      #f59e0b;   /* deeper amber — hover/active secondary accent (day-picker active pill, league head stripe) */

  /* ── LIVE (broadcast crimson) — reserved for live-stream indicators only.
   *     Shifted +8°, lower saturation than #ef4444 (which reads as Bootstrap
   *     "danger"). Matches ESPN+/DAZN broadcast crimson. */
  --live:         #e11d2e;
  --live-soft:    rgba(225,29,46,0.15);
  --live-glow:    rgba(225,29,46,0.5);
  --danger:       #ef4444;   /* form errors keep the bright bug-red */

  /* ── Per-sport accent — soccer-only post-2026-05-14 pipeline disablement. */
  --sport-bola:       #22c55e;   /* green pitch — used on /bola hero accent */

  --success:      #10b981;

  /* Soccer thumbnail tint — fallback when fixture has no R2 thumbnail. */
  --thumb-soccer:    linear-gradient(160deg, #14281f 0%, #0a1612 100%);

  --header-h: 56px;
  --sidebar-w: 240px;
  --sidebar-w-mini: 72px;

  /* ── Radius scale (8-step adjacent): 6/10/14/pill — used EVERYWHERE.
   * --r-sm  = chips, pills, league badges
   * --r-md  = cards (default)
   * --r-lg  = featured/hero blocks, larger cards
   * --r-pill = fully-rounded buttons + filter chips */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* ── Spacing scale (8-step base): 4/8/12/16/24/32/48
   * Use these as section margins + grid gaps + card padding for visual rhythm. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Block horizontal scroll bleed WITHOUT breaking position:sticky.
   `overflow-x: clip` does not create a new scroll container, so sticky still works.
   Falls back to `hidden` on browsers that don't support clip yet. */
html {
  overflow-x: clip;
  max-width: 100%;
}
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 100;
}
.header__left {
  display: flex; align-items: center; gap: 12px;
  width: var(--sidebar-w);
}
.header__burger {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--text);
  transition: background 0.15s;
}
.header__burger:hover { background: var(--bg-hover); }

.brand {
  display: flex; align-items: center; gap: 8px;
}
.brand__mark {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--primary-ink);
  flex-shrink: 0;
}
.brand__mark svg {
  width: 20px; height: 20px;
  display: block;
}
.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__name b {
  color: var(--primary);
  font-weight: 800;
}

.header__center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.search {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 460px;
  height: 40px;
}
.search input {
  flex: 1;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0 16px 0 42px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:hover { border-color: var(--border-hover); }
.search input:focus {
  border-color: var(--primary);
  background: var(--bg-elev2);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search button {
  position: absolute;
  top: 50%; left: 4px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--text-3);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color 0.15s;
}
.search button:hover { color: var(--text); background: transparent; }

.header__right {
  display: flex; align-items: center; gap: 8px;
  width: 200px;
  justify-content: flex-end;
  margin-left: auto;  /* 2026-05-18 fix: search-shell was removed → no spacer left,
                         tombol Masuk/Daftar gluing ke kiri. margin-left:auto restores
                         right-edge alignment without re-introducing decorative search. */
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  font-size: 18px;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn.has-dot::after {
  content: ""; position: absolute;
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  margin-left: 14px; margin-top: -14px;
}
/* F3: Mobile search icon (hidden on desktop, visible <1024px).
   Default = hidden; @media (max-width:1024px) below flips to display: grid.
   MUST come AFTER .icon-btn (which also sets display: grid via same-specificity
   selector) so this rule wins on desktop. */
.header__search-icon { display: none; }
/* Auth pair — Masuk (outline) + Daftar (solid). Equal weight, paired set. */
.btn-signin {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
}
.btn-signin:hover { background: var(--bg-hover); border-color: var(--text-2); }
/* "Halo, {name}" pill — clip long nicknames so the header doesn't blow up. */
.btn-signin--user {
  cursor: default;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-register {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s;
}
.btn-register:hover { background: var(--primary-hover); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--header-h));
  /* Grid items default to min-width:auto which lets content expand the
     track. Force min-width:0 on children so grid honors 1fr exactly
     and prevents horizontal overflow from inner long-content elements. */
  min-width: 0;
}
.app > * { min-width: 0; }
.main { min-width: 0; }

/* ============================================================
   SIDEBAR — YouTube-ish nav
   ============================================================ */
.sidebar {
  background: var(--bg);
  padding: 12px 0;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; }
.sidebar:hover::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

/* Sidebar account section — only rendered on mobile (hamburger menu).
   Desktop puts logout in the header instead. */
.sb-section--mobile-only { display: none; }

.sb-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sb-section:last-child { border-bottom: 0; }
.sb-section__title {
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.sb-link {
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  height: 40px;
  border-radius: 0 999px 999px 0;
  margin-right: 12px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.sb-link:hover { background: var(--bg-hover); }
/* Active state — accent rail at the left edge instead of full-pill fill.
   Less visual mass than a bright pill, keeps the page focal on cards. */
.sb-link.active {
  background: var(--primary-soft);
  font-weight: 600;
  color: var(--text-0);
}
.sb-link.active::before {
  content: ""; position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 2px 2px 0;
  background: var(--primary);
}
.sb-link__icon {
  width: 24px;
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--text);
}
.sb-link__label { flex: 1; }
.sb-link__count {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-elev2);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 500;
}
.sb-link.active .sb-link__count {
  background: var(--live);
  color: #fff;
}
.sb-link__live-dot {
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--live);
  animation: pulse 1.5s infinite;
}
/* F4: @keyframes pulse duplicate removed here — single definition lives
   later in this file (floor 0.25, "cinematic breathing" intent). */

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  padding: 24px;
}

/* Filter chip row (Blibli/YouTube-style horizontal scroll) */
.chips-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap;
  padding: 8px 14px;
  background: var(--bg-elev2);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { background: var(--bg-elev3); border-color: var(--border-hover); }
/* Active filter chip — tinted accent, NOT solid yellow. Solid yellow is
 * reserved for the "Daftar" CTA. This keeps a clear visual hierarchy:
 *   solid yellow = primary action
 *   tinted yellow = active filter state
 *   neutral = inactive */
.chip.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-ring);
  font-weight: 700;
}
.chip.live {
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.live::before {
  content: ""; width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ============================================================
   SECTION HEADING — locked typography for cross-page consistency.
   ALL sections use same head spec. Per-sport rails get a colored
   left-stripe accent (data-sport attribute on .section).
   ============================================================ */
.section { margin-bottom: var(--space-12); }
/* Hairline divider between sections — gives breath without heaviness. */
.section + .section {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.section__head {
  display: flex; align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: inline-flex; align-items: center; gap: 10px;
}
/* LIVE section: red accent rail + faint red tint backdrop — exclusive
   semantic of LIVE-ness, doesn't shout. */
.section--live .section__head {
  padding-left: 12px;
  border-left: 3px solid var(--live);
}
/* LIVE dot stays — semantic indicator for live sections */
.section--live .section__title::before,
.section__live-dot {
  content: ""; width: 9px; height: 9px;
  display: inline-block;
  background: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--live-glow);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
/* Per-sport accent stripe — subtle 4×22 colored bar at left of title.
 * Applied via .section[data-sport] or .section--sport[data-sport]. */
.section[data-sport] .section__title::before,
.section--sport[data-sport] .section__title::before {
  content: ""; width: 4px; height: 22px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-right: 2px;
}
/* Sport stripe accents pruned 2026-05-18 (sport pipeline disabled). The
   `data-sport` attribute is no longer emitted by any view; ``--sport-bola``
   token is kept available for future /bola hero accent work. */

.section__count {
  /* Demoted to whisper-tier — metadata, not headline */
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section__see-all {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transition: all 0.15s;
}
.section__see-all:hover { background: var(--bg-hover); color: var(--text); transform: translateX(2px); }

/* ============================================================
   THUMBNAIL GRID — YouTube style
   ============================================================ */
.grid {
  display: grid;
  /* Cap at ~4 cols on wide; 300px floor keeps cards readable */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  align-items: start;
}

/* ============================================================
   MCARD — state-aware match card (NS / LIVE / FT).
   LIVE+FT: 16:9 segment-frame thumbnail (stream-sg.../v/thumb/X.jpg, 180s cache)
   NS:      gradient + team crests centerpiece + kickoff line
   ============================================================ */
.mcard {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev1);
  border: 1px solid rgba(255,255,255,0.08);
  isolation: isolate;
  /* Ambient rest shadow — cards read as physical layers, not decals */
  box-shadow: 0 1px 2px rgba(0,0,0,0.40),
              0 8px 16px -12px rgba(0,0,0,0.50);
  transition: transform .32s cubic-bezier(.2,.6,.2,1),
              box-shadow .32s ease,
              border-color .32s ease;
  will-change: transform;
}
.mcard::after {
  /* Glint along top edge — premium card affordance, sharper falloff */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 15%, rgba(255,255,255,0.18) 50%, transparent 85%);
  pointer-events: none;
  z-index: 4;
}
.mcard:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  /* Cinematic 3-stop shadow: contact + key + ambient = real elevation */
  box-shadow:
    0 1px 2px rgba(0,0,0,0.60),
    0 12px 24px -10px rgba(0,0,0,0.55),
    0 32px 56px -24px rgba(0,0,0,0.70);
}
.mcard:hover .mcard__thumb { transform: scale(1.05); }

/* ─── 16:9 visual zone ─── */
.mcard__viz {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(130% 95% at 25% 15%, var(--g-a, #2a2a2a) 0%, transparent 60%),
    radial-gradient(120% 100% at 85% 95%, var(--g-b, #181818) 0%, transparent 65%),
    linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
}
.mcard__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.mcard__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.20) 0%,
      rgba(0,0,0,0)    18%,
      rgba(0,0,0,0)    48%,
      rgba(0,0,0,0.30) 75%,
      rgba(0,0,0,0.80) 100%
    );
  pointer-events: none;
}

/* ── NS centerpiece: crests + VS divider ── */
.mcard__ns {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  padding: 8px 16px;
}
.mcard__crest {
  position: relative;
  width: clamp(56px, 12vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45),
              inset 0 0 0 1.5px rgba(255,255,255,0.14);
  flex: 0 0 auto;
}
.mcard__crest img {
  position: relative;
  z-index: 2;
  width: 76%; height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}
/* Fallback initials always sit behind the img — img covers them when loaded,
   shows through when img absent or onerror removed it. */
.mcard__crest-fallback {
  position: absolute; inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  font-size: clamp(14px, 2vw, 19px);
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  z-index: 1;
}

.mcard__vsdiv {
  /* Stripped pill chrome — just a quiet glyph between the two crests */
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.38);
  flex: 0 0 auto;
}

/* ── LIVE/FT: mini crests over the score ── */
.mcard__live-crests {
  position: absolute;
  right: 14px; bottom: 64px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.mcard__live-crest {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* ── Top-left state pill ── */
.mcard__pill {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 5px 10px;
  border-radius: 7px;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.mcard__pill--live {
  background: var(--live);
  color: #fff;
  letter-spacing: 0.12em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10),
              0 3px 18px rgba(225,29,46,0.55);
  animation: pill-breathe 2s cubic-bezier(.4,0,.6,1) infinite;
}
.mcard__pill-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
}
@keyframes pill-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 2px 10px rgba(225,29,46,0.40); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 3px 22px rgba(225,29,46,0.65); }
}
.mcard__pill--ft {
  background: rgba(15,15,15,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.mcard__pill--time {
  background: rgba(15,15,15,0.55);
  border: 1px solid rgba(251,191,36,0.30);
  color: var(--primary);
  backdrop-filter: blur(8px);
}

/* ── Bottom overlay ── */
.mcard__overlay {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  display: flex; justify-content: flex-end; align-items: flex-end;
  z-index: 2;
}
.mcard__score {
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  /* Frosted plate for legibility on busy thumbnails (grass, crowd) */
  padding: 6px 12px;
  background: rgba(8,10,14,0.55);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.mcard__score-dash {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  font-size: 28px;     /* ~0.74× of digits — readable separator */
}
.mcard__score--unknown {
  font-size: 32px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}
.mcard__kickoff {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px;
}
.mcard__kickoff-day {
  font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mcard__kickoff-time {
  font-size: 18px; font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

/* ── Title strip — two team rows (crest + name), then league chip ── */
.mcard__body {
  padding: 12px 14px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 100%);
}
.mcard__team-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-0);
  line-height: 1.2;
  letter-spacing: -0.005em;
  min-height: 22px;
}
.mcard__team-row + .mcard__team-row { margin-top: 4px; }
.mcard__team-crest {
  width: 18px; height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.mcard__team-crest--text {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}
.mcard__team-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcard__league {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}
.mcard__league > span {
  overflow: hidden; text-overflow: ellipsis;
}
.mcard__league-logo {
  width: 14px; height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ── State tweaks ── */
.mcard--is-live { border-color: rgba(239,68,68,0.18); }
.mcard--is-live:hover { border-color: rgba(239,68,68,0.36); }

.mcard--is-ft .mcard__thumb { filter: saturate(0.72) brightness(0.78); }
.mcard--is-ft .mcard__body { opacity: 0.88; }



.tcard {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}
.tcard:hover {
  transform: translateY(-4px);
}
.tcard:active {
  transform: translateY(-2px) scale(0.985);
  transition-duration: 0.1s;
}
.tcard__thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--thumb-soccer);
  border: 1px solid var(--border);
  transition: border-color 0.18s, box-shadow 0.22s ease;
}
.tcard:hover .tcard__thumb {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,158,11,0.35);
}
@media (prefers-reduced-motion: reduce) {
  .tcard, .tcard:hover, .tcard:active { transform: none; transition: none; }
}

/* FT (finished) cards — softly muted, NOT washed out. Earlier values
   (saturate 0.45, brightness 0.7, grayscale 0.6) over-dimmed thumbnails to
   the point where users read them as "missing". Tuned to subtle so card
   stays recognizable but reads as "post-match". */
.tcard.is-finished .tcard__thumb {
  filter: saturate(0.85) brightness(0.92);
}
.tcard.is-finished .tcard__meta { opacity: 0.85; }
.tcard.is-finished:hover .tcard__thumb {
  filter: saturate(1) brightness(1);
}

.tcard__thumb--soccer { background: var(--thumb-soccer); }

/* Subtle vignette only — no flashy radial decorations */
.tcard__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}
/* LIVE CAROUSEL — appears when current match is locked (FT/pre-kickoff).
   Horizontally scrollable rail of currently-live matches, ranked by score.
   Mobile: 220px-wide cards with snap. Desktop: 240px cards, fits 4-5 visible. */
.live-carousel {
  margin: 14px 0 8px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(239,68,68,0.06) 0%, transparent 100%);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--r-lg);
}
.live-carousel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.live-carousel__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}
.live-carousel__pulse {
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 8px var(--live-glow);
}
.live-carousel__count {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.live-carousel__rail {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.live-carousel__rail::-webkit-scrollbar { height: 6px; }
.live-carousel__rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.live-carousel__rail::-webkit-scrollbar-track { background: transparent; }

/* card */
.lcc {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.18s, box-shadow 0.22s;
}
.lcc:hover {
  transform: translateY(-3px);
  border-color: var(--live);
  box-shadow: 0 10px 22px rgba(239,68,68,0.25), 0 0 0 1px rgba(239,68,68,0.4);
}
.lcc__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #1e293b 0%, #0c1220 100%);
  overflow: hidden;
}
.lcc__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.1);
  transition: transform 0.4s ease, filter 0.2s;
}
.lcc:hover .lcc__bg {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1.2);
}
.lcc__thumb::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  pointer-events: none;
}
.lcc__live {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--live);
  color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--live-glow);
  z-index: 2;
}
.lcc__live-dot {
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.lcc__score {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 36px; font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 14px rgba(0,0,0,0.8);
  line-height: 0.9;
  z-index: 2;
}
.lcc__meta {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.lcc__title {
  font-size: 13px; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lcc__sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.lcc__sport {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--primary);
}
.lcc__dot {
  width: 3px; height: 3px;
  background: var(--text-3);
  border-radius: 50%;
  flex-shrink: 0;
}
.lcc__league {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

@media (max-width: 640px) {
  .live-carousel { padding: 12px 12px 10px; margin: 12px -4px 8px; }
  .live-carousel__head { margin-bottom: 10px; }
  .live-carousel__title { font-size: 13px; }
  .live-carousel__count { font-size: 11px; }
  .lcc { flex-basis: 200px; }
  .lcc__title { font-size: 12.5px; }
  .lcc__sub { font-size: 10.5px; }
  .lcc__score { font-size: 30px; }
  .lcc__live { font-size: 9.5px; padding: 2px 6px; }
}

/* CHAT LOCKED — match ended / not started yet. Replaces the full chat aside
   with a compact placeholder panel so mobile users don't see a useless empty
   chat tab and can immediately scroll the live carousel below. */
.watch__chat--locked {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  min-height: 220px;
  max-height: 320px;
}
.chat-locked {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-align: center;
  max-width: 280px;
}
.chat-locked__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
}
.watch__chat--ended .chat-locked__icon { color: #94a3b8; }
.watch__chat--scheduled .chat-locked__icon { color: var(--primary); }
.chat-locked__title {
  font-size: 15px; font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.chat-locked__sub {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.chat-locked__cta {
  margin-top: 6px;
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.18s;
}
.chat-locked__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.35);
}
@media (max-width: 1024px) {
  /* Mobile — chat tab pill becomes muted; locked aside is compact card */
  .watch__chat--locked { min-height: 140px; max-height: 200px; padding: 16px; }
  .chat-locked__icon { width: 44px; height: 44px; }
  .chat-locked__icon svg { width: 22px; height: 22px; }
  .chat-locked__title { font-size: 14px; }
  .chat-locked__sub { font-size: 11.5px; }
}

/* "Chat off" muted tab pill (gray look + tiny indicator dot) */
.ab-btn.ab-btn--muted {
  opacity: 0.55;
}
.ab-btn.ab-btn--muted .ab-btn__label { color: var(--text-3); }
.ab-btn__off-dot {
  width: 6px; height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  margin-left: 4px;
  display: inline-block;
}

/* PLAYER STATE — pre-kickoff / post-FT cinematic placeholder.
   Replaces the iframe with a designed panel + countdown / final score. */
.player-state {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #0c1016 0%, #060809 100%);
  overflow: hidden;
  isolation: isolate;
}
.player-state__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.32) saturate(1.15) blur(2px);
  z-index: 0;
}
.player-state__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.player-state__content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 32px 24px;
  color: #fff;
  max-width: 520px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.player-state__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--primary);
  margin-bottom: 4px;
}
.player-state--ended .player-state__icon { color: #94a3b8; }
.player-state--scheduled .player-state__icon { color: var(--primary); }
.player-state__title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.player-state__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.player-state__cta {
  margin-top: 10px;
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.18s;
}
.player-state__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245,158,11,0.45);
}
.player-state__countdown {
  display: inline-flex; gap: 4px; align-items: baseline;
  margin-top: 10px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}
.player-state__cd-num {
  font-size: 28px; font-weight: 800;
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
  min-width: 36px; text-align: center;
}
.player-state__cd-lbl {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 8px;
}
.player-state__cd-lbl:last-of-type { margin-right: 0; }
@media (max-width: 640px) {
  .player-state__icon { width: 56px; height: 56px; }
  .player-state__title { font-size: 18px; }
  .player-state__cd-num { font-size: 22px; min-width: 28px; }
}

/* Editorial photo background (DataForSEO News). Sits below content,
   darkened so logos + score still read clearly. */
.tcard__thumb-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: brightness(0.55) saturate(1.05);
  transition: filter 0.2s, transform 0.4s ease;
}
.tcard:hover .tcard__thumb-bg {
  filter: brightness(0.7) saturate(1.15);
  transform: scale(1.04);
}

/* Play-button overlay — appears on hover, scales/pulses on click. Click handled by
   the wrapping anchor, but the visual cue makes the card feel like a video tile. */
.tcard__play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.94);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(245, 158, 11, 0.5);
}
.tcard__play-overlay::before {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #0a0a0a;
}
.tcard:hover .tcard__play-overlay {
  opacity: 1;
  transform: scale(1);
}
.tcard:active .tcard__play-overlay {
  transform: scale(0.92);
  animation: tcardPlayPulse 0.45s ease-out;
}
@keyframes tcardPlayPulse {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70%  { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 18px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 0 rgba(245, 158, 11, 0); }
}
@media (max-width: 640px) {
  .tcard__play-overlay { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .tcard__play-overlay::before { border-width: 6px 0 6px 10px; margin-left: 2px; }
}
.tcard__thumb:has(.tcard__thumb-bg)::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.6) 100%);
}

.tcard__thumb-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}
.tcard__team {
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.tcard__team-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  color: #0a0a0a;
  display: grid; place-items: center;
  font-family: 'Bebas Neue', Impact;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.9);
}
.tcard__team-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tcard__team-abbr {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.98);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  text-align: center;
  line-height: 1.2;
  min-height: calc(13px * 1.2 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  hyphens: auto;
  max-width: 100%;
}

.tcard__center {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

/* Solo-event variant — for sport cards without home/away teams (motorsport,
 * voli without team data, etc). Spans full grid width so the big time anchor
 * is dead-center; scrim layer guarantees text contrast against any thumbnail. */
.tcard__center--solo {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.55);
  position: relative;
}
.tcard__center--solo::before {
  content: "";
  position: absolute; inset: -20px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.tcard__solo-time {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
  text-align: center;
}
.tcard__solo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 640px) {
  .tcard__solo-time { font-size: clamp(40px, 11vw, 52px); }
  .tcard__solo-tag  { font-size: 10px; padding: 3px 10px; letter-spacing: 1.5px; }
}
.tcard__score {
  font-family: 'Bebas Neue', Impact;
  font-size: 56px;
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}
.tcard__score--vs {
  font-family: 'Bebas Neue', Impact;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}
.tcard__time {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
}

/* badges absolute positioned on thumbnail. LIVE = top-LEFT, ribbon = top-RIGHT.
   Both positions are explicit (no media-query swap) so they never overlap. */
.tcard__live-badge {
  position: absolute;
  top: 10px; left: 10px; right: auto;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--live);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px var(--live-glow);
  z-index: 3;
}
.tcard__live-badge::before {
  content: ""; width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.tcard__viewers-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
}

.tcard__duration-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--r-sm);
  z-index: 3;
  letter-spacing: 0.04em;
}

/* BIG MATCH / HOT corner ribbon — top-RIGHT so it doesn't overlap LIVE badge */
.tcard__bigmatch-ribbon {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  z-index: 3;
  box-shadow: 0 2px 12px rgba(251,191,36,0.4);
}
.tcard__bigmatch-ribbon--hot {
  background: #f97316;
  color: #fff;
  box-shadow: 0 2px 12px rgba(249,115,22,0.6);
  /* Stronger visual distinction from amber BIG MATCH */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border: 1px solid #fb923c;
  letter-spacing: 0.1em;
}
/* Add a tiny pulsing flame indicator to HOT to make it visually unmistakable */
.tcard__bigmatch-ribbon--hot::before {
  content: "🔥";
  margin-right: 3px;
  font-size: 9px;
}

/* Header bell notification badge */
.bell-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.bell-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--live);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* SVG icon sprite container (offscreen) */
.svg-sprite { position: absolute; width: 0; height: 0; }

/* meta below thumbnail — info-dense, no avatar noise */
.tcard__meta {
  padding: 0 2px;
}
.tcard__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.tcard__channel {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 6px;
}
.tcard__league-pill {
  display: inline-flex; align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--bg-elev2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
}
.tcard__stats {
  font-size: 12px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.tcard__stats-dot {
  width: 3px; height: 3px;
  background: var(--text-3);
  border-radius: 50%;
  display: inline-block;
}
.tcard__live-clock {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--live);
  font-weight: 700;
}
.tcard__live-clock::before {
  content: ""; width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ============================================================
   TEAM COLOR TOKENS (extracted from inline styles)
   ============================================================ */
.tlogo-bvb     { background: #fde047; color: #000; }
.tlogo-fra     { background: #fff;    color: #dc2626; }
.tlogo-lev     { background: #0046a8; color: #fff; }
.tlogo-osa     { background: #dc2626; color: #fff; }
.tlogo-tor     { background: #7f1d1d; color: #fff; }
.tlogo-sas     { background: #16a34a; color: #000; }
.tlogo-len     { background: #fbbf24; color: #000; }
.tlogo-nan     { background: #fde047; color: #15803d; }
.tlogo-fcb     { background: #dc2626; color: #fff; }
.tlogo-shb     { background: #fff;    color: #000; }
.tlogo-nas     { background: #fde047; color: #1e3a8a; }
.tlogo-per     { background: #1a1a1a; color: #fff; border-color: #444; }
.tlogo-rak     { background: #fff;    color: #000; }
.tlogo-jkm     { background: #fff;    color: #dc2626; }
.tlogo-sbe     { background: #1e40af; color: #fff; }
.tlogo-int     { background: #1e40af; color: #fff; }
.tlogo-mil     { background: #dc2626; color: #000; }
.tlogo-mun     { background: #dc2626; color: #fff; }
.tlogo-che     { background: #1e40af; color: #fff; }
.tlogo-f1      { background: #dc2626; color: #fff; }
.tlogo-wwe     { background: #fbbf24; color: #000; }

/* Server tile brand color tokens */
.slogo-sky     { background: #0c5fb8; color: #fff; font-weight: 800; }
.slogo-skyr    { background: #cc0000; color: #fff; font-weight: 800; }
.slogo-dzn     { background: #000;    color: #fbbf24; font-weight: 800; }
.slogo-bin     { background: #1d2c4f; color: #fff; font-weight: 800; }
.slogo-stn     { background: #0d3b66; color: #fff; font-weight: 800; }
.slogo-cnl     { background: #e2231a; color: #fff; font-weight: 800; }
.slogo-nov     { background: #003c8c; color: #fff; font-weight: 800; }
.slogo-esp     { background: #1a1a1a; color: #ef4444; font-weight: 800; }

/* Featured-card variant — F1 / WWE single big logo + label */
.tcard__team--featured {
  grid-column: 1 / 4;
  flex-direction: row;
  justify-content: center;
  gap: 14px;
}
.tcard__team-logo--lg {
  width: 72px; height: 72px;
  font-size: 24px;
}
.tcard__team-logo--md {
  width: 64px; height: 64px;
  font-size: 20px;
}
.tcard__featured-label {
  text-align: left;
}
.tcard__featured-title {
  font-family: 'Bebas Neue', Impact;
  font-size: 32px;
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}
.tcard__featured-title--sm { font-size: 30px; }
.tcard__featured-sub {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* TONTON REPLAY CTA inline link styling */
.tcard__replay-cta {
  color: var(--primary);
  font-weight: 700;
}
.tcard__replay-cta:hover { color: var(--primary-hover); }

/* Inline icon tweaks */
.viewers-meta {
  display: inline-flex; align-items: center; gap: 4px;
}
.chat-head__icon {
  vertical-align: -3px;
  margin-right: 4px;
}

/* Chat avatar color variants (small set, semantic by hue) */
/* Avatar color palette — 12 distinguishable hues via HSL ladder so consecutive
 * messages from different users are visually separable in a busy chat. Each
 * gets a subtle gradient + ring for depth (less "flat sticker" feel). */
/* Avatar colors — flat solids (chatboxn-style, Bootstrap-8 palette) */
.msg__avatar--red    { background: #dc3545; }
.msg__avatar--orange { background: #fd7e14; }
.msg__avatar--amber  { background: #ffc107; color: #222; }
.msg__avatar--green  { background: #28a745; }
.msg__avatar--teal   { background: #20c997; }
.msg__avatar--cyan   { background: #17a2b8; }
.msg__avatar--blue   { background: #007bff; }
.msg__avatar--indigo { background: #6610f2; }
.msg__avatar--purple { background: #6f42c1; }
.msg__avatar--pink   { background: #e83e8c; }
.msg__avatar--rose   { background: #fb7185; }
.msg__avatar--slate  { background: #6c757d; }

/* Side-title size override — smaller than base .side-title (17px) */
.side-title--sm { font-size: 15px; }

/* Tiny BIG ribbon variant on rail card */
.tcard__bigmatch-ribbon--sm {
  font-size: 9px;
  padding: 2px 6px;
}

/* Generic centered text helper for placeholders */
.text-center { text-align: center; }

/* ============================================================
   STATE VARIANTS
   ============================================================ */
.tcard.is-live .tcard__thumb {
  border-color: var(--live);
  box-shadow: 0 0 0 1px var(--live), 0 0 28px rgba(239,68,68,0.25);
}
.tcard.is-live:hover .tcard__thumb {
  box-shadow: 0 0 0 1px var(--live), 0 0 36px rgba(239,68,68,0.4);
}
.tcard.is-finished { opacity: 0.78; }
.tcard.is-finished:hover { opacity: 1; }
.tcard.is-finished .tcard__thumb { filter: grayscale(0.18); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 24px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  margin-top: 48px;
}
.footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 24px;
}
.footer__brand-block { padding-right: 16px; }
.footer__brand {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer__brand b { color: var(--primary); }
.footer__tagline { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__col ul { list-style: none; padding: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { font-size: 13px; color: var(--text-2); transition: color 0.15s; }
.footer__col a:hover { color: var(--text); }
.footer__notice {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.footer__notice b { color: var(--text); }
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 1024px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__brand-block { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MATCH PAGE
   ============================================================ */
.watch {
  display: grid;
  /* Chat column scales fluidly with viewport — clamps between 260px and 380px.
     At wide screens chat is wide (380), at narrow desktop/tablet it shrinks
     down to 260 instead of staying locked at 340 and crushing the player. */
  grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 380px);
  gap: 20px;
  padding: 20px;
  min-width: 0;
}

/* Inline chat panel (replaces FAB drawer on desktop) */
.watch__chat {
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h) - 40px);
  position: sticky;
  top: calc(var(--header-h) + 20px);
  overflow: hidden;
}
.watch__chat .chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev1);
  flex-shrink: 0;
}
.watch__chat .chat-head__title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.watch__chat .chat-head__count {
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-elev2);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.chat-head__live-pip {
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--live);
  animation: pulse 2s infinite;
  margin-left: auto;
  flex-shrink: 0;
}
.watch__chat .chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.watch__chat .chat-body::-webkit-scrollbar { width: 6px; }
.watch__chat .chat-body::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
.watch__chat .chat-input {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev1);
  flex-shrink: 0;
}

/* Matches rail (was right side, now horizontal below player) */
.matches-rail {
  margin-top: 24px;
}
.matches-rail__head {
  display: flex; align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.matches-rail__title {
  margin: 0;
}
.matches-rail__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.rail-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.rail-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.rail-card:hover .rail-card__thumb { border-color: var(--border-hover); }
.rail-card.is-live .rail-card__thumb {
  border-color: var(--live);
  box-shadow: 0 0 0 1px var(--live), 0 0 16px rgba(239,68,68,0.2);
}
.rail-card__thumb-content {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 2;
}
.rail-card__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}
.rail-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-card__meta {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}

.watch__main { min-width: 0; }
.watch__side { min-width: 0; }

/* ─── Mobile scoreboard header (.mhd) ─────────────────────────────
   Replaces global .header on ≤1024px on body.watch-body. Broadcast-
   style scoreboard: topbar (back + league) + board (crests + score)
   + status (team names + minute/FT/date).
   Hidden on desktop by default — display flips to flex in the mobile
   media block below; the global .header is hidden in the same block. */
.mhd { display: none; }

@media (max-width: 1024px) {
  body.watch-body .header { display: none; }
  body.watch-body .mhd {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f0f10 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  /* Topbar: back · league name (truncate) · minute/FT chip */
  .mhd__topbar {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 8px 0 4px;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .mhd__back {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(255,255,255,0.08);
  }
  .mhd__back:hover { background: var(--bg-hover); }
  .mhd__league {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.01em;
    overflow: hidden;
  }
  .mhd__league img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
  }
  .mhd__league span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mhd__minute {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
    min-height: 20px;
  }
  .mhd[data-state="LIVE"] .mhd__minute {
    background: rgba(220,38,38,0.14);
    border-color: rgba(220,38,38,0.4);
    color: #fca5a5;
  }
  .mhd[data-state="FT"] .mhd__minute {
    background: rgba(82,82,91,0.2);
    border-color: rgba(160,160,160,0.25);
    color: var(--text-2);
  }
  .mhd__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 0 rgba(248,113,113,0.6);
    animation: mhd-pulse 1.6s ease-in-out infinite;
  }
  @keyframes mhd-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.6); }
    50%      { box-shadow: 0 0 0 5px rgba(248,113,113,0); }
  }

  /* Board (single row): home-crest+name | score/KO-time | away-crest+name */
  .mhd__board {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    min-height: 44px;
  }
  .mhd__side {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }
  .mhd__side--home { justify-self: end; flex-direction: row; }
  .mhd__side--away { justify-self: start; flex-direction: row-reverse; }
  .mhd__crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .mhd__crest--text {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
    flex-shrink: 0;
  }
  .mhd__team-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .mhd__side--home .mhd__team-name { text-align: right; }
  .mhd__side--away .mhd__team-name { text-align: left; }

  .mhd__center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    line-height: 1;
  }
  .mhd__score {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .mhd__score-dash {
    font-weight: 500;
    color: var(--text-3);
    font-size: 18px;
  }
  .mhd__score-digit { display: inline-block; min-width: 14px; text-align: center; }
  .mhd__ko-time {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    letter-spacing: 0.01em;
  }
}

@media (max-width: 480px) {
  .mhd__team-name { font-size: 11px; }
  .mhd__score { font-size: 20px; gap: 5px; }
  .mhd__score-dash { font-size: 16px; }
  .mhd__crest, .mhd__crest--text { width: 24px; height: 24px; }
}

.player-frame {
  position: relative;
  background: #000;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.player-frame iframe,
.player-frame__placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.player-frame__placeholder {
  background: linear-gradient(180deg, #0c0c0c, #000);
  display: grid; place-items: center;
}
.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  display: grid; place-items: center;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.15s;
  margin-bottom: 16px;
}
.play-btn:hover { transform: scale(1.1); }
.player-placeholder__hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: monospace;
}

.watch-title-block {
  margin-bottom: 16px;
}
.watch__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.watch__live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--live);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px var(--live-glow);
}
.watch__live-badge::before { content: none; }
.watch__live-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.watch__live-score {
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  background: var(--bg-elev2);
  padding: 4px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.watch__live-score-dash {
  color: var(--text-2);
  font-weight: 400;
}
.watch__meta {
  font-size: 13px;
  color: var(--text-2);
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap;
}

.watch-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.action-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--bg-elev2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.action-btn:hover { background: var(--bg-elev3); }
.action-btn.primary {
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
}
.action-btn.primary:hover { background: var(--primary-hover); }

/* Score panel */
.score-panel {
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.score-panel__top {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.score-panel__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.score-panel__team {
  display: flex; align-items: center; gap: 12px;
}
.score-panel__team.away { flex-direction: row-reverse; }
.score-panel__team-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elev2);
  display: grid; place-items: center;
  font-family: 'Bebas Neue', Impact;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.score-panel__team-name {
  font-size: 16px;
  font-weight: 700;
}
.score-panel__score {
  text-align: center;
  font-family: 'Bebas Neue', Impact;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  min-width: 100px;
}
.score-panel__score.live { color: var(--live); }
.score-panel__time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.servers__title {
  display: inline-flex; align-items: center; gap: 6px;
}
.servers__title::before {
  content: ""; width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mobile-only: tab bar. Hidden on desktop where every panel renders inline. */
.watch-actionbar { display: none; }
.servers__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.servers__title {
  font-size: 14px;
  font-weight: 700;
}
.servers__hint { font-size: 12px; color: var(--text-2); margin-left: auto; }
.servers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.server-tile {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg-elev2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  min-width: 0;
  overflow: hidden;
}
.server-tile:hover { background: var(--bg-elev3); }
.server-tile.active {
  border-color: var(--live);
  background: var(--live-soft);
}
.server-tile__logo {
  width: 32px; height: 24px;
  border-radius: 3px;
  background: var(--bg-elev3);
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 10px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 0.04em;
}
.server-tile__info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.server-tile__name {
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.server-tile__load {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.server-tile__load.load-good { background: var(--success); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.server-tile__load.load-mid  { background: #f59e0b; }
.server-tile__load.load-bad  { background: var(--live); }
.servers__more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--border-hover);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.servers__more:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* Side rail — recommended matches */
.side-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.side-item {
  display: flex; gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.side-item__thumb {
  position: relative;
  width: 168px;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--thumb-soccer);
  flex-shrink: 0;
}
.side-item__thumb-content {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  z-index: 2;
}
.side-item__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
}
.side-item__abbr {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  text-align: center;
}
.side-item__mini-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Bebas Neue', Impact;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 auto;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.side-item__score {
  font-family: 'Bebas Neue', Impact;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.side-item__kickoff {
  font-family: 'Bebas Neue', Impact;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}
.tcard__bigmatch-pill {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.side-item__live-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--live);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  z-index: 3;
}
.side-item__info { flex: 1; min-width: 0; }
.side-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-item__channel {
  font-size: 12px;
  color: var(--text-2);
}
.side-item__stats {
  font-size: 11px;
  color: var(--text-2);
}

/* Side title */
.side-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.side-title.section--live::before {
  content: ""; width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--live-glow);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
 * CHAT HEADER — live pulse + viewer count badge (Cola.tv pattern)
 * ───────────────────────────────────────────────────────── */
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(251,191,36,0.04) 0%, transparent 100%);
}
.chat-head__title {
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}
/* "LIVE • 234" viewer pip — pulse dot + count. */
.chat-head__viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239,68,68,0.10);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  margin-left: auto;
}
.chat-head__viewers::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: chat-live-pulse 1.8s ease-out infinite;
}
@keyframes chat-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.chat-head__count {
  font-size: 10.5px;
  color: var(--text-2);
  background: var(--bg-elev2);
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.chat-head__close { font-size: 18px; color: var(--text-2); width: 32px; height: 32px; border-radius: 50%; }
.chat-head__close:hover { background: var(--bg-hover); }

/* ─────────────────────────────────────────────────────────
 * CHAT BODY — bubble layout, slide-in animation
 * ───────────────────────────────────────────────────────── */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 8px;
  display: flex; flex-direction: column;
  gap: 6px;
}

/* Empty state when no messages yet (besides the bot greeting). */
.chat-body__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}
.chat-body__empty strong { color: var(--text-2); font-weight: 600; display: block; margin-bottom: 4px; font-size: 13px; }

/* Inline-flow chat row — avatar at top-left, name+text flow as one paragraph.
   Long messages wrap onto a new line BELOW the name (text continues), the
   name does NOT get pushed above. */
.msg {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 2px 4px;
  animation: msg-slide-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.msg:hover { background: transparent; }
.msg.right { flex-direction: row; }

@keyframes msg-slide-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg__avatar {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
  margin-top: 1px;
  background: var(--bg-elev3);
  overflow: hidden;
}
/* DiceBear SVG variant — fills the square; light bg so dark/colorful SVGs stay legible. */
img.msg__avatar--img {
  background: #fff;
  object-fit: cover;
  display: block;
}

/* Body becomes a normal text container so name + text flow inline and wrap
   together; first line stays beside avatar, continuation lines indent under it. */
.msg__body {
  flex: 1;
  min-width: 0;
  display: block;
  line-height: 1.4;
}
.msg__head {
  display: inline;
}
.msg__badge { display: none !important; }

.msg__name {
  display: inline;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}
.msg__name::after { content: none; }
.msg__text {
  display: inline;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #d1d5db;
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 400;
  word-wrap: break-word;
  word-break: break-word;
}
.msg__time { display: none; }

/* Mobile: even tighter — mobile gets a 2-step reduction (-2px from current),
   desktop only got -1px. Per user spec "1x untuk desktop, 2x untuk mobile". */
@media (max-width: 768px) {
  .msg {
    padding: 3px 6px;
    gap: 7px;
  }
  .msg__avatar {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 10px;
  }
  .msg__name {
    font-size: 10px;
  }
  .msg__text {
    font-size: 10px;
  }
}

/* System/bot messages get a subtle accent border + softer color. */
.msg--system {
  background: rgba(251,191,36,0.04);
  border-left: 2px solid var(--primary-ring);
  padding-left: 8px;
}
.msg--system .msg__avatar { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color: var(--primary-ink); }
.msg--system .msg__name { color: var(--primary); }
.msg--system .msg__text { color: #c8c8c8; font-style: italic; font-size: 10px; }

.chat-input {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  height: 38px;
  background: var(--bg-elev2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.chat-input input:focus { border-color: var(--primary); }
.chat-input button.chat-send {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .12s, background .15s;
}
.chat-input button.chat-send svg { width: 16px; height: 16px; }
.chat-input button.chat-send:hover { background: var(--primary-hover); transform: scale(1.04); }
.chat-input button.chat-send:active { transform: scale(.96); }

/* chatboxn-style social CTA banner above chat-head */
.cb-cta-banner {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.cb-cta-banner a {
  flex: 1 1 0%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: filter .12s;
}
.cb-cta-banner a:hover { filter: brightness(1.1); }
.cb-cta-banner svg { width: 14px; height: 14px; }
.cb-cta-banner__telegram { background: linear-gradient(180deg,#039be5,#0288d1); }
.cb-cta-banner__facebook { background: linear-gradient(180deg,#1570fd,#0d5fd1); }
.cb-cta-banner__toggle {
  flex: 0 0 auto !important;
  background: #141516;
  padding: 0 10px !important;
  font-size: 11px !important;
  cursor: pointer;
  border: 0;
}
.cb-cta-banner__toggle:hover { background: #2a2c2e; }

/* Emoji trigger — ghost circular button to the LEFT of the input */
.chat-input .chat-emoji-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--bg-elev2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
}
.chat-input .chat-emoji-btn:hover {
  background: var(--bg-elev2);
  border-color: var(--primary);
}

/* Emoji picker — popup grid above the input */
.chat-emoji-picker {
  display: none;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin: 0 12px;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}
.chat-emoji-picker.show { display: grid; }
.chat-emoji-picker button {
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.chat-emoji-picker button:hover { background: var(--bg-elev2); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .header__left { width: auto; }
  /* header__center display:none removes the desktop flex:1 spacer.
     Push header__right to the far right edge with margin-left: auto
     so Daftar pill sits flush to the right padding, not centered. */
  .header__right { width: auto; gap: 4px; margin-left: auto; }
  .header__center { display: none; }
  .header__search-icon { display: grid; }
  /* Authenticated user: hide "Halo, {name}" pill + Keluar form on mobile.
     The hamburger menu shows them inside the sidebar instead. */
  .btn-signin--user,
  .header__logout-form { display: none; }
  /* Sidebar account section — shown on mobile only. */
  .sb-section--mobile-only { display: block; }
  .sb-link--logout {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    padding: 0;
  }
  .sb-link--user { cursor: default; pointer-events: none; opacity: 0.85; }
  .sb-logout-form { margin: 0; padding: 0; }

  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0;
    width: 0;                              /* collapse layout when closed */
    overflow: hidden;                      /* clip children → no scrollWidth bleed */
    transform: translateX(-100%);
    z-index: 100;
    transition: transform 0.25s, width 0s linear 0.25s;
    background: var(--bg);
  }
  .sidebar.open {
    width: 250px;
    overflow-y: auto;
    transform: translateX(0);
    box-shadow: 8px 0 24px rgba(0,0,0,0.4);
    transition: transform 0.25s, width 0s;
  }
  .sidebar-backdrop {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(0,0,0,0.6);
    z-index: 95;
    display: none;
  }
  .sidebar-backdrop.show { display: block; }

  .main { padding: 16px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }

  /* === MATCH PAGE MOBILE — JalaLive pattern ===
     Stream + chat = primary always-visible content.
     Server / Info / Lainnya hidden by default, accessible via bottom-sheets
     triggered from the fixed action bar above bottom-nav. */
  .watch {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    /* Match page hides the bottom-nav (see body.watch-body rule below).
       Tabbar (44px) lives INSIDE this container, so it's already accounted
       for by the flex children — only subtract header + safe-area.
       `100vh` fallback first for headless browsers that don't honor dvh. */
    height: calc(100vh - var(--header-h) - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-bottom, 0px));
    min-height: calc(100vh - var(--header-h));
    padding: 0;
    gap: 0;
    overflow: hidden;
  }
  .watch__main { display: contents; }

  /* Player — flush top, fixed 16:9 */
  .player-frame {
    flex: 0 0 auto;
    aspect-ratio: 16/9;
    width: 100%;
    background: #000;
    border-radius: 0;
    border: none;
    margin: 0;
  }
  /* Chat panel — fills remaining viewport, internal scroll, input flush bottom */
  .watch__chat {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    background: var(--bg-elev1);
    overflow: hidden;
    margin: 0;
    max-height: none !important;
    height: auto !important;       /* unset desktop's calc(100vh - X) */
    position: static !important;   /* unset desktop's sticky */
    top: auto !important;
  }
  /* Hide top action banner + header on mobile (waste of vertical space) */
  .watch__chat .cb-cta-banner { display: none; }
  .watch__chat .chat-head { display: none; }
  .watch__chat .chat-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 12px;
    /* Reserve space for the fixed input bar at viewport bottom (input ~56px + safe-area) */
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    gap: 6px;
  }
  .watch__chat .chat-input {
    /* Pin to viewport bottom — JalaLive-style fixed bar so input is always reachable
       regardless of how parent flex/height resolves on mobile browsers. */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 8px 10px;
    background: var(--bg-elev1);
    border-top: 1px solid var(--border);
    /* Respect iOS home indicator without leaving black bar above it */
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .watch__chat .chat-input input { height: 40px; font-size: 14px; }
  .watch__chat .chat-input button.chat-send { width: 40px; height: 40px; }

  /* === TAB BAR — sits between player and panels (in flow, not fixed) ===
     4 tabs: Chat (default) / Server / Info / Lainnya.
     Active tab content shows in the panel area below; other tabs hidden. */
  .watch-actionbar {
    position: static;
    flex: 0 0 auto;
    height: 44px;
    background: var(--bg-elev1);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: auto;
  }
  .ab-btn {
    background: none; border: none;
    color: var(--text-2);
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 5px;
    min-height: 44px;
    cursor: pointer;
    padding: 0 6px;
    position: relative;
  }
  .ab-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
  .ab-btn__count {
    background: var(--primary);
    color: var(--primary-ink);
    font-size: 9.5px; font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 1px;
    line-height: 1.2;
  }
  /* Active tab: amber text + amber underline (Twitch/YouTube pattern) */
  .ab-btn.is-active { color: var(--primary); }
  .ab-btn.is-active::after {
    content: "";
    position: absolute;
    left: 14%; right: 14%;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
  }

  /* === TAB PANELS — only the .is-active panel renders === */
  .servers,
  .watch-info-block,
  .matches-rail,
  .watch__chat { display: none; }
  .servers.is-active,
  .watch-info-block.is-active,
  .matches-rail.is-active {
    display: block;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-radius: 0;
  }
  .watch__chat.is-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
  }

  /* Match page: drop body bottom-padding (chat fills viewport) AND hide
     bottom-nav entirely — match page is full-immersion stream + tabs,
     primary nav surface is the tab bar (Chat/Server/Info/Lainnya). */
  body.watch-body { padding-bottom: 0; overflow: hidden; }
  body.watch-body .bottom-nav { display: none; }

  /* Match page: drop body bottom-padding (chat fills viewport) AND hide
     bottom-nav entirely — match page is full-immersion stream + chat,
     primary nav surface is the action-bar (Server/Info/Lainnya). */
  body.watch-body { padding-bottom: 0; overflow: hidden; }
  body.watch-body .bottom-nav { display: none; }

  /* === SHEET CONTENT — server matrix, info, related === */
  .servers { padding: 12px; background: transparent; border: none; }
  .servers__head { flex-wrap: wrap; gap: 4px 10px; padding-bottom: 8px; }
  .servers__hint { margin-left: 0; flex-basis: 100%; font-size: 11px; line-height: 1.35; }
  .servers__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .server-tile { padding: 10px; min-height: 52px; gap: 8px; }
  .server-tile__logo { width: 30px; height: 22px; font-size: 10px; flex-shrink: 0; }
  .server-tile__name { font-size: 12.5px; letter-spacing: -0.01em; }
  .server-tile__load { width: 8px; height: 8px; flex: 0 0 8px; }
  .servers__more {
    border-style: solid;
    border-color: rgba(251,191,36,0.35);
    background: rgba(251,191,36,0.06);
    border-radius: 10px;
    padding: 12px;
    min-height: 44px;
  }

  /* Info sheet content */
  .watch-info-block { padding: 0; background: transparent; border: none; }
  .watch__title { font-size: 17px; line-height: 1.3; gap: 8px; flex-wrap: wrap; }
  .watch__live-badge { font-size: 10px; padding: 3px 7px; flex-shrink: 0; }
  .watch__meta { font-size: 12px; gap: 6px; row-gap: 4px; }
  .watch-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  /* Related sheet — vertical list (not horizontal rail) */
  .matches-rail::after { display: none; }
  .matches-rail__head { padding: 0 0 8px; }
  .matches-rail__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    overflow: visible;
  }
  .rail-card {
    flex: none;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
    padding: 8px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .rail-card__thumb { width: 88px; height: 50px; }
  .rail-card__title { font-size: 13px; line-height: 1.3; padding: 0; }
  .rail-card__meta { font-size: 11px; padding: 0; }

  /* === HOME-PAGE mobile bits (still need these) === */
  .side-item__thumb { width: 140px; }
  .tcard.is-live .tcard__thumb {
    border-color: transparent;
    box-shadow: 0 0 0 1.5px var(--live), 0 0 16px rgba(239,68,68,0.3);
  }
  .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .btn-signin { display: none; }
  .section__head { gap: 10px; flex-wrap: nowrap; min-height: 44px; }
  .section__title { font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
  .section--live .section__title::before { width: 9px; height: 9px; transform: translateY(-1px); flex-shrink: 0; }
  .section__count { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .section__see-all { min-height: 44px; padding: 11px 14px; font-size: 13px; flex-shrink: 0; display: inline-flex; align-items: center; }
  .sidebar { will-change: transform; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sb-link { min-height: 48px; gap: 20px; }
  .sb-link__icon { width: 22px; }
  .sidebar-backdrop { display: block; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .tcard__league-pill { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.45); color: var(--primary); }
  .tcard__meta { padding: 0; }
  .tcard__title { padding-right: 2px; }
  .tcard__stats { flex-wrap: nowrap; min-width: 0; }
  .tcard__stats > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tcard__stats-dot { width: 4px; height: 4px; flex: none; }
  .tcard__replay-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 4px; }
}

@media (max-width: 480px) {
  /* Header: tap targets ≥44px, room for cluster on right */
  .header { padding: 0 12px; gap: 8px; }
  .header__right { gap: 6px; }
  .icon-btn { width: 44px; height: 44px; }
  .header__burger { width: 44px; height: 44px; }
  .btn-register { padding: 0 14px; font-size: 13px; height: 36px; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__mark svg { width: 19px; height: 19px; }
  .bell-badge { top: -4px; right: -4px; padding: 1px 5px; }

  .grid { grid-template-columns: 1fr; }
  /* Lock card thumb size on mobile — explicit height as ultimate fallback.
     iPhone 14 = 390 viewport, content width ~358, 16:9 = 201px. */
  .grid > .tcard > .tcard__thumb,
  .tcard__thumb {
    aspect-ratio: 16 / 9 !important;
    height: calc((100vw - 32px) * 9 / 16) !important;
    max-height: 220px !important;
    min-height: 180px !important;
    padding: 0 !important;
  }
  /* Hero card density: tighter logo + bottom gradient floor under abbr */
  .tcard__thumb-content { padding: 0 12px; gap: 6px; }
  .tcard__team-logo { width: 46px; height: 46px; font-size: 16px; }
  .tcard__score { font-size: clamp(36px, 11vw, 44px); line-height: 0.9; }
  .tcard__score--vs { font-size: clamp(24px, 7.5vw, 32px); letter-spacing: 0.03em; }
  .tcard__team-abbr { font-size: 11px; letter-spacing: 0.03em; min-height: calc(11px * 1.2 * 2); -webkit-line-clamp: 2; }
  .tcard__title { font-size: 14.5px; line-height: 1.4; padding-right: 2px; }
  .tcard__stats { font-size: 11px; gap: 5px; }
  .tcard__channel { font-size: 11px; }
  /* Mobile: LIVE locked top-LEFT, ribbon (BIG MATCH/HOT) locked top-RIGHT, viewers top-RIGHT below ribbon */
  .tcard__live-badge      { top: 8px; left: 8px;  right: auto; font-size: 11px; padding: 4px 9px; letter-spacing: 0.06em; }
  .tcard__bigmatch-ribbon { top: 8px; right: 8px; left: auto;  font-size: 9.5px; padding: 2px 6px; }
  .tcard__viewers-badge   { top: 8px; right: 8px; left: auto;  font-size: 9.5px; padding: 2px 6px; }

  /* Bottom darkening floor under team-abbr so text reads on bright logo bg */
  .tcard__thumb::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
    z-index: 1;
  }

  /* Featured cards (F1/WWE) shrink */
  .tcard__featured-title { font-size: 22px; line-height: 0.95; }
  .tcard__featured-title--sm { font-size: 20px; }
  .tcard__featured-sub { font-size: 11px; }
  .tcard__team-logo--lg { width: 54px; height: 54px; font-size: 18px; }
  .tcard__team-logo--md { width: 46px; height: 46px; font-size: 15px; }

  .score-panel__score { font-size: 36px; min-width: 80px; }
  .score-panel__team-logo { width: 40px; height: 40px; font-size: 13px; }
  .score-panel__team-name { font-size: 14px; }

  .chips-row {
    position: relative;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 8px;
    /* Was margin: 0 -16px which propagates parent overflow.
       Use padding-only for edge-to-edge effect, contain via overflow. */
    margin: 0 0 20px;
    padding: 0 16px 8px;
    scroll-padding-left: 16px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .chip { scroll-snap-align: start; padding: 10px 14px; font-size: 13px; min-height: 40px; }

  /* Section heading tighter */
  .section { margin-bottom: 22px; }
  .section__title { font-size: 20px; }
  .section__count { font-size: 12px; }

  /* Match player frame: compact */
  .player-frame { border-radius: var(--r-md); border-width: 0; }
  .play-btn { width: 56px; height: 56px; font-size: 22px; margin-bottom: 10px; }
  .player-placeholder__hint { font-size: 10.5px; max-width: 92%; line-height: 1.3; padding: 0 8px; }

  /* Chat panel polish — looks like a card, not a screen */
  .watch__chat { border-radius: var(--r-md); }
  .watch__chat .chat-body { padding: 12px; gap: 10px; }
  .watch__chat .chat-input { padding: 10px; }

  /* Footer: 44px tap row + amber column dividers, bottom padding clears FAB overlap */
  .footer { padding: 24px 16px 20px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .footer__brand { font-size: 20px; }
  .footer__col-title { font-size: 13px; margin-bottom: 14px; }
  .footer__col li { margin: 0; border-bottom: 1px solid var(--border); }
  .footer__col a { display: block; padding: 12px 0; font-size: 14px; min-height: 44px; }
  .footer__col + .footer__col { border-top: 1px solid var(--border); padding-top: 16px; }
  .footer__notice { padding: 14px 16px; font-size: 12px; }
  .footer__bottom { font-size: 12px; gap: 8px; padding-top: 20px; }
}

/* NOTE: .header__search-icon default = display: none is declared earlier
   (right after .header__right) so the @media (max-width:1024px) above
   wins by source order. F3 cascade bug fix. */

/* ============================================================
   MOBILE BOTTOM NAV — fixed 4-tab, hidden on desktop
   ============================================================ */
.bottom-nav { display: none; }

@media (max-width: 1024px) {
  .bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 90;
  }
  .bottom-nav__item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.15s;
    position: relative;
  }
  .bottom-nav__item svg {
    width: 22px; height: 22px;
    stroke-width: 2;
  }
  .bottom-nav__item:hover { color: var(--text); }
  .bottom-nav__item.active {
    color: var(--primary);
  }
  .bottom-nav__item.active::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
  }
  .bottom-nav__live-dot {
    position: absolute;
    top: 8px; right: calc(50% - 16px);
    width: 6px; height: 6px;
    background: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--live);
    animation: pulse 2s infinite;
  }

  /* Body needs bottom padding so footer doesn't hide behind nav */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   GLOBAL A11Y + MOTION (mobile review v2 — Tier 3)
   ============================================================ */

/* Visible focus rings (was killed by global outline:none) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
.sb-link:focus-visible,
.chip:focus-visible,
.tcard:focus-visible,
.server-tile:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Touch-only: kill sticky-pressed hover state on transform hovers */
@media (hover: none) and (pointer: coarse) {
  .tcard:hover .tcard__thumb { transform: none; }
}

/* Respect reduced-motion preference (mobile review #7) */
@media (prefers-reduced-motion: reduce) {
  .tcard__live-badge::before,
  .section--live .section__title::before,
  .tcard__live-clock::before,
  .sb-link__live-dot,
  .chat-head__live-pip,
  .chip.live::before,
  .brand__live-dot { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Pulse animation: floor 0.4 → 0.25 (less anxious "blink", more cinematic) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Finished card: amber CTA pops above grayscale (replay isolated) */
.tcard.is-finished { opacity: 1; }
.tcard.is-finished .tcard__thumb { filter: grayscale(0.55) brightness(0.82); }

/* Bug-fix: badges INSIDE .tcard__thumb inherit grayscale filter on finished cards.
   Override so FT badge stays vivid + readable. */
.tcard.is-finished .tcard__duration-badge,
.tcard.is-finished .tcard__live-badge,
.tcard.is-finished .tcard__bigmatch-ribbon { filter: none; }

/* TONTON REPLAY CTA — STANDALONE block.
   Now sits as sibling of .tcard__stats (HTML restructured), so cascade clean.
   Hard-code color values to bypass any var-resolution issue and force
   system-ui font for guaranteed glyph coverage. */
.tcard.is-finished .tcard__replay-cta {
  display: block;
  /* Clamp to viewport width minus side padding — defends against
     parent containers that overflow due to negative margins elsewhere */
  width: 100%;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 14px;
  margin-top: 10px;
  background: #fbbf24;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  color: #0f0f0f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  filter: none;
  opacity: 1;
  cursor: pointer;
}
.tcard.is-finished .tcard__replay-cta:hover {
  background: #facc15;
  border-color: #facc15;
}
.tcard.is-finished .tcard__replay-cta:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
/* Hide the inline dot-separator that immediately precedes the CTA in stats row */
.tcard.is-finished .tcard__stats { flex-wrap: wrap; }
.tcard.is-finished .tcard__stats > .tcard__stats-dot:nth-last-of-type(1) { display: none; }

/* ============================================================
   TV channel chips/rows (Phase 4 — dlhd channel mapping)
   ============================================================ */

/* Compact strip on match cards */
.tv-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.tv-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    flex: 0 0 auto;
    text-decoration: none;
    transition: transform 0.12s, border-color 0.12s;
    overflow: hidden;
}
.tv-chip:hover {
    transform: scale(1.08);
    border-color: var(--accent, #f59e0b);
}
.tv-chip__logo {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #fff;
}
.tv-chip__letter {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.02em;
}
.tv-chip--more {
    width: auto; padding: 0 7px;
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.6);
    cursor: default;
}
.tv-chip--more:hover { transform: none; border-color: rgba(255,255,255,0.08); }

/* Full row on match-detail page */
.tv-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    transition: background 0.14s, border-color 0.14s;
}
.tv-row:hover {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.4);
}
.tv-row__logo {
    width: 40px; height: 40px;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
    flex: 0 0 auto;
}
.tv-row__letter {
    width: 40px; height: 40px;
    border-radius: 6px;
    background: rgba(245,158,11,0.18);
    color: var(--accent, #f59e0b);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
    flex: 0 0 auto;
}
.tv-row__name { flex: 1; font-size: 14px; font-weight: 600; }
.tv-row__country {
    font-size: 10px; font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
}
.tv-row__cta {
    font-size: 12px; font-weight: 700;
    color: var(--accent, #f59e0b);
    padding-left: 8px;
}


/* ── match-page additions (post-rewrite 2026-05-10) ────────────── */
.player-frame__iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; background: #000;
}

/* Mobile tab panels: only one panel visible at a time.
   Supports BOTH the legacy .is-active class (old actionbar UX) AND the new
   .tab-panel--active class (post-2026-05-22 rebuild). */
@media (max-width: 1024px) {
    [data-tab-panel]                    { display: none; }
    [data-tab-panel].is-active,
    [data-tab-panel].tab-panel--active  { display: block; }
    /* Chat panel uses flex internally for the chat-body + input layout */
    .watch__chat[data-tab-panel].is-active,
    .watch__chat[data-tab-panel].tab-panel--active { display: flex; }
}

/* ── State-aware match-page additions (2026-05-11) ─────────────── */

/* NS state — countdown placeholder */
.player-frame__placeholder--ns {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
}
.ns-countdown {
    text-align: center;
    padding: 20px;
    max-width: 90%;
}
.ns-countdown__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    /* white at 85% alpha — readable on bright blur bg (red jerseys, crowd
       photos) while remaining clearly secondary to the amber timer below. */
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}
.ns-countdown__timer {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--primary, #f59e0b);
    line-height: 1;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
}
.ns-countdown__kickoff {
    font-size: 13px;
    color: var(--text, #fff);
    margin-bottom: 18px;
    font-weight: 600;
}
.ns-countdown__watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--text, #fff);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ns-countdown__watch-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--primary, #f59e0b);
}
@media (max-width: 640px) {
    .ns-countdown { padding: 10px 12px; }
    .ns-countdown__label { font-size: 10px; margin-bottom: 4px; }
    .ns-countdown__timer { font-size: 32px; margin-bottom: 4px; }
    .ns-countdown__kickoff { font-size: 11px; margin-bottom: 8px; }
    .ns-countdown__watch-btn { padding: 6px 12px; font-size: 11px; }
}

/* FT state — final score showcase */
.player-frame__placeholder--ft {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0f0f 100%);
}
.ft-result { text-align: center; padding: 20px; max-width: 90%; }
.ft-result__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-2, #9ca3af);
    margin-bottom: 16px;
}
.ft-result__score {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.ft-result__team {
    color: var(--text, #fff);
    font-size: 14px;
    max-width: 200px;
    text-align: center;
    line-height: 1.2;
}
.ft-result__digits {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary, #f59e0b);
    line-height: 1;
    min-width: 140px;
}
.ft-result__league {
    font-size: 12px;
    color: var(--text-2, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (max-width: 640px) {
    .ft-result__digits { font-size: 44px; min-width: 110px; }
    .ft-result__team { font-size: 12px; max-width: 100px; }
    .ft-result__score { gap: 12px; }
}

/* Goal flash overlay (fires when score increments) */
.goal-flash {
    position: absolute; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    background: radial-gradient(circle at center, rgba(16,185,129,0.95) 0%, rgba(16,185,129,0.7) 50%, rgba(0,0,0,0) 100%);
    z-index: 20;
    pointer-events: none;
}
.goal-flash.is-active {
    display: flex;
    animation: goalFlashIn 0.3s ease-out, goalFlashOut 0.4s ease-in 3s forwards;
}
.goal-flash__text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 84px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0,0,0,0.8);
    letter-spacing: 0.08em;
    animation: goalBounce 0.6s ease-out;
}
@keyframes goalFlashIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes goalFlashOut {
    from { opacity: 1; }
    to   { opacity: 0; transform: scale(1.1); }
}
@keyframes goalBounce {
    0% { transform: scale(0.5) rotate(-8deg); }
    50% { transform: scale(1.15) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}
@media (max-width: 640px) {
    .goal-flash__text { font-size: 56px; }
}

/* NS servers collapsed by default — match belum start, channel tidak siaran */
.servers--collapsed .servers__grid,
.servers--collapsed .servers__more { display: none; }
.servers--collapsed.is-expanded .servers__grid,
.servers--collapsed.is-expanded .servers__more { display: grid; }

.servers__head { display: flex; align-items: center; gap: 12px; }
.servers__toggle {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    color: var(--text-2, #9ca3af);
    border: 1px solid rgba(255,255,255,0.1);
    width: 28px; height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: transform 0.2s, background 0.15s;
}
.servers__toggle:hover { background: rgba(255,255,255,0.12); }
.servers--collapsed.is-expanded .servers__toggle { transform: rotate(180deg); }

/* ── Player NS/FT background image (blurred) + team-bigshot logos ──────── */
.player-frame__placeholder--ns,
.player-frame__placeholder--ft {
    position: relative;
    overflow: hidden;
}
/* Bg image lives on ::before so we can blur it without affecting child content.
   Negative inset hides the soft fringe a strong filter:blur leaves at edges. */
.player-frame__placeholder--ns::before,
.player-frame__placeholder--ft::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--bg-img, url('/img/featured-stadium-bg.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Lighter — let the stadium image actually be visible as backdrop. */
    filter: blur(14px) brightness(0.75) saturate(1.1);
    transform: scale(1.08);
    z-index: 0;
    pointer-events: none;
}
/* Vignette-only overlay — the image itself is already darkened via filter:brightness
   on ::before, so this is just for a subtle bottom-fade hierarchy, not full blackout. */
.player-frame__bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.player-frame__bg-overlay--ft {
    background: linear-gradient(180deg,
        rgba(0,0,0,0.20) 0%,
        rgba(40,10,10,0.40) 60%,
        rgba(10,5,5,0.60) 100%);
}

/* Big team logos floating above countdown */
.player-frame__teams-overlay {
    position: absolute;
    top: 16%;
    left: 0; right: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 28px;
    z-index: 2;
}
.team-bigshot {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    display: grid; place-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}
.team-bigshot img {
    width: 56px; height: 56px;
    object-fit: contain;
}
.team-bigshot span {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 22px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.team-bigshot__vs {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-2, #9ca3af);
    letter-spacing: 0.1em;
    opacity: 0.65;
}

/* Push ns-countdown below the floating team logos */
.player-frame__placeholder--ns .ns-countdown {
    position: relative;
    z-index: 2;
    margin-top: 60px;
}
.player-frame__placeholder--ft .ft-result {
    position: relative;
    z-index: 2;
    /* Push below floating .team-bigshot logos (mirrors NS countdown spacing). */
    margin-top: 60px;
}

@media (max-width: 640px) {
    /* Mobile: keep teams-overlay visible but smaller; tighter top-offset so it
       sits in the upper third without overlapping the countdown stack. */
    .player-frame__teams-overlay { top: 14%; gap: 14px; }
    .team-bigshot { width: 40px; height: 40px; }
    .team-bigshot img { width: 30px; height: 30px; }
    .team-bigshot span { font-size: 11px; }
    .team-bigshot__vs { font-size: 13px; }
    /* Tight but not touching — small breathing room between logos and countdown/result. */
    .player-frame__placeholder--ns .ns-countdown,
    .player-frame__placeholder--ft .ft-result { margin-top: 28px; }
}

/* ── Text readability over arbitrary background images ──────────
   Strategy: opaque dark gradient overlay (declared above) + text-shadow on all visible text. */

/* Strong text-shadow ensures readability regardless of bg color */
.ns-countdown__label,
.ns-countdown__kickoff,
.ns-countdown__timer,
.ft-result__label,
.ft-result__team,
.ft-result__digits,
.ft-result__league {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.9),
        0 2px 8px rgba(0,0,0,0.7),
        0 0 16px rgba(0,0,0,0.4);
}
.ns-countdown__timer {
    /* Extra glow on timer specifically */
    text-shadow:
        0 0 24px rgba(245, 158, 11, 0.5),
        0 2px 4px rgba(0,0,0,0.95),
        0 4px 16px rgba(0,0,0,0.8);
}
.ft-result__digits {
    text-shadow:
        0 0 24px rgba(245, 158, 11, 0.45),
        0 2px 4px rgba(0,0,0,0.95),
        0 4px 16px rgba(0,0,0,0.8);
}

/* Team-bigshot floating circles — stronger border + bg untuk visibility */
.team-bigshot {
    background: rgba(15,15,15,0.7);
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.team-bigshot span {
    text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}
.team-bigshot__vs {
    color: #fff;
    opacity: 0.85;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* ============================================================
   /jadwal + /skor pages — list hero, day picker, leagues directory
   ============================================================ */

/* List page hero — title + sub line above all content */
.list-hero {
    margin: 8px 0 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--bg-elev2) 0%, var(--bg-elev1) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.list-hero__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-0);
}
.list-hero__sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-2);
}

/* Day picker — horizontal scrollable strip */
.day-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}
.day-picker::-webkit-scrollbar { height: 6px; }
.day-picker::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.day-btn {
    flex: 0 0 auto;
    min-width: 78px;
    padding: 10px 14px;
    background: var(--bg-elev2);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.day-btn:hover {
    background: var(--bg-elev3);
    border-color: var(--brand-1);
    transform: translateY(-1px);
}
.day-btn.is-active {
    background: var(--brand-1);
    border-color: var(--brand-1);
    color: #fff;
}
.day-btn__dow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}
.day-btn.is-active .day-btn__dow { opacity: 1; }
.day-btn__dom {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}
.day-btn__count {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}
.day-btn.is-active .day-btn__count {
    background: rgba(255,255,255,0.25);
}

/* Per-league section header on /jadwal */
.section--league {
    margin-bottom: 22px;
}
.league-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: var(--bg-elev2);
    border-left: 3px solid var(--brand-1);
    border-radius: 8px;
}
.league-head__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-0);
    letter-spacing: 0.02em;
}
.league-head__count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-2);
    font-weight: 600;
}

/* Empty state placeholder */
.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-2);
    background: var(--bg-elev1);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

/* /skor — country-grid + country-card */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.country-card {
    background: var(--bg-elev1);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.1s;
}
.country-card:hover {
    border-color: var(--brand-1);
    transform: translateY(-2px);
}
.country-card--has-live {
    border-color: rgba(239, 68, 68, 0.55);
}
.country-card__hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-elev2);
    border-bottom: 1px solid var(--border);
}
.country-card__flag {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: var(--bg-elev3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-1);
}
.country-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-0);
    flex: 1 1 auto;
}
.country-card__count {
    font-size: 11px;
    color: var(--text-2);
    font-weight: 700;
    padding: 2px 8px;
    background: var(--bg-elev3);
    border-radius: 999px;
}
.country-card__list {
    padding: 6px 0;
}
.country-league {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--text-1);
    font-size: 13px;
    transition: background 0.12s;
}
.country-league:hover {
    background: var(--bg-elev2);
}
.country-league__tier {
    width: 18px;
    text-align: center;
}
.country-league__name {
    flex: 1 1 auto;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.country-league__count {
    font-size: 11px;
    color: var(--text-2);
    font-weight: 700;
    padding: 1px 7px;
    background: var(--bg-elev3);
    border-radius: 999px;
}
.country-league__live {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--danger, #ef4444);
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}


/* ============================================================
   League group section — polished header for /jadwal grouping
   ============================================================ */
.lgroup {
    margin-bottom: 26px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elev1);
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px -16px rgba(0,0,0,0.45);
}
.lgroup__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 60%),
        linear-gradient(90deg, rgba(245,158,11,0.10) 0%, rgba(245,158,11,0) 35%),
        var(--bg-elev2);
    border-bottom: 1px solid var(--border);
}
.lgroup__flag {
    width: 30px;
    height: 22px;
    flex: 0 0 30px;
    background: linear-gradient(180deg, var(--bg-elev3), #0c0f15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-1);
    border: 1px solid rgba(255,255,255,0.06);
}
.lgroup__title {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.lgroup__name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-0);
    letter-spacing: 0.005em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lgroup__country {
    font-size: 11px;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-top: 2px;
    text-transform: uppercase;
}
.lgroup__tier {
    font-size: 14px;
    opacity: 0.85;
}
.lgroup__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-1);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    padding: 4px 9px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.mrow-list {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Match row — polished livescore-style row
   ============================================================ */
.mrow {
    --row-pad-y: 14px;
    --crest-size: 28px;
    --gap: 14px;

    display: grid;
    grid-template-columns: 28px 64px 1fr 220px;
    align-items: center;
    gap: var(--gap);
    padding: var(--row-pad-y) 18px;
    text-decoration: none;
    color: var(--text-1);
    border-top: 1px solid var(--border);
    background: transparent;
    transition: background 0.12s ease;
    position: relative;
}
.mrow:first-child {
    border-top: none;
}
.mrow:hover {
    background: rgba(255,255,255,0.025);
}
.mrow:hover::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--brand-1, #f59e0b);
    border-radius: 0 2px 2px 0;
}

/* Favorite star (placeholder UI — toggles via inline onclick) */
.mrow__star {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: none;
    background: transparent;
    color: var(--text-3, #6b7280);
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s, transform 0.1s;
}
.mrow__star:hover {
    color: var(--brand-1, #f59e0b);
    background: rgba(245,158,11,0.08);
}
.mrow__star.is-on {
    color: #f59e0b;
}
.mrow__star.is-on svg {
    fill: #f59e0b;
}

/* Time / status block */
.mrow__time-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    gap: 2px;
    min-width: 0;
    position: relative;
}
.mrow__time {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-0);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.mrow.is-finished .mrow__ft {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-2);
    letter-spacing: 0.08em;
    padding: 2px 7px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    line-height: 1;
}
.mrow.is-live .mrow__minute {
    font-size: 13px;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 0.04em;
    padding: 3px 8px 3px 16px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 4px;
    line-height: 1;
    position: relative;
    font-variant-numeric: tabular-nums;
}
.mrow__live-dot {
    position: absolute;
    left: 6px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.55);
    animation: mrow-live-ping 1.4s ease-out infinite;
}
@keyframes mrow-live-ping {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.mrow__kickoff-small {
    font-size: 10.5px;
    color: var(--text-2);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Contest (teams + score) */
.mrow__contest {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.mrow__side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.mrow__side--home {
    justify-content: flex-end;
    text-align: right;
}
.mrow__side--away {
    justify-content: flex-start;
    text-align: left;
}
.mrow__name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    letter-spacing: 0.005em;
}
.mrow__side.is-winner .mrow__name { font-weight: 700; color: #fff; }
.mrow__side.is-loser  .mrow__name { color: var(--text-2); }

.mrow__crest {
    width: var(--crest-size);
    height: var(--crest-size);
    flex: 0 0 var(--crest-size);
    object-fit: contain;
    background: radial-gradient(circle at center, var(--bg-elev3), #0a0d12);
    border-radius: 50%;
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.06);
}
.mrow__crest--text,
.mrow__crest--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: 0.04em;
    padding: 0;
}
.mrow__crest--placeholder {
    color: var(--text-3);
    font-size: 14px;
}

/* Score block (center) */
.mrow__score-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
    min-width: 60px;
}
.mrow__score-block.is-live {
    background: linear-gradient(180deg, rgba(239,68,68,0.10), rgba(239,68,68,0.02));
    border-color: rgba(239,68,68,0.35);
}
.mrow__digit {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-0);
    line-height: 1;
}
.mrow.is-live .mrow__digit { color: #fff; }
.mrow.is-finished .mrow__digit { color: var(--text-1); }
.mrow__dash {
    color: var(--text-3);
    font-weight: 600;
    font-size: 14px;
}
.mrow__vs {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

/* Aside (BIG/HOT chip + broadcast pill) */
.mrow__aside {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}
.mrow__chip {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 4px;
    line-height: 1;
    flex: 0 0 auto;
}
.mrow__chip--big {
    color: #fef3c7;
    background: linear-gradient(135deg, #b45309, #92400e);
    border: 1px solid rgba(245,158,11,0.4);
    box-shadow: 0 0 0 1px rgba(245,158,11,0.15) inset;
}
.mrow__chip--hot {
    color: #fee2e2;
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border: 1px solid rgba(239,68,68,0.45);
    box-shadow: 0 0 0 1px rgba(239,68,68,0.15) inset;
}

.mrow__broadcast {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-1);
    max-width: 180px;
    min-width: 0;
}
.mrow__broadcast-icon {
    opacity: 0.65;
    flex: 0 0 12px;
}
.mrow__broadcast-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.mrow__broadcast-more {
    flex: 0 0 auto;
    padding: 1px 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-1);
}

/* Status modifier base styles */
.mrow.is-finished { opacity: 0.92; }
.mrow.is-finished .mrow__name { color: var(--text-1); }

/* Mobile breakpoint — stack to 2 rows */
@media (max-width: 720px) {
    .mrow {
        grid-template-columns: 26px 56px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 12px 14px;
        --crest-size: 24px;
    }
    .mrow__aside {
        grid-column: 2 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .mrow__name { font-size: 13.5px; }
    .mrow__digit { font-size: 16px; }
    .mrow__contest { grid-template-columns: 1fr 56px 1fr; gap: 10px; }
    .mrow__broadcast { font-size: 11px; padding: 4px 9px; }
    .lgroup__head { padding: 12px 14px; }
}

/* =========================================================
 * Highlight pages — list + watch
 * Goal: cinematic editorial highlight grid (Sky Sports / OneFootball feel)
 * ========================================================= */

.hl-page { padding-bottom: 32px; }

/* ── Featured hero ───────────────────────────────────────── */
.hl-hero {
    position: relative;
    display: block;
    margin: 16px 16px 18px;
    aspect-ratio: 21 / 9;
    max-height: 460px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    box-shadow: 0 18px 36px -16px rgba(0,0,0,0.55);
    transition: transform 220ms ease;
}
.hl-hero:hover { transform: translateY(-2px) scale(1.005); }
.hl-hero:hover .hl-hero__cta { background: #fff; color: #0a0a0a; transform: translateX(2px); }
@media (max-width: 720px) {
    .hl-hero { margin: 8px 12px 14px; aspect-ratio: 16/10; border-radius: 12px; }
}

.hl-hero__bg { position: absolute; inset: 0; z-index: 1; }
.hl-hero__bg img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 600ms ease;
}
.hl-hero:hover .hl-hero__bg img { transform: scale(1.04); }
.hl-hero__bg-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.58) 38%, rgba(0,0,0,0.18) 62%, rgba(0,0,0,0.0) 92%),
        linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.0) 55%);
}

.hl-hero__body {
    position: absolute; inset: 0; z-index: 2;
    padding: 24px 28px 22px;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 10px;
}
@media (max-width: 720px) { .hl-hero__body { padding: 14px 16px 14px; gap: 8px; } }

.hl-hero__tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.94);
    width: fit-content;
}
.hl-hero__tag-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 0 4px rgba(255,59,59,0.18);
    animation: hl-pulse 1.6s ease-out infinite;
}
@keyframes hl-pulse {
    0%   { box-shadow: 0 0 0 0px rgba(255,59,59,0.4); }
    100% { box-shadow: 0 0 0 8px rgba(255,59,59,0); }
}
.hl-hero__tag-sep { color: rgba(255,255,255,0.36); margin: 0 2px; }
.hl-hero__league-logo { width: 18px; height: 18px; object-fit: contain; }
.hl-hero__league-name { color: rgba(255,255,255,0.88); }

.hl-hero__teams {
    display: flex; align-items: center; gap: 18px;
    margin: 0;
    font-size: 28px; font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
@media (max-width: 720px) { .hl-hero__teams { font-size: 18px; gap: 10px; } }
.hl-hero__team { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.hl-hero__team--away { justify-content: flex-end; }
.hl-hero__team-logo {
    width: 36px; height: 36px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
@media (max-width: 720px) { .hl-hero__team-logo { width: 24px; height: 24px; } }
.hl-hero__score {
    padding: 4px 14px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.hl-hero__score-dash { color: rgba(255,255,255,0.42); padding: 0 4px; }
.hl-hero__vs {
    color: rgba(255,255,255,0.5);
    font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.hl-hero__time { font-size: 12px; color: rgba(255,255,255,0.62); margin-top: 2px; }
.hl-hero__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.92);
    color: #0a0a0a;
    border-radius: 8px;
    font-size: 13px; font-weight: 700;
    width: fit-content;
    margin-top: 8px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.hl-hero__play-icon { width: 16px; height: 16px; display: inline-flex; }
.hl-hero__play-icon svg { width: 100%; height: 100%; }

/* ── League filter chips ─────────────────────────────────── */
.hl-chips {
    display: flex; gap: 8px;
    padding: 0 16px 14px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hl-chips::-webkit-scrollbar { display: none; }
.hl-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px 7px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    white-space: nowrap; text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.hl-chip:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); color: #fff; }
/* Active state — tinted accent (matches global .chip.active treatment) */
.hl-chip.is-active {
    background: var(--primary-soft);
    border-color: var(--primary-ring);
    color: var(--primary);
}
.hl-chip__logo { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.hl-chip__name { text-transform: uppercase; }
.hl-chip__count {
    background: rgba(0,0,0,0.32); color: rgba(255,255,255,0.92);
    padding: 2px 7px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700; line-height: 1;
    min-width: 18px; text-align: center;
}
.hl-chip.is-active .hl-chip__count { background: var(--primary); color: var(--primary-ink); }

/* ── League section row ──────────────────────────────────── */
.hl-section { margin: 0 0 24px; }
.hl-section__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 0 16px 10px;
}
.hl-section__title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.hl-section__logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.hl-section__name {
    font-size: 15px; font-weight: 800;
    margin: 0; color: #fff;
    text-transform: uppercase; letter-spacing: 0.04em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hl-section__count {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.62);
    font-size: 10.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
    line-height: 1.5;
}
.hl-section__more {
    display: inline-flex; align-items: center; gap: 4px;
    color: rgba(255,255,255,0.62);
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    transition: color 120ms ease;
}
.hl-section__more:hover { color: #fff; }
.hl-section__more svg { transition: transform 120ms ease; }
.hl-section__more:hover svg { transform: translateX(2px); }

.hl-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 14px;
    padding: 0 16px 4px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.hl-row::-webkit-scrollbar { height: 6px; }
.hl-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.hl-row > .hcard { scroll-snap-align: start; }
@media (min-width: 1100px) { .hl-row { grid-auto-columns: minmax(300px, 340px); } }
@media (max-width: 720px)  { .hl-row { grid-auto-columns: 260px; gap: 10px; padding: 0 12px 4px; } }

/* ── Filtered grid view ──────────────────────────────────── */
.hl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 0 16px 24px;
}
@media (max-width: 720px) { .hl-grid { grid-template-columns: 1fr; padding: 0 12px 24px; } }

/* ── Card ────────────────────────────────────────────────── */
.hcard {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    position: relative;
}
.hcard:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.045);
    border-color: var(--border-hover);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.55);
}

.hcard__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
}
.hcard__thumb > img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 400ms ease, filter 200ms ease;
    /* Upstream thumbnails datang dari banyak uploader berbeda — sebagian
     * terang (action photo), sebagian gelap (score card graphic), sebagian
     * putih bright (preview template). Normalisasi sedikit supaya extreme
     * tidak terlalu jauh berbeda satu sama lain. */
    filter: brightness(0.95) saturate(1.05) contrast(1.02);
}
.hcard__thumb-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}
.hcard:hover .hcard__thumb > img { transform: scale(1.05); filter: brightness(0.92); }

.hcard__gradient {
    position: absolute; inset: 0;
    /* Two-stop vignette — keeps thumbnail readable while ensuring league pill
     * (top-left) + time chip (top-right) + score chip (bottom-right) always
     * read cleanly regardless of upstream thumb brightness. */
    background:
        linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.22) 36%, rgba(0,0,0,0) 56%),
        linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 26%);
    pointer-events: none;
}

.hcard__league-pill {
    position: absolute; top: 9px; left: 9px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 8px 4px 6px;
    background: rgba(0,0,0,0.68);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--r-sm);
    max-width: calc(100% - 18px);
    overflow: hidden;
}
.hcard__league-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcard__league-pill-logo { width: 13px; height: 13px; object-fit: contain; flex-shrink: 0; }

.hcard__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(255, 59, 59, 0);
    border: 2px solid rgba(255,255,255,0);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease, border-color 180ms ease;
    pointer-events: none;
}
.hcard__play svg { width: 22px; height: 22px; margin-left: 3px; }
.hcard:hover .hcard__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255,59,59,0.94);
    border-color: rgba(255,255,255,0.16);
}

.hcard__score-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 8px;
    padding: 9px 12px 11px;
    z-index: 1;
}
.hcard__score-team { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hcard__score-team--away { justify-content: flex-end; }
.hcard__score-logo {
    width: 16px; height: 16px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.hcard__score-name {
    font-size: 11.5px; font-weight: 700;
    color: rgba(255,255,255,0.96);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.hcard__score-digits {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(6px);
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
.hcard__score-num { font-size: 14px; font-weight: 900; color: #fff; line-height: 1; }
.hcard__score-dash { font-size: 11px; color: rgba(255,255,255,0.4); }

.hcard__foot {
    padding: 9px 12px 11px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.hcard__match {
    font-size: 12.5px; font-weight: 600;
    color: rgba(255,255,255,0.84);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1 1 auto; min-width: 0;
}
.hcard__match-vs { color: rgba(255,255,255,0.36); font-weight: 500; padding: 0 2px; }
.hcard__time {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.hcard__time svg { opacity: 0.7; }

/* ──────────────────────────────────────────────────────────
 * WATCH PAGE — /highlight/{id}
 * ────────────────────────────────────────────────────────── */
.hl-watch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    padding: 16px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
}
@media (max-width: 980px) {
    .hl-watch { grid-template-columns: 1fr; padding: 0 0 16px; gap: 0; }
}
.hl-watch__player-col {
    display: flex; flex-direction: column; gap: 16px;
    min-width: 0;
    width: 100%;
}

.hl-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.hl-player > * {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
@media (max-width: 980px) { .hl-player { border-radius: 0; max-width: none; } }
.hl-player__video {
    width: 100%; height: 100%; display: block; background: #000;
    /* Cover the full 16:9 container so video area stays consistent across all
     * highlights. Source 4:3 (legacy) gets tepi-cropped — acceptable trade for
     * not letterbox-shrinking the player. (Tried `contain` 2026-05-18, source
     * 4:3 pillarboxed = video visible area mengecil; revert.) */
    object-fit: cover;
}
.hl-player__overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    background: rgba(10,10,10,0.92);
    color: #fff; text-align: center; padding: 16px;
}
.hl-player__overlay p { margin: 0; font-size: 14px; line-height: 1.5; }
.hl-player__overlay p strong { color: #ff5252; }
.hl-player__btn {
    background: #fff; color: #0a0a0a;
    padding: 8px 16px; border-radius: 4px; border: 0;
    font-size: 13px; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-block;
}

/* Highlight match header — stadium style mirroring sport99 `.dt-header`.
   2026-05-18 rewrite: radial vignette bg, centered league pill, big score
   grid (1fr 100px 1fr) with team logo+name stacked column-style. */
.hl-info {
    position: relative;
    background: radial-gradient(circle at center, #1f2129 0%, #0b0c0f 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 20px 18px;
    overflow: hidden;
    width: 100%;
}
@media (max-width: 980px) { .hl-info { margin: 0 12px; border-radius: var(--r-md); padding: 18px 14px; } }

/* League pill — centered, rounded, subtle */
.hl-info__league {
    text-align: center;
    margin-bottom: 18px;
}
.hl-info__league > span {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px; font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.hl-info__league-logo {
    width: 22px; height: 22px; object-fit: contain;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    padding: 2px;
}

/* Score board — symmetric 3-col grid. Home left, score center, away right. */
.hl-info__teams {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    align-items: center;
    gap: 5px;
}
.hl-info__team {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
    text-align: center;
}
.hl-info__team--away { justify-content: center; }   /* override row alignment */
.hl-info__team-logo {
    width: 65px; height: 65px; object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    background: transparent; border-radius: 0; padding: 0; box-shadow: none;
}
.hl-info__team-name {
    font-size: 15px; font-weight: 700; color: #fff;
    line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; white-space: normal; text-overflow: clip;
    letter-spacing: -0.01em;
    padding: 0 4px;
}

.hl-info__score {
    /* INLINE row: "3 - 1" on single line (was column-stack bug). */
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent; border: 0; padding: 0; box-shadow: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.hl-info__score-num {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 48px; font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.hl-info__score-sep {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 36px; color: #fff;
    line-height: 1;
    opacity: 0.7;
}

/* Status row (date / FT pill) — centered under score, small caps */
.hl-info__meta {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    justify-content: center;
    font-size: 11px; font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hl-info__dot { color: var(--text-3); opacity: 0.6; }

.hl-info__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.hl-info__back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: #d1d5db; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hl-info__back:hover {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.4);
    color: var(--primary);
}

/* Mobile tweaks — dt-header inspired: smaller logos+score */
@media (max-width: 768px) {
    .hl-info__teams { grid-template-columns: 1fr 90px 1fr; }
    .hl-info__team-logo { width: 50px; height: 50px; }
    .hl-info__team-name { font-size: 13px; }
    .hl-info__score-num { font-size: 34px; }
    .hl-info__score-sep { font-size: 28px; }
}

.hl-alts {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 14px 0 14px 14px;
    display: flex; flex-direction: column; gap: 12px;
}
@media (max-width: 980px) { .hl-alts { margin: 0 12px; padding: 12px 0 12px 12px; } }
.hl-alts__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; padding-right: 14px;
}
.hl-alts__title { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; margin: 0; color: #fff; }
.hl-alts__sub { font-size: 11px; color: rgba(255,255,255,0.5); }
.hl-alts__row {
    display: flex; gap: 10px;
    overflow-x: auto; overflow-y: hidden; padding-right: 14px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.hl-alts__row::-webkit-scrollbar { height: 6px; }
.hl-alts__row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.hl-alt {
    flex: 0 0 200px;
    display: flex; flex-direction: column; gap: 6px;
    text-decoration: none; color: inherit;
    border-radius: 6px; overflow: hidden;
    transition: transform 160ms ease;
}
.hl-alt:hover { transform: translateY(-2px); }
.hl-alt__thumb {
    position: relative; aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-radius: 6px; overflow: hidden;
}
.hl-alt__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-alt__play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background 160ms ease, transform 160ms ease;
    pointer-events: none;
}
.hl-alt__play svg { margin-left: 2px; }
.hl-alt:hover .hl-alt__play {
    background: rgba(255,59,59,0.94);
    transform: translate(-50%, -50%) scale(1.1);
}
.hl-alt__title {
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.84);
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.hl-watch__related { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 980px) { .hl-watch__related { margin: 16px 12px 0; } }
.hl-related-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px;
    padding: 0 2px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}
.hl-related-head__title { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; margin: 0; color: #fff; }
.hl-related-head__sub { font-size: 11px; color: rgba(255,255,255,0.55); }
.hl-related-empty { padding: 16px; text-align: center; color: rgba(255,255,255,0.55); font-size: 13px; }
.hl-related-list { display: flex; flex-direction: column; gap: 10px; }

/* ── Horizontal row-card for sidebar (Highlight watch page "HIGHLIGHT LAIN")
 * Replaces the broken `.hl-related-list .hcard{flex-direction:row}` hack —
 * that left the right half empty because the partial only had .hcard__thumb,
 * no sibling content panel. .hrow has explicit thumb + body columns. */
.hrow {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 10px;
    padding: 6px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    text-decoration: none; color: inherit;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.hrow:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(2px);
}
.hrow__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-radius: 6px;
    overflow: hidden;
}
.hrow__thumb > img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    /* Same normalisation as .hcard__thumb — Highlightly upstream thumbs
     * vary wildly in brightness/contrast. */
    filter: brightness(0.95) saturate(1.05) contrast(1.02);
}
/* Subtle dark veil over thumb so very-bright thumbnails don't pop too hard
 * against the rest of the dark UI. Sits above img, below play button. */
.hrow__thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}
.hrow__thumb-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}
.hrow__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(0,0,0,0);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(0.34,1.56,0.64,1), background 160ms ease;
    pointer-events: none;
}
.hrow__play svg { width: 14px; height: 14px; margin-left: 2px; }
.hrow:hover .hrow__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255,59,59,0.92);
}

.hrow__body {
    display: flex; flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 4px;
    padding-right: 4px;
}
.hrow__league {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 600;
    min-width: 0;
}
.hrow__league-logo {
    width: 11px; height: 11px;
    object-fit: contain; flex-shrink: 0;
}
.hrow__league-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hrow__match {
    display: flex; flex-direction: column; gap: 2px;
    margin: 1px 0;
}
.hrow__team {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600;
    color: rgba(255,255,255,0.95);
    min-width: 0;
}
.hrow__team-logo {
    width: 14px; height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}
.hrow__team-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.hrow__team-score {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
    padding-left: 6px;
    min-width: 14px;
    text-align: right;
}
.hrow__time {
    font-size: 10px;
    color: rgba(255,255,255,0.42);
    margin-top: 2px;
}
.hl-related-list .hcard__match { font-size: 11.5px; }
.hl-related-list .hcard__time { font-size: 10px; }

/* ============================================================
 * Highlight page — hero 2-col, per-league accent, card borders, scroll hints
 * ============================================================ */

/* ── Hero 2-col wrap ─────────────────────────────────────── */
.hl-hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    margin: 16px 16px 22px;
}
@media (max-width: 980px) {
    .hl-hero-wrap { grid-template-columns: 1fr; gap: 12px; margin: 8px 12px 18px; }
}
.hl-hero-wrap > .hl-hero {
    margin: 0;
    aspect-ratio: 16 / 9;
    max-height: none;
}
@media (max-width: 980px) {
    .hl-hero-wrap > .hl-hero { aspect-ratio: 16/10; }
}

/* Hero side: 3 stacked compact cards */
.hl-hero-side {
    display: flex; flex-direction: column;
    gap: 10px;
    min-width: 0;
}
@media (max-width: 980px) {
    .hl-hero-side {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.18) transparent;
    }
    .hl-hero-side::-webkit-scrollbar { height: 6px; }
    .hl-hero-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
}

/* Hero-side switched to .hrow partial (2026-05-13) — proper thumb + body
 * layout. Old .hcard overrides removed (broken — left half empty).
 * Mobile reflow: scroll horizontally instead of stacking. */
@media (max-width: 980px) {
    .hl-hero-side .hrow { flex: 0 0 280px; }
}

/* ── More visible card borders (was almost invisible) ────── */
.hcard {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}
.hcard:hover {
    border-color: rgba(255,59,59,0.5);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 16px 32px -14px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,59,59,0.18);
}

/* ── Per-league accent (color variety) ───────────────────── */
/* Section header gets a colored bar on the left + tinted underline.
 * Cycle through 6 vibrant accent colors so leagues feel distinct. */
.hl-section { position: relative; }
.hl-section__head { position: relative; padding-left: 22px; }
.hl-section__head::before {
    content: '';
    position: absolute;
    left: 16px; top: 6px; bottom: 16px;
    width: 4px;
    background: var(--hl-accent, #ff3b3b);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--hl-accent-glow, rgba(255,59,59,0.3));
}
/* Apply different accents per cycled nth-of-type to give visual variety */
.hl-section:nth-of-type(6n+1) { --hl-accent: #ff3b3b; --hl-accent-glow: rgba(255,59,59,0.32); }   /* red */
.hl-section:nth-of-type(6n+2) { --hl-accent: #3b82f6; --hl-accent-glow: rgba(59,130,246,0.32); } /* blue */
.hl-section:nth-of-type(6n+3) { --hl-accent: #22c55e; --hl-accent-glow: rgba(34,197,94,0.32); }  /* green */
.hl-section:nth-of-type(6n+4) { --hl-accent: #f59e0b; --hl-accent-glow: rgba(245,158,11,0.32); } /* amber */
.hl-section:nth-of-type(6n+5) { --hl-accent: #a855f7; --hl-accent-glow: rgba(168,85,247,0.32); } /* purple */
.hl-section:nth-of-type(6n+6) { --hl-accent: #06b6d4; --hl-accent-glow: rgba(6,182,212,0.32); }  /* cyan */

/* Section count chip picks up the accent tint */
.hl-section__count {
    background: color-mix(in srgb, var(--hl-accent, #ff3b3b) 18%, transparent);
    color: var(--hl-accent, #ff3b3b);
    font-weight: 800;
}

/* ── Scroll hints — arrows + edge fade ───────────────────── */
.hl-section { padding-bottom: 4px; }

/* Position wrapper for row so we can attach arrows + edge-fade */
.hl-row-wrap {
    position: relative;
}
.hl-row-wrap::after,
.hl-row-wrap::before {
    content: '';
    position: absolute;
    top: 0; bottom: 8px;
    width: 48px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.92;
    transition: opacity 200ms ease;
}
.hl-row-wrap::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a 8%, rgba(10,10,10,0.0) 100%);
}
.hl-row-wrap::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a 8%, rgba(10,10,10,0.0) 100%);
    opacity: 0;  /* off by default at start (no left content) */
}
.hl-row-wrap.is-scrolled::before { opacity: 0.92; }
.hl-row-wrap.is-end::after { opacity: 0; }

.hl-row-btn {
    position: absolute;
    top: calc(50% - 28px);
    z-index: 3;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 200ms ease, background 160ms ease, transform 160ms ease;
}
.hl-row-btn:hover {
    background: rgba(255,59,59,0.94);
    border-color: rgba(255,255,255,0.32);
    transform: scale(1.05);
}
.hl-row-btn--prev { left: 6px; }
.hl-row-btn--next { right: 6px; }
.hl-row-wrap:hover .hl-row-btn { opacity: 1; }
.hl-row-wrap.is-start .hl-row-btn--prev { opacity: 0 !important; pointer-events: none; }
.hl-row-wrap.is-end   .hl-row-btn--next { opacity: 0 !important; pointer-events: none; }
@media (max-width: 720px) {
    .hl-row-btn { display: none; }   /* mobile uses native touch scroll */
    .hl-row-wrap::after, .hl-row-wrap::before { width: 28px; }
}

/* ============================================================
 * HIGHLIGHT — drop footer · yellow CTA · elevation · clean sections
 * ============================================================ */

/* #1 — Drop footer chrome (team-name redundant w/ score overlay).
 *      Time stamp now floats top-right of thumbnail. */
.hcard__foot { display: none !important; }   /* hide entirely if any leftover */
.hcard {
    /* Card is now purely poster + overlays — no metadata strip */
    border-radius: 12px;
}
.hcard__time-chip {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    padding: 3px 8px;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.84);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    pointer-events: none;
}

/* #2 — Kill section accent color rotation (gimmicky, contradicts real league
 *      brand colors). Replace with clean header — logo IS the identifier. */
.hl-section:nth-of-type(6n+1),
.hl-section:nth-of-type(6n+2),
.hl-section:nth-of-type(6n+3),
.hl-section:nth-of-type(6n+4),
.hl-section:nth-of-type(6n+5),
.hl-section:nth-of-type(6n+6) {
    --hl-accent: transparent;
    --hl-accent-glow: transparent;
}
.hl-section__head { padding-left: 16px; }
.hl-section__head::before { display: none; }   /* drop the colored bar */
.hl-section__logo { width: 26px; height: 26px; }
.hl-section__name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff;
}
.hl-section__count {
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    margin-left: 2px;
}
.hl-section__count::before { content: '· '; }

/* #3 + #4 — Hero CTA: brand yellow, 44px tall, prominent pill. */
.hl-hero__cta {
    background: #facc15;             /* brand yellow */
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: 999px;
    box-shadow: 0 8px 22px -6px rgba(250,204,21,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.hl-hero__cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px -6px rgba(250,204,21,0.75), inset 0 1px 0 rgba(255,255,255,0.35);
    color: #0a0a0a;
}
.hl-hero:hover .hl-hero__cta { background: #facc15; color: #0a0a0a; transform: translateY(-1px); }
.hl-hero__play-icon { width: 14px; height: 14px; }

/* #5 — Card border → elevation pattern (drop visible border for inset hairline +
 *      drop shadow). Hover: neutral lift instead of red glow. */
.hcard {
    background: transparent;
    border: 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 1px 2px rgba(0,0,0,0.4),
        0 8px 22px -10px rgba(0,0,0,0.5);
}
.hcard:hover {
    transform: translateY(-4px);
    background: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 14px 32px -8px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.06);
}

/* #6 — Stronger bottom gradient to mute YouTube channel branding bleed.
 *      Idle state desaturates so red "HIGHLIGHTS" channel overlays recede. */
.hcard__thumb > img {
    filter: brightness(0.92) saturate(0.92) contrast(1.02);
    transition: transform 400ms ease, filter 200ms ease;
}
.hcard:hover .hcard__thumb > img {
    transform: scale(1.04);
    filter: brightness(1.0) saturate(1.0) contrast(1.02);
}
.hcard__gradient {
    background:
        linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.62) 28%, rgba(0,0,0,0.0) 56%),
        linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.0) 28%);
}

/* #7 — Filter chips: 36px tall, full pill, gap 10px, right-edge mask fade. */
.hl-chips {
    gap: 10px;
    padding: 4px 16px 18px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent 100%);
}
.hl-chip {
    padding: 0 14px;
    height: 36px;
    border-radius: 999px;
    font-size: 13px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.10);
}
.hl-chip.is-active {
    background: #facc15;             /* brand yellow active */
    border-color: #facc15;
    color: #0a0a0a;
    box-shadow: 0 0 0 1px rgba(250,204,21,0.4), 0 4px 14px rgba(250,204,21,0.18);
}
.hl-chip__logo { width: 20px; height: 20px; }
.hl-chip__count {
    margin-left: 2px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    padding: 2px 7px;
}
.hl-chip.is-active .hl-chip__count {
    background: rgba(0,0,0,0.14);
    color: #0a0a0a;
}

/* #8 — Simplify play button on hover: neutral white instead of red.
 *      Less aggressive bounce. */
.hcard__play {
    background: rgba(0,0,0,0);
    border: 0;
}
.hcard:hover .hcard__play {
    background: rgba(255,255,255,0.96);
    color: #0a0a0a;
    border-color: transparent;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%) scale(1);
}
.hcard__play {
    transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
                background 200ms ease;
}

/* #9 — Section spacing: 32px between sections, 28px header padding for rhythm. */
.hl-section { margin: 0 0 32px; }
@media (max-width: 720px) { .hl-section { margin: 0 0 24px; } }

/* #10 — Score overlay: bigger numerals, winner emphasis. */
.hcard__score-digits {
    padding: 4px 10px;
    background: linear-gradient(180deg, rgba(20,20,24,0.85), rgba(0,0,0,0.78));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.4);
}
.hcard__score-name { font-size: 12px; }
.hcard__score-logo {
    width: 18px; height: 18px;
    background: rgba(255,255,255,0.96);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Bonus: pulsing live dot on hero — already exists but tighten color */
.hl-hero__tag-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.18);
}

/* Bonus: scroll arrow buttons — keep visible at 35% opacity (not hover-only),
 *        full on hover. Discovery beats hidden controls. */
.hl-row-btn { opacity: 0.4; }
.hl-row-wrap:hover .hl-row-btn { opacity: 1; }

/* Bonus: peek of next card at right edge — for "more exists" cue.
 *        Adjusted via scroll-padding so last card always partially clipped. */
.hl-row { scroll-padding-right: 80px; }

/* ── Highlight rail (home — below LIVE section) ───────────────────────
 * Horizontal scroll-snap slider, ~20 cards. Each slide is a fixed-width
 * column wrapping the existing .hcard partial unchanged. Mouse drag /
 * trackpad / swipe scroll; keyboard arrows via tabindex on container.
 * Hides default scrollbar but keeps native overflow-x mechanics. */
.hrail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    scroll-behavior: smooth;
    padding: 4px 24px 12px 4px;     /* right pad → last card has breathing room */
    margin: 0 -4px;                  /* bleed for snap alignment */
    -webkit-overflow-scrolling: touch;
}
.hrail::-webkit-scrollbar { height: 6px; }
.hrail::-webkit-scrollbar-track { background: transparent; }
.hrail::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}
.hrail::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

.hrail__slide {
    flex: 0 0 290px;
    scroll-snap-align: start;
}
.hrail__slide .hcard { height: 100%; }

@media (max-width: 720px) {
    .hrail__slide { flex-basis: 240px; }
}
@media (max-width: 480px) {
    .hrail__slide { flex-basis: 210px; }
}

/* === Auth gate modal — shown when a guest taps the chat input === */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.auth-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg-elev1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: auth-modal-pop 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes auth-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.auth-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.auth-modal__close:hover { background: var(--bg-elev2); color: var(--text); }
.auth-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-modal__desc {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 16px;
  line-height: 1.5;
}
.auth-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.auth-modal__actions .action-btn { min-width: 96px; justify-content: center; }

/* ============================================================
   WATCH SCOREBOARD — desktop match page, sits between player + title.
   Hidden ≤1024px where the mhd mobile header takes over.
   ============================================================ */
.watch-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 16px 0 18px;
  padding: 18px 24px;
  background: var(--bg-elev1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.40);
}
.watch-scoreboard__side {
  display: flex; align-items: center;
  gap: 14px;
  min-width: 0;
}
.watch-scoreboard__side--away { justify-content: flex-end; }
.watch-scoreboard__crest {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.10);
  flex: 0 0 auto;
}
.watch-scoreboard__crest img {
  position: relative; z-index: 2;
  width: 78%; height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
.watch-scoreboard__crest-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: rgba(255,255,255,0.78);
  z-index: 1;
}
.watch-scoreboard__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watch-scoreboard__side--away .watch-scoreboard__name { text-align: right; }

.watch-scoreboard__center {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  min-width: 140px;
}
.watch-scoreboard__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 4px 12px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.watch-scoreboard__pill--live {
  background: var(--live);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 3px 16px var(--live-glow);
  animation: pill-breathe 2s cubic-bezier(.4,0,.6,1) infinite;
}
.watch-scoreboard__dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
}
.watch-scoreboard__pill--ft {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.14);
}
.watch-scoreboard__pill--ko {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-ring);
}
.watch-scoreboard__score {
  display: inline-flex; align-items: center; gap: 12px;
  font-variant-numeric: tabular-nums;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.watch-scoreboard__score-dash {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  font-size: 32px;
}
.watch-scoreboard__vs {
  font-size: 26px;
  font-weight: 800;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.06em;
}

/* Hide desktop scoreboard on mobile — mhd takes over at ≤1024px */
@media (max-width: 1024px) {
  .watch-scoreboard { display: none; }
}

/* ============================================================
   SERVER PICKER — sits above .player-frame, shows tab per stream
   (SD default + HD/Alt). Hidden when only 1 stream available.
   ============================================================ */
.server-picker {
  display: flex; flex-wrap: nowrap;       /* single row */
  gap: 6px;
  margin: 0 0 10px;
  overflow-x: auto;                       /* horizontal scroll when overflow */
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.server-picker::-webkit-scrollbar { height: 4px; }
.server-picker::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.server-picker__tab {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto;                         /* don't shrink, don't wrap */
  height: 32px;
  padding: 0 10px;
  background: var(--bg-elev1);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all .18s ease;
}
.server-picker__tab:hover {
  background: var(--bg-elev2);
  color: var(--text-0);
  border-color: rgba(255,255,255,0.14);
}
.server-picker__tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-ring);
  font-weight: 700;
}
.server-picker__tab-num {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--text-1);
}
.server-picker__tab.is-active .server-picker__tab-num {
  background: var(--primary);
  color: var(--primary-ink);
}
.server-picker__tab-label {
  letter-spacing: 0.02em;
}
.server-picker__tab-hint {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.server-picker__tab.is-active .server-picker__tab-hint {
  background: rgba(251,191,36,0.15);
  color: var(--primary);
}

/* ============================================================
   JADWAL PAGE — schedule view (sticky day pills + LIVE rail +
   league-grouped compact rows). Multi-author CSS pieced together
   from 20-agent build, normalized to real token names.
   ============================================================ */

/* JADWAL HEAD + FILTER */
.jadwal { padding-top: 8px; }
.jadwal__head { margin-bottom: 14px; }
.jadwal__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin: 0 0 4px 0;
  line-height: 1.2;
}
.jadwal__sub {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.4;
}
.jadwal__filter {
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.jadwal__filter-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--text-1);
  user-select: none;
}
.jadwal__filter-toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--text-3);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color .15s, border-color .15s;
  flex-shrink: 0;
}
.jadwal__filter-toggle input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.jadwal__filter-toggle input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--primary-ink);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* JADWAL DAY PILLS — sticky horizontal scroller */
.jadwal-pills-wrap {
  position: sticky;
  top: var(--header-h, 56px);
  z-index: 40;
  width: 100%;
  background: rgba(26,28,31,0.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 14px;
}
.jadwal-pills-wrap.is-stuck { box-shadow: 0 4px 16px -8px rgba(0,0,0,0.6); }
.jadwal-pills {
  display: flex; gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jadwal-pills::-webkit-scrollbar { display: none; }
.jadwal-pill {
  flex: 0 0 auto;
  min-width: 64px;
  height: 52px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-elev2);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.jadwal-pill:hover {
  background: var(--bg-elev3);
  border-color: rgba(255,255,255,0.12);
}
.jadwal-pill__label { font-size: 13px; font-weight: 700; line-height: 1.1; }
.jadwal-pill__short { font-size: 11px; line-height: 1.1; color: var(--text-3); font-weight: 500; }
.jadwal-pill__count {
  font-size: 10px; line-height: 1;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
  opacity: 0.85;
}
.jadwal-pill.is-active {
  background: var(--primary-soft);
  border-color: var(--primary-ring);
}
.jadwal-pill.is-active .jadwal-pill__label { color: var(--primary); }
.jadwal-pill:focus-visible { outline: 2px solid var(--primary-ring); outline-offset: 2px; }

/* JADWAL LIVE RAIL */
.jadwal-live-rail { margin: 16px 0; }
.jadwal-live-rail__head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
}
.jadwal-live-rail__title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
}
.jadwal-live-rail__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.5s ease-in-out infinite;
}
.jadwal-live-rail__count { font-size: 11px; color: var(--text-3); }
.jadwal-live-rail__see-all {
  margin-left: auto; font-size: 13px; color: var(--primary);
  text-decoration: none;
}
.jadwal-live-rail__see-all:hover { text-decoration: underline; }
.jadwal-live-rail__scroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.jadwal-live-rail__scroll::-webkit-scrollbar { display: none; }
.jadwal-live-card {
  flex-shrink: 0; width: 280px; height: 200px;
  border-radius: 12px; overflow: hidden; position: relative;
  scroll-snap-align: start;
  background: var(--bg-elev2);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
}
.jadwal-live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.jadwal-live-card__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.jadwal-live-card__pill {
  position: absolute; top: 8px; left: 8px;
  background: var(--live); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 2;
}
.jadwal-live-card__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}
.jadwal-live-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  z-index: 1;
}
.jadwal-live-card__teams {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jadwal-live-card__meta {
  font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* JADWAL LEAGUE SECTION */
.jadwal-league { margin: 20px 0; }
.jadwal-league__head {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--primary);
  margin-bottom: 4px;
}
.jadwal-league__logo {
  width: 22px; height: 22px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  flex-shrink: 0;
}
.jadwal-league__name {
  font-size: 15px; font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.01em;
}
.jadwal-league__count {
  color: var(--text-3);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.jadwal-league__count::before { content: "· "; }
.jadwal-tier3-accordion {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.jadwal-tier3-accordion summary {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
  color: var(--text-2);
  font-weight: 700; font-size: 13px;
}
.jadwal-tier3-accordion summary::-webkit-details-marker { display: none; }
.jadwal-tier3-accordion summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  transition: transform .2s ease;
}
.jadwal-tier3-accordion[open] summary::after { transform: rotate(180deg); }
.jadwal-tier3-accordion summary:hover { color: var(--text-0); }

/* JADWAL ROW — compact 1-line match */
.jadwal-row {
  display: grid;
  grid-template-columns: 56px 1fr 110px 36px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  min-height: 52px;
  text-decoration: none;
  color: var(--text-1);
  scroll-margin-top: 120px;     /* a11y: sticky pill won't hide focus */
}
.jadwal-row:hover { background: var(--bg-hover); color: var(--text-0); }
.jadwal-row:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: -2px;
}
.jadwal-row__time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.jadwal-row__teams {
  display: flex; align-items: center;
  gap: 8px;
  font-size: 14px; font-weight: 600;
  min-width: 0;
}
.jadwal-row__home, .jadwal-row__away {
  display: flex; align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}
.jadwal-row__home { justify-content: flex-end; }
.jadwal-row__away { justify-content: flex-start; }
.jadwal-row__home img, .jadwal-row__away img {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  flex-shrink: 0;
}
.jadwal-row__home span, .jadwal-row__away span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jadwal-row__vs {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  flex: 0 0 auto;
}
.jadwal-row__status {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.jadwal-row__live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--live); color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.08em;
}
.jadwal-row__live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.jadwal-row__score {
  color: var(--text-0);
  font-size: 14px; font-weight: 800;
}
.jadwal-row__ft {
  color: var(--text-2);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jadwal-row__cta { text-align: right; }
.jadwal-row__play { color: var(--primary); font-size: 16px; }
.jadwal-row__no-stream { color: var(--text-3); font-size: 14px; }
.jadwal-row.jadwal-row--live { box-shadow: inset 3px 0 0 var(--live); }

/* JADWAL EMPTY STATE */
.jadwal-empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.jadwal-empty__icon { font-size: 56px; opacity: 0.45; margin-bottom: 16px; }
.jadwal-empty__title {
  font-size: 18px; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.jadwal-empty__body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.jadwal-empty__body a { color: var(--primary); text-decoration: none; }
.jadwal-empty__body a:hover { text-decoration: underline; }

/* "Soon"-highlighted row: nearest kickoff to now (target=today only). */
.jadwal-row.is-soon {
  background: linear-gradient(90deg, rgba(255,193,7,0.08), transparent 50%);
  box-shadow: inset 3px 0 0 var(--primary);
}
.jadwal-row.jadwal-row--live.is-soon {
  box-shadow: inset 3px 0 0 var(--live);
}

/* JADWAL MOBILE OVERRIDES */
@media (max-width: 768px) {
  .jadwal-row { grid-template-columns: 48px 1fr auto auto; }
  .jadwal-row__home img, .jadwal-row__away img { width: 16px; height: 16px; }
  .jadwal-row__teams { font-size: 13px; }
  .jadwal-row__vs { display: none; }
  .jadwal-pill { height: 44px; padding: 6px 12px; }
  .jadwal-pill__label { font-size: 12px; }
  .jadwal-pill__short { font-size: 10px; }
  .jadwal-pill__count { display: none; }
  .jadwal-live-card { width: 240px; }
  .jadwal-live-card__teams { font-size: 12px; }
  .jadwal-league__head { padding: 8px 0 8px 10px; }
  .jadwal-league__name { font-size: 14px; }
}

/* ── MATCH PAGE REBUILD ──────────────────────────────────── */

/* MATCH TABS — sticky horizontal tab bar */
.match-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border-1);
  position: sticky;
  top: 56px;
  background: var(--bg-0);
  z-index: 5;
  margin: 0 0 16px;
  scroll-snap-type: x proximity;
}
.match-tabs::-webkit-scrollbar { display: none; }
.match-tabs__tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  scroll-snap-align: start;
  text-decoration: none;
}
.match-tabs__tab:hover { color: var(--text-1); }
.match-tabs__tab:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: -2px;
}
.match-tabs__tab.is-active {
  color: var(--text-0);
  font-weight: 700;
  border-bottom-color: var(--primary);
}
.match-tabs__tab-count {
  color: var(--text-3);
  font-size: 11px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--bg-elev1);
}
.match-tabs__tab.is-active .match-tabs__tab-count {
  color: var(--primary);
  background: rgba(255,193,7,0.12);
}

/* TAB PANELS — state-aware visibility with fade */
.tab-panel {
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.tab-panel--active {
  display: block;
  opacity: 1;
}
.tab-panel--hidden { display: none; }

/* STATS TAB — bidirectional bar rows */
.stat-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background .15s ease;
}
.stat-row:hover { background: var(--bg-hover); }
.stat-row__value {
  font-size: 14px; font-weight: 700;
  color: var(--text-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat-row__value--home { text-align: right; }
.stat-row__value--away { text-align: left; }
.stat-row__bars {
  display: flex; align-items: center;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elev1);
  overflow: hidden;
}
.stat-row__bar {
  height: 100%;
  transition: width .35s ease;
}
.stat-row__bar--home {
  margin-left: auto;
  background: var(--primary);
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.stat-row__bar--away {
  margin-right: auto;
  background: var(--text-2);
  opacity: 0.65;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.stat-row__label {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px; font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-row + .stat-row { margin-top: 6px; }
.stat-row.is-leading-home .stat-row__value--home { color: var(--primary); }
.stat-row.is-leading-away .stat-row__value--away { color: var(--text-0); }

/* H2H TAB — form chips, fixture list, two-column recent */
.h2h-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  background: var(--bg-elev1);
  border-radius: 8px;
  margin-bottom: 16px;
}
.h2h-form__side {
  display: flex; align-items: center;
  gap: 6px;
}
.h2h-form__side--home { justify-content: flex-end; }
.h2h-form__side--away { justify-content: flex-start; }
.h2h-form__label {
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h2h-form__chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.h2h-form__chip--w { background: #22c55e; }
.h2h-form__chip--d { background: var(--bg-elev2); color: var(--text-2); }
.h2h-form__chip--l { background: #ef4444; }
.h2h-form__chip--n { background: var(--bg-elev2); color: var(--text-3); opacity: 0.6; }

.h2h-matches {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.h2h-matches__row {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
  color: var(--text-1);
  text-decoration: none;
  transition: background .12s ease;
}
.h2h-matches__row:hover { background: var(--bg-hover); color: var(--text-0); }
.h2h-matches__row:last-child { border-bottom: none; }
.h2h-matches__date {
  font-size: 11px; font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.h2h-matches__teams {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.h2h-matches__home, .h2h-matches__away {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.h2h-matches__home { text-align: right; }
.h2h-matches__away { text-align: left; }
.h2h-matches__score {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-0);
  background: var(--bg-elev2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-size: 12.5px;
}
.h2h-matches__comp {
  text-align: right;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.h2h-recent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.h2h-recent__column {
  background: var(--bg-elev1);
  border-radius: 8px;
  padding: 12px;
}
.h2h-recent__title {
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-1);
}

/* LINEUP TAB — pitch SVG, bench grid, injuries list */
.lineup-pitch {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 5 / 8;
  margin: 0 auto 24px;
  background: linear-gradient(180deg, #1a6b3a 0%, #15823f 50%, #1a6b3a 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18), 0 6px 20px rgba(0,0,0,0.3);
}
.lineup-pitch svg, .lineup-pitch__svg {
  display: block;
  width: 100%; height: 100%;
}
.lineup-pitch__player {
  display: flex; flex-direction: column; align-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}
.lineup-pitch__player-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elev2);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform .15s ease;
}
.lineup-pitch__player:hover .lineup-pitch__player-dot { transform: scale(1.08); }
.lineup-pitch__player--home .lineup-pitch__player-dot { background: var(--primary); color: #1a1a1a; }
.lineup-pitch__player--away .lineup-pitch__player-dot { background: #fff; color: #1a1a1a; }
.lineup-pitch__player-name {
  margin-top: 4px;
  font-size: 10px; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  max-width: 70px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}

.lineup-bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.lineup-bench__side {
  background: var(--bg-elev1);
  border-radius: 8px;
  padding: 12px;
}
.lineup-bench__title {
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-1);
}
.lineup-bench__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.lineup-bench__item {
  display: flex; align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--text-1);
}
.lineup-bench__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--bg-elev2);
  color: var(--text-2);
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.lineup-bench__name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.lineup-injuries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: var(--bg-elev1);
  border-radius: 8px;
}
.lineup-injuries__badge {
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  font-size: 11.5px; font-weight: 600;
}
.lineup-injuries__badge::before {
  content: "+";
  font-weight: 800;
  color: #ef4444;
}
.lineup-injuries__empty {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

/* EVENTS TIMELINE — vertical line with side-alternating incidents */
.events-timeline {
  position: relative;
  margin: 20px auto;
  padding: 40px 0;
  max-width: 640px;
}
.events-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 2px;
  background: var(--border-1);
  transform: translateX(-50%);
}
.events-incident {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  min-height: 44px;
}
.events-incident__minute {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--bg-elev2);
  color: var(--text-1);
  font-size: 11.5px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  justify-self: center;
}
.events-incident__minute--goal { background: var(--primary); color: #1a1a1a; }
.events-incident__minute--red { background: #ef4444; color: #fff; }
.events-incident__minute--yellow { background: #facc15; color: #1a1a1a; }
.events-incident__minute--sub { background: var(--bg-elev2); color: var(--text-2); }
.events-incident__body {
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.events-incident__player {
  font-size: 13px; font-weight: 700;
  color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.events-incident__detail {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.events-incident__icon {
  font-size: 14px;
  margin-right: 4px;
  opacity: 0.85;
}
.events-incident--home .events-incident__body {
  grid-column: 1;
  text-align: right;
  align-items: flex-end;
}
.events-incident--home .events-incident__spacer {
  grid-column: 3;
}
.events-incident--away .events-incident__spacer {
  grid-column: 1;
}
.events-incident--away .events-incident__body {
  grid-column: 3;
  text-align: left;
  align-items: flex-start;
}

/* MLIVE IFRAME FALLBACK */
.mlive-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.mlive-frame__iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
}
.mlive-frame__caption {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-align: center;
}
.mlive-frame__caption::before {
  content: "●";
  color: var(--primary);
  margin-right: 6px;
  font-size: 10px;
  vertical-align: 1px;
}

/* MATCH PAGE MOBILE OVERRIDES */
@media (max-width: 768px) {
  .match-tabs { top: 48px; margin-bottom: 12px; }
  .match-tabs__tab {
    padding: 10px 14px;
    font-size: 13px;
  }
  .match-tabs__tab-count { font-size: 10px; padding: 1px 5px; }

  .stat-row {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
    padding: 8px 6px;
  }
  .stat-row__value { font-size: 13px; }
  .stat-row__label { font-size: 10px; margin-top: 3px; }

  .h2h-form { padding: 12px 8px; gap: 10px; }
  .h2h-form__chip { width: 24px; height: 24px; font-size: 10px; }
  .h2h-matches__row {
    grid-template-columns: 64px 1fr 70px;
    gap: 6px;
    padding: 8px 6px;
    font-size: 12px;
  }
  .h2h-matches__date { font-size: 10px; }
  .h2h-matches__comp { font-size: 10px; }
  .h2h-matches__teams { grid-template-columns: 1fr 48px 1fr; gap: 6px; }
  .h2h-matches__score { font-size: 11.5px; padding: 2px 6px; }
  .h2h-recent {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lineup-pitch { width: 92vw; max-width: 92vw; margin-bottom: 16px; }
  .lineup-pitch__player-dot { width: 32px; height: 32px; font-size: 11px; border-width: 1.5px; }
  .lineup-pitch__player-name { font-size: 9px; max-width: 58px; }
  .lineup-bench { grid-template-columns: 1fr; gap: 10px; }
  .lineup-bench__side { padding: 10px; }
  .lineup-bench__item { font-size: 12px; }
  .lineup-injuries { padding: 10px; }
  .lineup-injuries__badge { font-size: 11px; padding: 3px 8px; }

  .events-timeline { padding: 24px 0; }
  .events-timeline::before { display: none; }
  .events-incident {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 8px 4px;
    border-left: 3px solid var(--border-1);
    padding-left: 10px;
    margin-bottom: 4px;
  }
  .events-incident__minute { justify-self: start; }
  .events-incident--home { border-left-color: var(--primary); }
  .events-incident--away { border-left-color: var(--text-2); }
  .events-incident--home .events-incident__body,
  .events-incident--away .events-incident__body {
    grid-column: 2;
    text-align: left;
    align-items: flex-start;
  }
  .events-incident__spacer { display: none; }
  .events-incident__player { font-size: 12.5px; }
  .events-incident__detail { font-size: 11px; }

  .mlive-frame__caption { font-size: 11px; }
}

/* MATCH PAGE — hide legacy mobile actionbar in favor of new .match-tabs */
@media (max-width: 768px) {
  .watch-actionbar { display: none; }
}

/* MATCH PAGE — SVG lineup slots (partials use <g class="lineup-slot"> inside SVG,
   not the HTML <div class="lineup-pitch__player"> the CSS agent assumed). */
.lineup-pitch__svg { display: block; width: 100%; height: 100%; }
.lineup-pitch__bg  { fill: #15823f; }
.lineup-pitch__line { stroke: rgba(255,255,255,0.55); stroke-width: 0.4; }
.lineup-pitch__dot  { fill: rgba(255,255,255,0.7); }

.lineup-slot { cursor: default; }
.lineup-slot__shirt {
  fill: var(--bg-elev2);
  stroke: rgba(255,255,255,0.85);
  stroke-width: 0.4;
  transition: r .12s ease, fill .15s ease;
}
.lineup-slot--home .lineup-slot__shirt { fill: var(--primary); }
.lineup-slot--away .lineup-slot__shirt { fill: #ffffff; }
.lineup-slot__num {
  fill: #1a1a1a;
  font-size: 4.4px;
  font-weight: 800;
  font-family: inherit;
  paint-order: stroke;
  dominant-baseline: central;
}
.lineup-slot--home .lineup-slot__num { fill: #1a1a1a; }
.lineup-slot--away .lineup-slot__num { fill: #1a1a1a; }
.lineup-slot__name {
  fill: #ffffff;
  font-size: 3.2px;
  font-weight: 600;
  font-family: inherit;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  paint-order: stroke;
  stroke: rgba(0,0,0,0.6);
  stroke-width: 0.3;
}
.lineup-slot__cap {
  fill: var(--primary);
  font-size: 3px;
  font-weight: 800;
  font-family: inherit;
}
.lineup-slot--captain .lineup-slot__shirt { stroke: var(--primary); stroke-width: 0.6; }

/* Lineup head — formation + coach inline layout */
.lineup-head { display: flex; gap: 12px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 12px 16px; }
.lineup-head__side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.lineup-head__formation { font-size: 16px; font-weight: 800; color: var(--primary);
  letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.lineup-head__coach { font-size: 12px; color: var(--text-2); }
.lineup-head__badge { font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: var(--bg-elev2); color: var(--text-2); }
.lineup-head__badge--confirmed { background: rgba(34,197,94,0.15); color: #4ade80; }

/* MATCH PAGE — bench layout fix (CSS author expected .__side, partial uses .__grid/.__col).
   Also tighten pitch player spacing so names don't bleed into next row. */
.lineup-bench__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lineup-bench__col {
  background: var(--bg-elev1);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
}
.lineup-bench__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-1);
}
.lineup-bench__team-name {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lineup-bench__row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--text-1);
}
.lineup-bench__row + .lineup-bench__row { border-top: 1px solid rgba(255,255,255,0.04); }
.lineup-bench__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: var(--bg-elev2);
  color: var(--text-2);
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.lineup-bench__name {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lineup-bench__pos {
  font-size: 10px; font-weight: 700;
  color: var(--text-3);
  background: var(--bg-elev2);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Mobile: bench stacks vertically */
@media (max-width: 768px) {
  .lineup-bench__grid { grid-template-columns: 1fr; gap: 12px; }
  .lineup-bench__col { padding: 10px 12px; }
}

/* Pitch: tighten name offset so labels don't bleed into next row's dot */
.lineup-slot__name { font-size: 2.8px; }
.lineup-slot__num  { font-size: 4.2px; }

/* MATCH PAGE — Stats tab header (logos + team names side-by-side) */
.stats-tab { padding: 12px 0 24px; }
.stats-tab__title { /* visually-hidden already */ }
.stats-tab__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: var(--bg-elev1);
  border-radius: 8px;
}
.stats-tab__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.stats-tab__team--home { justify-content: flex-start; }
.stats-tab__team--away { justify-content: flex-end; text-align: right; }
.stats-tab__team img {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev2);
  object-fit: contain;
  flex-shrink: 0;
}
.stats-tab__team-name {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stats-tab__empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-2);
  background: var(--bg-elev1);
  border-radius: 8px;
}
.stats-tab__rows { display: flex; flex-direction: column; gap: 14px; }

/* Mobile: shrink logo + name slightly */
@media (max-width: 768px) {
  .stats-tab__teams { padding: 10px 12px; gap: 8px; }
  .stats-tab__team img { width: 24px; height: 24px; }
  .stats-tab__team-name { font-size: 12px; }
}

/* ── MATCH PAGE TAB POLISH (override) ─────────────────────────────────
   Supersedes the earlier BEM CSS where selectors didn't match the actual
   partial markup. Targets the classes used in:
     resources/views/partials/match/tab-{stats,h2h,lineup,events}.blade.php
   Cascade: appended after legacy rules so later wins on equal specificity.
   ─────────────────────────────────────────────────────────────────── */

/* Shared tab section base */
.match-tab {
  display: block;
  padding: 14px 0 28px;
}
.match-tab__section + .match-tab__section { margin-top: 18px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════════════════════
   STATS TAB — partial uses .stat-row__home / .stat-row__away (plain text
   on either side of the bars), label below as full-width grid item.
   ════════════════════════════════════════════════════════════════════ */
.stats-tab__rows { display: flex; flex-direction: column; gap: 12px; }

.stat-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  transition: background .15s ease, border-color .15s ease;
}
.stat-row:hover {
  background: var(--bg-hover, var(--bg-elev2));
  border-color: var(--border-2, var(--border-1));
}
.stat-row__home,
.stat-row__away {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-row__home { text-align: right; }
.stat-row__away { text-align: left; }
.stat-row__bars {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elev2);
  overflow: hidden;
}
.stat-row__bar {
  height: 100%;
  transition: width .35s ease;
  min-width: 0;
}
.stat-row__bar--home {
  margin-left: auto;
  margin-right: 0;
  background: var(--primary);
  border-radius: 999px 0 0 999px;
}
.stat-row__bar--away {
  margin-right: auto;
  margin-left: 0;
  background: var(--text-2);
  opacity: 0.55;
  border-radius: 0 999px 999px 0;
}
.stat-row__label {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   H2H TAB — partial uses .h2h-form__col / __team / __chips,
              .h2h-meetings__list / .h2h-meet,
              .h2h-recent__col / __list / __row
   ════════════════════════════════════════════════════════════════════ */
.h2h-tab__empty,
.events-tab__empty,
.lineup-tab__empty,
.stats-tab__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-2);
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  font-size: 13px;
}

/* Section titles shared across H2H subsections */
.h2h-form__title,
.h2h-meetings__title,
.h2h-recent__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--border-1);
}

/* —— 1. Form chips —— */
.h2h-form {
  display: block;
  padding: 14px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  margin-bottom: 16px;
}
.h2h-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.h2h-form__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.h2h-form__col--away { align-items: flex-end; }
.h2h-form__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.h2h-form__col--away .h2h-form__team { flex-direction: row-reverse; }
.h2h-form__logo {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-elev2);
  object-fit: contain;
  flex-shrink: 0;
}
.h2h-form__team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2h-form__chips {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.h2h-form__col--away .h2h-form__chips { justify-content: flex-end; }
.h2h-form__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  line-height: 1;
}
.h2h-form__chip--win  { background: #22c55e; color: #04210f; }
.h2h-form__chip--draw { background: var(--bg-elev2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-1); }
.h2h-form__chip--loss { background: #ef4444; color: #2a0606; }
.h2h-form__chip--unk  { background: var(--bg-elev2); color: var(--text-3); opacity: 0.55; }

/* —— 2. Pertemuan Terakhir (h2h matches list) —— */
.h2h-meetings {
  display: block;
  margin-bottom: 16px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 14px 14px 4px;
}
.h2h-meetings__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.h2h-meet {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
  color: var(--text-1);
}
.h2h-meet:last-child { border-bottom: none; }
.h2h-meet__date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.h2h-meet__teams {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.h2h-meet__home,
.h2h-meet__away {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.h2h-meet__home { text-align: right; }
.h2h-meet__away { text-align: left; }
.h2h-meet__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-0);
  background: var(--bg-elev2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  white-space: nowrap;
}
.h2h-meet__comp {
  text-align: right;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— 3. Form Tim (recent matches, two columns) —— */
.h2h-recent { display: block; }
.h2h-recent__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.h2h-recent__col {
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.h2h-recent__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-1);
}
.h2h-recent__logo {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-elev2);
  object-fit: contain;
  flex-shrink: 0;
}
.h2h-recent__team-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h2h-recent__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.h2h-recent__row {
  display: grid;
  grid-template-columns: 48px 24px 48px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--border-1);
  font-size: 12.5px;
  color: var(--text-1);
}
.h2h-recent__row:last-child { border-bottom: none; }
.h2h-recent__date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.h2h-recent__result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.h2h-recent__result--win  { background: #22c55e; color: #04210f; }
.h2h-recent__result--draw { background: var(--bg-elev2); color: var(--text-2); }
.h2h-recent__result--loss { background: #ef4444; color: #2a0606; }
.h2h-recent__result--unk  { background: var(--bg-elev2); color: var(--text-3); opacity: 0.55; }
.h2h-recent__score {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-0);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}
.h2h-recent__opp {
  font-size: 12.5px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ════════════════════════════════════════════════════════════════════
   LINEUP TAB — header, bench (already mostly styled), injuries cards.
   Existing pitch SVG styles preserved.
   ════════════════════════════════════════════════════════════════════ */
.lineup-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
}
.lineup-head__status { width: 100%; text-align: center; }
.lineup-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lineup-head__badge--confirmed {
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.35);
}
.lineup-head__badge--predicted {
  background: rgba(250,204,21,0.12);
  color: #facc15;
  box-shadow: inset 0 0 0 1px rgba(250,204,21,0.35);
}
.lineup-head__formations {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.lineup-head__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.lineup-head__side--home { align-items: flex-start; }
.lineup-head__side--away { align-items: flex-end; }
.lineup-head__logo {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-elev2);
  object-fit: contain;
  flex-shrink: 0;
}
.lineup-head__formation {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lineup-head__coach {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-head__vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Bench (additional polish on top of existing rules) */
.lineup-bench { margin: 16px 0; }
.lineup-bench__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--border-1);
}
.lineup-bench__pos {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--bg-elev2);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Injuries — small badge-style cards (REPLACES the legacy .lineup-injuries
   flex-wrap rules; partial actually renders a <ul class="lineup-injuries__list">
   of <li class="lineup-injury">). */
.lineup-injuries {
  display: block;
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
}
.lineup-injuries__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--border-1);
}
.lineup-injuries__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.lineup-injury {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-elev2);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  font-size: 12.5px;
  color: var(--text-1);
}
.lineup-injury__name {
  font-weight: 700;
  color: var(--text-0);
}
.lineup-injury__team {
  font-size: 10.5px;
  color: var(--text-3);
  padding: 2px 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lineup-injury__reason {
  font-size: 11.5px;
  color: #fca5a5;
}
.lineup-injury__status {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════════════
   EVENTS TAB — vertical timeline with center axis, side-alternating cards.
   Partial uses .events-row + .events-card (NOT the legacy .events-incident).
   ════════════════════════════════════════════════════════════════════ */
.events-tab__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
}
.events-tab__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.events-tab__team--home { justify-content: flex-start; }
.events-tab__team--away { justify-content: flex-end; text-align: right; }
.events-tab__team img {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-elev2);
  object-fit: contain;
  flex-shrink: 0;
}
.events-tab__team-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 8px 0 20px;
  max-width: 720px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.events-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-1);
  transform: translateX(-50%);
  z-index: 0;
}

.events-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  min-height: 48px;
  z-index: 1;
}
.events-row__minute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--bg-elev2);
  color: var(--text-1);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  justify-self: center;
  grid-column: 2;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-0, var(--bg-elev1));
  white-space: nowrap;
}
.events-row__axis {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg-0, var(--bg-elev1));
}

/* Event card */
.events-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 9px 11px;
  background: var(--bg-elev1);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  min-width: 0;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.events-card:hover {
  background: var(--bg-elev2);
  border-color: var(--border-2, var(--border-1));
  transform: translateY(-1px);
}
.events-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-1);
}
.events-card__icon svg {
  width: 16px; height: 16px;
  display: block;
}
.events-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.events-card__player {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.events-card__assist,
.events-card__sub {
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.events-card__assist-label {
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 3px;
}
.events-card__assist-name {
  color: var(--text-1);
  font-weight: 600;
}
.events-card__sub-out { color: #ef4444; font-weight: 700; }
.events-card__sub-in  { color: #22c55e; font-weight: 700; }
.events-card__sub-arrow {
  color: var(--text-3);
  margin: 0 4px;
}

/* Side placement on desktop:
   Home rows → card in LEFT column (grid-column 1), right-aligned text.
   Away rows → card in RIGHT column (grid-column 3), left-aligned text. */
.events-row--home .events-card {
  grid-column: 1;
  justify-self: end;
  flex-direction: row-reverse;
  text-align: right;
}
.events-row--home .events-card__body {
  align-items: flex-end;
}
.events-row--away .events-card {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}
.events-row--away .events-card__body {
  align-items: flex-start;
}

/* Type-driven minute chip colors */
.events-row--goal   .events-row__minute { background: var(--primary); color: #1a1a1a; }
.events-row--red    .events-row__minute { background: #ef4444; color: #fff; }
.events-row--yellow .events-row__minute { background: #facc15; color: #1a1a1a; }
.events-row--sub    .events-row__minute { background: var(--bg-elev2); color: var(--text-2); }
.events-row--var    .events-row__minute { background: #38bdf8; color: #062338; }
.events-row--pen    .events-row__minute { background: var(--primary); color: #1a1a1a; }

/* Type-driven axis dot accent */
.events-row--goal   .events-row__axis { background: var(--primary); }
.events-row--red    .events-row__axis { background: #ef4444; }
.events-row--yellow .events-row__axis { background: #facc15; }
.events-row--var    .events-row__axis { background: #38bdf8; }

/* Type-driven card icon tint */
.events-row--goal   .events-card__icon { color: var(--primary); }
.events-row--red    .events-card__icon { color: #ef4444; }
.events-row--yellow .events-card__icon { color: #facc15; }
.events-row--var    .events-card__icon { color: #38bdf8; }
.events-row--sub    .events-card__icon { color: var(--text-2); }

/* Highlight goal cards with primary-tinted left border */
.events-row--goal .events-card {
  box-shadow: inset 3px 0 0 var(--primary);
}
.events-row--away.events-row--goal .events-card {
  box-shadow: inset -3px 0 0 var(--primary);
}
.events-row--red .events-card {
  box-shadow: inset 3px 0 0 #ef4444;
}
.events-row--away.events-row--red .events-card {
  box-shadow: inset -3px 0 0 #ef4444;
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE (≤768px) — collapse alternation, single-column stacked cards
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .match-tab { padding: 10px 0 24px; }

  /* Stats */
  .stat-row {
    grid-template-columns: 52px 1fr 52px;
    column-gap: 8px;
    padding: 9px 10px;
  }
  .stat-row__home,
  .stat-row__away { font-size: 13px; }
  .stat-row__label { font-size: 10px; letter-spacing: 0.06em; }

  /* H2H form */
  .h2h-form { padding: 12px; }
  .h2h-form__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .h2h-form__col,
  .h2h-form__col--away { align-items: flex-start; }
  .h2h-form__col--away .h2h-form__team { flex-direction: row; }
  .h2h-form__col--away .h2h-form__chips { justify-content: flex-start; }
  .h2h-form__chip { width: 26px; height: 26px; font-size: 10.5px; }

  /* H2H meetings */
  .h2h-meetings { padding: 12px 12px 4px; }
  .h2h-meet {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
    column-gap: 8px;
    padding: 10px 2px;
  }
  .h2h-meet__date { grid-column: 1; grid-row: 1; }
  .h2h-meet__teams { grid-column: 2; grid-row: 1; grid-template-columns: 1fr 50px 1fr; gap: 6px; }
  .h2h-meet__comp { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 10.5px; }
  .h2h-meet__home, .h2h-meet__away { font-size: 12px; }
  .h2h-meet__score { font-size: 12px; padding: 2px 6px; }

  /* H2H recent — stack to single column */
  .h2h-recent__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .h2h-recent__row {
    grid-template-columns: 40px 22px 44px 1fr;
    gap: 6px;
    font-size: 12px;
  }
  .h2h-recent__date { font-size: 10.5px; }
  .h2h-recent__opp  { font-size: 12px; }

  /* Lineup header — center everything */
  .lineup-head { padding: 12px; }
  .lineup-head__formations {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .lineup-head__side,
  .lineup-head__side--home,
  .lineup-head__side--away { align-items: center; }
  .lineup-head__vs { display: none; }
  .lineup-head__formation { font-size: 16px; }
  .lineup-head__coach { font-size: 11px; }

  /* Lineup injuries — single column */
  .lineup-injuries__list { grid-template-columns: 1fr; }
  .lineup-injury { padding: 8px 10px; font-size: 12px; }
  .lineup-injury__status { margin-left: 0; }

  /* Events — collapse alternation to left-stack with team-color stripe */
  .events-timeline {
    padding: 6px 0 16px;
    gap: 6px;
  }
  .events-timeline::before { display: none; }
  .events-row {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 6px 0;
    min-height: 0;
  }
  .events-row__minute {
    grid-column: 1;
    box-shadow: none;
    justify-self: start;
  }
  .events-row__axis { display: none; }
  .events-row--home .events-card,
  .events-row--away .events-card {
    grid-column: 2;
    justify-self: stretch;
    flex-direction: row;
    text-align: left;
  }
  .events-row--home .events-card__body,
  .events-row--away .events-card__body {
    align-items: flex-start;
  }
  .events-row--home .events-card { border-left: 3px solid var(--primary); }
  .events-row--away .events-card { border-left: 3px solid var(--text-2); }
  .events-row--home.events-row--red .events-card,
  .events-row--away.events-row--red .events-card { border-left-color: #ef4444; }
  .events-row--home.events-row--goal .events-card,
  .events-row--away.events-row--goal .events-card { box-shadow: none; border-left-color: var(--primary); }
  .events-card { width: 100%; }

  .events-tab__teams { padding: 10px 12px; gap: 8px; }
  .events-tab__team img { width: 22px; height: 22px; }
  .events-tab__team-name { font-size: 12px; }
}
/* ── END MATCH PAGE TAB POLISH ───────────────────────────────────── */

/* ── MATCH PAGE MOBILE: chat right after player (not at page bottom) ──────
   On mobile, .watch__main { display: contents } projects player + scoreboard
   + tabs + panels + related rail as direct children of .app--watch. Chat is
   AFTER them in DOM so it lands at page bottom. Use CSS `order` to lift it
   directly under the player while keeping desktop sticky-side intact. */
@media (max-width: 1024px) {
  /* Player + immediate primary content stays at top */
  .player-frame              { order: 1; }
  .server-picker             { order: 2; }
  .mlive-frame               { order: 3; }
  .watch-scoreboard          { order: 4; }
  /* Chat is the second-most-important block on mobile — pin under scoreboard */
  .watch__chat               { order: 5; }
  /* Tab nav + tab panels below the chat */
  .match-tabs                { order: 10; }
  .watch-info-block          { order: 11; }
  .tab-panel[data-tab-panel] { order: 12; }
  /* Related rail at the very bottom */
  .matches-rail              { order: 20; }
}

/* On mobile, undo the desktop sticky-fill that makes chat consume remaining
   viewport — we want it as a normal-flow block of moderate height now that
   it sits BETWEEN player and tabs. Keep input pinned bottom of chat block,
   NOT viewport, so tab content can scroll past. */
@media (max-width: 1024px) {
  .app.app--watch {
    /* Drop the locked-to-viewport flex column */
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
  }
  .watch__chat {
    flex: 0 0 auto !important;
    height: 360px !important;
    max-height: 50vh !important;
    border-radius: 0;
    border-bottom: 1px solid var(--border-1);
  }
  .watch__chat .chat-input {
    /* Pin to bottom of chat panel, not viewport */
    position: absolute !important;
    bottom: 0;
    left: 0; right: 0;
  }
  .watch__chat {
    position: relative;
  }
}

/* ── Chat as default tab content (mobile) / sidebar (desktop) ─────────────
   .watch__chat now carries tab-panel marker. Default state on mobile:
   active (visible). Desktop ignores hidden state — chat is always-on right
   rail regardless of which body tab is active. */
@media (max-width: 1024px) {
  /* When chat tab is the active one, give it more vertical room */
  .watch__chat.tab-panel--active { display: flex; }
  /* When chat tab NOT active, collapse chat block — input bar inside chat
     becomes irrelevant (other tab content occupies space) */
  .watch__chat.tab-panel:not(.tab-panel--active) {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
  }
  .watch__chat.tab-panel:not(.tab-panel--active) .chat-input {
    display: none !important;
  }
  /* Chat panel needs taller frame when it IS the active tab */
  .watch__chat.tab-panel--active {
    height: auto !important;
    min-height: 480px !important;
    max-height: none !important;
  }
}

/* Desktop: chat is always visible right rail, ignore tab-panel hiding */
@media (min-width: 1025px) {
  .watch__chat[data-tab-panel="chat"] {
    display: flex !important;
  }
  .watch__chat[data-tab-panel="chat"][hidden] {
    display: flex !important;
  }
}

/* ── MATCH PAGE MOBILE — NEW LAYOUT (2026-05-22 final override) ─────────
   The legacy mobile rules locked .watch to 100vh + overflow:hidden so that
   player + chat filled the viewport. The new tab-system needs to flow as
   a normal scrollable column with chat as one of N tab panels.
   Override the legacy chained `!important` rules here. */
@media (max-width: 1024px) {
  /* Release the viewport-fill lock — let page scroll naturally */
  .app.app--watch,
  .watch {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* Stop projecting watch__main children as peers — keep them inside */
  .watch__main {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
  /* Match-tabs visible (full-width, sticky under mhd) */
  .match-tabs {
    order: 5;
    flex: 0 0 auto;
    width: 100%;
    background: var(--bg-0);
    position: sticky;
    top: 48px;
    z-index: 15;
  }
  /* Chat panel — when active, sits as natural-flow block inside main */
  .watch__chat {
    flex: 0 0 auto !important;
    width: 100%;
    height: auto !important;
    min-height: 60vh !important;
    max-height: none !important;
    position: static !important;
    top: auto !important;
    margin: 0;
    border: none;
    border-radius: 0;
    background: var(--bg-elev1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  /* Hide chat completely when its tab is not active */
  [data-tab-panel].watch__chat:not(.tab-panel--active):not(.is-active) {
    display: none !important;
    min-height: 0 !important;
  }
  /* Pin chat input to bottom of chat panel itself (not viewport) */
  .watch__chat .chat-input {
    position: sticky !important;
    bottom: 0;
    left: 0; right: 0;
    background: var(--bg-elev1);
    padding: 8px 10px;
    border-top: 1px solid var(--border-1);
    z-index: 2;
  }
  /* Tab panels (info, stats, h2h, lineup, events) — natural-flow blocks */
  .tab-panel[data-tab-panel]:not(.watch__chat) {
    width: 100%;
    padding: 12px 14px;
  }
}

/* ── MOBILE chat-input pinned to viewport bottom (FINAL) ──────────────
   When the Chat tab is active on mobile, the input bar must be glued to
   the BOTTOM EDGE of the viewport regardless of scroll position.
   Using `position: fixed` instead of sticky — sticky depends on scroll
   container and fails on real iOS Safari when the address bar resizes. */
@media (max-width: 1024px) {
  /* Override the earlier sticky rule */
  body.watch-body .watch__chat.tab-panel--active .chat-input,
  body.watch-body .watch__chat.is-active .chat-input {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1000;
    background: var(--bg-elev1);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px;
    border-top: 1px solid var(--border-1);
    margin: 0;
    /* Ensure the input row doesn't get squeezed */
    display: flex;
    align-items: center;
    gap: 8px;
  }
  /* Reserve space at bottom of chat-body so last message isn't hidden under
     the fixed input bar (input ~56px + safe-area inset for iPhone home bar) */
  body.watch-body .watch__chat.tab-panel--active .chat-body,
  body.watch-body .watch__chat.is-active .chat-body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* When chat is NOT the active tab, the fixed input would still be visible
     unless we explicitly hide it. The parent panel already has display:none
     via the .tab-panel hidden rule, but defensive hide here too. */
  body.watch-body .watch__chat:not(.tab-panel--active):not(.is-active) .chat-input {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .player-frame:has(.player-frame__iframe--mlive) {
    aspect-ratio: 16 / 12;
    min-height: 280px;
  }
}

/* mlive animation widget is naturally shorter than 16:9 (pitch + score row +
   stat bar ≈ 16:6 effective ratio). Crop the player-frame box height so the
   iframe matches widget content with zero empty space at bottom. */
.player-frame:has(.player-frame__iframe--mlive) {
  aspect-ratio: 16 / 6;
}
@media (max-width: 768px) {
  .player-frame:has(.player-frame__iframe--mlive) {
    aspect-ratio: 16 / 8;
  }
}

/* ── BIG MATCH / HOT badges (per-card rank, 2026-05-24) ───────────────
   Computed from Ranking::compute() in BagolMatch::fromCamelArray:
     ranking_score > 75 → BIG MATCH (gold)
     60..74            → HOT       (warm red/orange)
   Skipped on normal-rank rows to avoid badge spam.
*/
.mcard__rank {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.mcard__rank--big {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1209;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.mcard__rank--hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

/* Inline pill in jadwal-row teams col */
.jadwal-row__rank {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
}
.jadwal-row__rank--big {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1209;
}
.jadwal-row__rank--hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
