/* ==========================================================================
   Auto Media – installierbare PWA im Auto-Look
   Eigene Gestaltung, keine fremden Marken, Fotos oder Schriften.
   ========================================================================== */

:root {
  --bg: #04060c;
  --bg-2: #070b14;
  --bg-3: #0a101c;
  --panel: #0a1220;
  --panel-2: #0d1728;
  --panel-3: #122037;
  --panel-glass: rgba(11, 20, 36, 0.82);
  --line: rgba(158, 189, 235, 0.13);
  --line-strong: rgba(158, 203, 255, 0.28);
  --text: #f3f8ff;
  --text-soft: #dbe6f7;
  --muted: #93a6c3;
  --muted-2: #6f829f;
  --blue: #3ba6ff;
  --blue-2: #79c9ff;
  --blue-3: #0b6de8;
  --blue-deep: #0847a8;
  --glow: rgba(48, 156, 255, 0.42);
  --glow-soft: rgba(48, 156, 255, 0.16);
  --ok: #45d8a1;
  --danger: #ff6479;
  --warn: #ffc45c;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.52);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1100px 700px at 8% -8%, rgba(18, 78, 168, 0.30), transparent 62%),
    radial-gradient(900px 620px at 96% 4%, rgba(36, 96, 200, 0.18), transparent 60%),
    linear-gradient(160deg, #05070e 0%, #04060c 55%, #03050a 100%);
}

button, input {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: not-allowed; opacity: 0.45; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 650; letter-spacing: -0.02em; }
p { color: var(--text-soft); }
a { color: var(--blue-2); }

::selection { background: rgba(59, 166, 255, 0.35); }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

svg.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.media-bank { display: none; }
.noscript {
  position: fixed;
  inset: auto 20px 20px;
  padding: 18px;
  border-radius: 16px;
  background: #1b2333;
  color: #fff;
  z-index: 999;
}

/* ---------- Grundgerüst ---------- */

.app {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  grid-template-rows: 74px minmax(0, 1fr);
  column-gap: 22px;
  width: 100%;
  max-width: 2400px;
  height: 100dvh;
  margin: 0 auto;
  padding: 8px 24px 20px;
  padding-top: calc(8px + var(--safe-top));
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 56vw;
  height: 56vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.26;
}
.ambient::before {
  top: -28vw;
  right: -12vw;
  background: radial-gradient(circle, #1f7ce8 0%, transparent 68%);
}
.ambient::after {
  bottom: -32vw;
  left: -14vw;
  background: radial-gradient(circle, #0b3f8f 0%, transparent 70%);
  opacity: 0.18;
}

/* ---------- Kopfzeile ---------- */

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 4px;
}
.top-home {
  color: var(--text);
}
.top-home .icon { width: 30px; height: 30px; }
.clock {
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 640;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 74px;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 18px;
  margin-left: 2px;
  border-left: 1px solid rgba(198, 218, 248, 0.20);
  color: #edf5ff;
}
.status-icons .icon { width: 23px; height: 23px; stroke-width: 2; }
.top-spacer { flex: 1; }

.drive-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 196, 92, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 196, 92, 0.14), rgba(255, 196, 92, 0.05));
  color: #ffe3ad;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.drive-chip:hover { background: rgba(255, 196, 92, 0.20); transform: translateY(-1px); }
.drive-chip .icon { width: 20px; height: 20px; }
.drive-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 12px rgba(255, 196, 92, 0.8);
}
body.is-parked .drive-chip {
  border-color: rgba(69, 216, 161, 0.38);
  background: linear-gradient(180deg, rgba(69, 216, 161, 0.14), rgba(69, 216, 161, 0.05));
  color: #b8ffe4;
}
body.is-parked .drive-dot { background: var(--ok); box-shadow: 0 0 12px rgba(69, 216, 161, 0.8); }

