/* ScreenTimes — house style.
   Palette: deep midnight navy + amber projector light + dusty rose accent.
   Type:    Fraunces (display) + Inter (body), both via Google Fonts. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:           #0b0f1a;
  --bg-2:         #111827;
  --panel:        #161e30;
  --panel-2:      #1c2540;
  --line:         #243049;
  --ink:          #e8e6df;
  --ink-2:        #b6b3a8;
  --muted:        #7d8095;
  --amber:        #f0a83a;
  --amber-2:      #d97a1f;
  --rose:         #d97a83;
  --teal:         #7ec5b3;
  --max:          1180px;
  --r:            10px;
  --shadow:       0 6px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffd17a; text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }
.muted { color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,26,0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 1.35rem; text-decoration: none;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #0b0f1a; font-size: .9rem;
}
.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; }
.primary-nav a { color: var(--ink-2); text-decoration: none; }
.primary-nav a:hover { color: var(--amber); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,26,.45) 0%, rgba(11,15,26,.92) 85%),
              url('/assets/hero.png') center/cover no-repeat;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 96px 20px 84px;
  max-width: var(--max); margin: 0 auto;
}
.eyebrow {
  display: inline-block; padding: 5px 12px;
  background: rgba(240,168,58,.12);
  border: 1px solid rgba(240,168,58,.4);
  color: var(--amber); border-radius: 999px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { max-width: 22ch; font-size: clamp(2.4rem, 5vw, 3.7rem); }
.hero .sub { max-width: 56ch; font-size: 1.15rem; color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: all .15s ease;
}
.btn.primary { background: var(--amber); color: #0b0f1a; }
.btn.primary:hover { background: #ffd17a; color: #0b0f1a; text-decoration: none; }
.btn.ghost   { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); text-decoration: none; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: .95rem; }

/* ---------- grids ---------- */
.movie-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}
.movie-card {
  background: var(--panel); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease;
}
.movie-card:hover { transform: translateY(-3px); border-color: var(--amber); }
.movie-card a { display: block; color: inherit; text-decoration: none; }
.movie-card .poster { aspect-ratio: 2/3; background: #000; }
.movie-card .poster svg { width: 100%; height: 100%; display: block; }
.movie-card .meta { padding: 12px 14px 16px; }
.movie-card h3 {
  margin: 0 0 4px; font-size: 1rem; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.movie-card .submeta { font-size: .82rem; color: var(--muted); }

.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 18px;
}
.tile {
  display: block; padding: 20px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r);
  color: inherit; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: var(--amber); transform: translateY(-2px); text-decoration: none; }
.tile h3 { margin: 0 0 4px; color: #fff; font-size: 1.08rem; }
.tile p  { margin: 0; font-size: .9rem; color: var(--muted); }
.tile .pill {
  display: inline-block; margin-top: 10px;
  padding: 3px 10px; background: rgba(240,168,58,.1);
  color: var(--amber); border-radius: 999px; font-size: .75rem;
  letter-spacing: .04em;
}

/* ---------- detail layout ---------- */
.detail-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.detail-grid {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 36px;
}
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-poster {
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 2/3; background: #000;
}
.detail-poster svg { width: 100%; height: 100%; display: block; }
.detail-meta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .92rem; color: var(--ink-2); margin-bottom: 18px;
}
.detail-meta-row span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }

.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  gap: 40px; padding: 40px 0;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}
.sidebar {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
  align-self: start; position: sticky; top: 80px;
}
.sidebar h3 { font-size: 1rem; margin: 0 0 12px; color: var(--amber); }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 18px; }
.sidebar li { padding: 6px 0; border-top: 1px solid var(--line); }
.sidebar li:first-child { border-top: 0; }
.sidebar li a { color: var(--ink); text-decoration: none; }
.sidebar li a:hover { color: var(--amber); }

.adslot {
  margin: 28px 0; padding: 28px 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r);
  color: var(--muted); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- showtimes ---------- */
.date-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.date-tab {
  padding: 8px 14px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-size: .9rem;
}
.date-tab.active, .date-tab:hover {
  background: var(--amber); color: #0b0f1a; border-color: var(--amber);
  text-decoration: none;
}

.showtime-list { display: flex; flex-direction: column; gap: 12px; }
.show-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r);
}
.show-row .where { font-size: .93rem; color: var(--ink); }
.show-row .where small { color: var(--muted); }
.show-row .times { display: flex; flex-wrap: wrap; gap: 6px; }
.time-chip {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 6px 12px; min-width: 64px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); font-weight: 600;
  text-decoration: none; font-size: .9rem;
}
.time-chip small { font-weight: 400; color: var(--muted); font-size: .7rem; margin-top: 2px; }
.time-chip:hover { border-color: var(--amber); color: var(--amber); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 56px 0 32px; margin-top: 40px;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: .98rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid li a { color: var(--ink-2); text-decoration: none; }
.footer-grid li a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px;
  color: var(--muted); font-size: .82rem;
}
.footer-stats { color: var(--muted); margin-top: 10px; font-size: .85rem; }
.brand-footer { color: var(--ink); font-size: 1.1rem; }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--amber); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; color: var(--ink-2); }

.kicker {
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--amber); font-size: .76rem; font-weight: 600;
  margin-bottom: 8px;
}

