/* app.css — GENERIERT beim Deploy aus static/css/{tokens,base,home,song,player}.css.
   Nicht direkt bearbeiten — die Einzeldateien im Repo sind die Quelle. */

/* ===== tokens.css ===== */
/* tokens.css — Design-Tokens des Song-Showrooms. Alle Farben/Abstände/Typo zentral.
   Zwei Themes: dark (Default) und light. Pro-Song-Akzent wird zur Laufzeit als
   --accent / --accent-2 auf :root gesetzt. */

:root {
  /* Typo-Familien: Serif-Display (editorial) + Sans (Fließtext) + Mono (Meta) */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Akzent (Fallback, bis ein Song geladen ist) */
  --accent: #9b6bff;
  --accent-2: #f559c3;
  --accent-ink: #ffffff;              /* Text auf Akzentfläche */

  /* Radien / Elevation / Bewegung */
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;
  --shadow-1: 0 2px 10px rgba(0,0,0,.35);
  --shadow-2: 0 18px 50px -12px rgba(0,0,0,.6);
  --shadow-glow: 0 30px 90px -30px var(--accent);

  /* Maße */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --bar-h: 84px;
  --topbar-h: 58px;   /* Höhe der Sticky-Topbar (für Sticky-Offsets/Scroll-Padding) */
}

/* ===== Dark (Default) ===== */
[data-theme="dark"] {
  --bg: #08080b;
  --bg-elev: #0f0f15;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --hairline: rgba(255,255,255,.09);
  --hairline-soft: rgba(255,255,255,.055);
  --ink: #f3f1f7;
  --ink-2: #b8b6c6;
  --ink-3: #7b7990;
  --ink-faint: #56546a;
  --glass: rgba(16,16,22,.72);
  --scrim: rgba(6,6,9,.7);
  --grain-opacity: .05;
  --wash-opacity: .6;
}

/* ===== Light ===== */
[data-theme="light"] {
  --bg: #f4f2ef;
  --bg-elev: #ffffff;
  --surface: rgba(20,16,30,.03);
  --surface-2: rgba(20,16,30,.05);
  --hairline: rgba(20,16,30,.12);
  --hairline-soft: rgba(20,16,30,.07);
  --ink: #17151d;
  --ink-2: #4a4757;
  --ink-3: #7a7788;
  --ink-faint: #a6a3b2;
  --glass: rgba(255,255,255,.78);
  --scrim: rgba(244,242,239,.6);
  --grain-opacity: .025;
  --wash-opacity: .32;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: .001s; }
  * { animation-duration: .001s !important; scroll-behavior: auto !important; }
}

/* ===== base.css ===== */
/* base.css — Reset, Grundtypografie, Sitebar/Footer, gemeinsame Bausteine. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 14px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
body.has-player { padding-bottom: calc(var(--bar-h) + 28px); }

h1, h2, h3 { font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: color-mix(in oklab, var(--accent) 60%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Ambient-Texturen ---------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.accent-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--wash-opacity);
  background:
    radial-gradient(60vw 50vh at 78% -8%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(50vw 40vh at 8% 4%, color-mix(in oklab, var(--accent-2) 32%, transparent), transparent 70%);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}

.stage, .sitebar, .sitefoot { position: relative; z-index: 1; }
/* min-height reserviert den Platz, bevor JS den Inhalt einfügt → kein Layout-Shift (CLS) */
.stage { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 80px; min-height: calc(100svh - var(--topbar-h)); }
.boot { padding: 22vh 0; text-align: center; color: var(--ink-3); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; }

