/* ==========================================================================
   ModusWise — shared stylesheet
   Design language ported from the ModusWise Streaming Landing Page handoff:
   cinematic near-black shell, amber accent, Manrope + JetBrains Mono,
   layered fixed background (gradient / bokeh / grain / vignette).

   Contents
     01  Tokens
     02  Reset + base
     03  Background layers
     04  Layout shell
     05  Header + navigation
     06  Buttons
     07  Hero
     08  Live strip
     09  Poster cards + grids
     10  Match cards
     11  Feature / stat / chip primitives
     12  Prose + numbered sections
     13  FAQ accordion
     14  Search + filters
     15  Movie modal
     16  BK8 rail + banner
     17  Footer
     18  Animation + reduced motion
     19  Responsive
     20  Utilities
   ========================================================================== */

/* ==========================================================================
   01  TOKENS
   Hex first so older Android WebViews (a real slice of VN mobile traffic)
   get the right palette; oklch overrides it where supported so the colour
   matches the handoff exactly.
   ========================================================================== */

:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1e;
  --bg-2: #111a30;

  --ink: #f3f1ea;
  --ink-dim: #b6bac6;
  --ink-mid: #8a8fa0;
  --ink-faint: #6b7186;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --accent: #f5b921;
  --accent-hot: #ffcb33;
  --accent-deep: #bd7d16;
  --accent-glow: rgba(245, 185, 33, 0.55);
  --accent-tint: rgba(245, 185, 33, 0.08);
  --accent-tint-2: rgba(245, 185, 33, 0.18);

  --live: #fa4b32;
  --live-glow: rgba(250, 75, 50, 0.45);
  --ok: #3ecf8e;

  --radius: 6px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 100px;

  --shell: 1180px;
  --shell-narrow: 780px;
  --gutter: clamp(18px, 4vw, 56px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@supports (color: oklch(0.82 0.16 85)) {
  :root {
    --accent: oklch(0.82 0.16 85);
    --accent-hot: oklch(0.88 0.17 90);
    --accent-deep: oklch(0.62 0.15 70);
    --accent-glow: oklch(0.82 0.16 85 / 0.55);
    --live: oklch(0.68 0.2 25);
    --live-glow: oklch(0.68 0.2 25 / 0.45);
    --ok: oklch(0.78 0.14 155);
  }
}

/* ==========================================================================
   02  RESET + BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection {
  background: var(--accent);
  color: #02101e;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #02101e;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* ==========================================================================
   03  BACKGROUND LAYERS
   Fixed, cheap to paint, sits behind everything at z-index 0-4.
   ========================================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, #15203d 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 92%, #2a1408 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 6% 82%, #08233a 0%, transparent 55%),
    linear-gradient(180deg, #05070d 0%, #03050a 100%);
}

.bokeh {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.bokeh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.38;
  animation: drift 24s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 92% 82% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}

/* ==========================================================================
   04  LAYOUT SHELL
   ========================================================================== */

.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

.band { padding-block: clamp(48px, 8vw, 88px); }
.band--tight { padding-block: clamp(32px, 5vw, 56px); }
.band + .band { padding-top: 0; }

.band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.eyebrow .pulse--live {
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live-glow);
  animation-name: pulse-live;
}

.rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rule::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h2.band__title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #c9cdd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 12px;
}

.band__lede {
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
  margin-top: 12px;
}

/* ==========================================================================
   05  HEADER + NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-stuck {
  background: rgba(5, 7, 13, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.site-header__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.brand:hover { opacity: 0.85; }
.brand img {
  display: block;
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current='page'] {
  color: var(--accent);
  background: var(--accent-tint);
}

.nav-cta {
  margin-left: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease), background-color 0.15s linear;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 110;
  padding: 24px var(--gutter) 40px;
  background: rgba(5, 7, 13, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* Same delay-don't-duration rule as .modal above — keeps the drawer's links
     reachable the instant it opens rather than 220ms later. */
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0s linear 0s;
}
/* `:not(.btn)` matters — without it this rule out-specifies .btn--primary
   and the drawer CTA loses its amber fill. */
.nav-drawer a:not(.btn) {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-drawer a:not(.btn)[aria-current='page'] {
  border-color: var(--accent-tint-2);
  color: var(--accent);
  background: var(--accent-tint);
}
.nav-drawer a .arrow { color: var(--ink-faint); font-size: 15px; }
.nav-drawer .btn { margin-top: 10px; padding: 17px 24px; font-size: 16px; }
.nav-drawer__legal {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}
.nav-drawer__legal a:not(.btn) {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
  display: inline;
}

/* ==========================================================================
   06  BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease,
    border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--primary {
  color: #02101e;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 10px 30px -8px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 16px 46px -8px var(--accent-glow);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--quiet {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-dim);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.btn--quiet:hover { color: var(--ink); border-color: var(--line-strong); }

.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* Text link with the handoff's dashed amber underline */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 185, 33, 0.4);
  transition: border-color 0.15s ease;
}
.inline-link:hover { border-bottom-color: var(--accent); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.18s var(--ease);
}
.more-link:hover { gap: 12px; }

/* ==========================================================================
   07  HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px) clamp(36px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vw, 24px);
}

h1.hero__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 48%, #8a93ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(120, 180, 255, 0.1);
}
h1.hero__title .hl {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

/* Faded poster wall — decorative, scoped to the hero so it never competes
   with page content below the fold. */
.poster-wall {
  position: absolute;
  inset: -10% -4% auto;
  height: 130%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  opacity: 0.1;
  pointer-events: none;
  filter: blur(1.5px) saturate(0.7);
  mask-image: radial-gradient(ellipse 78% 60% at 50% 45%, transparent 0%, transparent 32%, black 88%);
  -webkit-mask-image: radial-gradient(ellipse 78% 60% at 50% 45%, transparent 0%, transparent 32%, black 88%);
}
.poster-wall .poster {
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--p1, #1a2238), var(--p2, #0c1224));
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}
.poster-wall .poster::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

/* ==========================================================================
   08  LIVE STRIP
   ========================================================================== */

.live-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(250, 75, 50, 0.09), rgba(245, 185, 33, 0.06) 55%, rgba(255, 255, 255, 0.01)),
    rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
a.live-strip:hover {
  border-color: rgba(250, 75, 50, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -24px var(--live-glow);
}

.live-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border: 1px solid rgba(250, 75, 50, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(250, 75, 50, 0.12);
  color: #ffd9d2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.live-strip__badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live-glow);
  animation: pulse-live 1.8s infinite;
}

.live-strip__body { flex: 1 1 260px; min-width: 0; }
.live-strip__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 4px;
}
.live-strip__note {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.live-strip__cta { flex-shrink: 0; }

.partner-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-tint-2);
  background: var(--accent-tint);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}

/* ==========================================================================
   09  POSTER CARDS + GRIDS
   ========================================================================== */

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.poster-grid--rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.2s ease, box-shadow 0.25s ease;
}
.movie-card:hover,
.movie-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-tint-2);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--accent-tint);
}

.movie-card__art {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--p1, #1a2238), var(--p2, #0c1224));
  overflow: hidden;
}
.movie-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.movie-card:hover .movie-card__art img { transform: scale(1.05); }

.movie-card__art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 10, 0.92));
  pointer-events: none;
}

/* Placeholder art (no TMDB key / no poster) reuses the handoff's poster look */
.movie-card__art--empty {
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.movie-card__art--empty .ph {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.movie-card__art--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 6px
  );
}

.movie-card__rating {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

/* Series badge — tells a "phim bộ" apart from a film before you open it. */
.movie-card__kind {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1;
}

.movie-card__body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.movie-card__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Loading skeletons */
.skeleton {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  overflow: hidden;
}
.skeleton__art {
  aspect-ratio: 2 / 3;
  background: linear-gradient(100deg, #0d1424 30%, #16203a 50%, #0d1424 70%);
  background-size: 240% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton__line {
  height: 10px;
  margin: 12px 12px 0;
  border-radius: 3px;
  background: linear-gradient(100deg, #0d1424 30%, #16203a 50%, #0d1424 70%);
  background-size: 240% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton__line:last-child { width: 45%; margin-bottom: 14px; }

/* Grid status message (errors / empty state) */
.grid-note {
  grid-column: 1 / -1;
  padding: 28px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
}
.grid-note strong { color: var(--ink); font-weight: 600; }
.grid-note code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ==========================================================================
   10  MATCH CARDS
   ========================================================================== */

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.match-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.match-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.match-card.is-live { border-color: rgba(250, 75, 50, 0.32); }

.match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.match-card__league {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.match-card__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  white-space: nowrap;
}
.match-card.is-live .match-card__when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd9d2;
}
.match-card.is-live .match-card__when::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live-glow);
  animation: pulse-live 1.8s infinite;
}

.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.match-card__team {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.match-card__team:last-child { text-align: right; }
.match-card__vs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.match-card .btn { width: 100%; }

/* Slot variant — a recurring broadcast window rather than a dated fixture. */
.match-card--slot .match-card__teams { display: block; }
.match-card--slot .match-card__team { font-size: 16px; margin-bottom: 5px; }
.match-card__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0;
}
.match-card[hidden] { display: none; }

/* ==========================================================================
   11  FEATURE / STAT / CHIP PRIMITIVES
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature__ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  color: var(--accent);
}
.feature__ico svg { width: 18px; height: 18px; display: block; }
.feature__t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.feature__d {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-faint);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: clamp(22px, 3.5vw, 30px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(245, 185, 33, 0.045), rgba(245, 185, 33, 0)),
    rgba(255, 255, 255, 0.015);
}
.stat__num {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff, #c9cdd8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__lbl {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.chip--accent {
  color: var(--accent);
  border-color: var(--accent-tint-2);
  background: var(--accent-tint);
}

/* ==========================================================================
   12  PROSE + NUMBERED SECTIONS
   ========================================================================== */

.prose {
  max-width: 72ch;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.75;
}
.prose h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}
.prose strong { color: var(--ink); font-weight: 600; }

.doc-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.doc-section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.doc-section__body { min-width: 0; }
.doc-section h2 {
  margin: 0 0 14px;
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.doc-section p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.deflist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.deflist li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.deflist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--ink-faint);
}
.deflist li strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

.doc-head { margin-bottom: 8px; }
h1.doc-title {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #c9cdd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 44px;
  max-width: 64ch;
}

.callout {
  margin: 26px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(245, 185, 33, 0.055), rgba(245, 185, 33, 0.012));
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.callout strong { color: var(--accent); font-weight: 600; }

.contact-card {
  margin-top: 40px;
  padding: clamp(22px, 3.5vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(245, 185, 33, 0.05), rgba(245, 185, 33, 0.01)),
    rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-card__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.contact-card__email {
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  word-break: break-word;
}
.contact-card__email:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Numbered walkthrough steps (/the-thao/ "how to watch")
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 3;
  align-self: start;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--accent-tint-2);
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
  align-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.step p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.step p:last-child { margin-bottom: 0; }
/* Grid items stretch by default — without this the CTA spans the whole card. */
.step .btn { margin-top: 4px; justify-self: start; }

/* Platform split — the desktop and mobile routes differ */
.step__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}
.step__plat {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.step__plat b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}
.step__plat b svg { width: 13px; height: 13px; }
/* Direct child only. A plain `.step__plat span` would also match the nested
   .ui chips and out-specify their `display: inline-block`, stacking every
   chip onto its own full-width line. */
.step__plat > span { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); display: block; }

/* Inline UI-label chip, for naming exact buttons in the operator's interface */
.ui {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .step::before { grid-row: auto; width: 38px; height: 38px; font-size: 13px; }
  .step h3 { min-height: 0; }
  /* Full-width CTA on phones — bigger tap target. */
  .step .btn { justify-self: stretch; }
}

/* ==========================================================================
   13  FAQ ACCORDION
   ========================================================================== */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  overflow: hidden;
}
.faq details[open] { border-color: var(--accent-tint-2); }
.faq details:hover { border-color: var(--line-strong); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  position: relative;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5px;
  background:
    linear-gradient(var(--accent), var(--accent)) center/100% 1.6px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/1.6px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }

.faq__answer {
  padding: 0 20px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 74ch;
}
.faq__answer p { margin: 0 0 12px; }

/* ==========================================================================
   14  SEARCH + FILTERS
   ========================================================================== */

.searchbar {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 560px;
}
.searchbar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint), 0 0 60px -14px var(--accent-glow);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 0 8px 0 18px;
}
.searchbar input::placeholder { color: var(--ink-faint); }
.searchbar input::-webkit-search-cancel-button { filter: invert(1) opacity(0.4); }
.searchbar button { flex-shrink: 0; }

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-dim);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.filter:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter[aria-selected='true'],
.filter.is-active {
  color: #02101e;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}

/* ==========================================================================
   15  MOVIE MODAL
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  /* `visibility 0s linear 0.22s` — a DELAY, never a duration. Transitioning
     visibility over time keeps the panel unfocusable for the whole fade, so a
     programmatic focus() on open silently no-ops and keyboard users are left
     stranded on the trigger. Here it flips to visible instantly on open, and
     the hide is merely postponed until the fade-out finishes. */
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0b1120, #06090f);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.95);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.28s var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }

.modal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal__media img,
.modal__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}
.modal__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, #0b1120);
  pointer-events: none;
}
.modal__media.has-video::after { display: none; }

