/* ============================================================================
   MEHRALSMUSIK STREAMING — App Styles
   Dark-Cinematic-Look: Ink-Flächen, Paper-Text, Rot-Akzent (Markenidentität).
   ============================================================================ */

:root {
  --paper: #f2ebdc;
  --paper-2: #ebe2cf;
  --paper-3: #e3d9c2;
  --paper-shade: #d9cfb8;
  --ink: #0d0d0d;
  --ink-2: #1c1c1c;
  --ink-3: #2a2a2a;
  --ink-soft: #3a3a3a;
  --muted: #6e6759;
  --muted-2: #8a8270;
  --line: rgba(13, 13, 13, 0.14);
  --line-strong: rgba(13, 13, 13, 0.30);
  --red: #e3262f;
  --red-deep: #b51a22;
  --red-bright: #ff3a44;
  --gold: #c9a96a;
  --green: #4ec973;
  --sidebar-w: 248px;
  --player-h: 88px;
  --t: 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 0.16s ease-out;
  /* Dark-Theme-Flächen */
  --bg: #0c0c0e;
  --panel: #141418;
  --card: #1a1a1f;
  --card-hi: #26262d;
  --line-d: rgba(255, 255, 255, 0.08);
  --line-d2: rgba(255, 255, 255, 0.16);
  --dim: #9a927f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f47; }

.stencil { font-family: 'Big Shoulders Stencil Display', 'Staatliches', sans-serif; font-weight: 900; letter-spacing: 0.01em; text-transform: uppercase; line-height: 0.9; }
.staat { font-family: 'Staatliches', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.typewriter { font-family: 'Special Elite', 'Courier New', monospace; letter-spacing: 0.02em; }
.red { color: var(--red); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* subtle grain overlay (hell auf dunkel) */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.028) 1px, transparent 1.3px);
  background-size: 5px 5px; opacity: 1; z-index: 1;
}

/* ============================================================================
   APP-RASTER
   ============================================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr var(--player-h);
  grid-template-areas: "side main" "player player";
  height: 100vh; position: relative; z-index: 3;
}

/* ---------- Sidebar ---------- */
.sidebar {
  grid-area: side;
  background: var(--panel);
  color: var(--paper);
  border-right: 1px solid var(--line-d);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar .brand {
  font-family: 'Big Shoulders Stencil Display', sans-serif;
  font-weight: 900; font-size: 30px; line-height: 0.9;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 22px 22px 6px;
}
.sidebar .brand .a { color: var(--red); }
.sidebar .brand .b { color: var(--paper); }
.sidebar .brand small { display: block; font-family: 'Special Elite', monospace; font-size: 9.5px; letter-spacing: 0.32em; color: var(--muted-2); margin-top: 6px; font-weight: 400; }
.nav-group { padding: 14px 12px; }
.nav-group + .nav-group { border-top: 1px solid var(--line-d); }
.nav-label { font-family: 'Special Elite', monospace; font-size: 10px; letter-spacing: 0.22em; color: var(--muted-2); text-transform: uppercase; padding: 4px 12px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--paper-shade); font-weight: 600; font-size: 15px;
  transition: background var(--t-fast), color var(--t-fast); width: 100%; text-align: left;
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: var(--red); color: #fff; }
.nav-playlists { flex: 1; overflow-y: auto; }
.pl-link { display: flex; align-items: center; gap: 11px; padding: 8px 14px; border-radius: 9px; color: var(--muted-2); font-size: 14px; font-weight: 500; transition: var(--t-fast); }
.pl-link:hover { background: rgba(255,255,255,0.06); color: var(--paper); }
.pl-link .cov { width: 30px; height: 30px; border-radius: 5px; background: var(--ink-3); flex-shrink: 0; object-fit: cover; }
.sidebar-foot { padding: 14px 18px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted-2); border-top: 1px solid var(--line-d); }
.sidebar-foot a { color: var(--red-bright); }
.sidebar-foot .legal-links { margin-bottom: 10px; line-height: 1.9; }
.sidebar-foot .legal-links a { color: var(--muted-2); }
.sidebar-foot .legal-links a:hover { color: var(--red-bright); }
.pw-legal { margin-top: 8px; line-height: 1.5; }
.pw-legal a { color: var(--red); text-decoration: underline; }

