:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --fg: #f4f4f5;
  --muted: #8a8a93;
  --line: rgba(255, 255, 255, .12);
  --glow: rgba(255, 255, 255, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 64px;
  --player-h: 0px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Kopfleiste */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(16px, env(safe-area-inset-left));
  background: linear-gradient(#000c, #0000);
}
.brand { font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; }
.topbar__right { display: flex; align-items: center; gap: 8px; }
.lang { font-size: .8rem; letter-spacing: .1em; color: var(--muted); padding: 8px; transition: color .2s; }
.lang:hover { color: var(--fg); }
.burger { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menü */
.menu {
  position: fixed; inset: 0; z-index: 20; padding: calc(var(--bar-h) + 16px) 24px 24px;
  background: rgba(0, 0, 0, .94); backdrop-filter: blur(12px);
  overflow-y: auto; animation: fade .25s var(--ease);
}
.menu ul { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; }
.menu li a {
  display: block; padding: 10px 0; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 300;
  color: var(--muted); transition: color .2s, transform .3s var(--ease);
}
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--fg); transform: translateX(8px); }
.menu__sep { height: 1px; background: var(--line); margin: 12px 0; }
.menu:not([hidden]) li { animation: rise .5s var(--ease) backwards; }
.menu li:nth-child(n) { animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Startseite: dunkler Raum mit Bühnenlicht. Der Hintergrund (.stage) steht fest, der Inhalt scrollt darüber. */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.stage__bg {
  position: absolute; inset: -4%;
  background:
    var(--hero, none) center / cover no-repeat,
    var(--bg-2);
  animation: drift 30s ease-in-out infinite alternate;
}
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #0008 0, transparent 14%); }
@keyframes drift { to { transform: scale(1.06) translate3d(-1%, -.6%, 0); } }
/* Logo + Buttons mittig; sticky, bis der Inhalt darunter sie nach oben schiebt */
.hero { position: relative; min-height: 100svh; display: flow-root; }
.hero__content { position: sticky; top: 50svh; margin-top: 50svh; transform: translateY(-50%); text-align: center; padding: 0 20px; display: grid; justify-items: center; gap: 20px; animation: rise 1.2s var(--ease) backwards; }
.hero__logo { width: min(720px, 86vw); height: auto; filter: drop-shadow(0 0 30px var(--glow)); }
.hero__wordmark { margin: 0; font-size: clamp(4rem, 18vw, 11rem); letter-spacing: .12em; font-weight: 800; text-shadow: 0 0 40px var(--glow); }
.hero__tagline { margin: 0; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }

.btn {
  display: inline-block; padding: 12px 28px; border: 1px solid var(--fg); border-radius: 999px;
  letter-spacing: .1em; text-transform: uppercase; font-size: .8rem;
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn:hover { background: var(--fg); color: #000; box-shadow: 0 0 30px var(--glow); }

/* Inhaltsseiten */
.wrap { max-width: 1200px; margin: 0 auto; padding: calc(var(--bar-h) + 32px) 20px 64px; animation: rise .6s var(--ease) backwards; }
.center { text-align: center; }
.page-title { font-weight: 300; letter-spacing: .08em; margin: 0 0 32px; }
.muted { color: var(--muted); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: #fff5; box-shadow: 0 10px 40px #fff1; }
.card img, .card__ph { aspect-ratio: 1; width: 100%; object-fit: cover; }
.card__ph { display: grid; place-items: center; font-size: 2rem; color: var(--muted); background: radial-gradient(circle at 50% 30%, #222, #0a0a0c); }
.card__meta { padding: 12px; display: grid; gap: 2px; font-size: .9rem; }

/* Seitenwechsel */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Schritt 2: Hub, Karten, Player, Formulare ===== */
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }

.wrap--wide { max-width: 1400px; }
.wrap--narrow { max-width: 440px; }
.section-title { font-weight: 300; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: var(--muted); margin: 48px 0 20px; }
.topbar__user { font-size: .8rem; color: var(--muted); max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.link:hover { border-color: var(--fg); }

.btn { background: transparent; color: var(--fg); cursor: pointer; font-family: inherit; }
.btn--solid { background: var(--fg); color: #000; }
.btn--solid:hover { background: #fff; box-shadow: 0 0 34px var(--glow); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Karten mit Play-Overlay */
.card__art { position: relative; }
.card__meta a:hover { text-decoration: underline; }
.card__play {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fg); color: #000; display: grid; place-items: center;
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .25s, transform .3s var(--ease), box-shadow .25s;
}
.card__play svg { width: 22px; height: 22px; fill: currentColor; }
.card__play:hover { box-shadow: 0 0 26px var(--glow); }
.card.is-current { border-color: #fff8; }
.card.is-playing .card__art::after {
  content: ""; position: absolute; left: 10px; bottom: 12px; width: 18px; height: 16px; pointer-events: none;
  background: linear-gradient(#fff, #fff) 0 100% / 4px 60% no-repeat, linear-gradient(#fff, #fff) 7px 100% / 4px 100% no-repeat, linear-gradient(#fff, #fff) 14px 100% / 4px 40% no-repeat;
  animation: eq .9s ease-in-out infinite alternate;
}
@keyframes eq { 50% { transform: scaleY(.55); transform-origin: bottom; } }

.fav { background: none; border: 0; cursor: pointer; color: var(--fg); padding: 8px; display: inline-grid; place-items: center; }
.fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease), fill .2s; }
.fav[aria-pressed="true"] svg { fill: #fff; filter: drop-shadow(0 0 8px var(--glow)); }
.fav:active svg { transform: scale(1.3); }
.card .fav { position: absolute; top: 4px; right: 4px; opacity: .0; transition: opacity .2s; text-shadow: 0 0 6px #000; }
.card:hover .fav, .card .fav[aria-pressed="true"], .card .fav:focus-visible { opacity: 1; }
@media (hover: none) { .card .fav { opacity: 1; } }
.fav--big { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; }
.fav--big span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* Gruppen-Chips, Werkzeugleiste */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chips--small { margin: 12px 0 0; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--fg); border-color: #fff6; }
.chip[aria-current="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }

/* Hub */
.strip { list-style: none; margin: 0 -20px; padding: 4px 20px 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip .card { flex: 0 0 min(62vw, 210px); scroll-snap-align: start; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tile {
  position: relative; display: grid; gap: 6px; align-content: end; min-height: 120px; padding: 20px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), #fff2, transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover { transform: translateY(-4px); border-color: #fff7; box-shadow: 0 12px 40px #fff1; }
.tile:hover::before { opacity: 1; }
.tile b { position: relative; font-size: 1.15rem; font-weight: 500; letter-spacing: .04em; }
.tile span { position: relative; color: var(--muted); font-size: .85rem; }
.tile--hero { grid-column: span 2; background: linear-gradient(135deg, #1b1b22, #0a0a0c); }
.tile--hero b { font-size: 1.6rem; }
@media (max-width: 520px) { .tile--hero { grid-column: auto; } }

/* Songseite */
.card__play--inline { position: static; opacity: 1; transform: none; width: 38px; height: 38px; flex: none; }
.version.is-playing .card__play--inline { box-shadow: 0 0 20px var(--glow); }

/* Formulare */
.form { display: grid; gap: 16px; margin: 0 0 20px; }
.form label { display: grid; gap: 6px; }
.form label > span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); padding: 12px 14px; font: inherit; transition: border-color .2s, box-shadow .2s; }
.form input:focus { outline: 0; border-color: #fff9; box-shadow: 0 0 0 3px #fff2; }
.form .btn { justify-self: start; }
.form-error { border: 1px solid #ff6b6b66; color: #ff9b9b; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }

/* Admin */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.admin { border-collapse: collapse; width: 100%; font-size: .85rem; }
.admin th, .admin td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.admin th:nth-child(2), .admin td:nth-child(2) { text-align: left; }
.admin th { color: var(--muted); font-weight: 400; position: sticky; top: var(--bar-h); background: var(--bg); }
.admin__title { width: min(40vw, 320px); background: transparent; border: 1px solid transparent; color: var(--fg); padding: 6px 8px; border-radius: 6px; font: inherit; }
.admin__title:hover, .admin__title:focus { border-color: var(--line); outline: 0; background: var(--bg-2); }
.admin input[type=checkbox] { width: 18px; height: 18px; accent-color: #fff; }
.admin tr.saved { background: #ffffff14; }
.admin tr.failed { background: #ff6b6b22; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  background: #fff; color: #000; padding: 10px 18px; border-radius: 999px; font-size: .9rem; max-width: 92vw; transition: opacity .3s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; font-weight: 600; }

/* Player */
.player {
  position: fixed; inset: auto 0 0 0; z-index: 40; background: rgba(8, 8, 10, .92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); animation: rise .5s var(--ease);
}
.player__seek { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 14px; margin: -7px 0 0; background: transparent; cursor: pointer; --p: 0%; }
.player__seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, #fff var(--p), #ffffff30 var(--p)); }
.player__seek::-moz-range-track { height: 3px; background: #ffffff30; }
.player__seek::-moz-range-progress { height: 3px; background: #fff; }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--glow); opacity: 0; transition: opacity .2s; }
.player__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.player:hover .player__seek::-webkit-slider-thumb, .player__seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.player__main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 16px 10px; }
.player__track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__cover { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg-2); }
.player__text { display: grid; min-width: 0; }
.player__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.player__sub { color: var(--muted); }
.player__controls { display: flex; align-items: center; gap: 6px; }
.player__right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.player__time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; white-space: nowrap; }
.pbtn { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s, color .2s; }
.pbtn svg { width: 22px; height: 22px; fill: currentColor; }
.pbtn:hover { background: #ffffff1a; }
.pbtn--main { width: 46px; height: 46px; background: var(--fg); color: #000; }
.pbtn--main:hover { background: #fff; transform: scale(1.06); box-shadow: 0 0 24px var(--glow); }
.pbtn--ghost { color: var(--muted); }
.pbtn--ghost[aria-pressed="true"] { color: var(--fg); }
.pbtn--ghost[aria-pressed="true"]::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); }
.pbtn i { display: none; position: absolute; font-size: .55rem; font-style: normal; font-weight: 700; top: 13px; }
.pbtn[data-mode="one"] i { display: block; }
.fav--player { padding: 8px; }
.player__vol { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.player__vol svg { width: 18px; height: 18px; fill: currentColor; }
.player__vol input { width: 84px; accent-color: #fff; }
.player.is-playing .player__cover { box-shadow: 0 0 20px #fff3; }
.player__queue {
  position: absolute; bottom: 100%; right: 0; width: min(440px, 100%); max-height: min(60svh, 460px); overflow-y: auto; padding: 8px 16px 12px;
  background: rgba(10, 10, 12, .94); backdrop-filter: blur(16px); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.player__queue.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.player__queue-head { display: flex; align-items: center; justify-content: space-between; }
.player__queue ol { list-style: none; margin: 0; padding: 0; }
.player__queue li button { width: 100%; text-align: left; background: none; border: 0; color: var(--muted); padding: 8px 4px; font: inherit; cursor: pointer; border-radius: 6px; }
.player__queue li button:hover { color: var(--fg); background: #ffffff0d; }
.player__queue li button.is-current { color: var(--fg); font-weight: 600; }

@media (max-width: 720px) {
  .player__vol, .player__time { display: none; }
  .player__main { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 6px 10px 10px; }
  .player__right { gap: 0; }
}
/* Kleine Smartphones: eine Zeile. Zufall/Wiederholen nur bei geöffneter Warteschlange (anstelle von Zurück/Weiter) */
@media (max-width: 640px) {
  .player__controls [data-p=shuffle], .player__controls [data-p=repeat] { display: none; }
  .player.queue-open .player__controls [data-p=prev], .player.queue-open .player__controls [data-p=next] { display: none; }
  .player.queue-open .player__controls [data-p=shuffle], .player.queue-open .player__controls [data-p=repeat] { display: grid; }
  .player__cover { width: 40px; height: 40px; }
  .player__queue { width: 100%; border-radius: 14px 14px 0 0; }
}

.card__art { aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.card__art .card__ph { height: 100%; }
.grid, .strip { align-items: start; }
.hero__tagline { text-shadow: 0 0 14px #000; color: #c9c9d0; }

/* ===== Startseite: Songliste über dem festen Hintergrund ===== */
.hub { max-width: none; background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .84) 240px, rgba(0, 0, 0, .9) 100%);
  padding-left: max(20px, calc((100vw - 1400px) / 2 + 20px)); padding-right: max(20px, calc((100vw - 1400px) / 2 + 20px)); padding-top: 72px; min-height: 60svh; }

/* Cover startet den Song, (i) öffnet die Details */
.card__cover { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; overflow: hidden; }
.card__cover img, .card__cover .card__ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.card:hover .card__cover img, .card:hover .card__cover .card__ph { transform: scale(1.05); }

/* PWA: Systemleisten im installierten Modus */
.topbar { padding-top: env(safe-area-inset-top); height: calc(var(--bar-h) + env(safe-area-inset-top)); }
.menu { padding-top: calc(var(--bar-h) + 16px + env(safe-area-inset-top)); }

@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Scroll-Hinweis unten im ersten Bildschirm */
.hero__scroll { position: fixed; z-index: 5; transition: opacity .35s var(--ease); bottom: calc(24px + var(--player-h)); left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid #fff6; border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: wheel 1.8s var(--ease) infinite; }
html.scrolled .hero__scroll { opacity: 0; pointer-events: none; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Kartenfuß: Glas-Effekt passend zum Cover, ganzer Bereich ist ein Link zur Info-Übersicht */
.card { content-visibility: auto; contain-intrinsic-size: auto 300px; }
.card__meta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 12px; font-size: .9rem; border-top: 1px solid #ffffff1f; transition: background .25s; }
.card__glass { position: absolute; left: -24px; top: -24px; z-index: -2; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; object-position: center bottom; filter: blur(20px) saturate(1.4); opacity: .75; pointer-events: none; }
.card__meta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #ffffff14, #0000004d); backdrop-filter: blur(6px); }
.card__meta:hover::after { background: linear-gradient(180deg, #ffffff24, #00000033); }
.card__text { display: grid; min-width: 0; gap: 2px; }
.card__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px #0008; }
.card__date { color: #ffffffc0; font-size: .85rem; text-shadow: 0 1px 6px #0008; }
.card__i { flex: none; width: 22px; height: 22px; color: #fff; opacity: .4; transition: color .2s, transform .3s var(--ease); }
.card__meta:hover .card__i { opacity: .85; transform: scale(1.12); }
.card__meta:hover strong { text-decoration: underline; }
.card.is-playing 
/* Test-Modi (?lite=1 / ?lite=2): ohne aufwendige Effekte */
.lite .card { content-visibility: visible; }
.lite .stage__bg { animation: none; }
.lite .card__meta::after { backdrop-filter: none; }
.lite .card__glass { display: none; }
.lite-2 .stage__bg { background: #0a0a0c; }

.chip--fav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -2px; margin-right: 6px; }
.chip--fav[aria-current="true"] svg { fill: currentColor; }

/* ===== Songseite: kompakt und lebendig ===== */
.song { max-width: 1000px; margin: 0 auto; padding: calc(var(--bar-h) + 12px) 20px 48px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 14px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .85rem; color: var(--muted); background: #ffffff0d; transition: color .2s, background .2s; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--fg); background: #ffffff1a; }
.song__hero { display: grid; grid-template-columns: minmax(0, 360px) 1fr; align-items: end; animation: rise .6s var(--ease) backwards; }
.song__art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--bg-2); box-shadow: 0 24px 70px #0009, 0 0 0 1px #ffffff14; }
.song__art img, .song__art .card__ph { width: 100%; height: 100%; object-fit: cover; }
.song__art .card__ph { font-size: 4rem; }
.song__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000a, transparent 45%); pointer-events: none; }
.song__body { padding: 0 0 0 28px; display: grid; gap: 14px; align-content: end; }
.song__meta { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.song__meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.song__title { margin: 0; font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.1; font-weight: 300; letter-spacing: .02em; overflow-wrap: anywhere; }
.song__actions { display: flex; align-items: center; gap: 12px; }
.song__play { display: inline-flex; align-items: center; gap: 10px; padding-left: 20px; cursor: pointer; }
.song__play svg { width: 20px; height: 20px; fill: currentColor; }
.song__play .i-pause { display: none; }
.song__play.is-playing .i-play { display: none; }
.song__play.is-playing .i-pause { display: block; }
.fav--big { width: 46px; height: 46px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
.fav--big svg { width: 22px; height: 22px; }
.chips--small { margin: 0; gap: 6px; }
.chips--small .chip { padding: 4px 12px; font-size: .78rem; }

.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border: 0; }
.version { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.version:hover { border-color: #fff5; transform: translateX(3px); }
.version.is-current { border-color: #fff8; background: #ffffff12; }
.version__text { display: grid; line-height: 1.25; min-width: 0; }
.version__text strong { font-weight: 500; }
.version__text .muted { font-size: .8rem; }
.version__len { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.eq { display: flex; visibility: hidden; width: 18px; height: 16px; align-items: flex-end; gap: 3px; }
.eq i { width: 4px; background: #fff; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 60%; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.3s; }
.eq i:nth-child(3) { height: 40%; animation-delay: -.6s; }
.version.is-playing .eq { visibility: visible; }

@media (max-width: 640px) {
  .song { padding: calc(var(--bar-h) + 6px) 0 40px; }
  .back { margin-left: 16px; }
  .song__hero { grid-template-columns: 1fr; }
  /* Cover über die volle Breite, die Titel-Karte schiebt sich als Glas darüber */
  .song__art { border-radius: 0; box-shadow: none; max-height: 58svh; }
  .song__art::after { background: linear-gradient(to top, #000 0, #0000 55%); }
  .song__body { margin: -64px 14px 0; padding: 16px; position: relative; z-index: 1; border: 1px solid #ffffff1f; border-radius: 18px; background: rgba(10, 10, 12, .62); backdrop-filter: blur(16px); gap: 12px; }
  .song__title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .song > .section-title, .versions { margin-left: 14px; margin-right: 14px; }
  .song > .section-title { margin-top: 28px; }
}

/* Scroll-Symbol: Position setzt app.js (mittig zwischen Logo und unterem Rand) */
.hero__scroll { bottom: auto; top: 78svh; }

/* ===== Filter als aufklappbarer Bereich hinter rundem Button ===== */
.toolbar { margin-bottom: 4px; }
.btn--round { aspect-ratio: 1; align-self: stretch; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }
.btn--round svg { width: 20px; height: 20px; }
.btn--round[aria-expanded="true"] { background: var(--fg); color: #000; }
.toolbar__filter { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.filterpanel { display: grid; grid-template-rows: 1fr; }
.filterpanel__in { min-height: 0; overflow: hidden; }
.filterpanel .chips { margin: 0; padding: 14px 0 10px; }
.js .filterpanel { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ease), opacity .3s; }
.js .filterpanel.open { grid-template-rows: 1fr; opacity: 1; }
.js .filterpanel:not(.open) { visibility: hidden; transition: grid-template-rows .4s var(--ease), opacity .3s, visibility 0s linear .4s; }
.grid { margin-top: 20px; }

/* Toolbar: gleich hohe Buttons, runder Filter-Button exakt so hoch wie breit */
.toolbar { gap: 12px; }
.toolbar .btn { height: 44px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.toolbar .btn--round { width: 44px; padding: 0; flex: none; aspect-ratio: auto; align-self: auto; }
@media (max-width: 480px) {
  .toolbar { gap: 8px; }
  .toolbar .btn { padding: 0 14px; font-size: .74rem; }
  .toolbar .btn--round { padding: 0; }
  .toolbar__filter { flex-basis: 100%; }
}
