/* Smash or Trash: site styles. Colors and fonts come from admin settings via CSS variables. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 22%, transparent);
  --soft: color-mix(in srgb, var(--primary) 8%, var(--surface));
  --shadow: 0 1px 0 var(--line), 0 10px 30px -12px color-mix(in srgb, var(--text) 25%, transparent);
  --ink-on-primary: #fff;
}
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-bottom: 48px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 2px; }
[data-theme="dark"] a { color: color-mix(in srgb, var(--primary) 55%, white); }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.fine { font-size: 13px; color: var(--muted); }
.err { color: var(--trash); }
.break { word-break: break-all; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.icon { flex: none; }

/* ------------------------------------------------ buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--font-body); padding: 12px 18px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s;
  color: var(--text); background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--ink-on-primary) !important; box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 60%, black); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, white); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--text) !important; }
.btn-ghost:hover { border-color: var(--text); }
.btn-danger { background: var(--trash); color: #fff !important; }
.btn-oauth { width: 100%; border-color: var(--line-strong); background: var(--surface); color: var(--text) !important; }
.btn-oauth:hover { border-color: var(--text); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: calc(var(--radius) * .6); padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, .icon-btn:focus-visible, .vote:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-color: var(--primary);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
input[type="color"] { padding: 2px; width: 44px; height: 40px; }
textarea { resize: vertical; }
.form label, .fields label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form label input, .form label select, .form label textarea { margin-top: 6px; font-weight: 400; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }

/* ------------------------------------------------ header */
.announce { text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; }
.announce a { color: inherit; }
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 2px solid var(--line); z-index: 40; }
.site-header.sticky { position: sticky; top: 0; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-logo { height: 36px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--smash), var(--accent) 55%, var(--trash)); color: #fff; transform: rotate(-6deg); box-shadow: 0 3px 0 color-mix(in srgb, var(--text) 25%, transparent); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { white-space: nowrap; text-decoration: none; color: var(--text) !important; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--soft); }
.main-nav a.active { background: var(--text); color: var(--bg) !important; }
.main-nav .nav-admin { color: var(--primary) !important; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 999px; padding: 0 12px; color: var(--muted); }
.search input { border: 0; padding: 8px 0; width: 180px; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--primary); }
.theme-toggle .when-dark { display: none; }
[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
[data-theme="dark"] .theme-toggle .when-light { display: none; }
.nav-toggle { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; font-family: var(--font-head); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--text) !important; text-decoration: none; font: 600 15px var(--font-body); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--soft); }

