/* ============================================================
   Spatial Music Archive — Grundlayout
   Sehr dunkel, raeumlich, ruhig. Keine Fake-Daten.
   ============================================================ */

:root {
  --bg: #08080f;
  --bg-elevated: #0e0e1a;
  --bg-surface: #141422;
  --violet: #6d5bd0;
  --blue: #3b5bdb;
  --cyan: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.06);
  --accent-ring: rgba(34, 211, 238, 0.08);
  --accent-border: rgba(34, 211, 238, 0.4);
  --accent-border-strong: rgba(34, 211, 238, 0.5);
  --accent-outline: rgba(34, 211, 238, 0.25);
  --accent-glow-a: rgba(109, 91, 208, 0.16);
  --accent-glow-b: rgba(59, 91, 219, 0.14);
  --accent-wash: rgba(109, 91, 208, 0.08);
  --accent-rail: rgba(109, 91, 208, 0.1);
  --text: #e8e8f2;
  --text-dim: #8b8ba3;
  --text-faint: #55556b;
  --rail-w: 76px;
  --dock-h: 72px;
}

:root[data-profile-accent="violet"] {
  --cyan: #a78bfa;
  --violet: #8b5cf6;
  --blue: #6366f1;
  --accent-soft: rgba(167, 139, 250, 0.08);
  --accent-ring: rgba(167, 139, 250, 0.12);
  --accent-border: rgba(167, 139, 250, 0.45);
  --accent-border-strong: rgba(167, 139, 250, 0.58);
  --accent-outline: rgba(167, 139, 250, 0.3);
  --accent-glow-a: rgba(139, 92, 246, 0.3);
  --accent-glow-b: rgba(99, 102, 241, 0.22);
  --accent-wash: rgba(139, 92, 246, 0.12);
  --accent-rail: rgba(139, 92, 246, 0.15);
}

:root[data-profile-accent="cyan"] {
  --cyan: #22d3ee;
  --violet: #0891b2;
  --blue: #2563eb;
  --accent-soft: rgba(34, 211, 238, 0.07);
  --accent-ring: rgba(34, 211, 238, 0.1);
  --accent-border: rgba(34, 211, 238, 0.45);
  --accent-border-strong: rgba(34, 211, 238, 0.58);
  --accent-outline: rgba(34, 211, 238, 0.28);
  --accent-glow-a: rgba(8, 145, 178, 0.3);
  --accent-glow-b: rgba(37, 99, 235, 0.2);
  --accent-wash: rgba(34, 211, 238, 0.11);
  --accent-rail: rgba(34, 211, 238, 0.14);
}

:root[data-profile-accent="rose"] {
  --cyan: #fb7185;
  --violet: #e11d48;
  --blue: #a855f7;
  --accent-soft: rgba(251, 113, 133, 0.08);
  --accent-ring: rgba(251, 113, 133, 0.12);
  --accent-border: rgba(251, 113, 133, 0.46);
  --accent-border-strong: rgba(251, 113, 133, 0.6);
  --accent-outline: rgba(251, 113, 133, 0.3);
  --accent-glow-a: rgba(225, 29, 72, 0.29);
  --accent-glow-b: rgba(168, 85, 247, 0.21);
  --accent-wash: rgba(251, 113, 133, 0.11);
  --accent-rail: rgba(251, 113, 133, 0.14);
}

:root[data-profile-accent="gold"] {
  --cyan: #fbbf24;
  --violet: #f59e0b;
  --blue: #ef4444;
  --accent-soft: rgba(251, 191, 36, 0.08);
  --accent-ring: rgba(251, 191, 36, 0.12);
  --accent-border: rgba(251, 191, 36, 0.46);
  --accent-border-strong: rgba(251, 191, 36, 0.6);
  --accent-outline: rgba(251, 191, 36, 0.3);
  --accent-glow-a: rgba(245, 158, 11, 0.28);
  --accent-glow-b: rgba(239, 68, 68, 0.18);
  --accent-wash: rgba(251, 191, 36, 0.1);
  --accent-rail: rgba(251, 191, 36, 0.13);
}

:root[data-profile-accent="green"] {
  --cyan: #4ade80;
  --violet: #22c55e;
  --blue: #14b8a6;
  --accent-soft: rgba(74, 222, 128, 0.08);
  --accent-ring: rgba(74, 222, 128, 0.12);
  --accent-border: rgba(74, 222, 128, 0.46);
  --accent-border-strong: rgba(74, 222, 128, 0.6);
  --accent-outline: rgba(74, 222, 128, 0.3);
  --accent-glow-a: rgba(34, 197, 94, 0.29);
  --accent-glow-b: rgba(20, 184, 166, 0.21);
  --accent-wash: rgba(74, 222, 128, 0.11);
  --accent-rail: rgba(74, 222, 128, 0.14);
}

