/* Pulse Web – dunkles Player-Layout. Farben als Tokens; der Player ist bewusst immer dunkel. */
:root {
  --schwarz: #000;
  --grund: #121212;
  --flaeche: #181818;
  --erhoeht: #242424;
  --hover: #2a2a2a;
  --text: #fff;
  --leise: #b3b3b3;
  --sehr-leise: #7a7a7a;
  --akzent: #1ed760;
  --akzent-hover: #3be477;
  --rot: #f15e6c;
  --linie: rgba(255, 255, 255, .08);
  --radius: 8px;
  --spieler-h: 88px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--schwarz);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.leise { color: var(--leise); }
.fehler { color: var(--rot); min-height: 1.4em; font-size: 13px; }
svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* ── Knöpfe ───────────────────────────────────────────── */
.knopf-primaer {
  background: var(--akzent); color: #000; font-weight: 700; border-radius: 999px;
  padding: 12px 28px; transition: transform .1s, background .15s;
}
.knopf-primaer:hover { background: var(--akzent-hover); transform: scale(1.03); }
.knopf-primaer:disabled { opacity: .6; transform: none; }
.knopf-zweit {
  border: 1px solid var(--sehr-leise); border-radius: 999px; padding: 8px 18px; font-weight: 700;
}
.knopf-zweit:hover { border-color: var(--text); transform: scale(1.03); }
.icon-knopf {
  width: 32px; height: 32px; padding: 7px; color: var(--leise); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none; transition: color .15s;
}
.icon-knopf:hover { color: var(--text); }
.icon-knopf.klein { width: 28px; height: 28px; padding: 6px; }
.icon-knopf.gross { width: 44px; height: 44px; padding: 10px; }
.icon-knopf.an, .icon-knopf[aria-pressed="true"] { color: var(--akzent); position: relative; }
.icon-knopf.an::after, .icon-knopf[aria-pressed="true"]::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--akzent);
}
.icon-knopf.geliked { color: var(--akzent); }
.play-knopf {
  width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--text); color: #000;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .1s;
}
.play-knopf:hover { transform: scale(1.06); }
.play-knopf.riesig { width: 68px; height: 68px; padding: 20px; }
.play-knopf.laedt { animation: pulsieren 1s ease-in-out infinite; }
@keyframes pulsieren { 50% { opacity: .55; } }
.play-gruen {
  width: 56px; height: 56px; padding: 17px; border-radius: 50%; background: var(--akzent); color: #000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .3); transition: transform .1s, background .15s; flex: none;
}
.play-gruen:hover { transform: scale(1.05); background: var(--akzent-hover); }

/* ── Anmeldung ────────────────────────────────────────── */
.anmeldung {
  min-height: 100%; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at top, #1d3b2a 0%, var(--grund) 55%, var(--schwarz) 100%);
}
.anmelde-karte {
  width: min(400px, 100%); background: var(--flaeche); border-radius: 12px; padding: 40px 28px;
  display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}
.anmelde-logo { margin-bottom: 4px; }
.anmelde-karte h1 { font-size: 28px; letter-spacing: -.02em; }
.anmelde-karte input {
  width: 100%; text-align: center; letter-spacing: .12em; font-size: 17px; font-family: ui-monospace, monospace;
  padding: 12px; border-radius: 6px; border: 1px solid var(--sehr-leise); background: var(--grund);
}
.anmelde-karte input:focus { border-color: var(--text); outline: none; }
.anmelde-karte .knopf-primaer { width: 100%; }
.anmelde-hilfe { font-size: 13px; }
.anmelde-hilfe a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.anmelde-hilfe code { font-family: ui-monospace, monospace; background: var(--erhoeht); padding: 1px 5px; border-radius: 4px; }

/* ── Grundlayout ──────────────────────────────────────── */
.app {
  height: 100dvh; display: grid; gap: 8px; padding: 8px;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) var(--spieler-h);
}
.seitenleiste {
  background: var(--grund); border-radius: var(--radius); padding: 16px 8px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.marke { display: flex; align-items: center; gap: 10px; padding: 4px 12px 18px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.nav-punkt {
  display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 6px;
  color: var(--leise); font-weight: 700; font-size: 15px; transition: color .15s;
}
.nav-punkt > span { width: 24px; height: 24px; }
.nav-punkt:hover, .nav-punkt.aktiv { color: var(--text); }
.leiste-kopf {
  display: flex; align-items: center; justify-content: space-between; margin: 20px 4px 6px 12px;
  color: var(--leise); font-weight: 700;
}
.leiste-eintrag {
  display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; min-width: 0;
}
.leiste-eintrag:hover { background: var(--hover); }
.leiste-eintrag.aktiv { background: var(--erhoeht); }
.leiste-eintrag > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-bild {
  width: 40px; height: 40px; border-radius: 4px; flex: none; background: var(--erhoeht); object-fit: cover;
  display: grid; place-items: center; color: var(--leise);
}
.herz-bild { background: linear-gradient(135deg, #450af5, #c4efd9); color: #fff; padding: 11px; }
.leiste-listen { display: flex; flex-direction: column; gap: 2px; }
.leiste-abmelden { margin-top: auto; padding: 16px 12px 4px; text-align: left; color: var(--sehr-leise); font-size: 13px; }
.leiste-abmelden:hover { color: var(--text); }

.inhalt {
  background: var(--grund); border-radius: var(--radius); overflow-y: auto; position: relative;
  scroll-behavior: smooth; outline: none;
}
.seite { padding: 24px 24px 48px; }
.kopf-verlauf { background: linear-gradient(180deg, var(--kopf-farbe, #1f3d2c) 0%, var(--grund) 320px); }

/* ── Abschnitte & Karten ──────────────────────────────── */
.gruss { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.abschnitt { margin-top: 28px; }
.abschnitt h2 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 14px; }
.schnellwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.schnell {
  display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .07); border-radius: 6px;
  overflow: hidden; font-weight: 700; min-width: 0; transition: background .15s; text-align: left;
}
.schnell:hover { background: rgba(255, 255, 255, .14); }
.schnell img, .schnell .leiste-bild { width: 56px; height: 56px; border-radius: 0; object-fit: cover; flex: none; }
.schnell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.karte {
  background: var(--flaeche); border-radius: var(--radius); padding: 12px; text-align: left; min-width: 0;
  transition: background .2s; position: relative;
}
.karte:hover { background: var(--hover); }
button.karte, a.karte { display: block; width: 100%; }
.bild-rahmen { position: relative; margin-bottom: 12px; }
.karte .bild {
  width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; background: var(--erhoeht);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.karte .herz-bild { padding: 30%; }
.karte .titel { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte .unter { color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em; }
.karte .play-gruen {
  position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; padding: 14px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.karte:hover .play-gruen, .karte:focus-within .play-gruen { opacity: 1; transform: none; }
.platzhalter-bild { display: grid; place-items: center; color: var(--sehr-leise); }
.platzhalter-bild svg { width: 40%; height: 40%; }

/* ── Suche ────────────────────────────────────────────── */
.suchfeld {
  display: flex; align-items: center; gap: 10px; background: var(--erhoeht); border-radius: 999px;
  padding: 0 18px; max-width: 480px; border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.suchfeld:hover { background: var(--hover); }
.suchfeld:focus-within { border-color: var(--text); }
.suchfeld > span { width: 22px; height: 22px; color: var(--leise); flex: none; }
.suchfeld input { flex: 1; background: none; border: 0; padding: 13px 0; font-size: 15px; outline: none; min-width: 0; }
.chips { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px; background: var(--erhoeht); font-weight: 600; font-size: 13px;
  transition: background .15s;
}
.chip:hover { background: var(--hover); }
.chip.an { background: var(--text); color: #000; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.kachel {
  aspect-ratio: 16 / 9; border-radius: var(--radius); padding: 16px; font-size: 20px; font-weight: 800;
  text-align: left; align-content: start; display: grid; overflow: hidden; letter-spacing: -.01em;
  transition: transform .15s;
}
.kachel:hover { transform: scale(1.02); }
.leer { color: var(--leise); padding: 40px 0; text-align: center; }
.laden { display: flex; gap: 6px; justify-content: center; padding: 40px 0; }
.laden i { width: 8px; height: 8px; border-radius: 50%; background: var(--leise); animation: pulsieren 1s infinite; }
.laden i:nth-child(2) { animation-delay: .15s; } .laden i:nth-child(3) { animation-delay: .3s; }

/* ── Titelliste ───────────────────────────────────────── */
.titelliste { display: flex; flex-direction: column; margin-top: 8px; }
.zeile {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 56px 32px; align-items: center; gap: 12px;
  padding: 6px 12px; border-radius: 6px; min-height: 56px; cursor: default;
}
.zeile:hover, .zeile:focus-within { background: rgba(255, 255, 255, .07); }
.zeile .nr { color: var(--leise); text-align: right; font-variant-numeric: tabular-nums; }
.zeile .nr-play { display: none; width: 20px; height: 20px; margin-left: auto; color: var(--text); }
.zeile:hover .nr span, .zeile:focus-within .nr span { display: none; }
.zeile:hover .nr-play, .zeile:focus-within .nr-play { display: block; }
.zeile.spielt .nr, .zeile.spielt .z-titel { color: var(--akzent); }
.z-haupt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.z-haupt img, .z-haupt .platzhalter-bild { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; background: var(--erhoeht); }
.z-text { min-width: 0; }
.z-titel { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-unter { color: var(--leise); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .z-like { opacity: 0; }
.zeile:hover .z-like, .zeile:focus-within .z-like, .zeile .z-like.geliked { opacity: 1; }
.zeile .z-dauer { color: var(--leise); text-align: right; font-variant-numeric: tabular-nums; }
.zeile .z-mehr { opacity: 0; }
.zeile:hover .z-mehr, .zeile:focus-within .z-mehr { opacity: 1; }

/* ── Kopfbereich von Listen/Podcasts ──────────────────── */
.listenkopf { display: flex; align-items: flex-end; gap: 24px; padding: 40px 24px 24px; }
.listenkopf .gross-bild {
  width: 200px; height: 200px; border-radius: 6px; object-fit: cover; flex: none; background: var(--erhoeht);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .55);
}
.listenkopf .herz-bild { padding: 64px; }
.listenkopf .art { font-size: 13px; font-weight: 600; }
.listenkopf h1 { font-size: clamp(28px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 6px 0 10px; word-break: break-word; }
.listenkopf .beschreibung { color: var(--leise); font-size: 14px; max-width: 70ch; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aktionen { display: flex; align-items: center; gap: 20px; padding: 0 24px 16px; }

/* ── Warteschlange ────────────────────────────────────── */
.warteschlange {
  width: 340px; background: var(--grund); border-radius: var(--radius); overflow-y: auto; padding: 16px 8px;
}
.warteschlange header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; }
.warteschlange h2 { font-size: 16px; }
.ws-titel { color: var(--leise); font-weight: 700; padding: 14px 8px 6px; font-size: 13px; }
.ws-liste .zeile { grid-template-columns: minmax(0, 1fr) 32px; min-height: 52px; padding: 4px 8px; }

/* ── Player-Leiste ────────────────────────────────────── */
.spieler {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(180px, 1fr);
  align-items: center; gap: 16px; padding: 0 8px; position: relative;
}
.sp-links { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-cover { flex: none; border-radius: 4px; overflow: hidden; }
.sp-cover img { width: 56px; height: 56px; object-fit: cover; background: var(--erhoeht); }
.sp-text { min-width: 0; }
.sp-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-kuenstler { color: var(--leise); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-mitte { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 720px; width: 100%; justify-self: center; }
.sp-knoepfe { display: flex; align-items: center; gap: 16px; }
.sp-zeit { display: flex; align-items: center; gap: 8px; width: 100%; }
.zeit { color: var(--leise); font-size: 12px; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.sp-rechts { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.sp-fortschritt { display: none; }

/* Schieberegler */
.balken {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(to right, var(--text) var(--wert, 0%), #4d4d4d var(--wert, 0%));
}
.balken:hover { background: linear-gradient(to right, var(--akzent) var(--wert, 0%), #4d4d4d var(--wert, 0%)); }
.balken::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); opacity: 0; }
.balken:hover::-webkit-slider-thumb, .balken:focus-visible::-webkit-slider-thumb { opacity: 1; }
.balken::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); opacity: 0; }
.balken:hover::-moz-range-thumb { opacity: 1; }
.balken:disabled { cursor: default; opacity: .4; }
.balken.laut { flex: none; width: 100px; }
.live { color: var(--rot); font-weight: 700; font-size: 11px; letter-spacing: .08em; }

/* ── Menü, Dialog, Hinweis ────────────────────────────── */
.menue {
  position: fixed; z-index: 50; background: #282828; border-radius: 6px; padding: 4px; min-width: 220px;
  max-width: 300px; max-height: 70vh; overflow-y: auto; box-shadow: 0 16px 24px rgba(0, 0, 0, .5);
}
.menue button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 3px; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menue button:hover, .menue button:focus-visible { background: #3e3e3e; outline: none; }
.menue hr { border: 0; border-top: 1px solid var(--linie); margin: 4px 0; }
.menue .menue-titel { color: var(--leise); font-size: 12px; padding: 8px 12px 4px; }
.dialog {
  margin: auto; background: var(--erhoeht); color: var(--text); border: 0; border-radius: 10px;
  padding: 24px; width: min(420px, calc(100% - 32px)); box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
}
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog h2 { font-size: 20px; margin-bottom: 16px; }
.dialog input { width: 100%; padding: 12px; border-radius: 4px; border: 1px solid transparent; background: #3e3e3e; }
.dialog input:focus { border-color: var(--leise); outline: none; }
/* „Speichern“ steht im HTML zuerst (Standard-Knopf für Enter), wird aber rechts angezeigt */
.dialog-knoepfe { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 12px; margin-top: 20px; }
.hinweis {
  position: fixed; left: 50%; bottom: calc(var(--spieler-h) + 24px); transform: translate(-50%, 20px);
  background: #2e77d0; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.hinweis.zeigen { opacity: 1; transform: translate(-50%, 0); }

/* ── Vollbild „Jetzt läuft“ ───────────────────────────── */
.vollbild {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--kopf-farbe, #2a3d33) 0%, #121212 75%); overflow-y: auto;
}
.vollbild header { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.vb-bild {
  width: min(100%, 52vh, 520px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; align-self: center;
  margin: auto 0 8px; background: var(--erhoeht); box-shadow: 0 16px 56px rgba(0, 0, 0, .5);
}
.vb-zeile, .vb-zeiten, .vb-knoepfe, .vollbild .balken { width: min(100%, 520px); align-self: center; }
.vb-zeile { display: flex; align-items: center; gap: 12px; }
.vb-text { flex: 1; min-width: 0; }
.vb-name { font-size: 22px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vollbild .balken { flex: none; }
.vb-zeiten { display: flex; justify-content: space-between; margin-top: -8px; }
.vb-knoepfe { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }

.unten-nav { display: none; }

/* ── Katalog: Künstler, Alben, Reihen ─────────────────── */
.link { cursor: pointer; }
.link:hover, a.link:focus-visible { text-decoration: underline; color: var(--text); }
.stark { color: var(--text); font-weight: 700; }
.klein { font-size: 12px; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.abschnitt-kopf h2 { margin-bottom: 0; }
.mehr-link { color: var(--leise); font-size: 13px; font-weight: 700; white-space: nowrap; }
.mehr-link:hover { color: var(--text); text-decoration: underline; }
.karten.reihe {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 186px); grid-template-columns: none;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin;
}
.karten.reihe > * { scroll-snap-align: start; }
.karte.rund .bild, .rund { border-radius: 50%; }
.karte.rund { text-align: center; }
.mix-band {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-weight: 800; font-size: 13px;
  border-radius: 0 0 6px 6px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); pointer-events: none;
}
.zeile.fehlt { opacity: .45; }
.zeile.fehlt .z-titel::after { content: " · nicht verfügbar"; color: var(--sehr-leise); font-size: 12px; }
.sp-kuenstler.link:hover, #vb-kuenstler.link:hover { text-decoration: underline; color: var(--text); }
.kachel { position: relative; }
.kachel span { position: relative; z-index: 1; }
.kachel .kachel-bild {
  position: absolute; width: 42%; aspect-ratio: 1; right: -6%; bottom: -6%; transform: rotate(25deg);
  border-radius: 4px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.top-treffer {
  display: grid; gap: 10px; background: var(--flaeche); border-radius: var(--radius); padding: 20px;
  max-width: 460px; position: relative; transition: background .2s;
}
.top-treffer:hover { background: var(--hover); }
.top-bild { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; background: var(--erhoeht); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.top-bild.rund { border-radius: 50%; }
.top-name { font-size: 30px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etikett { background: rgba(0, 0, 0, .45); color: var(--text); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.top-treffer .play-gruen { position: absolute; right: 20px; bottom: 20px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.top-treffer:hover .play-gruen, .top-treffer:focus-within .play-gruen { opacity: 1; transform: none; }
.held { position: relative; min-height: 340px; display: flex; align-items: flex-end; padding: 24px; overflow: hidden; background: #2a2a2a; }
.held-bild { position: absolute; inset: 0; }
.held-bild img, .held-bild .platzhalter-bild { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.held-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(18, 18, 18, .92)); }
.held-text { position: relative; }
.held-text .art { font-size: 13px; font-weight: 600; }
.held-text h1 { font-size: clamp(36px, 7vw, 92px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 6px 0 12px; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); word-break: break-word; }
.kuenstler-seite .aktionen { padding-top: 20px; }
.bio { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; background: var(--flaeche); border-radius: var(--radius); padding: 20px; max-width: 900px; }
.bio-bild { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.bio p { max-width: 70ch; }
.bio p + p { margin-top: 10px; }
.bio a { text-decoration: underline; }

/* ── Schmal: Handy ────────────────────────────────────── */

/* ── Songtext (mitlaufend) und Canvas ─────────────────── */
.songtext-seite { min-height: 100%; padding: 32px 48px 120px; background: var(--st-farbe, #5b3f8c); }
.st-kopf { font-size: 14px; color: rgba(255, 255, 255, .8); margin-bottom: 28px; }
.st-zeilen { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.st-zeile {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.25; color: rgba(0, 0, 0, .55);
  cursor: pointer; transition: color .25s ease; outline: none; overflow-wrap: anywhere;
}
.st-zeile.vorbei { color: rgba(255, 255, 255, .62); }
.st-zeile.aktiv { color: #fff; }
.st-zeile:hover { color: rgba(255, 255, 255, .92); }
.st-plain { white-space: pre-wrap; font-size: 22px; font-weight: 700; line-height: 1.5; max-width: 920px; }
.st-hinweis { color: rgba(255, 255, 255, .75); margin-bottom: 16px; font-size: 13px; }
.st-leer { font-size: 22px; font-weight: 700; max-width: 640px; }
.st-quelle { margin-top: 40px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.vb-kopf-knoepfe { display: flex; gap: 4px; }
.vollbild > :not(.vb-canvas) { position: relative; z-index: 1; }
.vb-canvas { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.vollbild.mit-canvas::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, transparent 22%, transparent 50%, rgba(0, 0, 0, .8) 78%);
}
.vollbild.mit-canvas:not(.mit-text) .vb-bild { visibility: hidden; }
.vollbild.mit-text { overflow: hidden; }
.vollbild.mit-text .vb-bild { display: none; }
.vb-songtext {
  flex: 1; min-height: 0; overflow-y: auto; width: min(100%, 720px); align-self: center;
  padding: 16px 4px 40vh; overscroll-behavior: contain;
}
.vb-songtext .st-zeile { font-size: clamp(20px, 5.4vw, 28px); }
.vb-songtext .st-zeile:not(.aktiv):not(.vorbei) { color: rgba(255, 255, 255, .38); }
.vb-songtext .st-zeile.vorbei { color: rgba(255, 255, 255, .68); }
.vollbild.mit-canvas.mit-text::after { background: rgba(0, 0, 0, .62); }


/* ── Klang (Equalizer, Korrektur, Timer) ───────────────── */
.klang {
  position: fixed; right: 16px; bottom: calc(var(--spieler-h) + 16px); z-index: 50; width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - var(--spieler-h) - 40px); overflow-y: auto; background: #242424; border-radius: 12px;
  padding: 16px 18px 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .6); overscroll-behavior: contain;
}
.kl-oben { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kl-oben h2 { font-size: 18px; }
.kl-teil { padding: 14px 0; border-top: 1px solid var(--linie); }
.kl-teil:first-of-type { border-top: 0; }
.kl-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.kl-kopf h3 { font-size: 15px; }
.kl-info { color: var(--leise); font-size: 12.5px; margin: 6px 0; }
.kl-fuss { margin-top: 4px; font-size: 11.5px; color: var(--sehr-leise); }
.klang .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.klang .chip { padding: 6px 12px; font-size: 12.5px; }
.kl-vorlagen { margin-bottom: 12px; }
.kl-baender { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; align-items: end; }
.kl-band { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--leise); }
.kl-band input[type="range"] {
  writing-mode: vertical-lr; direction: rtl; width: 22px; height: 120px; accent-color: var(--akzent); cursor: pointer;
}
.kl-band input:disabled { opacity: .35; cursor: default; }
.kl-wert { font-variant-numeric: tabular-nums; min-height: 14px; color: var(--text); }
.kl-suche {
  width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 6px; border: 1px solid #3e3e3e;
  background: #121212; color: var(--text); font: inherit; outline: none;
}
.kl-suche:focus-visible { border-color: var(--text); }
.kl-treffer { display: flex; flex-direction: column; margin-top: 6px; }
.kl-profil { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 8px 10px; border-radius: 6px; }
.kl-profil:hover, .kl-profil:focus-visible { background: var(--hover); }
.kl-aktiv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #1a3b27; }
.schalter {
  position: relative; width: 40px; height: 22px; border-radius: 11px; background: #535353; flex: none; transition: background .15s;
}
.schalter::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s;
}
.schalter[aria-checked="true"] { background: var(--akzent); }
.schalter[aria-checked="true"]::after { transform: translateX(18px); }
.schalter:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }


/* ── Gemeinsam hören ──────────────────────────────────── */
.gm-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 8px; }
.gm-karte { background: var(--flaeche); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.gm-karte h2 { font-size: 20px; }
.gm-link-zeile { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.gm-link {
  flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: 6px; border: 1px solid #3e3e3e;
  background: #121212; color: var(--text); font: inherit; outline: none;
}
.gm-link:focus-visible { border-color: var(--text); }
.gm-zahl { color: var(--akzent); font-weight: 700; }
.gm-jetzt { display: flex; gap: 14px; align-items: center; }
.gm-bild { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; flex: none; }
.mit-band {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--spieler-h) + 14px); z-index: 35;
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px;
  background: var(--akzent); color: #000; font-weight: 700; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  width: max-content; max-width: calc(100vw - 32px);
}
.mit-band > span:not(.mb-icon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mb-knopf { flex: none; }
.mb-icon { width: 18px; height: 18px; display: inline-flex; }
.mb-icon svg { width: 18px; height: 18px; fill: currentColor; }
.mb-knopf { background: rgba(0, 0, 0, .85); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 12.5px; }


/* ── Downloads ────────────────────────────────────────── */
.dl-knopf.fertig { color: var(--akzent); }
.dl-knopf.laedt svg { animation: dl-puls 1.2s ease-in-out infinite; }
@keyframes dl-puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dl-knopf.laedt svg { animation: none; } }
.zeile.ist-offline .z-unter::before {
  content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 50%;
  background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v9l3.5-3.5 1.4 1.4L12 17.8l-5.9-5.9 1.4-1.4L11 14z'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.dl-status { color: var(--akzent); font-weight: 700; margin: 4px 0 8px; }
.dl-offline { background: var(--flaeche); border-left: 3px solid var(--akzent); padding: 10px 14px; border-radius: 6px; margin: 8px 0 12px; }


/* ── Statistik, Suchverlauf, Folgen ───────────────────── */
.st-balken { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-bottom: 20px; max-width: 900px; }
.st-tag { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.st-saeule { background: var(--akzent); border-radius: 3px 3px 0 0; min-height: 2px; }
.st-datum { position: absolute; bottom: -18px; left: 0; font-size: 11px; color: var(--leise); white-space: nowrap; }
.st-liste { padding-left: 22px; display: grid; gap: 8px; max-width: 560px; }
.st-liste li::marker { color: var(--leise); }
.such-verlauf { margin-top: 20px; }
.sv-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; max-width: 900px; }
.sv-kopf h2 { font-size: 22px; }
.such-verlauf .chips { margin-top: 10px; }
.folg-knopf.an { border-color: var(--akzent); color: var(--akzent); }


/* ── Leiste „Jetzt läuft“ ─────────────────────────────── */
.jetzt-leiste {
  width: 340px; border-radius: var(--radius); overflow-y: auto; padding: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-farbe, #333) 55%, var(--grund)) 0, var(--grund) 420px);
  display: flex; flex-direction: column; gap: 14px;
}
.warteschlange:not([hidden]) ~ .jetzt-leiste { display: none; }
.jl-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jl-ueber { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-medien { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 1; flex: none; }
.jl-medien.mit-canvas { aspect-ratio: 9 / 16; max-height: 50vh; }
.jl-bild-huelle, .jl-bild { width: 100%; height: 100%; }
.jl-bild { object-fit: cover; display: block; }
.jl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jl-medien.mit-canvas .jl-bild-huelle { visibility: hidden; }
.jl-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.jl-kuenstler { color: var(--leise); font-weight: 600; margin-top: 4px; }
.jl-karte { background: var(--st-farbe, #333); border-radius: 10px; padding: 14px 16px 6px; flex: none; }
.jl-karte header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.jl-karte h3 { font-size: 16px; }
.jl-karte .mehr-link { color: rgba(255, 255, 255, .8); }
.jl-songtext { max-height: 320px; overflow-y: auto; scrollbar-width: none; }
.jl-songtext .st-zeile { font-size: 18px; margin: 0 0 8px; }
.jl-songtext .st-plain { font-size: 15px; white-space: pre-line; }
.jl-songtext .st-quelle { font-size: 11px; }

@media (max-width: 1100px) {
  .jetzt-leiste, #sp-jetzt { display: none !important; }
  .warteschlange:not([hidden]) { position: fixed; right: 8px; top: 8px; bottom: calc(var(--spieler-h) + 16px); z-index: 30; box-shadow: -8px 0 32px rgba(0, 0, 0, .6); }
}
@media (max-width: 760px) {
  :root { --spieler-h: 64px; }
  .app { padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }
  .seitenleiste { display: none; }
  .inhalt { border-radius: 0; }
  .seite { padding: 16px 16px 32px; }
  .gruss { font-size: 24px; }
  .spieler {
    margin: 0 8px 6px; border-radius: 8px; background: #3a3a3a; padding: 8px; height: 60px;
    grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  }
  .sp-cover img { width: 44px; height: 44px; }
  .sp-mitte { width: auto; }
  .sp-mitte .sp-zeit, .sp-rechts, #sp-zufall, #sp-wdh, #sp-zurueck, #sp-vor { display: none; }
  .sp-knoepfe { gap: 4px; }
  .play-knopf { background: none; color: var(--text); width: 40px; height: 40px; padding: 8px; }
  .sp-fortschritt { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: rgba(255, 255, 255, .2); border-radius: 1px; overflow: hidden; }
  .sp-fortschritt div { height: 100%; width: 0; background: var(--text); }
  .unten-nav {
    display: flex; justify-content: space-around; padding: 6px 0 max(8px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(0, 0, 0, .7), #000);
  }
  .unten-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--leise); padding: 4px 16px; }
  .unten-nav a span { width: 24px; height: 24px; }
  .unten-nav a.aktiv { color: var(--text); }
  .warteschlange:not([hidden]) { inset: 0; width: auto; border-radius: 0; z-index: 45; }
  .zeile { grid-template-columns: minmax(0, 1fr) 32px; padding: 6px 4px; }
  .zeile .nr, .zeile .z-dauer, .zeile .z-like { display: none; }
  .zeile .z-mehr { opacity: 1; }
  .listenkopf { flex-direction: column; align-items: flex-start; padding: 24px 16px 16px; gap: 16px; }
  .listenkopf .gross-bild { width: 160px; height: 160px; align-self: center; }
  .listenkopf .herz-bild { padding: 48px; }
  .aktionen { padding: 0 16px 12px; }
  .karten { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .karte .play-gruen { display: none; }
  .schnellwahl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .schnell img, .schnell .leiste-bild { width: 48px; height: 48px; }
  .hinweis { bottom: calc(var(--spieler-h) + 72px); }
  .karten.reihe { grid-auto-columns: 138px; gap: 12px; }
  .held { min-height: 260px; padding: 16px; }
  .bio { grid-template-columns: minmax(0, 1fr); }
  .bio-bild { width: 120px; height: 120px; }
  .top-treffer .play-gruen { opacity: 1; transform: none; }
  .zeile.fehlt .z-titel::after { content: ""; }
  .songtext-seite { padding: 20px 16px 96px; }
  .klang { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 85vh; }
  .mit-band { bottom: calc(var(--spieler-h) + 76px); }
  .gm-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
