:root {
  --bg: #0b0d17;
  --panel: #151a2c;
  --panel-2: #1c2238;
  --line: #262d48;
  --text: #f3f5ff;
  --muted: #9aa3c7;
  --accent: #ff4d6d;
  --accent-2: #ffb84d;
  --radius: 18px;
  --max: 980px;
  --glow: #1d2350;
}

/* Season themes, chosen by the SEASON setting in seasons.js */
html[data-season="halloween"] {
  --bg: #0d0a12;
  --panel: #1a1222;
  --panel-2: #24182f;
  --line: #3a2747;
  --muted: #b3a3c4;
  --accent: #ff7a1a;
  --accent-2: #b86bff;
  --glow: #3b1a4f;
}
html[data-season="christmas"] {
  --bg: #08110e;
  --panel: #111d19;
  --panel-2: #172822;
  --line: #24392f;
  --muted: #a6bdb2;
  --accent: #e63946;
  --accent-2: #f4c95d;
  --glow: #12402f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1400px 700px at 50% -250px, var(--glow) 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(11,13,23,.75); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; mix-blend-mode: screen; }
.brand b { font-weight: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 99px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.nav .cta { color: #fff; background: var(--accent); font-weight: 600; }
.nav .cta:hover { filter: brightness(1.12); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font: inherit; }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.banner img { width: 100%; height: auto; border-radius: var(--radius); margin: -40px 0 32px; box-shadow: 0 20px 60px rgba(0,0,0,.5); border: 1px solid var(--line); }
@media (max-width: 720px) { .hero h1 br { display: none; } .banner img { margin: -48px 0 24px; border-radius: 14px; } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 28px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 99px; text-decoration: none; font-weight: 700; color: #fff; background: var(--accent); }
.btn.ghost { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.btn:hover { filter: brightness(1.1); }

/* Sections and cards */
section { padding: 32px 0; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
@media (min-width: 700px) { .rules-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rules-top > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.highlight { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--panel-2)), var(--panel)); }
.highlight h3 { font-size: 1.35rem; margin: 4px 0 6px; }
.rule-one { border-color: var(--accent); }
.rule-one h3 { font-size: 1.3rem; }
.rules-warning { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.rules-warning strong { color: var(--accent); }
h3.group { margin: 26px 0 12px; font-size: 1.05rem; letter-spacing: .02em; color: var(--accent, inherit); }
.card p { margin: 0; color: var(--muted); }
.big { font-size: 1.8rem; font-weight: 800; color: var(--text); margin: 4px 0; }
.label { margin: 0 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Live now-playing strip */
.live { display: flex; align-items: center; gap: 16px; }
.live .art { flex: 0 0 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)) center / cover no-repeat; }
.live .meta { flex: 1; min-width: 0; }
.live .title { font-weight: 700; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live .bar { height: 6px; margin-top: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.live .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1s linear; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Lists */
.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.songs li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.songs .thumb { flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--line) center / cover no-repeat; }
.songs .t { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.songs .a { display: block; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.songs > li > span:nth-child(2) { min-width: 0; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Text you still need to fill in shows highlighted so it's easy to spot. */
.todo { background: rgba(255,184,77,.15); outline: 1px dashed var(--accent-2); border-radius: 4px; padding: 0 4px; }

.site-foot { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .dot { animation: none; } .live .bar span { transition: none; } }

@media (max-width: 560px) {
  .live { flex-wrap: wrap; }
  .live .btn { flex: 1 0 100%; text-align: center; }
}

/* Opening-night countdown */
.countdown { text-align: center; padding: 28px 20px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 520px; margin: 8px auto 0; }
.cd-grid div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px; }
.cd-grid span { display: block; font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1;
  background: linear-gradient(180deg, var(--text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-grid small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.cd-date { margin: 14px 0 0; color: var(--muted); }
section:has(> [hidden]:only-child) { display: none; }

/* Blog */
.posts { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; }
.post h2 { margin: 2px 0 12px; font-size: 1.45rem; }
.post h2 a { color: var(--text); text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post img { width: 100%; height: auto; border-radius: 12px; margin: 4px 0 14px; }
.post p + p { margin-top: 12px; }

/* "Show on tonight?" banner */
.status-bar { border-bottom: 1px solid var(--line); background: var(--panel); font-size: .95rem; }
.status-bar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; justify-content: center; text-align: center; }
.status-bar .dot { flex: 0 0 auto; margin: 0; }
.status-bar[data-kind="on"] { background: color-mix(in srgb, #2ecc71 16%, var(--panel)); }
.status-bar[data-kind="on"] .dot { background: #2ecc71; animation: pulse 1.6s infinite; }
.status-bar[data-kind="off"] { background: color-mix(in srgb, #ff4d4d 16%, var(--panel)); }
.status-bar[data-kind="off"] .dot { background: #ff4d4d; }
.status-bar[data-kind="soon"] .dot, .status-bar[data-kind="later"] .dot { background: var(--accent-2); }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #fff; vertical-align: 2px; }

/* Watch page */
.media-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.media { margin: 0; padding: 12px; }
.media .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media img { width: 100%; height: auto; border-radius: 10px; }
.media figcaption { margin: 10px 4px 2px; font-weight: 600; }

/* Cost receipt on the FAQ page */
.receipt { max-width: 560px; margin: 16px auto 12px; background: #fbf8f1; color: #222; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9rem; padding: 24px 18px 28px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: rotate(-.6deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; }
.receipt-head, .receipt-foot { text-align: center; margin: 0 0 14px; line-height: 1.5; }
.receipt-foot { margin: 16px 0 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th, .receipt td { padding: 6px 4px; text-align: right; vertical-align: top; }
.receipt th:first-child, .receipt td:first-child { text-align: left; }
.receipt thead th { border-bottom: 1px dashed #888; font-weight: 700; }
.receipt td small { display: block; color: #777; font-style: italic; }
.receipt td:nth-child(2) { color: #777; text-decoration: line-through; white-space: nowrap; }
.receipt td:nth-child(3) { white-space: nowrap; }
.receipt tfoot td { border-top: 1px dashed #888; font-weight: 700; padding-top: 10px; text-decoration: none; color: #222; }
.receipt details.receipt-reveal { background: none; border: 1px dashed #888; border-radius: 4px; color: #222; margin: 16px 0 0; }
.receipt details.receipt-reveal p { color: #222; }
.receipt-note { color: #555; font-size: .8rem; margin: 12px 0 0; }
@media (max-width: 480px) { .receipt { font-size: .8rem; padding: 20px 12px 26px; } }
/* Running tab page */
.cost-stats .card h3 { font-size: 1.6rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.cost-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cost-table th, .cost-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cost-table th:first-child, .cost-table td:first-child { text-align: left; }
.cost-table thead th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-lines td:nth-child(2), .cost-lines th:nth-child(2), .cost-lines td:nth-child(3), .cost-lines th:nth-child(3) { text-align: left; }
.cost-lines td:nth-child(2) { white-space: normal; min-width: 180px; }
.cost-lines td small { display: block; color: var(--muted); }
