/* NextUpKara - phone-first for singers, wide and legible for the desk. */

:root {
  --bg: #12101c;
  --panel: #1b1830;
  --panel-2: #241f3f;
  --ink: #f2eefc;
  --ink-dim: #a49cc4;
  --line: #322b52;
  --hot: #ff3d81;
  --hot-2: #ff8a3d;
  --go: #2fd18a;
  --warn: #ffbe4d;
  --danger: #ff5d5d;
  --radius: 12px;

  /* Form fields are light on purpose, even though the page is dark. Browsers
     and password managers repaint a field they autofill -- always to something
     near-white, often with inline !important that no stylesheet can outrank.
     Dark fields lose that fight and go white-on-white; light fields are already
     the colour the filler wants, so filled and empty look the same. */
  --field-bg: #fbfaff;
  --field-ink: #1a1024;
  --field-line: #b9b2d4;
  --field-ph: #6b6486;
}

* { box-sizing: border-box; }

/* The hidden attribute has to beat any display rule we set elsewhere. Without
   this, .stage { display: flex } silently overrode it and every panel on the
   player screen rendered at once, stacked. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #2a1f47 0%, var(--bg) 60%) fixed;
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--hot); }
a:hover { color: var(--hot-2); }

h1 { font-size: 1.6rem; margin: 0 0 .3em; }
h2 { font-size: 1.1rem; margin: 0 0 .6em; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-dim); }

.muted { color: var(--ink-dim); }
.small { font-size: .85rem; }
.err-text { color: var(--danger); }
.hint { color: var(--ink-dim); font-weight: 400; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------- chrome */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 28, .85); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.brand-next { color: var(--ink); }
.brand-up { color: var(--hot); }
.brand-kara { color: var(--hot-2); }
.topbar nav { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.admin-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(27, 24, 48, .6);
  position: sticky; top: 3rem; z-index: 8;
}
.admin-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: thin;
}
.admin-tab {
  flex: 0 0 auto; padding: .6rem .8rem; text-decoration: none; color: var(--ink-dim);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab-on { color: var(--ink); border-bottom-color: var(--hot); }

.user-actions { display: flex; gap: .3rem; flex-wrap: wrap; }

.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; color: var(--hot); user-select: none;
  padding: .15rem .1rem; display: inline-flex; align-items: center; gap: .3rem;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: ''; width: .4rem; height: .4rem; margin-top: -.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .12s ease;
}
.nav-menu[open] > summary::after { transform: rotate(-135deg); margin-top: .15rem; }
.nav-menu > summary:hover { color: var(--hot-2); }
.nav-menu > summary.nav-here { color: var(--ink); font-weight: 700; }

.nav-menu-items {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 30;
  min-width: 16rem; padding: .35rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column;
}
.nav-item {
  display: block; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item-on { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--hot); }
.nav-item-label { display: block; font-size: .92rem; font-weight: 600; }
.nav-item-note { display: block; font-size: .76rem; color: var(--ink-dim); }

@media (max-width: 720px) {
  .nav-menu-items { position: fixed; left: .6rem; right: .6rem; top: 3.4rem; min-width: 0; }
}

.topbar .who { color: var(--ink-dim); }

.wrap { max-width: 820px; margin: 0 auto; padding: 1rem 1rem 4rem; }
body:has(#desk-queue) .wrap { max-width: 1200px; }

.foot { border-top: 1px solid var(--line); padding: 1rem; color: var(--ink-dim); font-size: .8rem; text-align: center; }

.flashes { max-width: 820px; margin: .8rem auto 0; padding: 0 1rem; }
.flash { border-radius: var(--radius); padding: .7rem .9rem; margin: 0 0 .5rem; }
.flash-ok { background: rgba(47, 209, 138, .15); border: 1px solid rgba(47, 209, 138, .4); }
.flash-err { background: rgba(255, 93, 93, .15); border: 1px solid rgba(255, 93, 93, .4); }

/* ---------------------------------------------------------- blocks */

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin: 0 0 1rem;
}
.panel-dim { opacity: .65; }
.panel.narrow { max-width: 440px; margin-inline: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero h1 { font-size: 2.2rem; }
.lede { color: var(--ink-dim); margin-bottom: 1.4rem; }

/* ---------------------------------------------------------- forms */

input, select, button, textarea { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search],
input[type=datetime-local], select, textarea {
  width: 100%; padding: .65rem .8rem; border-radius: 10px;
  border: 1px solid var(--field-line); background: var(--field-bg); color: var(--field-ink);
}
input::placeholder, textarea::placeholder { color: var(--field-ph); opacity: 1; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--hot); outline-offset: 1px; }

