/* ---------- Basis ---------- */
:root {
  --bg: #0d0b12;
  --panel: #16131f;
  --panel-2: #1d1929;
  --line: #2a2438;
  --text: #ece9f4;
  --muted: #9a93ad;
  --accent: #ff2d78;      /* Play/Progress */
  --accent-2: #35e0e0;    /* Hover/Sekundär */
  --wave-idle: #443c5c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 50% -200px, #241a3a 0%, var(--bg) 60%) fixed var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 16px 16px 120px; }

/* ---------- Header ---------- */
.site-head {
  max-width: 860px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 14px; height: 26px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); clip-path: polygon(0 100%, 30% 55%, 15% 55%, 60% 0, 45% 45%, 60% 45%, 20% 100%); transform: skewX(-6deg); }
.head-search { margin-left: auto; }
.head-search input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 16px; width: 200px; font: inherit;
}
.head-search input:focus { border-color: var(--accent-2); outline: none; width: 240px; transition: width .2s; }

/* ---------- Hero / Filter ---------- */
.hero { padding: 24px 0 8px; }
.hero h1 { margin: 0; font-size: clamp(28px, 6vw, 44px); letter-spacing: .06em; text-transform: uppercase; }
.hero-sub { color: var(--muted); margin: 6px 0 0; letter-spacing: .25em; text-transform: uppercase; font-size: 12px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }
.filters select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font: inherit;
}
.btn-ghost { color: var(--muted); font-size: 14px; }

.pl-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--text); font-size: 14px; }
.pl-chip:hover { border-color: var(--accent-2); text-decoration: none; }

.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Track-Karten ---------- */
.tracklist { display: flex; flex-direction: column; gap: 14px; }
.track-card {
  display: flex; gap: 14px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.track-card.is-featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.track-card.is-playing { border-color: var(--accent); }
.tc-cover img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; display: block; background: var(--panel-2); }
.tc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-top { display: flex; align-items: center; gap: 12px; }
.tc-meta { min-width: 0; flex: 1; }
.tc-title { display: block; color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-artist { color: var(--muted); font-size: 14px; }
.tc-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.badge {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; white-space: nowrap;
}
a.badge:hover { color: var(--text); text-decoration: none; border-color: var(--accent-2); }
.badge-feat { color: var(--accent); border-color: var(--accent); }
.badge-warn { color: #ffb02e; border-color: #ffb02e; }

.play-btn {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #b1156f);
  display: grid; place-items: center; padding-left: 3px;
}
.play-btn:hover { filter: brightness(1.15); }
.play-big { width: 56px; height: 56px; flex-basis: 56px; font-size: 20px; }

.wave { position: relative; height: 64px; }
.wave-big { height: 96px; margin: 18px 0 6px; }
.wave canvas { width: 100%; height: 100%; display: block; cursor: pointer; border-radius: 6px; }

.tc-foot { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.tc-time { font-variant-numeric: tabular-nums; }
.tc-actions { margin-left: auto; display: flex; gap: 12px; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer;
  font: inherit; font-size: 13px;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Trackseite ---------- */
.track-page { flex-direction: column; }
.tp-head { display: flex; gap: 20px; }
.tp-cover { width: 180px; height: 180px; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.tp-info h1 { margin: 4px 0 2px; font-size: clamp(22px, 4.5vw, 32px); }
.tp-artist { color: var(--muted); margin-bottom: 10px; }
.tp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-controls { display: flex; align-items: center; gap: 16px; }
.tp-desc { color: var(--text); margin-top: 14px; white-space: normal; }
.tp-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tp-embed { margin-top: 16px; color: var(--muted); font-size: 13px; }
.tp-embed code { display: block; margin-top: 8px; padding: 10px; background: var(--panel-2); border-radius: 8px; word-break: break-all; user-select: all; }

/* ---------- Playerbar ---------- */
.playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  background: rgba(18, 15, 27, .92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.pb-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.pb-main { flex: 1; min-width: 0; }
.pb-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-wave { height: 26px; }
.pb-wave canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.pb-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #b1156f); color: #fff; font-size: 14px;
}

/* ---------- Footer ---------- */
.site-foot {
  max-width: 860px; margin: 0 auto; padding: 24px 16px 110px;
  display: flex; gap: 16px; color: var(--muted); font-size: 13px;
}

/* ---------- Embed ---------- */
.embed-card { margin: 0; }
.embed-card .tc-cover img { width: 84px; height: 84px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .tc-cover img { width: 72px; height: 72px; }
  .tc-badges { display: none; }
  .tp-head { flex-direction: column; }
  .tp-cover { width: 100%; height: auto; aspect-ratio: 1; max-width: 320px; }
  .head-search input, .head-search input:focus { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