.install-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(93, 185, 255, 0.40);
  background: rgba(24, 86, 160, 0.24);
  color: #d9efff;
  font-weight: 650;
  font-size: 13px;
  transition: background 0.2s, transform 0.15s;
}
.install-chip:hover { background: rgba(38, 122, 220, 0.34); transform: translateY(-1px); }
.install-chip[hidden] { display: none; }
.install-chip .icon { width: 19px; height: 19px; }

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(160, 196, 245, 0.26);
  background: rgba(18, 36, 62, 0.55);
  color: #dcecff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.landing-chip:hover {
  background: rgba(38, 74, 124, 0.62);
  border-color: rgba(126, 186, 255, 0.46);
  color: #fff;
  transform: translateY(-1px);
}
.landing-chip:active { transform: scale(0.97); }
.landing-chip .icon { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text-soft);
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.icon-btn:hover { background: rgba(120, 175, 240, 0.12); color: #fff; }
.icon-btn:active { transform: scale(0.95); }
.icon-btn.bordered { border: 1px solid var(--line); border-radius: 14px; width: 42px; height: 42px; }
.settings-top { display: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 5px 17px 5px 6px;
  border: 1px solid rgba(160, 196, 245, 0.18);
  background: linear-gradient(180deg, rgba(16, 30, 52, 0.9), rgba(8, 16, 30, 0.9));
  border-radius: 999px;
  min-height: 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4cb8ff, #0b5fd6 70%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 8px 24px rgba(21, 119, 235, 0.45);
}
.brand-mark .icon { width: 19px; height: 19px; margin-left: 2px; }
.brand-name { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- Seitenleiste ---------- */

.rail {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 12px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(18, 30, 50, 0.72), rgba(7, 13, 24, 0.88)),
    radial-gradient(120% 60% at 10% 0%, rgba(40, 112, 210, 0.18), transparent 60%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rail-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 76px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 19px;
  color: #d7e2f3;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.16s;
}
.rail-btn:hover {
  background: rgba(104, 160, 230, 0.10);
  border-color: rgba(132, 184, 250, 0.13);
}
.rail-btn.active {
  color: #fff;
  border-color: rgba(85, 178, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(30, 132, 246, 0.50), rgba(9, 68, 154, 0.55)),
    radial-gradient(100% 120% at 50% 0%, rgba(114, 205, 255, 0.32), transparent 70%);
  box-shadow: 0 0 0 1px rgba(121, 201, 255, 0.10) inset, 0 8px 28px rgba(19, 108, 224, 0.35);
}
.rail-icon { display: grid; place-items: center; }
.rail-btn .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.rail-label { font-size: 13.5px; font-weight: 580; line-height: 1.1; }
.rail-lock {
  position: absolute;
  top: 7px;
  right: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 196, 92, 0.18);
  color: var(--warn);
}
.rail-lock .icon { width: 12px; height: 12px; stroke-width: 2.2; }
body.is-driving .rail-lock { display: flex; }
.rail-settings { margin-top: 4px; border-top: 1px solid rgba(150, 190, 240, 0.12); border-radius: 0 0 19px 19px; }
.rail-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.rail-now {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 16, 29, 0.72);
}
.rail-now[hidden] { display: none; }
.rail-now-cover {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  background-color: #13233b;
}
.rail-now-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.rail-now-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-now-copy span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.mini-eq i { display: block; width: 2.5px; height: 5px; border-radius: 2px; background: var(--blue-2); animation: eq 0.9s ease-in-out infinite alternate; }
.mini-eq i:nth-child(2) { animation-delay: -0.38s; height: 10px; }
.mini-eq i:nth-child(3) { animation-delay: -0.62s; height: 7px; }
@keyframes eq { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.rail-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 13px;
  border: 1px dashed rgba(137, 190, 255, 0.28);
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.rail-install[hidden] { display: none; }
.rail-install:hover { color: #cfeaff; border-color: rgba(137, 190, 255, 0.55); background: rgba(59, 166, 255, 0.08); }
.rail-install .icon { width: 17px; height: 17px; }

/* ---------- Hauptbereich ---------- */

.main {
  grid-row: 2;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.view {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1px 6px 2px 1px;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 166, 230, 0.35) transparent;
}
.view.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: viewIn 0.28s ease both;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.view::-webkit-scrollbar { width: 8px; }
.view::-webkit-scrollbar-thumb { background: rgba(119, 166, 230, 0.28); border-radius: 8px; }
.view::-webkit-scrollbar-track { background: transparent; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(15, 26, 44, 0.90), rgba(7, 14, 26, 0.94)),
    radial-gradient(110% 80% at 8% 0%, rgba(40, 108, 194, 0.12), transparent 60%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-2);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(170, 205, 250, 0.22);
  background: rgba(6, 13, 25, 0.66);
  backdrop-filter: blur(14px);
  color: #e5f2ff;
  font-size: 12.5px;
  font-weight: 600;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

/* ---------- Startbildschirm ---------- */

#view-home.active { overflow-y: auto; }
.home-grid {
  flex: 1;
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 1fr);
  gap: 16px;
}
.hero {
  position: relative;
  display: block;
  min-height: 300px;
  height: 100%;
  overflow: hidden;
  text-align: left;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(146, 191, 255, 0.18);
  background: #0a1222;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s;
}
.hero:hover { border-color: rgba(146, 203, 255, 0.40); transform: translateY(-2px); }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 58%;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), background-image 0.4s;
}
.hero:hover .hero-bg { transform: scale(1.045); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.10) 0%, rgba(4, 8, 16, 0.12) 36%, rgba(4, 7, 14, 0.88) 100%),
    linear-gradient(90deg, rgba(3, 7, 14, 0.72) 0%, transparent 65%);
}
.live-chip { position: absolute; top: 18px; right: 18px; }
.hero-copy {
  position: absolute;
  left: clamp(22px, 3vw, 42px);
  right: 36%;
  bottom: clamp(26px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-copy h1 {
  font-size: clamp(33px, 4.2vw, 68px);
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
}
.hero-artist {
  font-size: clamp(18px, 1.55vw, 27px);
  color: rgba(238, 247, 255, 0.82);
  font-weight: 480;
  letter-spacing: -0.01em;
}
.hero-eq {
  position: absolute;
  right: clamp(18px, 2.2vw, 34px);
  bottom: clamp(24px, 3vw, 42px);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: clamp(38px, 4.6vw, 64px);
  opacity: 0.9;
}
.hero-eq i {
  display: block;
  width: 5px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-2), #0b6de8);
  box-shadow: 0 0 12px rgba(66, 170, 255, 0.55);
  animation: heroEq 1.4s ease-in-out infinite alternate;
  transform-origin: bottom;
}
.hero-eq i:nth-child(3n) { animation-duration: 1.05s; }
.hero-eq i:nth-child(4n) { animation-duration: 1.8s; }
.hero-eq i:nth-child(5n) { animation-duration: 0.85s; }
@keyframes heroEq {
  0% { transform: scaleY(0.16); opacity: 0.5; }
  48% { transform: scaleY(0.92); opacity: 1; }
  100% { transform: scaleY(0.38); opacity: 0.72; }
}
body:not(.is-playing) .hero-eq i,
body:not(.is-playing) .mini-eq i { animation-play-state: paused; }
body:not(.is-playing) .hero-eq i { transform: scaleY(0.16); opacity: 0.42; }
body:not(.is-playing) .pulse-dot { animation: none; opacity: 0.5; }

.home-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 0;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-height: 140px;
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(19, 34, 58, 0.92), rgba(7, 14, 26, 0.94)),
    radial-gradient(120% 100% at 100% 0%, rgba(53, 137, 238, 0.14), transparent 65%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(115, 184, 255, 0.38); }
.tile:active { transform: translateY(-1px) scale(0.995); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(150deg, #2f9bff, #0b4dad);
  box-shadow: 0 8px 22px rgba(16, 102, 212, 0.35);
}
.tile-icon .icon { width: 24px; height: 24px; }
.tile-icon.podcast { background: linear-gradient(150deg, #8c7dff, #4a3bc4); box-shadow: 0 8px 22px rgba(83, 65, 205, 0.32); }
.tile-icon.video { background: linear-gradient(150deg, #ff7e9d, #b82f59); box-shadow: 0 8px 22px rgba(190, 42, 80, 0.30); }
.tile-icon.favorite { background: linear-gradient(150deg, #ffcf6b, #cc7d14); box-shadow: 0 8px 22px rgba(193, 118, 14, 0.28); }
.tile-copy { display: flex; flex-direction: column; gap: 2px; }
.tile-copy strong { font-size: clamp(16px, 1.3vw, 20px); font-weight: 650; }
.tile-copy small { color: var(--muted); font-size: 12px; }
.tile-count {
  margin-top: auto;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 550;
}
.tile-chevron {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 19px;
  height: 19px;
  color: var(--muted-2);
}
.tile-lock {
  position: absolute;
  bottom: 13px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 196, 92, 0.12);
  border: 1px solid rgba(255, 196, 92, 0.25);
  color: #ffd894;
  font-size: 10.5px;
  font-weight: 650;
}
.tile-lock .icon { width: 12px; height: 12px; }

.player-strip {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  min-height: 88px;
  padding: 12px clamp(14px, 1.6vw, 24px);
  border-radius: var(--radius-lg);
  flex: none;
}
.strip-queue {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 172px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.6);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 580;
  transition: border-color 0.2s, background 0.2s;
}
.strip-queue:hover { border-color: var(--line-strong); background: rgba(19, 41, 70, 0.62); }
.strip-queue .icon { width: 22px; height: 22px; }
.strip-queue-label { white-space: nowrap; }
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(59, 166, 255, 0.17);
  color: #bfe9ff;
  font-size: 11px;
  font-weight: 700;
}
.strip-transport { display: flex; align-items: center; gap: 9px; }
.round-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(148, 186, 235, 0.24);
  background: rgba(14, 27, 47, 0.72);
  color: var(--text-soft);
  transition: background 0.18s, border-color 0.18s, transform 0.15s, color 0.18s;
}
.round-btn:hover { background: rgba(28, 54, 88, 0.88); border-color: rgba(140, 199, 255, 0.48); color: #fff; }
.round-btn:active { transform: scale(0.94); }
.round-btn .icon { width: 22px; height: 22px; }
.round-btn.primary {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(123, 202, 255, 0.75);
  background: linear-gradient(180deg, #1374e8, #0848a8);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(59, 166, 255, 0.12), 0 10px 28px rgba(11, 90, 205, 0.46);
}
.round-btn.primary:hover { background: linear-gradient(180deg, #2b8cff, #0b57c9); border-color: #9ad9ff; }
.round-btn.primary .icon { width: 27px; height: 27px; }
.round-btn.primary.giant { width: 74px; height: 74px; box-shadow: 0 0 0 7px rgba(59, 166, 255, 0.12), 0 14px 36px rgba(11, 90, 205, 0.5); }
.round-btn.ghost { background: transparent; border-color: rgba(148, 186, 235, 0.16); }
.round-btn.ghost:hover { background: rgba(42, 84, 132, 0.30); }
.round-btn .active-dot {
  display: none;
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue-2);
}
.round-btn.is-on { color: var(--blue-2); border-color: rgba(100, 190, 255, 0.42); }
.round-btn.is-on .active-dot { display: block; }

.strip-progress { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 2px; }
.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-top: -2px;
}
.time-row span:first-child { color: var(--muted); }

input[type="range"].range {
  --val: 0%;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"].range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) var(--val), rgba(128, 156, 193, 0.24) var(--val), rgba(128, 156, 193, 0.24) 100%);
}
input[type="range"].range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(128, 156, 193, 0.24);
}
input[type="range"].range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}
input[type="range"].range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a8ddff;
  box-shadow: 0 0 0 4px rgba(59, 166, 255, 0.16);
  transition: transform 0.15s;
}
input[type="range"].range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a8ddff;
  box-shadow: 0 0 0 4px rgba(59, 166, 255, 0.16);
}
input[type="range"].range:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"].range.light::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #8ed5ff 0%, #8ed5ff var(--val), rgba(255, 255, 255, 0.24) var(--val), rgba(255, 255, 255, 0.24) 100%);
}