/* ---------- Main ---------- */
.main { grid-area: main; overflow-y: auto; position: relative; background: var(--bg); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 32px; background: rgba(12,12,14,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d);
}
.topbar .nav-arrows { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.06);
  border: 1.5px solid transparent; color: var(--paper); transition: var(--t-fast);
}
.icon-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.icon-btn svg { width: 19px; height: 19px; }
.search-wrap { flex: 1; max-width: 460px; position: relative; }
.search-wrap input {
  width: 100%; padding: 11px 16px 11px 44px; border-radius: 30px;
  background: rgba(255,255,255,0.07); border: 1.5px solid transparent; color: var(--paper); outline: none;
  transition: var(--t-fast);
}
.search-wrap input::placeholder { color: var(--muted-2); }
.search-wrap input:focus { border-color: var(--red); background: rgba(255,255,255,0.11); }
.search-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted-2); }
.topbar .spacer { flex: 1; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 30px;
  background: rgba(255,255,255,0.10); color: var(--paper); font-weight: 700; font-size: 14px; transition: var(--t-fast);
  border: 1.5px solid transparent;
}
.btn-pill:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-pill.ghost { background: transparent; color: var(--paper); border-color: var(--line-d2); }
.btn-pill.ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-pill.active { background: var(--red); border-color: var(--red); color: #fff; }

.view { padding: 28px 32px 60px; max-width: 1280px; }
.view.hidden { display: none; }
.search-page-in { width: 100%; max-width: 540px; padding: 14px 20px; border-radius: 30px; background: rgba(255,255,255,0.07); border: 1.5px solid transparent; color: var(--paper); outline: none; margin-bottom: 8px; }
.search-page-in::placeholder { color: var(--muted-2); }
.search-page-in:focus { border-color: var(--red); background: rgba(255,255,255,0.11); }

/* ---------- Hero / Headings ---------- */
.page-head { margin-bottom: 26px; }
.eyebrow { font-family: 'Special Elite', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eyebrow::before { content: '★'; }
.page-title { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 0.9; text-transform: uppercase; }
.section-title { font-family: 'Staatliches', sans-serif; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; margin: 34px 0 16px; display: flex; align-items: center; justify-content: space-between; }
.section-title a { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
.section-title a:hover { color: var(--red); }

/* ---------- Karten-Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line-d); border-radius: 14px; padding: 14px;
  transition: var(--t); position: relative; cursor: pointer;
}
.card:hover { background: var(--card-hi); border-color: var(--line-d2); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
.card .cover { aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--ink-3); margin-bottom: 12px; position: relative; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card.artist .cover { border-radius: 50%; }
.card .ttl { font-weight: 700; font-size: 15px; line-height: 1.2; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .sub { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .play-fab {
  position: absolute; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  opacity: 1; transform: translateY(0); transition: var(--t);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35); border: 0;
}
.card .play-fab:hover { background: var(--red-bright); }
.card .play-fab svg { width: 22px; height: 22px; margin-left: 2px; }
.card:hover .play-fab { transform: translateY(-4px) scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.45); }
.card .play-fab:active { transform: scale(0.93); }
@media (hover: hover) { .card .play-fab { opacity: 0; transform: translateY(6px); } .card:hover .play-fab { opacity: 1; transform: translateY(-4px); } }
/* Touch: kein Play-Button auf dem Cover -> Tipp aufs Bild öffnet das Album/Single */
@media (hover: none) { .card .cover .play-fab { display: none; } }

/* ---------- Detail-Header (Album/Artist) ---------- */
.detail-head { display: flex; gap: 28px; align-items: flex-end; padding: 6px 0 22px; flex-wrap: wrap; }
.detail-cover { width: 232px; height: 232px; border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line-d2); box-shadow: 0 24px 60px rgba(0,0,0,0.55); flex-shrink: 0; }
.detail-cover.round { border-radius: 50%; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { flex: 1; min-width: 240px; }
.detail-meta .kind { font-family: 'Special Elite', monospace; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.detail-meta h1 { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: clamp(40px, 6vw, 86px); line-height: 0.86; text-transform: uppercase; margin: 8px 0 12px; }
.detail-meta .by { font-size: 15px; color: var(--paper-shade); }
.detail-meta .by b { color: var(--paper); }
.detail-meta .by .by-link { color: var(--paper); font-weight: 700; }
.detail-meta .by .by-link:hover { color: var(--red); text-decoration: underline; }
.social-row { display: flex; gap: 12px; margin: 4px 0 20px; flex-wrap: wrap; }
.social-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.07); color: var(--paper); border: 1px solid var(--line-d); transition: var(--t-fast); }
.social-link:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }
.detail-actions { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; flex-wrap: wrap; }
.btn-play-lg {
  display: inline-flex; align-items: center; gap: 11px; padding: 14px 30px; border-radius: 40px;
  background: var(--red); color: #fff; font-family: 'Staatliches', sans-serif; font-size: 19px; letter-spacing: 0.04em;
  text-transform: uppercase; transition: var(--t-fast); box-shadow: 0 8px 20px rgba(227,38,47,0.4);
}
.btn-play-lg:hover { background: var(--red-deep); transform: scale(1.03); }
.btn-play-lg svg { width: 22px; height: 22px; }

/* ---------- Tracklist ---------- */
.tracklist { margin-top: 14px; }
.track-row {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 10px; transition: var(--t-fast); cursor: pointer; border: 1px solid transparent;
}
.track-row:hover { background: rgba(255,255,255,0.06); border-color: var(--line-d); }
.track-row.playing { background: rgba(227,38,47,0.14); border-color: rgba(227,38,47,0.35); }
.track-row .idx { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--dim); text-align: center; }
.track-row.playing .idx { color: var(--red); }
.track-row:hover .idx .num { display: none; }
.track-row .idx .ply { display: none; }
.track-row:hover .idx .ply { display: inline; }
.track-row.playing .idx .num { display: none; }
.track-row.playing .idx .ply { display: inline; }
.track-info { min-width: 0; }
.track-info .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row.playing .track-info .t { color: var(--red); }
.track-info .a { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row .dur { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--dim); }
.track-row .row-actions { display: flex; gap: 8px; opacity: 0; transition: var(--t-fast); }
.track-row:hover .row-actions { opacity: 1; }
@media (hover: none) { .track-row .row-actions { opacity: 0.7; } .track-row .idx .num { display: inline !important; } .track-row .idx .ply { display: none !important; } }
.row-actions button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.row-actions button:hover { background: rgba(255,255,255,0.14); color: #fff; }
.row-actions button.liked { color: var(--red); }
.row-actions svg { width: 17px; height: 17px; }

/* ---------- Player-Bar ---------- */
.player {
  grid-area: player; background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--line-d);
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 20px;
  padding: 0 22px; z-index: 40;
}
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np .cov { width: 58px; height: 58px; border-radius: 8px; background: var(--ink-3); object-fit: cover; flex-shrink: 0; }
.np .meta { min-width: 0; }
.np .meta .t { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np .meta .a { font-size: 12.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np .like { color: var(--muted-2); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.np .like:hover { color: var(--paper); }
.np .like.on { color: var(--red); }
.np .like svg { width: 19px; height: 19px; }

.player-mid { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.controls { display: flex; align-items: center; gap: 18px; }
.controls button { color: var(--paper-shade); display: grid; place-items: center; transition: var(--t-fast); }
.controls button:hover { color: #fff; transform: scale(1.08); }
.controls button.on { color: var(--red); }
.controls svg { width: 20px; height: 20px; }
.controls .play-main { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.controls .play-main:hover { background: #fff; transform: scale(1.06); }
.controls .play-main svg { width: 23px; height: 23px; }
.seek { display: flex; align-items: center; gap: 11px; width: 100%; max-width: 560px; }
.seek .time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); width: 38px; text-align: center; }
.bar { flex: 1; height: 6px; background: var(--ink-3); border-radius: 4px; position: relative; cursor: pointer; touch-action: none; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); border-radius: 4px; width: 0%; }
.bar .knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 13px; height: 13px; border-radius: 50%; background: #fff; left: 0%; opacity: 0; transition: opacity var(--t-fast); }
.bar:hover .knob { opacity: 1; }
.bar:hover .fill { background: var(--red-bright); }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.player-right button { color: var(--paper-shade); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; }
.player-right button:hover { color: #fff; }
.player-right button.on { color: var(--red); }
.player-right svg { width: 19px; height: 19px; }
.vol { display: flex; align-items: center; gap: 9px; width: 130px; }
.vol .bar { height: 5px; }

/* ---------- Queue-Panel ---------- */
.queue-panel {
  position: fixed; right: 0; top: 0; bottom: var(--player-h); width: 340px; z-index: 60;
  background: var(--ink-2); color: var(--paper); border-left: 2px solid var(--red);
  transform: translateX(100%); transition: transform var(--t); display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.4);
}
.queue-panel.open { transform: translateX(0); }
.queue-panel h3 { font-family: 'Staatliches', sans-serif; font-size: 20px; letter-spacing: 0.04em; padding: 20px 20px 12px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.queue-panel h3 button { color: var(--muted-2); }
.queue-panel h3 button:hover { color: #fff; }
.queue-list { overflow-y: auto; padding: 0 12px 18px; flex: 1; }
.q-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.q-item:hover { background: rgba(255,255,255,0.06); }
.q-item.cur { background: rgba(227,38,47,0.16); }
.q-item .cov { width: 40px; height: 40px; border-radius: 6px; background: var(--ink-3); object-fit: cover; flex-shrink: 0; }
.q-item .t { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .a { font-size: 11.5px; color: var(--muted-2); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--dim); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--ink-soft); }
.empty h3 { font-family: 'Staatliches', sans-serif; font-size: 26px; color: var(--paper); text-transform: uppercase; margin-bottom: 8px; }
.empty p { max-width: 380px; margin: 0 auto 20px; }

/* chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 8px 16px; border-radius: 30px; background: rgba(255,255,255,0.06); border: 1.5px solid var(--line-d); color: var(--paper); font-weight: 600; font-size: 14px; transition: var(--t-fast); }
.chip:hover { border-color: var(--line-d2); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }

/* toast */
.toast { position: fixed; bottom: calc(var(--player-h) + 18px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink-2); color: var(--paper); padding: 13px 22px; border-radius: 30px; font-weight: 600; font-size: 14px; z-index: 200; opacity: 0; pointer-events: none; transition: var(--t); border: 1.5px solid var(--red); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* context menu */
.ctx { position: fixed; z-index: 220; background: var(--ink-2); color: var(--paper); border: 1.5px solid var(--ink-3); border-radius: 12px; padding: 6px; min-width: 200px; box-shadow: 0 16px 44px rgba(0,0,0,0.5); display: none; }
.ctx.open { display: block; }
.ctx button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 10px 13px; border-radius: 8px; font-size: 14px; color: var(--paper-shade); }
.ctx button:hover { background: var(--red); color: #fff; }
.ctx button svg { width: 17px; height: 17px; }
.ctx .div { height: 1px; background: var(--ink-3); margin: 5px 0; }
.ctx .sub-label { font-size: 11px; color: var(--muted-2); padding: 6px 13px 3px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Account-Menü ---------- */
.account { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.10); color: var(--paper); display: grid; place-items: center; font-family: 'Staatliches', sans-serif; font-size: 16px; border: 1.5px solid var(--line-d2); transition: var(--t-fast); }
.avatar:hover { background: var(--red); border-color: var(--red); color: #fff; }
.account-menu { position: absolute; right: 0; top: 48px; background: var(--ink-2); color: var(--paper); border: 1.5px solid var(--ink-3); border-radius: 12px; padding: 8px; min-width: 220px; box-shadow: 0 16px 44px rgba(0,0,0,0.4); display: none; z-index: 120; }
.account-menu.open { display: block; }
.account-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--ink-3); margin-bottom: 6px; }
.account-menu .who .n { font-weight: 700; }
.account-menu .who .e { font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--paper-shade); }
.account-menu button:hover { background: var(--red); color: #fff; }

/* ---------- Auth-Overlay (Login/Registrierung) ---------- */
.auth-overlay { position: fixed; inset: 0; z-index: 500; background: var(--ink); display: none; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.auth-overlay.show { display: flex; }
.auth-overlay::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.2px); background-size: 5px 5px; pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: var(--paper); color: var(--ink); border-radius: 18px; border: 2px solid var(--red); padding: 34px 30px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.auth-card .brand-lg { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: 40px; text-transform: uppercase; line-height: 0.9; margin-bottom: 4px; }
.auth-card .brand-lg .a { color: var(--red); }
.auth-card .tag { font-family: 'Special Elite', monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--paper-2); border-radius: 30px; padding: 5px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 24px; font-weight: 700; font-size: 14px; color: var(--muted); }
.auth-tabs button.active { background: var(--ink); color: var(--paper); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.auth-field input { width: 100%; padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); outline: none; transition: var(--t-fast); }
.auth-field input:focus { border-color: var(--red); }
.auth-btn { width: 100%; padding: 14px; border-radius: 30px; background: var(--red); color: #fff; font-family: 'Staatliches', sans-serif; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; transition: var(--t-fast); margin-top: 4px; }
.auth-btn:hover { background: var(--red-deep); }
.auth-err { background: rgba(227,38,47,0.1); border: 1.5px solid var(--red); color: var(--red-deep); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; display: none; }
.auth-err.show { display: block; }
.auth-note { font-size: 12px; color: var(--muted); margin-top: 18px; text-align: center; line-height: 1.5; }
.auth-switch { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch b { color: var(--red); cursor: pointer; }

/* ---------- Modal-Dialog (gebrandet, ersetzt Browser-prompt) ---------- */
.mam-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(13,13,13,0.6); backdrop-filter: blur(3px); }
.mam-modal.show { display: flex; }
.mam-dialog { width: 100%; max-width: 440px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); position: relative; }
.mam-dialog .eyebrow { margin-bottom: 6px; }
.mam-dialog h3 { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 0.9; margin-bottom: 18px; }
.mam-dialog .md-row { display: flex; gap: 16px; align-items: flex-start; }
.md-cover { width: 104px; height: 104px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--red), var(--red-deep)); border: 1.5px solid var(--ink); flex-shrink: 0; cursor: pointer; position: relative; display: grid; place-items: center; color: #fff; }
.md-cover img { width: 100%; height: 100%; object-fit: cover; }
.md-cover .hint { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 700; background: rgba(13,13,13,0.45); color: #fff; opacity: 0; transition: var(--t-fast); padding: 8px; }
.md-cover:hover .hint { opacity: 1; }
.md-cover .ph-ico { width: 38px; height: 38px; }
.mam-dialog label.fl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.mam-dialog input[type=text] { width: 100%; padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); outline: none; transition: var(--t-fast); }
.mam-dialog input[type=text]:focus { border-color: var(--red); }
.mam-dialog .md-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.mam-dialog .md-actions .btn-pill { font-size: 14px; background: var(--ink); color: var(--paper); }
.mam-dialog .md-actions .btn-pill.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.mam-dialog .md-msg { color: var(--ink-soft); margin-bottom: 4px; line-height: 1.5; }

/* ---------- Now-Playing-Anzeige klickbar ---------- */
.np .meta { cursor: pointer; }
.np-expand { color: var(--muted-2); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; flex-shrink: 0; }
.np-expand:hover { color: #fff; }
.np-expand svg { width: 17px; height: 17px; }

/* ---------- Vollbild-Player ---------- */
.now-fs {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column;
  background: var(--ink); color: var(--paper);
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.now-fs.show { transform: translateY(0); }
.now-fs .fs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(60px) brightness(0.5); transform: scale(1.3); z-index: 0; transition: background-image var(--t); }
.now-fs .fs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.now-fs.has-video .fs-video { opacity: 0.55; }
/* YouTube-Hintergrund */
#fs-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.now-fs.has-video.yt #fs-yt { opacity: 0.55; }
.now-fs.video-sound.yt #fs-yt { opacity: 1; }
.now-fs.yt .fs-bg { display: none; }
.now-fs.yt .fs-video { display: none; }
.now-fs.video-sound .fs-video { opacity: 1; }
.now-fs.video-sound .fs-bg { display: none; }
.now-fs .fs-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,0.30), rgba(13,13,13,0.72)); z-index: 2; pointer-events: none; }
.now-fs.video-sound .fs-scrim { background: linear-gradient(180deg, rgba(13,13,13,0.15), rgba(13,13,13,0.55)); }
.now-fs > .fs-top, .now-fs > .fs-inner { position: relative; z-index: 3; }

.fs-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; }
.fs-top .fs-eyebrow { font-family: 'Special Elite', monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--paper-shade); }
.fs-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); background: rgba(255,255,255,0.08); transition: var(--t-fast); }
.fs-icon:hover { background: rgba(255,255,255,0.18); }
.fs-icon svg { width: 22px; height: 22px; }

