:root {
  --bg: #0b0b10;
  --card: #15151d;
  --card2: #1d1d28;
  --line: #2a2a38;
  --text: #f2f2f7;
  --muted: #8e8ea0;
  --accent: #ff3d7f;
  --accent2: #7c5cff;
  --ok: #2fd27a;
  --warn: #ffb02e;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100dvh; }
a { color: inherit; }
.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 56px; }
.wrap.wide { max-width: 760px; }

header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.brand {
  font-weight: 800; font-size: 24px; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: 13px; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }

/* now playing */
.np { display: flex; gap: 14px; align-items: center; }
.art { width: 88px; height: 88px; border-radius: 12px; background: var(--card2); object-fit: cover; flex: none; display: grid; place-items: center; font-size: 32px; }
.np .info { min-width: 0; flex: 1; }
.np-title { font-weight: 700; font-size: 17px; line-height: 1.25; }
.np-artist { color: var(--muted); font-size: 14px; margin-top: 2px; }
.bpm { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bpm b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1; }
.bpm span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse .5s infinite; }
.dot.off { background: var(--muted); animation: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1 } 50% { transform: scale(.5); opacity: .45 } 100% { transform: scale(1); opacity: 1 } }
.note { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* forms */
form { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none;
}
input:focus { border-color: var(--accent2); }
button {
  font: inherit; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: 0; border-radius: 12px; padding: 13px 16px; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
button.ghost { background: var(--card2); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
button.sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
button.danger { background: #3a1a22; border: 1px solid #6b2436; color: #ff8aa8; }
.msg { font-size: 14px; min-height: 18px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--accent); }
.hint { color: var(--muted); font-size: 12.5px; }

/* request list */
.list { display: flex; flex-direction: column; gap: 8px; }
.req { display: flex; gap: 12px; align-items: center; background: var(--card2); border-radius: 12px; padding: 10px 12px; }
.req.done { opacity: .55; }
.thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #2a2a38; flex: none; display: grid; place-items: center; font-size: 20px; }
.req .main { flex: 1; min-width: 0; }
.req .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req .s { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req .actions { display: flex; gap: 6px; flex: none; }
.vote {
  flex: none; background: #262636; border: 0; border-radius: 10px; padding: 8px 10px;
  font-size: 14px; font-weight: 700; min-width: 58px; text-align: center; color: var(--text);
}
.vote.on { background: var(--accent2); }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 14px; }
.pill { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.live { color: var(--ok); }
.pill.warn { color: var(--warn); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { flex: 1; }
.tabs button.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); border: 0; color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #262636; color: var(--text); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }
