/* The film website: night-cinema dark, one hot accent for "watch", gold for "coming". */
:root {
  --bg: #0b0a10;
  --bg-raised: #15131d;
  --bg-card: #1b1826;
  --line: #2a2638;
  --fg: #f4f1f8;
  --fg-muted: #b3adc2;
  --fg-faint: #7d7690;
  --accent: #ff3b6b;
  --accent-deep: #c21f4b;
  --gold: #ffc54d;
  --radius: 14px;
  --radius-sm: 9px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 10, 16, 0.96), rgba(11, 10, 16, 0.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
/* The Rimosoft mark: drawn artwork on a transparent ground, so no tile behind it. */
/* A customer's channel name as the logo: the brand's colours, no picture. */
.brand-text {
  font-weight: 800; font-size: 21px; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #a18bff, #ff3d7f); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-mark { display: block; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(255, 61, 127, 0.35)); }
.brand-tagline { margin: 0; color: var(--fg-faint); font-size: 13px; }

main { padding-bottom: 48px; }

/* ------------------------------------------------------------------ hero (home) and film header */
.hero, .film { position: relative; overflow: hidden; isolation: isolate; }
.hero-backdrop {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; filter: blur(38px) saturate(1.3) brightness(0.45); z-index: -2; transform: scale(1.05);
}
.hero::after, .film::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 10, 16, 0.2), var(--bg) 96%);
}
.hero-body, .film-body {
  display: flex; gap: clamp(18px, 4vw, 40px); align-items: flex-end;
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(24px, 4vw, 40px);
  max-width: 1200px; margin: 0 auto;
}
.poster { aspect-ratio: 2 / 3; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-card); }
.poster-empty { display: grid; place-items: center; font-size: 42px; font-weight: 800; color: var(--fg-faint); }
.hero-poster, .film-poster {
  width: clamp(120px, 26vw, 230px); flex-shrink: 0; border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1, .film h1 { font-size: clamp(28px, 6vw, 56px); font-weight: 800; }
.hero-episode { margin: 8px 0 14px; color: var(--fg-muted); font-size: clamp(15px, 2.2vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { background: #ff5580; box-shadow: 0 14px 36px -10px var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ------------------------------------------------------------------ countdown */
.countdown { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.countdown-label { color: var(--fg-faint); font-size: 13px; }
.countdown-value { color: var(--gold); font-weight: 700; font-size: 16px; }
.hero .countdown-value, .next .countdown-value { font-size: clamp(20px, 3.4vw, 30px); letter-spacing: 0.01em; }
.countdown.is-live .countdown-value { color: var(--accent); }
/* Out already: "Đang lên sóng" says it all, without "Lên sóng sau" before it. */
.countdown.is-live .countdown-label { display: none; }
.countdown-soon { color: var(--gold); font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------------ shelves */
.shelf, .episodes { max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter) 0; }
.shelf-title { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-live { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 59, 107, 0.2); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 59, 107, 0); } }

.rail {
  list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(132px, 34vw, 190px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail > li { scroll-snap-align: start; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 44vw), 1fr)); gap: 18px 14px; }

.card { display: flex; flex-direction: column; gap: 8px; }
.card-art { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.card:hover .card-art, .card:focus-visible .card-art { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 59, 107, 0.4); }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--fg-faint); font-size: 13px; }
.card .countdown-value { font-size: 14px; }
.badge {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
}
.badge-quiet { background: rgba(11, 10, 16, 0.78); border: 1px solid rgba(255, 255, 255, 0.14); }
.empty { color: var(--fg-muted); }

