:root {
  --bg: #000000;
  --panel: #121212;
  --elev: #1a1a1a;
  --card: #181818;
  --card-hover: #282828;
  --row-hover: #2a2a2a;
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --text-dimmer: #6a6a6a;
  --accent: #1ed760;
  --accent-dim: #1db954;
  --border: #2a2a2a;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(0,0,0,.5);
  --player-h: 90px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow: hidden; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
a { cursor: pointer; text-decoration: none; color: inherit; }
img { -webkit-user-drag: none; user-select: none; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #4d4d4d; border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #777; background-clip: content-box; }
.logo-mark { color: var(--accent); }

/* ---------- Login ---------- */
.login-screen { height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 700px at 50% -20%, #1f3b2a 0%, #0a0a0a 55%); }
.login-box { width: 380px; max-width: 92vw; background: #121212; border: 1px solid var(--border); border-radius: 14px; padding: 40px 34px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.login-box .logo { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: -.03em; }
.login-sub { text-align: center; color: var(--text-dim); margin-bottom: 10px; font-size: 14px; }
.login-box input { background: #2a2a2a; border: 1px solid transparent; color: var(--text); padding: 14px 14px; border-radius: 6px; font-size: 15px; outline: none; transition: border-color .15s; }
.login-box input:focus { border-color: var(--text); }
.login-box button { background: var(--accent); color: #000; font-weight: 700; padding: 14px; border-radius: 999px; font-size: 15px; margin-top: 6px; transition: transform .1s, filter .15s; }
.login-box button:hover { filter: brightness(1.06); transform: scale(1.02); }
.login-error { color: #f15e6c; font-size: 13px; text-align: center; min-height: 16px; }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; gap: 8px; height: 100vh; padding: 8px 8px calc(var(--player-h) + 8px); background: var(--bg); }
.sidebar { background: var(--panel); border-radius: var(--radius); display: flex; flex-direction: column; padding: 12px 6px; gap: 8px; overflow: hidden; }
.brand { font-size: 22px; font-weight: 800; padding: 10px 16px 6px; letter-spacing: -.03em; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
.nav-item { display: flex; align-items: center; gap: 16px; padding: 11px 12px; border-radius: 6px; color: var(--text-dim); font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); background: #232323; }
.playlist-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; color: var(--text-dim); font-size: 13px; font-weight: 700; }
.playlist-head button { font-size: 20px; color: var(--text-dim); width: 28px; height: 28px; border-radius: 50%; transition: color .15s, background .15s; }
.playlist-head button:hover { color: var(--text); background: #232323; }
.playlist-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding: 0 6px; }
.playlist-list a { padding: 9px 12px; border-radius: 6px; color: var(--text-dim); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s, background .15s; }
.playlist-list a:hover { color: var(--text); background: #1c1c1c; }
.sidebar-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px 6px; margin: 0 6px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.sidebar-foot span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sidebar-foot a { font-size: 16px; transition: color .15s; }
.sidebar-foot a:hover { color: var(--text); }

/* ---------- Main ---------- */
.main { position: relative; overflow-y: auto; border-radius: var(--radius); background: linear-gradient(180deg, #2a2a2a 0, #1a1a1a 220px, var(--panel) 380px); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: rgba(18,18,18,0); transition: background .2s; }
.main.scrolled .topbar { background: rgba(12,12,12,.85); backdrop-filter: blur(14px); }
.topbar-nav { display: flex; gap: 8px; }
.topbar-nav button { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.55); color: var(--text); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: transform .1s; }
.topbar-nav button:hover { transform: scale(1.06); background: #000; }
.search-bar { flex: 1; max-width: 380px; }
.search-bar input { width: 100%; background: #242424; border: 1px solid transparent; color: var(--text); padding: 12px 18px; border-radius: 999px; font-size: 14px; outline: none; transition: border-color .15s; }
.search-bar input:focus { border-color: #777; background: #2a2a2a; }
.topbar-right { margin-left: auto; }
.content { padding: 4px 24px 48px; }
.page-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; margin: 10px 0 8px; padding-bottom: 2px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 26px 0 14px; }
.section-title:hover { text-decoration: none; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: background .25s; position: relative; }
.card:hover { background: var(--card-hover); }
.card-cover { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; background: #333 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="%23666"><path d="M9 3v10.55A4 4 0 1 0 11 17V7h6V3H9z"/></svg>') center/38% no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.5); margin-bottom: 14px; }
.card-cover.round { border-radius: 50%; }
.card-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--text-dim); font-size: 13px; margin-top: 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-play { position: absolute; right: 20px; bottom: 76px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #000; font-size: 18px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s, filter .15s; box-shadow: 0 8px 16px rgba(0,0,0,.5); }
.card:hover .card-play { opacity: 1; transform: translateY(0); }
.card-play:hover { transform: scale(1.06); filter: brightness(1.05); }

/* ---------- Track list ---------- */
.tracklist { margin-top: 10px; }
.track-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 4px; cursor: pointer; color: var(--text-dim); }
.track-row:hover { background: var(--row-hover); }
.track-row.playing .track-name { color: var(--accent); }
.track-num { text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.track-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-main img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: #333; }
.track-info { min-width: 0; }
.track-name { color: var(--text); font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-right { display: flex; align-items: center; gap: 16px; }
.track-fav { font-size: 16px; opacity: 0; transition: opacity .15s, transform .1s; }
.track-row:hover .track-fav { opacity: .85; }
.track-fav:hover { transform: scale(1.12); }
.track-fav.on { opacity: 1; color: var(--accent); }
.track-dur { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.track-menu { font-size: 20px; opacity: 0; padding: 0 2px; line-height: 1; }
.track-row:hover .track-menu { opacity: .8; }
.track-menu:hover { color: var(--text); }

/* ---------- Detail header ---------- */
.detail-head { display: flex; gap: 24px; align-items: flex-end; padding: 18px 0 24px; }
.detail-cover { width: 220px; height: 220px; border-radius: 6px; object-fit: cover; box-shadow: 0 16px 50px rgba(0,0,0,.6); flex-shrink: 0; }
.detail-cover.round { border-radius: 50%; }
.detail-meta { min-width: 0; }
.detail-meta .kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); font-weight: 700; }
.detail-meta h1 { font-size: clamp(32px, 6vw, 72px); font-weight: 800; letter-spacing: -.04em; margin: 10px 0 18px; line-height: 1.18; }
.detail-meta .sub { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.detail-meta .sub b { color: var(--text); }
.play-actions { display: flex; align-items: center; gap: 18px; margin: 8px 0 10px; }
.btn-play-big { background: var(--accent); color: #000; width: 56px; height: 56px; border-radius: 50%; font-size: 22px; display: flex; align-items: center; justify-content: center; transition: transform .12s, filter .15s; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.btn-play-big:hover { transform: scale(1.06); filter: brightness(1.06); }
.btn-ghost { border: 1px solid #727272; color: var(--text); padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: border-color .15s, transform .1s, color .15s; background: transparent; }
.btn-ghost:hover { border-color: var(--text); transform: scale(1.03); }
.follow-btn.on { border-color: var(--accent); color: var(--accent); }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 20px; }
.chip { background: #232323; border: none; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); transition: background .15s; }
.chip:hover { background: #2e2e2e; }
.chip.active { background: var(--accent); color: #000; }

/* ---------- Mixe ---------- */
.mix-card { position: relative; border-radius: var(--radius); padding: 18px; min-height: 170px; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .15s; box-shadow: var(--shadow); }
.mix-card:hover { transform: translateY(-4px); }
.mix-card .mix-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mix-card .mix-desc { font-size: 12px; opacity: .92; margin-top: 5px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mix-card .card-play { right: 18px; bottom: 18px; opacity: 0; }
.mix-card:hover .card-play { opacity: 1; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 16px 0 28px; }
.stat-box { background: var(--card); border-radius: var(--radius); padding: 20px; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.stat-label { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 26px 150px 1fr 50px; align-items: center; gap: 14px; padding: 7px 0; font-size: 14px; }
.bar-rank { color: var(--text-dimmer); text-align: right; font-weight: 700; }
.bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bar-track { background: #2a2a2a; border-radius: 6px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 6px; }
.bar-val { color: var(--text-dim); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.daychart { display: flex; align-items: flex-end; gap: 3px; height: 96px; margin: 12px 0 28px; }
.daybar { flex: 1; background: var(--accent-dim); border-radius: 3px 3px 0 0; min-height: 3px; opacity: .85; transition: opacity .15s; }
.daybar:hover { opacity: 1; }

/* ---------- Settings ---------- */
.tabs { display: flex; gap: 10px; margin: 10px 0 22px; }
.tab { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text); background: #232323; transition: background .15s; }
.tab.active { color: #000; background: var(--accent); }
.settings-section { background: var(--card); border-radius: var(--radius); padding: 6px 22px; margin-bottom: 22px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: none; }
.set-info .set-name { font-weight: 600; font-size: 15px; }
.set-info .set-desc { color: var(--text-dim); font-size: 13px; margin-top: 4px; max-width: 520px; line-height: 1.5; }
.set-control { flex-shrink: 0; display: flex; align-items: center; }
.set-control input[type=text], .set-control input[type=number], .set-control input[type=password], .set-control select { background: #2a2a2a; border: 1px solid transparent; color: var(--text); padding: 10px 12px; border-radius: 6px; font-size: 14px; min-width: 110px; outline: none; }
.set-control input:focus, .set-control select:focus { border-color: #777; }
.set-control input[type=range] { width: 170px; accent-color: var(--accent); }
.set-color { display: flex; gap: 10px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .1s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #fff; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #555; border-radius: 999px; transition: .2s; cursor: pointer; }
.slider:before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(20px); background: #000; }

/* ---------- Player ---------- */
.player { position: fixed; bottom: 0; left: 0; right: 0; height: var(--player-h); z-index: 50; background: var(--bg); display: grid; grid-template-columns: 30% 40% 30%; align-items: center; padding: 0 16px; }
.player-track { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-cover { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: #333; flex-shrink: 0; }
.p-meta { min-width: 0; }
.p-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-artist { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-fav { font-size: 18px; color: var(--text-dim); flex-shrink: 0; transition: transform .1s, color .15s; }
.p-fav:hover { transform: scale(1.12); color: var(--text); }
.p-fav.on { color: var(--accent); }
.player-center { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 722px; margin: 0 auto; }
.player-controls { display: flex; align-items: center; gap: 22px; }
.player-controls button { color: var(--text-dim); font-size: 16px; transition: color .15s, transform .1s; }
.player-controls button:hover { color: var(--text); transform: scale(1.08); }
.player-controls button.active { color: var(--accent); }
.p-play { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #000 !important; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.p-play:hover { transform: scale(1.07); }
.player-progress { display: flex; align-items: center; gap: 10px; width: 100%; }
.player-progress span { font-size: 11px; color: var(--text-dim); width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.player-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.player-right button { color: var(--text-dim); font-size: 15px; transition: color .15s; }
.player-right button:hover, .player-right button.active { color: var(--text); }
.player-right button.active { color: var(--accent); }
.player-right .vol-ico { color: var(--text-dim); font-size: 15px; }
input[type=range].seekbar, .player-progress input, .player-right input { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: #4d4d4d; outline: none; cursor: pointer; }
.player-progress input { flex: 1; }
.player-right input { width: 100px; }
.player-progress input::-webkit-slider-thumb, .player-right input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.player-progress:hover input::-webkit-slider-thumb, .player-right:hover input::-webkit-slider-thumb { opacity: 1; }
.player-progress input::-moz-range-thumb, .player-right input::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff; }

/* ---------- Drawers (Queue / Lyrics) ---------- */
.queue-panel, .lyrics-panel { position: fixed; top: 8px; right: 8px; bottom: calc(var(--player-h) + 8px); width: 360px; max-width: 92vw; background: var(--panel); border-radius: var(--radius); z-index: 40; padding: 18px; overflow-y: auto; box-shadow: var(--shadow); animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(16px); opacity: .3; } to { transform: none; opacity: 1; } }
.queue-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.queue-head button { font-size: 24px; color: var(--text-dim); line-height: 1; }
.queue-head button:hover { color: var(--text); }
.queue-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 18px 0 8px; display: flex; align-items: center; justify-content: space-between; }
.queue-clear { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.queue-clear:hover { color: var(--text); text-decoration: underline; }
.qrow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; cursor: pointer; }
.qrow:hover { background: var(--row-hover); }
.qrow.dragging { opacity: .4; }
.qrow img { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; background: #333; flex-shrink: 0; }
.qrow .qinfo { min-width: 0; flex: 1; }
.qrow .qn { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow.now .qn { color: var(--accent); }
.qrow .qa { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .qhandle { color: var(--text-dim); cursor: grab; opacity: 0; font-size: 14px; }
.qrow:hover .qhandle { opacity: .6; }

/* ---------- Lyrics ---------- */
.lyrics-body { font-size: 24px; font-weight: 700; line-height: 1.7; color: var(--text-dimmer); letter-spacing: -.02em; }
.lyrics-body .ll { transition: color .25s; padding: 2px 0; }
.lyrics-body .ll.active { color: var(--text); }
.lyrics-empty { color: var(--text-dim); font-weight: 400; font-size: 15px; line-height: 1.6; }

/* ---------- Context menu ---------- */
.ctx-menu { position: fixed; background: #282828; border-radius: 6px; padding: 4px; z-index: 300; box-shadow: 0 16px 40px rgba(0,0,0,.6); min-width: 200px; }
.ctx-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 4px; font-size: 14px; color: var(--text); white-space: nowrap; }
.ctx-menu button:hover { background: #3e3e3e; }
.ctx-sep { height: 1px; background: #3e3e3e; margin: 4px 8px; }
.ctx-menu .has-sub { position: relative; }
.ctx-sub { display: none; position: absolute; left: 100%; top: 0; margin-left: 3px; background: #282828; border-radius: 6px; padding: 4px; min-width: 200px; max-height: 320px; overflow-y: auto; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.ctx-menu .has-sub:hover .ctx-sub { display: block; }
.ctx-arrow { float: right; opacity: .6; }

/* ---------- Toast / modal ---------- */
.toast { position: fixed; bottom: calc(var(--player-h) + 18px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--accent); color: #000; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(2px); }
.modal { background: #282828; border-radius: 10px; padding: 28px; width: 400px; max-width: 92vw; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.modal h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.modal input[type=text], .modal input[type=password] { background: #3a3a3a; border: 1px solid transparent; color: var(--text); padding: 12px 14px; border-radius: 6px; outline: none; font-size: 14px; }
.modal input:focus { border-color: #888; }
.modal-row { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-dim); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.modal-actions .btn-primary { background: var(--accent); color: #000; font-weight: 700; padding: 10px 22px; border-radius: 999px; transition: transform .1s, filter .15s; }
.modal-actions .btn-primary:hover { transform: scale(1.03); filter: brightness(1.05); }
.empty { color: var(--text-dim); padding: 44px 0; text-align: center; font-size: 15px; }

/* ---------- Responsive ---------- */
/* Untere Tab-Leiste + Schubladen-Hintergrund: nur mobil sichtbar */
.mobile-tabbar { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 110; display: none; }



/* ===================== v2.2 ===================== */
/* SVG icon buttons */
.player-controls button, .player-right button, .p-fav { display: flex; align-items: center; justify-content: center; }
.player-controls button svg, .player-right button svg, .p-fav svg, .card-play svg, .btn-play-big svg, .quick-play svg { display: block; }
.btn-play-big svg { width: 22px; height: 22px; }
.btn-play-big svg path { fill: #000; }
.card-play svg path, .quick-play svg path { fill: #000; }
.p-play svg path { fill: #000; }
/* Active state with dot indicator */
.player-controls button.active, .player-right button.active { color: var(--accent); position: relative; }
.player-controls button.active::after, .player-right button.active::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.p-fav.on svg path { fill: var(--accent); stroke: var(--accent); }

/* Idle player */
.player.idle .player-center, .player.idle .p-fav, .player.idle .player-right > button { opacity: .45; pointer-events: none; }
.player.idle .p-cover { background: #2a2a2a; }
.player.idle .p-title { color: var(--text-dim); }

/* Clickable artist links */
.lnk-artist { cursor: pointer; }
.lnk-artist:hover { color: var(--text); text-decoration: underline; }
.p-artist { transition: color .15s; }
.p-artist:hover { color: var(--text); text-decoration: underline; }
#np-artist { cursor: pointer; }
#np-artist:hover { text-decoration: underline; color: var(--text); }
#np-title { cursor: pointer; }
#np-title:hover { text-decoration: underline; }

/* Now Playing panel */
.np-panel { position: fixed; top: 8px; right: 8px; bottom: calc(var(--player-h) + 8px); width: 360px; max-width: 92vw; background: var(--panel); border-radius: var(--radius); z-index: 40; padding: 18px; overflow-y: auto; box-shadow: var(--shadow); animation: slideIn .2s ease; }
.np-cover { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: #333; box-shadow: 0 12px 36px rgba(0,0,0,.5); margin-bottom: 16px; }
.np-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.np-artist { color: var(--text-dim); font-size: 14px; margin-top: 4px; font-weight: 600; }
.np-section { font-size: 13px; font-weight: 700; color: var(--text); margin: 22px 0 10px; }
.np-about { margin-top: 8px; }
.np-artist-img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.np-bio { color: var(--text-dim); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.np-link { display: inline-block; margin-top: 10px; color: var(--text); font-size: 13px; font-weight: 700; text-decoration: underline; }
.np-nextrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.np-nextrow img { width: 38px; height: 38px; border-radius: 4px; object-fit: cover; background: #333; }
.np-nextrow .qn { font-size: 13px; font-weight: 600; color: var(--text); }
.np-nextrow .qa { font-size: 12px; color: var(--text-dim); }

/* Quick-access tiles */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 18px 0 8px; }
@media (min-width: 1100px) { .quick-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1500px) { .quick-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.quick-tile { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; cursor: pointer; position: relative; transition: background .2s; height: 64px; }
.quick-tile:hover { background: rgba(255,255,255,.16); }
.quick-tile img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; background: #333; }
.quick-tile span { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 56px; }
.quick-play { position: absolute; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: .2s; box-shadow: var(--shadow); }
.quick-tile:hover .quick-play { opacity: 1; transform: none; }
.quick-play:hover { transform: scale(1.06); }

/* Horizontal carousels */
.shelf { margin-top: 22px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; }
.shelf-head .section-title { margin: 8px 0 12px; }
.hrow { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hrow::-webkit-scrollbar { height: 0; display: none; }
.hrow > .card { width: 175px; min-width: 175px; scroll-snap-align: start; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .35s ease both; }
.content { animation: fadeIn .25s ease both; }
.card, .quick-tile, .mix-card, .nav-item, .btn-ghost, .chip, .track-row { will-change: auto; }
.nav-item, .playlist-list a { transition: color .15s, background .15s, transform .1s; }
.card-cover { transition: box-shadow .25s; }
.card:hover .card-cover { box-shadow: 0 12px 32px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ===================== v2.4 ===================== */
.artist-hero { position: relative; margin: -4px -24px 0; padding: 0 24px; height: 320px; display: flex; align-items: flex-end; background-size: cover; background-position: center 30%; border-radius: 0; }
.artist-hero-inner { padding: 0 0 22px; }
.artist-hero .kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.artist-hero h1 { font-size: clamp(40px, 8vw, 88px); font-weight: 900; letter-spacing: -.04em; line-height: 1.12; margin: 10px 0 16px; padding-bottom: 2px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.artist-meta { font-size: 14px; color: var(--text); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.artist-about { max-width: 760px; }
.artist-about .about-img { width: 200px; max-width: 40%; float: right; border-radius: 10px; margin: 0 0 14px 18px; }

/* ===================== v2.5 ===================== */
/* Top search bar (persistent) */
.search-bar { position: relative; display: flex; align-items: center; }
.search-ico { position: absolute; left: 14px; display: flex; color: var(--text-dim); pointer-events: none; }
.search-bar input { padding-left: 42px; }

/* User menu top-right */
.topbar-right { display: flex; align-items: center; }
.user-menu { position: relative; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: transform .1s, filter .15s; }
.user-avatar:hover { transform: scale(1.06); filter: brightness(1.05); }
.user-dropdown { position: absolute; top: 44px; right: 0; background: #282828; border-radius: 8px; padding: 6px; min-width: 200px; box-shadow: 0 16px 40px rgba(0,0,0,.6); z-index: 120; animation: fadeIn .15s ease; }
.user-dd-head { padding: 8px 12px 10px; border-bottom: 1px solid #3e3e3e; margin-bottom: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--text); }
.user-dropdown button:hover { background: #3e3e3e; }

/* Context submenu flip near right edge */
.ctx-menu .has-sub.flip .ctx-sub { left: auto; right: 100%; margin-left: 0; margin-right: 3px; }

/* Drag & drop affordances */
.track-row[draggable=true], .card[draggable=true] { cursor: grab; }
.dragging-item { opacity: .5; }
.playlist-list a.drop-hover, .nav-item.drop-hover { background: var(--accent) !important; color: #000 !important; outline: 2px solid var(--accent); }
.player-track { cursor: default; }

/* ===================== v2.6 (Such-Dropdown) ===================== */
.search-dropdown { position: absolute; top: 46px; left: 0; right: 0; background: #282828; border-radius: 8px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.6); z-index: 130; max-height: 70vh; overflow-y: auto; animation: fadeIn .12s ease; }
.sd-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; cursor: pointer; }
.sd-row:hover { background: #3a3a3a; }
.sd-cover { width: 40px; height: 40px; border-radius: 4px; background: #444 center/cover no-repeat; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #aaa; }
.sd-cover.round { border-radius: 50%; }
.sd-meta { min-width: 0; }
.sd-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-all { padding: 10px 12px; margin-top: 4px; border-top: 1px solid #3e3e3e; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; border-radius: 6px; }
.sd-all:hover { background: #3a3a3a; }
.sd-empty { padding: 16px; color: var(--text-dim); font-size: 14px; text-align: center; }

/* ===================== v2.7 (Live-Aktivität) ===================== */
.live-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.live-row:last-child { border-bottom: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex-shrink: 0; }
.live-dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.live-name { font-weight: 700; min-width: 90px; }
.live-track { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.live-track img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; background: #333; }
.live-track b { color: var(--text); font-weight: 600; }
.live-client { color: var(--text-dimmer); font-size: 12px; }
.live-idle { color: var(--text-dim); }

/* ===================== v2.8 ===================== */
#lyrics-expand { font-size: 18px; color: var(--text-dim); }
#lyrics-expand:hover { color: var(--text); }
.lyrics-fs { position: fixed; inset: 0; z-index: 300; background: linear-gradient(160deg, #1a3a2a 0%, #0a0a0a 60%); display: flex; flex-direction: column; animation: fadeIn .2s ease; }
.lfs-bar { display: flex; align-items: center; gap: 16px; padding: 22px 28px; }
.lfs-cover { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #333; box-shadow: var(--shadow); }
.lfs-meta { flex: 1; min-width: 0; }
.lfs-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lfs-artist { color: var(--text-dim); font-size: 15px; }
.lfs-close { font-size: 34px; color: var(--text-dim); line-height: 1; }
.lfs-close:hover { color: var(--text); }
.lfs-body { flex: 1; overflow-y: auto; padding: 8vh 8vw; text-align: left; }
.lfs-line { font-size: clamp(26px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.4; color: rgba(255,255,255,.32); transition: color .3s; margin: 8px 0; }
.lfs-line.plain { color: rgba(255,255,255,.85); font-size: clamp(20px,3vw,34px); }
.lfs-line.past { color: rgba(255,255,255,.5); }
.lfs-line.active { color: #fff; }


.lfs-word { color: rgba(255,255,255,.28); transition: color .18s; }
.lfs-word.sung { color: #fff; }
.lfs-word.current { color: #fff; text-shadow: 0 0 16px rgba(255,255,255,.55); }
.lfs-empty { color: var(--text-dim); font-size: 18px; text-align: center; margin-top: 20vh; }
@media (max-width: 760px) { .lfs-body { padding: 4vh 6vw; } }

/* ===================== v2.9 (Playlist-Tabelle) ===================== */
.pl-cover-wrap { position: relative; }
.pl-cover-edit { position: absolute; inset: 0; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 30px; opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .15s; }
.pl-cover-wrap:hover .pl-cover-edit { opacity: 1; }
.pl-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; overflow: hidden; padding: 0; }
.pl-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pub-toggle { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.pl-table { margin-top: 18px; }
.pl-thead, .pl-row { display: grid; grid-template-columns: 36px 4fr 3fr 2fr 1.4fr 90px; align-items: center; gap: 14px; padding: 8px 12px; }
.pl-thead { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); position: sticky; top: 60px; background: var(--panel); z-index: 2; }
.pl-thead .pl-clock { display: flex; align-items: center; justify-content: flex-end; }
.pl-thead .pl-clock::after { content: ''; flex: 0 0 auto; width: 20px; margin-left: 8px; }
.pl-dur .track-menu { flex: 0 0 auto; width: 20px; text-align: center; }
.pl-row { border-radius: 4px; cursor: pointer; color: var(--text-dim); }
.pl-row:hover { background: var(--row-hover); }
.pl-row.dragging { opacity: .4; }
.pl-num { text-align: center; font-variant-numeric: tabular-nums; }
.pl-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-title img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #333; flex-shrink: 0; }
.pl-ti { min-width: 0; }
.pl-album, .pl-date, .pl-by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.pl-album:hover { color: var(--text); text-decoration: underline; }
.pl-by { display: flex; align-items: center; gap: 8px; }
.pl-ava { width: 24px; height: 24px; border-radius: 50%; background: #555; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pl-by:hover { color: var(--text); text-decoration: underline; }
.pl-dur { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-variant-numeric: tabular-nums; font-size: 13px; }
.pl-dur .track-menu { font-size: 20px; opacity: 0; }
.pl-row:hover .pl-dur .track-menu { opacity: .8; }
@media (max-width: 900px) { .pl-thead, .pl-row { grid-template-columns: 30px 1fr auto 80px; } .pl-album, .pl-by, .pl-date { display: none; } .pl-thead div:nth-child(3), .pl-thead div:nth-child(4), .pl-thead div:nth-child(5) { display: none; } }

/* ===================== v2.10 ===================== */
/* Generische Track-Tabelle (Album/Favoriten/Genre) */
.tt-table { margin-top: 12px; }
.tt-head { display: grid; align-items: center; gap: 14px; padding: 6px 12px; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.tt-head .tt-clock { display: flex; align-items: center; justify-content: flex-end; }
.tt-head .tt-clock::after { content: ''; flex: 0 0 auto; width: 20px; margin-left: 12px; }
.tt-dur .track-menu { flex: 0 0 auto; width: 20px; text-align: center; }
.tt-row { display: grid; align-items: center; gap: 14px; padding: 7px 12px; border-radius: 4px; cursor: pointer; color: var(--text-dim); }
.tt-row:hover { background: var(--row-hover); }
.tt-num { text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.tt-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tt-title img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #333; flex-shrink: 0; }
.tt-ti { min-width: 0; }
.tt-album { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.tt-album:hover { color: var(--text); text-decoration: underline; }
.tt-dur { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-variant-numeric: tabular-nums; font-size: 13px; }
.tt-dur .track-fav { font-size: 16px; opacity: 0; }
.tt-row:hover .tt-dur .track-fav { opacity: .85; }
.tt-dur .track-fav.on { opacity: 1; }
.tt-dur .track-menu { font-size: 20px; opacity: 0; }
.tt-row:hover .tt-dur .track-menu { opacity: .8; }

/* Inline-Umbenennen */
.detail-meta h1 { display: inline-block; outline: none; line-height: 1.18; margin: 10px 0 18px; padding-bottom: 2px; }
.detail-meta h1.editing { background: rgba(255,255,255,.1); border-radius: 6px; padding: 0 8px; box-shadow: 0 0 0 2px var(--accent); }
.pl-rename { display: inline-flex; margin-left: 14px; vertical-align: middle; font-size: 20px; color: var(--text-dim); width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; }
.pl-rename:hover { color: var(--text); background: #ffffff14; }

/* Drag-Einfügelinie */
.pl-row.dl-before { box-shadow: inset 0 2px 0 0 var(--accent); }
.pl-row.dl-after { box-shadow: inset 0 -2px 0 0 var(--accent); }

/* ===================== v2.11 ===================== */
.user-avatar.has-avatar { color: transparent; background-size: cover; background-position: center; }
.pl-ava.has-avatar { color: transparent; background-size: cover; background-position: center; }
.card-cover.round.has-avatar, .detail-cover.pf-ava.has-avatar { color: transparent; }
.tt-meta { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===================== v2.15 ===================== */
/* "Läuft gerade"-Markierung in allen Listen */
.tt-row.playing .track-name, .pl-row.playing .track-name, .qrow.playing .qn { color: var(--accent); }
.tt-row.playing .tt-num, .pl-row.playing .pl-num { color: var(--accent); }
.tt-row.playing .tt-num::before, .pl-row.playing .pl-num::before { content: '▶ '; font-size: 10px; }

/* Größeres Server-Icon oben links */
.brand-icon { width: 30px; height: 30px; display: inline-block; vertical-align: middle; border-radius: 6px; }
.brand { display: flex; align-items: center; gap: 8px; }

/* Vollbild-Liedtext wie Spotify: Seitenleiste, obere & Player-Leiste bleiben sichtbar */
.lyrics-fs { inset: auto; left: 264px; top: 8px; right: 8px; bottom: calc(var(--player-h, 90px) + 8px); border-radius: var(--radius); }
.main.lyrics-open { overflow: hidden; }
.lyrics-fs .lfs-bar { padding: 16px 22px; }
@media (max-width: 820px) { .lyrics-fs { left: 8px; top: 8px; right: 8px; } }

/* ===================== v2.16.1 (Konzerte) ===================== */
.concert-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.concert-row:last-child { border-bottom: none; }
.concert-date { min-width: 110px; font-weight: 700; font-size: 14px; }
.concert-info { flex: 1; min-width: 0; }
.concert-venue { font-weight: 600; font-size: 15px; }
.concert-city { color: var(--text-dim); font-size: 13px; }

/* Automatisches Playlist-Cover (Mosaik/Einzelcover mit Musiknote als Fallback) */
.pl-cc { position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #0a5); color: #fff; overflow: hidden; }
.pl-cc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Playlisten in der Seitenleiste: kleines Cover + Name, verschiebbar */
.playlist-list a.pl-nav { display: flex; align-items: center; gap: 9px; }
.pl-nav-cover { position: relative; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: linear-gradient(135deg, var(--accent), #0a5); color: #fff; overflow: hidden; }
.pl-nav-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-list a.pl-nav.dragging { opacity: .5; }

/* Musiknote nur zeigen, wenn kein Cover/Mosaik geladen werden konnte (kein Aufblitzen) */
.pl-cc { font-size: 46px; }
.pl-cc .pl-note, .pl-nav-cover .pl-note { display: none; }

/* Einfüge-Linie beim Umsortieren der Playlisten (wie in der Titelliste) */
.playlist-list a.pl-nav.dl-before { box-shadow: inset 0 2px 0 0 var(--accent); }
.playlist-list a.pl-nav.dl-after { box-shadow: inset 0 -2px 0 0 var(--accent); }

/* Position per Doppelklick auf die Nummer ändern */
.pl-num-edit { width: 36px; background: #333; border: 1px solid var(--accent); color: var(--text); border-radius: 4px; text-align: center; font-size: 13px; padding: 2px 0; -moz-appearance: textfield; }
.pl-num-edit::-webkit-outer-spin-button, .pl-num-edit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pl-row .pl-num { cursor: pointer; }

/* Pfeile zum horizontalen Scrollen der Karussells (wie Spotify) */
.shelf-head { align-items: center; }
.shelf-arrows { display: flex; gap: 8px; }
.shelf-arrow { width: 30px; height: 30px; border-radius: 50%; background: #2b2b2b; color: var(--text); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s, opacity .15s; }
.shelf-arrow:hover:not(:disabled) { background: #3d3d3d; transform: scale(1.08); }
.shelf-arrow:disabled { opacity: .3; cursor: default; }

/* Benachrichtigungs-Glocke */
.notif-wrap { position: relative; }
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #000; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
#notif-dropdown { width: 320px; max-height: 60vh; overflow-y: auto; right: 0; }
.notif-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.notif-row:hover { background: #3e3e3e; }
.notif-row img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; }
.notif-row .nr-t { font-size: 13px; font-weight: 600; }
.notif-row .nr-a { font-size: 12px; color: var(--text-dim); }

/* Rückblick (Wrapped) */
.wrapped-card { background: linear-gradient(135deg, #7b2ff7, #1ed760 130%); border-radius: 12px; padding: 18px 22px; margin: 10px 0 6px; box-shadow: var(--shadow); }
.wrapped-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.wrapped-stats { display: flex; flex-wrap: wrap; gap: 22px; }
.wrapped-stats > div { display: flex; flex-direction: column; }
.wrapped-stats b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.wrapped-stats span { font-size: 12px; opacity: .85; }

/* Glocke: mehr Abstand zum Account-Symbol */
.notif-wrap { margin-right: 14px; }
/* Genre aus Statistik entfernen */
.bar-x { background: none; border: none; color: var(--text-dim, #9aa); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px 0 8px; opacity: 0; transition: opacity .15s, color .15s; }
.bar-row:hover .bar-x { opacity: .7; }
.bar-x:hover { color: #e55; opacity: 1; }
.ignored-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
/* Benachrichtigungen leeren */
.notif-clear { float: right; background: none; border: 1px solid var(--border, #333); color: var(--text-dim, #9aa); font-size: 11px; border-radius: 10px; padding: 1px 8px; cursor: pointer; }
.notif-clear:hover { color: var(--text, #fff); border-color: var(--text-dim, #9aa); }

/* ---------- Mobile-Overrides (ganz am Ende, damit sie gewinnen) ---------- */
@media (max-width: 820px) {
  :root { --player-h: 62px; }
  .app { grid-template-columns: 1fr; gap: 0; padding: 0; }

  /* Sidebar wird zur Schublade (per Tab "Mehr") */
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 82vw; max-width: 320px; z-index: 120;
    border-radius: 0; padding-top: 16px; transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.6); display: flex; }
  .sidebar.open { transform: none; }
  .drawer-backdrop { display: block; }

  .main { border-radius: 0; background: linear-gradient(180deg, #2a2a2a 0, #1a1a1a 180px, var(--panel) 320px); }
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar-nav #fwd-btn { display: none; }
  .topbar-nav button { width: 30px; height: 30px; font-size: 18px; }
  .search-bar { max-width: none; }
  .search-bar input { padding: 10px 16px 10px 40px; }
  .content { padding: 4px 14px 128px; }
  .page-title { margin: 6px 0 8px; }
  .section-title { margin: 22px 0 12px; font-size: 20px; }

  /* Kompakter Player, ueber der Tab-Leiste */
  .player { height: 62px; display: flex; align-items: center; gap: 8px; padding: 0 10px; bottom: 56px; }
  .player-track { flex: 1; gap: 10px; min-width: 0; cursor: pointer; }
  .player-track .p-meta, .player-track .p-cover { pointer-events: none; }
  .p-cover { width: 46px; height: 46px; }
  .p-fav { display: none; }
  .player-center { display: flex; flex-direction: row; align-items: center; width: auto; max-width: none; margin: 0; gap: 2px; }
  .player-center .player-controls { gap: 6px; }
  .player-center #p-shuffle, .player-center #p-prev, .player-center #p-repeat { display: none; }
  .p-play { width: 42px; height: 42px; font-size: 16px; }
  .player-center .player-progress { position: absolute; left: 0; right: 0; top: 0; width: 100%; padding: 0; gap: 0; }
  .player-center .player-progress span { display: none; }
  .player-center .player-progress input { height: 3px; border-radius: 0; }
  .player-right { display: none; }

  /* Untere Tab-Leiste */
  .mobile-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px; z-index: 90;
    background: #0b0b0d; border-top: 1px solid var(--border); }
  .mobile-tabbar .mtab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--text-dim); font-size: 10px; font-weight: 600; padding: 6px 0; background: none; }
  .mobile-tabbar .mtab .mt-ico { font-size: 19px; line-height: 1; }
  .mobile-tabbar .nav-item { border-radius: 0; }
  .mobile-tabbar .nav-item.active { color: var(--text); background: none; }
  .mobile-tabbar .nav-item.active .mt-ico { filter: drop-shadow(0 0 7px var(--accent)); }

  /* Detail-Kopf gestapelt */
  .detail-head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 16px; }
  .detail-cover { width: 148px; height: 148px; }
  .detail-meta h1 { margin: 6px 0 10px; }
  .detail-meta { width: 100%; }
  .play-actions { flex-wrap: wrap; gap: 12px; }

  /* Rasterlisten & Statistik-Balken */
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bar-row { grid-template-columns: 20px 90px 1fr 38px; gap: 8px; }
  .wrapped-stats { gap: 16px; }

  /* Panels vollflaechig, ueber Player + Tab-Leiste */
  .queue-panel, .lyrics-panel, .np-panel { width: 100vw; max-width: 100vw; left: 0; right: 0; top: 0;
    bottom: calc(62px + 56px); border-radius: 0; }
}

/* ---------- Vollbild-Wiedergabe (mobil, Spotify-Stil) ---------- */
.np-full { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #4a4a4e 0%, #232326 46%, #050505 100%);
  animation: npfUp .28s cubic-bezier(.2,.7,.2,1); }
@keyframes npfUp { from { transform: translateY(100%); } to { transform: none; } }
.npf-top { display: flex; align-items: center; justify-content: space-between; height: 46px; flex-shrink: 0; }
.npf-icon { color: var(--text); font-size: 24px; line-height: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.npf-ctx { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text); }
.npf-art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0 22px; min-height: 0; }
.npf-art img { width: 100%; max-width: min(78vh, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55); background: #333; }
.npf-info { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.npf-meta { flex: 1; min-width: 0; }
.npf-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npf-artist { font-size: 15px; color: var(--text-dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npf-fav { flex-shrink: 0; color: var(--text-dim); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.npf-fav svg { width: 24px; height: 24px; }
.npf-fav.on { color: var(--accent); }
.npf-seek { margin: 20px 0 4px; flex-shrink: 0; }
.npf-seek input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: #5a5a5a; outline: none; cursor: pointer; }
.npf-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.npf-seek input::-moz-range-thumb { width: 13px; height: 13px; border: none; border-radius: 50%; background: #fff; }
.npf-times { display: flex; justify-content: space-between; margin-top: 7px; }
.npf-times span { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.npf-controls { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; flex-shrink: 0; }
.npf-controls button { color: var(--text); display: flex; align-items: center; justify-content: center; }
.npf-controls button svg { width: 30px; height: 30px; }
.npf-controls button.active { color: var(--accent); }
.npf-controls button.npf-play { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: #000; flex-shrink: 0; }
.npf-play svg { width: 30px; height: 30px; }
.npf-bottom { display: flex; align-items: center; justify-content: center; gap: 48px; padding-top: 8px; flex-shrink: 0; }
.npf-bottom button { color: var(--text-dim); display: flex; align-items: center; justify-content: center; }
.npf-bottom button svg { width: 19px; height: 19px; }
.npf-bottom button:hover, .npf-controls button:hover { color: var(--text); }

/* Auto-Mixe: keine "Hinzugefügt von / am"-Spalten (nicht vom Nutzer kuratiert) */
.pl-table.pl-auto .pl-thead, .pl-table.pl-auto .pl-row { grid-template-columns: 36px 4fr 3fr 90px; }
.pl-table.pl-auto .pl-by, .pl-table.pl-auto .pl-date,
.pl-table.pl-auto .pl-thead div:nth-child(4), .pl-table.pl-auto .pl-thead div:nth-child(5) { display: none; }

/* CD-/Disc-Trenner in der Albumansicht */
.tt-disc { font-size: 13px; font-weight: 700; color: var(--text-dim); letter-spacing: .03em; padding: 16px 12px 6px; display: flex; align-items: center; gap: 8px; }
