/* ============================================================
   PAPER STREET PICTURES — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Tokens ── */
:root {
  --black:       #131313;
  --black-soft:  #1a1a1a;
  --black-card:  #212121;
  --border:      #2c2c2c;
  --border-mid:  #3f3f3f;
  --white:       #eeeae4;
  --white-dim:   rgba(238, 234, 228, 0.92);
  --white-faint: rgba(238, 234, 228, 0.62);
  --gold:        #c8a96e;
  --gold-dark:   #a88a52;
  --muted:       #a4a4a4;
  --muted-dim:   #818181;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 72px;
  --max-w: 1200px;
  --gutter: 40px;
  --radius: 3px;

  --tag-narr:     #2a3880;
  --tag-narr-t:   #b0bcf4;
  --tag-doc:      #284828;
  --tag-doc-t:    #a0d0a0;
  --tag-shorts:   #3e2860;
  --tag-shorts-t: #c8a8f0;
  --tag-tv:       #284038;
  --tag-tv-t:     #8ad4a8;
}

/* ── Base ── */
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 18.8px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Vignette ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.14) 100%);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 28px); }

.label {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.gold { color: var(--gold); }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Top page gradient (behind nav) ── */
.page-top-gradient {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 99;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 0.5px solid transparent;
}
.nav.scrolled {
  background: rgba(30, 30, 30, 0.97);
  border-bottom-color: var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.nav-logo {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links .nav-cta a {
  color: var(--white-dim);
}
.nav-links .nav-cta a:hover,
.nav-links .nav-cta a.active { color: var(--gold); }

/* ── Nav Social Icons ── */
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(238,234,228,0.35);
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--gold); }
.nav-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Letterbox bars ── */
.letterbox-top,
.letterbox-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  background: #000;
  z-index: 3;
  pointer-events: none;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

/* ── Genre Tags ── */
.tag {
  display: inline-block;
  font-size: 11.2px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius);
}
.tag-narrative      { background: var(--tag-narr);    color: var(--tag-narr-t); }
.tag-documentary    { background: var(--tag-doc);    color: var(--tag-doc-t); }
.tag-shorts         { background: var(--tag-shorts); color: var(--tag-shorts-t); }
.tag-television     { background: var(--tag-tv);     color: var(--tag-tv-t); }
.tag-horror         { background: #3d1a1a; color: #f4a0a0; }
.tag-horror-comedy  { background: #3d2a1a; color: #f4c080; }
.tag-sci-fi         { background: #1a2a3d; color: #80b8f4; }

/* ── Film Cards ── */
.film-card {
  background: var(--black-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
  cursor: pointer;
}
.film-card:hover { border-color: var(--border-mid); }
.film-card-thumb {
  aspect-ratio: 2/3;
  background: var(--black-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.film-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.film-card:hover .film-card-thumb img { transform: scale(1.04); }
.film-card-thumb .tag { position: absolute; bottom: 10px; right: 10px; z-index: 2; opacity: 0.6; }
.film-card-title {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--white);
  position: relative;
  z-index: 1;
  line-height: 1.2;
  margin-bottom: 24px;
}
/* Overlay on cards that have an image */
.film-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,19,19,0.85) 0%, transparent 55%);
  z-index: 0;
}
.film-card-meta {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid var(--border);
}
.film-card-year { font-size: 12.5px; color: var(--muted); letter-spacing: 0.1em; }
.film-card-arrow { font-size: 15px; color: var(--gold); }

/* ── Section Headers ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 32px;
}
.section-header a {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}
.section-header a:hover { color: var(--white); }

/* ── Gold CTA Button ── */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-dark); }

/* ── Ghost Button ── */
.btn-ghost {
  display: inline-block;
  border: 0.5px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--gold); color: var(--black); }

/* ── Page Hero (non-homepage) ── */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  border-bottom: 0.5px solid var(--border);
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--black-soft);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 0;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 48px;
}
.stat-item { display: flex; align-items: baseline; gap: 8px; }
.stat-number { font-family: var(--font-serif); font-size: 22.5px; color: var(--gold); }
.stat-label  { font-size: 11.2px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.stat-divider { margin-left: auto; font-size: 11.2px; letter-spacing: 0.18em; color: var(--muted-dim); text-transform: uppercase; }

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  /* Black-bg logo blends cleanly on dark backgrounds;
     use mix-blend-mode: lighten if you switch to a transparent PNG */
}
.footer-logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  opacity: 0.75;
}
.footer-logo-img:hover { opacity: 1; }

/* ── Footer ── */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 13.8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-copy { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; }
.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 15px;
  color: var(--muted-dim);
  transition: color 0.2s;
  letter-spacing: 0.06em;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.footer-social a {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }

/* ── Contact Strip ── */
.contact-strip {
  padding: 40px 0;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-strip p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22.5px;
  color: var(--muted);
  max-width: 480px;
}

/* ── Form elements ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--black-soft);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17.5px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--black-card); }

/* ── Newsletter Modal ── */
.newsletter-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.newsletter-modal.open { display: flex; }
.newsletter-modal-inner {
  position: relative;
  background: var(--black-card);
  border: 0.5px solid var(--border-mid);
  border-radius: 4px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
}
.newsletter-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 13.8px;
  letter-spacing: 0.2em;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  text-transform: uppercase;
  transition: color 0.2s;
}
.newsletter-close:hover { color: var(--white); }
.newsletter-modal-inner h3 {
  font-size: clamp(25px, 2.5vw, 32.5px);
  color: var(--white);
  margin-bottom: 10px;
  margin-top: 12px;
}
.newsletter-desc {
  font-size: 16.2px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-input {
  width: 100%;
  background: var(--black-soft);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17.5px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-input::placeholder { color: var(--muted-dim); }
.newsletter-submit { width: 100%; text-align: center; }
.newsletter-footer {
  margin-top: 16px;
  font-size: 13.8px;
  color: var(--muted-dim);
  text-align: center;
}
.newsletter-footer a {
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.newsletter-footer a:hover { color: var(--gold); }
.newsletter-success {
  text-align: center;
  padding: 20px 0;
}
.newsletter-success p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22.5px;
  color: var(--white);
  margin-top: 12px;
}

/* ── Utility ── */
.divider { border: none; border-top: 0.5px solid var(--border); margin: 48px 0; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-social { display: none; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(19,19,19,0.98);
    padding: 24px var(--gutter) 32px;
    border-bottom: 0.5px solid var(--border);
    gap: 20px;
  }
  .nav-toggle { display: flex; }

  .stats-bar-inner { gap: 24px; flex-wrap: wrap; }
  .stat-divider { display: none; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }

  .contact-strip { flex-direction: column; align-items: flex-start; }

  .newsletter-modal-inner { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Scroll fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Film Detail: Title Block (in body, above player) ── */
.film-title-block {
  padding: 32px 0 24px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 28px;
}
.film-title-block .label { margin-bottom: 8px; }
.film-title-block h1    { margin-bottom: 10px; font-size: clamp(28px, 4vw, 48px); }
.film-title-block .tag  { display: inline-block; }

/* ── Film Detail: Reviews ── */
.film-reviews { margin-top: 40px; margin-bottom: 40px; }
.film-reviews .label { margin-bottom: 16px; }
.rt-scores {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  align-items: flex-end;
}
.rt-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 76px;
}
.rt-score-num {
  font-size: 37.5px;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
}
.rt-fresh   { color: #e85c3a; }
.rt-popcorn { color: var(--gold); }
.rt-score-label {
  font-size: 11.2px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  text-align: center;
}
.review-quotes { display: flex; flex-direction: column; gap: 16px; }
.review-quote {
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--gold);
}
.review-quote p {
  font-size: 16.9px;
  font-style: italic;
  line-height: 1.75;
  color: var(--white-dim);
  margin-bottom: 6px;
}
.review-quote cite {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ── Film Detail: Where to Watch ── */
.film-watch { margin-bottom: 40px; }
.film-watch .label { margin-bottom: 14px; }
.watch-group { margin-bottom: 12px; }
.watch-group:last-child { margin-bottom: 0; }
.watch-group-label {
  font-size: 11.2px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}
.watch-links { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-link {
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--white-dim);
  padding: 6px 14px;
  border: 0.5px solid var(--border-mid);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.watch-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── Film Detail: Episodes ── */
.film-episodes { margin-bottom: 40px; }
.film-episodes .label { margin-bottom: 14px; }
.episode-series-meta {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.episode-list { border-top: 0.5px solid var(--border); }
.episode-row {
  display: grid;
  grid-template-columns: 38px 1fr 1fr 96px;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
@media (max-width: 640px) {
  .episode-row { grid-template-columns: 38px 1fr 1fr; }
  .ep-date { display: none; }
}
.ep-num {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
  font-family: var(--font-sans);
  font-weight: 500;
  padding-top: 1px;
}
.ep-title {
  font-size: 16.2px;
  color: var(--white-dim);
  font-style: italic;
}
.ep-dir {
  font-size: 13.8px;
  color: var(--muted);
  font-family: var(--font-sans);
}
.ep-date {
  font-size: 13.8px;
  color: var(--muted-dim);
  font-family: var(--font-sans);
  text-align: right;
}
