:root {
  --bg: #0e0d12;
  --panel: #1a1820;
  --panel-2: #242130;
  --line: #2f2b3b;
  --text: #f4f1f8;
  --muted: #9b95a8;
  --accent: #ff4f8b;
  --accent-2: #ffb347;
  --ok: #1ed760;
  --warn: #ffb347;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 96px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 16px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 22px 0 10px; }
input[type=text], input[type=password], input[type=search] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); outline: none; font-size: 1rem; }
input:focus { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 12px; padding: 13px 18px; font-weight: 700; background: var(--panel-2); transition: transform .08s, opacity .15s; }
a.btn { color: inherit; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); color: #fff; }
.btn.ok { background: var(--ok); color: #06210f; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: .9rem; border-radius: 10px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.err { color: #ff8080; min-height: 1.2em; font-size: .9rem; }

/* Song-Zeilen */
.song { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.song + .song { margin-top: 8px; }
.song.hot { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.cover { width: 48px; height: 48px; border-radius: 8px; background: var(--panel-2); flex: none; object-fit: cover;
  display: grid; place-items: center; font-size: 1.3rem; }
.song .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .meta { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px;
  padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.vote .n { font-weight: 800; font-size: 1.1rem; line-height: 1; }
.vote .l { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.vote.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.vote.on .l { color: #fff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--panel-2); color: var(--muted); }
.badge.hot { background: var(--accent-2); color: #2a1700; }
.badge.ok { background: var(--ok); color: #06210f; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* Tabs unten (Besucher) */
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); }
nav.tabs button { flex: 1; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--muted); font-weight: 700; cursor: pointer; }
nav.tabs button.active { color: var(--text); background: var(--panel-2); }

/* Suchergebnisse */
.result { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.result:hover, .result:focus { background: var(--panel-2); outline: none; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700;
  transition: all .25s; pointer-events: none; max-width: 90vw; text-align: center; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }
