/* ══════════════════════════════════════════════════════════════════════════════
   ReelMovieTalk — Cinematic Editorial Theme
   Playfair Display (serif headlines) + DM Sans (clean body)
   Dark film magazine aesthetic — deep blacks, warm gold accent
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --black:      #080809;
  --bg:         #0d0d0f;
  --surface:    #141416;
  --surface-2:  #1a1a1d;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.13);
  --text:       #ede9e3;
  --muted:      #7a7672;
  --muted-2:    #5a5754;
  --gold:       #c9a84c;
  --gold-dim:   rgba(201,168,76,0.15);
  --gold-glow:  rgba(201,168,76,0.08);
  --red:        #b03a2e;
  --max:        1100px;
  --serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --radius:     4px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Subtle film grain texture via SVG data URI */
  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)' opacity='0.03'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 72px;
  align-items: start;
}

.page-main { min-width: 0; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,8,9,0.9);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
}

/* Brand */
.brand { display: flex; align-items: baseline; gap: 0; flex-shrink: 0; }
.brand-word {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}
.brand:hover .brand-word { opacity: 0.85; }
.brand-reel  { color: var(--gold); }
.brand-movie { color: var(--text); }
.brand-talk  { color: var(--muted); }

/* Nav */
.primary-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.primary-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Search */
.search-field {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}
#siteSearch {
  width: 100%;
  padding: 7px 10px 7px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
#siteSearch::placeholder { color: var(--muted-2); }
#siteSearch:focus { border-color: var(--gold); }

/* ── Search Dropdown ────────────────────────────────────────────────────────── */
.search-dropdown {
  position: sticky;
  top: 58px;
  z-index: 190;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.search-dropdown .wrap { padding-top: 8px; padding-bottom: 8px; }

#searchResults { display: flex; flex-direction: column; }

.sr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.12s;
  gap: 12px;
}
.sr-item:hover { background: var(--surface); }
.sr-title { font-size: 14px; font-weight: 600; }
.sr-meta  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.sr-arrow { color: var(--muted); font-size: 13px; flex-shrink: 0; }

.sr-empty {
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 52px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s var(--ease);
}
.cta:hover { background: #d4b358; transform: translateY(-1px); }

/* ── Home Sections ──────────────────────────────────────────────────────────── */
.home-section { margin-bottom: 48px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -13px;
  width: 100%;
  height: 2px;
  background: var(--gold);
}
.section-all {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}
.section-all:hover { color: var(--gold); }

/* ── Review Cards (home grid) ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s, transform 0.15s var(--ease);
  position: relative;
  overflow: hidden;
}
.review-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.review-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.review-card:hover::after { transform: scaleX(1); }

.card-series {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
}
.card-rating {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}

/* ── Reviewer Cards (home) ──────────────────────────────────────────────────── */
.reviewer-list { display: flex; flex-direction: column; gap: 8px; }

.reviewer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.reviewer-card:hover { border-color: var(--border-2); background: var(--surface-2); }
.reviewer-card-name { font-weight: 600; font-size: 15px; }
.reviewer-card-bio  { font-size: 13px; color: var(--muted); max-width: 50ch; }

/* ── Review List (shared: all-reviews + reviewer page) ──────────────────────── */
.review-list { display: flex; flex-direction: column; }

.review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.review-row:last-child { border-bottom: none; }
.review-row:hover { background: var(--surface-2); }

.rr-info { flex: 1; min-width: 0; }
.rr-title {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-year { font-size: 12px; color: var(--muted); margin-left: 6px; }
.rr-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

.rr-rating {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px;
  padding: 2px 7px;
  flex-shrink: 0;
  white-space: nowrap;
}
.rr-arrow {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.12s, transform 0.12s var(--ease);
}
.review-row:hover .rr-arrow { color: var(--gold); transform: translateX(3px); }

/* ── All Reviews page ───────────────────────────────────────────────────────── */
.list-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.list-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}
.list-count { font-size: 13px; color: var(--muted); }

.filter-bar { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.filter-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.filter-input::placeholder { color: var(--muted-2); }
.filter-input:focus { border-color: var(--gold); }

#reviewsList .review-row { padding-left: 20px; padding-right: 20px; }

.no-results {
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Review Article ─────────────────────────────────────────────────────────── */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.review-header {
  padding: 32px 32px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--gold-glow) 0%, transparent 60%);
}

.review-series {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.review-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.review-year {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75em;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.meta-reviewer a { color: var(--text); font-weight: 600; }
.meta-reviewer a:hover { color: var(--gold); }
.meta-sep { opacity: 0.35; }

.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
}
.rating-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.rating-value { font-size: 15px; font-weight: 700; color: var(--gold); }

/* ── Prose ──────────────────────────────────────────────────────────────────── */
.review-body { padding: 28px 32px; }

.prose { font-size: 16px; line-height: 1.8; }

.prose h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.prose li { margin-bottom: 6px; }

.prose em { font-style: italic; }
.prose strong { font-weight: 700; }

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.prose a:hover { text-decoration-color: var(--gold); }

.prose blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: var(--gold-glow);
  font-style: italic;
  color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.review-footer {
  display: flex;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.btn-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: color 0.15s, border-color 0.15s;
}
.btn-back:hover { color: var(--text); border-color: var(--border-2); }

/* ── Reviewer Page ──────────────────────────────────────────────────────────── */
.reviewer-page {}

.reviewer-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.reviewer-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}
.reviewer-bio  { font-size: 15px; color: var(--muted); margin-bottom: 10px; max-width: 50ch; }
.reviewer-count { font-size: 13px; color: var(--muted-2); }

.series-group { margin-bottom: 36px; }
.series-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ── Generic content page ───────────────────────────────────────────────────── */
.content-page { max-width: 60ch; }
.page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Sidebar & Ads ──────────────────────────────────────────────────────────── */
.page-aside {
  position: sticky;
  top: 80px;
}

.ad-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.ad-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.ad-placeholder {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted-2);
  background: rgba(0,0,0,0.2);
  user-select: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-body { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .ad-placeholder { height: 120px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .search-field { width: 180px; }
}

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .search-field { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .review-header { padding: 20px; }
  .review-body { padding: 20px; }
  .review-footer { padding: 14px 20px; }
  .hero-headline { font-size: 36px; }
  .hero { padding: 32px 0 28px; }
}