/* ------------------------------------------------------------------ film page */
.crumbs { max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter) 0; color: var(--fg-muted); font-size: 14px; }
.crumbs a:hover { color: var(--fg); }
.film-author { margin: 6px 0 0; color: var(--fg-muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.chips li { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 12px; color: var(--fg-muted); }
.film-facts { margin: 12px 0 0; color: var(--fg-muted); font-size: 14px; }
.film-facts strong { color: var(--fg); }
.synopsis { margin-top: 12px; max-width: 64ch; color: var(--fg-muted); }
.synopsis summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.synopsis p { margin: 8px 0 0; white-space: pre-line; }
.next { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 197, 77, 0.08); border: 1px solid rgba(255, 197, 77, 0.25); display: inline-block; }

.episode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.episode {
  display: flex; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--bg-raised);
  border: 1px solid var(--line); scroll-margin-top: 80px; transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.episode:target { border-color: var(--accent); background: linear-gradient(90deg, rgba(255, 59, 107, 0.12), var(--bg-raised) 60%); }
.episode-art { position: relative; width: 84px; flex-shrink: 0; aspect-ratio: 9 / 16; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.episode-art img { width: 100%; height: 100%; object-fit: cover; }
.episode.is-coming .episode-art img { filter: grayscale(0.6) brightness(0.55); }
.episode-number { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(11, 10, 16, 0.82); font-size: 11px; font-weight: 700; }
.episode-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.episode-text h3 { font-size: 16px; font-weight: 700; }
.episode-detail, .episode-when { margin: 0; color: var(--fg-faint); font-size: 13px; }

.watch { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: filter 160ms var(--ease), transform 160ms var(--ease); }
.watch-btn:hover { filter: brightness(1.15); }
.watch-btn:active { transform: scale(0.96); }
.watch-youtube { background: #ff0033; color: #fff; }
.watch-tiktok { background: #000; color: #fff; box-shadow: -2px 0 0 #25f4ee inset, 2px 0 0 #fe2c55 inset; border: 1px solid #333; }
.watch-reels { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); color: #fff; }

.footer { max-width: 1200px; margin: 40px auto 0; padding: 20px var(--gutter) 36px; color: var(--fg-faint); font-size: 13px; border-top: 1px solid var(--line); }
.footer a { color: inherit; }
.footer .legal a { text-decoration: underline; text-underline-offset: 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.socials a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .15s, background-color .15s; }
.socials a:hover, .socials a:focus-visible { border-color: var(--accent, #ff3b6b); background: rgb(255 59 107 / .08); }

@media (max-width: 560px) {
  .brand-tagline { display: none; }
  .hero-body, .film-body { flex-direction: column; align-items: flex-start; }
  .hero-poster, .film-poster { width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- The "Truyện mới" list: novels as words on their genre's colour ---- */
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a { padding: 6px 12px; border-radius: 999px; color: var(--fg-muted); font-weight: 600; font-size: 14px; }
.topnav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf-more { color: var(--accent); font-weight: 700; font-size: 14px; }
/* The catalog page sits in the same column as the rest of the site. */
.catalog-page { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.catalog-head { padding: 28px 0 8px; }
.catalog-head h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 6px 0 10px; }
.catalog-lead { color: var(--fg-muted); max-width: 640px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: var(--fg-muted); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 160ms var(--ease), color 160ms var(--ease); }
.chip:hover { color: var(--fg); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.novels { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.novel { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.novel[hidden] { display: none; }
.novel-art {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 8px;
  aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--hue) 70% 34%), hsl(calc(var(--hue) + 40) 65% 16%));
}
.novel-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 55%); }
.novel-art-genre { position: relative; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.novel-art-title { position: relative; z-index: 1; font-weight: 800; font-size: 13px; line-height: 1.2; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.novel-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.novel-title { margin: 0; font-size: 16px; line-height: 1.3; }
.novel-meta { margin: 0; color: var(--fg-faint); font-size: 13px; }
.novel-genres { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.novel-genres span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--fg-muted); }
.novel-blurb { margin: 0; color: var(--fg-muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.novel .btn { align-self: flex-start; margin-top: auto; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn.is-done { background: rgba(61, 220, 151, 0.14); border-color: rgba(61, 220, 151, 0.5); color: #3ddc97; cursor: default; }

/* The request button is the page's point: it stands out, in the site's accent. */
.novel [data-request] { background: rgba(255, 59, 107, 0.12); border-color: rgba(255, 59, 107, 0.55); color: #ff8fab; }
.novel [data-request]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* A phone: the channel's name gives way before anything spills past the screen's edge. */
.brand { min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-body, .novel-title, .novel-genres { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .topbar { gap: 8px; }
  .brand-text { font-size: 17px; }
  .topnav { gap: 2px; flex-shrink: 0; }
  .topnav a { padding: 6px 8px; font-size: 13px; }
  .novel { grid-template-columns: 76px 1fr; gap: 10px; }
}

/* ------------------------------------------------------------------ home: the spotlight */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 10%, rgba(11, 10, 16, 0.1), var(--bg) 78%), linear-gradient(to bottom, transparent 60%, var(--bg)); }
.spot-body {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(20px, 3vw, 36px);
}
.spot h1 { font-size: clamp(30px, 5.6vw, 60px); font-weight: 800; }
.spot-episode { margin: 10px 0 0; color: var(--fg); font-size: clamp(16px, 2.2vw, 21px); font-weight: 600; }
.spot-summary { margin: 14px 0 0; max-width: 58ch; color: var(--fg-muted); font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.spot-when { margin-top: 16px; }
.spot .countdown-value { font-size: clamp(20px, 3.2vw, 30px); }
/* Scene pictures as a fanned stack of film frames: the episode's look, not a single poster. */
.spot-reel { position: relative; height: clamp(300px, 42vw, 520px); }
.spot-reel img {
  position: absolute; height: 88%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 400ms var(--ease);
}
.spot-reel img:nth-child(1) { z-index: 3; left: 50%; top: 6%; transform: translateX(-50%); }
.spot-reel img:nth-child(2) { z-index: 2; left: 8%; top: 12%; height: 76%; transform: rotate(-7deg); filter: brightness(0.8); }
.spot-reel img:nth-child(3) { z-index: 1; right: 8%; top: 12%; height: 76%; transform: rotate(7deg); filter: brightness(0.8); }
.reel-1 img:nth-child(1) { top: 4%; }
.spot-reel:hover img:nth-child(2) { transform: rotate(-10deg) translateX(-10px); }
.spot-reel:hover img:nth-child(3) { transform: rotate(10deg) translateX(10px); }

/* ------------------------------------------------------------------ episodes with what they tell */
.releases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.release { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.release:hover { border-color: rgba(255, 59, 107, 0.45); transform: translateY(-2px); }
.release-art { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.release-art img { width: 100%; height: 100%; object-fit: cover; }
.release-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.release-film { margin: 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.release-text h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.release-summary { margin: 0; color: var(--fg-muted); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.release .watch, .release .countdown { margin-top: auto; }

/* ------------------------------------------------------------------ scene strips and the cast */
.spot-more { padding-top: 30px; }
.stills { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(96px, 22vw, 150px); gap: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.stills img { aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-sm); }
.stills-wide { grid-auto-columns: clamp(120px, 26vw, 186px); gap: 12px; }
.episode .stills { grid-auto-columns: 64px; gap: 6px; margin-top: 4px; }
.sub-title { margin: 22px 0 12px; font-size: 16px; font-weight: 700; color: var(--fg-muted); }
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
.cast-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cast-person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 59, 107, 0.55); }
.cast-name { margin-top: 6px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.cast-role { color: var(--fg-faint); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ every film */
.films { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.film-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); }
.film-card:hover { border-color: rgba(255, 59, 107, 0.45); }
.film-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.film-card-synopsis { color: var(--fg-muted); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.film-card-foot { margin-top: auto; color: var(--fg-faint); font-size: 12.5px; }
.badge-gold { background: var(--gold); color: #1a1300; }
.episode-summary { margin: 0; color: var(--fg-muted); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ ad slots: always marked */
.ad-slot { max-width: 1200px; margin: 24px auto 0; padding: 0 var(--gutter); }
.ad-slot .ad-body { display: grid; place-items: center; min-height: 90px; padding: 10px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.1); overflow: hidden; }
.ad-label { display: block; margin-bottom: 6px; color: var(--fg-faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.catalog-page .ad-slot, .episode-ad .ad-slot { padding: 0; margin-top: 16px; }
.episode-ad { list-style: none; }

@media (max-width: 760px) {
  .spot-body { grid-template-columns: 1fr; }
  .spot-reel { order: -1; height: clamp(260px, 80vw, 380px); }
}
@media (max-width: 560px) {
  .release { grid-template-columns: 92px 1fr; gap: 10px; }
  .film-card { grid-template-columns: 96px 1fr; gap: 12px; }
  .cast { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .cast-person img { width: 72px; height: 72px; }
}
/* A grid track grows to its content by default: the scene strip must scroll inside the card, not
   widen the page (measured 2026-09-29: 414 px wide on a 390 px phone). */
.episode-list, .releases, .films { grid-template-columns: minmax(0, 1fr); }
.releases { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.films { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.episode-text { flex: 1 1 auto; }
