/* SongSpot – Umsetzung des Design-Entwurfs (SongSpot.dc.html).
   Tokens, Radien, Schriften und Bewegungen stammen aus dem Entwurf; der
   Akzent ist über SONGSPOT_ACCENT in der .env austauschbar. */

/* ── Schriften (lokal, kein CDN) ─────────────────────────────────────────── */
@font-face { font-family: Sora; src: url(/fonts/Sora-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Sora; src: url(/fonts/Sora-400-latin-ext.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Sora; src: url(/fonts/Sora-500-latin.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Sora; src: url(/fonts/Sora-500-latin-ext.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Sora; src: url(/fonts/Sora-600-latin.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Sora; src: url(/fonts/Sora-600-latin-ext.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Sora; src: url(/fonts/Sora-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Sora; src: url(/fonts/Sora-700-latin-ext.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* DM Sans ist ein Variable Font – eine Datei deckt 400–500 ab. */
@font-face { font-family: 'DM Sans'; src: url(/fonts/DMSans-latin.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Sans'; src: url(/fonts/DMSans-latin-ext.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono-400-latin-ext.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono-500-latin.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono-500-latin-ext.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono-700-latin-ext.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --a:  #d8fb52;          /* wird von app.js aus der Serverkonfiguration gesetzt */
  --at: #0d1005;
  --bg: #08090a;
  --fg: #f2f3f4;

  --s1: #0e0f12;   /* Karten */
  --s2: #101113;   /* Eingaben, Chips */
  --s3: #0f1114;   /* Dropdowns */
  --s-h1: #16181c; /* Hover Karten */
  --s-h2: #191b1f;
  --s-h3: #1a1c20;

  --t1: #c9cccf;
  --t2: #a8acb1;
  --t3: #8e9298;
  --t4: #7e838a;
  --t5: #6f747a;

  --b1: rgba(255,255,255,.06);
  --b2: rgba(255,255,255,.07);
  --b3: rgba(255,255,255,.09);
  --b4: rgba(255,255,255,.1);
  --b5: rgba(255,255,255,.14);
  --b6: rgba(255,255,255,.18);

  --sans: 'DM Sans', Helvetica, system-ui, sans-serif;
  --display: Sora, 'DM Sans', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --row-h: 66px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button, input { font-family: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a { color: var(--a); text-decoration: none; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12); border-radius: 99px;
  border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Bewegung ────────────────────────────────────────────────────────────── */
@keyframes ss-rise { from { opacity:0; transform:translateY(18px) scale(.995); } to { opacity:1; transform:none; } }
@keyframes ss-fade { from { opacity:0; } to { opacity:1; } }
@keyframes ss-drop { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
@keyframes ss-spin { to { transform:rotate(360deg); } }
@keyframes ss-shimmer { from { background-position:-260px 0; } to { background-position:340px 0; } }
@keyframes ss-float { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(4%,-5%,0) scale(1.08); } }
@keyframes ss-glow {
  0%,100% { box-shadow:0 0 0 1px color-mix(in srgb, var(--a) 35%, transparent), 0 0 42px -14px color-mix(in srgb, var(--a) 50%, transparent); }
  50%     { box-shadow:0 0 0 1px color-mix(in srgb, var(--a) 60%, transparent), 0 0 60px -10px color-mix(in srgb, var(--a) 70%, transparent); }
}
@keyframes ss-bar { 0%,100% { transform:scaleY(.35); } 50% { transform:scaleY(1); } }
@keyframes ss-flash {
  0%   { background: color-mix(in srgb, var(--a) 42%, transparent); }
  100% { background: linear-gradient(90deg, color-mix(in srgb, var(--a) 16%, transparent), color-mix(in srgb, var(--a) 4%, transparent)); }
}

.rise { animation: ss-rise .6s var(--ease) both; }
.fade { animation: ss-fade .4s ease both; }
.d1 { animation-delay: .04s; }
.d2 { animation-delay: .1s; }
.d3 { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Hintergrund ─────────────────────────────────────────────────────────── */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blobs span {
  position: absolute; border-radius: 50%; filter: blur(20px);
  animation: ss-float 22s ease-in-out infinite;
}
.blobs span:nth-child(1) {
  top: -18vh; left: -10vw; width: 60vw; height: 60vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--a) 10%, transparent), transparent 62%);
}
.blobs span:nth-child(2) {
  bottom: -26vh; right: -12vw; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(120,140,255,.09), transparent 62%);
  animation-duration: 28s; animation-direction: reverse;
}

.view { position: relative; z-index: 1; }

/* ── Bausteine ───────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--a); margin: 0 0 12px;
}
.eyebrow--dim { color: var(--t4); font-size: 11px; }

.h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 52px); line-height: 1.06; letter-spacing: -.035em;
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.032em; line-height: 1.05; margin: 0;
}
.h3 { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: -.015em; margin: 0; }
.lede { margin: 0 0 40px; color: var(--t3); font-size: 16px; line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
.dim { color: var(--t5); font-size: 12.5px; }

.mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--a);
  display: grid; place-items: center; flex: none;
}
.mark--sm { width: 28px; height: 28px; border-radius: 9px; }
.mark i { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.mark i b { width: 3px; height: 100%; background: var(--at); border-radius: 2px; animation: ss-bar 1.1s ease-in-out infinite; }
.mark i b:nth-child(2) { animation-delay: .18s; }
.mark i b:nth-child(3) { animation-delay: .36s; }
.mark--sm i { height: 12px; gap: 2px; }
.mark--sm i b { width: 2.5px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--fg); }
.brand--sm span { font-size: 16px; }

.btn-a {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  height: 56px; padding: 0 26px; border-radius: 16px;
  background: var(--a); color: var(--at);
  font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em;
  box-shadow: 0 14px 40px -18px color-mix(in srgb, var(--a) 90%, transparent);
  transition: transform .35s var(--ease), box-shadow .35s ease, filter .25s ease;
}
.btn-a:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px color-mix(in srgb, var(--a) 90%, transparent); filter: brightness(1.06); }
.btn-a:active { transform: translateY(0) scale(.985); }
.btn-a--block { width: 100%; }
.btn-a--sm { height: 46px; padding: 0 22px; border-radius: 13px; font-size: 14px; box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--a) 90%, transparent); }
.btn-a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 16px; border-radius: 99px;
  background: var(--s2); border: 1px solid var(--b2); color: var(--t1);
  font-size: 13px; transition: all .3s var(--ease);
}
.btn-ghost:hover { background: var(--s-h3); color: #fff; }
.btn-ghost--back { padding-left: 12px; }
.btn-ghost--back:hover { transform: translateX(-3px); }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14); border-top-color: var(--a);
  animation: ss-spin .7s linear infinite; flex: none;
}
.spinner--onaccent { border-color: rgba(13,16,5,.28); border-top-color: var(--at); width: 17px; height: 17px; }

.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 99px;
  background: var(--s2); border: 1px solid var(--b2);
}
.chip img, .chip .chip__ph {
  width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover;
  background: linear-gradient(135deg, #ffb37a, #c25b8f);
}
.chip span { font-size: 13px; color: var(--t1); }
.chip button { font-size: 12px; color: var(--t5); padding: 2px 4px; }
.chip button:hover { color: var(--a); }

/* Cover-Platzhalter: aus dem Namen abgeleitete Farbe statt grauem Kasten */
.art { position: relative; overflow: hidden; background: #15171b; flex: none; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art[data-hue] {
  background:
    radial-gradient(120% 90% at 22% 18%, oklch(.74 .17 var(--h) / .95), transparent 58%),
    radial-gradient(100% 80% at 82% 88%, oklch(.52 .19 var(--h2) / .95), transparent 62%),
    linear-gradient(150deg, oklch(.36 .10 var(--h)), oklch(.16 .05 var(--h2)));
}

/* ── Suchfeld ────────────────────────────────────────────────────────────── */
.search { position: relative; }
.search__box {
  display: flex; align-items: center; gap: 13px;
  height: 58px; padding: 0 18px; border-radius: 16px;
  background: var(--s2); border: 1px solid var(--b3);
  transition: border-color .3s ease;
}
.search__box:hover { border-color: var(--b6); }
.search__box:focus-within { border-color: color-mix(in srgb, var(--a) 45%, transparent); }
.search__box input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--fg); font-size: 15.5px; letter-spacing: -.01em;
}
.search__box input::placeholder { color: var(--t4); }
.search__box input[type=search]::-webkit-search-decoration,
.search__box input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

.lens {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--t4);
  position: relative; flex: none;
}
.lens::after {
  content: ""; position: absolute; width: 2px; height: 7px; background: var(--t4);
  border-radius: 2px; right: -3px; bottom: -6px; transform: rotate(-45deg);
}

.clear {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--t2);
  font-size: 12px; line-height: 1; display: grid; place-items: center; flex: none;
}
.clear:hover { background: rgba(255,255,255,.16); color: #fff; }

.drop {
  position: absolute; top: 66px; left: 0; right: 0; z-index: 20;
  background: var(--s3); border: 1px solid var(--b4); border-radius: 18px; padding: 10px;
  box-shadow: 0 32px 70px -24px rgba(0,0,0,.95);
  animation: ss-drop .28s var(--ease) both;
  max-height: 440px; overflow: auto;
}
.drop__label {
  padding: 8px 10px 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--t5); margin: 0;
}
.drop__empty { padding: 26px 14px; text-align: center; color: var(--t4); font-size: 13.5px; margin: 0; }

/* Artist-Gruppe mit Playlist-Pillen */
.agroup { padding: 11px; border-radius: 14px; background: rgba(255,255,255,.03); margin-bottom: 8px; }
.agroup__head { display: flex; align-items: center; gap: 13px; margin-bottom: 11px; }
.agroup__art { width: 38px; height: 38px; border-radius: 50%; }
.agroup__name { font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.agroup__sum { font-size: 12px; color: var(--t4); margin: 3px 0 0; }
.agroup__places { display: flex; flex-wrap: wrap; gap: 8px; }
.place {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 8px; border-radius: 99px;
  background: rgba(255,255,255,.05); border: 1px solid var(--b2);
  transition: all .3s var(--ease);
}
.place:hover {
  background: color-mix(in srgb, var(--a) 14%, transparent);
  border-color: color-mix(in srgb, var(--a) 40%, transparent);
  transform: translateY(-1px);
}
.place__art { width: 20px; height: 20px; border-radius: 6px; }
.place__name { font-size: 12.5px; color: #e6e8ea; }
.place__count { font-family: var(--mono); font-size: 11px; color: var(--a); }

/* Songzeile im Dropdown */
.sres {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 12px; transition: background .2s ease;
}
.sres:hover, .sres.is-on { background: rgba(255,255,255,.07); }
.sres__art { width: 40px; height: 40px; border-radius: 9px; }
.sres__txt { min-width: 0; flex: 1; }
.sres__title { font-size: 14px; font-weight: 500; letter-spacing: -.01em; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres__sub { font-size: 12px; color: var(--t4); margin: 3px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres__side { flex: none; display: flex; align-items: center; gap: 9px; }
.badge-pos {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--at); background: var(--a); padding: 5px 9px; border-radius: 7px;
}
.badge-more {
  font-family: var(--mono); font-size: 10.5px; color: var(--a);
  background: color-mix(in srgb, var(--a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
  padding: 4px 7px; border-radius: 7px; white-space: nowrap;
}
.badge-pl {
  font-size: 11.5px; color: var(--t3); background: rgba(255,255,255,.07);
  padding: 5px 10px; border-radius: 7px; max-width: 170px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Landing ─────────────────────────────────────────────────────────────── */
.land { max-width: 1180px; margin: 0 auto; padding: 22px 32px 90px; }
.land__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(48px, 9vh, 104px); }

.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__step {
  margin: 18px 0 0; min-height: 20px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t5);
}
.hero__facts {
  margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--b2);
  display: flex; flex-wrap: wrap; gap: 26px; list-style: none;
  color: var(--t5); font-size: 12.5px;
}

/* Vorschau des Treffer-Panels – dieselbe Sprache wie die echte App */
.demo {
  border-radius: 22px; padding: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 10%, transparent), color-mix(in srgb, var(--a) 2%, transparent) 46%, var(--s2) 46%);
  border: 1px solid color-mix(in srgb, var(--a) 22%, transparent);
}
.demo__row { display: flex; gap: 20px; align-items: center; }
.demo__art { width: 92px; height: 92px; border-radius: 16px; animation: ss-glow 3.4s ease-in-out infinite; }
.demo__title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; margin: 0; line-height: 1.15; }
.demo__sub { font-size: 13.5px; color: var(--t2); margin: 7px 0 0; }
.demo__num { display: flex; align-items: baseline; gap: 4px; margin-top: 22px; }
.demo__pos { font-family: var(--mono); font-weight: 700; font-size: 46px; letter-spacing: -.05em; color: var(--a); line-height: 1; }
.demo__of { font-family: var(--mono); font-size: 14px; color: var(--t4); }
.demo__bar { margin-top: 18px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.demo__bar i { display: block; height: 100%; border-radius: 99px; background: var(--a); }

.steps {
  margin-top: clamp(72px, 12vh, 132px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.step { padding: 24px; border-radius: 20px; background: var(--s1); border: 1px solid var(--b2); }
.step__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--a); margin: 0 0 14px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin: 0 0 8px; }
.step p { margin: 0; font-size: 13.5px; color: var(--t4); line-height: 1.55; }

.foot {
  margin-top: clamp(64px, 10vh, 110px); padding-top: 22px;
  border-top: 1px solid var(--b2);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t5);
}

.alert {
  margin: 20px 0 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(255,120,90,.1); border: 1px solid rgba(255,120,90,.3);
  color: #ffbfae; font-size: 13.5px;
}

/* ── Bibliothek ──────────────────────────────────────────────────────────── */
.lib { max-width: 1180px; margin: 0 auto; padding: 26px 32px 80px; }
.lib__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 6vh, 56px); }
.lib__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.lib__search { position: relative; z-index: 6; margin-bottom: 34px; }
.lib__meta { font-size: 13px; color: var(--t5); padding-bottom: 8px; white-space: nowrap; }

.grid-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.plcard {
  padding: 14px; border-radius: 20px; background: var(--s1);
  border: 1px solid var(--b2); text-align: left; width: 100%;
  transition: all .42s var(--ease);
}
.plcard:hover { background: var(--s-h2); transform: translateY(-4px); border-color: var(--b5); }
.plcard__art { position: relative; border-radius: 14px; aspect-ratio: 1; margin-bottom: 16px; }
.plcard__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%);
}
.plcard__play {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; background: var(--a);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.7);
  transition: transform .4s var(--ease);
}
.plcard:hover .plcard__play { transform: scale(1.09); }
.plcard__play i {
  width: 0; height: 0; margin-left: 3px;
  border-left: 11px solid var(--at); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.plcard__name { font-family: var(--display); font-weight: 500; font-size: 15.5px; letter-spacing: -.015em; margin: 0 0 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plcard__meta { font-size: 12.5px; color: var(--t4); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lib__empty { padding: 60px 0; text-align: center; color: var(--t4); }

/* ── Playlist-Ansicht ────────────────────────────────────────────────────── */
.pl { max-width: 1240px; margin: 0 auto; padding: 26px 32px 90px; }
.pl__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.pl__head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.pl__art { width: 132px; height: 132px; border-radius: 18px; flex: none; box-shadow: 0 26px 60px -26px rgba(0,0,0,.9); }
.pl__titles { padding-bottom: 6px; min-width: 0; }
.pl__meta { font-size: 13.5px; color: var(--t4); margin: 10px 0 0; }
.pl__search { position: relative; margin-bottom: 26px; z-index: 5; }

/* Treffer-Panel */
.sel {
  position: relative; border-radius: 22px; padding: 26px; margin-bottom: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 10%, transparent), color-mix(in srgb, var(--a) 2%, transparent) 46%, var(--s2) 46%);
  border: 1px solid color-mix(in srgb, var(--a) 22%, transparent);
  overflow: hidden;
}
.sel__row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sel__art { width: 112px; height: 112px; border-radius: 16px; animation: ss-glow 3.4s ease-in-out infinite; }
.sel__txt { flex: 1; min-width: 220px; }
.sel__title { font-family: var(--display); font-weight: 600; font-size: 27px; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.sel__sub { font-size: 14px; color: var(--t2); margin: 7px 0 0; }
.sel__right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sel__count { text-align: right; }
.sel__nums { display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
.sel__pos { font-family: var(--mono); font-weight: 700; font-size: 52px; letter-spacing: -.05em; color: var(--a); line-height: 1; }
.sel__of { font-family: var(--mono); font-size: 15px; color: var(--t4); }
.sel__label { font-size: 12px; color: var(--t4); margin: 8px 0 0; }
.sel__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sel__bar { margin-top: 24px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.sel__bar i { display: block; height: 100%; border-radius: 99px; background: var(--a); transition: width .8s var(--ease); }

/* Die vollständige Playlist */
.full {
  border-radius: 22px; background: var(--s1); border: 1px solid var(--b2); overflow: hidden;
}
.full__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--b1);
}
.full__hint { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--t5); }
.full__scroll { position: relative; max-height: 520px; overflow: auto; padding: 8px 12px 14px; }
.full__spacer { position: relative; }
.full__rows { position: absolute; inset-inline: 0; top: 0; margin: 0; padding: 0; list-style: none; }

.trow {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: var(--row-h); padding: 0 12px; border-radius: 13px;
  width: 100%; text-align: left;
  transition: background .28s ease, box-shadow .4s ease;
}
.trow:hover { background: rgba(255,255,255,.055); }
.trow__num {
  width: 26px; flex: none; text-align: right;
  font-family: var(--mono); font-size: 12.5px; color: var(--t5);
  font-variant-numeric: tabular-nums;
}
.trow__art { width: 44px; height: 44px; border-radius: 9px; }
.trow__txt { min-width: 0; flex: 1; }
.trow__title { font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow__artist { font-size: 12.5px; color: var(--t4); margin: 3px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow__album { width: 190px; flex: none; font-size: 12.5px; color: var(--t5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow__dur { width: 44px; flex: none; text-align: right;
  font-family: var(--mono); font-size: 12px; color: var(--t5); font-variant-numeric: tabular-nums; }

.trow.is-sel {
  background: linear-gradient(90deg, color-mix(in srgb, var(--a) 16%, transparent), color-mix(in srgb, var(--a) 4%, transparent));
  box-shadow: inset 3px 0 0 var(--a), 0 0 44px -18px color-mix(in srgb, var(--a) 80%, transparent);
}
.trow.is-sel .trow__num { color: var(--a); font-size: 11px; }
.trow.is-sel .trow__title { color: var(--a); }
.trow.is-flash { animation: ss-flash .9s ease-out; }

/* Skeletons während des Ladens */
.skel { padding: 10px 12px; }
.skel__row { display: flex; align-items: center; gap: 14px; padding: 11px 12px; }
.shim {
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05));
  background-size: 300px 100%; animation: ss-shimmer 1.3s linear infinite; border-radius: 4px;
}
.skel__n { width: 20px; height: 12px; flex: none; }
.skel__art { width: 44px; height: 44px; border-radius: 9px; flex: none; }
.skel__lines { flex: 1; display: grid; gap: 8px; }
.skel__lines i { display: block; height: 11px; }
.skel__lines i:last-child { height: 9px; opacity: .7; }

/* Ähnliche Songs */
.sim { margin-top: 26px; }
.sim__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.sim__hint { font-size: 12.5px; color: var(--t5); }
.sim__group { margin-bottom: 26px; }
.sim__glabel {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t5); margin: 0 0 12px;
}
.grid-rec { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.rec {
  padding: 14px; border-radius: 16px; background: var(--s1);
  border: 1px solid var(--b2); text-align: left; width: 100%;
  transition: all .38s var(--ease);
}
.rec:hover { background: var(--s-h1); transform: translateY(-4px); border-color: var(--b5); }
/* Als <a> gerendert würde die Karte sonst die Linkfarbe erben. */
.rec, .rec:hover, .rec:hover .rec__title { color: var(--fg); }
.rec__art { border-radius: 11px; aspect-ratio: 1; margin-bottom: 13px; }
.rec__title { font-size: 14px; font-weight: 500; letter-spacing: -.01em; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__artist { font-size: 12px; color: var(--t4); margin: 5px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__badge { margin-top: 11px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--a); }
.rec__badge--dim { color: var(--t5); }

/* ── Ladebalken, Toast, 404 ──────────────────────────────────────────────── */
.load { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: rgba(255,255,255,.06); }
.load i { display: block; height: 100%; width: 34%; background: var(--a); animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(390%); } }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50;
  margin: 0; padding: 12px 18px; border-radius: 13px;
  background: var(--s-h3); border: 1px solid var(--b5); color: var(--fg);
  font-size: 13.5px; max-width: min(440px, calc(100vw - 32px));
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.9);
}

.nf { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; }
.nf__box { max-width: 430px; }

/* ── Schmalere Fenster ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .demo { max-width: 460px; }
  .trow__album { display: none; }
}

@media (max-width: 720px) {
  .land, .lib, .pl { padding-left: 18px; padding-right: 18px; }
  .pl__head { gap: 16px; }
  .pl__art { width: 92px; height: 92px; border-radius: 14px; }
  .sel { padding: 20px; }
  .sel__row { gap: 18px; }
  .sel__art { width: 84px; height: 84px; }
  .sel__right { width: 100%; justify-content: space-between; gap: 16px; }
  .sel__pos { font-size: 42px; }
  .grid-pl { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .grid-rec { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .lib__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lib__meta { padding-bottom: 0; }
  .search__box input { font-size: 16px; } /* verhindert iOS-Zoom */
  .full__scroll { max-height: 60vh; }
  .chip span { display: none; }
  /* "Titel 147 hervorgehoben" bricht sonst zweizeilig neben die Überschrift. */
  .full__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .full__hint { font-size: 10px; }
}
