:root {
  /* DARK MODE — black-primary palette (60/30/10) */
  --black-soft: #161616;
  --black-card: #1a1a1a;
  --bone-dim: rgba(227, 218, 201, 0.55);
  --bone-faint: rgba(227, 218, 201, 0.55);
  --hairline: rgba(227, 218, 201, 0.12);
  --hairline-strong: rgba(227, 218, 201, 0.22);

  /* Rounded system — single source of truth for the film page (do not hardcode
     radii in the rules below; reference these tokens). */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Warm dark hairlines used by the where-to-watch surfaces (per the design
     reference — distinct from the cooler --hairline used elsewhere). */
  --line: #3a3631;
  --line-soft: #2a2a2a;
  --bone-mute: #9a9488;

  /* Muted sage = the universal "free to watch" signal. Scoped ONLY to the 9px
     monetization micro-label on verified tiles; a deliberate, contained
     exception to the no-green rule, taken from the approved visual reference. */
  --provider-free: #6fa36f;

  /* legacy aliases so existing class refs still resolve */
  --cream-border: var(--hairline);
  --cream-dim: var(--bone-dim);
  --gray-text: var(--bone-dim);
  --gray-dim: var(--bone-faint);
  --gray-mid: var(--bone-dim);
}
html {
  background: var(--black);
}
body {
  background: var(--black);
  color: var(--off-white);
  font-family: "Lora", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1.125rem;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  filter: url(#texture-noise);
}
a {
  color: inherit;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 48px 0;
}
.back-link {
  font-family: "Inter", sans-serif;
  color: var(--red);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: opacity 0.15s;
}
.back-link:hover {
  opacity: 0.7;
}
.kicker {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--bone-faint);
  margin: 18px 0 36px;
}
.director-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.director-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-poster-wrap {
  position: relative;
}
.hero-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.hero-poster-placeholder {
  background: var(--black-card);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding: 18px;
}
.hero-poster-placeholder span {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--off-white);
}
.hero-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.375rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero-director {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bone-mute);
  margin-bottom: 2rem;
}
.tag-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
/* Pills with inverted hover — bone fill (crimson fill for the movement chip). */
.tag {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: #b5afa3;
  text-decoration: none;
  transition: all 0.15s;
  background: transparent;
}
.tag:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  color: var(--black);
}
.tag.movement {
  border-color: var(--red);
  color: var(--red);
}
.tag.movement:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--off-white);
}

/* ── WHERE TO WATCH — promotional CTAs (hero right) ── */
.ww-label {
  font-family: "Inter", sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a756c;
  margin-bottom: 12px;
}
.ww-primary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: transform 0.12s;
}
.ww-primary:active {
  transform: scale(0.99);
}
.ww-primary .mark {
  width: 42px;
  height: 42px;
  background: var(--black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ww-primary .mark span {
  font-family: "Playfair Display", serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--off-white);
}
.ww-primary .label {
  flex: 1;
}
.ww-primary .label .t {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}
.ww-primary .label .s {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #5a554d;
  margin-top: 1px;
}
.ww-primary .arr {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  color: var(--black);
}
.ww-secondary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 22px;
  margin-bottom: 2rem;
  text-decoration: none;
  transition: all 0.15s;
}
.ww-secondary:hover {
  border-color: var(--red);
}
.ww-secondary .mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ww-secondary .mark span {
  font-family: "Playfair Display", serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--red);
}
.ww-secondary .label {
  flex: 1;
}
.ww-secondary .label .t {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--off-white);
}
.ww-secondary .label .s {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #8a8478;
  margin-top: 1px;
}
.ww-secondary .arr {
  font-family: "Inter", sans-serif;
  font-size: 1.0625rem;
  color: var(--red);
}

/* ── WHERE TO WATCH — verified tiles (hero left, under poster) ── */
.ww-verified-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ww-verified-head .l {
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a756c;
}
.ww-verified-head .r {
  font-family: "Inter", sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6a655d;
}
.ww-tiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ww-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--black-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.ww-tile:hover {
  border-color: var(--line);
  background: #1c1c1c;
}
.ww-tile .lg {
  width: 30px;
  height: 30px;
  background: #222;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--off-white);
}
.ww-tile .lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ww-tile .body {
  flex: 1;
}
.ww-tile .mon {
  font-family: "Inter", sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.ww-tile .mon.free {
  color: var(--provider-free);
}
.ww-tile .mon.stream {
  color: #b5afa3;
}
.ww-tile .mon.other {
  color: #8a8478;
}
.ww-tile .nm {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--off-white);
}
.ww-tile .nm .sub {
  color: #6a655d;
  font-weight: 400;
}

/* ── ACTIONS (Trailer / Save) ── */
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--off-white);
}
.action-btn .ic {
  font-size: 0.9375rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.18s;
}
#trailerBtn:hover {
  background: var(--off-white);
  border-color: var(--off-white);
  color: var(--black);
}
#trailerBtn:active,
#wl-save-btn:active {
  transform: scale(0.97);
}
#wl-save-btn:hover {
  border-color: var(--red);
}
#wl-save-btn.saved {
  background: var(--red);
  border-color: var(--red);
  color: var(--off-white);
}

