/* 2daymovie — cinema black · screen red · platinum */

:root {
  --void: #0a0a0a;
  --elevated: #141414;
  --ink: #e5e5e5;
  --muted: #b3b3b3;
  --faint: #8a8a8a;
  --line: rgba(229, 229, 229, 0.1);
  --line-strong: rgba(229, 9, 20, 0.4);
  --scarlet: #e50914;
  --scarlet-deep: #b20710;
  --amber: #e5e5e5;
  --amber-soft: #f5f5f5;
  --metal: #e5e5e5;
  --metal-deep: #b3b3b3;
  --metal-ink: #0a0a0a;
  --garnet: var(--scarlet);
  --platinum: #e5e5e5;
  --stage: rgba(10, 10, 10, 0.86);
  --radius: 2px;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  --header-h: 4.5rem;
  --page-max: 82rem;
  --page-x: clamp(1rem, 4vw, 3.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section: clamp(3rem, 6vw, 5.5rem);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  background-color: var(--void);
  background-image:
    radial-gradient(980px 560px at 8% -12%, rgba(229, 9, 20, 0.22), transparent 55%),
    radial-gradient(760px 480px at 100% 0%, rgba(229, 229, 229, 0.05), transparent 50%),
    radial-gradient(640px 420px at 50% 110%, rgba(229, 9, 20, 0.08), transparent 58%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--safe-b);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.7rem 1.1rem;
  background: var(--scarlet);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(1rem + var(--safe-t));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-t);
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.75rem var(--page-x);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(12rem, 18rem);
  gap: 1rem 1.5rem;
  align-items: center;
}

.header-bar {
  display: contents;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand-mark,
.brand-rest {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  letter-spacing: -0.02em;
}

.brand-mark {
  font-style: italic;
  color: var(--scarlet);
}

.brand-rest {
  color: var(--platinum);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--scarlet), transparent);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
}

.search-form {
  display: flex;
  gap: 0.4rem;
  min-width: 0;
}

.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.search-form input::placeholder {
  color: var(--faint);
}

.search-form button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-primary,
.search-form button {
  background: linear-gradient(135deg, #ff1a24, var(--scarlet) 40%, var(--scarlet-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(229, 9, 20, 0.28);
}

.btn-primary:hover,
.search-form button:hover {
  background: linear-gradient(135deg, #ff3b44, var(--scarlet));
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Hero — one composition */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 54rem);
  min-height: min(92dvh, 54rem);
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #050403;
  overflow: hidden;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.04);
}

.hero.is-playing .hero-video-fallback {
  opacity: 0.22;
}

.hero-video-host,
.hero-video-host iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-host iframe {
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-slides[hidden] {
  display: none !important;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.58) 48%, rgba(10, 10, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(229, 9, 20, 0.12) 0%, rgba(10, 10, 10, 0.2) 40%, rgba(10, 10, 10, 0.97) 100%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-stage {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--page-x) clamp(2.25rem, 5vw, 4rem);
}

.hero-lead {
  max-width: 38rem;
}

.hero-kicker,
.detail-kicker,
.watch-stage-label {
  margin: 0 0 0.75rem;
  color: var(--scarlet);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-brand,
.library-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 11vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.hero-brand .gel,
.library-brand .gel {
  font-style: italic;
  color: var(--scarlet);
}

.hero-lede,
.library-lede {
  max-width: 34rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.hero-now {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 28rem;
}

.hero-now-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 0.85rem;
}

.hero-card-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--platinum);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--scarlet);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3);
  animation: live-pulse 1.8s var(--ease) infinite;
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.hero-sound-btn {
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.hero-now-title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.05;
  text-decoration: none;
}

.hero-dots {
  display: flex;
  gap: 0.35rem;
}

