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

:root {
  /* dark broadcast palette — neutral, content-first */
  --bg:           #0f0f0f;
  --bg-elev1:     #1a1a1a;
  --bg-elev2:     #232323;
  --bg-elev3:     #2d2d2d;
  --bg-hover:     rgba(255,255,255,0.08);

  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);

  --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 (red) — reserved for live-stream indicators only. Never CTAs. */
  --live:         #ef4444;
  --live-soft:    rgba(239,68,68,0.15);
  --live-glow:    rgba(239,68,68,0.5);
  --danger:       #ef4444;   /* form errors, destructive — aliased to --live tone */

  /* ── 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: 24px;
  padding: 0 24px;
  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;
}
.sb-link:hover { background: var(--bg-hover); }
.sb-link.active {
  background: var(--bg-elev2);
  font-weight: 600;
}
.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-8); }
.section__head {
  display: flex; align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.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 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 {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.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;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px 16px;
}

.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: ""; width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.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 */
@media (max-width: 1024px) {
    [data-tab-panel] { display: none; }
    [data-tab-panel].is-active { display: block; }
}

/* ── 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; }
