/* =====================================================================
   Novelnia Karaoke Night – Styles
   Layout angelehnt an Spotify (Sidebar + Player-Leiste),
   Lyrics-Bühne angelehnt an Apple Music (große Zeilen, Verlauf, Blur)
   ===================================================================== */

:root {
  --accent: #ff2e88;
  --accent-2: #ffb347;
  --accent-ink: #fff;
  --bg: #07050b;
  --bg-2: #120c19;
  --panel: #120c19;
  --card: #1b1424;
  --card-hover: #261c33;
  --line: rgba(255, 255, 255, .08);
  --text: #fff;
  --muted: #b5a9c4;
  --muted-2: #7f7390;
  --danger: #ff4d5e;
  --ok: #1ed760;
  --warn: #ffb300;
  --radius: 10px;
  --radius-lg: 16px;
  --sidebar-w: 260px;
  --player-h: 84px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --glow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent);
  color-scheme: dark;
}

html[data-theme="dark"]     { --bg: #000; --bg-2: #121212; --panel: #121212; --card: #181818; --card-hover: #282828; --muted: #b3b3b3; --muted-2: #7a7a7a; --glow: none; }
html[data-theme="midnight"] { --bg: #05070f; --bg-2: #0c1222; --panel: #0c1222; --card: #141c31; --card-hover: #1d2844; --muted: #a8b3cf; --muted-2: #6c7896; }
html[data-theme="amoled"]   { --bg: #000; --bg-2: #000; --panel: #050505; --card: #0e0e0e; --card-hover: #1a1a1a; --muted: #a0a0a0; --muted-2: #666; --line: rgba(255,255,255,.1); }
html[data-theme="sunset"]   { --bg: #0e0605; --bg-2: #1a0c0a; --panel: #1a0c0a; --card: #26130f; --card-hover: #351c16; --muted: #d6b3a6; --muted-2: #8f6c60; }
html[data-theme="ocean"]    { --bg: #02090c; --bg-2: #071a20; --panel: #071a20; --card: #0d262e; --card-hover: #14353f; --muted: #9fc4cc; --muted-2: #5f8890; }
html[data-theme="light"] {
  --bg: #e9e9ee; --bg-2: #ffffff; --panel: #ffffff; --card: #f2f2f7; --card-hover: #e6e6ec;
  --line: rgba(0, 0, 0, .08); --text: #1d1d1f; --muted: #6e6e73; --muted-2: #9a9aa0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12); --glow: none; color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
code { background: var(--card); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
::selection { background: color-mix(in srgb, var(--accent) 60%, transparent); }
* { scrollbar-width: thin; scrollbar-color: rgba(128,128,128,.4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,.35); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 24px; }
.boot img { width: 160px; filter: drop-shadow(0 0 30px rgba(255,46,136,.4)); animation: pulse 2s ease-in-out infinite; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* ------------------------------------------------------------------ Layout */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr var(--player-h);
  gap: 8px;
  height: 100vh;
  height: 100dvh;
  padding: 8px;
}
.sidebar { grid-row: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side-box { background: var(--panel); border-radius: var(--radius); padding: 12px; }
.side-box.grow { flex: 1; overflow: auto; min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 50%, transparent)); }
.brand b { font-size: 15px; line-height: 1.1; display: block; }
.brand small { color: var(--muted); font-size: 11px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav button:hover { color: var(--text); }
.nav a.active { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav a.active svg { color: var(--accent); }
.nav svg { width: 22px; height: 22px; flex: none; }
.side-title { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-weight: 700; padding: 4px 8px 10px; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.side-cats a:hover, .side-cats a.active { background: var(--card); color: var(--text); }
.side-cats .dot { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 15px; flex: none; }
.side-cats small { margin-left: auto; color: var(--muted-2); }

.main {
  grid-row: 1; background: var(--panel); border-radius: var(--radius);
  overflow: auto; position: relative; min-height: 0;
}
.main-inner { padding: 0 28px 40px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: color-mix(in srgb, var(--panel) 75%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { padding-left: 40px; border-radius: 999px; background: var(--card); border-color: transparent; height: 42px; }
.topbar .search svg { position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card); cursor: pointer; border: 0; font-weight: 700; }
.user-chip:hover { background: var(--card-hover); }

.hero {
  margin: 0 -28px 24px; padding: 70px 28px 26px; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hero, var(--accent)) 55%, transparent), transparent);
}
.hero h1 { font-size: clamp(32px, 5vw, 64px); margin: 6px 0 10px; letter-spacing: -.03em; line-height: 1; }
.hero p { color: var(--muted); margin: 0; font-size: 15px; }
.hero .eyebrow { font-weight: 700; font-size: 13px; }
.hero-row { display: flex; gap: 24px; align-items: flex-end; }
.hero-row .hero-cover { width: 200px; height: 200px; border-radius: 8px; box-shadow: var(--shadow); flex: none; object-fit: cover; }

h2.sec { font-size: 22px; margin: 28px 0 14px; display: flex; align-items: center; justify-content: space-between; letter-spacing: -.01em; }
h2.sec a { font-size: 13px; color: var(--muted); font-weight: 700; }
h2.sec a:hover { color: var(--text); text-decoration: underline; }

/* ------------------------------------------------------------------ Elemente */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-weight: 700; cursor: pointer;
  transition: transform .1s, background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.soft { background: var(--card); border-color: transparent; }
.btn.soft:hover { background: var(--card-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 15%, transparent); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted);
  display: inline-grid; place-items: center; cursor: pointer; transition: color .15s, background .15s, transform .1s; flex: none;
}
.icon-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.lg { width: 48px; height: 48px; }
.icon-btn.lg svg { width: 26px; height: 26px; }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--text); color: var(--bg); transition: transform .1s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 20px; height: 20px; }
.play-btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.play-btn.xl { width: 58px; height: 58px; }
.play-btn.xl svg { width: 28px; height: 28px; }

input, select, textarea {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
select option { background: var(--bg-2); color: var(--text); }
input[type="color"] { padding: 4px; width: 56px; cursor: pointer; }
input[type="checkbox"] { width: auto; height: auto; accent-color: var(--accent); }
input[type="file"] { padding: 8px; height: auto; }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
label.field > span small { font-weight: 500; color: var(--muted-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* Range-Slider */
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 18px; padding: 0; border: 0; background: transparent; box-shadow: none !important;
  --v: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--fill, var(--text)) var(--v), color-mix(in srgb, var(--text) 22%, transparent) var(--v));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 22%, transparent); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--fill, var(--text)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-top: -4px; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus::-webkit-slider-thumb { opacity: 1; }
input[type="range"]:hover::-moz-range-thumb { opacity: 1; }
input[type="range"]:hover { --fill: var(--accent); }
input[type="range"].always::-webkit-slider-thumb { opacity: 1; }
input[type="range"].always::-moz-range-thumb { opacity: 1; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 40px; height: 22px; border-radius: 22px; background: color-mix(in srgb, var(--text) 22%, transparent); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 0; font-weight: 600; cursor: pointer; font-size: 13px; color: var(--text); }
.chip:hover { background: var(--card-hover); }
.chip.on { background: var(--text); color: var(--bg); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--card); color: var(--muted); white-space: nowrap; }
.badge.accent { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.danger { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; opacity: .5; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin: 0 0 6px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 13px; background: var(--accent); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 120px; height: 120px; font-size: 44px; box-shadow: var(--shadow); }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

/* Cover-Platzhalter */
.cover { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--card-hover); flex: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 2.2em; color: rgba(255,255,255,.9); letter-spacing: -.04em; text-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* ------------------------------------------------------------------ Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 190px); gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.card-row > * { scroll-snap-align: start; }
.song-card { padding: 12px; border-radius: 10px; background: transparent; cursor: pointer; transition: background .2s; position: relative; min-width: 0; }
.song-card:hover { background: var(--card); }
.song-card .cover { box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 22px; }
.song-card .float-play {
  position: absolute; right: 8px; bottom: 8px; opacity: 0; transform: translateY(8px); transition: all .25s; width: 48px; height: 48px;
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
}
.song-card:hover .float-play, .song-card.playing .float-play { opacity: 1; transform: none; }
.song-card h4 { margin: 12px 0 4px; font-size: 15px; }
.song-card p { margin: 0; color: var(--muted); font-size: 13px; }
.song-card .flags { position: absolute; left: 20px; top: 20px; display: flex; gap: 4px; }
.song-card .flags .badge { background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(6px); }

.cat-card {
  position: relative; border-radius: 10px; height: 110px; padding: 14px; overflow: hidden; cursor: pointer;
  font-weight: 800; font-size: 20px; color: #fff; transition: transform .15s; background: var(--c);
}
.cat-card:hover { transform: scale(1.02); }
.cat-card .ico { position: absolute; right: -6px; bottom: -14px; font-size: 64px; transform: rotate(22deg); filter: drop-shadow(0 6px 12px rgba(0,0,0,.3)); }
.cat-card img { position: absolute; right: -14px; bottom: -6px; width: 84px; height: 84px; transform: rotate(25deg); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.cat-card small { display: block; font-size: 12px; font-weight: 600; opacity: .85; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* Track-Liste */
.tracks { width: 100%; border-collapse: collapse; }
.track {
  display: grid; grid-template-columns: 36px minmax(0, 4fr) minmax(0, 2fr) 70px 110px; align-items: center; gap: 14px;
  padding: 6px 12px; border-radius: 6px; cursor: default; min-height: 56px;
}
.track:hover, .track.sel { background: color-mix(in srgb, var(--text) 7%, transparent); }
.track .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; position: relative; }
.track .num .icon-btn { display: none; width: 28px; height: 28px; margin-left: auto; color: var(--text); }
.track:hover .num span { display: none; }
.track:hover .num .icon-btn { display: grid; }
.track.playing .num span, .track.playing .t-title { color: var(--accent); }
.track .t-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track .t-main .cover { width: 42px; height: 42px; font-size: 13px; border-radius: 4px; }
.track .t-title { font-weight: 600; font-size: 15px; }
.track .t-sub { color: var(--muted); font-size: 13px; }
.track .t-cat { color: var(--muted); font-size: 13px; }
.track .t-dur { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.track .t-act { display: flex; justify-content: flex-end; gap: 2px; }
.track .t-act .icon-btn { opacity: 0; }
.track:hover .t-act .icon-btn, .track .t-act .icon-btn.on { opacity: 1; }
.track-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); min-height: 36px; margin-bottom: 8px; }
.track-head:hover { background: none; }
.eq-anim { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq-anim i { width: 3px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.eq-anim i:nth-child(2) { animation-delay: -.3s; } .eq-anim i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }

/* Panels / Stat-Kacheln */
.panel { background: var(--card); border-radius: var(--radius-lg); padding: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.panel + .panel { margin-top: 16px; }
.grid-2 > .panel + .panel, .grid-3 > .panel + .panel { margin-top: 0; }
.grid-2, .grid-3 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat svg { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; color: var(--accent); opacity: .8; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-2); padding: 3px 7px; border-radius: 5px; font-size: 11px; white-space: nowrap; margin-bottom: 4px; }
.bar-labels { display: flex; gap: 6px; color: var(--muted-2); font-size: 10px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px; }
.tabs a svg { width: 18px; height: 18px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: var(--accent); }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.tbl select { height: 34px; width: auto; }
.tbl-wrap { overflow-x: auto; }

.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.perm-grid label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--text) 4%, transparent); cursor: pointer; font-weight: 600; }
.perm-grid label small { display: block; color: var(--muted-2); font-weight: 500; font-family: ui-monospace, monospace; font-size: 11px; }

/* Theme-Auswahl */
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.theme-pick button { border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; background: none; text-align: left; }
.theme-pick button.on { border-color: var(--accent); }
.theme-pick .sw { height: 70px; display: grid; grid-template-columns: 30% 1fr; }
.theme-pick .sw i:first-child { background: var(--s1); } .theme-pick .sw i:last-child { background: var(--s2); position: relative; }
.theme-pick .sw i:last-child::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 40%; height: 8px; border-radius: 4px; background: var(--accent); }
.theme-pick span { display: block; padding: 8px 10px; font-weight: 700; background: var(--card); font-size: 13px; }
.accent-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.accent-pick button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; background: var(--c); }
.accent-pick button.on { border-color: var(--text); }

