/* =========================================================
   Ben's Watchlist — Stylesheet
   Dark cinematic theme: deep black, charcoal, navy, gold/amber.
   Sections:
     1. Tokens & resets
     2. Layout primitives (container, buttons, badges)
     3. Header & navigation
     4. Hero (home + page hero)
     5. Section heads & general sections
     6. Featured / Pick cards
     7. Genre shelf
     8. Mood cards (Watch Next)
     9. Pop culture cards & opinion cards
    10. Filter bar (watchlist)
    11. Footer
    12. Reveal animations
    13. Responsive breakpoints
   ========================================================= */

/* ---------- 1. TOKENS & RESETS ---------- */
:root {
  /* Color */
  --bg-base: #08080b;
  --bg-deep: #0b0d14;          /* navy-tinted black */
  --bg-elevated: #12131a;
  --bg-card: #16171f;
  --bg-card-hover: #1c1e29;
  --border: rgba(212, 162, 76, 0.14);
  --border-strong: rgba(212, 162, 76, 0.3);

  --text: #f3f1ea;
  --text-soft: #c7c4ba;
  --text-muted: #8a8779;
  --text-dim: #5a5a63;

  --accent: #d4a24c;            /* warm amber gold */
  --accent-bright: #f0c674;
  --accent-deep: #a8782e;
  --accent-red: #b1361f;        /* warm cinematic red */
  --accent-red-soft: rgba(177, 54, 31, 0.5);
  --accent-glow: rgba(212, 162, 76, 0.35);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 40px rgba(212, 162, 76, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;

  /* Layout */
  --container-max: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }

/* Subtle ambient page texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 162, 76, 0.08), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(30, 50, 110, 0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(177, 54, 31, 0.07), transparent 60%);
}

/* Film grain — subtle SVG fractal noise across the viewport.
   Sits above all content (pointer-events: none so clicks pass through)
   at very low opacity, sells the cinematic theme. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.text-accent {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 2. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(212, 162, 76, 0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 60%, var(--accent-deep));
  color: #1a1408;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Slow shimmer sheen sweeps across the button on a loop. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: btn-shine 3.6s ease-in-out 1.2s infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(212, 162, 76, 0.35);
}
.btn-primary:hover::after {
  animation-duration: 1.4s;
  animation-delay: 0s;
}

@keyframes btn-shine {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(212, 162, 76, 0.08);
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  /* Specific properties only — `transition: all` picked up incidental
     computed-style changes during grid reflows and animated them. */
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 2px;
}

/* ---------- 3. HEADER & NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8, 8, 11, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}

/* Film-strip perforations along the top and bottom of the header.
   A solid black strip is painted, then a mask cuts evenly-spaced
   rounded-rect "sprocket holes" through it so the hero gradient
   shows through. A subtle gold inner line frames each strip. */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background-color: #000;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 1px 0 rgba(212, 162, 76, 0.18),
    inset 0 -1px 0 rgba(212, 162, 76, 0.18);
  -webkit-mask-image: radial-gradient(
    ellipse 4.5px 3px at center,
    transparent 0,
    transparent 2.8px,
    black 3.4px
  );
  mask-image: radial-gradient(
    ellipse 4.5px 3px at center,
    transparent 0,
    transparent 2.8px,
    black 3.4px
  );
  -webkit-mask-size: 24px 16px;
  mask-size: 24px 16px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}
.site-header::before { top: 0; }
.site-header::after { bottom: 0; }

/* Keep brand, nav, and toggle above the perforation strips. */
.header-inner { position: relative; z-index: 2; }
.site-header.scrolled {
  background: rgba(8, 8, 11, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #1a1408;
  font-size: 11px;
  line-height: 1;
  /* Triangles look off-center in a square box — nudge right a hair to compensate. */
  text-indent: 2px;
  box-shadow: var(--shadow-gold);
}
.brand-text em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: var(--accent-bright); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: rgba(212, 162, 76, 0.1);
  border: 1px solid var(--accent);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: rgba(212, 162, 76, 0.18);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--accent-bright);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. HERO ---------- */
.hero {
  position: relative;
  /* Top padding ensures hero content clears the 72px fixed header on all sizes. */
  padding: clamp(110px, 11vw, 160px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero {
  position: relative;
  padding: clamp(110px, 10vw, 140px) 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
}
.hero-spotlight {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 1200px;
  max-height: 1200px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212, 162, 76, 0.22), rgba(212, 162, 76, 0.06) 50%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}
.glow-a {
  width: 480px;
  height: 480px;
  top: -100px;
  left: -120px;
  background: radial-gradient(circle, rgba(177, 54, 31, 0.55), transparent 70%);
  animation: float 18s var(--ease) infinite;
}
.glow-b {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(30, 60, 130, 0.55), transparent 70%);
  animation: float 22s var(--ease) infinite reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero-shape {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}
.shape-1 {
  width: 360px;
  height: 360px;
  top: 12%;
  right: 8%;
  opacity: 0.5;
  animation: spin 60s linear infinite;
}
.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 6%;
  opacity: 0.35;
  border-style: dashed;
  animation: spin 90s linear infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-inner { max-width: 880px; }

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin: 18px 0 14px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(212, 162, 76, 0.15);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero-lede {
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Page hero (interior pages) */
.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.page-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 20px 0 14px;
}
.page-sub {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  max-width: 580px;
}

/* ---------- 5. SECTIONS ---------- */
.section {
  position: relative;
  padding: clamp(70px, 8vw, 110px) 0;
}
.section-tight { padding: clamp(50px, 6vw, 80px) 0; }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 18px 0 12px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* ---------- 6. PICK CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.pick-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.pick-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 162, 76, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.pick-card:hover,
.pick-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 162, 76, 0.1);
  outline: none;
}
.pick-card:hover::before,
.pick-card:focus-visible::before { opacity: 1; }
.pick-card:hover .pick-card-glow,
.pick-card:focus-visible .pick-card-glow { opacity: 1; }

.pick-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.type-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 11px;
  background: rgba(212, 162, 76, 0.09);
  border: 1px solid rgba(212, 162, 76, 0.25);
  border-radius: var(--radius-pill);
}
.rating {
  font-size: 14px;
  color: var(--accent-bright);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(240, 198, 116, 0.4);
}

/* Star rating — outline track with a gold-filled overlay clipped to the
   correct width, so half-ratings render as a half-filled star instead
   of "★★★★½". */
.stars {
  display: inline-block;
  position: relative;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  color: rgba(212, 162, 76, 0.25);
}
.stars::before {
  content: "★★★★★";
  display: inline-block;
}
.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent-bright);
  text-shadow: 0 0 12px rgba(240, 198, 116, 0.4);
}
.stars-fill::before {
  content: "★★★★★";
  display: inline-block;
}

.pick-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pick-desc {
  color: var(--text-soft);
  font-size: 0.97rem;
  flex: 1;
}