:root[data-profile-accent="blue"] {
  --cyan: #60a5fa;
  --violet: #2563eb;
  --blue: #4f46e5;
  --accent-soft: rgba(96, 165, 250, 0.08);
  --accent-ring: rgba(96, 165, 250, 0.12);
  --accent-border: rgba(96, 165, 250, 0.46);
  --accent-border-strong: rgba(96, 165, 250, 0.6);
  --accent-outline: rgba(96, 165, 250, 0.3);
  --accent-glow-a: rgba(37, 99, 235, 0.3);
  --accent-glow-b: rgba(79, 70, 229, 0.22);
  --accent-wash: rgba(96, 165, 250, 0.11);
  --accent-rail: rgba(96, 165, 250, 0.14);
}

:root[data-profile-accent="orange"] {
  --cyan: #fb923c;
  --violet: #f97316;
  --blue: #ef4444;
  --accent-soft: rgba(251, 146, 60, 0.08);
  --accent-ring: rgba(251, 146, 60, 0.12);
  --accent-border: rgba(251, 146, 60, 0.46);
  --accent-border-strong: rgba(251, 146, 60, 0.6);
  --accent-outline: rgba(251, 146, 60, 0.3);
  --accent-glow-a: rgba(249, 115, 22, 0.3);
  --accent-glow-b: rgba(239, 68, 68, 0.2);
  --accent-wash: rgba(251, 146, 60, 0.11);
  --accent-rail: rgba(251, 146, 60, 0.14);
}

:root[data-profile-accent="magenta"] {
  --cyan: #e879f9;
  --violet: #d946ef;
  --blue: #8b5cf6;
  --accent-soft: rgba(232, 121, 249, 0.08);
  --accent-ring: rgba(232, 121, 249, 0.12);
  --accent-border: rgba(232, 121, 249, 0.46);
  --accent-border-strong: rgba(232, 121, 249, 0.6);
  --accent-outline: rgba(232, 121, 249, 0.3);
  --accent-glow-a: rgba(217, 70, 239, 0.3);
  --accent-glow-b: rgba(139, 92, 246, 0.22);
  --accent-wash: rgba(232, 121, 249, 0.11);
  --accent-rail: rgba(232, 121, 249, 0.14);
}

:root[data-profile-accent="red"] {
  --cyan: #f87171;
  --violet: #dc2626;
  --blue: #fb7185;
  --accent-soft: rgba(248, 113, 113, 0.08);
  --accent-ring: rgba(248, 113, 113, 0.12);
  --accent-border: rgba(248, 113, 113, 0.46);
  --accent-border-strong: rgba(248, 113, 113, 0.6);
  --accent-outline: rgba(248, 113, 113, 0.3);
  --accent-glow-a: rgba(220, 38, 38, 0.3);
  --accent-glow-b: rgba(251, 113, 133, 0.2);
  --accent-wash: rgba(248, 113, 113, 0.11);
  --accent-rail: rgba(248, 113, 113, 0.14);
}

:root[data-profile-accent="teal"] {
  --cyan: #2dd4bf;
  --violet: #0d9488;
  --blue: #06b6d4;
  --accent-soft: rgba(45, 212, 191, 0.08);
  --accent-ring: rgba(45, 212, 191, 0.12);
  --accent-border: rgba(45, 212, 191, 0.46);
  --accent-border-strong: rgba(45, 212, 191, 0.6);
  --accent-outline: rgba(45, 212, 191, 0.3);
  --accent-glow-a: rgba(13, 148, 136, 0.3);
  --accent-glow-b: rgba(6, 182, 212, 0.2);
  --accent-wash: rgba(45, 212, 191, 0.11);
  --accent-rail: rgba(45, 212, 191, 0.14);
}

:root[data-profile-accent="lime"] {
  --cyan: #a3e635;
  --violet: #65a30d;
  --blue: #22c55e;
  --accent-soft: rgba(163, 230, 53, 0.08);
  --accent-ring: rgba(163, 230, 53, 0.12);
  --accent-border: rgba(163, 230, 53, 0.46);
  --accent-border-strong: rgba(163, 230, 53, 0.6);
  --accent-outline: rgba(163, 230, 53, 0.3);
  --accent-glow-a: rgba(101, 163, 13, 0.3);
  --accent-glow-b: rgba(34, 197, 94, 0.2);
  --accent-wash: rgba(163, 230, 53, 0.1);
  --accent-rail: rgba(163, 230, 53, 0.13);
}