.hero-dot {
  width: 1.5rem;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(247, 240, 232, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--scarlet);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Unsection + catalog */

main {
  min-width: 0;
}

.catalog,
.page-band,
.year-hero,
.site-footer,
.detail,
.watch-room {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

.catalog,
.page-band {
  padding: var(--section) var(--page-x);
}

.home-catalog {
  display: grid;
  gap: var(--section);
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
}

.home-block,
.unsection {
  min-width: 0;
}

.unsection-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.unsection-head h1,
.unsection-head h2,
.section-head h1,
.page-band > h1,
.row-head h2,
.cast-block h2,
.similar-block h2,
.trailer-block h2,
.where-block h2,
.reviews-feed h2,
.review-form h2 {
  margin: 0.15rem 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.unsection-head h1,
.section-head h1,
.page-band > h1,
.year-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.unsection-head h2,
.row-head h2,
.cast-block h2,
.similar-block h2,
.trailer-block h2,
.where-block h2 {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
}

.subhead {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
}

.unsection-head p,
.section-head p,
.page-band > p,
.year-hero p,
.reviews-home-summary {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.unsection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.row-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.35rem;
}

.row-head.tight {
  margin-top: 2rem;
}

.section-head {
  display: block;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.text-link {
  color: var(--platinum);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 9, 20, 0.45);
}

/* Poster grid + lift */

.poster-grid,
.library-poster-grid,
.home-poster-grid,
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr));
  gap: clamp(1.2rem, 2vw, 2rem) clamp(0.75rem, 1.4vw, 1.25rem);
}

.poster-card,
.library-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
  transition: transform 0.45s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  [data-stagger-grid] .poster-card,
  [data-stagger-grid] .upcoming-card {
    opacity: 0;
    transform: translateY(18px);
    animation: poster-in 0.7s var(--ease) forwards;
    animation-delay: calc(var(--stagger, 0) * 55ms);
  }

  .poster-card.is-lift:hover,
  .poster-card:hover,
  .poster-card:focus-visible {
    transform: translateY(-8px);
  }
}

@keyframes poster-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poster-frame,
.library-card-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(229, 229, 229, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}

.poster-card:hover .poster-frame,
.poster-card:focus-visible .poster-frame {
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(229, 9, 20, 0.35);
}

.poster-img,
.library-card-media img,
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}

.poster-card:hover .poster-img,
.poster-card:focus-visible .poster-img,
.library-card:hover img,
.library-card:focus-within img {
  transform: scale(1.06);
}

.poster-play,
.library-play {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--scarlet);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.poster-card:hover .poster-play,
.poster-card:focus-visible .poster-play,
.library-card:hover .library-play,
.library-card:focus-within .library-play {
  opacity: 1;
  transform: scale(1.05);
}

.poster-meta,
.library-card-body {
  padding-top: 0.65rem;
}

.poster-meta h3,
.library-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
}

.poster-meta p,
.library-card-body p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.library-badge,
.upcoming-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.45rem;
  background: rgba(7, 6, 5, 0.82);
  color: var(--amber);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.upcoming-frame {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(196, 60, 60, 0.18), transparent 55%),
    #151210;
}

.upcoming-title-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--amber);
}

.category-chip-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.2rem), 1fr));
  gap: 0.65rem;
}

.category-chip,
.category-tile,
.genre-chip,
.year-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.category-chip,
.genre-chip,
.year-chip {
  justify-content: center;
}

.category-tile {
  min-height: 6.5rem;
  flex-direction: column;
  align-items: flex-start;
}

.category-tile-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}

.category-tile-go {
  color: var(--amber);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-chip:hover,
.category-tile:hover,
.genre-chip:hover,
.year-chip:hover,
.category-chip:focus-visible,
.category-tile:focus-visible,
.year-chip.is-active {
  border-color: var(--scarlet);
  background: rgba(196, 60, 60, 0.08);
}

.genre-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

/* Where to watch */

.where-block,
.where-feature {
  position: relative;
  margin-top: 2.5rem;
}

.where-feature-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(196, 60, 60, 0.1), transparent 45%),
    rgba(18, 16, 14, 0.75);
}

.where-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.where-points strong {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-right: 0.35rem;
}

.provider-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.75rem;
}

.provider-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.provider-chip img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1714;
}

.provider-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.provider-meta strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.provider-meta span {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.where-block code {
  font-size: 0.85em;
  color: var(--amber-soft);
}

/* Shelves */

.year-accordion {
  display: grid;
  gap: 0.65rem;
}

.year-panel {
  border-top: 1px solid var(--line);
}

.year-panel-summary {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.85rem 0.2rem;
  cursor: pointer;
  list-style: none;
}

.year-panel-summary::-webkit-details-marker {
  display: none;
}

.year-panel-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.year-panel-meta {
  color: var(--muted);
}

.year-panel-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  transform: rotate(45deg);
}

.year-panel[open] .year-panel-chevron {
  transform: rotate(225deg);
}

.year-panel-body {
  padding: 0.4rem 0 1.4rem;
}

.year-panel-hint {
  margin: 0.8rem 0;
}

.year-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page-x) 0;
}

.year-hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: flex-end;
}

.year-jump-form,
.sort-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin: 1.25rem 0 1.5rem;
}

