:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(18, 25, 48, 0.88);
  --panel-strong: #17213e;
  --text: #f7f8ff;
  --muted: #aab4d4;
  --primary: #8b5cf6;
  --primary-strong: #6d28d9;
  --accent: #22d3ee;
  --danger: #fb7185;
  --success: #34d399;
  --border: rgba(255, 255, 255, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #30235f, transparent 35%), var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hero { padding: 24px clamp(18px, 4vw, 64px) 64px; background: linear-gradient(135deg, rgba(139,92,246,.3), rgba(34,211,238,.12)); }
.topbar, .section-heading, .form-actions, .top-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; font-size: 1.25rem; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: rgba(255,255,255,.06); padding: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.instagram-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; color: white; background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); text-decoration: none; font-weight: 900; box-shadow: 0 10px 28px rgba(221,42,123,.28); }
.tabs { padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.06); }
.tab { border: 0; border-radius: 999px; padding: 10px 18px; color: var(--muted); background: transparent; }
.tab.is-active { color: white; background: var(--primary); }
.hero-content { max-width: 820px; margin-top: 70px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: .95; }
.hero p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; }
main { width: min(1180px, calc(100% - 32px)); margin: -38px auto 56px; }
.view { display: none; }
.view.is-visible { display: block; }
.layout { display: grid; gap: 22px; margin-bottom: 22px; }
.two-columns { grid-template-columns: minmax(260px, 360px) 1fr; align-items: start; }
.card { border: 1px solid var(--border); border-radius: 28px; padding: clamp(20px, 3vw, 32px); background: var(--panel); box-shadow: 0 24px 80px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.sticky-card { position: sticky; top: 18px; }
.card h2 { margin: 0 0 12px; }
.muted { color: var(--muted); }
.progress { height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .25s; }
.countdown-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.07); }
.countdown-card span { color: var(--muted); font-weight: 700; }
.countdown-card strong { color: var(--accent); font-size: 1.25rem; }
.song-form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 13px 15px; color: var(--text); background: rgba(255,255,255,.08); }
textarea { resize: vertical; }
.primary, .secondary, .vote-button, .small-button, .danger-button { border: 0; border-radius: 14px; padding: 12px 16px; color: white; font-weight: 800; }
.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.secondary { background: rgba(255,255,255,.1); border: 1px solid var(--border); }
.spotify-results { display: grid; gap: 10px; }
.spotify-message { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; color: var(--muted); background: rgba(255,255,255,.06); }
.spotify-message.error { color: var(--danger); }
.spotify-result { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.06); }
.spotify-result strong, .spotify-result span { display: block; }
.spotify-result span { color: var(--muted); margin-top: 4px; }
.spotify-result.is-duplicate { opacity: .58; }
.spotify-result button:disabled { cursor: not-allowed; opacity: .55; }
.feedback { min-height: 24px; color: var(--success); font-weight: 700; }
.feedback.error { color: var(--danger); }
.login-card { max-width: 560px; margin: 0 auto 22px; }
.admin-panel[hidden], .login-card[hidden] { display: none; }
.pill { border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; color: var(--muted); }
.song-list, .dj-list { display: grid; gap: 14px; margin-top: 22px; }
.song-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.055); }
.rank { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--panel-strong); color: var(--accent); font-weight: 900; }
.song-main h3 { margin: 0 0 6px; }
.meta, .note { margin: 0; color: var(--muted); }
.note { margin-top: 8px; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.links a { color: var(--accent); text-decoration: none; font-weight: 800; }
.vote-box { text-align: center; min-width: 98px; }
.vote-box strong { display: block; font-size: 1.8rem; }
.vote-box span { display: block; color: var(--muted); margin-bottom: 10px; }
.vote-button { background: var(--primary); width: 100%; }
.vote-button:disabled { cursor: not-allowed; opacity: .45; }
.dj-row { display: grid; grid-template-columns: 1.1fr .9fr 90px 130px minmax(180px, 1.1fr) 120px auto; gap: 12px; align-items: end; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid var(--border); }
.vote-adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-adjust button { min-height: 48px; font-size: 1.25rem; }
.dj-row label { font-size: .85rem; }
.dj-row input[readonly] { color: var(--muted); }
.dj-note-field textarea { min-height: 48px; }
.small-button, .danger-button { background: var(--danger); }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.status-played { opacity: .48; text-decoration: line-through; }
.empty { padding: 28px; border: 1px dashed var(--border); border-radius: 20px; color: var(--muted); text-align: center; }
.ad-banner { margin: 22px 0; }
.able-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(255,255,255,.22); border-radius: 28px; background: linear-gradient(135deg, #050505, #181818 58%, #2c2c2c); box-shadow: 0 24px 80px rgba(0,0,0,.35); overflow: hidden; position: relative; }
.able-banner::before { content: ""; position: absolute; inset: -45% auto auto -10%; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.able-copy { position: relative; max-width: 720px; }
.able-kicker { margin: 0 0 10px; color: #f5f5f5; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 900; }
.able-copy h2 { margin: 0 0 10px; color: white; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: .95; letter-spacing: -.04em; }
.able-copy h2 span { color: var(--accent); }
.able-copy p:last-child { margin: 0; color: #d6d6d6; font-size: 1.03rem; }
.able-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #090909; background: white; text-decoration: none; font-weight: 900; }
.site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 32px; padding: 18px; text-align: center; color: var(--muted); }
.site-footer p { margin: 0; font-weight: 800; letter-spacing: .04em; }
@media (max-width: 820px) { .two-columns, .song-item, .dj-row, .spotify-result { grid-template-columns: 1fr; } .able-banner { align-items: flex-start; flex-direction: column; } .sticky-card { position: static; } .vote-box { text-align: left; } }