.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: calc(var(--radius) * .7); font-weight: 600; margin-bottom: 10px; border: 2px solid; }
.flash-success { background: color-mix(in srgb, var(--smash) 12%, var(--surface)); border-color: color-mix(in srgb, var(--smash) 40%, transparent); }
.flash-error { background: color-mix(in srgb, var(--trash) 10%, var(--surface)); border-color: color-mix(in srgb, var(--trash) 40%, transparent); }
.flash-info { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* ------------------------------------------------ hero */
.hero { padding: 44px 0 20px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero-title { font-size: clamp(40px, 7vw, 76px); line-height: .95; letter-spacing: -0.035em; margin-bottom: 16px; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-badges { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font: 800 30px var(--font-head); padding: 16px 28px; border-radius: 999px; color: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--text) 30%, transparent); }
.hero-badge.smash { background: var(--smash); transform: rotate(-5deg); }
.hero-badge.trash { background: var(--trash); transform: rotate(4deg); }
.hero-or { font: 800 18px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .2em; }
.hero-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hero-head .eyebrow { margin: 0; }
.hero-hide { font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; }
.hero-hide:hover { background: var(--soft); color: var(--text); }
.hero-inner { position: relative; }
.hero-hide-intro { position: absolute; top: -28px; right: 24px; }
.hero-featured { padding: 28px 0 8px; }
.hero-featured-grid { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 28px; align-items: start; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-art img, .hero-art .art-fallback { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art .art-fallback { font-size: 72px; }
.hero-featured-body { min-width: 0; }
.hero-featured-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-featured-title { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin: 2px 0 12px; }
.hero-featured-title a { color: var(--text) !important; text-decoration: none; }
.hero-featured-title a:hover { text-decoration: underline; }
.hero-featured-body .card-summary { font-size: 16px; }
.hero-featured-body .rubric { margin: 6px 0 12px; }
.hero-featured-body .card-actions { margin-top: 12px; flex-wrap: wrap; }
.hero-featured-body .vote-group { margin-left: 0; }

/* ------------------------------------------------ feed */
.feed-wrap { padding-top: 16px; }
.feed-bar, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 16px; }
.page-head { margin-top: 32px; }
.feed-bar h2 { margin: 0; }
.sort select { width: auto; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface); border: 2px solid var(--line); color: var(--text) !important; text-decoration: none; }
a.chip:hover { border-color: var(--text); }
.chip.on { background: var(--text); color: var(--bg) !important; border-color: var(--text); }
.chip-flag { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); font-size: 12px; padding: 3px 10px; }
.chip-accent { background: var(--accent); color: #1c1427 !important; border-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, opacity .3s;
}
.card:hover { border-color: var(--line-strong); }
.card.is-smashed { border-color: color-mix(in srgb, var(--smash) 55%, transparent); }
.card.is-trashed { border-color: color-mix(in srgb, var(--trash) 45%, transparent); }
.card.leaving { opacity: 0; transform: scale(.96) rotate(-1deg); }
.card-top { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; margin-bottom: 12px; }
.card-art { text-decoration: none; }
.card-art img, .art-fallback { width: 64px; height: 64px; border-radius: calc(var(--radius) * .6); object-fit: cover; background: var(--soft); }
.art-fallback { display: grid; place-items: center; font: 800 26px var(--font-head); color: var(--primary); }
.art-fallback.big { width: 100%; height: 100%; aspect-ratio: 1; font-size: 64px; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 4px; }
.card-show { font-weight: 700; color: var(--muted) !important; text-decoration: none; }
.card-show:hover { color: var(--primary) !important; }
.dot { opacity: .6; }
.card-title { font-size: 18px; margin: 0; }
.card-title a { color: var(--text) !important; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.score { display: flex; align-items: baseline; gap: 1px; padding: 6px 10px; border-radius: 12px; font-family: var(--font-head); font-weight: 800; }
.score-num { font-size: 20px; }
.score-of { font-size: 11px; opacity: .7; }
.score.big { padding: 10px 14px; border-radius: 16px; }
.score.big .score-num { font-size: 32px; }
.score-high { background: color-mix(in srgb, var(--smash) 16%, var(--surface)); color: color-mix(in srgb, var(--smash) 80%, var(--text)); }
.score-mid { background: color-mix(in srgb, var(--accent) 28%, var(--surface)); color: color-mix(in srgb, var(--accent) 35%, var(--text)); }
.score-low { background: color-mix(in srgb, var(--trash) 14%, var(--surface)); color: color-mix(in srgb, var(--trash) 80%, var(--text)); }
.card-summary { font-size: 15px; margin-bottom: 10px; }
.card-who { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; background: var(--soft); padding: 8px 12px; border-radius: calc(var(--radius) * .6); margin-bottom: 10px; }
.card-who .icon { margin-top: 3px; color: var(--primary); }
.rec-reason { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--primary); margin: -4px 0 10px; }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; min-width: 0; }
.card-actions .icon-btn { flex: 0 0 auto; width: 34px; height: 34px; }
.card-actions .vote-group { gap: 6px; }
.card-actions .vote-group { min-width: 0; }
.card-actions .vote { min-width: 0; }
/* On cards the vote buttons are icon + count; the words stay on the episode page and in the hero */
.card .card-actions .vote-label { display: none; }
.card .card-actions .vote { padding-left: 12px; padding-right: 12px; gap: 5px; }
.card .card-actions .vote-count { font-size: 14px; }
.card { container-type: inline-size; }
@container (max-width: 270px) {
  .card-actions .mark-hide { display: none; }
}
/* Browsers without container queries: let the votes drop to their own line rather than overflow */
@supports not (container-type: inline-size) {
  .card-actions { flex-wrap: wrap; }
  .card-actions .vote-group { margin-left: auto; }
}
.play-btn { border: 2px solid var(--line-strong); }
.play-btn.btn { height: auto; }
.vote-group { display: flex; gap: 8px; margin-left: auto; }
.vote {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  font: 800 14px var(--font-body); border: 2px solid; background: var(--surface); transition: transform .1s, background .15s, color .15s;
}
.vote:active { transform: scale(.94); }
.vote-smash { color: var(--smash); border-color: color-mix(in srgb, var(--smash) 50%, transparent); }
.vote-trash { color: var(--trash); border-color: color-mix(in srgb, var(--trash) 45%, transparent); }
.vote-smash:hover { background: color-mix(in srgb, var(--smash) 10%, var(--surface)); }
.vote-trash:hover { background: color-mix(in srgb, var(--trash) 10%, var(--surface)); }
.vote-smash.on { background: var(--smash); color: #fff; border-color: var(--smash); box-shadow: 0 3px 0 color-mix(in srgb, var(--smash) 55%, black); }
.vote-trash.on { background: var(--trash); color: #fff; border-color: var(--trash); box-shadow: 0 3px 0 color-mix(in srgb, var(--trash) 55%, black); }
.vote-count { font-variant-numeric: tabular-nums; opacity: .85; padding-left: 6px; border-left: 2px solid currentColor; line-height: 1; }
.vote.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.15) rotate(-4deg); } 100% { transform: scale(1); } }
.vote-group.big .vote { padding: 12px 20px; font-size: 16px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); margin: 12px 0 24px; }
.empty.small { padding: 24px; }