.modal__body { padding: clamp(20px, 3vw, 30px); }
.modal__title {
  font-size: clamp(21px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.modal__facts .score { color: var(--accent); }
.modal__overview {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ==========================================================================
   16  BK8 RAIL + BANNER
   ========================================================================== */

.with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.rail { position: sticky; top: calc(var(--header-h) + 20px); }

.promo {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(250, 75, 50, 0.1), rgba(245, 185, 33, 0.07) 45%, rgba(255, 255, 255, 0.012)),
    rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.promo__badge { margin-bottom: 14px; }
.promo__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.promo__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.promo__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.promo__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.promo__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.promo__fine {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

/* ==========================================================================
   17  FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding-block: clamp(40px, 6vw, 60px) 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(3, 5, 10, 0.6));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 36px;
}

.site-footer__brand img { height: 34px; width: auto; display: block; margin-bottom: 14px; }
.site-footer__blurb {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-faint);
  max-width: 44ch;
  margin: 0;
}

.site-footer h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a {
  color: var(--ink-faint);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer ul a:hover { color: var(--accent); }

.site-footer__disclaimer {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.012);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.site-footer__disclaimer strong { color: var(--ink-mid); font-weight: 600; }

.site-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.site-footer__base a { color: var(--ink-faint); text-decoration: none; }
.site-footer__base a:hover { color: var(--ink-dim); }
.site-footer__age {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.site-footer__age b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--live);
  color: var(--live);
  font-size: 9.5px;
  font-weight: 700;
}

/* ==========================================================================
   18  ANIMATION + REDUCED MOTION
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.15); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 var(--live-glow); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

/* Staggered page-load reveal. `.rise` elements animate immediately;
   `--d` sets the delay. */
.rise {
  opacity: 0;
  animation: rise 0.9s var(--d, 0.1s) var(--ease) forwards;
}

/* Scroll-triggered reveal for content below the fold.
   Visible by default — main.js adds `.armed` only to blocks that start below
   the fold, then `.in` when they scroll into view. Content is therefore never
   hidden with JS off, above the fold, or if the observer never fires. */
.reveal {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.armed { opacity: 0; transform: translateY(18px); }
.reveal.armed.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise { opacity: 1; }
  .reveal.armed { opacity: 1; transform: none; }
  .bokeh span { animation: none; }
}

/* ==========================================================================
   19  RESPONSIVE
   ========================================================================== */

@media (max-width: 1040px) {
  .with-rail { grid-template-columns: 1fr; }
  /* Natural document order — the rail falls AFTER the content it cross-sells
     from. It used to be hoisted above with `order: -1`, which pushed a sports
     promo between the filters and the first movie poster on the page whose
     whole job is dwell time. */
  .rail { position: static; margin-top: 8px; }
  .promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; }
  .promo__badge { grid-column: 1; }
  .promo__title { grid-column: 1; margin-bottom: 4px; }
  .promo__text { grid-column: 1; margin-bottom: 0; }
  .promo__list { display: none; }
  .promo .btn { grid-column: 2; grid-row: 1 / span 3; }
  .promo__fine { grid-column: 1 / -1; text-align: left; margin-top: 10px; }
  .poster-grid--rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }

  .site-nav,
  .site-header .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .brand img { height: 32px; }

  .poster-wall { grid-template-columns: repeat(5, 1fr); gap: 10px; }

  .live-strip { padding: 16px 18px; gap: 14px; }
  .live-strip__cta { width: 100%; }
  .live-strip__cta .btn { width: 100%; }

  .doc-section { grid-template-columns: 1fr; gap: 8px; }
  .doc-section__num { padding-top: 0; }

  .contact-card { flex-direction: column; align-items: stretch; text-align: left; }
  .contact-card .btn { width: 100%; }

  .promo { display: block; }
  .promo__text { margin-bottom: 16px; }
  .promo__list { display: flex; }

  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-grid--rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poster-grid--rail .movie-card:nth-child(n + 7) { display: none; }

  .match-grid { grid-template-columns: 1fr; }

  .site-footer__base { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .poster-wall { grid-template-columns: repeat(4, 1fr); }
  .eyebrow { font-size: 10px; padding: 6px 12px 6px 9px; }

  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .searchbar { flex-direction: column; border-radius: var(--radius-lg); padding: 10px; }
  .searchbar input { padding: 13px 12px; }
  .searchbar button { width: 100%; }

  .poster-grid--rail .movie-card:nth-child(n + 7) { display: block; }
  .poster-grid--rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__grid { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .match-card__teams { grid-template-columns: 1fr; gap: 4px; text-align: left; }
  .match-card__team:last-child { text-align: left; }
  .match-card__vs { font-size: 10px; }
}

/* ==========================================================================
   20  UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.mt-lg { margin-top: clamp(28px, 4vw, 40px); }
.center { text-align: center; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