.year-jump-form label,
.sort-form label,
.review-form label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.year-jump-form select,
.sort-form select,
.review-form input,
.review-form select,
.review-form textarea {
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #12100e;
  color: var(--ink);
}

.year-chip-wrap {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 1.25rem 0 0.4rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.year-chip {
  flex: 0 0 auto;
  min-width: 4.4rem;
  scroll-snap-align: start;
}

/* Watch + detail (ScreensDesign mobile stack) */

.watch-room,
.detail {
  position: relative;
  padding: clamp(1.35rem, 4vw, 3rem) var(--page-x) var(--section);
}

.watch-room.has-backdrop,
.detail.has-backdrop {
  background-image: linear-gradient(180deg, rgba(7, 6, 5, 0.2), var(--void) 28rem), var(--watch-image, var(--detail-image));
  background-size: cover;
  background-position: center top;
}

.detail.has-backdrop {
  background-image: linear-gradient(180deg, rgba(7, 6, 5, 0.55), var(--void) 26rem), var(--detail-image);
}

.watch-veil,
.detail-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.35), rgba(7, 6, 5, 0.92) 24rem);
  pointer-events: none;
}

.watch-layout,
.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 22rem);
  gap: clamp(1.15rem, 3vw, 2.5rem);
  align-items: start;
}

.watch-player,
.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.watch-player iframe,
.watch-yt-host iframe,
.trailer-frame iframe,
.watch-yt-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-stack {
  display: grid;
  gap: 1rem;
}

.watch-player.is-rejected,
.trailer-frame.is-rejected {
  display: none;
}

.watch-note,
.providers-note,
.tagline {
  color: var(--muted);
}

.tagline {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.watch-panel,
.detail-copy {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.watch-panel h1,
.detail-copy h1 {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0;
  color: var(--muted);
}

.detail-meta span + span::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--amber);
}

.overview {
  max-width: 65ch;
  color: var(--ink);
}

.watch-cta,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.detail-poster {
  max-width: 20rem;
}

.detail-poster .poster-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.cast-block,
.similar-block,
.trailer-block {
  position: relative;
  margin-top: 3rem;
}

.cast-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 8.25rem;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.cast-card {
  min-width: 0;
}

.cast-card img,
.cast-fallback {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #171310;
  margin-bottom: 0.45rem;
}

.cast-card strong,
.cast-card span {
  display: block;
}

