/* Catalog pages (films, series, titles, people): the home page's black velvet and gold, with the app's posters. */
@font-face {
  font-family: Onest;
  src: url("/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url("/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #050506;
  --velvet: #0d0b09;
  --velvet-hi: #17130c;
  --panel: linear-gradient(160deg, var(--velvet-hi), var(--velvet) 70%);
  --gold: #d4af37;
  --gold-hi: #f2d27a;
  --gold-lo: #8f6f1c;
  --gold-bar: linear-gradient(180deg, #fff3c4 0%, #f0d77b 45%, var(--gold) 55%, #a8841f 100%);
  --cream: #f4efe6;
  --soft: #cfc8ba;
  --muted: #a8a093;
  --line: rgba(212, 175, 55, 0.24);
  --line-soft: rgba(212, 175, 55, 0.14);
  --on-gold: #1a1405;
  --spring: cubic-bezier(.2, .8, .2, 1);
  --display: Unbounded, "Arial Black", system-ui, sans-serif;
  --text: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --glint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2'%3E%3Cdefs%3E%3CradialGradient id='h'%3E%3Cstop offset='0' stop-color='%23FFF3C4' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%23FFF3C4' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle r='1' fill='url(%23h)'/%3E%3Cpath d='M0 -0.6 L0.09 -0.09 L0.6 0 L0.09 0.09 L0 0.6 L-0.09 0.09 L-0.6 0 L-0.09 -0.09 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  font: 16px/1.65 var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--black); color: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 40; top: -5rem; left: 1rem; background: var(--black); padding: .75rem; }
.skip:focus { top: 1rem; }
.shell { width: min(100% - 40px, 1240px); margin-inline: auto; }
.sr-only { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 730 clamp(1.78rem, 5vw, 3.25rem)/1.22 var(--display); overflow-wrap: anywhere; margin-bottom: 0; }
h2 { font: 680 clamp(1.12rem, 2.5vw, 1.55rem)/1.4 var(--display); margin-bottom: 16px; }

/* ---------- Bar: the home page's, kept at the top while the shelf scrolls ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 6, .8); border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: box-shadow .3s, background-color .3s;
}
.top.is-scrolled { background: rgba(5, 5, 6, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.top-inner { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); font: 800 1.2rem/1 var(--display); letter-spacing: .01em; }
.brand img {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(212, 175, 55, .35);
  transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}
.brand:hover img { transform: rotate(-12deg) scale(1.07); box-shadow: 0 0 0 2px var(--gold-hi), 0 0 34px rgba(242, 210, 122, .55); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; }
.nav a { position: relative; padding: 8px 2px; color: var(--muted); font-weight: 600; text-decoration: none; transition: color .15s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s var(--spring);
}
.nav a:hover, .nav a[aria-current] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .download {
  padding: 9px 20px; border-radius: 999px; color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: 0 6px 20px rgba(212, 175, 55, .25); transition: filter .15s, transform .15s;
}
.nav .download::after { display: none; }
.nav .download:hover { color: var(--on-gold); filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  touch-action: manipulation;
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent;
  text-decoration: none; color: var(--cream); font: 700 1rem/1.2 var(--text);
  transition: filter .15s, transform .15s, background .15s, border-color .15s;
}
.btn:hover { background: rgba(212, 175, 55, .12); }
.btn-gold {
  position: relative; isolation: isolate; overflow: hidden;
  border-color: transparent; color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: 0 10px 30px rgba(212, 175, 55, .25);
}
/* A streak of light crosses the gold when it is pointed at. */
.btn-gold::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  filter: brightness(1.06); transform: translateY(-1px);
}
.btn-gold:hover::after { transform: translateX(130%); transition: transform .75s ease; }
.btn[href="/#download"]::before, .btn[data-share]::before, .btn[href="#trailer"]::before {
  content: ""; display: block; width: .95em; height: .95em; flex: 0 0 .95em; background: currentColor;
  -webkit-mask: var(--button-icon) center / contain no-repeat;
  mask: var(--button-icon) center / contain no-repeat;
}
.btn[href="/#download"], .btn[href="#trailer"] {
  --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='3' y='7' width='42' height='34' rx='6' fill='none' stroke='black' stroke-width='3.5'/%3E%3Cpath d='M19 15l14 9-14 9z'/%3E%3C/svg%3E");
}
.btn[data-share] {
  --button-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3.5' stroke-linejoin='round'%3E%3Cpath d='M16 21L32 12M16 27l16 9'/%3E%3Ccircle cx='12' cy='24' r='6'/%3E%3Ccircle cx='37' cy='9' r='6'/%3E%3Ccircle cx='37' cy='39' r='6'/%3E%3C/svg%3E");
}

/* ---------- Section opening: dust, glow, the shining title and a fan of posters ---------- */
.catalog-main { padding-bottom: 8px; }
.catalog-hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px;
  min-height: clamp(300px, 32vw, 420px); padding-block: clamp(26px, 4.5vw, 60px) clamp(30px, 4.5vw, 56px);
}
.catalog-hero::before {
  content: ""; position: absolute; z-index: -1; right: -6%; top: -32%; width: 62%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 175, 55, .2), rgba(212, 175, 55, .06) 55%, transparent 72%);
}
.dust { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dust i {
  position: absolute; bottom: -14px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 210, 122, .95), rgba(212, 175, 55, 0) 70%);
  opacity: 0; animation: dust var(--d) linear infinite; animation-delay: var(--t);
}
@keyframes dust {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .45; }
  100% { transform: translate3d(var(--dx), -620px, 0); opacity: 0; }
}
.catalog-hero-copy { position: relative; z-index: 1; min-width: 0; }
.catalog-hero h1, #title-heading {
  width: fit-content; max-width: 100%; color: var(--gold-hi); font-weight: 800; letter-spacing: -.015em; text-wrap: balance;
}
.catalog-hero h1 { font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: 1.02; }
#title-heading { font-size: clamp(1.62rem, 4.3vw, 3.45rem); line-height: 1.08; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .catalog-hero h1, #title-heading {
    background:
      linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) 100% 0 / 250% 100% no-repeat,
      linear-gradient(180deg, #fff3c4 0%, var(--gold-hi) 38%, var(--gold) 72%, var(--gold-lo) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: title-sheen 1.9s .5s cubic-bezier(.3, .6, .3, 1) both;
  }
  /* Every few seconds the light passes over the title again, as over a real gold plate. */
  .catalog-hero h1 { animation: title-sheen 1.9s .5s cubic-bezier(.3, .6, .3, 1) both, title-gleam 9s 4s ease-in-out infinite; }
}
@keyframes title-sheen {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0 0, 0 0; }
}
@keyframes title-gleam {
  0% { background-position: 100% 0, 0 0; }
  18%, 100% { background-position: 0 0, 0 0; }
}
@media (forced-colors: active) {
  .catalog-hero h1, #title-heading { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; animation: none; }
}
.catalog-lead { margin: 18px 0 26px; max-width: 34rem; color: var(--soft); font-size: clamp(1rem, 1.5vw, 1.1875rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.catalog-hero-copy > * { animation: arrive .7s var(--spring) both; }
.catalog-hero-copy > p { animation-delay: .15s; }
.catalog-hero-copy > .hero-actions { animation-delay: .28s; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }

/* The fan: this year's posters are dealt out, then sway. Pointed at (tapped on a phone) they open wide, and the two
   outermost posters scatter into specks like a dispersion photo; the specks gather back when the pointer leaves. */
.poster-fan {
  --w: clamp(118px, 12.5vw, 172px); --cx: 42%; --spread: 1; --tilt: 1; --open: 1.5;
  position: relative; z-index: 1; height: calc(var(--w) * 1.85); max-width: 100%;
  animation: bob 9s ease-in-out 1.6s infinite; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.fan-card {
  --x: 0%; --y: 0px; --r: 0deg; --k: 0;
  position: absolute; left: var(--cx); top: 50%; width: var(--w); aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--spread)), var(--y)) rotate(calc(var(--r) * var(--tilt)));
  transition: transform .8s var(--spring);
  animation: deal .95s var(--spring) backwards; animation-delay: calc(.3s + var(--k) * .13s);
}
.fan-card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid rgba(242, 210, 122, .45);
  background: var(--panel); box-shadow: 0 26px 50px rgba(0, 0, 0, .78), 0 0 0 1px rgba(0, 0, 0, .5);
  transition: filter .4s;
}
.fan-card:nth-child(1) { z-index: 5; --y: -10px; }
.fan-card:nth-child(2) { z-index: 4; --x: -58%; --y: 8px; --r: -8deg; --k: 1; }
.fan-card:nth-child(3) { z-index: 4; --x: 58%; --y: 8px; --r: 8deg; --k: 1; }
.fan-card:nth-child(4) { z-index: 3; --x: -108%; --y: 34px; --r: -16deg; --k: 2; }
.fan-card:nth-child(5) { z-index: 3; --x: 108%; --y: 34px; --r: 16deg; --k: 2; }
.fan-card:nth-child(n + 4) img { filter: brightness(.8); }
.poster-fan:hover, .poster-fan.is-open { --spread: var(--open); --tilt: 1.12; }
.poster-fan:hover .fan-card img, .poster-fan.is-open .fan-card img { filter: none; }
/* The scattering is drawn on a canvas laid over the poster; the picture itself hides while it is in pieces. */
.fan-dust { position: absolute; display: none; pointer-events: none; }
.fan-card.is-scattering .fan-dust { display: block; }
.fan-card.is-scattering img { visibility: hidden; }
/* The app's glint over the top poster. */
.poster-fan::after {
  content: ""; position: absolute; z-index: 6; width: 34px; height: 34px; pointer-events: none;
  left: calc(var(--cx) + var(--w) / 2 - 30px); top: calc(50% - var(--w) * .75 - 6px);
  background: var(--glint) center / 100% 100% no-repeat;
  animation: glint 2.6s ease-in-out 1.6s infinite backwards, glint-in .5s ease-out 1.2s backwards;
}
@keyframes deal { from { opacity: 0; transform: translate(-50%, -30%) rotate(0deg) scale(.86); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glint { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: .85; transform: scale(1.12) rotate(14deg); } }
@keyframes glint-in { from { opacity: 0; transform: scale(.3); } }

/* ---------- Running line of genres, as on the home page ---------- */
.ticker {
  position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(212, 175, 55, .07), transparent 28%, transparent 72%, rgba(212, 175, 55, .07));
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tick 64s linear infinite; }
.ticker-set { display: flex; flex: none; align-items: center; }
.ticker-set a {
  padding: 16px 0; font: 700 .95rem/1 var(--display); color: var(--gold-hi); white-space: nowrap; text-decoration: none;
  transition: color .2s, text-shadow .2s;
}
.ticker-set a:hover, .ticker-set a:focus-visible { color: #fff3c4; text-shadow: 0 0 18px rgba(242, 210, 122, .65); }
.ticker-set a:focus-visible { outline-offset: -3px; }
.ticker-set i { padding: 0 26px; font-style: normal; color: var(--gold); opacity: .85; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Search and filters ---------- */
.catalog-body { padding-top: clamp(22px, 3.2vw, 36px); }
.search {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px;
  position: relative; z-index: 6; padding: clamp(14px, 2.2vw, 22px); border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(212, 175, 55, .13), transparent 60%), var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(242, 210, 122, .1);
}
.search > [type="search"], .facets, .filter-chips, .filter-note { grid-column: 1 / -1; }
.search > [type="search"], .facet-popup > input {
  width: 100%; min-width: 0; min-height: 45px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--black); color: var(--cream); transition: border-color .2s, box-shadow .25s;
}
.search > [type="search"] {
  min-height: 50px; padding-inline-start: 48px;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.6-4.6'/%3E%3C/svg%3E") 18px center / 19px no-repeat;
}
.search > [type="search"]:focus, .facet-popup > input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .16); }
.search input::placeholder { color: var(--muted); }
.facets { display: grid; grid-template-columns: repeat(3, minmax(7rem, 1fr)) minmax(9.5rem, 1.15fr) minmax(9.5rem, 1.15fr); gap: 8px; }
.facet { position: relative; min-width: 0; }
.facet > summary, .facets select {
  display: flex; width: 100%; min-width: 0; align-items: center; min-height: 44px; gap: 6px; padding: 8px 35px 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background-color: var(--velvet); color: var(--cream);
  font: 650 .875rem/1.25 var(--text); cursor: pointer; transition: border-color .2s, background-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 15px; background-position: right 12px center; background-repeat: no-repeat;
}
.facet > summary { position: relative; list-style: none; background-image: none; }
.facet > summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--spring);
}
.facet[open] > summary::after { transform: rotate(180deg); }
.facet > summary::-webkit-details-marker { display: none; }
.facets select { appearance: none; }
.facet[open] > summary, .facet > summary:hover, .facets select:hover { border-color: var(--gold); background-color: #20190d; }
.facet-count {
  flex: none; padding: 1px 6px; border-radius: 999px; background: #30240d; color: var(--gold-hi);
  font-size: .72rem; font-variant-numeric: tabular-nums; animation: chip-in .3s cubic-bezier(.3, 1.5, .5, 1) both;
}
.facet-popup {
  z-index: 5; position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 0;
  width: min(20rem, calc(100vw - 54px)); padding: 10px; background: var(--panel);
  border: 1px solid var(--gold-lo); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .75);
  transform-origin: top left;
}
.facet[open] > .facet-popup { animation: pop .24s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.facet-popup > input { min-height: 38px; margin-bottom: 8px; padding: 6px 12px; font-size: .875rem; }
.facet-options { margin: 0; padding: 2px; max-height: min(22rem, 45vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--gold-lo) var(--velvet); }
.facet-option {
  display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 10px;
  min-height: 38px; padding: 8px; border-radius: 7px; color: var(--cream); font-size: .91rem; line-height: 1.35;
  overflow-wrap: anywhere; cursor: pointer; transition: background-color .15s;
}
.facet-option:hover, .facet-option:has(input:checked) { background: #272011; }
.facet-option input { margin: 0; width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; }
.facet-option--choices { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 3px 4px 3px 8px; cursor: default; }
.facet-actions { display: flex; gap: 4px; }
.facet-action { position: relative; display: block; }
.facet-action input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.facet-action span {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--gold-hi); font-size: 1.15rem; font-weight: 750; transition: background-color .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.facet-action--exclude span { color: #ffc0b6; }
.facet-action input:hover + span { border-color: currentColor; }
.facet-action input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 1px; }
.facet-action input:checked + span { background: var(--gold-hi); border-color: transparent; color: var(--on-gold); transform: scale(1.06); }
.facet-action--exclude input:checked + span { background: #ffc0b6; color: #301513; }
.facet-help, .facet-caption { margin: 0 5px 6px; font-size: .78rem; color: var(--muted); }
.facet-help { display: flex; gap: 14px; }
.facet-help span { color: #ffc0b6; }
.facet-announcements { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 6px; }
.facet-caption { color: var(--gold-hi); font-weight: 700; }
.facet-empty, .filter-note { margin: 2px 6px; font-size: .85rem; color: var(--muted); }
.facet-done {
  display: block; margin: 8px 0 0 auto; padding: 5px 14px; min-height: 34px;
  border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-hi); background: transparent; font-weight: 650;
}
.facet-done:hover { background: rgba(212, 175, 55, .12); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 34px; max-width: 100%; padding: 4px 10px 4px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: #20190d; color: var(--gold-hi);
  font: 650 .85rem/1.3 var(--text); text-decoration: none; text-align: start; transition: border-color .15s, background-color .15s;
}
.filter-chip.is-new { animation: chip-in .32s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes chip-in { from { opacity: 0; transform: scale(.6); } }
.filter-chip:hover { border-color: var(--gold); background: #2a2010; }
.filter-chip--excluded { color: #ffc0b6; background: #2a1815; }
.filter-chip--excluded:hover { border-color: #ffc0b6; }
.filter-chip-label { overflow-wrap: anywhere; }
.filter-chip-remove { flex: none; padding-inline: 2px; color: var(--cream); font-size: 1.15rem; line-height: 1; transition: transform .2s; }
.filter-chip:hover .filter-chip-remove { transform: rotate(90deg); }
.search .btn-gold { min-height: 44px; grid-column: 2; padding: 10px 26px; }
.reset { grid-column: 1; align-self: center; justify-self: start; color: var(--gold-hi); font-size: .9rem; text-underline-offset: .18em; }
.search .reset + .btn-gold { grid-column: 2; }

/* ---------- The shelf: posters first, as on a cinema wall ---------- */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 32px 0 22px; }
.catalog-count { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: .95rem; }
.catalog-count::before { content: ""; flex: none; width: 4px; height: 1.6em; border-radius: 2px; background: var(--gold-bar); }
.catalog-count strong { display: inline-block; color: var(--gold-hi); font: 800 1.2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sort-tabs {
  display: flex; max-width: 100%; height: 38px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid #2a2a2e; border-radius: 3px; background: #0b0b0d; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.sort-tabs::-webkit-scrollbar { display: none; }
/* GusCasino's segmented switch: square, quiet, the chosen order lit in gold. */
.sort-tabs a {
  display: flex; align-items: center; flex: none; padding: 0 15px; color: var(--muted); text-decoration: none; white-space: nowrap;
  font: 800 .8rem/1 var(--text); letter-spacing: .3px; transition: color .15s, background-color .15s; touch-action: manipulation;
}
.sort-tabs a:hover { color: var(--cream); }
.sort-tabs a:focus-visible { outline-offset: -3px; }
.sort-tabs a[aria-current] { color: var(--gold); background: rgba(212, 175, 55, .14); box-shadow: inset 0 -2px var(--gold); }
.grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.9vw, 22px);
  row-gap: clamp(22px, 2.6vw, 34px);
}
.card { --bevel: 14px; position: relative; container: poster-card / inline-size; min-width: 0; display: flex; flex-direction: column; }
/* The tile leans towards the mouse and rises with a gold halo; the halo is a drop shadow, which the bevel cannot cut. */
.card-poster {
  position: relative;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .55));
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--spring), translate .4s var(--spring), filter .35s;
}
.card-poster.is-tilting { transition: transform .1s linear, translate .4s var(--spring), filter .35s; }
.card:hover .card-poster, .card:focus-within .card-poster {
  translate: 0 -6px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(212, 175, 55, .32));
}
.tile {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2 / 3; background: #141416;
  clip-path: polygon(var(--bevel) 0, 100% 0, 100% calc(100% - var(--bevel)), calc(100% - var(--bevel)) 100%, 0 100%, 0 var(--bevel));
}
.poster-link {
  display: block; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(110deg, #15110b 30%, #2b2213 50%, #15110b 70%) 0 0 / 300% 100%;
}
.js .poster-link:not(.is-loaded) { animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.poster-link img, .poster-fallback img, .feature-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-link img { object-position: 50% 0; transition: transform .7s var(--spring), filter .4s; }
.card:hover .poster-link img, .card:focus-within .poster-link img { transform: scale(1.05); filter: brightness(1.06) saturate(1.06); }
.poster-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; aspect-ratio: 2 / 3;
  background: radial-gradient(ellipse at 50% 50%, #433019, #15110d 75%);
}
.poster-fallback img { width: 48%; height: auto; border-radius: 50%; }
/* Edge, gilt folds in the bevelled corners and a gold bracket: GusCasino's tile, verbatim in shape. */
.tile-edge { position: absolute; z-index: 3; inset: 0; pointer-events: none; border: 1px solid #2a2a2e; transition: border-color .28s; }
.card:hover .tile-edge, .card:focus-within .tile-edge { border-color: rgba(212, 175, 55, .6); }
.tile-fold { position: absolute; z-index: 4; width: 18px; height: 18px; pointer-events: none; }
.tile-fold.tl {
  top: 0; left: 0; clip-path: polygon(100% 0, 0 100%, 100% 100%);
  background: linear-gradient(135deg, #fbf1cf 50%, #e6c25a 64%, #b8901f 80%, #6e5314 100%);
  filter: drop-shadow(1.5px 1.5px 2px rgba(0, 0, 0, .5));
}
.tile-fold.br {
  bottom: 0; right: 0; clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(315deg, #fbf1cf 50%, #e6c25a 64%, #b8901f 80%, #6e5314 100%);
  filter: drop-shadow(-1.5px -1.5px 2px rgba(0, 0, 0, .5));
}
.tile-fil {
  position: absolute; z-index: 4; top: 10px; right: 10px; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .5); border-left: 0; border-bottom: 0; transition: width .3s var(--spring), height .3s var(--spring), border-color .3s;
}
.card:hover .tile-fil, .card:focus-within .tile-fil { width: 22px; height: 22px; border-color: var(--gold-hi); }
.tile-badge {
  position: absolute; z-index: 5; top: 10px; left: 20px; overflow: hidden; padding: 5px 9px;
  font: 800 .6rem/1 var(--text); letter-spacing: 1px; text-transform: uppercase;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.tile-badge::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg);
  animation: badge-shine 3.6s ease-in-out infinite;
}
@keyframes badge-shine { 0% { left: -60%; } 45%, 100% { left: 150%; } }
.badge-new { background: linear-gradient(180deg, #fff3c4, #f0c040 40%, #c99a2e); color: #3a2a06; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.badge-hit { background: linear-gradient(180deg, #ff5d6e, #c1121f 50%, #8a0f1a); color: #fff; }
/* The app's focus: a warm light that follows the pointer, a run of light along the top, a glint in the bracket. */
.tile::after {
  content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 22%) var(--gy, 12%), rgba(255, 243, 196, .28), rgba(255, 243, 196, .06) 30%, rgba(255, 243, 196, 0) 58%);
  transition: opacity .3s ease-out;
}
.tile::before {
  content: ""; position: absolute; z-index: 5; left: 0; top: 2px; width: 55%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 243, 196, 0), #fff3c4 80%, rgba(255, 243, 196, 0));
  opacity: 0; pointer-events: none;
}
.poster-link::after {
  content: ""; position: absolute; z-index: 5; right: 12px; top: 12px; width: 24px; height: 24px; pointer-events: none;
  background: var(--glint) center / 100% 100% no-repeat; opacity: 0; transform: scale(.4);
  transition: opacity .15s ease-out, transform .15s ease-out;
}
.card:hover .tile::after, .card:focus-within .tile::after { opacity: 1; }
.card:hover .tile::before, .card:focus-within .tile::before { animation: poster-run .62s ease-in-out 1; }
.card:hover .poster-link::after, .card:focus-within .poster-link::after {
  opacity: 1; transform: scale(1);
  transition: opacity .32s ease-out .42s, transform .32s ease-out .42s;
  animation: glint 2.6s ease-in-out .74s infinite;
}
@keyframes poster-run { 0% { opacity: 0; transform: translateX(-60%); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(150%); } }
/* Name, year and genres, then the ratings, over a deep shade along the bottom of the poster. */
.tile-info {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 54px 13px 12px; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0), rgba(8, 8, 10, .66) 36%, rgba(8, 8, 10, .96));
}
.tile-info > :is(h2, h3) {
  margin: 0; font: 750 1rem/1.25 var(--text); letter-spacing: .1px; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.tile-info > :is(h2, h3) a { color: var(--cream); text-decoration: none; transition: color .2s; }
.tile-info > :is(h2, h3) a:focus-visible { outline-offset: -3px; border-radius: 3px; }
.card:hover .tile-info > :is(h2, h3) a, .card:focus-within .tile-info > :is(h2, h3) a { color: var(--gold-hi); }
.card-meta { margin: 2px 0 0; color: #cfc9bd; font-size: .74rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-year { color: var(--cream); font-weight: 700; }
.poster-link:focus-visible { outline-offset: -4px; }
/* Ratings in one line, as in the app since 25.11; with tabular figures, like GusCasino's numbers. */
.poster-ratings {
  display: flex; gap: 0 11px; margin: 8px 0 0; padding: 7px 0 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(212, 175, 55, .22); font-variant-numeric: tabular-nums;
}
.poster-ratings div { display: flex; align-items: baseline; gap: 4px; }
.poster-ratings dt { color: #9a948a; font-size: .66rem; font-weight: 600; }
.poster-ratings dd { margin: 0; font: 800 .88rem/1 var(--text); text-shadow: 0 1px 8px #000; }
.rate-imdb dd { color: #f5c518; }
.rate-gm dd, .rate-top dd { color: #f0d77b; }
.rate-good dd { color: var(--cream); }
.rate-fair dd { color: #b9b2a5; }
.rate-weak dd { color: #ff5c6c; }
@container poster-card (max-width: 185px) {
  .tile-info { padding: 44px 10px 10px; }
  .tile-info > :is(h2, h3) { font-size: .9rem; }
  .card-meta { font-size: .68rem; }
  .poster-ratings { gap: 0 7px; }
  .poster-ratings dt { font-size: .58rem; }
  .poster-ratings dd { font-size: .78rem; }
  .tile-badge { left: 17px; padding: 4px 7px; font-size: .54rem; }
}
/* Under the tile: GusCasino's square buttons. */
.card-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
.card .btn { min-height: 40px; padding: 7px 10px; border-radius: 3px; font-size: .84rem; gap: 5px; }
.card .btn-gold { flex: 1; min-width: 0; background: linear-gradient(180deg, #f0d77b, var(--gold) 55%, #a8841f); box-shadow: none; }
.card .btn[data-share] {
  flex: none; width: 40px; height: 40px; padding: 0; font-size: 0; color: var(--gold-hi);
  background: #1c1c20; border: 1px solid #2a2a2e;
}
.card .btn[data-share]::before { width: 16px; height: 16px; flex-basis: 16px; }
.card .btn[data-share]:hover { border-color: var(--gold); background: #1c1c20; }
/* With a mouse the shelf stays calm: «Смотреть» waits in GusCasino's ghost style until its card is pointed at, then
   fills with gold. On touch screens it is gold from the start. */
@media (hover: hover) and (pointer: fine) {
  .card .btn-gold {
    color: var(--cream); background: #1c1c20; border: 1px solid #2a2a2e;
    box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow .4s var(--spring), color .2s, border-color .2s, transform .15s;
  }
  .card .btn-gold::before { color: var(--gold); }
  .card:hover .btn-gold, .card:focus-within .btn-gold {
    color: var(--on-gold); border-color: transparent; background: var(--gold); box-shadow: inset 0 0 0 30px var(--gold-hi);
  }
  .card:hover .btn-gold::before, .card:focus-within .btn-gold::before { color: inherit; }
}
@container poster-card (max-width: 150px) {
  .card .btn-gold::before { display: none; }
}
/* The first screen of cards is dealt out one by one as the page opens, and so is every batch «Показать ещё» adds. */
.card--intro { animation: deal-card .75s var(--spring) backwards; animation-delay: calc(.35s + var(--n) * 55ms); }
.card--more { animation-delay: calc(var(--n) * 45ms); }
@keyframes deal-card { from { opacity: 0; transform: translateY(28px) scale(.95); } }
/* Further cards rise as they scroll into view (browsers with scroll timelines; the rest show them as they are). */
@supports (animation-timeline: view()) {
  .card:not(.card--intro) { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(42px) scale(.94); } }
.load-more { display: flex; justify-content: center; margin-top: 40px; }
.load-more .btn { min-width: min(100%, 280px); }
.load-more .btn:hover { border-color: var(--gold-hi); transform: translateY(-1px); }
.load-more .btn.is-loading { cursor: progress; }
.load-more .btn.is-loading::before {
  content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 13px; margin-top: 22px; }
.pager span { padding: 9px 18px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .btn { padding: 12px 26px; }
.pager .btn:hover { border-color: var(--gold-hi); transform: translateY(-1px); }
.empty {
  display: grid; justify-items: center; gap: 4px; min-height: 220px; padding: 34px 15px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 22px;
}
.empty img { width: 86px; height: 86px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(212, 175, 55, .3); animation: bob 6s ease-in-out infinite; }
.empty p { margin: 12px 0 10px; font-size: 1.05rem; color: var(--soft); }

/* ---------- Closing band, as on the home page ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px;
  margin-top: clamp(48px, 7vw, 92px); padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(212, 175, 55, .18), transparent 60%), var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(242, 210, 122, .12);
}
.band::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(242, 210, 122, .1) 50%, transparent 65%) 0 0 / 300% 100% no-repeat;
  animation: band-light 8s ease-in-out infinite;
}
@keyframes band-light { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.band-mark {
  flex: none; width: 88px; height: 88px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(212, 175, 55, .35); animation: bob 6s ease-in-out infinite;
}
.band-copy { flex: 1 1 20rem; min-width: 0; }
.band h2 { margin: 0 0 6px; font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.15 var(--display); text-wrap: balance; }
.band p { margin: 0; max-width: 38rem; color: var(--soft); }

/* ---------- Title and person pages ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0 0 18px; gap: 5px 20px; font-size: .9rem; color: var(--muted); }
.crumb a { color: var(--gold); text-underline-offset: .2em; }
.crumb li + li::before { content: "✦"; margin-right: 14px; color: var(--gold-lo); font-size: .7em; }
.feature-main { padding-top: 24px; padding-bottom: 20px; }
.feature {
  isolation: isolate; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px 22px 10px 10px; background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.feature-cover, .feature::after { position: absolute; inset: 0; height: 100%; width: 100%; z-index: -1; }
.feature-cover { object-fit: cover; object-position: center 30%; opacity: .75; }
.feature::after {
  content: ""; background: linear-gradient(90deg, #0b0806f7 8%, #0b0806ea 54%, #0b080699 83%, #0b08063b 100%),
    linear-gradient(0deg, #0b0806 0, transparent 66%);
}
.feature .dust { z-index: 0; }
.feature-content {
  position: relative; z-index: 1;
  padding: clamp(18px, 4vw, 42px); display: grid; grid-template-columns: minmax(118px, 225px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px); align-items: end; min-height: 390px;
}
/* The poster leans towards the pointer and catches the light, like a card turned in the hand. */
.feature-poster {
  position: relative; isolation: isolate; border: 1px solid #957441; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 3;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .65), 0 0 40px rgba(212, 175, 55, .12);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--spring), box-shadow .4s;
  animation: rise 1.1s var(--spring) backwards;
}
.feature-poster.is-tilting { transition: transform .12s linear, box-shadow .4s; box-shadow: 0 26px 60px rgba(0, 0, 0, .7), 0 0 50px rgba(212, 175, 55, .22); }
.feature-poster::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 243, 196, .3), rgba(255, 243, 196, 0) 48%);
}
.feature-poster.is-tilting::after { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(1.04); } }
.feature-copy { max-width: 740px; }
.original, .feature-lead, .description, .note { color: var(--soft); }
.original { margin: 9px 0; overflow-wrap: anywhere; }
.facts, .tags, .actions, .episode-nav { display: flex; flex-wrap: wrap; align-items: center; }
.facts, .tags { gap: 7px 15px; margin: 10px 0; }
.facts { padding: 0; list-style: none; color: var(--muted); }
.facts li + li::before { content: "✦"; margin-right: 15px; color: var(--gold); font-size: .7em; vertical-align: .15em; }
.tags { gap: 6px; }
.tags a {
  border-radius: 999px; border: 1px solid #a07c3a; background: #161109cc; padding: 4px 12px; color: #f3d289;
  font-size: .82rem; text-decoration: none; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.tags a:hover { background: #2e2010; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(212, 175, 55, .18); }
.ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 3px 0 0; gap: 6px; }
.ratings div { display: grid; justify-items: center; gap: 2px; padding: 6px 1px; background: var(--panel); border-radius: 10px; }
.ratings dt { color: var(--muted); font-size: .72rem; }
.ratings dd { margin: 0; color: var(--gold); font-size: .88rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.feature .ratings { max-width: 300px; margin: 18px 0; }
.feature .ratings div { border: 1px solid var(--line); background: #140f0bdf; }
.feature .ratings dd { font-size: 1.1rem; }
.feature .ratings .unrated dd { color: var(--muted); }
.actions { gap: 8px; margin-top: 14px; }
.actions .btn-gold { min-width: 134px; }
.note { font-size: .87rem; margin: 10px 0 0; }
.section { padding-top: clamp(22px, 4vw, 38px); }
.section + .section { margin-top: 15px; border-top: 1px solid #2c2318; }
.section > h2 { display: flex; align-items: center; gap: 12px; }
.section > h2::before { content: ""; flex: none; width: 4px; height: 1.15em; border-radius: 2px; background: var(--gold-bar); }
.description { max-width: 79ch; overflow-wrap: anywhere; white-space: pre-line; margin-bottom: 0; }
.stills, .cast {
  margin: 0; padding: 4px 2px 12px; list-style: none; display: grid; grid-auto-flow: column; overflow-x: auto; gap: 12px;
  scroll-snap-type: x proximity; scrollbar-color: #826637 var(--velvet);
}
.stills { grid-auto-columns: minmax(190px, 28%); }
.cast { grid-auto-columns: minmax(88px, 112px); }
.stills li, .cast li { min-width: 0; scroll-snap-align: start; }
.stills a { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); transition: border-color .25s, box-shadow .3s; }
.stills img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); transition: transform .7s var(--spring); }
.stills a:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 24px rgba(212, 175, 55, .15); }
.stills a:hover img { transform: scale(1.06); }
.cast img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--panel);
  border: 1px solid var(--line); transition: transform .35s var(--spring), border-color .25s, box-shadow .3s;
}
.cast li:hover img { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.cast span { display: block; font-size: .85rem; padding-top: 6px; }
.cast small { display: block; color: var(--muted); font-size: .75rem; }
.cast a, .people-links a { color: var(--gold-hi); text-underline-offset: .2em; }
.people-links { margin-bottom: 14px; }
.premieres { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 0; }
.premieres dt { color: var(--muted); }
.premieres dd { margin: 0; }
.person .feature-content { min-height: 0; grid-template-columns: minmax(105px, 150px) minmax(0, 1fr); align-items: center; }
.person ~ .section > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.person ~ .section + .section { border-top: 0; }
.section-count { color: var(--muted); font: 650 .9rem/1 var(--text); }
.season { margin: 9px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--velvet); transition: border-color .25s; }
.season[open] { border-color: rgba(212, 175, 55, .4); }
.season summary {
  display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 10px 15px;
  list-style: none; cursor: pointer; font-weight: 720; transition: color .2s;
}
.season summary::-webkit-details-marker { display: none; }
.season summary::before {
  content: ""; width: 7px; height: 7px; margin-inline: 1px 4px;
  border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .3s var(--spring);
}
.season[open] summary::before { transform: rotate(45deg); }
.season summary:hover { color: var(--gold-hi); }
.season[open] summary { border-bottom: 1px solid var(--line); }
.season[open] .episode-list { animation: open-up .35s ease both; }
@keyframes open-up { from { opacity: 0; transform: translateY(-6px); } }
.episode-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none;
  gap: 0 10px; padding: 4px 10px 7px; margin: 0;
}
.episode-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--line); min-width: 0;
}
.episode-list li:last-child { border-bottom-color: transparent; }
.episode-link {
  display: block; min-height: 46px; padding: 9px 8px; border-radius: 8px;
  text-decoration: none; overflow-wrap: anywhere; line-height: 1.35; transition: background-color .2s, color .2s, padding .25s var(--spring);
}
.episode-link:hover { background: rgba(212, 175, 55, .08); padding-inline-start: 13px; }
.episode-link:hover, .episode-link[aria-current] { color: var(--gold-hi); }
.episode-link[aria-current] { text-decoration: underline; text-underline-offset: .25em; }
.btn.episode-share {
  align-self: center; flex: none; block-size: 40px; min-block-size: 40px; inline-size: 40px; padding: 0;
  border-color: transparent; color: var(--gold-hi); font-size: 0;
}
.btn.episode-share::before { width: 16px; height: 16px; flex-basis: 16px; }
.episode-list small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.episode-nav { gap: 9px; }
.trailer-panel { width: min(900px, 100%); }
.trailer-panel iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; background: #120e09; }
.trailer-fallback { margin: 0 0 0 6px; color: var(--gold); }
.trailer-fallback:first-of-type { margin-left: 0; }

/* ---------- Footer, as on the home page ---------- */
.foot { margin-top: clamp(48px, 7vw, 92px); padding: 26px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot p { margin: 0 0 10px; max-width: 60rem; }
.foot a { color: var(--gold-hi); }
.catalog-main.shell > h1 { color: var(--gold-hi); }
.catalog-main.shell { padding-top: clamp(26px, 5vw, 62px); }

@media (prefers-reduced-motion: no-preference) {
  .feature-cover { animation: bring-into-focus 13s cubic-bezier(.12, .55, .2, 1) both; }
  .feature-copy { animation: arrive .5s ease-out both; }
}
@keyframes bring-into-focus { from { transform: scale(1.075); } to { transform: scale(1); } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .poster-fan { --open: 1.3; }
}
@media (max-width: 1000px) {
  .facets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facet:nth-child(3) > .facet-popup { inset-inline: auto 0; transform-origin: top right; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 26px; }
  .catalog-hero::before { width: 110%; right: -40%; top: -10%; }
  .poster-fan { --w: clamp(92px, 24vw, 130px); --cx: 50%; --open: 1.35; justify-self: center; width: 100%; margin-top: 4px; }
  .fan-card:nth-child(4), .fan-card:nth-child(5) { --y: 26px; }
  .episode-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  html { scroll-padding-top: 0; }
  .top { position: relative; }
  /* Goose and download share the first line; the sections fit in the second. */
  .top-inner { position: relative; gap: 6px; min-height: 0; align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 12px 6px; }
  .brand img { width: 34px; height: 34px; }
  .nav { gap: 2px 15px; }
  .nav a { padding-block: 5px; font-size: .92rem; }
  .nav .download { position: absolute; top: 12px; right: 0; padding: 6px 16px; }
  .catalog-hero { padding-top: 20px; padding-bottom: 18px; gap: 10px; }
  .catalog-lead { margin: 12px 0 0; }
  .hero-actions { display: none; }
  .poster-fan { --w: clamp(68px, 20vw, 96px); }
  .ticker-set a { padding-block: 13px; font-size: .82rem; }
  .ticker-set i { padding-inline: 18px; }
  .search { gap: 8px; border-radius: 18px; }
  .facets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .facet:nth-child(2) > .facet-popup { inset-inline: auto 0; transform-origin: top right; }
  .facet:nth-child(3) > .facet-popup { inset-inline: 0 auto; transform-origin: top left; }
  .facet > summary, .facets select { padding-inline: 10px 29px; background-position: right 8px center; }
  .facet > summary::after { right: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .band { text-align: center; justify-content: center; }
  .band .btn { width: 100%; }
  .feature { border-radius: 14px 14px 8px 8px; }
  .feature::after { background: linear-gradient(180deg, #0a08052b 0, #0a0805d6 14rem, #0a0805f5 26rem); }
  .feature-content { grid-template-columns: 1fr; gap: 17px; align-items: start; }
  .feature .btn { padding: 11px 17px; }
  .feature-poster { width: clamp(109px, 37vw, 155px); }
  .person .feature-content { grid-template-columns: minmax(0, 1fr); }
  .person .feature-poster { width: clamp(96px, 33vw, 136px); }
  .feature-cover { height: min(340px, 100%); }
  .episode-list { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .facet > summary, .facets select { padding-inline: 6px 20px; background-size: 13px; background-position: right 5px center; font-size: .8125rem; }
  .facet > summary::after { right: 5px; width: 13px; height: 13px; margin-top: -6.5px; }
  .card .btn-gold::before { display: none; }
}
@media (hover: none) {
  .poster-fan:hover:not(.is-open) { --spread: 1; --tilt: 1; }
}
/* Phones zoom into any field set smaller than 16px; these stay at 16px where the pointer is a finger. */
@media (pointer: coarse) {
  .search > [type="search"], .facet-popup > input, .facets select { font-size: 16px; }
}
/* Between catalog pages the bar stays and the chosen order slides to its new place (browsers with view transitions). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: catalog-bar; }
  .sort-tabs a[aria-current] { view-transition-name: sort-pill; }
}
::view-transition-group(sort-pill) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
/* Still pages for those who asked for less motion: everything stands in its final place. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dust { display: none; }
  .ticker { -webkit-mask: none; mask: none; }
  .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 14px; }
  .ticker-set { flex-wrap: wrap; justify-content: center; }
  .ticker-set + .ticker-set { display: none; }
  .ticker-set a { padding-block: 10px; }
  .card:hover, .card:focus-within { translate: none; }
  .card:hover .poster-link img, .card:focus-within .poster-link img { transform: none; }
  .feature-poster { transform: none; }
  .poster-fan:hover, .poster-fan.is-open { --spread: 1; --tilt: 1; }
  .fan-dust { display: none !important; }
  .fan-card.is-scattering img { visibility: visible; }
  .card-poster { transform: none; }
  .card:hover .card-poster, .card:focus-within .card-poster { translate: none; }
}
