:root {
  --bg: #0d0d12;
  --card: #16161e;
  --line: #262635;
  --text: #f2f2f7;
  --muted: #8a8aa0;
  --accent: #ff4fa0;
  --accent2: #35d0ba;
  --up: #35d0ba;
  --down: #ff5c5c;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
.screen { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
h1 { font-size: 28px; margin: 0 0 4px; }
h2 { font-size: 22px; margin: 0; }
h3 { font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tagline { color: var(--muted); margin: 0 0 20px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d0d12;
  color: var(--text);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { cursor: pointer; border: none; font: inherit; }
.btn-primary {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #101014;
  background: linear-gradient(135deg, var(--accent), #b44bff);
  border-radius: 14px;
  min-height: 48px;
}
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 15px;
  color: var(--text);
  background: #10101a;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 48px;
}
.login-card { margin-top: 12vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; }
.station { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #555; display: inline-block; }
.dot.ok { background: var(--up); box-shadow: 0 0 8px var(--up); }
.dot.err { background: var(--down); }
.live-counts { color: var(--muted); font-size: 14px; }
.now-card { display: flex; gap: 16px; align-items: center; }
.art {
  width: 104px; height: 104px; flex: 0 0 auto;
  border-radius: 14px; background: #1c1c28;
  display: grid; place-items: center; font-size: 44px;
  overflow: hidden;
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.now-info { flex: 1; min-width: 0; }
.now-status { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); margin-bottom: 4px; }
.now-status.stale { color: var(--muted); }
.now-artist { color: var(--muted); margin-top: 2px; }
.votes { display: flex; gap: 12px; margin-top: 14px; }
.vote-btn {
  flex: 1;
  padding: 14px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10101a;
  color: var(--text);
  border: 1px solid var(--line);
}
.vote-btn.up.on { background: rgba(53, 208, 186, .18); border-color: var(--up); color: var(--up); }
.vote-btn.down.on { background: rgba(255, 92, 92, .18); border-color: var(--down); color: var(--down); }
.vote-btn:disabled { opacity: .5; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: none; }
.s-title { font-weight: 600; }
.s-meta { color: var(--muted); font-size: 13px; }
.s-status { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.s-actions { display: flex; gap: 6px; }
.s-actions button {
  padding: 8px 12px; border-radius: 10px; font-size: 13px; min-height: 36px;
  background: #10101a; color: var(--text); border: 1px solid var(--line);
}
.rank { color: var(--muted); font-weight: 700; width: 24px; flex: 0 0 auto; }
.lb-up { color: var(--up); font-weight: 700; margin-left: auto; }
.foot { text-align: center; color: #55556a; font-size: 12px; margin-top: 8px; }
.foot a { color: #77778c; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.hint.bad { color: var(--down); }
#host-result a { color: var(--accent2); }
@media (min-width: 700px) {
  .now-card { gap: 24px; }
  .art { width: 140px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:active { transform: none; }
}