/* View-Übergang ------------------------------------------------------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view { animation: viewIn var(--dur) var(--ease-out) both; }

/* Topbar (voll­breit, sticky) ---------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 60; width: 100%; min-height: var(--topbar-h); background: color-mix(in oklab, var(--bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--hairline-soft); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-start { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-end { display: flex; align-items: center; gap: 6px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 19px; letter-spacing: .01em; white-space: nowrap; }
.wordmark b { font-weight: 600; }
.wordmark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--hairline); color: var(--ink-2); background: var(--surface); transition: .2s var(--ease); flex: none; }
.iconbtn:hover { color: var(--ink); border-color: var(--accent); background: var(--surface-2); }
.iconbtn svg { width: 17px; height: 17px; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb:not(:empty)::before { content: "/"; color: var(--ink-faint); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { opacity: .5; }

/* „Find me:" + Social-Links ------------------------------------------ */
.social-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); margin: 0 2px 0 8px; }
.social-links { display: flex; align-items: center; gap: 2px; }
.social-link { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-3); transition: .18s var(--ease); }
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--sc, var(--accent)); color: var(--hc, #15141b); }
.topbar-div { width: 1px; height: 20px; background: var(--hairline); margin: 0 4px; }

@media (max-width: 700px) {
  .social-label, .social-links, .topbar-div { display: none; }
}

/* Footer -------------------------------------------------------------- */
.sitefoot { max-width: var(--maxw); margin: 40px auto 0; padding: 26px var(--gutter) 40px; border-top: 1px solid var(--hairline-soft); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
.sitefoot a:hover { color: var(--ink); }
.sitefoot .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }

/* Wiederverwendbare Chips/Tags --------------------------------------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.tag--accent { border-color: color-mix(in oklab, var(--accent) 55%, transparent); color: color-mix(in oklab, var(--accent) 78%, var(--ink)); }
.tag--draft { border-color: color-mix(in oklab, #ffb020 55%, transparent); color: #ffc04d; text-transform: uppercase; }
.tag--advisory { color: var(--ink); border-color: color-mix(in oklab, #ffb020 42%, var(--hairline)); }
.tag--advisory svg { width: 12px; height: 12px; flex: none; color: #ffc04d; }

/* Equalizer-Marke (spielt gerade) ----------------------------------- */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: eqbar .9s var(--ease) infinite; }
.eq i:nth-child(2){ animation-delay:.25s } .eq i:nth-child(3){ animation-delay:.5s } .eq i:nth-child(4){ animation-delay:.15s }
@keyframes eqbar { 0%,100%{ transform: scaleY(.28) } 50%{ transform: scaleY(1) } }

/* Toast --------------------------------------------------------------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 40px); transform: translate(-50%, 20px); z-index: 80; padding: 11px 18px; border-radius: var(--r-pill); background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--hairline); color: var(--ink); font-size: 13px; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: .3s var(--ease-out); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { padding: 16vh var(--gutter); text-align: center; color: var(--ink-2); }
.empty b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.empty code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }

/* ===== home.css ===== */
/* home.css — Landing / Index des Showrooms (editorial). */

/* Masthead ------------------------------------------------------------ */
.masthead { padding: clamp(28px, 7vh, 76px) 0 34px; }
.masthead h1 { max-width: 78%; margin-inline: auto; display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 58px); line-height: 1.12; letter-spacing: -0.02em; }
.masthead h1 .hl-a { align-self: flex-start; }
.masthead h1 .hl-b { align-self: flex-end; text-align: right; }
.masthead h1 em { font-style: italic; color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.masthead .lede { margin: 26px auto 0; max-width: 42ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; text-align: center; }
.masthead .lede::before { content: ""; display: block; width: 48px; height: 2px; margin: 0 auto 16px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* Featured showcase --------------------------------------------------- */
.feature { position: relative; margin: 30px 0 70px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--bg-elev); }
.feature__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); transform: scale(1.3); opacity: .5; }
.feature__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg-elev) 30%, transparent), linear-gradient(0deg, var(--bg-elev), transparent 70%); }
.feature__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(26px, 4vw, 52px); }
.feature__meta .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 9px; }
.feature__meta h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5.2vw, 62px); margin: 16px 0 0; }
.feature__meta .tagline { color: var(--ink-2); margin: 14px 0 0; max-width: 40ch; font-size: 16px; }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feature__cover { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2), var(--shadow-glow); transform: perspective(1200px) rotateY(-9deg) rotateX(3deg); transition: transform .6s var(--ease-out); }
.feature__cover:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }
.feature__cover img, .feature__cover svg { width: 100%; height: 100%; object-fit: cover; }