/* ------------------------------------------------ episode & show */
.back { display: inline-block; margin: 24px 0 16px; font-weight: 700; text-decoration: none; }
.episode-hero, .show-hero { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; margin-bottom: 28px; }
.show-hero { margin-top: 32px; }
.episode-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.episode-head h1 { margin: 8px 0 20px; }
.episode-head .card-actions { flex-wrap: wrap; }
.episode-head .vote-group { margin-left: 0; }
.episode-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { display: flex; gap: 8px; align-items: center; margin: 0; }
.ai-panel { border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.lead { font-size: 18px; }
.small-head { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 18px; }
.flag-list { padding: 0; list-style: none; margin: 0 0 12px; }
.flag-list li { margin-bottom: 6px; font-size: 14px; }
.show-notes { white-space: pre-wrap; font-size: 15px; max-height: 480px; overflow: auto; }
.section-title { margin: 36px 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.show-desc { max-width: 700px; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.show-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text) !important; }
.show-tile img, .show-tile .art-fallback { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 6px; transition: transform .15s; }
.show-tile:hover img { transform: translateY(-3px) rotate(-1deg); }
.show-tile small { color: var(--muted); }
.show-tile .chip { align-self: flex-start; }
.inline-search { display: flex; gap: 8px; }
.inline-search input { width: 240px; border-radius: 999px; }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 28px 0; }
.seg { display: inline-flex; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text) !important; text-transform: capitalize; }
.seg a.on { background: var(--text); color: var(--bg) !important; }

/* ------------------------------------------------ leaderboard */
.top-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col-title { display: flex; align-items: center; gap: 8px; }
.col-title.smash { color: var(--smash); }
.col-title.trash { color: var(--trash); }
.rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.rank-list li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; }
.rank { font: 800 28px var(--font-head); color: var(--muted); text-align: center; padding-top: 12px; }