.best-for {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.best-for-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.best-for-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* Filter hide — use display:none so filtered-out cards are fully removed
   from layout. Avoids the absolute/static position swap that was triggering
   a brief grid reflow and badge-rendering glitch on the first visible card. */
.pick-card.is-hidden {
  display: none;
}

/* Filter entrance — runs each time a card becomes visible from a filter click.
   Uses animation (not transition) so it re-fires across display:none toggles. */
@keyframes filterCardEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pick-card.is-entering {
  animation: filterCardEnter 380ms var(--ease-out) both;
}

/* ---------- 7. GENRE SHELF ---------- */
.genre-shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.genre-chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 11px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  transition: all var(--t-med) var(--ease);
}
.genre-chip:hover {
  color: #1a1408;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ---------- 8. MOOD CARDS ---------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.mood-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-deep);
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease-out),
              border-left-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.mood-card:hover {
  transform: translateX(6px) translateY(-2px);
  border-left-color: var(--accent-bright);
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
}
.mood-icon {
  font-size: 1.6rem;
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(212, 162, 76, 0.4));
}
.mood-prompt {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.mood-prompt em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.mood-pick {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---------- 9. POP CULTURE + OPINION CARDS ---------- */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.pop-card {
  text-align: center;
  padding: 36px 24px 28px;
  background:
    radial-gradient(circle at top, rgba(212, 162, 76, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.pop-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.pop-icon {
  display: inline-block;
  font-size: 2.2rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(212, 162, 76, 0.45));
}
.pop-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}
.pop-pick {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pop-note {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.opinion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.opinion-card {
  padding: 24px 22px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease);
}
.opinion-card::before {
  content: """;
  position: absolute;
  top: -10px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}
.opinion-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.opinion-q {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.opinion-a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.4;
}

/* ---------- 10. FILTER BAR ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  margin: 0 auto 22px;
  max-width: 980px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.filter-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all var(--t-fast) var(--ease);
}
.filter-btn:hover {
  color: var(--accent-bright);
  background: rgba(212, 162, 76, 0.07);
}
.filter-btn.active {
  color: #1a1408;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: var(--shadow-gold);
}

.result-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 28px;
  min-height: 18px;
}

/* Search input */
.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 18px;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 13px 20px 13px 44px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.1);
}
/* Hide the native clear (×) button so we can rely on our own styling */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Empty state — shown when filter + search return zero matches */
.empty-state {
  text-align: center;
  padding: 60px 24px 20px;
  margin: 0 auto;
  max-width: 480px;
}
.empty-icon {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 22px rgba(212, 162, 76, 0.3));
  opacity: 0.85;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.empty-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.empty-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}
.empty-text a:hover { color: var(--accent-bright); }

/* Card detail modal — opens on click, full overlay with backdrop */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  padding: 0;
  animation: fade-in 220ms var(--ease) forwards;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 36px 32px;
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(212, 162, 76, 0.06);
  animation: modal-rise 320ms var(--ease-out) forwards;
}
/* Top accent strip — same as pick-card hover state, locked on */
.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-med) var(--ease);
}
.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(212, 162, 76, 0.1);
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: rotate(90deg);
  outline: none;
}
.modal-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-right: 40px; /* keep clear of the close button */
}

.modal-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 6px;
}

.modal-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.modal-review {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin: 18px 0 6px;
}

.modal-best-for {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Lock body scroll when the modal is open */
body.modal-open {
  overflow: hidden;
}

/* Scroll progress bar — thin gold line at very top of viewport, fills as you scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent), var(--accent-deep));
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212, 162, 76, 0.45);
  transition: width 80ms linear;
}

/* 404 page treatment */
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 20px 0 18px;
  text-shadow: 0 0 60px rgba(212, 162, 76, 0.2);
}
.notfound-zero {
  display: inline-block;
  color: var(--text);
  position: relative;
}
.notfound-zero::after {
  /* The "0" gets a play triangle inside it for a film touch */
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  font-size: 0.4em;
  color: var(--accent);
  font-family: var(--font-sans);
}
.notfound-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- 11. FOOTER ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 60px 0 30px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 60%);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 6px;
}
.footer-brand p { color: var(--text-soft); font-size: 0.95rem; }
.footer-brand .brand-mark { width: 32px; height: 32px; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
}
.back-top {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast) var(--ease);
}
.back-top:hover {
  background: rgba(212, 162, 76, 0.1);
  transform: translateY(-2px);
}
.copyright { font-size: 12px; color: var(--text-muted); }

/* ---------- 12. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 880px) {
  /* More opaque header on mobile so hero glows don't wash out the menu */
  .site-header {
    background: rgba(8, 8, 11, 0.92);
    border-bottom-color: var(--border);
  }
  .site-header.scrolled { background: rgba(8, 8, 11, 0.96); }

  /* Brand and hamburger sit above the slide-down panel so they're always visible */
  .brand { position: relative; z-index: 2; }
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
  }

  /* Mobile slide-down menu: anchored at top:0 + translateY(-100%) so it's
     guaranteed fully off-screen when closed, regardless of menu height. */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 14px) 24px 32px;
    gap: 4px;
    background: rgba(8, 8, 11, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease),
                visibility 0s linear var(--t-med);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--t-med) var(--ease),
                visibility 0s linear 0s;
  }

  .nav-link {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: var(--radius);
  }
  .nav-link.active::after { display: none; }
  .nav-link.active {
    background: rgba(212, 162, 76, 0.08);
  }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-stats { gap: 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .brand-text em { display: inline; }
  .pick-title { font-size: 1.4rem; }
  .pop-pick { font-size: 1.45rem; }
  .filter-bar {
    border-radius: var(--radius);
    padding: 10px;
  }
  .filter-btn { padding: 9px 14px; font-size: 12px; }
  .hero-shape { display: none; }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