/* Profil-Banner */
.profile-head { position: relative; margin: 0 -28px 24px; padding: 90px 28px 26px; display: flex; gap: 24px; align-items: flex-end; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #000), var(--panel)); background-size: cover; background-position: center; }
.profile-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, color-mix(in srgb, var(--panel) 85%, transparent)); }
.profile-head > * { position: relative; }
.profile-head h1 { font-size: clamp(30px, 5vw, 58px); margin: 4px 0; letter-spacing: -.03em; }

/* ------------------------------------------------------------------ Player-Leiste */
.playerbar {
  grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(180px, 30%) 1fr minmax(180px, 30%);
  align-items: center; gap: 16px; padding: 0 12px; background: var(--bg);
}
.pb-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-now .cover { width: 56px; height: 56px; font-size: 16px; cursor: pointer; border-radius: 6px; }
.pb-now .meta { min-width: 0; }
.pb-now .meta b { display: block; font-size: 14px; }
.pb-now .meta span { color: var(--muted); font-size: 12px; }
.pb-center { display: grid; gap: 4px; justify-items: center; max-width: 720px; width: 100%; margin: 0 auto; }
.pb-controls { display: flex; align-items: center; gap: 14px; }
.pb-controls .play-btn { width: 34px; height: 34px; }
.pb-controls .play-btn svg { width: 16px; height: 16px; }
.pb-progress { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-progress input { flex: 1; }
.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pb-right .vol { width: 100px; }
.mic-meter { position: relative; }
.mic-meter::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; box-shadow: 0 0 0 calc(var(--lvl, 0) * 6px) color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; transition: box-shadow .05s; }

