:root {
  color-scheme: dark;
  --bg: #0f0f12; --card: #1a1a20; --fg: #f2f2f5; --muted: #9a9aa5; --accent: #ff5c3a; --line: #2a2a33;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); min-height: 100%; }
#app { max-width: 520px; margin: 0 auto; padding: max(1rem, env(safe-area-inset-top)) 1rem 3rem; }
h1, h2 { font-weight: 700; letter-spacing: -0.01em; }
.logo { font-size: 2rem; margin: 2.5rem 0 0.5rem; }
.logo.small { font-size: 1.2rem; margin: 0; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }
.hint { color: var(--muted); font-size: 0.85rem; }
.status { color: var(--muted); font-size: 0.9rem; min-height: 1.2em; margin: 0.5rem 0 0; }
.status.error { color: var(--accent); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0 1rem; }
form { display: flex; flex-direction: column; gap: 0.6rem; }
input, textarea { width: 100%; background: #111116; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem; font: inherit; }
textarea { resize: vertical; }
label { font-size: 0.9rem; color: var(--muted); }
button { font: inherit; border: 0; border-radius: 10px; padding: 0.8rem 1rem; cursor: pointer; background: var(--line); color: var(--fg); }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.ghost { background: transparent; color: var(--muted); padding: 0.4rem 0.6rem; }
button:disabled { opacity: 0.5; cursor: default; }
.card { background: var(--card); border-radius: 14px; padding: 1rem; margin-bottom: 1.5rem; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.list li { background: var(--card); border-radius: 12px; padding: 0.9rem 1rem; cursor: pointer; }
.list li .sub { font-weight: 600; }
.list li .pr { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.list .empty { color: var(--muted); cursor: default; background: transparent; padding: 0.5rem 0; }

.player { text-align: center; padding-top: 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--muted); margin: 0 0 0.3rem; }
.subtitulo { font-size: 1.4rem; margin: 0 0 0.3rem; }
.ampliacion { color: var(--muted); font-size: 0.85rem; margin: 0 0 2rem; min-height: 1.2em; }
.now { margin: 2rem 0 1rem; }
.titulo { font-size: 1.3rem; font-weight: 700; margin: 0; }
.artista { color: var(--muted); margin: 0.2rem 0 0; }
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 1.5rem 0; }
#p-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.5s linear; }
.controls { display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 1rem 0 0.5rem; }
.play { width: 72px; height: 72px; border-radius: 50%; font-size: 1.6rem; background: var(--fg); color: var(--bg); }
.vote { width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem; background: var(--card); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vote.active { outline: 2px solid var(--accent); }
#toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.9rem; max-width: 90vw; }