.volume-inline { display: flex; align-items: center; gap: 4px; width: clamp(120px, 13vw, 220px); }
.volume-inline input { min-width: 0; }
.volume-btn { width: 38px; height: 38px; }
.volume-btn .icon { width: 20px; height: 20px; }
.strip-open { margin-left: auto; }
.home-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 5px;
  color: var(--muted-2);
  font-size: 11.5px;
  flex: none;
}
.home-hint .icon { width: 14px; height: 14px; }

/* ---------- Kopfbereiche der Seiten ---------- */

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 1px 4px 0;
  flex: none;
}
.view-head h1 { font-size: clamp(30px, 2.6vw, 42px); line-height: 1.02; margin-top: 2px; }
.view-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(15, 29, 50, 0.75);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, color 0.18s;
}
.btn:hover { background: rgba(27, 53, 86, 0.9); border-color: var(--line-strong); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }
.btn.primary {
  border-color: rgba(91, 182, 255, 0.52);
  background: linear-gradient(180deg, #1576ea, #0a4da9);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 90, 205, 0.34);
}
.btn.primary:hover { background: linear-gradient(180deg, #2d8eff, #0b57c4); border-color: #86d0ff; }
.btn.big { min-height: 52px; padding: 0 22px; font-size: 14px; border-radius: 16px; }
.btn.big .icon { width: 21px; height: 21px; }

/* ---------- Musik ---------- */

.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 15px;
  flex: 1;
  min-height: 0;
}
.now-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: clamp(16px, 1.6vw, 24px);
  overflow-y: auto;
  scrollbar-width: none;
}
.now-card::-webkit-scrollbar { display: none; }
.cover-xl {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  flex: none;
  align-self: center;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: #10213a;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(171, 213, 255, 0.16) inset;
  overflow: hidden;
}
.cover-xl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 15, 0.44));
  pointer-events: none;
}
.cover-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #e9f6ff;
  background: rgba(5, 13, 25, 0.62);
  border: 1px solid rgba(190, 223, 255, 0.25);
  backdrop-filter: blur(12px);
}
.cover-badge .icon { width: 19px; height: 19px; }
.now-meta { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.now-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.now-title-row h2 {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.now-artist { color: var(--text-soft); font-size: 15px; margin-top: 4px; }
.now-album { color: var(--blue-2); font-size: 12.5px; margin-top: 2px; }
.now-tools { display: flex; gap: 4px; }
.now-tools .round-btn { width: 42px; height: 42px; }
.now-tools .round-btn .icon { width: 19px; height: 19px; }
.seek-wrap { display: flex; flex-direction: column; gap: 1px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.transport.big { gap: clamp(5px, 0.8vw, 12px); padding: 3px 0; }
.transport.big .round-btn { width: clamp(42px, 3.2vw, 48px); height: clamp(42px, 3.2vw, 48px); }
.transport.big .round-btn .icon { width: 20px; height: 20px; }
.transport.big .round-btn.primary { width: clamp(62px, 4.6vw, 74px); height: clamp(62px, 4.6vw, 74px); }
.transport.big .round-btn.primary .icon { width: 28px; height: 28px; }
.volume-row { display: flex; align-items: center; gap: 9px; }
.volume-row .icon-btn { width: 40px; height: 40px; }
.volume-value { color: var(--muted); font-size: 11.5px; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.volume-row.wide { padding: 2px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }

.library-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 8px 10px 16px;
}
.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 12px 0;
  flex: none;
}
.library-head h2, .library-head h3 { font-size: 18px; }
.library-head > div { display: flex; align-items: baseline; gap: 9px; }
.library-head span { color: var(--muted-2); font-size: 11.5px; }
.track-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 166, 230, 0.28) transparent;
}
.track-list::-webkit-scrollbar { width: 6px; }
.track-list::-webkit-scrollbar-thumb { background: rgba(119, 166, 230, 0.26); border-radius: 8px; }
.track-row {
  display: grid;
  grid-template-columns: 26px 44px minmax(0, 1fr) auto 38px 38px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.track-row:hover { background: rgba(38, 77, 124, 0.24); border-color: rgba(130, 184, 245, 0.13); }
.track-row.current { background: linear-gradient(90deg, rgba(26, 104, 205, 0.28), rgba(18, 46, 82, 0.20)); border-color: rgba(99, 181, 255, 0.28); }
.track-num { color: var(--muted-2); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.track-row.current .track-num { color: var(--blue-2); }
.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  background-color: #13233b;
}
.track-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.track-copy strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-copy span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-duration { color: var(--muted-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.track-fav, .track-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.track-fav:hover, .track-play:hover { color: #fff; background: rgba(105, 164, 235, 0.16); }
.track-fav.is-fav { color: #ffcf6b; }
.track-fav .icon, .track-play .icon { width: 17px; height: 17px; }
.track-row.current .track-play { color: var(--blue-2); }
.track-row .mini-bars { display: none; align-items: flex-end; gap: 2px; height: 14px; justify-self: center; }
.track-row.current.is-audible .mini-bars { display: flex; }
.track-row.current.is-audible .track-num { display: none; }
.mini-bars i { display: block; width: 2px; height: 4px; background: var(--blue-2); border-radius: 2px; animation: eq 0.8s ease-in-out infinite alternate; }
.mini-bars i:nth-child(2) { animation-delay: -0.3s; height: 9px; }
.mini-bars i:nth-child(3) { animation-delay: -0.55s; height: 6px; }

.media-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  flex: none;
  min-height: 62px;
  padding: 6px;
  overflow: hidden;
}
.media-actions button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 570;
  transition: background 0.18s, color 0.18s;
  min-width: 0;
}
.media-actions button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: var(--line);
}
.media-actions button:hover { background: rgba(54, 105, 166, 0.20); color: #fff; }
.media-actions .icon { width: 21px; height: 21px; color: var(--blue-2); }
.media-actions .chevron { margin-left: auto; width: 17px; height: 17px; color: var(--muted-2); }
.media-actions .count-badge { margin-left: auto; }
.media-actions span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Podcasts ---------- */

.podcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  grid-template-areas:
    "hero mini"
    "hero episodes";
  gap: 15px;
  flex: 1;
  min-height: 0;
}
.podcast-hero {
  grid-area: hero;
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  align-items: center;
  min-height: 0;
  padding: clamp(18px, 2vw, 30px);
  background:
    linear-gradient(140deg, rgba(25, 36, 72, 0.90), rgba(8, 14, 27, 0.96)),
    radial-gradient(90% 110% at 0% 0%, rgba(103, 83, 235, 0.22), transparent 65%);
  overflow: hidden;
}
.podcast-cover {
  position: relative;
  width: min(38%, 300px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  background-color: #171b36;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.podcast-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(201, 222, 255, 0.18); }
.podcast-hero-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.podcast-hero-copy h2 { font-size: clamp(25px, 2.5vw, 42px); line-height: 1.04; overflow-wrap: anywhere; }
.podcast-show { color: var(--text-soft); font-size: 14px; }
.podcast-desc { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.podcast-meta { display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: 12px; padding: 3px 0; }
.podcast-meta span { display: inline-flex; align-items: center; gap: 6px; }
.podcast-meta .icon { width: 16px; height: 16px; color: var(--muted-2); }
.podcast-actions { display: flex; align-items: center; gap: 9px; padding-top: 4px; flex-wrap: wrap; }
.podcast-actions .btn.big { min-height: 52px; }
.podcast-actions .btn.big .icon { width: 20px; height: 20px; }
.podcast-mini {
  grid-area: mini;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  min-height: 86px;
}
.podcast-mini-cover {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  background-size: cover;
  background-position: center;
  background-color: #171b36;
  flex: none;
}
.podcast-mini-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.podcast-mini-copy strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-mini-copy span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podcast-mini-copy .range { margin-top: 2px; height: 18px; }
.podcast-mini .round-btn { width: 50px; height: 50px; }
.episode-card { grid-area: episodes; display: flex; flex-direction: column; min-height: 0; padding: 14px 8px 8px 14px; }
.episode-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(119, 166, 230, 0.28) transparent; }
.episode-list::-webkit-scrollbar { width: 6px; }
.episode-list::-webkit-scrollbar-thumb { background: rgba(119, 166, 230, 0.26); border-radius: 8px; }
.episode-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.episode-row:hover { background: rgba(45, 82, 130, 0.22); border-color: rgba(130, 184, 245, 0.12); }
.episode-row.current { background: rgba(41, 93, 158, 0.28); border-color: rgba(99, 181, 255, 0.28); }
.episode-cover { width: 52px; height: 52px; border-radius: 11px; background-size: cover; background-position: center; background-color: #171b36; }
.episode-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.episode-copy strong { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-copy span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.episode-play:hover { color: #fff; background: rgba(105, 164, 235, 0.16); }
.episode-play .icon { width: 17px; height: 17px; }
.episode-row.current .episode-play { color: var(--blue-2); }

/* ---------- Videos ---------- */

.drive-pill {
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 92, 0.30);
  background: rgba(255, 196, 92, 0.10);
  color: #ffdc9b;
  font-size: 11.5px;
  font-weight: 650;
}
.drive-pill.parked { border-color: rgba(69, 216, 161, 0.34); background: rgba(69, 216, 161, 0.10); color: #a9f7db; }
.drive-pill .icon { width: 14px; height: 14px; }

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.78fr);
  gap: 15px;
  flex: 1;
  min-height: 0;
}
.video-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(150, 195, 255, 0.20);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: none;
}
.video-host { position: absolute; inset: 0; }
.video-host video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.video-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s;
  pointer-events: none;
}
.video-stage.has-frame .video-poster { opacity: 0; }
.stage-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.48) 0%, transparent 26%, transparent 58%, rgba(2, 5, 10, 0.86) 100%);
}
.stage-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; z-index: 3; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}
.badge.solid { background: rgba(6, 14, 26, 0.62); border: 1px solid rgba(190, 222, 255, 0.22); color: #e6f4ff; }
.badge.danger { background: rgba(116, 28, 42, 0.55); border: 1px solid rgba(255, 100, 121, 0.36); color: #ffd3da; }
.badge.success { background: rgba(18, 91, 70, 0.50); border: 1px solid rgba(69, 216, 161, 0.36); color: #c9ffeb; }
.badge .icon { width: 12px; height: 12px; }
.stage-top-actions { position: absolute; top: 13px; right: 13px; display: flex; gap: 7px; z-index: 4; }
.stage-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(189, 220, 255, 0.22);
  background: rgba(5, 12, 23, 0.55);
  color: #e8f5ff;
  backdrop-filter: blur(14px);
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.stage-icon:hover { background: rgba(32, 72, 122, 0.70); border-color: rgba(140, 204, 255, 0.5); }
.stage-icon:active { transform: scale(0.94); }
.stage-icon .icon { width: 20px; height: 20px; }
.stage-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  width: clamp(62px, 5.5vw, 86px);
  height: clamp(62px, 5.5vw, 86px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(10, 18, 32, 0.42);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.05), 0 18px 50px rgba(0, 0, 0, 0.48);
  transition: transform 0.18s, background 0.18s;
}
.video-stage.has-frame .stage-play { display: none !important; }
.stage-play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(18, 40, 72, 0.68); }
.stage-play .icon { width: 38%; height: 38%; }
.stage-play .icon use { transform: translateX(1px); }
body.is-parked .stage-play { display: flex; }
body.is-driving .stage-play { display: none !important; }

.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 7, 14, 0.58);
  backdrop-filter: blur(4px);
}
body.is-driving .lock-overlay { display: flex; }
body.is-driving .video-stage .video-poster {
  filter: blur(5px) brightness(0.72);
  transform: scale(1.02);
}
.lock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  text-align: center;
}
.lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 92, 0.4);
  background: rgba(255, 196, 92, 0.12);
  color: var(--warn);
  margin-bottom: 2px;
}
.lock-icon .icon { width: 27px; height: 27px; }
.lock-card h2 { font-size: clamp(21px, 2vw, 29px); color: #fff; }
.lock-card p { color: var(--text-soft); font-size: 13px; max-width: 44ch; }
.lock-card .lock-legal { color: #ffd998; font-size: 11.5px; border-top: 1px solid rgba(255, 196, 92, 0.2); padding-top: 7px; margin-top: 2px; }
.lock-card .btn { margin-top: 5px; }
.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(3, 7, 14, 0.55);
  color: #d9ecff;
  font-size: 12px;
  backdrop-filter: blur(5px);
}
.stage-loading.show { display: flex; }
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(144, 196, 255, 0.22);
  border-top-color: var(--blue-2);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stage-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 44px 16px 13px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 12, 0.90));
  transition: opacity 0.25s;
}
.stage-progress { display: flex; flex-direction: column; gap: 0; margin-bottom: 2px; }
.stage-progress .time-row { color: rgba(225, 240, 255, 0.72); font-size: 10.5px; }
.stage-progress .time-row span:first-child { color: #fff; }
.stage-controls { display: flex; align-items: center; gap: 5px; }
.stage-controls .stage-icon { width: 38px; height: 38px; background: transparent; border-color: transparent; }
.stage-controls .stage-icon:hover { background: rgba(255, 255, 255, 0.12); }
.stage-controls .stage-icon .icon { width: 19px; height: 19px; }
.stage-controls input.volume { width: 96px; margin: 0 4px; }
.stage-spacer { flex: 1; }
.video-stage:fullscreen,
.video-stage:-webkit-full-screen,
.video-stage.pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
}
.video-stage:fullscreen .video-host video,
.video-stage:-webkit-full-screen .video-host video,
.video-stage.pseudo-fullscreen .video-host video { object-fit: contain; }
.video-stage:fullscreen .stage-chrome,
.video-stage:-webkit-full-screen .stage-chrome,
.video-stage.pseudo-fullscreen .stage-chrome { padding: 80px 34px 26px; }
.video-stage:fullscreen .stage-badges,
.video-stage:-webkit-full-screen .stage-badges,
.video-stage.pseudo-fullscreen .stage-badges { top: 24px; left: 26px; }
.video-stage:fullscreen .stage-top-actions,
.video-stage:-webkit-full-screen .stage-top-actions,
.video-stage.pseudo-fullscreen .stage-top-actions { top: 22px; right: 26px; }
body.stage-idle .video-stage:fullscreen .stage-chrome,
body.stage-idle .video-stage:-webkit-full-screen .stage-chrome,
body.stage-idle .video-stage.pseudo-fullscreen .stage-chrome,
body.stage-idle .video-stage:fullscreen .stage-top-actions,
body.stage-idle .video-stage:-webkit-full-screen .stage-top-actions,
body.stage-idle .video-stage.pseudo-fullscreen .stage-top-actions {
  opacity: 0;
  pointer-events: none;
}
body.pseudo-fullscreen .view.active,
body.pseudo-fullscreen .main,
body.pseudo-fullscreen .app {
  overflow: visible !important;
  transform: none !important;
}
body.pseudo-fullscreen .view.active { animation: none !important; }

