/* Album-Landingpage „Nie alleine in Berlin“ – Look angelehnt an moderne Musik-Plattformen */
:root {
  --a-grund: #121212;
  --a-flaeche: #181818;
  --a-hover: #2a2a2a;
  --a-text: #ffffff;
  --a-grau: #b3b3b3;
  --a-akzent: #f0d24a;        /* Gelb aus dem Cover */
  --a-album: #c2557a;         /* Pink aus dem Cover, wird per JS aus dem Cover gelesen */
  --a-rot: #e40000;           /* Markenrot */
}
* { box-sizing: border-box; }
html { background: var(--a-grund); }
body.album-seite {
  margin: 0; min-height: 100vh;
  background: var(--a-grund); color: var(--a-text);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px;
}
.album-seite h1, .album-seite strong { font-family: 'Montserrat', system-ui, sans-serif; }
.springen { position: absolute; left: -9999px; }
.springen:focus { left: 10px; top: 10px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }

/* Kopf */
.a-kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(18,18,18,.0); transition: background .25s;
}
.a-kopf.fest { background: rgba(18,18,18,.92); backdrop-filter: blur(8px); }
.a-logo img {
  display: block; width: 140px; height: auto;
  background: rgba(255,255,255,.94); border-radius: 8px; padding: 4px 8px;
}
.a-zurueck {
  color: var(--a-text); text-decoration: none; font-weight: 600; font-size: .9rem;
  background: rgba(0,0,0,.45); padding: 8px 16px; border-radius: 999px;
}
.a-zurueck:hover { background: rgba(0,0,0,.7); }