/* Belt and braces on top of the light field: pin the text colour for the
   autofilled state too, so it cannot inherit something unreadable. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:autofill {
  -webkit-text-fill-color: var(--field-ink) !important;
  color: var(--field-ink) !important;
  -webkit-box-shadow: 0 0 0 100px var(--field-bg) inset;
  box-shadow: 0 0 0 100px var(--field-bg) inset;
  caret-color: var(--field-ink);
}

::selection { background: var(--hot); color: #1a1024; }

.stack { display: flex; flex-direction: column; gap: .9rem; }
.stack label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--ink-dim); }
.stack label input, .stack label select { color: var(--field-ink); }
.row { display: flex; gap: .8rem; flex-wrap: wrap; }
.row label { flex: 1 1 180px; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--ink-dim); }
.check { flex-direction: row !important; align-items: center; gap: .5rem !important; }
.check input { width: auto; }
.inline { display: inline; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem; justify-content: center;
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  color: #1a1024; border: 0; border-radius: 999px; padding: .6rem 1.1rem;
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); color: #1a1024; }
.btn[disabled] { opacity: .4; cursor: default; filter: none; }
.btn-big { padding: .85rem 1.4rem; font-size: 1.05rem; width: 100%; }
.btn-small { padding: .35rem .8rem; font-size: .85rem; }
.btn-tiny { padding: .25rem .6rem; font-size: .78rem; border-radius: 8px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--hot); }
.btn-go { background: linear-gradient(135deg, var(--go), #63e0b0); }
.btn-danger { background: transparent; border: 1px solid rgba(255, 93, 93, .5); color: var(--danger); }
.btn-any { background: transparent; border: 1px dashed var(--line); color: var(--ink-dim); }
.linkish { background: none; border: 0; color: var(--hot); cursor: pointer; padding: 0 .2rem; font-size: .85rem; }

.code-form { display: flex; flex-direction: column; gap: .7rem; max-width: 380px; margin: 0 auto; }
.code-input {
  text-align: center; letter-spacing: .35em; font-size: 1.6rem; font-weight: 800;
  text-transform: uppercase; padding: .8rem !important;
}

/* ---------------------------------------------------------- bits */

.code-pill {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: .15rem .5rem; font-weight: 700;
}
.code-pill-big { font-size: 1.4rem; padding: .3rem .8rem; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: .18rem .5rem; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-dim);
}
.badge-now { background: var(--go); color: #10241b; border-color: transparent; }
.badge-open { background: rgba(47, 209, 138, .2); color: var(--go); }
.badge-closed { background: rgba(255, 93, 93, .18); color: var(--danger); }
.chip {
  display: inline-block; font-size: .72rem; padding: .1rem .45rem; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-dim); margin-left: .35rem;
}
.chip-warn { color: var(--warn); border-color: rgba(255, 190, 77, .4); }
.chip-any { border-style: dashed; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--ink-dim); padding: .4rem .5rem; }
.table td { padding: .55rem .5rem; border-top: 1px solid var(--line); vertical-align: top; }
.row-dim { opacity: .5; }

.night-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.night-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------- singer */

.night-head { padding: .5rem 0 1rem; }
.search-input { font-size: 1.1rem; }
.results { margin-top: .8rem; display: flex; flex-direction: column; gap: .6rem; }
.song { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; background: var(--panel-2); }
.song-head { margin-bottom: .5rem; }
.picks { display: flex; flex-direction: column; gap: .4rem; }
.pick {
  display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center;
  padding: .45rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
}
.pick-any { border-style: dashed; }
.pick-thumb { border-radius: 6px; object-fit: cover; display: block; }
.pick-main { min-width: 0; }
.pick-channel { font-weight: 600; font-size: .92rem; }
.pick-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.pick-actions { display: flex; gap: .3rem; align-items: center; }