.fs-inner { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; padding: 0 clamp(26px, 6vw, 80px) clamp(34px, 6vh, 70px); max-width: 720px; margin: 0 auto; width: 100%; }
.fs-art { width: 100%; aspect-ratio: 1; max-width: 460px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); align-self: center; }
.now-fs.video-sound .fs-art { display: none; }
.fs-art img { width: 100%; height: 100%; object-fit: cover; }
.fs-headline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fs-title { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: clamp(28px, 6vw, 52px); line-height: 0.92; text-transform: uppercase; }
.fs-artist { font-size: 16px; color: var(--paper-shade); margin-top: 4px; }
.fs-like { color: var(--paper-shade); width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; }
.fs-like:hover { color: #fff; }
.fs-like.on { color: var(--red); }
.fs-like svg { width: 26px; height: 26px; }

.fs-seek { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.fs-seek .bar { flex: 1; height: 7px; background: rgba(255,255,255,0.22); border-radius: 5px; position: relative; cursor: pointer; }
.fs-seek .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); border-radius: 5px; width: 0%; }
.fs-seek .knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 15px; height: 15px; border-radius: 50%; background: #fff; left: 0%; opacity: 1; transition: opacity var(--t-fast); }
.fs-t { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--paper-shade); width: 44px; flex-shrink: 0; }
.fs-t-r { text-align: right; }

