/* Yearworm: a late-night listening party. Deep indigo, neon accents, a
   vinyl record in the middle of everything. Shared by splash, TV and phones. */
:root {
  --bg: #0d0b1f; --bg2: #171334; --bg3: #221c4a; --line: #3a3170;
  --ink: #f4f0ff; --dim: #a59fc9; --acc: #a78bfa; --acc2: #22d3ee; --hot: #ff5dbb;
  --ok: #4fd18b; --close: #ffc94d; --no: #ff6b7a;
  --display: "Righteous", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  color: var(--ink); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg) radial-gradient(ellipse at 50% -10%, #2b2160, var(--bg) 65%) fixed;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
h1 { color: var(--acc); font-size: 48px; line-height: 1; }
h2 { color: var(--acc); font-size: 24px; }
button { background: var(--bg3); border: 1px solid var(--line); color: var(--ink); padding: 10px 14px;
  border-radius: 10px; font: inherit; font-size: 15px; cursor: pointer; }
button.primary { background: linear-gradient(135deg, var(--acc), #7c5cff); border-color: transparent; color: #fff; font-weight: 700; }
button.ghost { background: transparent; }
button:disabled { opacity: .35; cursor: default; }
button.sel { outline: 2px solid var(--acc2); outline-offset: 1px; }
button[hidden] { display: none; }
select, input { font: inherit; padding: 8px; border-radius: 8px; background: var(--bg2); color: var(--ink); border: 1px solid var(--line); }
.muted { color: var(--dim); } .small { font-size: 13px; }
.tagg { color: var(--dim); font-size: 13px; margin-left: 6px; }
.lab { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .15em; }
.sw { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .35em; vertical-align: middle; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140px); background: var(--acc);
  color: #170f33; padding: 10px 18px; border-radius: 10px; transition: transform .25s; z-index: 50; max-width: 92vw; font-weight: 600; }
#toast.show { transform: translateX(-50%) translateY(0); }
#conn { position: fixed; top: 8px; right: 8px; background: var(--no); color: #fff; padding: 4px 10px; border-radius: 8px;
  font-size: 13px; display: none; z-index: 60; }
#conn.show { display: block; }
.av { border-radius: 50%; vertical-align: middle; margin-right: 4px; }

.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; margin: 2px 3px 0 0;
  background: #ffffff14; color: var(--dim); }
.chip.ok { background: #4fd18b26; color: var(--ok); } .chip.no { background: #ff6b7a1f; color: var(--no); }
.chip.close { background: #ffc94d26; color: var(--close); } .chip.na { opacity: .55; }
b.ok { color: var(--ok); } b.no { color: var(--no); } b.close { color: var(--close); } b.na { color: var(--dim); }
.cov { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; background: #0006; }
.nocov { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 2em; }
.timer { height: 6px; background: #ffffff14; border-radius: 4px; overflow: hidden; }
.timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc2), var(--acc)); transition: width .25s linear; }
.timer i.late { background: var(--no); }
.dots { display: inline-flex; gap: 2px; margin-left: 4px; font-style: normal; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }
.armbtn.on { border-color: var(--ok); color: var(--ok); }