.video-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px;
  flex: none;
}
.video-volume { display: flex; align-items: center; gap: 3px; width: clamp(110px, 12vw, 190px); flex: none; }
.video-controls .transport { flex: 1; }
.video-controls .transport .round-btn { width: 44px; height: 44px; }
.video-controls .transport .round-btn .icon { width: 20px; height: 20px; }
.video-controls .transport .round-btn.primary { width: 62px; height: 62px; }
.video-controls .transport .round-btn.primary .icon { width: 26px; height: 26px; }
.push-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.push-btn:hover { color: #fff; border-color: var(--line-strong); background: rgba(42, 84, 132, 0.24); }
.push-btn .icon { width: 16px; height: 16px; }

.video-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 166, 230, 0.24) transparent;
}
.video-info::-webkit-scrollbar { width: 6px; }
.video-info::-webkit-scrollbar-thumb { background: rgba(119, 166, 230, 0.22); border-radius: 8px; }
.video-info-head { display: flex; align-items: center; justify-content: space-between; }
.video-info h2 { font-size: clamp(23px, 2vw, 33px); line-height: 1.06; margin-top: 5px; overflow-wrap: anywhere; }
.video-channel { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.video-channel::after { content: " · Videos"; color: var(--blue-2); font-size: 12.5px; }
.video-meta { display: flex; flex-direction: column; gap: 7px; padding: 16px 0; margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.video-meta span { display: flex; align-items: center; gap: 9px; }
.video-meta .icon { width: 17px; height: 17px; color: var(--muted-2); }
.video-desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; padding: 13px 0; }
.safety-note {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 196, 92, 0.22);
  background: rgba(255, 196, 92, 0.07);
  margin-bottom: 12px;
}
body.is-driving .safety-note[data-show-when="driving"] { display: flex; }
.safety-note .icon { width: 18px; height: 18px; color: var(--warn); margin-top: 1px; }
.safety-note div { display: flex; flex-direction: column; gap: 2px; }
.safety-note strong { font-size: 12px; color: #ffe2ac; }
.safety-note span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.safety-note.compact { margin: 10px 0 0; }
.video-info-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.video-info-actions .btn { padding: 0 10px; font-size: 12px; }
.video-list-wrap { margin-top: 17px; }
.video-list { display: flex; flex-direction: column; gap: 5px; margin-top: 3px; }
.video-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
}
.video-row:hover { background: rgba(42, 82, 132, 0.24); border-color: rgba(130, 184, 245, 0.12); }
.video-row.current { background: rgba(41, 93, 158, 0.26); border-color: rgba(99, 181, 255, 0.25); }
.video-row-thumb { width: 76px; aspect-ratio: 16/9; border-radius: 8px; background-size: cover; background-position: center; background-color: #0c1727; }
.video-row-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.video-row-copy strong { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-row-copy span { color: var(--muted-2); font-size: 10.5px; }

/* ---------- Favoriten ---------- */

.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: none; }
.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 40, 0.60);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.filter-chip:hover { color: #fff; border-color: var(--line-strong); }
.filter-chip.active { color: #eaf7ff; border-color: rgba(94, 183, 255, 0.52); background: rgba(31, 114, 217, 0.26); }
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 13px;
  align-content: start;
  padding-bottom: 4px;
}
.fav-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 9px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 32, 54, 0.88), rgba(7, 14, 26, 0.94));
  transition: transform 0.2s, border-color 0.2s;
  text-align: left;
}
.fav-card:hover { transform: translateY(-2px); border-color: rgba(120, 188, 255, 0.32); }
.fav-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #12233a;
  overflow: hidden;
}
.fav-cover.square { aspect-ratio: 1.55; }
.fav-type {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(4, 11, 21, 0.68);
  border: 1px solid rgba(196, 224, 255, 0.20);
  color: #e2f2ff;
  font-size: 9.5px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}
.fav-type .icon { width: 11px; height: 11px; }
.fav-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6, 14, 26, 0.62);
  border: 1px solid rgba(206, 232, 255, 0.30);
  color: #fff;
  backdrop-filter: blur(8px);
}
.fav-play:hover { background: rgba(24, 92, 174, 0.86); }
.fav-play .icon { width: 18px; height: 18px; }
.fav-copy { display: flex; flex-direction: column; gap: 2px; padding: 9px 5px 6px; min-width: 0; }
.fav-copy strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-copy span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 1px; margin-top: auto; }
.fav-kind { color: var(--muted-2); font-size: 10.5px; }
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 330px;
  padding: 30px;
  border: 1px dashed rgba(140, 184, 240, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(10, 20, 36, 0.36);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 196, 92, 0.09);
  border: 1px solid rgba(255, 196, 92, 0.24);
  color: var(--warn);
  margin-bottom: 2px;
}
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 46ch; line-height: 1.55; }
.empty-state .btn { margin-top: 8px; }

/* ---------- Einstellungen ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 6px;
}
.setting-card { padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.setting-head { display: flex; align-items: flex-start; gap: 12px; }
.setting-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(47, 134, 238, 0.14);
  border: 1px solid rgba(91, 170, 255, 0.20);
  color: var(--blue-2);
  flex: none;
}
.setting-icon.warning { background: rgba(255, 196, 92, 0.09); border-color: rgba(255, 196, 92, 0.20); color: var(--warn); }
.setting-icon .icon { width: 21px; height: 21px; }
.setting-head h2 { font-size: 16.5px; }
.setting-head p { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.setting-copy { color: var(--muted); font-size: 12px; line-height: 1.55; }
.setting-copy.small { font-size: 11px; color: var(--muted-2); }
.setting-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.status-line { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 12px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(120, 150, 190, 0.10);
  flex: none;
}
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(69, 216, 161, 0.14), 0 0 10px rgba(69, 216, 161, 0.55); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 196, 92, 0.13); }
.drive-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drive-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 40, 0.55);
  color: var(--muted);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.drive-option .icon { width: 20px; height: 20px; margin-bottom: 2px; }
.drive-option strong { font-size: 13px; color: var(--text-soft); }
.drive-option span { font-size: 10.5px; }
.drive-option:hover { border-color: var(--line-strong); }
.drive-option.active { border-color: rgba(255, 196, 92, 0.48); background: rgba(255, 196, 92, 0.09); color: #ffe2ac; }
body.is-parked .drive-option.active { border-color: rgba(69, 216, 161, 0.48); background: rgba(69, 216, 161, 0.09); color: #b9ffe5; }
.drive-option.active strong { color: #fff; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(140, 180, 235, 0.09); }
.toggle-line > div { display: flex; flex-direction: column; gap: 1px; }
.toggle-line strong { font-size: 12.5px; font-weight: 600; }
.toggle-line span { color: var(--muted-2); font-size: 10.5px; }
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(120, 150, 190, 0.22);
  border: 1px solid rgba(150, 190, 235, 0.18);
  transition: background 0.2s, border-color 0.2s;
  flex: none;
}
.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d8e6f7;
  transition: transform 0.2s, background 0.2s;
}
.switch.is-on { background: rgba(28, 125, 232, 0.72); border-color: rgba(115, 198, 255, 0.55); }
.switch.is-on span { transform: translateX(20px); background: #fff; }
.storage-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 10.5px; border-top: 1px solid var(--line); padding-top: 9px; }
.text-btn { color: var(--blue-2); font-size: 10.5px; font-weight: 600; padding: 4px; }
.text-btn:hover { color: #bde8ff; text-decoration: underline; }
.imported-list { display: flex; flex-direction: column; gap: 5px; max-height: 165px; overflow-y: auto; }
.imported-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(13, 25, 43, 0.62);
  border: 1px solid rgba(140, 180, 235, 0.08);
}
.imported-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(59, 166, 255, 0.10); color: var(--blue-2); }
.imported-icon .icon { width: 15px; height: 15px; }
.imported-copy { display: flex; flex-direction: column; min-width: 0; }
.imported-copy strong { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imported-copy span { font-size: 9.5px; color: var(--muted-2); }
.imported-del { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted-2); }
.imported-del:hover { color: var(--danger); background: rgba(255, 100, 121, 0.10); }
.imported-del .icon { width: 14px; height: 14px; }
.import-empty { color: var(--muted-2); font-size: 10.5px; padding: 5px 0; }

/* ---------- Mobile Navigation ---------- */