:root[data-profile-accent="emerald"] {
  --cyan: #34d399;
  --violet: #059669;
  --blue: #14b8a6;
  --accent-soft: rgba(52, 211, 153, 0.08);
  --accent-ring: rgba(52, 211, 153, 0.12);
  --accent-border: rgba(52, 211, 153, 0.46);
  --accent-border-strong: rgba(52, 211, 153, 0.6);
  --accent-outline: rgba(52, 211, 153, 0.3);
  --accent-glow-a: rgba(5, 150, 105, 0.3);
  --accent-glow-b: rgba(20, 184, 166, 0.2);
  --accent-wash: rgba(52, 211, 153, 0.11);
  --accent-rail: rgba(52, 211, 153, 0.14);
}

:root[data-profile-accent="silver"] {
  --cyan: #e2e8f0;
  --violet: #94a3b8;
  --blue: #64748b;
  --accent-soft: rgba(226, 232, 240, 0.07);
  --accent-ring: rgba(226, 232, 240, 0.11);
  --accent-border: rgba(226, 232, 240, 0.42);
  --accent-border-strong: rgba(226, 232, 240, 0.58);
  --accent-outline: rgba(226, 232, 240, 0.28);
  --accent-glow-a: rgba(148, 163, 184, 0.24);
  --accent-glow-b: rgba(100, 116, 139, 0.2);
  --accent-wash: rgba(226, 232, 240, 0.08);
  --accent-rail: rgba(226, 232, 240, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: 1fr;
  height: 100vh;
  position: relative;
}

/* ---------- Linke Navigation ---------- */
.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background:
    linear-gradient(180deg, var(--accent-rail) 0%, transparent 42%),
    linear-gradient(180deg, #0b0b16 0%, #08080f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 10;
}

.rail__brand {
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0.9;
}

.rail__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.rail__item span { opacity: 0.85; }

.rail__item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.rail__item.is-active {
  color: var(--cyan);
  background: var(--accent-soft);
}

.rail__footer { margin-top: auto; }

/* ---------- Zentrale Flaeche ---------- */
.stage {
  position: relative;
  overflow: hidden;
  padding: 40px 48px 120px;
  background:
    linear-gradient(135deg, var(--accent-wash) 0%, transparent 40%, var(--accent-wash) 100%),
    radial-gradient(1500px 850px at 72% -12%, var(--accent-glow-a), transparent 68%),
    radial-gradient(1150px 750px at 8% 112%, var(--accent-glow-b), transparent 70%),
    var(--bg);
}

.stage__header { margin-bottom: 40px; }

.stage__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stage__title {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stage__space {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Empty State ---------- */
.empty {
  text-align: center;
  max-width: 420px;
}

.empty__surfaces {
  position: relative;
  height: 180px;
  margin-bottom: 28px;
}

.surface {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.surface--a {
  width: 120px; height: 120px;
  left: 50%; top: 20px;
  transform: translateX(-50%) rotate(-4deg);
  background: linear-gradient(135deg, #1a1a2e, #10101c);
}

.surface--b {
  width: 90px; height: 90px;
  left: calc(50% - 120px); top: 50px;
  transform: rotate(-10deg);
  background: linear-gradient(135deg, #17172a, #0d0d18);
  opacity: 0.85;
}

.surface--c {
  width: 90px; height: 90px;
  left: calc(50% + 30px); top: 50px;
  transform: rotate(8deg);
  background: linear-gradient(135deg, #151528, #0c0c16);
  opacity: 0.85;
}

.surface--d {
  width: 70px; height: 70px;
  left: calc(50% + 110px); top: 90px;
  transform: rotate(14deg);
  background: linear-gradient(135deg, #12121f, #0a0a12);
  opacity: 0.6;
}

.empty__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.empty__text {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Playback Dock ---------- */
.dock {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 48px));
  height: var(--dock-h);
  background: rgba(20, 20, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 20;
}

.dock__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.dock__title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__error {
  font-size: 11px;
  color: #f0a0a0;
}

.dock__play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.dock__play:hover { background: rgba(255, 255, 255, 0.1); }
.dock__play:disabled { opacity: 0.4; cursor: default; }

.dock__icon--pause { display: none; }
.dock__play.is-playing .dock__icon--play { display: none; }
.dock__play.is-playing .dock__icon--pause { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .stage { padding: 28px 20px 120px; }
  .stage__title { font-size: 26px; }
  .surface--b { left: calc(50% - 100px); }
  .surface--c { left: calc(50% + 10px); }
  .surface--d { left: calc(50% + 80px); }
}

.info-view {
  width: min(820px, 100%);
  display: grid;
  gap: 20px;
}

.info-view__text {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text);
}

.info-view__editor {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.info-view__editor textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.info-view__editor .btn {
  width: auto;
  justify-self: start;
}


/* ---------- Global hidden ---------- */
[hidden] { display: none !important; }

/* ---------- Loading ---------- */
.loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 100;
}
.loading__mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Auth ---------- */
.auth {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  z-index: 90;
}
.auth__left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
}
.auth__brand {
  position: absolute;
  top: 40px;
  left: 64px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.auth__panel { max-width: 360px; }
.auth__title {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 600;
}
.field { margin-bottom: 18px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.field__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.auth__error {
  margin: 0 0 16px;
  font-size: 13px;
  color: #f0a0a0;
}
.auth__error.is-success {
  color: var(--cyan);
}
.btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.auth__switch {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}
.link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  color: var(--cyan);
  font-size: 13px;
  cursor: pointer;
}
.link:hover { text-decoration: underline; }

/* Auth rechte Seite */
.auth__right {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 70% 20%, var(--accent-glow-a), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, var(--accent-glow-b), transparent 60%),
    #0a0a14;
}
.auth__surfaces { position: relative; height: 100%; }
.auth-surface {
  position: absolute;
  width: clamp(168px, 21vw, 252px);
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background:
    linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(20, 20, 38, 0.94) 48%),
    rgba(14, 14, 26, 0.92);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--text);
  transform: rotate(var(--tilt, 0deg));
  animation: auth-float 7s ease-in-out infinite;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}
.auth-surface__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.22);
}
.auth-surface__icon svg {
  width: 18px;
  height: 18px;
}
.auth-surface__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: 0.01em;
}
.auth-surface__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}
.auth-surface--a {
  --tilt: -3deg;
  left: 6%; top: 10%;
  animation-delay: 0s;
}
.auth-surface--b {
  --tilt: 3deg;
  left: 52%; top: 6%;
  animation-delay: -1.4s;
}
.auth-surface--c {
  --tilt: 2deg;
  left: 4%; top: 44%;
  animation-delay: -2.8s;
}
.auth-surface--d {
  --tilt: -2deg;
  left: 50%; top: 62%;
  animation-delay: -4.2s;
}
.auth-surface--e {
  --tilt: -1deg;
  left: 53%; top: 34%;
  animation-delay: -5.6s;
}
@keyframes auth-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--tilt, 0deg)); }
}

