/* FilmBase.org — guide to upcoming films & TV */
:root {
  --brand: #8b1a2b;
  --brand-dark: #5c101c;
  --brand-soft: #f7ebe9;
  --ink: #1c1820;
  --muted: #4a4450;
  --line: #e0d5d7;
  --bg: #f6f3f4;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(60, 20, 30, 0.08);
  --max: 1120px;
  --rail: 300px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--brand); }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; }
.nav a, .nav summary {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"], .nav summary:hover { color: var(--brand-dark); }
.nav-toggle {
  display: none;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.nav-drop { position: relative; }
.nav-drop summary { cursor: pointer; list-style: none; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: " ▾"; font-size: 0.75em; }
.nav-drop-panel {
  display: none;
  position: absolute;
  top: 1.6rem;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 18rem;
  max-height: 70vh;
  overflow: auto;
  padding: 0.4rem 0;
  box-shadow: var(--shadow);
  z-index: 20;
  columns: 2;
  column-gap: 0;
}
.nav-label {
  margin: 0.45rem 0.85rem 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  break-inside: avoid;
}
.nav-drop[open] .nav-drop-panel { display: block; }
.nav-drop-panel a { display: block; padding: 0.35rem 0.85rem; font-weight: 550; break-inside: avoid; }

.hero-banner {
  background: url("../images/banner-bg.svg") center/cover no-repeat, linear-gradient(120deg, #2a0f18, #4a1524);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 0 2rem;
  text-align: center;
}
.hero-banner h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  letter-spacing: -0.03em;
  color: #f8f0e8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-banner .tagline {
  margin: 0;
  font-size: 1.05rem;
  color: #f5d08a;
  font-weight: 650;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.page-wrap { padding: 2rem 0 3rem; }
.layout {
  display: grid;
  grid-template-columns: 1fr var(--rail);
  gap: 2rem;
  align-items: start;
}
.main-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.main-content h2, .main-content h3 { line-height: 1.25; letter-spacing: -0.02em; }
.main-content h2 { margin-top: 1.75rem; font-size: 1.32rem; color: var(--brand-dark); }
.main-content h3 { margin-top: 1.25rem; font-size: 1.08rem; }
.main-content p, .main-content li { color: var(--ink); }
.main-content ul, .main-content ol { padding-left: 1.25rem; }
.main-content li { margin-bottom: 0.4rem; }
.lead { font-size: 1.08rem; color: var(--muted); }
.sources { font-size: 0.92rem; }
.sources li { margin-bottom: 0.35rem; }
.title-meta {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.product-rail {
  position: sticky;
  top: 4.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.product-rail h2 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
}
.product-rail h2:first-child { margin-top: 0; }
.rail-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.rail-empty {
  margin: 0 0 0.5rem;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  background: #faf7f7;
}

.disclosure, .edu-note {
  background: var(--brand-soft);
  border: 1px solid #e4cbcf;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1rem 0;
}
.edu-note { background: #f7f5f2; border-color: #e4ddd4; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  background: #fff;
}
.info-card h3 { margin: 0 0 0.35rem; color: var(--brand-dark); font-size: 0.98rem; }
.info-card p { margin: 0 0 0.35rem; font-size: 0.88rem; color: var(--muted); }
.info-card a { font-weight: 650; text-decoration: none; }

.site-footer {
  background: #1a0f14;
  color: #efe4e6;
  padding: 2rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: #e0b4bc; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.site-footer h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-genres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem 1rem;
}
.footer-disclosure {
  border-top: 1px solid #3a2830;
  padding-top: 1rem;
  color: #c9b4b8;
  font-size: 0.82rem;
  line-height: 1.5;
}
.footer-meta { margin-top: 0.75rem; color: #9a858b; font-size: 0.8rem; }

.contact-box {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  border: 1px solid #e4cbcf;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .product-rail { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-drop-panel { position: static; box-shadow: none; border: none; padding-left: 0.5rem; min-width: 0; columns: 1; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .nav.is-open { display: flex; }
  .main-content { padding: 1.25rem; }
  .footer-genres { grid-template-columns: 1fr; }
}

/* Prime Video series rail cards — wider key-art than book covers */
.series-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.series-card img,
.series-card .poster-box {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0;
  border-radius: 6px;
  background: #f3e9eb;
  object-fit: cover;
}
.series-card .poster-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px dashed var(--line);
}
.series-card .pc-title {
  margin: 0.15rem 0 0.2rem;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 650;
}
.series-card .pc-title a { text-decoration: none; }
.series-card .book-meta,
.series-card .series-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  width: 100%;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.book-card img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
  background: #f3e9eb;
  object-fit: contain;
}
.book-card .pc-title {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 650;
}
.book-card .pc-title a { text-decoration: none; }
.book-card .book-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