/* ── BODY: two-column ───────────────────────────────── */
.body-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  padding: 48px 0 0;
  align-items: start;
}
.body-main {
}
.body-side {
}

.block {
  margin-bottom: 48px;
}
.block-label {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.block-label-tight {
  margin-bottom: 12px;
}
.block-h {
  font-family: "Playfair Display", serif;
  font-size: 1.625rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.synopsis-text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(227, 218, 201, 0.86);
  border-left: 3px solid var(--red);
  padding-left: 22px;
}

/* DNA panel — the centerpiece */
.dna-panel {
  background: var(--black-card);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--red);
  padding: 30px;
  margin-bottom: 32px;
}
/* Bridge copy = the editorial "thread" voice. Upright Lora (the body
           serif) for readability — italics, even Lora's, fatigued at paragraph
           length. The dark panel, red top-rule and red eyebrow carry the
           "this is the DNA voice" signal; full-strength cream + larger size
           keep it the lead of the panel rather than plain body copy. */
.dna-bridge {
  font-family: "Lora", serif;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--off-white);
  margin-bottom: 22px;
}
.dna-quote {
  border-left: 2px solid var(--red);
  padding-left: 16px;
  margin: 22px 0;
}
.dna-quote p {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(227, 218, 201, 0.9);
  margin-bottom: 10px;
}
.dna-quote-attr {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.dna-quote-attr a {
  color: var(--bone-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dna-quote-attr a:hover {
  color: var(--red);
}
.dna-link {
  display: block;
  color: var(--red);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  transition: opacity 0.15s;
}
.dna-link:hover {
  opacity: 0.7;
}
.similar-dna-top {
  margin-top: 40px;
}
.share-dna-status {
  font-size: 0.75rem;
  color: var(--bone-faint);
  margin-top: 8px;
}
.dna-share-btn {
  margin-top: 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--off-white);
  background: transparent;
  color: var(--off-white);
  cursor: pointer;
  transition: all 0.15s;
}
.dna-share-btn:hover {
  background: var(--off-white);
  color: var(--black);
}

/* "This film influenced" list */
.influenced {
  background: var(--black-soft);
  border-left: 3px solid var(--red);
  padding: 22px 24px;
  margin-bottom: 32px;
}
.influenced a {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: var(--off-white);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
}
.influenced a:hover {
  color: var(--red);
}

/* empty-state nudge for sparse films */
.dna-empty {
  background: var(--black-card);
  border: 1px dashed var(--hairline-strong);
  padding: 26px;
  margin-bottom: 32px;
}
.dna-empty p {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--bone-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── RELATED FILM GRIDS ─────────────────────────────── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.section-h {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.section-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: var(--bone-faint);
  margin-bottom: 26px;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 26px;
}
.poster-tile {
  text-decoration: none;
  display: block;
  transition: transform 0.22s ease;
}
.poster-tile-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #1c1c1c;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    outline-color 0.22s ease;
  outline: 0 solid var(--red);
  outline-offset: 0;
}
.poster-tile-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster-tile-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: "Playfair Display", serif;
  font-size: 0.8125rem;
  color: var(--bone-faint);
}
.poster-tile-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: 3px;
  transition: color 0.18s;
}
.poster-tile-meta {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: var(--bone-faint);
}
@media (min-width: 769px) {
  .poster-tile:hover {
    transform: translateY(-6px);
  }
  .poster-tile:hover .poster-tile-wrap {
    border-color: var(--red);
    outline: 2px solid var(--red);
    outline-offset: 2px;
    box-shadow:
      0 14px 38px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(192, 57, 43, 0.4);
  }
  .poster-tile:hover .poster-tile-title {
    color: var(--red);
  }
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  border-top: 2px solid var(--red);
  background: var(--black-soft);
  padding: 28px 48px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: var(--bone-faint);
  flex-wrap: wrap;
}
.footer-inner a {
  color: var(--bone-faint);
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--red);
}

/* ── METADATA STRIP ─────────────────────────────────── */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 8px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 28px 16px 0;
  margin-right: 28px;
  border-right: 1px solid var(--hairline);
}
.meta-item:last-child {
  border-right: none;
  margin-right: 0;
}
.meta-k {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.meta-v {
  font-family: "Lora", serif;
  font-size: 1rem;
  color: var(--off-white);
}
.meta-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-strong);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.meta-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* compact grid for the in-column top-6 */
.poster-grid-compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 860px) {
  .container {
    padding: 28px 22px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-left {
    max-width: 300px;
  }
  .hero-poster-wrap {
    max-width: 240px;
  }
  .body-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .body-side {
    margin-top: 8px;
  }
}
@media (max-width: 520px) {
  .hero-poster-wrap {
    max-width: 200px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}