.auth-surface:hover {
  border-color: rgba(167, 139, 250, 0.42);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(167, 139, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  filter: brightness(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .auth-surface { animation: none; }
}

/* Account */
.account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.account__name {
  font-size: 11px;
  color: var(--text);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account__name[data-accent="violet"] { color: #a78bfa; }
.account__name[data-accent="cyan"] { color: #22d3ee; }
.account__name[data-accent="rose"] { color: #fb7185; }
.account__name[data-accent="gold"] { color: #fbbf24; }
.account__name[data-accent="green"] { color: #4ade80; }
.account__name[data-accent="blue"] { color: #60a5fa; }
.account__name[data-accent="orange"] { color: #fb923c; }
.account__name[data-accent="magenta"] { color: #e879f9; }
.account__name[data-accent="red"] { color: #f87171; }
.account__name[data-accent="teal"] { color: #2dd4bf; }
.account__name[data-accent="lime"] { color: #a3e635; }
.account__name[data-accent="emerald"] { color: #34d399; }
.account__name[data-accent="silver"] { color: #e2e8f0; }
.account__logout {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--text-dim);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.account__logout:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.account__error {
  font-size: 10px;
  color: #f0a0a0;
  text-align: center;
  max-width: 64px;
}

/* Responsive auth */
@media (max-width: 720px) {
  .auth {
    position: fixed;
    inset: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .auth__left {
    position: relative;
    display: block;
    min-height: 0;
    height: auto;
    padding: calc(24px + env(safe-area-inset-top)) 20px 24px;
  }
  .auth__brand {
    position: static;
    display: block;
    margin: 0 0 18px;
    font-size: 12px;
  }
  .auth__panel {
    max-width: none;
    width: 100%;
  }
  .auth__title {
    margin: 0 0 20px;
    font-size: 26px;
  }
  .auth__right {
    display: block;
    overflow: visible;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  }
  .auth__surfaces {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .auth-surface {
    position: static;
    width: 100%;
    padding: 14px 14px 12px;
    gap: 7px;
    transform: none;
    animation: none;
  }
  .auth-surface__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .auth-surface__icon svg {
    width: 16px;
    height: 16px;
  }
  .auth-surface__title {
    font-size: 14px;
  }
  .auth-surface__text {
    font-size: 12px;
  }
  .auth-surface--a,
  .auth-surface--b,
  .auth-surface--c,
  .auth-surface--d,
  .auth-surface--e {
    left: auto;
    top: auto;
  }
}

/* Landscape: kompaktes, gestapeltes Layout ohne kuenstliche Vollhoehe */
@media (max-height: 520px) and (orientation: landscape) {
  .auth {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .auth__left {
    display: block;
    min-height: 0;
    height: auto;
    padding: calc(16px + env(safe-area-inset-top)) 20px 20px;
  }
  .auth__brand {
    position: static;
    display: block;
    margin: 0 0 12px;
    font-size: 12px;
  }
  .auth__panel {
    max-width: none;
    width: 100%;
  }
  .auth__title {
    margin: 0 0 14px;
    font-size: 22px;
  }
  .auth__right {
    display: block;
    overflow: visible;
    padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  }
  .auth__surfaces {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .auth-surface {
    position: static;
    width: 100%;
    padding: 12px 12px 10px;
    gap: 6px;
    transform: none;
    animation: none;
  }
  .auth-surface__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .auth-surface__icon svg {
    width: 15px;
    height: 15px;
  }
  .auth-surface__title {
    font-size: 13px;
  }
  .auth-surface__text {
    font-size: 11.5px;
  }
  .auth-surface--a,
  .auth-surface--b,
  .auth-surface--c,
  .auth-surface--d,
  .auth-surface--e {
    left: auto;
    top: auto;
  }
}

/* Landscape: sehr schmale Geraete einspaltig halten */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 640px) {
  .auth__surfaces {
    grid-template-columns: 1fr;
  }
}


/* ---------- Tracks ---------- */
.tracks {
  position: relative;
  width: 100%;
  min-height: 60vh;
  align-self: flex-start;
}
.track-surface {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  width: var(--w, 240px);
  height: var(--h, 240px);
  transform: rotate(var(--rot, 0deg));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, #1a1a2e, #10101c);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.track-surface:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.04) translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.track-surface__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.track-surface__artist {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}
.track-surface__album {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}
.track-surface__duration {
  margin-top: 10px;
  font-size: 11px;
  color: var(--cyan);
  opacity: 0.8;
}

/* ---------- Library Error ---------- */
.library-error {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  max-width: 420px;
}


/* ---------- Spatial responsive ---------- */
@media (max-width: 720px) {
  .tracks {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .track-surface {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 120px;
    transform: none;
  }
  .track-surface:hover {
    transform: translateY(-4px);
  }
}


/* ---------- Ausgewaehlter Track ---------- */
.track-surface.is-selected {
  border-color: var(--accent-border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-outline);
}


/* ---------- Progress ---------- */
.dock__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  min-width: 0;
}
.dock__time {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.dock__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  touch-action: none;
}
.dock__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}


/* ---------- Volume ---------- */
.dock__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dock__mute {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.dock__mute:hover { background: rgba(255, 255, 255, 0.1); }
.dock__icon--muted { display: none; }
.dock__mute.is-muted .dock__icon--sound { display: none; }
.dock__mute.is-muted .dock__icon--muted { display: block; }
.dock__volume-slider {
  width: 80px;
  accent-color: var(--cyan);
  cursor: pointer;
}

@media (max-width: 480px) {
  .dock__volume-slider { display: none; }
}

@media (max-width: 720px) {
  :root {
    --rail-w: 0px;
    --mobile-rail-h: 72px;
  }

  .app {
    display: block;
    height: 100dvh;
  }

  .rail {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: var(--mobile-rail-h);
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    flex-direction: row;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-right: 0;
    z-index: 50;
  }

  .rail__brand {
    display: none;
  }

  .rail__footer {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    z-index: 80;
  }

  .rail__footer .account {
    padding: 0;
  }

  .rail__footer .account__name,
  .rail__footer .account__logout,
  .rail__footer .account__account,
  .rail__footer .account__error {
    display: none;
  }

  .rail__footer .account__admin {
    min-height: 38px;
    padding: 8px 10px;
    background: rgba(20, 20, 34, 0.94);
    backdrop-filter: blur(10px);
  }

  .rail__items {
    width: 100%;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .rail__items::-webkit-scrollbar {
    display: none;
  }

  .rail__items li {
    flex: 0 0 66px;
  }

  .rail__item {
    min-height: 56px;
    padding: 6px 4px;
    border-radius: 8px;
  }

  .stage {
    height: calc(100dvh - var(--mobile-rail-h));
    padding: 18px 14px 156px;
    overflow-y: auto;
  }

  .stage__header {
    margin-bottom: 20px;
  }

  .dock {
    position: fixed;
    bottom: calc(var(--mobile-rail-h) + 8px);
    width: calc(100% - 20px);
    height: 108px;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 40px 32px;
    gap: 8px 10px;
  }

  .dock__info {
    grid-column: 1;
    grid-row: 1;
  }

  .dock__controls {
    grid-column: 2;
    grid-row: 1;
  }

  .dock__progress {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }

  .dock__bar {
    height: 20px;
    border-radius: 0;
    background: linear-gradient(
      to bottom,
      transparent 8px,
      rgba(255, 255, 255, 0.08) 8px,
      rgba(255, 255, 255, 0.08) 12px,
      transparent 12px
    );
  }

  .dock__bar-fill {
    top: 8px;
    height: 4px;
  }

  .dock__volume {
    display: none;
  }
}


/* ---------- Controls (Previous/Next) ---------- */
.dock__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dock__skip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.dock__skip:hover { background: rgba(255, 255, 255, 0.1); }
.dock__skip:disabled { opacity: 0.4; cursor: default; }


/* ---------- Shuffle ---------- */
.dock__shuffle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dock__shuffle:hover { background: rgba(255, 255, 255, 0.1); }
.dock__shuffle.is-active {
  color: var(--cyan);
  border-color: var(--accent-border);
}


/* ---------- Repeat ---------- */
.dock__repeat {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dock__repeat:hover { background: rgba(255, 255, 255, 0.1); }
.dock__repeat.is-active {
  color: var(--cyan);
  border-color: var(--accent-border);
}
.dock__repeat-one {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: none;
}
.dock__repeat.is-one .dock__repeat-one { display: block; }


/* ---------- Favoriten ---------- */
.track-surface__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.track-surface__fav:hover { color: var(--text); }
.track-surface__fav.is-fav {
  color: var(--cyan);
  border-color: var(--accent-border);
}
.track-surface__fav.is-fav svg { fill: currentColor; }


/* ---------- Playlists ---------- */
.playlist-create {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 420px;
}
.playlist-create__input { flex: 1; }
.playlist-create__btn { width: auto; padding: 12px 20px; }
.playlists {
  position: relative;
  width: 100%;
  min-height: 60vh;
  align-self: flex-start;
}
.playlist-surface {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  width: var(--w, 240px);
  height: var(--h, 240px);
  transform: rotate(var(--rot, 0deg));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, #1a1a2e, #10101c);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.playlist-surface:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.04) translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.playlist-surface__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.playlist-surface__count {
  font-size: 12px;
  color: var(--text-dim);
}
.playlist-detail {
  width: 100%;
  min-height: 60vh;
  align-self: flex-start;
}
.playlist-detail__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.playlist-detail__back {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.playlist-detail__back:hover { background: rgba(255, 255, 255, 0.1); }
.playlist-detail__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  flex: 1;
}
.playlist-detail__delete {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(240, 160, 160, 0.3);
  background: rgba(240, 160, 160, 0.06);
  color: #f0a0a0;
  font-size: 13px;
  cursor: pointer;
}
.playlist-detail__delete:hover { background: rgba(240, 160, 160, 0.12); }
.playlist-detail__empty {
  color: var(--text-dim);
  font-size: 14px;
}
.playlist-entry__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.playlist-entry__remove:hover { color: #f0a0a0; }
.track-surface__playlist {
  position: absolute;
  top: 12px;
  right: 48px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.track-surface__playlist:hover { color: var(--text); }
.playlist-picker {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  max-width: 280px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.playlist-picker__hint {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  padding: 8px;
}
.playlist-picker__item {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.playlist-picker__item:hover { background: rgba(255, 255, 255, 0.08); }


/* ---------- Search ---------- */
.search-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 420px;
}
.search-controls__input { flex: 1; }
.search-controls__btn { width: auto; padding: 12px 20px; }


/* ---------- Home / Zuletzt gehört ---------- */
/* nutzt bestehende .tracks / .track-surface / .empty Muster */


/* Home Rollenstatus */
.home-status {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-surface);
  border-radius: 8px;
  color: var(--text);
}
.home-status__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 0.5rem;
}
.home-status__role {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--violet);
}
.home-status__next {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 1rem;
}
.home-status__metric {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0.75rem 0 0.25rem;
}
.home-status__value {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.home-status__bar {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}
.home-status__bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}
.home-status__remaining {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 1rem 0 0;
}
.home-status__note {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0.5rem 0 0;
}
.home-status__unlocks {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}
.home-status__unlock {
  font-size: 0.85rem;
  color: var(--cyan);
  margin: 0.25rem 0;
}
.home-status__error {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}


/* Admin account access */
.admin-panel {
  width: 100%;
}
.admin-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-surface);
}
.admin-user:last-child { border-bottom: none; }
.admin-user__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-user__name {
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user__role {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.admin-user__state {
  font-size: 0.7rem;
  color: var(--text-faint);
}
.admin-user__state.is-online { color: #39d98a; }
.admin-user__state.is-offline { color: var(--text-faint); }
.admin-user__access {
  font-size: 0.7rem;
  color: var(--text-faint);
}
.admin-user__access.is-enabled { color: var(--cyan); }
.admin-user__access.is-suspended { color: #f0a0a0; }
.admin-user__action {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.admin-user__action:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.admin-panel__error {
  font-size: 0.85rem;
  color: #f0a0a0;
  margin: 8px 0 0;
}

.account-panel__admin {
  border-color: rgba(6, 182, 212, 0.35);
}
.profile-panel[data-profile-panel="admin"] {
  display: grid;
  gap: 24px;
}
.vip-incident .admin-user__role {
  max-width: 760px;
  overflow-wrap: anywhere;
}


/* Profil */
.account__account {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--text-dim);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.account__account:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.profile-view {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
}
.profile-view__summary {
  position: sticky;
  top: 0;
}
.profile-view__settings {
  display: grid;
  gap: 0;
}
.profile-view__heading {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.account-panel__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  gap: 0;
  padding: 0;
}
.account-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.account-panel__label {
  color: var(--text-dim);
}
.account-panel__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.account-panel__form + .account-panel__form { padding-top: 28px; }
.account-panel__supporter {
  border-color: var(--accent-border);
}
.account-panel__subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0;
}
.profile-accents {
  display: grid;
  grid-template-columns: repeat(auto-fit, 36px);
  gap: 10px;
}
.profile-accent {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.profile-accent[data-profile-accent="violet"] { background: #8b5cf6; }
.profile-accent[data-profile-accent="cyan"] { background: #06b6d4; }
.profile-accent[data-profile-accent="rose"] { background: #f43f5e; }
.profile-accent[data-profile-accent="gold"] { background: #f59e0b; }
.profile-accent[data-profile-accent="green"] { background: #22c55e; }
.profile-accent[data-profile-accent="blue"] { background: #3b82f6; }
.profile-accent[data-profile-accent="orange"] { background: #f97316; }
.profile-accent[data-profile-accent="magenta"] { background: #d946ef; }
.profile-accent[data-profile-accent="red"] { background: #dc2626; }
.profile-accent[data-profile-accent="teal"] { background: #14b8a6; }
.profile-accent[data-profile-accent="lime"] { background: #84cc16; }
.profile-accent[data-profile-accent="emerald"] { background: #10b981; }
.profile-accent[data-profile-accent="silver"] { background: #cbd5e1; }
.profile-accent[aria-pressed="true"] {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.account-panel__form input {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 13px;
}
.account-panel__form input:focus {
  outline: none;
  border-color: var(--violet);
}
.account-panel__submit {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border: none;
  border-radius: 8px;
  padding: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.account-panel__submit:hover { opacity: 0.92; }
.account-panel__error {
  font-size: 0.85rem;
  color: #f0a0a0;
  margin: 18px 0 0;
}

@media (max-width: 900px) {
  .profile-view {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-view__summary { position: static; }
}

@media (max-width: 720px) {
  .profile-view { gap: 28px; }
  .profile-view__heading { font-size: 0.95rem; }
  .account-panel__row { align-items: flex-start; }
  .account-panel__row span:last-child {
    max-width: 58%;
    overflow-wrap: anywhere;
    text-align: right;
  }
  .account-panel__submit { min-height: 42px; }
}

/* Vollstaendiges Nutzerprofil */
.profile-view {
  width: min(1120px, 100%);
  display: block;
  padding-bottom: 64px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-avatar-control {
  width: 116px;
  display: grid;
  justify-items: center;
  gap: 9px;
}
.profile-hero__avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--cyan);
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
}
.profile-hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-avatar-control__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.profile-avatar-control__upload,
.profile-avatar-control__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}
.profile-avatar-control__upload:hover { color: var(--cyan); }
.profile-avatar-control__remove { color: #f0a0a0; }
.profile-avatar-control__status {
  width: 150px;
  color: var(--text-dim);
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: center;
}
.profile-avatar-control__status.is-error { color: #f0a0a0; }
.profile-hero__eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-hero__name {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.profile-hero__username {
  margin: 7px 0 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.profile-hero__meta {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.profile-hero__role {
  padding: 5px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--cyan);
  font-size: 0.7rem;
  text-transform: uppercase;
}
.profile-hero__email {
  max-width: 260px;
  color: var(--text-dim);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  text-align: right;
}
.profile-hero__logout {
  margin-top: 5px;
  padding: 7px 11px;
  border: 1px solid rgba(240, 160, 160, 0.28);
  border-radius: 5px;
  background: transparent;
  color: #f0a0a0;
  font-size: 0.75rem;
  cursor: pointer;
}
.profile-hero__logout:hover {
  border-color: rgba(240, 160, 160, 0.55);
  background: rgba(240, 160, 160, 0.06);
}
.profile-hero__meta .account__error {
  max-width: 260px;
  text-align: right;
}
.profile-tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-tab {
  position: relative;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.profile-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.is-active { color: var(--text); }
.profile-tab.is-active::after { background: var(--cyan); }
.profile-panel { min-height: 330px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.profile-grid--overview {
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
}
.profile-section-stack {
  display: grid;
  gap: 34px;
}
.profile-section {
  min-width: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-section--facts { padding-top: 24px; }
.profile-section__description {
  margin: -8px 0 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.5;
}
.profile-section-stack .profile-section:first-child { margin-top: 0; }
.profile-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 0.72rem;
}
.profile-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.profile-section input {
  width: 100%;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 0.82rem;
}
.profile-section input:focus {
  outline: none;
  border-color: var(--accent-border);
}
.profile-section .account-panel__submit {
  align-self: start;
  width: auto;
  min-width: 130px;
  padding: 11px 16px;
  background: var(--violet);
}
.profile-field-row .account-panel__submit { align-self: stretch; }
.profile-section .profile-accents {
  grid-template-columns: repeat(8, 36px);
}
.profile-panel[data-profile-panel="admin"] .profile-section {
  padding-top: 24px;
}
.profile-panel[data-profile-panel="admin"] #admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}
.profile-panel[data-profile-panel="admin"] .admin-user {
  min-height: 78px;
}
.account-panel__error {
  padding: 12px 0;
}

@media (max-width: 900px) {
  .profile-grid,
  .profile-grid--overview { grid-template-columns: 1fr; }
  .profile-panel[data-profile-panel="admin"] #admin-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .profile-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding-top: 12px;
  }
  .profile-avatar-control { width: 96px; }
  .profile-hero__avatar { width: 68px; height: 68px; font-size: 1.55rem; }
  .profile-hero__name { font-size: 1.55rem; }
  .profile-hero__meta {
    grid-column: 1 / -1;
    min-width: 0;
    align-items: flex-start;
  }
  .profile-hero__email { max-width: 100%; text-align: left; }
  .profile-hero__meta .account__error { max-width: 100%; text-align: left; }
  .profile-tabs {
    gap: 20px;
    overflow-x: auto;
  }
  .profile-tab { flex: 0 0 auto; }
  .profile-grid { gap: 28px; }
  .profile-field-row { grid-template-columns: 1fr; }
  .profile-section .account-panel__submit { width: 100%; }
  .profile-section .profile-accents { grid-template-columns: repeat(4, 36px); }
}


/* Track Cover */
.track-surface__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
}
.track-surface__title,
.track-surface__artist,
.track-surface__album,
.track-surface__duration {
  position: relative;
  z-index: 1;
}


/* NOVA VIP Music Studio */
.vip-music__card {
  max-width: 720px;
}

.vip-music__actions {
  margin-top: 22px;
}

.vip-music__button {
  min-width: 220px;
}

.vip-music__button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vip-music__note {
  margin: 18px 0 0;
  max-width: 620px;
  line-height: 1.6;
  opacity: 0.68;
}


/* NOVA TRACK LAYOUT FIX 20260919 */

/* Desktop: keine ueberlappenden Tracks mehr */
@media (min-width: 721px) {
  .tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    min-height: 0;
  }

  .track-surface {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 240px;
  }
}

/* Track-Aktionen immer vor dem Cover */
.track-surface__fav,
.track-surface__playlist,
.playlist-entry__remove {
  z-index: 3;
}

/* Cover darf Buttons nicht abfangen */
.track-surface__cover {
  pointer-events: none;
}


/* NOVA DESKTOP SCROLL FIX 20260919 */
@media (min-width: 721px) {
  .stage {
    overflow-x: hidden;
    overflow-y: auto;
  }
}
