/* Pagina di voto pubblica: stesso aspetto dell'estensione Twitch (bordeaux, non il viola di Twitch) */
:root {
  --bg: #0e0e10; --panel: #1f1f23; --border: #2c2c32; --text: #efeff1; --muted: #a1a1aa;
  --accent: #9b2242; --accent-line: #c4446a; --accent-text: #f2a7bd; --green: #22c55e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--accent-text); }

.head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 18px; font-weight: 800; }
.dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.timer { padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.who { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; color: #d4d4d8; font-weight: 600; font-size: 14px; }
.link-btn { font: inherit; color: var(--accent-text); background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; min-height: 44px; }

.main { max-width: 1000px; margin: 0 auto; padding: 16px; }
.intro { color: #d4d4d8; margin: 4px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.song {
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; cursor: pointer;
  border-radius: 10px; overflow: hidden; font: inherit; color: inherit; background: var(--panel); border: 2px solid transparent;
}
.song:hover { border-color: #52525b; }
.song:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.song[aria-pressed="true"] { border-color: var(--accent-line); background: rgba(196,68,106,.18); }
.song[disabled] { cursor: default; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.num { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.check { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.text { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
.user { font-weight: 700; color: var(--accent-text); overflow-wrap: anywhere; }
.title { font-size: 13px; color: #d4d4d8; line-height: 1.3; overflow-wrap: anywhere; }
.song.winner { border-color: #f5b301; }
.mine { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); }
.mine strong { color: var(--text); }

.message { max-width: 460px; margin: 48px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.message h2 { margin: 0; font-size: 20px; }
.message p { margin: 0; color: #d4d4d8; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; margin-top: 8px; }
.btn:hover { background: #7d1b35; }
.error { padding: 10px 12px; border-radius: 8px; background: rgba(239,68,68,.14); color: #fca5a5; }