/* Primär-/Sekundär-Buttons ------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: .22s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { color: var(--accent-ink); background: linear-gradient(100deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px -10px var(--accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-2); }

/* Index-Liste --------------------------------------------------------- */
.index-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; padding: 0 6px; }
.index-head h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.index-head span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

.index { display: flex; flex-direction: column; }
.row {
  --pad: 18px;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px;
  padding: var(--pad) 20px; border-radius: var(--r-md);
  border: 1px solid transparent; position: relative; isolation: isolate;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.row + .row { border-top: 1px solid var(--hairline-soft); }
.row:hover { background: var(--surface); border-color: var(--hairline); border-top-color: var(--hairline); }
.row:hover + .row { border-top-color: transparent; }
.row__cover { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--hairline); }
.row__cover img, .row__cover svg { width: 100%; height: 100%; object-fit: cover; }
.row__body { min-width: 0; }
.row__title { font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.1; }
.row__sub { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 7px; align-items: center; color: var(--ink-3); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; }
.row__sub .d { opacity: .4; }
.row__aside { display: flex; align-items: center; gap: 14px; }
.row__count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-align: right; }
.row__play { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--ink); background: var(--surface-2); transition: .22s var(--ease); }
.row__play svg { width: 18px; height: 18px; }
.row:hover .row__play, .row__play.is-playing { color: var(--accent-ink); background: linear-gradient(100deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 8px 24px -8px var(--accent); }
.row.is-current .row__title { color: color-mix(in oklab, var(--accent) 40%, var(--ink)); }

@media (max-width: 820px) {
  .feature__inner { grid-template-columns: 1fr; }
  .feature__cover { max-width: 300px; order: -1; transform: none; }
  .feature__scrim { background: linear-gradient(0deg, var(--bg-elev) 20%, transparent); }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 10px; }
  .row__cover { width: 52px; height: 52px; }
  .row__title { font-size: 20px; }
  .row__count { display: none; }
}

/* ===== song.css ===== */
/* song.css — Song-Detail (Showpiece): immersiver Hero, Lese-Fluss, Liner-Notes. */

.back { display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 30px; padding: 8px 15px 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); transition: .2s var(--ease); }
.back:hover { color: var(--ink); border-color: var(--accent); background: var(--surface-2); }
.back:hover svg { transform: translateX(-2px); }
.back svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }

/* Hero ---------------------------------------------------------------- */
.songhero { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); margin-bottom: 46px; }
.songhero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(56px) saturate(1.4); transform: scale(1.35); opacity: .55; }
.songhero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent), var(--bg-elev) 88%); }
.songhero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 52px); align-items: end; padding: clamp(26px, 4.5vw, 56px); }
.songhero__cover { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-2), var(--shadow-glow); }
.songhero__cover img, .songhero__cover svg { width: 100%; height: 100%; object-fit: cover; }
.songhero__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 9px; }
.songhero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 7vw, 88px); margin: 14px 0 0; }
.songhero__variant { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 12px 0 0; }
.songhero__variant b { color: var(--accent); font-weight: 600; }
.songhero .tagline { color: var(--ink-2); margin: 14px 0 0; max-width: 48ch; font-size: 16.5px; }
.songhero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.songhero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 4px; }
.iconaction { width: 50px; height: 50px; border-radius: var(--r-pill); display: grid; place-items: center; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); transition: .22s var(--ease); }
.iconaction:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.iconaction svg { width: 20px; height: 20px; }
/* ===== Download-Modal (Fassungen links, Dateien rechts) ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: dlmFade .2s var(--ease); }
.modal-overlay[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal--dl { width: min(680px, 100%); max-height: min(82vh, 640px); display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--hairline); box-shadow: var(--shadow-2); overflow: hidden; animation: dlmPop .28s var(--ease-out); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--hairline-soft); }
.modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.modal__close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: .18s var(--ease); }
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.dlm { display: grid; grid-template-columns: minmax(170px, 235px) 1fr; min-height: 0; flex: 1; }
.dlm__versions { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-right: 1px solid var(--hairline-soft); overflow-y: auto; }
.dlm__v { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 12px; border: 1px solid transparent; transition: .18s var(--ease); }
.dlm__v:hover { background: var(--surface); }
.dlm__v.is-active { background: color-mix(in oklab, var(--accent) 12%, var(--surface)); border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.dlm__v-name { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.dlm__v-def { color: var(--accent); font-size: 12px; }
.dlm__v-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.dlm__panel { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.dlm__phead { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); display: flex; flex-direction: column; gap: 4px; }
.dlm__phead span { text-transform: none; letter-spacing: .02em; color: var(--ink-faint); }
.dlm__group { display: flex; flex-direction: column; gap: 5px; }
.dlm__gtitle { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.dlm__item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); transition: .18s var(--ease); }
.dlm__item:hover { border-color: var(--accent); background: var(--surface-2); }
.dlm__type { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .03em; min-width: 52px; }
.dlm__label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); flex: 1; }
.dlm__size { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); flex: none; font-variant-numeric: tabular-nums; }
.dlm__item svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.dlm__item:hover svg { color: var(--accent); }
@keyframes dlmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlmPop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .dlm { grid-template-columns: 1fr; }
  .dlm__versions { flex-direction: row; border-right: none; border-bottom: 1px solid var(--hairline-soft); overflow-x: auto; }
  .dlm__v { flex: 0 0 auto; min-width: 140px; }
}

/* Versions-Deck (umbrechende Pill-Tabs, skaliert auf beliebig viele Fassungen) */
.deck { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.deck__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.vtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.vtab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); transition: .2s var(--ease); max-width: 100%; }
.vtab .vdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; flex: none; }
.vtab .vtab__def { color: var(--accent); font-size: 11px; }
.vtab:hover { color: var(--ink); border-color: var(--hairline); background: var(--surface-2); }
.vtab[aria-selected="true"] { color: var(--ink); border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
.vtab[aria-selected="true"] .vdot { background: var(--accent); opacity: 1; box-shadow: 0 0 8px var(--accent); }

/* Content-Raster: Lyrics + Liner-Notes ------------------------------- */
.songbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 68px); align-items: start; }

/* Lyrics als Lesefluss ------------------------------------------------ */
.lyrics { max-width: 60ch; }