@media (max-width: 520px) {
  .pick { grid-template-columns: auto 1fr; }
  .pick-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.practice-list, .hist-list { list-style: none; padding: 0; margin: 0; }
.practice, .hist {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.practice:last-child, .hist:last-child { border-bottom: 0; }
.practice-what, .hist-what, .fav-what { min-width: 0; flex: 1 1 14rem; }
.hist-rate { display: flex; gap: .3rem; flex-wrap: wrap; }
.hist-cancelled, .hist-skipped { opacity: .55; }
.night-list li { justify-content: space-between; }
.nav-here { color: var(--ink) !important; font-weight: 700; }

@media (max-width: 520px) {
  .stat { flex: 1 1 45%; }
  .stat-n { font-size: 1.4rem; }
  .practice, .hist { align-items: flex-start; }
  .hist-rate { width: 100%; }
}

.fav-list { list-style: none; padding: 0; margin: 0; }
.fav {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.fav:last-child { border-bottom: 0; }
.fav-out { opacity: .5; }
.fav-actions { display: flex; align-items: center; gap: .4rem; }
.star {
  background: none; border: 0; cursor: pointer; font-size: 1.3rem; line-height: 1;
  color: var(--ink-dim); padding: 0 .3rem 0 0;
}
.star-on { color: var(--warn); }
.star:hover { color: var(--warn); }

.mine-list { list-style: none; padding: 0; margin: 0; }
.mine {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.mine-status { display: flex; align-items: center; gap: .4rem; }
.mine-done, .mine-cancelled, .mine-skipped { opacity: .55; }

.queue { list-style: none; counter-reset: q; padding: 0; margin: 0; }
.q {
  counter-increment: q; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem;
  align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.q::before { content: counter(q); color: var(--ink-dim); font-variant-numeric: tabular-nums; font-size: .85rem; }
.q-name { font-weight: 700; }
.q-song { color: var(--ink-dim); }
.q-mine { background: rgba(255, 61, 129, .08); border-radius: 8px; }
.q-now { background: rgba(47, 209, 138, .1); border-radius: 8px; }

/* ---------------------------------------------------------- desk */

.desk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding: .5rem 0 1rem; }
.desk-head-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.desk-bar {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .8rem; margin-bottom: 1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel);
}
.desk-bar .btn-big { width: auto; }

.desk-rows { display: flex; flex-direction: column; gap: .5rem; }
.desk-row {
  display: grid; gap: .5rem 1rem; align-items: center;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 2fr) auto;
  padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.desk-row-live { border-color: var(--go); background: rgba(47, 209, 138, .09); }
.desk-who { display: flex; flex-direction: column; gap: .2rem; }
.desk-name { font-weight: 800; font-size: 1.15rem; }
.desk-note { color: var(--ink-dim); font-size: .82rem; }
.desk-song { font-weight: 600; }
.desk-version { font-size: .85rem; margin-top: .15rem; }
.version-link { text-decoration: none; border-bottom: 1px dotted currentColor; }
.desk-controls { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

.version-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .3rem; }
.version-line { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; flex-wrap: wrap; }
.version-chosen .version-label { color: var(--go); font-weight: 700; }
.version-add { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.version-url { flex: 3 1 260px; }
.version-label-in { flex: 1 1 140px; }

.block-list { list-style: none; padding: 0; margin: 0; }
.block-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------- admin */

.stat-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stat {
  flex: 1 1 120px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .9rem;
}
.stat-n { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat-l { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); }
.table-scroll { overflow-x: auto; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.warn-text { color: var(--warn); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .35rem;
}

/* ---------------------------------------------------------- catalog review */

.filter-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chip-link {
  display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
  font-size: .85rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-dim);
}
.chip-link:hover { border-color: var(--hot); color: var(--ink); }
.chip-on { background: var(--hot); border-color: transparent; color: #1a1024; font-weight: 700; }
.chip-n { font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------------------------------------------------------- catalog builder */

.lookup-card {
  display: flex; gap: .8rem; align-items: center; margin: .8rem 0;
  padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.lookup-card img { border-radius: 8px; object-fit: cover; }
.ai-modes { display: flex; gap: 1.2rem; margin-bottom: .8rem; }
.ai-modes .check { color: var(--ink); font-size: .95rem; }
.ai-msg { margin: .8rem 0 0; }
#ai-save-bar {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line);
}
#ai-save-bar .btn-big { width: auto; }

.cand-song { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.cand-head { margin-bottom: .4rem; font-size: 1.05rem; }
.cand-row {
  display: grid; grid-template-columns: auto 120px 1fr auto; gap: .7rem;
  align-items: center; padding: .45rem .5rem; border-radius: 8px; margin-bottom: .35rem;
  background: var(--panel-2); border: 1px solid var(--line);
}
.cand-checking { opacity: .6; }
.cand-live { border-color: rgba(47, 209, 138, .45); }
.cand-dead { border-color: rgba(255, 93, 93, .4); opacity: .55; }
.cand-doubt { border-color: rgba(255, 190, 77, .5); }
.cand-check { width: auto; }
.cand-thumb img { border-radius: 6px; display: block; object-fit: cover; }
.cand-main { min-width: 0; overflow-wrap: anywhere; }
.cand-label { font-size: .9rem; }

@media (max-width: 720px) {
  .cand-row { grid-template-columns: auto 1fr; }
  .cand-thumb { grid-column: 2; }
}

.badge-pending { background: rgba(255, 190, 77, .16); color: var(--warn); }
.badge-running { background: rgba(47, 209, 138, .2); color: var(--go); }
.badge-done    { color: var(--ink-dim); }
.badge-failed  { background: rgba(255, 93, 93, .2); color: var(--danger); }
.badge-skipped { color: var(--ink-dim); opacity: .7; }
.cron-line {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .8rem; overflow-x: auto; font-size: .8rem; white-space: pre;
}

.schema-warn { border-color: rgba(255, 190, 77, .5); background: rgba(255, 190, 77, .07); }
.schema-warn h3 { margin: .8rem 0 .3rem; color: var(--ink-dim); }

.coverage-bar {
  height: 14px; border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--line); overflow: hidden;
}
.coverage-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--go), #63e0b0);
}
.row-gap td { opacity: .75; }
.row-gap td:first-child { border-left: 2px solid rgba(255, 190, 77, .5); padding-left: .4rem; }

.task-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.task-head h2 { margin: 0; }

.setting { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting > label { display: flex; flex-direction: column; gap: .3rem; max-width: 420px; }
.setting > label.check { flex-direction: row; align-items: center; gap: .5rem; max-width: none; }
.setting strong { color: var(--ink); font-weight: 600; }
.setting-help { margin: .35rem 0 0; max-width: 60ch; }

.gap-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .8rem 0 .4rem; }

.prune-note {
  margin: .8rem 0 0; padding: .6rem .8rem; border-radius: 10px;
  background: rgba(255, 190, 77, .1); border: 1px solid rgba(255, 190, 77, .35);
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .9rem;
}
.review-list { display: flex; flex-direction: column; gap: .5rem; }
.review-row {
  display: grid; gap: .6rem 1rem; align-items: start;
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  padding: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.review-dead { border-color: rgba(255, 93, 93, .55); background: rgba(255, 93, 93, .07); }
.review-live { border-color: rgba(47, 209, 138, .35); }
.review-thumb img { display: block; border-radius: 8px; width: 160px; height: 90px; object-fit: cover; }
.thumb-none {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 160px; height: 90px; border-radius: 8px; border: 1px dashed var(--line);
  color: var(--ink-dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
}
.review-main { min-width: 0; overflow-wrap: anywhere; }
.review-label { font-size: .88rem; color: var(--ink); margin: .15rem 0; }
.review-status { display: flex; flex-direction: column; gap: .25rem; align-items: flex-end; text-align: right; }
.review-actions { grid-column: 1 / -1; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.review-actions .relabel { display: flex; gap: .3rem; flex: 1 1 260px; }
.review-actions .relabel input { flex: 1 1 auto; padding: .25rem .5rem; font-size: .8rem; }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: 0; }
.choice legend { font-size: .9rem; color: var(--ink-dim); padding: 0 .3rem; }
.choice .check { margin: .2rem 0; color: var(--ink); }
.choice p { margin: .5rem 0 0; }

.rating-select { width: auto !important; padding: .25rem .4rem !important; font-size: .8rem; }
.badge-live { background: rgba(47, 209, 138, .2); color: var(--go); }
.badge-dead { background: rgba(255, 93, 93, .2); color: var(--danger); }
.badge-unknown { color: var(--ink-dim); }
.badge-unreachable { background: rgba(255, 190, 77, .18); color: var(--warn); }
.pager { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }

@media (max-width: 720px) {
  .review-row { grid-template-columns: 1fr; }
  .review-status { align-items: flex-start; text-align: left; flex-direction: row; }
}

/* ---------------------------------------------------------- join card */

.join-card { text-align: center; padding: 1rem; }
.join-venue { color: var(--ink-dim); margin-top: -.4rem; }
.qr { display: flex; justify-content: center; padding: 1.2rem 0; }
.qr img, .qr canvas { background: #fff; padding: 10px; border-radius: 10px; }
.join-url { font-size: 1.05rem; color: var(--ink-dim); margin: .2rem 0; }
.join-code-big {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 3rem; font-weight: 800; letter-spacing: .3em; margin: .2rem 0 .4rem; color: var(--hot);
}
.join-how { max-width: 380px; margin: 0 auto; color: var(--ink-dim); font-size: .9rem; }

@media print {
  body { background: #fff; color: #000; }
  .topbar, .foot, .no-print, .flashes { display: none; }
  .panel { border: 0; background: #fff; }
  .join-code-big { color: #000; }
  .join-venue, .join-url, .join-how { color: #333; }
}

@media (max-width: 640px) {
  .desk-row { grid-template-columns: 1fr; }
  .desk-controls { justify-content: flex-start; }
}


/* ---------------------------------------------------------- player screen */

body.bare { background: #05040a; }
.bare-wrap { max-width: none; margin: 0; padding: 0; height: 100vh; }
#player-root { height: 100vh; position: relative; }

.stage {
  height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3vh 4vw; gap: .6rem;
}
.chip-key { color: var(--go); border-color: rgba(47, 209, 138, .45); }
.idle-clock-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 2vh; }
.idle-clock { font-size: clamp(2rem, 7vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.idle-date { color: var(--ink-dim); font-size: clamp(.9rem, 1.6vw, 1.4rem); }

.stage-kicker {
  margin: 0; text-transform: uppercase; letter-spacing: .3em; font-size: 1.1vw;
  color: var(--ink-dim); min-font-size: 12px;
}
.stage-title { margin: 0; font-size: clamp(1.8rem, 5vw, 4.5rem); line-height: 1.05; }
.stage-singer {
  margin: 0; font-size: clamp(2.5rem, 11vw, 11rem); line-height: 1; font-weight: 800;
  background: linear-gradient(135deg, var(--hot), var(--hot-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage-song { margin: .4rem 0 0; font-size: clamp(1.1rem, 3vw, 2.6rem); color: var(--ink-dim); }
.stage-sub { margin: 0; font-size: clamp(1rem, 1.8vw, 1.6rem); color: var(--ink-dim); }
.stage-start { width: auto; font-size: clamp(1rem, 2vw, 1.6rem); padding: 1rem 2.4rem; margin-top: 1rem; }
.stage-note { max-width: 46ch; color: var(--ink-dim); font-size: .95rem; margin-top: 1rem; }

.stage-join {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: center;
  margin-top: 2rem; padding: .8rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.stage-join-label { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--ink-dim); }
.stage-join-url { color: var(--ink-dim); }
.stage-list { list-style: decimal; margin: 1.4rem 0 0; padding-left: 1.4rem; text-align: left;
  color: var(--ink-dim); font-size: clamp(.95rem, 1.5vw, 1.3rem); }
.stage-list li { padding: .15rem 0; }

#player-stage { position: absolute; inset: 0; background: #000; }
#player-stage iframe, #yt { width: 100%; height: 100%; border: 0; display: block; }
#player-nowbar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  font-size: clamp(1rem, 2vw, 1.8rem); font-weight: 700; pointer-events: none;
}

.player-status {
  position: absolute; top: .6rem; right: 1rem; font-size: .8rem; color: var(--ink-dim);
  pointer-events: none;
}