/* ------------------------------------------------------------------ Bühne / Lyrics (Apple-Music-Stil) */
.stage {
  position: fixed; inset: 0; z-index: 80; color: #fff; overflow: hidden;
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr); gap: 4vw;
  padding: 6vh 5vw 4vh; opacity: 0; pointer-events: none; transform: translateY(30px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  --c1: #5a1a6e; --c2: #b0185a; --c3: #2a0f4f; --c4: #f06292;
}
.stage.open { opacity: 1; pointer-events: auto; transform: none; }
.stage-bg { position: absolute; inset: -20%; z-index: -2; background: var(--c3); overflow: hidden; }
.stage-bg i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .85; mix-blend-mode: screen; animation: blob 24s ease-in-out infinite alternate; }
.stage-bg i:nth-child(1) { background: var(--c1); left: -10%; top: -10%; }
.stage-bg i:nth-child(2) { background: var(--c2); right: -15%; top: 10%; animation-duration: 30s; animation-delay: -8s; }
.stage-bg i:nth-child(3) { background: var(--c4); left: 20%; bottom: -30%; animation-duration: 36s; animation-delay: -16s; opacity: .55; }
.stage-bg i:nth-child(4) { background: var(--c1); right: 10%; bottom: -10%; animation-duration: 28s; animation-delay: -4s; opacity: .5; }
.stage-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.6); opacity: .55; transform: scale(1.2); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 50%, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
@keyframes blob { 0% { transform: translate(0,0) scale(1); } 33% { transform: translate(12vw, 8vh) scale(1.15); } 66% { transform: translate(-8vw, 14vh) scale(.9); } 100% { transform: translate(6vw, -10vh) scale(1.1); } }
.stage[data-bg="neon"] .stage-bg { background: #0a0410; }
.stage[data-bg="neon"] .stage-bg img { display: none; }
.stage[data-bg="neon"] .stage-bg i:nth-child(1) { background: var(--accent); opacity: .5; }
.stage[data-bg="neon"] .stage-bg i:nth-child(2) { background: #6a00ff; opacity: .45; }
.stage[data-bg="neon"] .stage-bg i:nth-child(3) { background: #00d4ff; opacity: .25; }
.stage[data-bg="solid"] .stage-bg i, .stage[data-bg="solid"] .stage-bg img { display: none; }
.stage[data-bg="solid"] .stage-bg { background: linear-gradient(160deg, var(--c1), var(--c3)); }
.stage[data-bg="aurora"] .stage-bg { background: #020b12; }
.stage[data-bg="aurora"] .stage-bg img { display: none; }
.stage[data-bg="aurora"] .stage-bg i:nth-child(1) { background: #00ffa3; opacity: .35; }
.stage[data-bg="aurora"] .stage-bg i:nth-child(2) { background: #7b2ff7; opacity: .45; }
.stage[data-bg="aurora"] .stage-bg i:nth-child(3) { background: #00b3ff; opacity: .35; }
.reduce-motion .stage-bg i { animation: none; }

.stage-top { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; z-index: 3; }
.stage-top .grab { width: 44px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.35); cursor: pointer; border: 0; }
.stage-close { position: absolute; top: 14px; left: 16px; z-index: 4; }
.stage .icon-btn { color: rgba(255,255,255,.75); }
.stage .icon-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.stage .icon-btn.on { color: #fff; background: rgba(255,255,255,.22); }

.stage-left { display: flex; flex-direction: column; justify-content: center; min-height: 0; max-width: 520px; width: 100%; justify-self: end; }
.stage-left .cover { width: 100%; max-width: 440px; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.45); font-size: 64px; transition: transform .5s cubic-bezier(.2,.8,.2,1); align-self: center; }
.stage.paused .stage-left .cover { transform: scale(.88); }
.stage-meta { display: flex; align-items: center; gap: 10px; margin-top: 26px; max-width: 440px; width: 100%; align-self: center; }
.stage-meta b { font-size: 20px; display: block; }
.stage-meta span { color: rgba(255,255,255,.65); font-size: 16px; }
.stage-ctrl { max-width: 440px; width: 100%; align-self: center; }
.stage-ctrl .pb-progress { color: rgba(255,255,255,.6); margin-top: 14px; font-size: 12px; }
.stage-ctrl input[type="range"] { --fill: #fff; }
.stage-ctrl .ctrl-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stage-ctrl .big { display: flex; align-items: center; gap: 22px; }
.stage-ctrl .big .icon-btn { color: #fff; }
.stage-ctrl .big .play-btn { width: 64px; height: 64px; background: rgba(255,255,255,.95); color: #111; }
.stage-ctrl .big .play-btn svg { width: 30px; height: 30px; }
.stage-ctrl .vol-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: rgba(255,255,255,.6); }
.stage-ctrl .vol-row svg { width: 16px; height: 16px; flex: none; }
.stage-singer { margin-top: 18px; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 700; backdrop-filter: blur(10px); }

.stage-right { position: relative; min-height: 0; display: flex; flex-direction: column; }
.stage-tools { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.stage-bottom { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; z-index: 5; align-items: center; }
.stage-hint { color: rgba(255,255,255,.6); font-size: 13px; margin-right: 8px; }

/* Lyrics */
.lyrics { position: relative; flex: 1; overflow: hidden; min-height: 0; --ly-size: 40px; --ly-on: #fff; --ly-off: rgba(255,255,255,.32);
  -webkit-mask-image: linear-gradient(transparent 0, #000 12%, #000 78%, transparent 100%);
          mask-image: linear-gradient(transparent 0, #000 12%, #000 78%, transparent 100%);
}
.lyrics.size-s { --ly-size: 26px; } .lyrics.size-m { --ly-size: 33px; } .lyrics.size-l { --ly-size: 40px; } .lyrics.size-xl { --ly-size: 52px; }
.lyrics-inner { position: absolute; left: 0; right: 56px; top: 0; transition: transform .7s cubic-bezier(.2, .75, .25, 1); will-change: transform; padding: 0 4px; }
.lyrics.free .lyrics-inner { position: relative; transition: none; }
.lyrics.free { overflow-y: auto; }
.ly-line {
  font-size: var(--ly-size); font-weight: 800; line-height: 1.18; letter-spacing: -.02em;
  margin: 0 0 calc(var(--ly-size) * .6); color: var(--ly-off); cursor: pointer;
  transition: color .4s, opacity .4s, filter .5s, transform .5s cubic-bezier(.2,.8,.2,1);
  transform-origin: left center; border-radius: 10px; padding: 4px 8px; margin-left: -8px;
}
.ly-line:hover { background: rgba(255,255,255,.08); }
.lyrics.center .ly-line { text-align: center; transform-origin: center; }
.ly-line.v2 { text-align: right; transform-origin: right center; }
.ly-line.bg { font-size: calc(var(--ly-size) * .62); opacity: .8; }
.ly-line.past { color: var(--ly-off); }
.ly-line.active { color: var(--ly-on); transform: scale(1.03); }
.ly-line .w { display: inline; transition: transform .3s; }
.ly-line.active .w, .ly-line.karaoke .w {
  color: transparent;
  background-image: linear-gradient(90deg, var(--ly-on) calc(var(--p, 0) * 1% - 6%), var(--ly-off) calc(var(--p, 0) * 1% + 6%));
  -webkit-background-clip: text; background-clip: text;
}
.lyrics.glow .ly-line.active { filter: drop-shadow(0 0 18px rgba(255,255,255,.35)); }
.ly-line.gap { display: flex; gap: 10px; padding: 14px 8px; }
.ly-line.gap i { width: calc(var(--ly-size) * .32); height: calc(var(--ly-size) * .32); border-radius: 50%; background: var(--ly-off); transition: background .3s, transform .3s; }
.ly-line.gap.active i { animation: dot 1.4s ease-in-out infinite; }
.ly-line.gap i.on { background: var(--ly-on); }
.ly-line.gap.active i:nth-child(2) { animation-delay: .2s; } .ly-line.gap.active i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 50% { transform: scale(1.3); } }
.lyrics.unsynced .ly-line { color: var(--ly-on); cursor: default; }
.lyrics.unsynced .ly-line:hover { background: none; }
.ly-note { color: rgba(255,255,255,.55); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.ly-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.6); font-size: 20px; font-weight: 700; }
.lyrics-countdown { position: absolute; left: 4px; top: 30%; font-size: 64px; font-weight: 900; color: rgba(255,255,255,.85); }

/* Light-Theme Lyrics (Seitenleiste wie Apple Music Desktop) */
.lyrics.on-light { --ly-on: #1d1d1f; --ly-off: rgba(0,0,0,.25); }

/* Vertikaler Regler (Gesang) */
.vpop { position: absolute; right: 52px; top: 0; width: 56px; height: 170px; border-radius: 18px; background: rgba(30,20,40,.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; cursor: ns-resize; touch-action: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.vpop .fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.95); }
.vpop .lbl { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 11px; font-weight: 800; color: #111; mix-blend-mode: difference; filter: invert(1); }

/* ------------------------------------------------------------------ FX-Panel */
.fx-panel {
  position: fixed; top: 8px; right: 8px; bottom: calc(var(--player-h) + 8px); width: 380px; z-index: 90;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transform: translateX(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; color: var(--text);
}
.fx-panel.open { transform: none; }
.stage-open .fx-panel { bottom: 8px; z-index: 95; }
.fx-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.fx-head h3 { margin: 0; font-size: 18px; }
.fx-body { overflow-y: auto; padding: 4px 18px 20px; flex: 1; }
.fx-sec { border-top: 1px solid var(--line); padding: 14px 0; }
.fx-sec:first-child { border-top: 0; }
.fx-sec h4 { margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fx-row { display: grid; grid-template-columns: 96px 1fr 46px; align-items: center; gap: 10px; margin: 8px 0; font-weight: 600; font-size: 13px; }
.fx-row output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.fx-row input[type="range"] { --fill: var(--accent); }
.fx-row input[type="range"]::-webkit-slider-thumb { opacity: 1; }
.fx-row input[type="range"]::-moz-range-thumb { opacity: 1; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .chip { font-size: 12px; padding: 6px 10px; }
.meter { height: 6px; border-radius: 6px; background: var(--card); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--warn) 75%, var(--danger)); transition: width .06s; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; display: inline-block; }

/* Queue-Panel */
.queue-panel { position: fixed; top: 8px; right: 8px; bottom: calc(var(--player-h) + 8px); width: 360px; z-index: 89; background: var(--bg-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: translateX(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; border: 1px solid var(--line); }
.queue-panel.open { transform: none; }
.stage-open .queue-panel { bottom: 8px; z-index: 95; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.q-item:hover { background: var(--card); }
.q-item .cover { width: 42px; height: 42px; font-size: 13px; border-radius: 4px; }
.q-item.now .q-title { color: var(--accent); }

/* ------------------------------------------------------------------ Modal & Toast */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; animation: fade .2s; backdrop-filter: blur(4px); }
.modal { background: var(--bg-2); border-radius: var(--radius-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow); border: 1px solid var(--line); animation: pop .25s cubic-bezier(.2,.8,.2,1); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-body { padding: 10px 20px 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(10px); } }
#toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 24px); transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); animation: pop .25s; max-width: 90vw; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #000; }

.menu { position: fixed; z-index: 250; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 5px; min-width: 220px; box-shadow: var(--shadow); animation: pop .15s; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-weight: 600; text-align: left; }
.menu button:hover { background: var(--card-hover); }
.menu button svg { width: 18px; height: 18px; color: var(--muted); }
.menu button.danger { color: var(--danger); }
.menu button.danger svg { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ------------------------------------------------------------------ Login */
.auth { position: fixed; inset: 0; display: grid; place-items: center; overflow: auto; padding: 24px; background: #07040b; color: #fff; }
.auth::before { content: ""; position: fixed; inset: 0; background:
  radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(120, 40, 255, .4), transparent 45%),
  radial-gradient(circle at 50% 110%, rgba(255, 180, 70, .25), transparent 40%); filter: blur(20px); }
.auth-card { position: relative; width: min(420px, 100%); background: rgba(20, 12, 28, .72); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-card .logo { width: 170px; margin: -100px auto 10px; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 50%, transparent)); }
.auth-card h1 { text-align: center; margin: 0 0 4px; font-size: 24px; }
.auth-card p.sub { text-align: center; color: rgba(255,255,255,.6); margin: 0 0 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.auth-card label.field { color: rgba(255,255,255,.7); }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.auth-switch button { border: 0; background: none; padding: 9px; border-radius: 999px; font-weight: 700; color: rgba(255,255,255,.65); cursor: pointer; }
.auth-switch button.on { background: #fff; color: #111; }
.auth-card .err { color: #ff8a95; font-weight: 600; min-height: 20px; text-align: center; font-size: 13px; }

/* ------------------------------------------------------------------ Upload / Editor */
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 30px; height: 30px; color: var(--accent); }
.drop b { display: block; margin-top: 6px; }
.drop small { color: var(--muted); }
.drop.has { border-style: solid; border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.cover-drop { width: 180px; height: 180px; padding: 0; overflow: hidden; display: grid; place-items: center; flex: none; }
.cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.progress { height: 8px; border-radius: 8px; background: var(--card); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.editor textarea { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; min-height: 480px; }
.sync-list { max-height: 520px; overflow: auto; border-radius: 10px; background: color-mix(in srgb, var(--text) 3%, transparent); padding: 6px; }
.sync-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.sync-line:hover { background: var(--card); }
.sync-line .ts { font-family: ui-monospace, monospace; color: var(--muted-2); font-size: 12px; }
.sync-line.stamped .ts { color: var(--ok); }
.sync-line.cur { background: color-mix(in srgb, var(--accent) 22%, transparent); outline: 1px solid var(--accent); }
.sync-line.playing .txt { color: var(--accent); }
.kbd { display: inline-block; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; font-size: 11px; font-weight: 700; font-family: ui-monospace, monospace; background: var(--card); }
.editor-preview { height: 260px; border-radius: 14px; padding: 20px; background: linear-gradient(135deg, #3a1250, #7a1747); margin-top: 14px; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ Räume */
.room-card { background: var(--card); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, background .15s; display: flex; flex-direction: column; }
.room-card:hover { transform: translateY(-2px); background: var(--card-hover); }
.room-card .rc-top { height: 110px; position: relative; background: linear-gradient(135deg, var(--rc, var(--accent)), #1a0a2a); padding: 14px; display: flex; align-items: flex-end; }
.room-card .rc-top .live { position: absolute; top: 12px; left: 12px; }
.room-card .rc-top h3 { margin: 0; font-size: 20px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.room-card .rc-body { padding: 14px; display: grid; gap: 8px; flex: 1; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 30%, transparent); display: inline-block; animation: pulse 1.6s infinite; }

.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.room-stage { border-radius: 18px; overflow: hidden; position: relative; min-height: 420px; display: flex; flex-direction: column; color: #fff; padding: 22px; background: #140a20; }
.room-stage .stage-bg { inset: 0; z-index: 0; }
.room-stage > *:not(.stage-bg) { position: relative; z-index: 1; }
.room-stage .lyrics { --ly-size: 30px; min-height: 260px; }
.room-now { display: flex; gap: 16px; align-items: center; }
.room-now .cover { width: 84px; height: 84px; border-radius: 8px; font-size: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.room-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.chat { display: flex; flex-direction: column; height: 420px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.chat-msg b { font-size: 12px; }
.chat-msg.system { color: var(--muted); font-style: italic; font-size: 12px; }
.chat-form { display: flex; gap: 6px; margin-top: 10px; }
.reactions { display: flex; gap: 4px; margin-top: 8px; }
.reactions button { flex: 1; border: 0; background: var(--card-hover); border-radius: 8px; font-size: 18px; padding: 6px; cursor: pointer; transition: transform .1s; }
.reactions button:hover { transform: scale(1.12); }
.float-emoji { position: absolute; bottom: 20px; font-size: 34px; animation: floatUp 2.6s ease-out forwards; pointer-events: none; z-index: 10; }
@keyframes floatUp { to { transform: translateY(-320px) scale(1.4); opacity: 0; } }
.room-queue .q-item { cursor: default; }

/* ------------------------------------------------------------------ Mobile */
.mobile-nav { display: none; }
@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
  .room { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --player-h: 64px; }
  .layout { grid-template-columns: 1fr; grid-template-rows: 1fr var(--player-h) 58px; padding: 0; gap: 0; }
  .sidebar { display: none; }
  .hide-m { display: none !important; }
  .main { border-radius: 0; }
  .main-inner { padding: 0 16px 30px; }
  .topbar { padding: 10px 16px; }
  .hero { margin: 0 -16px 18px; padding: 40px 16px 20px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-row .hero-cover { width: 150px; height: 150px; }
  .profile-head { margin: 0 -16px 18px; padding: 60px 16px 20px; flex-direction: column; align-items: flex-start; }
  .playerbar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; padding: 0 10px; margin: 0 6px; border-radius: 10px; background: var(--card); position: relative; }
  .pb-center .pb-progress, .pb-center .hide-m, .pb-right .hide-m { display: none; }
  .pb-center { position: static; }
  .pb-controls { gap: 2px; }
  .playerbar .mini-progress { position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
  .playerbar .mini-progress i { display: block; height: 100%; background: var(--text); }
  .pb-now .cover { width: 44px; height: 44px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); grid-row: 3; background: linear-gradient(transparent, var(--bg) 40%); align-items: center; }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; font-size: 10px; color: var(--muted); font-weight: 600; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.active { color: var(--text); }
  .track { grid-template-columns: minmax(0, 1fr) 80px; }
  .track .num, .track .t-cat, .track .t-dur { display: none; }
  .track .t-act .icon-btn { opacity: 1; }
  .track-head { display: none; }
  .form-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .song-card { padding: 6px; }
  .fx-panel, .queue-panel { left: 0; right: 0; top: auto; bottom: 0 !important; width: auto; max-height: 82vh; border-radius: 18px 18px 0 0; transform: translateY(105%); }
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 50px 20px 20px; gap: 14px; }
  .stage-left { display: contents; }
  .stage-left .cover { width: 64px; max-width: 64px; grid-row: 1; justify-self: start; border-radius: 6px; font-size: 18px; }
  .stage-meta { grid-row: 1; margin: 0 0 0 78px; position: absolute; top: 50px; left: 20px; right: 20px; width: auto; max-width: none; }
  .stage-meta b { font-size: 16px; } .stage-meta span { font-size: 14px; }
  .stage-meta { right: 150px; } .stage-meta .icon-btn { display: none; }
  .stage-right { grid-row: 2; }
  .stage-ctrl { grid-row: 3; max-width: none; }
  .stage-singer { display: none; }
  .lyrics { --ly-size: 28px !important; }
  .lyrics.size-xl { --ly-size: 34px !important; }
  .stage.paused .stage-left .cover { transform: none; }
  .lyrics-inner { right: 0; }
  .stage-tools { flex-direction: row; top: -58px; }
  .stage-bottom { display: none; }
  .vpop { right: 0; top: 46px; }
  .user-chip span { display: none; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { white-space: nowrap; }
  .cover-drop { width: 140px; height: 140px; }
  #toasts { bottom: 140px; }
}
