/* Visual tokens. Copy changes belong in templates; see docs/editing-copy.md. */
:root {
  --paper: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e9;
  --accent: #fa3656;
  --action: #de2848;
  --signal-ink: #bd2441;
  --radius: 20px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #e9526b; outline-offset: 4px;
}
::selection { background: var(--accent); color: var(--ink); }
.demo-banner { text-align: center; padding: 7px 16px; background: #252528; color: #d4d4d8; font-size: 10px; letter-spacing: .025em; }
.site-header { max-width: 1120px; margin: auto; padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 750; letter-spacing: -.04em; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .12em; font-weight: 500; margin-top: 1px; }
.brand-mark { width: 40px; height: 40px; display: block; flex-shrink: 0; }
nav { display: flex; gap: 4px; padding: 4px; border: 1px solid #e5e5e9; background: #eeeef2; border-radius: 12px; }
nav a { padding: 7px 18px; color: var(--muted); font-size: 12px; border-radius: 8px; transition: background .2s, color .2s, transform .2s var(--ease); }
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--signal-ink); background: #fff; box-shadow: 0 1px 5px #2424300c; }
nav span { display: none; }
main { max-width: 1024px; margin: 0 auto; padding: 26px 0 12px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.eyebrow { display: inline-block; color: var(--signal-ink); font-size: 10px; font-weight: 700; letter-spacing: .15em; margin: 0 0 16px; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 750; line-height: 1.1; letter-spacing: -.065em; }
.title-dot { display: none; }
h2 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
h3 { margin: 0; font-size: 19px; font-weight: 550; letter-spacing: -.03em; }
.hero-caption { color: var(--muted); font-size: 14px; margin: 12px 0 0; letter-spacing: .02em; }
.edition { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); padding-bottom: 4px; white-space: nowrap; }
.edition time { display: block; font-family: ui-monospace, monospace; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.edition .activity-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--signal-ink); background: #ffe8ed; border-radius: 100px; padding: 4px 9px; margin-top: 10px; }
.activity-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.round-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; padding: 17px 2px; border-top: 1px solid #dcdce3; }
.round-meta strong { color: var(--ink); font-weight: 500; }
.duel { background: var(--surface); border: 1px solid #e7e7ec; border-radius: var(--radius); padding: 22px 24px 0; margin-bottom: 24px; box-shadow: 0 7px 26px #25253b05; scroll-margin-top: 22px; }
.duel.no-foot { padding-bottom: 20px; }
.duel-foot form { margin-left: auto; }
.duel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; color: var(--muted); padding: 0 0 18px; overflow-wrap: anywhere; }
.serial { display: inline-flex; gap: 8px; align-items: baseline; font: 10px/1.2 ui-monospace, monospace; letter-spacing: .03em; color: var(--muted); }
.serial b { font-size: 22px; font-weight: 700; color: var(--signal-ink); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.songs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; position: relative; }
.songs::before { content: ''; width: 1px; background: var(--line); position: absolute; left: 50%; top: 5px; bottom: 4px; }
.song { min-width: 0; display: flex; flex-direction: column; }
.song-top { min-height: 20px; display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 12px; }
.side-label { font-size: 10px; font-weight: 650; letter-spacing: .12em; color: #777780; }
.choice-label { font-size: 10px; color: var(--signal-ink); display: inline-flex; gap: 4px; align-items: center; }
.song-body { display: flex; gap: 20px; align-items: center; flex: 1; min-height: 0; }
.cover { width: 176px; height: 176px; flex-shrink: 0; object-fit: cover; border-radius: 9px; box-shadow: 0 5px 13px #25253018; }
.cover.absent { position: relative; display: grid; place-items: center; background: linear-gradient(145deg, #fde0e5, #f4c7d0); box-shadow: inset 0 0 0 1px #c62c4810; overflow: hidden; }
.cover.absent::before { content: ''; position: absolute; width: 79%; height: 79%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 2px, #c6c6cd18 2.5px 3px), conic-gradient(from 20deg, #18181e, #45454e 20%, #1c1c22 39%, #101016 53%, #3c3c44 73%, #18181e); box-shadow: 2px 5px 7px #28132326; }
.cover.absent::after { content: ''; position: absolute; width: 27%; height: 27%; border-radius: 50%; background: radial-gradient(circle, #27212a 0 3px, #fa3656 3.5px); box-shadow: 0 0 0 1px #ff697e40; }
.cover.absent small { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font-size: 8px; color: #874e5c; letter-spacing: .09em; z-index: 1; }
.song:nth-child(2) .cover.absent { background: linear-gradient(145deg, #e5e4f7, #cecee8); }
.song:nth-child(2) .cover.absent::before { transform: rotate(65deg); }
.song:nth-child(2) .cover.absent::after { background: radial-gradient(circle, #27212a 0 3px, #a7a0e0 3.5px); }
.song:nth-child(2) .cover.absent small { color: #68628a; }
.song-description { min-width: 0; }
.artist { color: #55555e; font-size: 13px; margin: 0 0 6px; overflow-wrap: anywhere; }
.song h2 { font-size: 27px; font-weight: 650; line-height: 1.2; letter-spacing: -.045em; margin: 0 0 12px; overflow-wrap: anywhere; }
.album { color: #7b7b83; font-size: 11px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.listening { display: flex; gap: 8px 14px; flex-wrap: wrap; margin: 16px 0 12px; font-size: 11px; align-items: center; }
.listening a { display: inline-flex; gap: 5px; align-items: center; color: #bd2441; min-height: 32px; }
.listening a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.listening span { color: #7b7b83; font-size: 10px; line-height: 1.7; }
.vote-button { border: 1px solid #e5e5e9; border-radius: 10px; width: 100%; min-height: 46px; background: #fff; padding: 11px 16px; display: flex; gap: 12px; justify-content: center; align-items: center; color: var(--ink); font-size: 12px; font-weight: 600; transition: background .2s var(--ease), border-color .2s, transform .15s; }
.vote-button .vote-indicator { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #a3a3ad; display: inline-grid; place-items: center; font-size: 10px; line-height: 1; }
.vote-button.chosen { background: var(--action); border-color: var(--action); color: #fff; box-shadow: 0 4px 10px #fa36561a; }
.vote-button.chosen .vote-indicator { background: #fff; border-color: #fff; color: #d92545; }
.vote-button:active, .button:active { transform: scale(.97); }
.vs { position: absolute; left: 50%; top: 81px; transform: translateX(-50%); background: #fff; color: #98989f; padding: 8px 0; font-size: 9px; font-weight: 650; letter-spacing: .02em; }
.duel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #eeeef2; padding: 10px 0; margin-top: 16px; color: #77777e; font-size: 10px; min-height: 48px; }
.text-button { border: 0; background: none; color: #bd2441; font-size: 11px; padding: 7px 0; min-height: 32px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.score { display: flex; gap: 7px; align-items: baseline; padding-top: 2px; }
.score strong { font-size: 38px; font-weight: 750; line-height: 1.2; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.score > span { font-size: 11px; color: var(--muted); }
.nominate-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; margin-top: 0; }
.nominate-strip h3 { font-size: 26px; font-weight: 750; letter-spacing: -.055em; }
.nominate-strip p { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; background: var(--action); color: #fff; border: 1px solid transparent; border-radius: 10px; padding: 11px 21px; font-size: 12px; font-weight: 600; line-height: 1.5; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.button.secondary { background: #fff; color: var(--ink); border-color: #dddde4; }
.button.small { min-height: 36px; font-size: 11px; padding: 8px 12px; border-radius: 9px; }
.full { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.history { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 10px; color: var(--muted); }
.history > span { flex-shrink: 0; }
.history-dates { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.history a { flex-shrink: 0; padding: 5px 10px; border-radius: 100px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history a:hover, .history a[aria-current] { background: #ffe5eb; color: var(--signal-ink); }
.date-short { display: none; }
footer { max-width: 1024px; padding: 12px 0 18px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #77777e; font-size: 10px; border-top: 1px solid var(--line); }
footer .admin-link { margin-left: auto; flex-shrink: 0; white-space: nowrap; color: #666670; }
.lead { color: var(--muted); margin: 18px 0 0; font-size: 13px; }
.empty { text-align: center; padding: 44px 20px 56px; }
.empty h2 { font-size: 30px; }
.empty p:not(.eyebrow) { color: var(--muted); margin: 24px 0 32px; line-height: 1.9; }
.empty .actions { justify-content: center; }
.notice { border: 1px solid #f1d5dc; border-radius: 12px; padding: 13px 18px; margin-bottom: 24px; color: #aa2b44; background: #fff0f3; font-size: 12px; overflow-wrap: anywhere; }
.notice.error { background: #f7ede8; color: #985640; border-color: #edd9ce; }
.fields-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.fields-grid.compact { gap: 16px; }
.track-fields { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; margin: 12px 0 28px; padding: 30px; }
legend { padding: 0 10px; font: 600 10px/1.5 ui-monospace, monospace; letter-spacing: .08em; color: var(--ink); border-left: 3px solid var(--accent); }
label { display: block; font-size: 12px; font-weight: 500; color: #4d4d55; margin-bottom: 22px; }
.optional { color: #86868b; font-size: 10px; font-weight: 400; margin-left: 8px; }
input, textarea, select { display: block; width: 100%; min-width: 0; padding: 12px 14px; margin-top: 8px; border: 1px solid #dddde4; border-radius: 10px; background: #fafafa; color: var(--ink); min-height: 46px; font-size: 14px; transition: border-color .2s, background .2s; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: #ec7187; }
input::placeholder, textarea::placeholder { color: #86868b; }
textarea { resize: vertical; }
.name-field { max-width: 420px; }
.nomination-page { max-width: 880px; margin: auto; }
.nomination-form { padding: 28px; background: var(--surface); border: 1px solid #e7e7ec; border-radius: var(--radius); box-shadow: 0 7px 26px #25253b05; }
.nomination-form .name-field { max-width: 360px; margin-bottom: 24px; }
.nomination-form .fields-grid { gap: 20px; }
.nomination-form .track-fields { background: #f8f8fa; padding: 22px; margin: 8px 0 24px; border-color: #e8e8ee; }
.nomination-form .track-fields label:last-child { margin-bottom: 0; }
.nomination-form input, .nomination-form textarea { background: #fff; }
.nomination-form textarea { min-height: 88px; }
.form-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 0; text-align: center; }
.form-footer .button { width: min(100%, 320px); min-height: 56px; font-size: 16px; border-radius: 14px; box-shadow: 0 5px 14px #fa36561a; }
.login-box { max-width: 420px; margin: 20px auto 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.login-box h1 { font-size: 30px; margin-bottom: 30px; }
.panel { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; margin-bottom: 24px; }
.panel h2 { font-size: 18px; margin: 0 0 24px; font-weight: 550; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.9; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.8; }
.check input { width: 16px; min-height: 16px; height: 16px; margin: 3px 0 0; flex-shrink: 0; accent-color: #d92f4e; }
.tick { margin-top: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; }
.section-title > span { color: var(--muted); font-size: 12px; }
.queue-item { display: flex; gap: 20px; border-top: 1px solid var(--line); padding: 23px 0; align-items: flex-start; }
.queue-item:last-child { padding-bottom: 0; }
.queue-number { font-size: 13px; font-variant-numeric: tabular-nums; color: #86868b; padding-top: 4px; }
.queue-description { flex: 1; min-width: 0; }
.queue-description h3 { font-size: 14px; line-height: 1.8; margin: 10px 0 7px; overflow-wrap: anywhere; }
.queue-description p { color: var(--muted); font-size: 10px; margin: 0; }
.badge { font-size: 10px; padding: 3px 8px; background: #f2efe5; color: #7b745c; border-radius: 6px; }
.badge.ready { background: #ffe6ec; color: #bd2441; }
.badge.skipped { background: #f0f0ed; color: #8a8e83; }
.queue-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.muted { color: var(--muted); font-weight: 400; }
.empty-inline { color: var(--muted); font-size: 12px; padding: 24px 0; }
.schedule-item { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.round-row { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-top: 1px solid var(--line); font-size: 12px; }
.round-row span { font-size: 11px; color: var(--muted); }
.back { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.catalogue-link { display: inline-block; margin-top: 14px; font-size: 11px; color: var(--signal-ink); }
.search-form { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr 1fr auto; gap: 16px; align-items: end; }
.search-form label { margin: 0; }
.catalogue-results { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.catalogue-results h2 { font-size: 18px; overflow-wrap: anywhere; }
.catalogue-results .panel { margin: 0; }
.catalogue-results a { font-size: 12px; color: var(--signal-ink); }
.source-copy { font-size: 11px; color: var(--muted); margin-top: 15px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.9 ui-monospace, monospace; padding: 20px; background: #f5f5f8; border-radius: 12px; }
.result-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
summary { cursor: pointer; font-size: 12px; }
@media (hover:hover) {
  .brand:hover .brand-mark { transform: rotate(4deg) scale(1.04); }
  nav a:hover { transform: translateY(-1px); }
  .vote-button.chosen:hover { background: #c91f3d; border-color: #c91f3d; }
  .vote-button:not(.chosen):hover { background: #fff0f3; border-color: #eda7b5; }
  .button:hover { background: #c91f3d; }
  .button.secondary:hover { background: #fff0f3; }
}
@media (max-width:1120px) {
  main, footer { margin-left: 40px; margin-right: 40px; }
  .site-header { padding-left: 40px; padding-right: 40px; }
  .song-body { gap: 16px; }
  .cover { width: 144px; height: 144px; }
  .song h2 { font-size: 23px; }
}
@media (max-width:800px) {
  .site-header { padding: 16px 24px; }
  main, footer { margin-left: 24px; margin-right: 24px; }
  main { padding-top: 22px; }
  .songs { gap: 32px; }
  .duel { padding: 22px 22px 0; }
  .song-body { flex-direction: column; align-items: stretch; gap: 14px; }
  .cover { width: 100%; height: auto; aspect-ratio: 1; }
  .song-description { min-height: 0; }
  .song h2 { font-size: 23px; }
  .vs { top: 110px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width:540px) {
  .site-header { padding: 14px 20px; gap: 12px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand small { font-size: 6px; letter-spacing: .08em; }
  nav { padding: 3px; gap: 0; }
  nav a { font-size: 10px; padding: 7px 10px; white-space: nowrap; }
  main, footer { margin-left: 20px; margin-right: 20px; }
  main { padding-top: 16px; padding-bottom: 8px; }
  .page-heading { gap: 12px; margin-bottom: 22px; }
  h1 { font-size: 39px; letter-spacing: -.055em; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; margin-bottom: 12px; }
  .hero-caption { font-size: 12px; margin-top: 12px; }
  .edition { font-size: 10px; padding-bottom: 2px; }
  .edition .activity-status { font-size: 9px; gap: 4px; }
  .round-meta { font-size: 10px; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; }
  .duel { border-radius: 18px; padding: 17px 15px 0; margin-bottom: 18px; }
  .duel-heading { padding-bottom: 14px; font-size: 9px; }
  .serial { font-size: 8px; gap: 7px; }
  .serial b { font-size: 18px; }
  .songs { gap: 22px; }
  .song-top { margin-bottom: 11px; min-height: 16px; gap: 3px; }
  .side-label { font-size: 8px; letter-spacing: .1em; }
  .choice-label { font-size: 8px; }
  .song-body { gap: 12px; }
  .cover { border-radius: 7px; }
  .cover.absent small { bottom: 5px; font-size: 7px; }
  .artist { font-size: 11px; margin-bottom: 7px; }
  .song h2 { font-size: 20px; line-height: 1.28; margin-bottom: 10px; }
  .album { font-size: 10px; }
  .listening { flex-direction: column; align-items: flex-start; gap: 4px; margin: 12px 0 12px; }
  .listening a { font-size: 10px; min-height: 27px; }
  .listening span { font-size: 10px; }
  .vote-button { border-radius: 9px; gap: 6px; padding: 10px 7px; font-size: 11px; }
  .vote-button .vote-indicator { width: 13px; height: 13px; font-size: 9px; flex-shrink: 0; }
  .vs { top: 80px; font-size: 8px; }
  .duel-foot { margin-top: 14px; padding: 8px 0; font-size: 10px; gap: 8px; min-height: 48px; }
  .duel-foot .text-button { font-size: 10px; white-space: nowrap; }
  .score strong { font-size: 30px; }
  .nominate-strip { padding: 18px 2px; gap: 15px; }
  .nominate-strip h3 { font-size: 19px; }
  .nominate-strip p { font-size: 10px; max-width: 180px; }
  .nominate-strip .button { white-space: nowrap; padding: 10px 13px; font-size: 11px; }
  footer { padding: 10px 0 16px; font-size: 10px; gap: 12px; }
  .history { gap: 8px; }
  .history a { padding: 5px 8px; }
  .date-full { display: none; }
  .date-short { display: inline; }
  .demo-banner { font-size: 9px; padding: 6px 12px; }
  .fields-grid, .catalogue-results { grid-template-columns: 1fr; gap: 0; }
  .fields-grid.compact { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .track-fields, .panel { padding: 22px; border-radius: 12px; }
  input, textarea, select { font-size: 16px; }
  .nomination-form { padding: 20px 16px; border-radius: 18px; }
  .nomination-form .fields-grid { gap: 0; }
  .nomination-form .track-fields { padding: 18px; margin-bottom: 20px; }
  .nomination-form .name-field { max-width: none; }
  .queue-item { gap: 12px; }
  .queue-number { display: none; }
  .queue-description h3 { font-size: 12px; }
  .queue-actions .button { font-size: 10px; padding: 7px 9px; }
  .round-row { flex-direction: column; gap: 4px; }
  .catalogue-results { gap: 16px; }
  .login-box { padding: 28px; margin: 12px auto 28px; }
  .empty { padding: 32px 0 40px; }
  .empty h2 { font-size: 25px; }
}
@media (max-width:360px) {
  .brand small { display: none; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  main, footer { margin-left: 14px; margin-right: 14px; }
  .song h2 { font-size: 18px; }
  .score { flex-wrap: wrap; }
  .edition { font-size: 9px; }
  h1 { font-size: 33px; }
}
/* Brief, one-shot motion. Content remains visible when scripts are unavailable. */
.brand-mark { transition: transform .3s var(--ease); }
@keyframes surface-arrive {
  from { opacity: .25; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes selection-settle {
  from { transform: scale(.7); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}
.motion-arrive { animation: surface-arrive .42s var(--ease) both; }
.vote-button.chosen .vote-indicator { animation: selection-settle .26s var(--ease) both; }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Admin-only live tally; shares the public page's music palette. */
.live-heading { align-items: center; gap: 14px; }
.live-heading .eyebrow { margin-bottom: 6px; }
.live-heading h2 { margin: 0; font-size: 23px; font-weight: 650; }
.live-updated { margin: 10px 0 20px; }
.live-round + .live-round { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.live-round-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.live-round-heading > span { color: var(--muted); font-size: 11px; }
.live-round-heading > a { margin-left: auto; color: var(--signal-ink); font-size: 11px; }
.live-match { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eeeef2; }
.live-match-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.live-match-heading > span:last-child { color: var(--signal-ink); }
.live-track { display: grid; grid-template-columns: 18px minmax(0,1fr) 60px; align-items: center; gap: 14px; margin: 14px 0; }
.live-track-info p { font-size: 13px; margin: 0 0 8px; overflow-wrap: anywhere; }
.live-track-info p > span { color: #64646e; }
.live-count { text-align: right; font-variant-numeric: tabular-nums; }
.live-count strong { display: block; font-size: 22px; line-height: 1.2; }
.live-count small { font-size: 10px; font-weight: 400; }
.live-count > span { color: var(--muted); font-size: 10px; }
.vote-meter { display: block; width: 100%; height: 6px; appearance: none; border: 0; border-radius: 10px; overflow: hidden; background: #eeeef2; color: var(--accent); }
.vote-meter::-webkit-progress-bar { background: #eeeef2; border-radius: 10px; }
.vote-meter::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
.vote-meter::-moz-progress-bar { background: var(--accent); border-radius: 10px; }
.vote-meter.side-b { color: #9184c8; }
.vote-meter.side-b::-webkit-progress-value { background: #9184c8; }
.vote-meter.side-b::-moz-progress-bar { background: #9184c8; }
[data-refresh-status]:empty { display: none; }
@media (max-width:540px) {
  .live-heading h2 { font-size: 20px; }
  .live-heading .button { flex-shrink: 0; }
  .live-track { gap: 8px; grid-template-columns: 12px minmax(0,1fr) 48px; }
  .live-track-info p { font-size: 12px; }
}

/* Final results: winner first, with comparable votes on both sides. */
.duel.is-result { padding-bottom: 24px; }
.result-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 22px; }
.result-summary > div { min-width: 0; }
.result-kicker { display: block; color: var(--signal-ink); font-size: 10px; font-weight: 750; letter-spacing: .11em; margin-bottom: 7px; }
.result-summary h3 { font-size: 25px; font-weight: 750; line-height: 1.3; letter-spacing: -.04em; overflow-wrap: anywhere; }
.result-summary h3 span { font-weight: 500; }
.result-summary > p { flex-shrink: 0; margin: 0; text-align: right; font-size: 12px; color: var(--signal-ink); }
.result-summary > p strong { font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.result-summary > p span { display: block; color: var(--muted); font-size: 10px; }
.is-result .songs { gap: 12px; }
.is-result .songs::before, .is-result .vs { display: none; }
.is-result .song { padding: 18px; background: #f7f7f9; border: 1px solid transparent; border-radius: 14px; }
.is-result .song.is-winner { background: #fff0f3; border-color: #f6bfcb; }
.is-result .song-body { align-items: flex-start; }
.is-result .cover { width: 144px; height: 144px; }
.is-result .song h2 { font-size: 24px; }
.is-result .song-top { margin-bottom: 14px; }
.winner-badge { color: #fff; background: var(--action); border-radius: 6px; padding: 3px 9px; font-size: 10px; font-weight: 650; }
.is-result .score { margin-top: auto; padding-top: 2px; }
.is-result .score strong { font-size: 60px; line-height: 1.1; letter-spacing: -.065em; }
.is-winner .score strong { color: var(--action); }
.score .vote-share { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; }
.result-meter { display: block; width: 100%; height: 5px; appearance: none; border: 0; border-radius: 6px; overflow: hidden; background: #e5e5eb; color: #93939e; margin-top: 12px; }
.result-meter::-webkit-progress-bar { background: #e5e5eb; border-radius: 6px; }
.result-meter::-webkit-progress-value { background: #93939e; border-radius: 6px; }
.result-meter::-moz-progress-bar { background: #93939e; border-radius: 6px; }
.is-winner .result-meter { color: var(--accent); }
.is-winner .result-meter::-webkit-progress-value { background: var(--accent); }
.is-winner .result-meter::-moz-progress-bar { background: var(--accent); }
.result-tie .result-kicker, .result-tie .result-summary > p { color: #71639f; }
.result-tie .result-meter { color: #9184c8; }
.result-tie .result-meter::-webkit-progress-value { background: #9184c8; }
.result-tie .result-meter::-moz-progress-bar { background: #9184c8; }
.result-zero .result-kicker, .result-zero .result-summary > p { color: var(--muted); }
@media (max-width:1120px) {
  .is-result .song-body { flex-direction: column; gap: 14px; }
  .is-result .cover { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width:540px) {
  .duel.is-result { padding: 17px 12px 12px; }
  .is-result .duel-heading { padding: 0 3px 14px; }
  .result-summary { gap: 14px; padding: 0 3px 18px; align-items: flex-start; }
  .result-summary h3 { font-size: 19px; }
  .result-summary h3 span { display: block; font-size: 14px; margin-top: 5px; line-height: 1.4; }
  .result-kicker { font-size: 8px; letter-spacing: .06em; }
  .result-summary > p { font-size: 10px; }
  .result-summary > p strong { font-size: 21px; }
  .is-result .songs { gap: 8px; }
  .is-result .song { padding: 10px; border-radius: 11px; }
  .is-result .song-top { min-height: 22px; margin-bottom: 10px; }
  .winner-badge { font-size: 8px; padding: 3px 6px; }
  .is-result .song h2 { font-size: 18px; }
  .is-result .score strong { font-size: 43px; }
  .score .vote-share { font-size: 10px; }
}

.enrichment-panel .section-title { gap: 16px; flex-wrap: wrap; }
.enrichment-panel .section-title h2 { margin-bottom: 8px; }
.enrichment-panel form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.enrichment-results { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; margin-top: 24px; }
.enrichment-results article { padding: 20px; background: #f7f7f9; border-radius: 14px; min-width: 0; overflow-wrap: anywhere; }
.enrichment-results .eyebrow { display: block; }
.enrichment-results h3 { font-size: 17px; }
.enrichment-cover { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; margin-bottom: 12px; }
.correction { font-size: 12px; line-height: 1.8; }
.correction s { color: var(--muted); }
.correction strong { color: var(--signal-ink); }
.evidence-details { margin-top: 14px; }
.evidence-details a { color: var(--signal-ink); }
button:disabled { cursor: wait; opacity: .6; }
@media (max-width:640px) {
  .enrichment-results { grid-template-columns: 1fr; }
}
.manual-review > summary { padding: 8px 0 20px; color: var(--muted); }