/* Held mit Cover */
.a-held {
  position: relative; margin-top: -64px; isolation: isolate;
  display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px);
  padding: 96px clamp(16px, 4vw, 40px) 28px;
}
.a-held-grund {
  position: absolute; inset: 0 0 -260px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--a-album) 0%, color-mix(in srgb, var(--a-album) 45%, var(--a-grund)) 55%, var(--a-grund) 100%);
}
.a-cover {
  width: clamp(160px, 24vw, 260px); height: auto; aspect-ratio: 1; object-fit: cover;
  box-shadow: 0 8px 40px rgba(0,0,0,.55); border-radius: 4px; flex-shrink: 0;
}
.a-typ { margin: 0 0 6px; font-size: .85rem; font-weight: 600; }
.a-held h1 {
  margin: 0 0 14px; line-height: 1; letter-spacing: -.03em;
  font-size: clamp(2.2rem, 6.5vw, 5.4rem); font-weight: 700;
}
.a-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: rgba(255,255,255,.85); }
.a-meta img { border-radius: 50%; background: #fff; }
.a-meta strong { color: #fff; }

/* Steuerung */
.a-steuerung, .a-liste, .a-info { position: relative; z-index: 1; }
.a-steuerung {
  display: flex; align-items: center; gap: 24px;
  padding: 20px clamp(16px, 4vw, 40px);
}
.a-play-gross {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--a-akzent); color: #000; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.35); transition: transform .15s, filter .15s;
}
.a-play-gross:hover { transform: scale(1.05); filter: brightness(1.08); }
.a-play-gross svg { width: 26px; height: 26px; }
.a-zufall, .a-teilen { background: none; border: 0; cursor: pointer; color: var(--a-grau); display: grid; place-items: center; padding: 0; }
.a-zufall svg, .a-teilen svg { width: 30px; height: 30px; }
.a-zufall:hover, .a-teilen:hover { color: #fff; }
.a-zufall[aria-pressed="true"] { color: var(--a-akzent); }
.ico-pause { display: none; }
.spielt .ico-play { display: none; }
.spielt .ico-pause { display: inline; }

/* Titelliste */
.a-liste { padding: 0 clamp(8px, 3vw, 28px); }
.a-zeile {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 64px;
  align-items: center; gap: 16px; padding: 8px 16px; border-radius: 6px;
}
.a-zeile-kopf {
  color: var(--a-grau); font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.1);
  border-radius: 0; margin-bottom: 12px;
}
.a-zeile-kopf svg { width: 16px; height: 16px; }
.a-titel { list-style: none; margin: 0; padding: 0; }
.a-titel .a-zeile { cursor: pointer; }
.a-titel .a-zeile:hover, .a-titel .a-zeile:focus-visible { background: var(--a-hover); outline: none; }
.a-titel .a-zeile.aktiv .a-name { color: var(--a-akzent); }
.a-nr { text-align: center; color: var(--a-grau); font-variant-numeric: tabular-nums; position: relative; }
.a-nr .n { display: inline; }
.a-nr .p { display: none; width: 18px; height: 18px; vertical-align: middle; }
.a-zeile:hover .a-nr .n { display: none; }
.a-zeile:hover .a-nr .p { display: inline; color: #fff; }
.a-zeile.aktiv .a-nr .n { display: none; }
.a-zeile.aktiv .a-nr .eq { display: inline-flex; }
.a-zeile.aktiv:hover .a-nr .eq { display: none; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--a-akzent); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.pausiert .eq i { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 14px; } }

.a-titel-zelle { display: flex; align-items: center; gap: 12px; min-width: 0; }
.a-titel-zelle img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.a-titel-zelle div { min-width: 0; }
.a-name { display: block; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-kuenstler { display: block; font-size: .85rem; color: var(--a-grau); }
.a-neu {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px;
  background: var(--a-akzent); color: #000; font-size: .65rem; font-weight: 700; letter-spacing: .04em; vertical-align: 1px;
}
.a-rel, .a-zeit { color: var(--a-grau); font-size: .88rem; font-variant-numeric: tabular-nums; }
.a-zeit { text-align: right; }

/* Noch nicht veröffentlicht */
.a-zeile.bald { cursor: default; opacity: .55; }
.a-zeile.bald:hover { background: transparent; }
.a-zeile.bald .a-titel-zelle img { filter: grayscale(1) blur(2px); }
.a-zeile.bald:hover .a-nr .n { display: inline; }
.a-zeile.bald:hover .a-nr .p { display: none; }
.a-schloss { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.a-info { padding: 40px clamp(16px, 4vw, 40px); color: var(--a-grau); font-size: .8rem; }
.a-info p { margin: 0 0 4px; }
.a-datum { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 10px !important; }
.a-hinweis { color: var(--a-grau); padding: 16px; }

/* Player unten */
.a-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 10px 16px; background: #000; border-top: 1px solid #282828;
}
.a-player[hidden] { display: none; }
.a-player-titel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.a-player-titel img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.a-player-titel div { min-width: 0; }
.a-player-titel strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-player-titel span { font-size: .78rem; color: var(--a-grau); }
.a-player-mitte { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.a-player-knoepfe { display: flex; align-items: center; gap: 22px; }
.a-player-knoepfe button { background: none; border: 0; cursor: pointer; color: var(--a-grau); padding: 0; display: grid; place-items: center; }
.a-player-knoepfe button:hover { color: #fff; }
.a-player-knoepfe svg { width: 22px; height: 22px; }
.a-player-knoepfe .p-play { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; }
.a-player-knoepfe .p-play:hover { color: #000; transform: scale(1.06); }
.a-player-knoepfe .p-play svg { width: 20px; height: 20px; }
.a-fortschritt { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 600px; font-size: .72rem; color: var(--a-grau); font-variant-numeric: tabular-nums; }
.a-fortschritt input { flex: 1; }
.a-player-rechts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--a-grau); }
.a-player-rechts svg { width: 18px; height: 18px; }
.a-player-rechts input { width: 110px; }

input[type=range] {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--wert, 0%), #4d4d4d var(--wert, 0%));
}
input[type=range]:hover { background: linear-gradient(90deg, var(--a-akzent) var(--wert, 0%), #4d4d4d var(--wert, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; }
input[type=range]:hover::-webkit-slider-thumb { opacity: 1; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }

/* Toast */
.a-toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: #fff; color: #000; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .9rem; z-index: 40;
}

/* Mobil */
@media (max-width: 720px) {
  .a-held { flex-direction: column; align-items: center; text-align: center; padding-top: 84px; }
  .a-cover { width: min(66vw, 280px); }
  .a-meta { justify-content: center; }
  .a-zeile { grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; padding: 8px; }
  .a-nr, .a-rel { display: none; }
  .a-zeile-kopf { display: none; }
  .a-player { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .a-player-mitte { display: contents; }
  .a-player-knoepfe { gap: 14px; }
  .a-fortschritt { position: absolute; left: 0; right: 0; top: -2px; max-width: none; }
  .a-fortschritt span { display: none; }
  .a-fortschritt input { height: 3px; border-radius: 0; }
  .a-player-rechts { display: none; }
  .a-player-titel img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; height: 10px; }
}