.mobile-nav { display: none; }
.nav-lock { display: none; }

/* ---------- Overlays / Sheets ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 5, 11, 0.66);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed;
  z-index: 61;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 48px));
  border: 1px solid rgba(160, 200, 250, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(17, 29, 48, 0.98), rgba(7, 14, 26, 0.99)),
    radial-gradient(100% 70% at 100% 0%, rgba(44, 121, 220, 0.16), transparent 60%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: sheetIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(calc(-50% + 16px)) scale(0.985); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px 22px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet-head h2 { font-size: 19px; }
.sheet-head p { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.sheet-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.sheet-close:hover { background: rgba(140, 185, 240, 0.12); color: #fff; }
.sheet-body { padding: 14px 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.sheet-body::-webkit-scrollbar { width: 6px; }
.sheet-body::-webkit-scrollbar-thumb { background: rgba(119, 166, 230, 0.26); border-radius: 8px; }
.sheet-section { display: flex; flex-direction: column; gap: 8px; }
.sheet-section h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 650; }
.sheet-note { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; text-align: center; color: var(--muted); font-size: 12px; }
.sheet-empty .icon { width: 30px; height: 30px; color: var(--muted-2); }

.queue-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px;
  border-radius: 11px;
  border: 1px solid transparent;
  text-align: left;
}
.queue-row:hover { background: rgba(49, 92, 142, 0.24); border-color: rgba(130, 184, 245, 0.12); }
.queue-row.current { background: rgba(41, 93, 158, 0.28); border-color: rgba(99, 181, 255, 0.26); }
.queue-cover { width: 40px; height: 40px; border-radius: 9px; background-size: cover; background-position: center; background-color: #13233b; }
.queue-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.queue-copy strong { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-copy span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-time { color: var(--muted-2); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.playlist-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.playlist-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 40, 0.55);
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}
.playlist-row:hover { border-color: rgba(115, 184, 255, 0.35); background: rgba(24, 49, 82, 0.55); }
.playlist-cover { position: relative; width: 52px; height: 52px; border-radius: 11px; background-size: cover; background-position: center; background-color: #13233b; }
.playlist-cover .icon { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.playlist-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.playlist-copy strong { font-size: 12.5px; font-weight: 600; }
.playlist-copy span { color: var(--muted); font-size: 10.5px; }
.playlist-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); }
.playlist-play:hover { color: #fff; border-color: var(--line-strong); }
.playlist-play .icon { width: 15px; height: 15px; }

.sound-volume { display: flex; align-items: center; gap: 12px; }
.sound-volume .range { flex: 1; }
.sound-volume .volume-value { min-width: 46px; font-size: 13px; color: var(--text-soft); }
.sound-presets { display: flex; gap: 7px; flex-wrap: wrap; }
.sound-presets button { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.sound-presets button:hover { color: #fff; border-color: var(--line-strong); }

.add-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(8, 16, 29, 0.66); border: 1px solid var(--line); }
.add-tabs button { flex: 1; min-height: 38px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600; }
.add-tabs button.active { background: rgba(34, 114, 208, 0.33); color: #fff; box-shadow: inset 0 0 0 1px rgba(105, 190, 255, 0.35); }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 152px;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed rgba(135, 188, 250, 0.34);
  background: rgba(20, 45, 78, 0.22);
  text-align: center;
  transition: border-color 0.18s, background 0.18s;
}
.dropzone:hover { border-color: rgba(135, 200, 255, 0.62); background: rgba(28, 65, 110, 0.28); }
.dropzone .drop-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(59, 166, 255, 0.13); color: var(--blue-2); }
.dropzone .drop-icon .icon { width: 22px; height: 22px; }
.dropzone strong { font-size: 13.5px; }
.dropzone span { color: var(--muted); font-size: 11px; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.drive-sheet-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.drive-sheet-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 40, 0.58);
  text-align: left;
  color: var(--muted);
}
.drive-sheet-option .icon { width: 25px; height: 25px; }
.drive-sheet-option strong { font-size: 14px; color: var(--text-soft); }
.drive-sheet-option span { font-size: 10.5px; line-height: 1.4; }
.drive-sheet-option.active { border-color: rgba(255, 196, 92, 0.48); background: rgba(255, 196, 92, 0.09); color: #ffe2ac; }
.drive-sheet-option.active strong { color: #fff; }
body.is-parked .drive-sheet-option.active { border-color: rgba(69, 216, 161, 0.5); background: rgba(69, 216, 161, 0.09); color: #b9ffe5; }
.install-steps { display: flex; flex-direction: column; gap: 11px; }
.install-step { display: flex; gap: 10px; align-items: flex-start; }
.install-step-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(59, 166, 255, 0.16); color: var(--blue-2); font-size: 11px; font-weight: 700; flex: none; }
.install-step div { display: flex; flex-direction: column; gap: 2px; }
.install-step strong { font-size: 12px; }
.install-step span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.install-ok { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 12px; background: rgba(69, 216, 161, 0.08); border: 1px solid rgba(69, 216, 161, 0.22); color: #b9ffe5; font-size: 12px; }
.install-ok .icon { width: 18px; height: 18px; }
.about-list { display: flex; flex-direction: column; gap: 8px; }
.about-row { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: var(--muted); }
.about-row strong { color: var(--text-soft); font-weight: 550; text-align: right; }

.toast-root {
  position: fixed;
  left: 50%;
  top: calc(82px + var(--safe-top));
  bottom: auto;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  width: min(560px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid rgba(152, 199, 250, 0.24);
  background: rgba(10, 21, 38, 0.96);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.52);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
  animation: toastIn 0.25s ease both;
  pointer-events: auto;
  max-width: 100%;
}
.toast .icon { width: 17px; height: 17px; color: var(--blue-2); flex: none; }
.toast.warn { border-color: rgba(255, 196, 92, 0.38); }
.toast.warn .icon { color: var(--warn); }
.toast.ok { border-color: rgba(69, 216, 161, 0.34); }
.toast.ok .icon { color: var(--ok); }
.toast.error { border-color: rgba(255, 100, 121, 0.4); }
.toast.error .icon { color: var(--danger); }
.toast.leaving { animation: toastOut 0.25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(9px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(0.98); } }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 8, 17, 0.78);
  backdrop-filter: blur(8px);
}
.drop-overlay[hidden] { display: none; }
.drop-overlay::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 2px dashed rgba(105, 190, 255, 0.55);
}
.drop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.drop-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(59, 166, 255, 0.16);
  border: 1px solid rgba(122, 200, 255, 0.45);
  color: #dff4ff;
}
.drop-icon .icon { width: 34px; height: 34px; }
.drop-card h2 { font-size: 25px; }
.drop-card p { color: var(--muted); font-size: 13px; }

/* ---------- Sichtbarkeitsregeln ---------- */

