/* Dark, low-glare palette shared by the screen and the phone remote. */
:root {
  --bg: #0f1816;
  --stage: #13201c;
  --card: #1c2a26;
  --card-hi: #26372f;
  --line: #2f433b;
  --text: #eef2ef;
  --muted: #9fb2aa;
  --gold: #d9b26f;
  --gold-ink: #1b1406;
  --good: #5fbf8a;
  --bad: #d9715f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Cambria, "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; }

.song { margin: 0 0 28px; scroll-margin-top: 120px; }
.song-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  min-height: 92px; padding: 10px 12px 12px; border-radius: 12px; background: var(--card);
  border: 2px solid transparent; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s;
}
.card:active { background: var(--card-hi); }
.card:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
.card-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-text { font-size: 13.5px; line-height: 1.35; white-space: pre-line; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title .card-text { font-family: var(--serif); color: var(--gold); font-size: 15px; font-weight: 700; }
.card.live { border-color: var(--gold); background: var(--card-hi); }
.card.live .card-label { color: var(--gold); }
.card.live .card-label::after { content: " · Live"; }

/* Buttons, lists and editing sheets used by the remote and the home page. */
.icon-btn { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--card-hi); color: var(--text); white-space: nowrap; }
.primary { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: block; text-align: center; font-weight: 700; padding: 13px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); margin: 14px 0; }
.secondary { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: block; text-align: center; font-weight: 600; padding: 12px; border-radius: 12px; background: var(--card-hi); color: var(--text); margin: 10px 0; }
.danger { color: var(--bad); }
.row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card); border-radius: 12px; margin-bottom: 8px; }
.row .name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row button { all: unset; cursor: pointer; min-width: 34px; height: 34px; text-align: center; line-height: 34px; border-radius: 9px; background: var(--card-hi); font-size: 15px; }
.row button:disabled { opacity: .3; cursor: default; }
.sheet { position: fixed; inset: 0; z-index: 10; background: var(--bg); overflow: auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); display: none; }
.sheet.open { display: block; }
.sheet-inner { max-width: 640px; margin: 0 auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sheet-head h2 { margin: 0; font-size: 20px; }
label.field { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
input[type=text], textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { min-height: 46vh; line-height: 1.45; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 8px 0 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 12px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; background: var(--card); border-radius: 12px; padding: 12px; margin-top: 18px; }