.fs-controls { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 7vw, 44px); }
.fs-controls button { color: var(--paper-shade); display: grid; place-items: center; transition: var(--t-fast); }
.fs-controls button:hover { color: #fff; transform: scale(1.08); }
.fs-controls button.on { color: var(--red); }
.fs-controls svg { width: 26px; height: 26px; }
.fs-controls .fs-play { width: 70px; height: 70px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.fs-controls .fs-play:hover { background: #fff; transform: scale(1.05); }
.fs-controls .fs-play svg { width: 32px; height: 32px; }

.fs-video-toggle { display: inline-flex; align-items: center; gap: 10px; align-self: center; padding: 11px 22px; border-radius: 30px; background: rgba(255,255,255,0.12); color: #fff; font-weight: 700; font-size: 14px; transition: var(--t-fast); }
.fs-video-toggle:hover { background: var(--red); }
.fs-video-toggle svg { width: 19px; height: 19px; }
.fs-video-toggle.on { background: var(--red); }

/* ---------- Download-Button / Offline ---------- */
.icon-btn.dl-btn.on { background: var(--green); color: #fff; border-color: var(--green); }
.icon-btn.dl-btn.loading { opacity: 0.6; pointer-events: none; }
.icon-btn.dl-btn.loading svg { animation: dlspin 1s linear infinite; }
@keyframes dlspin { to { transform: rotate(360deg); } }
.icon-btn.spinning svg { animation: dlspin 0.6s ease; }
.offline-banner { background: var(--ink-2); color: var(--paper); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }

/* ---------- Paywall (Abo) ---------- */
.paywall { position: fixed; inset: 0; z-index: 450; background: rgba(13,13,13,0.72); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.paywall.show { display: flex; }
.paywall-card { position: relative; width: 100%; max-width: 460px; background: var(--paper); color: var(--ink); border: 2px solid var(--red); border-radius: 18px; padding: 30px 28px 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.pw-close { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.pw-close:hover { background: var(--paper-2); color: var(--ink); }
.paywall-card .brand-lg { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 0.9; }
.paywall-card .brand-lg .a { color: var(--red); }
.pw-tag { font-family: 'Special Elite', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin: 4px 0 18px; }
.paywall-card h3 { font-family: 'Staatliches', sans-serif; font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.pw-lead { color: var(--ink-soft); margin-bottom: 16px; font-size: 14.5px; }
.pw-plans { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.pw-plan { position: relative; text-align: left; border: 2px solid var(--line-strong); border-radius: 14px; padding: 15px 18px; background: var(--paper-2); transition: var(--t-fast); cursor: pointer; }
.pw-plan:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.pw-plan.featured { border-color: var(--red); }
.pw-plan.loading { opacity: 0.6; pointer-events: none; }
.pw-badge { position: absolute; right: 14px; top: -11px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.pw-plan-name { font-family: 'Staatliches', sans-serif; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }
.pw-price { font-family: 'Big Shoulders Stencil Display', sans-serif; font-weight: 900; font-size: 30px; line-height: 1; }
.pw-price span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--muted); }
.pw-subline { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pw-err { background: rgba(227,38,47,0.1); border: 1.5px solid var(--red); color: var(--red-deep); padding: 9px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; display: none; }
.pw-err.show { display: block; }
.pw-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
.acc-status { font-size: 12px; color: var(--green); font-weight: 700; padding: 8px 12px 6px; }
.account-menu button.acc-premium { color: var(--gold); font-weight: 700; }

/* mobile menu toggle + tab-leiste (nur mobil sichtbar) */
.menu-toggle { display: none; }
.tabbar { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 1fr; grid-template-areas: "main"; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 80%; max-width: 320px; z-index: 120; transform: translateX(-100%); transition: transform var(--t); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; }
  .topbar .nav-arrows { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 110; opacity: 0; pointer-events: none; transition: var(--t); }
  .scrim.show { opacity: 1; pointer-events: auto; }
  /* Mini-Player: Titel links, Play/Weiter rechts (wie Spotify) */
  .player { grid-template-columns: 1fr auto; gap: 8px; padding: 0 12px; position: fixed; left: 0; right: 0; bottom: 56px; height: 64px; z-index: 90; }
  .player-mid { position: static; flex-direction: row; width: auto; gap: 0; }
  .controls { gap: 14px; }
  .controls #p-shuffle, .controls #p-repeat, .controls #p-prev { display: none; }
  .controls .play-main { width: 44px; height: 44px; }
  .player-right { display: none; }
  .np .like { display: none; }
  .np-expand { display: none; }
  /* tippbare Spul-Leiste am unteren Rand der Player-Leiste */
  .player-mid .seek { display: flex; position: absolute; left: 0; right: 0; bottom: 0; max-width: none; width: auto; padding: 0; gap: 0; }
  .player-mid .seek .time { display: none; }
  .player-mid .seek .bar { height: 9px; border-radius: 0; }
  .player-mid .seek .bar .knob { display: none; }
  .topbar { padding: 14px 18px; }
  .view { padding: 22px 18px 134px; }
  .detail-cover { width: 160px; height: 160px; }
  .queue-panel { width: 100%; bottom: 120px; }
  /* Bottom-Tab-Leiste */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: #0e0e12; border-top: 1px solid var(--line-d); z-index: 95; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted-2); font-family: 'Staatliches', sans-serif; text-transform: uppercase; letter-spacing: 0.03em; font-size: 10px; transition: color var(--t-fast); }
  .tabbar .tab svg { width: 22px; height: 22px; }
  .tabbar .tab.active { color: var(--red); }
  .tabbar .tab:active { transform: scale(0.94); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .player-mid .controls { gap: 14px; }
}
