/* ============================================================
   Reel Marquee — public site
   Colors marked with var() are injected per-movie by the backend,
   so changing a film's palette in the admin re-themes everything.
   ============================================================ */
:root {
  --accent: #E8B84B;
  --bg: #0E0E12;
  --surface: #17171E;
  --surface-2: #1E1E27;
  --hairline: #2C2C38;
  --ink: #F5F3EE;
  --muted: #9A9AA8;
  --danger: #E5484D;
  --marquee-glow: color-mix(in srgb, var(--accent) 40%, transparent);
  --radius: 4px;
  --maxw: 1120px;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Marquee top rule: a row of theater bulbs -------------------- */
.marquee-rule {
  height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--accent) 0 8px, transparent 8px 20px);
  opacity: .85;
  box-shadow: 0 0 18px var(--marquee-glow);
}

/* --- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--marquee-glow); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 20px; border-radius: var(--radius);
  background: var(--accent); color: #14110A; border: 1px solid var(--accent);
  cursor: pointer; transition: transform .12s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 24px var(--marquee-glow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

/* --- Hero -------------------------------------------------------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 30%, transparent) 0%,
    color-mix(in srgb, var(--bg) 55%, transparent) 45%,
    var(--bg) 100%);
}
.hero-fallback { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 70% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
  var(--surface); }
.hero-inner { position: relative; z-index: 2; padding: 0 0 64px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 11vw, 132px); line-height: .92;
  letter-spacing: .01em; text-transform: uppercase; margin: 0 0 18px;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero-logo { max-width: min(680px, 90%); margin-bottom: 20px; }
.hero-tagline { font-size: clamp(18px, 2.4vw, 26px); color: var(--ink); max-width: 640px; margin: 0 0 30px; font-style: italic; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.meta-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.meta-row b { color: var(--ink); font-weight: 700; }

/* --- Sections ---------------------------------------------------- */
section.band { padding: 84px 0; border-top: 1px solid var(--hairline); }
.section-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h2.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.5vw, 60px); line-height: .98; text-transform: uppercase; margin: 0 0 28px; }
.lede { font-size: 20px; line-height: 1.7; max-width: 720px; color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }

/* --- Trailer ----------------------------------------------------- */
.trailer { position: relative; aspect-ratio: 16/9; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: #000; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Cast grid --------------------------------------------------- */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cast-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.cast-photo { aspect-ratio: 3/4; background: var(--surface-2) center/cover; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-display); font-size: 40px; }
.cast-body { padding: 14px 16px; }
.cast-name { font-weight: 700; letter-spacing: .01em; }
.cast-role { font-size: 14px; color: var(--muted); margin-top: 2px; }
.special-tag { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 2px 7px; border-radius: 40px; }

/* --- Ticket stubs (the signature element) ----------------------- */
.stub-list { display: grid; gap: 18px; }
.stub {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 22px 26px;
}
/* perforated notch on the divider between info and action */
.stub::before, .stub::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--hairline);
  right: 168px;
}
.stub::before { top: -11px; }
.stub::after { bottom: -11px; }
.stub-main { min-width: 0; }
.stub-city { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.stub-name { color: var(--ink); margin-top: 2px; }
.stub-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: .03em; }
.stub-meta span { color: var(--accent); }
.stub-action { width: 140px; text-align: center; border-left: 1px dashed var(--hairline); padding-left: 22px; }
.stub-date { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stub-date b { display: block; color: var(--ink); font-size: 15px; margin-top: 4px; }

/* --- Newsletter / contact --------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 34px; max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input[type=text], .field input[type=email] {
  width: 100%; padding: 12px 14px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--radius); font-size: 16px; font-family: var(--font-body);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: 15px; color: var(--muted); }
.check-row input { margin-top: 4px; }
.success { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid var(--accent); color: var(--ink); padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-family: var(--font-mono); font-size: 14px; }

/* --- Footer ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.socials { display: flex; gap: 18px; }
.socials a { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.socials a:hover { color: var(--accent); }
.footer-note { font-size: 13px; }

/* --- Empty state ------------------------------------------------- */
.empty { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.empty h1 { font-family: var(--font-display); font-size: 48px; text-transform: uppercase; margin: 0; }

/* --- Responsive -------------------------------------------------- */
@media (max-width: 760px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--hairline); display: none; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--hairline); }
  .nav .btn { margin: 16px 24px; justify-content: center; }
  .nav-toggle { display: block; }
  .stub { grid-template-columns: 1fr; }
  .stub-action { width: 100%; border-left: 0; border-top: 1px dashed var(--hairline); padding-left: 0; padding-top: 16px; }
  .stub::before, .stub::after { display: none; }
}