[data-show-when] { display: none; }
body.is-driving [data-show-when="driving"] { display: inline-flex; }
body.is-parked [data-show-when="parked"] { display: inline-flex; }
body.is-playing [data-show-when="playing"] { display: inline-flex; }
body.is-driving .drive-pill[data-show-when="driving"] { display: inline-flex; }
body.is-driving .safety-note[data-show-when="driving"] { display: flex; }
body.is-driving .lock-overlay[data-show-when="driving"] { display: flex; }
body.is-playing .mini-eq[data-show-when="playing"] { display: inline-flex; }
body.is-driving .mobile-nav .nav-lock {
  display: block;
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 8px rgba(255, 196, 92, 0.8);
}

/* ---------- Responsive ---------- */

@media (max-width: 1360px) {
  .app { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; padding-left: 18px; padding-right: 18px; }
  .rail { padding: 10px 8px; border-radius: 24px; }
  .rail-btn { min-height: 64px; gap: 0; border-radius: 15px; }
  .rail-label { display: none; }
  .rail-settings { border-radius: 0 0 15px 15px; }
  .rail-foot { display: none; }
  .rail-btn .icon { width: 25px; height: 25px; }
  .rail-lock { top: 4px; right: 5px; }
  .home-grid { grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); }
  .hero-copy { right: 24%; }
  .hero-eq { height: 48px; gap: 3px; }
  .hero-eq i { width: 4px; }
  .strip-queue { min-width: 54px; padding: 0 12px; }
  .strip-queue-label { display: none; }
  .strip-queue .count-badge { display: none; }
  .volume-inline { width: 150px; }
}

@media (max-width: 1120px) {
  .app { grid-template-columns: 82px minmax(0, 1fr); column-gap: 13px; padding: 8px 14px 14px; }
  .status-icons { gap: 11px; padding-left: 12px; }
  .landing-chip { display: none; }
  .brand-name { display: none; }
  .brand { padding: 5px; min-height: 46px; }
  .brand-mark { width: 36px; height: 36px; }
  .home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr); }
  .hero-copy { right: 12%; }
  .hero-eq { display: none; }
  .music-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .cover-xl { width: min(100%, 270px); }
  .video-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr); }
  .video-info { padding: 15px; }
  .video-controls { flex-wrap: wrap; }
  .video-controls .transport { order: 3; flex-basis: 100%; justify-content: center; }
  .video-controls .push-btn { margin-left: auto; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: 66px minmax(0, 1fr); column-gap: 11px; }
  .rail-btn { min-height: 58px; }
  .rail-btn .icon { width: 23px; height: 23px; }
  .home-grid { grid-template-columns: 1fr; flex: none; min-height: 0; }
  .hero { min-height: 310px; height: 42vh; max-height: 430px; }
  .home-tiles { grid-template-rows: 130px 130px; }
  .tile { min-height: 0; }
  .view.active { overflow-y: auto; }
  #view-home.active { overflow-y: auto; }
  .music-layout { grid-template-columns: 1fr; flex: none; }
  .now-card { overflow: visible; }
  .cover-xl { width: min(64vw, 300px); }
  .library-card { min-height: 430px; }
  .podcast-layout { grid-template-columns: 1fr; grid-template-areas: "hero" "mini" "episodes"; flex: none; }
  .podcast-hero { min-height: 240px; }
  .episode-card { min-height: 380px; }
  .video-layout { grid-template-columns: 1fr; flex: none; }
  .video-info { overflow: visible; }
  .video-controls { flex-wrap: nowrap; }
  .video-controls .transport { order: 0; flex-basis: auto; }
  .settings-grid { grid-template-columns: 1fr; }
  .video-stage { max-height: 58vh; }
  .media-actions { flex: none; }
}

