:root {
  --bg: #141414;
  --bg-2: #181818;
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --accent: #e50914;
  --card-radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- INTRO ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.intro.skip { display: none; }
.intro.done {
  animation: introFade 0.8s ease forwards;
}
@keyframes introFade {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* gate (click to begin) */
.intro-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: gateFade 0.6s ease;
}
.intro-gate.hide {
  animation: gateOut 0.3s ease forwards;
}
@keyframes gateFade { from { opacity: 0; transform: translateY(10px); } }
@keyframes gateOut { to { opacity: 0; transform: scale(0.95); } }
.intro-gate-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 6.5vw, 76px);
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #3a0a0c;
  text-shadow: 0 0 30px rgba(229,9,20,0.25);
}
.intro-gate-btn {
  padding: 14px 38px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 rgba(229,9,20,0.6);
  animation: gatePulse 1.8s ease infinite;
}
.intro-gate-btn:hover { transform: scale(1.05); }
@keyframes gatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,0.6); }
  50% { box-shadow: 0 0 0 18px rgba(229,9,20,0); }
}
/* The rendered intro. `contain` rather than `cover`: the wordmark sits near
   the middle of a 16:9 frame, and cropping on a narrow window would cut it. */
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.intro-video[hidden] { display: none; }

/* stage */
.intro-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #0a0000 0%, #000 70%);
  /* Slow push-in across the whole sequence. Barely perceptible frame to
     frame, but it stops the shot feeling static while the columns build. */
  animation: stagePush 4.2s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
@keyframes stagePush {
  0%   { transform: scale(1.075); }
  100% { transform: scale(1); }
}
.intro-stage[hidden] { display: none; }

.intro-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

/* === COLUMNS ===
 *
 * The shape that makes this read as a streaming title card: tall vertical
 * bars that rise in a staggered sweep from the outside in, stand for a beat,
 * then rush to centre and blow out on the drum hit.
 *
 * Two animations per bar, both `forwards`. barRise runs on its own stagger;
 * barCollapse starts at 1.72s and, being later in the list, takes over the
 * transform from then on — so the hold between them is what makes the hit
 * land rather than looking like one continuous move.
 */
.intro-ribbons {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 1;
}
.ribbon {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 76vh;
  transform-origin: 50% 100%;   /* rise from the floor, not from the middle */
  margin-left: -1.5px;
  margin-top: -38vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(229,9,20,0) 8%,
    rgba(229,9,20,0.9) 38%,
    rgba(255,80,90,1) 50%,     /* hot core is a brighter red, never white */
    rgba(229,9,20,0.9) 62%,
    rgba(229,9,20,0) 92%,
    transparent 100%
  );
  /* Tight glow only. Eighteen bars each throwing a 34px bloom stacked up
     into a pale wash across the middle of the screen and killed the black. */
  box-shadow: 0 0 7px rgba(229,9,20,0.7);
  opacity: 0;
  --x: 0;
  --d: 0s;
  animation:
    barRise 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d) forwards,
    barCollapse 0.52s cubic-bezier(0.7, 0, 0.84, 0) 1.72s forwards;
}
@keyframes barRise {
  0% {
    transform: translateX(var(--x)) scaleY(0.04);
    opacity: 0;
    filter: blur(7px);
  }
  35% { opacity: 1; }
  100% {
    transform: translateX(var(--x)) scaleY(1);
    opacity: 1;
    filter: blur(0.4px);
  }
}
@keyframes barCollapse {
  0% {
    transform: translateX(var(--x)) scaleY(1) scaleX(1);
    opacity: 1;
    filter: blur(0.4px);
  }
  55% { opacity: 1; }
  100% {
    /* All bars land on centre at once, widening as they go — the columns
       become the flash rather than simply fading out. */
    transform: translateX(0) scaleY(1.22) scaleX(3.5);
    opacity: 0;
    filter: blur(4px);
  }
}

/* Red glow core that builds at center as ribbons converge */
.intro-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,95,105,1) 0%, rgba(229,9,20,0.97) 34%, rgba(229,9,20,0) 72%);
  opacity: 0;
  animation: coreGrow 2.25s ease forwards;
}
/* Holds low and small while the columns stand, then detonates exactly with
   them at ~1.9s. Percentages are of the 2.25s duration. */
@keyframes coreGrow {
  0%  { opacity: 0; transform: scale(0.2); }
  55% { opacity: 0.25; transform: scale(0.9); }
  74% { opacity: 0.55; transform: scale(1.6); }
  84% { opacity: 1; transform: scale(8); filter: blur(0); }
  91% { opacity: 1; transform: scale(30); filter: blur(20px); }
  100% { opacity: 0; transform: scale(42); }
}

/* Bloom at the DUM hit. Red, not white — a white blowout washed the frame
   to grey for a few frames and broke the single-colour look. */
.intro-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #ff5a64 0%, rgba(229,9,20,0.92) 32%, rgba(229,9,20,0) 70%);
  opacity: 0;
  pointer-events: none;
  animation: flashHit 0.55s ease 1.9s;
}
@keyframes flashHit {
  0% { opacity: 0; transform: scale(0.5); }
  20% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* === LOGO === */
.intro-logo {
  position: relative;
  z-index: 3;
}

/* Sizing box for the two stacked copies of the wordmark. The type lives here,
   not on the children, so both layers are guaranteed identical metrics — the
   beam copy has to sit exactly on the solid one or the letters ghost. */
.intro-wordmark {
  position: relative;
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 9vw, 128px);
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

/* The light-in-the-letters layer.
 *
 * Same word, same font, laid exactly over the solid one, but filled with a
 * repeating bar pattern clipped to the glyphs. Sliding the background
 * sideways makes the bars stream inside the letters, so the columns sweeping
 * the screen read as collecting into the word rather than just vanishing
 * behind it. Handing over to the solid text on the drum hit is the reveal. */
.wm-beams {
  position: absolute;
  left: 0; top: 0;
  /* Inherited from .intro-wordmark — see the note there. */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(229,9,20,0) 0px,
    rgba(229,9,20,0) 4px,
    rgba(255,80,90,1) 4px,
    rgba(255,80,90,1) 6px,
    rgba(229,9,20,0.95) 6px,
    rgba(229,9,20,0.95) 9px,
    rgba(229,9,20,0) 9px,
    rgba(229,9,20,0) 15px
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(229,9,20,0.9));
  animation:
    wmBeamsIn 0.9s ease 1.02s forwards,
    wmStream 1.1s linear 1.02s,
    wmBeamsOut 0.3s ease 1.9s forwards;
}
@keyframes wmBeamsIn {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes wmStream {
  0%   { background-position: 0 0; }
  100% { background-position: -160px 0; }
}
/* Hands the letters over to the solid wordmark at the hit. */
@keyframes wmBeamsOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes logoIn {
  0% { opacity: 0; transform: scale(1.28); filter: blur(14px); }
  35% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
.intro-text {
  opacity: 0;
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 9vw, 128px);
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--accent);
  position: relative;
  display: inline-block;
  /* One red. The old fill ramped white -> pink -> red -> near-black down the
     glyphs, which cut the wordmark in half tonally instead of reading as a
     colour. Kept as a gradient purely so the very bottom edge grounds it. */
  background: linear-gradient(180deg, #ff1f2b 0%, #e50914 55%, #c40710 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(229,9,20,0.9)) drop-shadow(0 0 60px rgba(229,9,20,0.6));
  /* Both, in one declaration: a second `animation:` further down the rule
     would silently replace the first, and the wordmark would never appear. */
  animation:
    logoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.9s forwards,
    textGlow 2.2s ease 2.1s;
}
@keyframes textGlow {
  0% { filter: drop-shadow(0 0 40px rgba(255,70,80,0.95)) drop-shadow(0 0 80px rgba(229,9,20,1)); }
  40% { filter: drop-shadow(0 0 25px rgba(229,9,20,0.9)) drop-shadow(0 0 60px rgba(229,9,20,0.6)); }
  100% { filter: drop-shadow(0 0 30px rgba(229,9,20,0.8)) drop-shadow(0 0 70px rgba(229,9,20,0.5)); }
}
.intro-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  /* A faint red sheen, not white and not strong. At full opacity the sweep
     lit one half of the wordmark as it crossed — the same two-tone look the
     flat fill above exists to avoid, just moving. */
  background: linear-gradient(100deg, transparent 35%, rgba(255,105,115,0.4) 50%, transparent 65%);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: introShine 1.4s ease 2.4s;
}
@keyframes introShine {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

/* Tagline under the wordmark. Arrives a beat after the logo has settled, so
   the hit stays about the logo and this reads as the line beneath it. */
.intro-tagline {
  margin-top: 14px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;      /* letter-spacing pads the right; recentre it */
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 0 18px rgba(229, 9, 20, 0.65);
  opacity: 0;
  animation: taglineIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.55s forwards;
}
@keyframes taglineIn {
  0%   { opacity: 0; transform: translateY(9px); letter-spacing: 0.62em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.42em; }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  transition: background 0.3s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.nav.scrolled { background: var(--bg); }

.nav-left { display: flex; align-items: center; gap: 36px; }
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px;
  color: var(--text);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.search input {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 2px;
  width: 220px;
  outline: none;
}
.search input::placeholder { color: #888; }
.avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 4px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 120px;
  overflow: hidden;
}
/* Sits under the video and carries the landscape still. Painting this as a
   background rather than the video's `poster` attribute matters: a poster is
   discarded the moment the first frame decodes, which flashed mid-load. */
.hero-still {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 22%;   /* faces sit above centre on film stills */
  background-color: #0b0b0b;
  z-index: 0;
  pointer-events: none;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  /* Held back until 'canplay', then crossfades over the still. */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.ready { opacity: 1; }
.hero-fade {
  position: absolute; inset: 0;
  /* Must out-rank .hero-video, which now carries z-index 1 for the crossfade.
     Without this the gradient fell behind the video and the title lost its
     contrast the moment the film faded in. */
  z-index: 2;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0) 40%);
}
.hero-content {
  position: relative;
  max-width: 620px;
  z-index: 3;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero-desc {
  font-size: 16px;
  line-height: 1.5;
  color: #eaeaea;
  margin-bottom: 22px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero-buttons { display: flex; gap: 12px; }
.btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.8; }
.btn:active { transform: scale(0.98); }
.btn-play { background: #fff; color: #000; }
.btn-info { background: rgba(109,109,110,0.7); color: #fff; }

.hero-mute {
  position: absolute;
  right: 48px;
  bottom: 140px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.hero-mute:hover {
  background: rgba(0,0,0,0.8);
  border-color: #fff;
}

/* ---------- ROWS ---------- */
.rows {
  position: relative;
  z-index: 3;
  padding: 0 0 60px;
  margin-top: -90px;
}
.row {
  margin-bottom: 36px;
  padding: 0 48px;
}
.row h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #e5e5e5;
}
.row-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.row:hover .row-more { opacity: 1; }
.row-more:hover { color: #fff; }
.row-rail { position: relative; }
.row-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0 20px;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

/* Scroll affordance. The track hides its scrollbar, so without these a mouse
   user has no way to reach the rest of a row. */
.row-arrow {
  position: absolute;
  top: 8px;
  bottom: 20px;
  z-index: 6;
  width: 46px;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  background: rgba(10,10,10,0.6);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.row-arrow-l { left: 0; border-radius: 0 4px 4px 0; }
.row-arrow-r { right: 0; border-radius: 4px 0 0 4px; }
.row-rail:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(10,10,10,0.85); }
.row-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: -3px; }
/* Nothing further to scroll in that direction. */
.row.at-start .row-arrow-l,
.row.at-end .row-arrow-r,
.row.no-scroll .row-arrow { display: none; }

.rows-note { padding: 40px 48px; color: var(--text-dim); }

/* Genre toggles above the rows. Sticky under the nav so you can keep
   filtering while scrolling a long catalogue. */
.filters {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 48px 12px;
  background: linear-gradient(180deg, rgba(10,10,10,0.97), rgba(10,10,10,0.82) 70%, transparent);
  backdrop-filter: blur(6px);
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.filters-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #e5e5e5;
  flex: 0 0 auto;
}
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(255,255,255,0.16); color: #fff; }
.chip.on {
  background: #fff;
  border-color: #fff;
  color: #111;
  font-weight: 700;
}
.filter-clear {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.filter-clear:hover { color: #fff; }

@media (max-width: 720px) {
  .filters { padding: 12px 20px 10px; }
  .filters-label { display: none; }
}

.card {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 16 / 9;
  background: #222;
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0s 0.25s;
}
.card:hover {
  transform: scale(1.12);
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0s 0s;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2a2a2a, #0e0e0e);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #fff;
  text-align: center;
  padding: 10px;
}
.card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .card-label { opacity: 1; }

/* VOD artwork is a portrait poster — give those cards poster proportions. */
.card-poster {
  width: 180px;
  aspect-ratio: 2 / 3;
}
.card-poster .card-label { opacity: 1; }

/* Live channel cards carry a station logo, not a still — letterbox it on a
   dark panel instead of cropping, and label it as always-on. */
.card-channel {
  background: radial-gradient(circle at 50% 40%, #262626, #0d0d0d);
}
.card-channel img {
  object-fit: contain;
  padding: 16px 18px 22px;
}
.card-channel .card-label { opacity: 1; }
.card-live {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0,0,0,0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.card-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  animation: fade 0.2s ease;
}
.modal-panel {
  position: relative;
  width: min(900px, 92vw);
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  animation: pop 0.25s ease;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-video iframe,
.modal-video video {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
/* Shown in place of the player when the container has no browser demuxer. */
.modal-unplayable {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.modal-unplayable strong { color: #fff; }
/* Overlaid on a film that is playing fine but whose audio codec the browser
   cannot decode — see warnIfSilent() in player.js. */
.player-note {
  position: absolute;
  left: 0; right: 0; bottom: 62px;
  margin: 0 auto;
  max-width: 560px;
  padding: 9px 14px;
  border-radius: 5px;
  background: rgba(10,10,10,0.86);
  color: #e5e5e5;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}
.modal-video { position: relative; }
.modal-url {
  width: 100%;
  max-width: 560px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  color: #b3b3b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
}

.modal-meta { padding: 22px 26px 26px; }
.modal-meta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  margin-bottom: 10px;
}
.modal-meta p {
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 15px;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 48px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .search input { width: 140px; }
  .hero { padding: 0 20px 80px; height: 70vh; }
  .hero-title { font-size: 44px; }
  .row { padding: 0 20px; }
  .card { width: 180px; }
}