/* Inhaltshinweis — ruhige, gedämpfte Zeile (kein Kasten, kein Alarm) */
.advisory { display: flex; gap: 9px; align-items: baseline; margin: 0 0 22px; padding: 0 0 14px; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.advisory svg { width: 15px; height: 15px; flex: none; color: #ffc04d; align-self: flex-start; transform: translateY(2px); }
.advisory b { color: var(--ink); font-weight: 600; }
.sec { margin: 0 -16px 2px; padding: 11px 16px 13px; border-radius: 14px; transition: background .18s var(--ease); }
.sec:hover { background: var(--surface); }
.sec__label { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.sec__label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; flex: none; transition: opacity .18s var(--ease); }
.sec:hover .sec__label::before { opacity: 1; }
.sec__label h4 { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
/* Chorus: sanft getönter Block statt farbiger Randlinie */
.sec[data-kind="chorus"] { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.sec[data-kind="chorus"]:hover { background: color-mix(in oklab, var(--accent) 13%, transparent); }
.sec[data-kind="chorus"] .sec__label h4 { color: color-mix(in oklab, var(--accent) 55%, var(--ink-2)); }
.wip { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; padding: 2px 7px; border-radius: var(--r-pill); border: 1px solid color-mix(in oklab, #ffb020 50%, transparent); color: #ffc04d; }
.line { margin: 0; font-family: var(--font-display); font-size: clamp(16px, 1.85vw, 18px); line-height: 1.32; color: var(--ink-2); }
.sec[data-kind="chorus"] .line, .sec[data-kind="intro"] .line { color: var(--ink); }
.line.blank { height: .7em; }
.perform { font-style: italic; font-family: var(--font-display); font-size: 14px; line-height: 1.3; color: var(--ink-faint); margin: 0 0 6px; }
.placeholder { color: var(--ink-faint); font-style: italic; }

/* Liner-Notes (Style + Links + Credits) ------------------------------ */
.liner { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 30px; }
.liner__block h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline-soft); }
.style-def { display: flex; flex-direction: column; gap: 13px; }
.style-def div { display: grid; grid-template-columns: 108px 1fr; gap: 10px; align-items: baseline; }
.style-def dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); overflow-wrap: anywhere; }
.style-def dd { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); font-size: 13px; color: var(--ink-2); transition: .2s var(--ease); }
.chip-link svg { width: 15px; height: 15px; color: var(--c, var(--accent)); }
.chip-link:hover { color: var(--ink); border-color: var(--c, var(--accent)); background: var(--surface-2); }
.credits { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.credits b { color: var(--ink-2); font-weight: 600; }

/* Song-Wechsler (weitere Songs) -------------------------------------- */
.more { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--hairline-soft); }
.more h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.more__row { display: flex; gap: 14px; flex-wrap: wrap; }
.more__item { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); transition: .2s var(--ease); }
.more__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.more__item img, .more__item svg.mc { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.more__item span { font-family: var(--font-display); font-size: 17px; }

@media (max-width: 900px) {
  .songbody { grid-template-columns: 1fr; }
  .liner { position: static; }
}
@media (max-width: 640px) {
  .songhero__inner { grid-template-columns: 1fr; align-items: start; }
  .songhero__cover { max-width: 230px; }
}

/* ===== player.css ===== */
/* player.css — schwebende Glas-Capsule (bottom-center), überlebt Navigation.
   Zwei Zustände: kompakt (eine Zeile) und aufgeklappt (~doppelte Höhe,
   größeres Cover + mehr Infos) — per Hover übers Cover oder Klick (Pin). */

.dock {
  position: fixed; z-index: 70; left: 50%; bottom: 18px; transform: translate(-50%, 160%);
  width: min(960px, calc(100vw - 28px));
  display: flex; align-items: center; gap: 16px;
  padding: 11px 14px; border-radius: 22px;
  background: var(--glass); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-2);
  transition: transform .55s var(--ease-out), opacity .4s var(--ease), padding .3s var(--ease);
  opacity: 0;
}
.dock.is-live { transform: translate(-50%, 0); opacity: 1; }
.dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, color-mix(in oklab, var(--accent) 60%, transparent), transparent 42%, color-mix(in oklab, var(--accent-2) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }

/* Cover + Aufklapp-Hinweis */
.dock__cover-btn { position: relative; display: block; padding: 0; border: 0; background: none; flex: none; border-radius: 12px; }
.dock__cover { display: block; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1); transition: width .35s var(--ease-out), height .35s var(--ease-out); }
.dock__cover img { width: 100%; height: 100%; object-fit: cover; }
.dock__cover-hint { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); opacity: 1; transform: rotate(0); transition: transform .2s var(--ease), background .2s var(--ease); box-shadow: var(--shadow-1); border: 2px solid var(--glass); }
.dock__cover-hint svg { width: 11px; height: 11px; }
.dock__cover-btn:hover .dock__cover-hint { transform: scale(1.12); background: color-mix(in oklab, var(--accent) 80%, #fff); }
.dock.expanded .dock__cover-hint { transform: rotate(180deg); }
.dock.expanded .dock__cover-btn:hover .dock__cover-hint { transform: rotate(180deg) scale(1.12); }

/* Body (Titel/Meta) */
.dock__body { flex: 0 1 210px; min-width: 0; }
.dock__title { font-family: var(--font-display); font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__extra { display: none; }

/* Transport (Play + Seek) — nimmt den flexiblen Rest ein */
.dock__transport { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 14px; }
.dock__play { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--accent-ink); background: linear-gradient(100deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px -8px var(--accent); transition: transform .2s var(--ease); }
.dock__play:hover { transform: scale(1.06); }
.dock__play svg { width: 20px; height: 20px; }
.dock__seek { flex: 1; min-width: 60px; display: flex; align-items: center; gap: 10px; }
.dock__time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }

/* Range-Inputs (Seek + Volume) */
.rng { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--surface-2); cursor: pointer; }
.rng.seek { flex: 1; min-width: 50px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--surface-2) var(--p, 0%)); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.5); border: 2px solid var(--accent); }
.rng::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; }

/* Controls (rechts) */
.dock__controls { flex: none; display: flex; align-items: center; gap: 8px; }

/* Download-Menü (Format-Auswahl beim Herunterladen) */
.dock__dlwrap { position: relative; display: inline-flex; }
.dock__dlmenu { position: absolute; bottom: calc(100% + 12px); right: 0; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--hairline); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 2px; z-index: 5; }
.dock__dlmenu[hidden] { display: none; }
.dock__dlhead { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding: 6px 10px 5px; }
.dock__dlitem { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 11px; border-radius: 10px; transition: background .15s var(--ease); }
.dock__dlitem:hover { background: var(--surface-2); }
.dock__dltype { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .03em; }
.dock__dllabel { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.dockbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: .18s var(--ease); }
.dockbtn[aria-expanded="true"] { color: var(--accent); background: var(--surface-2); }
.dockbtn:hover { color: var(--ink); background: var(--surface-2); }
.dockbtn svg { width: 17px; height: 17px; }
.dock__vol { width: 74px; }
.dock__volwrap { display: flex; align-items: center; gap: 6px; }

/* ===== Aufgeklappt (~doppelte Höhe) ===== */
.dock.expanded {
  display: grid; align-items: center;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "cover body body" "cover transport controls";
  gap: 12px 18px; padding: 12px 14px;
}
.dock.expanded .dock__cover-btn { grid-area: cover; align-self: center; }
.dock.expanded .dock__cover { width: 104px; height: 104px; border-radius: 16px; }
.dock.expanded .dock__body { grid-area: body; align-self: end; }
.dock.expanded .dock__title { font-size: 22px; white-space: normal; }
.dock.expanded .dock__sub { display: none; }
.dock.expanded .dock__extra { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.dock__x-row { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.dock__x-key { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); flex: none; min-width: 46px; }
.dock.expanded .dock__transport { grid-area: transport; align-self: start; }
.dock.expanded .dock__controls { grid-area: controls; align-self: start; justify-content: flex-end; }

/* ===== Mobil ===== */
@media (max-width: 780px) {
  .dock { gap: 10px; padding: 9px 11px; bottom: 10px; }
  .dock:not(.expanded) .dock__time.dur,
  .dock:not(.expanded) .dock__volwrap { display: none; }
  .dock.expanded {
    grid-template-columns: 1fr; grid-template-areas: "cover" "body" "transport" "controls";
    justify-items: center; text-align: center; row-gap: 12px;
  }
  .dock.expanded .dock__body { align-self: center; }
  .dock.expanded .dock__extra { align-items: center; }
  .dock.expanded .dock__transport { width: 100%; }
  .dock.expanded .dock__controls { flex-wrap: wrap; justify-content: center; }
}