/* ------------------------------------------------ auth & forms */
.auth-wrap { display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 2px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: 32px; box-shadow: var(--shadow); }
.auth-card.center { text-align: center; }
.oauth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.magic { margin-top: 16px; border-top: 2px solid var(--line); padding-top: 14px; }
.magic summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.auth-switch { text-align: center; margin: 20px 0 0; font-size: 15px; }
.stat-row { display: flex; gap: 16px; margin: 16px 0 24px; }
.stat { flex: 1; display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius); text-decoration: none; color: #fff !important; }
.stat strong { font: 800 36px var(--font-head); }
.stat.smash { background: var(--smash); }
.stat.trash { background: var(--trash); }
.danger-zone { border-color: color-mix(in srgb, var(--trash) 40%, transparent); }
.simple-list { list-style: none; padding: 0; }
.simple-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.status { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); margin-right: 4px; }
.status-ok, .status-evaluated, .status-approved { background: color-mix(in srgb, var(--smash) 16%, var(--surface)); color: color-mix(in srgb, var(--smash) 80%, var(--text)); }
.status-error, .status-failed, .status-rejected, .status-banned { background: color-mix(in srgb, var(--trash) 14%, var(--surface)); color: var(--trash); }
.status-running, .status-pending, .status-processing, .status-transcribing, .status-info { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.status-hot { background: var(--accent); color: #1c1427; }
.status-off, .status-hidden, .status-new { background: var(--soft); color: var(--muted); }

/* ------------------------------------------------ prose (CMS pages) */
.prose { padding-top: 32px; font-size: 17px; }
.prose h1 { margin-bottom: 20px; }
.prose h2 { margin-top: 32px; }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 4px solid var(--primary); margin: 0 0 1em; padding: 4px 16px; color: var(--muted); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.center-block { text-align: center; padding-top: 72px; }
.big-emoji { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: var(--soft); color: var(--primary); margin-bottom: 16px; }

/* ------------------------------------------------ save / hide / swipe */
.card { position: relative; }
.card.swiping { transition: none; }
.mark-btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.card.is-saved { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--primary) 55%, transparent); }
.swipe-hint { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; font: 800 15px var(--font-head); color: #fff; padding: 10px 14px; border-radius: 999px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.swipe-hint-save { right: 16px; background: var(--primary); }
.swipe-hint-hide { left: 16px; background: var(--muted); }
.card.swipe-left .swipe-hint-save, .card.swipe-right .swipe-hint-hide { opacity: 1; }

/* ------------------------------------------------ ads */
.card-ad { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.card-ad:hover { transform: none; }
.ad-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.ad-label a { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted) !important; }
.ad-image { display: block; margin: 0 0 12px; border-radius: calc(var(--radius) * .6); overflow: hidden; background: var(--soft); }
.ad-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-ad .card-title a { color: var(--text) !important; }
.card-ad .card-actions { justify-content: flex-end; }
.ad-slot { min-height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot ins.adsbygoogle { display: block; width: 100%; }

/* ------------------------------------------------ plans & advertising pages */
.plans h1 { margin-bottom: 6px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 18px; text-align: left; }
.plan h2 { margin-bottom: 4px; }
.plan-price strong { font: 800 34px var(--font-head); }
.plan-save { color: var(--smash); font-weight: 700; }
.perks { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 420px; text-align: left; }
.perks li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.perks .icon { color: var(--smash); }
.ad-preview-wrap .ad-preview { max-width: 380px; margin-top: 8px; }
.pricing-options { display: grid; gap: 10px; margin-bottom: 12px; }
.pricing-option { display: block; border: 2px solid var(--line); border-radius: calc(var(--radius) * .7); padding: 12px 14px; cursor: pointer; }
.pricing-option:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.pricing-option > input { margin-right: 8px; }
.pricing-head { display: inline-flex; flex-direction: column; gap: 2px; vertical-align: top; }
.pricing-body { display: block; margin-top: 10px; }
.total-line { font-size: 18px; margin: 8px 0 12px; }
.ad-label-links { display: flex; gap: 10px; }
.checkout-page h1 { margin: 8px 0 4px; }
.checkout-panel { padding: 8px; min-height: 320px; }
.checkout-loading { padding: 24px; text-align: center; }
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.order-body { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.order-body b { color: var(--text); }
.row-hot td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 2px 4px 2px 0; }

/* ------------------------------------------------ footer */
.site-footer { background: var(--text); color: var(--bg); padding: 48px 0 24px; margin-top: 40px; }
.site-footer a { color: var(--bg) !important; opacity: .85; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .brand { color: var(--bg) !important; opacity: 1; margin-bottom: 12px; }
.site-footer .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); max-width: 360px; font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.footer-brand { flex: 1 1 280px; max-width: 420px; }
.footer-col { flex: 0 1 160px; min-width: 130px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; }
.footer-html { margin-top: 24px; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); margin-top: 32px; padding-top: 18px; font-size: 13px; opacity: .7; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.footer-version { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }

/* ------------------------------------------------ player & toast */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 2px solid var(--line-strong); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.25); }
.player-inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.player-nav { display: flex; gap: 4px; }
.player-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.player-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.player-next { display: block; color: var(--primary); font-weight: 600; }
.play-btn.is-playing { background: var(--primary); color: #fff; border-color: var(--primary); }
.play-all { display: inline-flex; align-items: center; gap: 6px; }
.player-art { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.player-meta { display: flex; flex-direction: column; min-width: 0; flex: 0 1 280px; }
.player-meta strong, .player-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta small { color: var(--muted); }
.player audio { flex: 1; min-width: 0; height: 40px; }
body.has-player { padding-bottom: 76px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.has-player .toast { bottom: 96px; }
.toast button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .search input { width: 120px; }
  .episode-body { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--surface); border-bottom: 2px solid var(--line); padding: 10px 16px 16px; }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
}
@media (max-width: 860px) {
  .search { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .hero-badge { font-size: 20px; padding: 10px 18px; }
  .hero-featured-grid { grid-template-columns: 1fr; padding: 18px; }
  .hero-art { max-width: 220px; }
  .top-cols { grid-template-columns: 1fr; }
  .episode-hero, .show-hero { grid-template-columns: 1fr; }
  .episode-art { max-width: 220px; }
  .footer-brand { flex-basis: 100%; max-width: none; }
  .footer-col { flex: 1 1 40%; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .brand-name { font-size: 18px; }
  .vote-label { display: none; }
  .vote-group.big .vote-label { display: inline; }
  .player-meta { display: none; }
  .player-auto span { display: none; }
  .inline-search input { width: 100%; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ coming soon */
.soon { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; overflow: hidden; }
.soon-glow { position: absolute; inset: -20%; background:
  radial-gradient(40% 35% at 20% 25%, color-mix(in srgb, var(--smash) 28%, transparent), transparent 70%),
  radial-gradient(40% 35% at 80% 75%, color-mix(in srgb, var(--trash) 26%, transparent), transparent 70%),
  radial-gradient(30% 30% at 70% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(10px); z-index: 0; }
.soon-inner { position: relative; z-index: 1; max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.soon-brand { font-size: 22px; }
.soon-badge { font: 800 13px var(--font-body); text-transform: uppercase; letter-spacing: .14em; padding: 7px 14px; border-radius: 999px; background: var(--text); color: var(--bg); }
.soon-title { font-size: clamp(40px, 8vw, 84px); line-height: .95; letter-spacing: -0.035em; margin: 0; }
.soon-msg { font-size: 19px; color: var(--muted); max-width: 580px; margin: 0; }
.soon-votes { display: flex; align-items: center; gap: 14px; margin: 12px 0; flex-wrap: wrap; justify-content: center; }
.soon-votes .hero-badge { font-size: 24px; padding: 12px 22px; }
.soon-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.soon-pages { display: flex; gap: 16px; font-size: 14px; }
.soon-pages a { color: var(--muted) !important; }
.soon-preview-note { font-size: 13px; background: var(--surface); border: 2px dashed var(--line-strong); padding: 6px 12px; border-radius: 999px; }

/* admin pre-launch bar */
.prelaunch-bar { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; font-size: 14px; background: var(--text); color: var(--bg); }
.prelaunch-bar a { color: var(--accent) !important; font-weight: 700; }
.prelaunch-bar .btn { background: var(--accent); color: #1c1427 !important; }

/* ------------------------------------------------ categories */
.cats { margin-bottom: 8px; }
.cats .cat-chips { margin-bottom: 10px; }
button.chip { font-family: inherit; cursor: pointer; }
.chip-more { border-style: dashed; color: var(--primary) !important; }
.chip-more[aria-expanded="true"] { border-style: solid; }
.cat-more-panel { padding: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.cat-filter-btn { display: none; margin-bottom: 14px; }
.cat-sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 80vh;
  background: var(--surface); color: var(--text); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.cat-sheet::backdrop { background: rgba(10, 6, 20, .5); }
.cat-sheet[open] { animation: sheet-up .2s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.cat-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-family: var(--font-head); font-size: 18px; }
.cat-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 16px 24px; overflow-y: auto; max-height: calc(80vh - 60px); }
.cat-sheet-grid .chip { justify-content: space-between; white-space: normal; padding: 10px 12px; font-size: 14px; }
.cat-sheet-grid .chip small { opacity: .6; font-weight: 600; }
@media (max-width: 640px) {
  .cats .cat-chips, .cats .cat-more-panel { display: none !important; }
  .cat-filter-btn { display: inline-flex; }
}
.cat-sheet-grid .chip { border-radius: 12px; }
.btn { white-space: nowrap; }

/* ------------------------------------------------ rubric */
button.score-btn { border: 0; cursor: pointer; font-family: var(--font-head); transition: transform .1s; }
button.score-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 2px currentColor; }
.rubric { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 12px; }
.rubric-top { display: grid; grid-template-columns: 1fr auto 40px 40px; gap: 10px; align-items: center; }
.rubric-label { font-weight: 700; font-size: 15px; }
.rubric-meter { display: inline-flex; gap: 3px; }
.rubric-meter i { width: 18px; height: 10px; border-radius: 3px; background: var(--line-strong); }
.rubric-meter i.on { background: var(--muted); }
.rubric-meter.l1 i.on, .rubric-meter.l2 i.on { background: var(--trash); }
.rubric-meter.l3 i.on { background: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.rubric-meter.l4 i.on, .rubric-meter.l5 i.on { background: var(--smash); }
.rubric-val { font: 800 14px var(--font-head); text-align: right; font-variant-numeric: tabular-nums; }
.rubric-w { font-size: 12px; color: var(--muted); text-align: right; }
.rubric-reason { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.rubric-row.is-na .rubric-label, .rubric-row.is-na .rubric-val { color: var(--muted); }
.rubric-dialog { border: 0; padding: 22px; width: min(560px, calc(100vw - 24px)); max-height: 86vh; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
.rubric-dialog::backdrop { background: rgba(10, 6, 20, .5); }
.rubric-dialog-head { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.rubric-dialog-head .rd-title { display: block; font: 800 18px/1.2 var(--font-head); }
.rubric-dialog-head .eyebrow { display: block; }
.rubric-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rubric-table th, .rubric-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rubric-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.rubrics-page .panel { margin-top: 20px; scroll-margin-top: 90px; }
.rubrics-page .cat-chips { margin-top: 16px; }
.rubric-dialog { overflow-y: auto; }

/* admin charts page */
.recent-shows { list-style: none; padding: 0; margin: 0; }
.recent-shows li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.recent-shows .thumb { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }

.dup-group { margin-bottom: 18px; }
.dup-group .thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; margin-right: 8px; }