@media (max-width: 720px) {
  .app {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px calc(72px + var(--safe-bottom));
    padding-top: calc(8px + var(--safe-top));
    height: 100dvh;
  }
  .topbar { flex: none; gap: 8px; padding: 0 2px; min-height: 50px; }
  .top-home { display: none; }
  .clock { font-size: 23px; min-width: 61px; }
  .status-icons { gap: 9px; padding-left: 8px; }
  .status-icons .icon { width: 18px; height: 18px; }
  .status-icons .icon:nth-child(2) { display: none; }
  .drive-chip { min-height: 40px; padding: 0 11px; font-size: 12px; gap: 6px; }
  .drive-chip .icon { width: 17px; height: 17px; }
  .drive-dot { display: none; }
  .install-chip { min-height: 40px; padding: 0 11px; font-size: 11.5px; }
  .install-chip span { display: none; }
  .settings-top { display: inline-grid; width: 40px; height: 40px; }
  .brand { display: none; }
  .rail { display: none; }
  .main { flex: 1; min-height: 0; }
  .mobile-nav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(7px + var(--safe-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    min-height: 60px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(9, 18, 32, 0.94);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(22px);
  }
  .mobile-nav button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 560;
  }
  .mobile-nav button .icon { width: 21px; height: 21px; }
  .mobile-nav button.active { color: #fff; background: rgba(35, 123, 225, 0.28); box-shadow: inset 0 0 0 1px rgba(103, 189, 255, 0.26); }
  .view { padding-right: 2px; padding-bottom: 3px; }
  .view.active { gap: 11px; }
  .view-head { align-items: flex-start; flex-direction: column; gap: 10px; padding: 0 2px; }
  .view-head h1 { font-size: 30px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .head-actions .btn { flex: 1; }
  .drive-pill { flex: none; }
  .home-grid { gap: 10px; }
  .hero { height: 38vh; min-height: 260px; max-height: 380px; border-radius: 22px; }
  .hero-copy { left: 18px; right: 18px; bottom: 22px; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 44px); }
  .hero-artist { font-size: 16px; }
  .live-chip { top: 12px; right: 12px; }
  .home-tiles { gap: 9px; grid-template-rows: 122px 122px; }
  .tile { padding: 14px 13px 12px; border-radius: 17px; gap: 7px; }
  .tile-icon { width: 38px; height: 38px; border-radius: 11px; }
  .tile-icon .icon { width: 20px; height: 20px; }
  .tile-copy strong { font-size: 15px; }
  .tile-copy small { font-size: 10.5px; }
  .tile-count { font-size: 10.5px; }
  .tile-chevron { top: 14px; right: 11px; width: 16px; height: 16px; }
  .tile-lock { bottom: 8px; right: 8px; font-size: 9px; padding: 3px 6px; }
  .player-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "transport transport transport" "progress progress progress" "queue volume open"; gap: 8px; padding: 12px; min-height: 0; }
  .strip-transport { grid-area: transport; justify-content: center; }
  .strip-progress { grid-area: progress; }
  .strip-queue { grid-area: queue; min-width: 0; width: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .volume-inline { grid-area: volume; width: auto; }
  .volume-inline .volume-btn { width: 34px; height: 34px; }
  .strip-open { grid-area: open; margin: 0; width: 42px; height: 42px; }
  .home-hint { font-size: 10.5px; }
  .round-btn { width: 46px; height: 46px; }
  .round-btn .icon { width: 20px; height: 20px; }
  .round-btn.primary { width: 58px; height: 58px; }
  .round-btn.primary.giant { width: 66px; height: 66px; }
  .now-card { padding: 14px; gap: 12px; border-radius: 19px; }
  .cover-xl { width: min(74vw, 300px); border-radius: 17px; }
  .now-title-row h2 { font-size: 24px; }
  .transport.big { gap: 3px; justify-content: space-between; }
  .transport.big .round-btn { width: 40px; height: 40px; }
  .transport.big .round-btn.primary { width: 60px; height: 60px; }
  .now-tools .round-btn { width: 38px; height: 38px; }
  .library-card { min-height: 380px; padding: 12px 6px 8px 12px; }
  .track-row { grid-template-columns: 22px 40px minmax(0, 1fr) 34px; min-height: 58px; gap: 7px; padding: 6px; }
  .track-row .track-fav { display: none; }
  .track-thumb { width: 40px; height: 40px; }
  .track-copy strong { font-size: 12.5px; }
  .track-copy span { font-size: 10.5px; }
  .media-actions { grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; min-height: 0; }
  .media-actions button { min-height: 44px; padding: 0 10px; font-size: 11.5px; gap: 7px; }
  .media-actions button + button::before { display: none; }
  .media-actions .icon { width: 18px; height: 18px; }
  .media-actions .chevron { display: none; }
  .podcast-hero { flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; }
  .podcast-cover { width: min(62vw, 240px); border-radius: 18px; }
  .podcast-hero-copy h2 { font-size: 26px; }
  .podcast-desc { -webkit-line-clamp: 3; }
  .podcast-mini { min-height: 74px; padding: 9px 11px; gap: 9px; }
  .podcast-mini-cover { width: 48px; height: 48px; }
  .podcast-mini .round-btn { width: 46px; height: 46px; }
  .episode-card { min-height: 330px; }
  .video-layout { gap: 10px; }
  .video-stage { border-radius: 17px; min-height: 252px; }
  .stage-badges { top: 9px; left: 9px; }
  .stage-top-actions { top: 8px; right: 8px; gap: 5px; }
  .stage-icon { width: 36px; height: 36px; }
  .stage-chrome { padding: 30px 8px 7px; }
  .stage-controls { gap: 1px; }
  .stage-controls .stage-icon { width: 34px; height: 34px; }
  .stage-controls input.volume { width: 66px; }
  .stage-progress .time-row { font-size: 9.5px; }
  .lock-card { gap: 5px; }
  .lock-icon { width: 46px; height: 46px; }
  .lock-card h2 { font-size: 20px; }
  .lock-card p { font-size: 11.5px; }
  .lock-card .lock-legal { font-size: 10.5px; }
  .video-controls { padding: 10px; gap: 7px; border-radius: 17px; flex-wrap: wrap; }
  .video-volume { width: 100%; order: 1; }
  .video-controls .transport { order: 2; flex-basis: 100%; gap: 3px; }
  .video-controls .push-btn { display: none; }
  .video-controls .transport .round-btn { width: 38px; height: 38px; }
  .video-controls .transport .round-btn.primary { width: 56px; height: 56px; }
  .video-info { border-radius: 18px; padding: 14px; }
  .video-info h2 { font-size: 24px; }
  .video-info-actions .btn { font-size: 11px; padding: 0 8px; }
  .favorites-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .fav-card { padding: 6px; border-radius: 14px; }
  .fav-cover { border-radius: 10px; aspect-ratio: 1.25; }
  .fav-copy { padding: 7px 3px 4px; }
  .fav-copy strong { font-size: 12px; }
  .fav-copy span { font-size: 10px; }
  .fav-play { width: 34px; height: 34px; right: 6px; bottom: 6px; }
  .empty-state { min-height: 280px; }
  .settings-grid { gap: 10px; }
  .setting-card { padding: 14px; border-radius: 18px; }
  .sheet { right: 0; left: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88dvh; border-radius: 24px 24px 0 0; animation: sheetUp 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both; padding-bottom: var(--safe-bottom); }
  @keyframes sheetUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  .sheet-head { padding: 15px 14px 10px 18px; }
  .sheet-body { padding: 12px 14px 16px; }
  .toast-root { bottom: auto; top: calc(64px + var(--safe-top)); }
  .drive-sheet-options { gap: 7px; }
  .drive-sheet-option { padding: 12px; }
}

@media (max-width: 430px) {
  .clock { font-size: 20px; min-width: 54px; }
  .status-icons .icon:nth-child(3) { display: none; }
  .install-chip { width: 40px; padding: 0; justify-content: center; }
  .drive-chip span[data-bind] { max-width: 52px; overflow: hidden; text-overflow: ellipsis; }
  .home-tiles { grid-template-rows: 112px 112px; }
  .tile { padding: 12px 11px; }
  .tile-copy small { display: none; }
  .hero { height: 36vh; min-height: 235px; }
  .favorites-grid { grid-template-columns: 1fr; }
  .fav-cover { aspect-ratio: 1.7; }
  .transport.big .round-btn:nth-child(1), .transport.big .round-btn:nth-child(7) { display: none; }
  .video-info-actions { grid-template-columns: 1fr; }
}

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

/* ---------- Hell genug für draußen, dunkel genug für nachts ---------- */
@media (prefers-contrast: more) {
  :root { --muted: #b8c8de; --muted-2: #98abc5; --line: rgba(190, 220, 255, 0.26); }
}
