:root {
  --bg: #14121a;
  --bg-raised: #1e1b27;
  --bg-soft: #282433;
  --line: #373245;
  --text: #f1edf7;
  --muted: #a9a2b8;
  --accent: #f2b56b;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(27, 19, 48, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; color: var(--accent); white-space: nowrap; }
.site-header nav { display: flex; gap: 18px; overflow-x: auto; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.site-header nav a:hover { color: var(--text); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }
section { padding-top: 64px; }

/* Hero */
.hero { padding-top: 72px; text-align: center; }
.eyebrow { color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.lede { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 1.08rem; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }

.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--c, var(--line)); color: var(--c, var(--muted));
  font-size: 0.82rem; text-decoration: none; background: transparent;
}

.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #2a1c08;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Show grid */
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.show-card {
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.show-card:hover, .show-card.active { transform: translateY(-3px); border-color: var(--c); }
.show-banner {
  position: relative; height: 170px; overflow: hidden;
  background: linear-gradient(135deg, var(--c), var(--c2));
  border-bottom: 3px solid var(--c);
}
.show-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-icon {
  position: absolute; left: 12px; bottom: 10px; font-size: 1.3rem; line-height: 1;
  padding: 7px 8px; border-radius: 10px; background: rgba(27, 19, 48, 0.75);
}
.show-body { padding: 16px; }
.show-body h3 { font-size: 1.25rem; }
.show-meta { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.show-tagline { margin-top: 10px; font-size: 0.93rem; color: var(--muted); }

/* Show detail */
.show-detail {
  margin-top: 20px; background: var(--bg-raised); border: 1px solid var(--c);
  border-radius: var(--radius); padding: 28px;
}
.detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-top h3 { font-size: 1.8rem; color: var(--c); }
.detail-close { font: inherit; cursor: pointer; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.detail-about { margin-top: 12px; max-width: 70ch; }
.detail-quote { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid var(--c); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 1.1rem; }
.detail-quote cite { display: block; margin-top: 6px; font-family: var(--sans); font-size: 0.82rem; font-style: normal; color: var(--muted); }
.detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 24px; }
.detail-cols h4 { margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail-cols ul { margin: 0; padding: 0; list-style: none; }
.detail-cols li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.detail-cols li:last-child { border-bottom: 0; }
.detail-cols li span { color: var(--muted); }

/* Shared faces */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-row button { cursor: pointer; font: inherit; font-size: 0.82rem; }
.filter-row button.on { background: var(--c, var(--accent)); color: #17131f; border-color: var(--c, var(--accent)); }
.face-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.face-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.face-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.face-role { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 0.92rem; }
.face-role .chip { flex: none; font-size: 0.72rem; padding: 2px 9px; }
.empty { color: var(--muted); }

/* Crossover */
.crossover-box, .quiz-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.crossover-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crossover-controls label { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.crossover-x { color: var(--accent); font-size: 1.3rem; }
select {
  font: inherit; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.crossover-result { margin: 20px 0 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; min-height: 3em; }
.crossover-result small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Quiz */
.quiz-progress { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.quiz-q { font-family: var(--serif); font-size: 1.4rem; margin: 8px 0 18px; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.quiz-options button {
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.quiz-options button:hover { border-color: var(--accent); }
.quiz-result h3 { font-size: 1.8rem; color: var(--c); margin: 6px 0 10px; }
.quiz-result p { max-width: 60ch; margin-bottom: 18px; }

/* Tracker */
.tracker { display: grid; gap: 14px; margin-bottom: 18px; }
.tracker-row { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tracker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tracker-head h3 { font-size: 1.1rem; color: var(--c); }
.tracker-count { color: var(--muted); font-size: 0.85rem; }
.tracker-bar { height: 4px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.tracker-bar i { display: block; height: 100%; background: var(--c); transition: width 0.2s ease; }
.seasons { display: flex; flex-wrap: wrap; gap: 6px; }
.seasons button {
  font: inherit; font-size: 0.82rem; cursor: pointer; min-width: 40px;
  padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted);
}
.seasons button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #17131f; font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 24px; text-align: center; color: var(--muted); font-size: 0.85rem; }

.credits { max-width: 720px; margin: 14px auto 0; text-align: left; }
.credits summary { cursor: pointer; text-align: center; color: var(--accent); }
.credits ul { margin: 12px 0; padding-left: 18px; }
.credits li { margin-bottom: 4px; }

/* Shared bits */
.muted { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sub-head { font-size: 1.3rem; margin: 36px 0 14px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.verdict { margin-top: 16px; font-weight: 600; }
.verdict.good { color: #7fd69a; }
.verdict.bad { color: #f09a8a; }

/* Show picker */
.picker { margin-top: 32px; }
.picker-title { font-family: var(--serif); font-size: 1.15rem; }
.picker .hero-chips { margin-top: 14px; }
.picker-status { color: var(--muted); font-size: 0.88rem; margin-top: 12px; }
.hero-chips.left { justify-content: flex-start; margin-top: 14px; }
.chip.pick { font: inherit; font-size: 0.85rem; cursor: pointer; }
.chip.pick[aria-pressed="true"] { background: var(--c); color: #17131f; font-weight: 600; }
.chip.pick:disabled { cursor: default; opacity: 0.55; }
.chip.pick.right { opacity: 1; background: #7fd69a; border-color: #7fd69a; color: #10301b; font-weight: 600; }
.chip.pick.wrong { opacity: 1; background: transparent; border-color: #f09a8a; color: #f09a8a; text-decoration: line-through; }

/* Quote of the day */
.daily-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.streak { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.daily-quote { margin: 18px 0 20px; font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.3; }
.quiz-options.guess button:disabled { cursor: default; opacity: 0.5; }
.quiz-options.guess button.right { opacity: 1; border-color: #7fd69a; background: rgba(127, 214, 154, 0.16); }
.quiz-options.guess button.wrong { opacity: 1; border-color: #f09a8a; background: rgba(240, 154, 138, 0.14); }

/* Cast game */
.face-list { margin-top: 18px; }
.face-list summary { cursor: pointer; color: var(--accent); margin-bottom: 16px; }

/* Debates */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
.duel-vs { align-self: center; color: var(--muted); font-family: var(--serif); font-style: italic; }
.duel-side {
  font: inherit; color: var(--text); cursor: pointer; text-align: center;
  padding: 26px 14px; border-radius: var(--radius); border: 1px solid var(--c);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c2) 40%, transparent));
  transition: transform 0.15s ease;
}
.duel-side:hover { transform: translateY(-3px); }
.duel-side strong { display: block; font-family: var(--serif); font-size: 1.35rem; }
.duel-side span { display: block; margin-top: 4px; color: var(--c); font-size: 0.82rem; }
.duel-picks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 20px; font-size: 0.9rem; }
.duel-picks span { color: var(--muted); }
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.poll { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.poll .chip { align-self: flex-start; font-size: 0.72rem; padding: 2px 9px; }
.poll h4 { margin: 2px 0 4px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.poll button {
  font: inherit; font-size: 0.92rem; color: var(--text); text-align: left; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.poll button:hover { border-color: var(--c); }
.poll button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #17131f; font-weight: 600; }

/* Favourite episode hearts */
.fav { font: inherit; cursor: pointer; background: none; border: 0; padding: 0 4px 0 0; color: var(--line); font-size: 1rem; }
.fav:hover { color: var(--muted); }
.fav[aria-pressed="true"] { color: var(--c); }

/* Quiz result card */
.quiz-result { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.quiz-result img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--c); }
.crossover-box #crossCopy { margin-top: 16px; }

/* Fan card */
.fan-card {
  max-width: 560px; padding: 26px; border-radius: 18px; border: 1px solid var(--accent);
  background: linear-gradient(160deg, #2b2233, #1a1722 60%);
}
.fan-card-title { color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.fan-card dl { margin: 16px 0 0; }
.fan-card dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fan-card dl div:last-child { border-bottom: 0; }
.fan-card dt { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.fan-card dd { margin: 3px 0 0; font-family: var(--serif); font-size: 1.1rem; }

@media (max-width: 640px) {
  .duel { grid-template-columns: 1fr; }
  .duel-vs { justify-self: center; }
  .quiz-result { grid-template-columns: 1fr; }
  .quiz-result img { max-width: 200px; }
  .site-header { padding: 12px 16px; }
  main { padding: 0 16px 48px; }
  .show-detail, .crossover-box, .quiz-box { padding: 18px; }
}

/* ==========================================================
   Look and feel: display font, hero ribbon, tinted photos,
   motion, and a mood for each show's page
   ========================================================== */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/fraunces-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}
:root { --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
body { overflow-x: clip; }
h1, h2, h3 { letter-spacing: -0.01em; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 650; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 10px;
  border-radius: 4px; background: linear-gradient(90deg, var(--accent), #e58fd0);
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.2rem; }
.brand svg { width: 30px; height: 22px; fill: currentColor; flex: none; }

/* Hero with a scrolling ribbon of show photos */
.hero { position: relative; padding-top: 120px; }
.hero > :not(.hero-ribbon) { position: relative; z-index: 1; }
.hero h1 {
  font-weight: 750; font-size: clamp(2.6rem, 7.5vw, 5rem); line-height: 1.02;
  text-shadow: none; filter: drop-shadow(0 4px 22px rgba(10, 8, 14, 0.95));
  background: linear-gradient(100deg, #fff 35%, #ffd9a0 68%, #ffb3e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: #cfc8dc; text-shadow: 0 1px 16px rgba(27, 19, 48, 0.9); }
.hero-ribbon {
  position: absolute; top: 0; left: 50%; width: 100vw; height: 430px;
  transform: translateX(-50%); overflow: hidden; z-index: 0; pointer-events: none;
}
.hero-ribbon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 19, 48, 0.3), rgba(27, 19, 48, 0.55) 30%, rgba(27, 19, 48, 0.9) 62%, var(--bg) 92%);
}
.ribbon-track { display: flex; width: max-content; padding-top: 26px; animation: ribbon 90s linear infinite; }
.ribbon-tile {
  position: relative; flex: none; width: 210px; height: 280px; margin-right: 16px;
  border-radius: 16px; overflow: hidden; background: var(--c2);
}
.ribbon-tile:nth-child(odd) { transform: rotate(-2deg) translateY(10px); }
.ribbon-tile:nth-child(even) { transform: rotate(2deg); }
.ribbon-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Photos tinted in each show's colour so they read as one set */
.ribbon-tile img, .show-banner img, .detail-hero img, .quiz-result img {
  filter: grayscale(1) contrast(1.15) brightness(1.12);
}
.ribbon-tile::after, .show-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, var(--c), var(--c2));
  mix-blend-mode: multiply; transition: opacity 0.3s ease;
}
.show-banner img { transition: filter 0.3s ease, transform 0.5s ease; }
.show-card:hover .show-banner img, .show-card.active .show-banner img { filter: none; transform: scale(1.05); }
.show-card:hover .show-banner::after, .show-card.active .show-banner::after { opacity: 0; }
.show-icon { z-index: 1; }
.show-banner { height: 190px; }
.show-card { box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.show-card:hover, .show-card.active {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px -14px var(--c);
}
.show-body h3 { font-size: 1.35rem; font-weight: 650; }

/* Motion */
.show-card { animation: card-in 0.5s ease backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.confetti { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--x), 108vh) rotate(var(--r)); } }
.flame {
  display: inline-block; font-size: calc(1em * var(--s, 1)); line-height: 1;
  transform-origin: 50% 90%; animation: flicker 0.9s ease-in-out infinite alternate;
}
.flame.out { filter: grayscale(1); opacity: 0.5; animation: none; }
@keyframes flicker { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.14) rotate(4deg); } }
.btn { transition: transform 0.15s ease, filter 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.quiz-options button, .poll button { transition: border-color 0.15s ease, transform 0.15s ease; }
.quiz-options button:not(:disabled):hover { transform: translateY(-2px); }

/* Quote of the day gets a glow of its own */
#dailyBox {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    radial-gradient(circle at 0% 0%, rgba(242, 181, 107, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(229, 143, 208, 0.12), transparent 55%),
    var(--bg-raised);
}

/* Each show's page takes on the show's mood */
.show-detail {
  padding: 0; overflow: hidden; border-width: 1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 50%, var(--bg-raised)), var(--bg-raised) 520px);
  box-shadow: 0 24px 60px -30px var(--c);
  animation: card-in 0.4s ease backwards;
}
.detail-hero { position: relative; height: 300px; background: color-mix(in srgb, var(--c2) 70%, #0c0a10); }
/* The photo sits on the right and fades out to the left, so portraits are not cropped to a strip. */
.detail-hero img {
  position: absolute; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--c); mix-blend-mode: color; opacity: 0.6;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--c2) 50%, var(--bg-raised)) 98%);
}
.detail-hero-text { position: absolute; left: 28px; right: 28px; bottom: 14px; z-index: 2; }
.detail-eyebrow { color: var(--c); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.detail-hero-text h3 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 750; line-height: 1; margin: 6px 0 8px; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.detail-hero-text .show-meta { color: #e4deee; margin: 0; }
.detail-close { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(27, 19, 48, 0.7); color: var(--text); border-color: transparent; }
.detail-body { padding: 24px 28px 30px; }
.detail-about { margin-top: 0; font-size: 1.05rem; }
.detail-quote { font-size: 1.35rem; background: color-mix(in srgb, var(--c) 12%, transparent); }
.detail-cols h4 { color: var(--c); }
.detail-cols li { border-bottom-color: color-mix(in srgb, var(--c) 22%, var(--line)); }

/* Cosy: warm and soft (Gilmore Girls, Friends, Young Sheldon, Big Bang) */
.vibe-cosy .detail-quote { border-left: 0; border-radius: 18px; text-align: center; font-style: italic; padding: 22px; }
.vibe-cosy .detail-hero-text h3 { font-weight: 600; }
/* Drama: glossy and romantic (One Tree Hill, Gossip Girl) */
.vibe-drama .detail-hero-text h3 { font-style: italic; font-weight: 500; }
.vibe-drama .detail-quote { font-style: italic; border-left-width: 1px; }
.vibe-drama .detail-eyebrow { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
/* Dark: moody and glowing (Vampire Diaries, Lucifer, Supernatural, Dexter) */
.vibe-dark { background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 60%, #08070b), #121018 520px); }
.vibe-dark .detail-hero-text h3 { text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.9rem, 5vw, 3rem); text-shadow: 0 0 26px var(--c), 0 2px 20px #000; }
.vibe-dark .detail-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), color-mix(in srgb, var(--c2) 60%, #08070b) 98%); }
.vibe-dark .detail-quote { background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
/* Case file: crisp and procedural (Suits, NCIS, Brooklyn Nine-Nine) */
.vibe-case .detail-hero-text h3 { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.7rem, 4.6vw, 2.8rem); }
.vibe-case .detail-eyebrow, .vibe-case .detail-cols h4 { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.vibe-case .detail-eyebrow { display: inline-block; padding: 3px 10px; border: 1px solid var(--c); border-radius: 4px; }
.vibe-case .detail-quote { border-radius: 4px; border-left-width: 6px; }
.vibe-case .detail-body { background-image: repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--c) 7%, transparent) 31px 32px); }

@media (max-width: 640px) {
  .hero { padding-top: 90px; }
  .hero-ribbon { height: 360px; }
  .ribbon-tile { width: 150px; height: 210px; }
  .detail-hero { height: 250px; }
  .detail-hero img { width: 80%; opacity: 0.75; }
  .detail-hero-text { left: 18px; right: 18px; }
  .detail-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .flame, .show-card, .show-detail { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Colour pass: aubergine base, coloured section bands,
   wider paired layout, and photos in more places
   ========================================================== */
:root {
  --bg: #1b1330;
  --bg-raised: #2a1d49;
  --bg-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.15);
  --muted: #bdb3d2;
}
select { background: #2f2352; }
select option { background: #2f2352; color: var(--text); }

/* Layout: full-width bands with a wide centred column */
main { max-width: none; padding: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { padding-top: 0; }
.band { padding: 76px 0; position: relative; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pair-wide-left { grid-template-columns: 1.55fr 1fr; }
.pair > section { min-width: 0; }
.hero { padding: 120px 0 56px; }
.hero-ribbon { left: 0; width: 100%; transform: none; }
.site-footer { background: #150e27; }

/* Bands */
.band-plum {
  background:
    radial-gradient(circle at 12% 30%, rgba(242, 181, 107, 0.2), transparent 45%),
    radial-gradient(circle at 92% 80%, rgba(229, 143, 208, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg), #4a1d5c 28%, #3a1a55);
}
.band-base {
  background:
    radial-gradient(circle at 85% 0%, rgba(111, 177, 232, 0.14), transparent 45%),
    linear-gradient(180deg, #3a1a55, var(--bg) 18%);
}
.band-navy {
  background:
    radial-gradient(circle at 0% 100%, rgba(95, 199, 178, 0.18), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(176, 140, 240, 0.22), transparent 45%),
    linear-gradient(180deg, #1c2a6b, #17214f);
}
.band-teal {
  background:
    radial-gradient(circle at 90% 90%, rgba(168, 214, 92, 0.16), transparent 45%),
    linear-gradient(180deg, #0f4a52, #123a4a);
}
.band-wine {
  background:
    radial-gradient(circle at 8% 10%, rgba(240, 138, 75, 0.22), transparent 45%),
    radial-gradient(circle at 95% 95%, rgba(176, 140, 240, 0.2), transparent 45%),
    linear-gradient(180deg, #6a1b46, #4b1640);
}
.band-green {
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 213, 71, 0.15), transparent 45%),
    linear-gradient(180deg, #14503f, #123a3a);
}

/* Boxes sit on the bands as dark glass rather than solid black */
.band .quiz-box, .band .crossover-box, .band .poll, .band .tracker-row, .band .face-card {
  background: rgba(14, 8, 30, 0.46); border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.8);
}
#dailyBox {
  background: rgba(14, 8, 30, 0.5); border-color: rgba(242, 181, 107, 0.5);
}
.fan-card { max-width: none; background: linear-gradient(160deg, rgba(242, 181, 107, 0.18), rgba(14, 8, 30, 0.55) 55%); }

/* Tinted photo container, reused everywhere a show photo appears */
.ph { position: relative; overflow: hidden; background: var(--c2); }
.ph > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.15) brightness(1.12);
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, var(--c), var(--c2)); mix-blend-mode: multiply;
}

/* Quote of the day: mystery photo that sharpens when you answer */
.daily-grid { display: grid; grid-template-columns: 1fr 210px; gap: 24px; }
.daily-main { min-width: 0; }
.daily-photo { border-radius: 14px; min-height: 240px; }
.daily-photo > img { filter: grayscale(1) blur(20px) brightness(0.95); transform: scale(1.3); }
.daily-photo.shown > img { filter: grayscale(1) contrast(1.15) brightness(1.12); transform: none; animation: unblur 0.9s ease both; }
@keyframes unblur { from { filter: grayscale(1) blur(20px) brightness(0.95); transform: scale(1.3); } }
.daily-q {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 750; font-size: 5.5rem; color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.daily-photo.shown .daily-q { inset: auto 10px 10px auto; font-size: 1.6rem; padding: 6px 8px; border-radius: 10px; background: rgba(14, 8, 30, 0.75); }
.daily-grid .quiz-options { grid-template-columns: 1fr 1fr; }

/* Debates: each side shows its show's photo */
.duel-side.ph { padding: 0; height: 230px; display: flex; align-items: flex-end; background: var(--c2); border-width: 2px; }
.duel-side.ph::after { background: linear-gradient(180deg, var(--c), var(--c2)); }
.duel-label {
  position: relative; z-index: 2; width: 100%; padding: 44px 14px 16px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 22, 0.92) 60%);
}
.duel-side .duel-label strong { font-size: 1.5rem; color: #fff; }
.duel-side.ph > img { transition: transform 0.5s ease; }
.duel-side.ph:hover > img { transform: scale(1.07); }
.duel-side.ph:hover { box-shadow: 0 16px 36px -14px var(--c); }

/* Polls: photo strip */
.poll { padding: 0; overflow: hidden; gap: 0; }
.poll-photo { height: 96px; }
.poll-photo .chip { position: absolute; left: 12px; bottom: 10px; z-index: 2; background: rgba(14, 8, 30, 0.8); align-self: auto; }
.poll-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }

/* Crossover: the two shows side by side */
.cross-photos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.cross-photos:empty { display: none; }
.cross-tile { height: 150px; border-radius: 14px; display: flex; align-items: flex-end; }
.cross-tile b {
  position: relative; z-index: 2; width: 100%; padding: 30px 12px 10px; font-family: var(--serif); font-size: 1.05rem;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 22, 0.9) 70%);
}
.crossover-box #crossCopy { margin-top: 0; }

/* Tracker: two columns with a thumbnail per show */
.tracker { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.tracker-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--c); }

/* Quiz result fits the half-width column */
.pair .quiz-result { grid-template-columns: 150px 1fr; gap: 18px; }

@media (max-width: 1020px) {
  .pair, .pair-wide-left { grid-template-columns: 1fr; gap: 64px; }
}
@media (max-width: 640px) {
  main { padding: 0; }
  .wrap { padding: 0 16px; }
  .band { padding: 52px 0; }
  .hero { padding: 90px 0 40px; }
  .daily-grid { grid-template-columns: 1fr; }
  .daily-photo { min-height: 130px; order: -1; }
  .daily-grid .quiz-options { grid-template-columns: 1fr; }
  .duel-side.ph { height: 170px; }
  .cross-tile { height: 110px; }
  .tracker { grid-template-columns: 1fr; }
  .pair .quiz-result { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .daily-photo.shown > img { animation: none; }
}

/* Quiz result photo, tinted like the rest */
.quiz-photo { aspect-ratio: 1; border-radius: var(--radius); border: 2px solid var(--c); }
/* In debates the photo is a soft backdrop for the show, not a portrait of the character named */
.duel-side.ph > img { filter: grayscale(1) contrast(1.1) brightness(0.9) blur(3px); transform: scale(1.08); }
.duel-side.ph:hover > img { transform: scale(1.15); }
@media (max-width: 640px) { .quiz-photo { max-width: 200px; } }