.cast-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.watch-empty {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.watch-empty img {
  width: min(100%, 16rem);
}

/* Reviews + about */

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.review-form,
.review-card,
.about-copy {
  border: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.72);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.review-form {
  display: grid;
  gap: 0.45rem;
}

.review-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.review-form .btn {
  margin-top: 0.6rem;
  justify-self: start;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.review-flash {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
}

.review-flash.is-success {
  color: #d7ecdf;
  border-color: rgba(160, 196, 170, 0.45);
}

.review-flash.is-error {
  color: #f0c9c9;
  border-color: rgba(196, 60, 60, 0.5);
}

.reviews-list,
.reviews-home-grid {
  display: grid;
  gap: 0.8rem;
}

.reviews-home-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.review-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-card time,
.muted,
.empty-state {
  color: var(--muted);
}

.review-card time {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

.review-stars {
  color: var(--amber);
  letter-spacing: 0.08em;
}

.about-copy p,
.about-links {
  max-width: 62ch;
}

.about-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.about-links li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.about-plain {
  color: var(--ink);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.pager-status {
  color: var(--muted);
}

.page-band.narrow {
  max-width: 40rem;
}

.page-band.narrow .hero-actions {
  margin-top: 1.4rem;
}

/* Footer */

.site-footer {
  padding: 0 var(--page-x) calc(clamp(2rem, 5vw, 3.5rem) + var(--safe-b));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--scarlet);
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  align-content: start;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-credit {
  grid-column: 1 / -1;
}

.footer-credit strong {
  color: var(--ink);
  font-weight: 600;
}

/* Legacy library bits */

.library-hero,
.library-stats-band,
.year-directory {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: 2rem var(--page-x);
}

.library-stats,
.year-list {
  display: grid;
  gap: 0.55rem;
}

.year-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.year-row-bar {
  height: 1px;
  background: var(--line);
}

.year-row-bar span {
  display: block;
  height: 1px;
  background: var(--amber);
}

.decade-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

/* Reveal motion */

[data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .hero-video-fallback {
    animation: drift 36s ease-in-out infinite alternate;
  }

  .hero-brand {
    animation: title-in 1.1s var(--ease) both;
  }

  .hero-lede,
  .hero-actions,
  .hero-now {
    animation: rise-in 0.9s var(--ease) both;
  }

  .hero-lede { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.22s; }
  .hero-now { animation-delay: 0.34s; }
}

@keyframes drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); letter-spacing: 0.04em; }
  to { opacity: 1; transform: none; letter-spacing: -0.035em; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Breakpoints — phone-first excellence */

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "bar toggle"
      "search search";
  }

  .header-bar {
    grid-area: bar;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
    position: fixed;
    z-index: 45;
    top: var(--header-offset, 7.5rem);
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.25rem var(--page-x) calc(2.5rem + var(--safe-b));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7, 6, 5, 0.98);
    overflow: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 1rem 0;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .search-form {
    grid-area: search;
  }

  .watch-layout,
  .detail-layout,
  .reviews-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    display: block;
  }

  .hero-video-layer {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 46vh;
  }

  .hero-veil,
  .hero-grain {
    bottom: auto;
    height: min(46vh, 56.25vw);
  }

  .watch-panel,
  .detail-copy {
    position: static;
    width: 100%;
  }

  /* ScreensDesign detail: poster row then copy */
  .detail-mobile .detail-layout {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: start;
  }

  .detail-mobile .detail-poster {
    max-width: none;
  }

  .detail-mobile .detail-copy h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .detail-mobile .overview {
    grid-column: 1 / -1;
  }

  .detail-mobile .detail-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .poster-grid,
  .library-poster-grid,
  .home-poster-grid,
  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  .year-panel-summary {
    grid-template-columns: 4.8rem minmax(0, 1fr) auto;
  }

  .year-panel-meta {
    font-size: 0.85rem;
  }

  .hero-brand,
  .library-brand {
    font-size: clamp(3.2rem, 17vw, 4.8rem);
  }

  .detail-mobile .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-mobile .detail-poster {
    max-width: 11rem;
  }

  .watch-mobile .watch-stage {
    order: -1;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .hero-actions .btn,
  .unsection-actions .btn {
    width: 100%;
  }

  .search-form button {
    padding-inline: 0.75rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --page-max: 92rem;
  }

  .poster-grid,
  .library-poster-grid,
  .home-poster-grid,
  .shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  }
}

@media (min-width: 1900px) {
  :root {
    --page-max: 108rem;
  }

  body {
    font-size: 1.15rem;
  }

  .poster-grid,
  .library-poster-grid,
  .home-poster-grid,
  .shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (hover: none) {
  .poster-play,
  .library-play {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .poster-img,
  .hero-video-fallback,
  [data-reveal],
  [data-stagger-grid] .poster-card {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #1a140c;
  }

  body::before,
  .site-header,
  .hero-video-layer,
  .hero-veil,
  .hero-grain,
  .skip-link,
  .search-form {
    display: none !important;
  }

  a {
    text-decoration: underline;
  }
}

/* —— Device coverage: 320 → 4K · safe-areas · intentional motion —— */
:root {
  --page-x: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px), clamp(1rem, 4vw, 3.25rem));
}

.site-header {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.btn,
.nav-toggle,
.search-form button,
.hero-sound-btn,
.hero-dot,
.category-chip {
  min-height: 44px;
  touch-action: manipulation;
}

.hero-cinema {
  min-height: 100svh;
  min-height: 100dvh;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
}

.hero-brand {
  font-size: clamp(2.35rem, 9vw, 5.25rem);
}

.hero-lede {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 38ch;
}

.poster-grid,
.home-poster-grid,
.shelf-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: clamp(0.65rem, 1.8vw, 1.25rem);
}

@media (max-width: 359px) {
  .brand-rest { letter-spacing: 0; }
  .site-nav a { min-height: 48px; }
  .poster-grid,
  .home-poster-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
}

@media (min-width: 360px) and (max-width: 767px) {
  .poster-grid,
  .home-poster-grid,
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .poster-grid,
  .home-poster-grid,
  .shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .poster-grid,
  .home-poster-grid,
  .shelf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1440px) {
  :root { --page-max: 92rem; }
  .poster-grid,
  .home-poster-grid,
  .shelf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1800px) {
  :root { --page-max: 108rem; }
  html { font-size: 18px; }
  .poster-grid,
  .home-poster-grid,
  .shelf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  [data-stagger-grid] .poster-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  [data-stagger-grid] .poster-card.is-in {
    opacity: 1;
    transform: none;
  }
}