.search {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.search input {
  flex: 1; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font: inherit;
}
.search button {
  padding: 10px 18px; border-radius: 8px; border: 0;
  background: var(--amber); color: #0b0f1a; font-weight: 600; cursor: pointer;
}

/* ---------- v2: editorial polish ---------- */

/* Hero refinements */
.hero-inner { padding: 110px 20px 96px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-search {
  display: flex; gap: 8px; margin-top: 26px;
  max-width: 560px;
  background: rgba(11,15,26,0.55);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(240,168,58,.25);
  backdrop-filter: blur(6px);
}
.hero-search input {
  flex: 1; padding: 12px 16px; border: 0;
  background: transparent; color: #fff; font: inherit;
  outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search button {
  padding: 12px 22px; border: 0; border-radius: 8px;
  background: var(--amber); color: #0b0f1a;
  font-weight: 600; cursor: pointer;
}
.hero-stats {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 28px; max-width: 700px;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600; color: #fff; letter-spacing: -.02em;
}
.hero-stats span {
  font-size: .76rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-inner { padding: 72px 20px 64px; }
}

/* Section eyebrow above h2 */
.section-eyebrow {
  margin: 0 0 4px;
  font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber);
  font-weight: 600;
}
.section-head { align-items: end; }
.section-head h2 { font-weight: 600; }
.card-byline { margin-top: 4px; font-size: .78rem; }

/* Tonight grid */
.tonight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.tonight-card {
  padding: 22px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r);
}
.tonight-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.tonight-card h3 a { color: #fff; }
.tonight-card h3 a:hover { color: var(--amber); text-decoration: none; }
.tonight-card ul { list-style: none; padding: 0; margin: 0; }
.tonight-card li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.tonight-card li:first-child { border-top: 0; }
.tonight-card li a { color: var(--ink); }

/* Editorial home block */
.editorial { padding-top: 24px; }
.editorial-grid {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: 48px; align-items: start;
}
@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Detail-hero family */
.detail-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
.film-tagline { font-style: italic; color: var(--ink); font-size: 1.1rem; margin: 12px 0 16px; }
.lede { font-size: 1.1rem; color: var(--ink); max-width: 60ch; }

/* Long-form reading column */
.prose.long-form { max-width: 70ch; font-size: 1.04rem; }
.prose.long-form h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose.long-form h3 { color: var(--amber); margin-top: 1.6em; font-size: 1.15rem; }
.prose.long-form p, .prose.long-form li { color: var(--ink); }
.prose.long-form a { color: var(--amber); border-bottom: 1px solid rgba(240,168,58,.35); }
.prose.long-form a:hover { border-bottom-color: var(--amber); text-decoration: none; }
.prose.long-form .dropcap::first-letter {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 3.4em; line-height: .9; float: left;
  margin: .05em .12em 0 0; color: var(--amber);
}

/* Inline PBN slot looks like a normal underlined link */
.inline-pbn {
  color: var(--amber); border-bottom: 1px dashed rgba(240,168,58,.5);
}
.inline-pbn:hover { border-bottom-style: solid; text-decoration: none; }

/* Sidebar key/value list */
.sidebar .kv { list-style: none; padding: 0; margin: 0 0 16px; }
.sidebar .kv li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem;
}
.sidebar .kv li:first-child { border-top: 0; }
.sidebar .kv li span { color: var(--muted); }
.sidebar .kv li strong { color: #fff; font-family: 'Fraunces', serif; font-size: 1.05rem; }

/* Related resources block */
.related-resources {
  margin-top: 22px; padding: 20px;
  background: linear-gradient(180deg, rgba(240,168,58,.05), rgba(240,168,58,.02));
  border: 1px solid rgba(240,168,58,.18);
  border-radius: var(--r);
}
.related-resources .rr-head {
  margin: 0 0 6px; color: var(--amber); font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.related-resources .rr-blurb { font-size: .82rem; margin: 0 0 14px; }
.related-resources .rr-list { list-style: none; padding: 0; margin: 0; }
.related-resources .rr-item {
  padding: 10px 0; border-top: 1px solid rgba(240,168,58,.18);
  display: flex; flex-direction: column; gap: 2px;
}
.related-resources .rr-item:first-child { border-top: 0; }
.related-resources .rr-link { color: var(--ink); font-size: .94rem; line-height: 1.3; }
.related-resources .rr-link:hover { color: var(--amber); text-decoration: none; }
.related-resources .rr-note { color: var(--muted); font-size: .78rem; }

/* Mobile nav */
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; gap: 12px; }
  .primary-nav { width: 100%; gap: 14px; font-size: .88rem; justify-content: flex-start; }
  .show-row { grid-template-columns: 1fr; }
  .show-row .times { justify-content: flex-start; }
  .layout { gap: 24px; }
  .sidebar { position: static; }
  .editorial-grid { gap: 24px; }
}

/* Visual rhythm — alternating section backgrounds */
section.container + section.container { margin-top: -12px; }

/* Cinema/city/genre/film hero variants get subtle tint accents */
.film-hero  { background: linear-gradient(180deg, #131a2b 0%, var(--bg) 100%); }
.city-hero  { background: linear-gradient(180deg, #14182a 0%, var(--bg) 100%); }
.cinema-hero{ background: linear-gradient(180deg, #161a2e 0%, var(--bg) 100%); }
.genre-hero { background: linear-gradient(180deg, #181426 0%, var(--bg) 100%); }
