@property --h1 { syntax: "<number>"; inherits: true; initial-value: 28; }
@property --h2 { syntax: "<number>"; inherits: true; initial-value: 350; }

:root {
  --h1: 28;
  --h2: 350;
  --bg: #000;
  --cell: #1c1c1e;
  --sheet: #1c1c1e;
  --sheet-cell: #2c2c2e;
  --raised: #636366;
  --fill: rgba(120, 120, 128, .32);
  --fill-2: rgba(118, 118, 128, .2);
  --sep: rgba(84, 84, 88, .65);
  --text: #fff;
  --muted: rgba(235, 235, 245, .6);
  --faint: rgba(235, 235, 245, .3);
  --accent: #ff9f0a;
  --accent-ink: #1c1000;
  --wave: rgba(235, 235, 245, .22);
  --wave-on: #fff;
  --danger: #ff453a;
  --on: #30d158;
  --glass: rgba(40, 40, 42, .74);
  --glass-thick: rgba(44, 44, 46, .9);
  --glass-line: rgba(255, 255, 255, .14);
  --glass-shadow: 0 10px 34px rgba(0, 0, 0, .42), 0 1px 3px rgba(0, 0, 0, .25);
  --glow: .26;
  --spring: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
  transition: --h1 1.4s ease, --h2 1.4s ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --cell: #f2f2f7;
    --sheet: #f2f2f7;
    --sheet-cell: #fff;
    --raised: #fff;
    --fill: rgba(120, 120, 128, .2);
    --fill-2: rgba(118, 118, 128, .12);
    --sep: rgba(60, 60, 67, .22);
    --text: #000;
    --muted: rgba(60, 60, 67, .62);
    --faint: rgba(60, 60, 67, .3);
    --accent: #e8820c;
    --accent-ink: #fff;
    --wave: rgba(60, 60, 67, .2);
    --wave-on: #000;
    --danger: #ff3b30;
    --on: #34c759;
    --glass: rgba(255, 255, 255, .76);
    --glass-thick: rgba(250, 250, 252, .92);
    --glass-line: rgba(0, 0, 0, .07);
    --glass-shadow: 0 10px 34px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08);
    --glow: .2;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); min-height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

/* Stimmungslicht oben, faerbt sich nach dem laufenden Track */
body::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 62vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 22% 0%, hsl(var(--h1) 90% 55% / var(--glow)), transparent 72%),
    radial-gradient(50% 55% at 88% 0%, hsl(var(--h2) 85% 52% / calc(var(--glow) * .8)), transparent 72%);
  filter: blur(34px);
}

button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
button:disabled { opacity: .4; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

svg { width: 22px; height: 22px; fill: currentColor; display: block; flex: none; }
svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#app {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(6px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(120px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
body.has-tabbar #app { padding-bottom: calc(250px + env(safe-area-inset-bottom)); }

@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes menu { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.enter { animation: enter .6s var(--spring) both; }

/* ---------- Glas-Material */

.glass-btn, .tabbar, .player, .menu, .toast, .btn.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  backdrop-filter: blur(36px) saturate(190%);
  box-shadow: inset 0 0 0 .5px var(--glass-line), inset 0 1px 0 rgba(255, 255, 255, .08), var(--glass-shadow);
}

/* ---------- Navigationsleiste + grosser Titel */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
}
.nav-brand { font-size: 15px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.glass-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  transition: transform .3s var(--spring), opacity .15s;
}
.glass-btn:active { transform: scale(.88); opacity: .8; }

.large-title {
  margin: 4px 0 12px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--fill-2);
  font-weight: 600;
  white-space: nowrap;
  transition: transform .3s var(--spring), opacity .15s;
}
.btn:active { transform: scale(.97); opacity: .7; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.tinted { background: var(--fill-2); color: var(--accent); flex: 1; }
.btn.tinted svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }
.btn.glass { border-radius: 999px; height: 46px; }
.btn.text { height: 44px; padding: 0; background: transparent; color: var(--accent); font-weight: 400; border-radius: 8px; }
.btn.text.strong { font-weight: 600; }
.btn.text.back { gap: 2px; margin-left: -8px; }
.btn.text.back svg { width: 26px; height: 26px; stroke-width: 2.2; }

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: transform .3s var(--spring), opacity .15s;
}
.icon-btn:active { transform: scale(.85); opacity: .5; }

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

/* ---------- Suchfeld */

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--fill-2);
  color: var(--muted);
}
.search svg { width: 18px; height: 18px; stroke-width: 2.1; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.no-hits { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Cover-Kachel (wird aus dem Track erzeugt) */

.cover {
  --h1: 28;
  --h2: 350;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 9px;
  color: #fff;
  background:
    radial-gradient(90% 80% at 15% 0%, rgba(255, 255, 255, .34), transparent 60%),
    linear-gradient(155deg, hsl(var(--h1) 82% 58%), hsl(var(--h2) 74% 36%) 78%, hsl(var(--h2) 70% 24%));
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18);
  overflow: hidden;
}

/* ---------- Listen */

.list { list-style: none; margin: 0 -10px; padding: 0; }

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0 7px 10px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background .15s;
}
.row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 72px;
  right: 10px;
  height: 1px;
  background: var(--sep);
  transform: scaleY(.5);
  transform-origin: bottom;
}
.row:last-child::after { display: none; }
.row:active { background: var(--fill-2); }
@media (hover: hover) { .row:hover { background: var(--fill-2); } }
.row.is-busy { cursor: default; opacity: .5; }
.row.is-current .row-title { color: var(--accent); }

.row-play svg { opacity: 0; width: 22px; height: 22px; position: relative; z-index: 1; }
.row.is-current .row-play svg { opacity: 1; }
.row.is-current .row-play::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.row-pack svg { width: 22px; height: 22px; opacity: .95; }

.row-main { flex: 1; min-width: 0; }
.row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { margin-top: 1px; color: var(--muted); font-size: 14px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; align-items: center; }
.row-chevron { color: var(--faint); margin: 0 6px 0 -8px; }
.row-chevron svg { width: 16px; height: 16px; stroke-width: 2.6; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12vh 24px 0;
  color: var(--muted);
}
.empty svg { width: 56px; height: 56px; stroke-width: 1.3; color: var(--faint); margin-bottom: 14px; }
.empty strong { color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -0.026em; }
.empty span { max-width: 300px; font-size: 15px; }

/* ---------- Uploads */

.uploads { display: grid; gap: 8px; margin-bottom: 12px; }
.uploads:empty { display: none; }
.upload { padding: 12px 14px; background: var(--cell); border-radius: 14px; font-size: 15px; animation: enter .4s var(--spring) both; }
.upload-head { display: flex; justify-content: space-between; gap: 12px; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-state { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.upload.is-error .upload-state { color: var(--danger); }
.upload-track { height: 4px; margin-top: 10px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.upload-fill { height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .2s; }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  pointer-events: none;
  animation: fade .2s both;
}
.drop-overlay div { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }

/* ---------- Gruppierte Formulare (Sheets, Login) */

.group { border-radius: 14px; background: var(--sheet-cell); overflow: hidden; }
.group-head { margin: 22px 16px 7px; font-size: 13px; letter-spacing: -0.005em; text-transform: uppercase; color: var(--muted); }
.group-foot { margin: 7px 16px 0; font-size: 13px; letter-spacing: -0.005em; line-height: 1.35; color: var(--muted); }
.group + .group { margin-top: 22px; }
.group-foot + .group { margin-top: 22px; }

.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
}
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.5); transform-origin: top; }
.cell-label { flex: none; }
.cell-input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; text-align: right; color: var(--muted); }
.cell-input:focus { color: var(--text); }
.cell-input.is-left { text-align: left; color: var(--text); }
.cell-input::placeholder { color: var(--faint); }
.cell-btn { justify-content: flex-start; color: var(--accent); cursor: pointer; }
.cell-btn.is-danger { color: var(--danger); }
.cell-btn:active { background: var(--fill-2); }

.toggle { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; flex: none; margin: 0; border-radius: 31px; background: var(--fill); position: relative; cursor: pointer; transition: background .25s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .35s var(--spring); }
.toggle:checked { background: var(--on); }
.toggle:checked::after { transform: translateX(20px); }

/* ---------- Sheet */

dialog { padding: 0; border: 0; color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .4); animation: fade .3s both; }

.sheet {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  border-radius: 26px;
  background: var(--sheet);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  overflow: auto;
  animation: enter .45s var(--spring) both;
}
.grabber { display: none; width: 36px; height: 5px; border-radius: 3px; background: var(--faint); margin: 6px auto -4px; }
.sheet-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  padding: 0 18px;
  background: var(--sheet);
}
.sheet-nav h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet-nav > :first-child { justify-self: start; }
.sheet-nav > :last-child { justify-self: end; }
.sheet-body { padding: 6px 16px 26px; }

/* ---------- Hinweis-Dialog */

.alert {
  width: 280px;
  border-radius: 22px;
  background: var(--glass-thick);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  backdrop-filter: blur(40px) saturate(190%);
  box-shadow: inset 0 0 0 .5px var(--glass-line), 0 30px 90px rgba(0, 0, 0, .5);
  text-align: center;
  overflow: hidden;
  animation: pop .3s var(--spring) both;
}
.alert-body { padding: 22px 18px 18px; }
.alert h3 { margin: 0; font-size: 17px; font-weight: 600; }
.alert p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; letter-spacing: -0.005em; }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 .5px 0 var(--sep); }
.alert-actions button { height: 46px; border: 0; background: transparent; color: var(--accent); }
.alert-actions button + button { box-shadow: inset .5px 0 0 var(--sep); }
.alert-actions button:active { background: var(--fill-2); }
.alert-actions .is-strong { font-weight: 600; }
.alert-actions .is-danger { color: var(--danger); font-weight: 600; }

/* ---------- Kontextmenü */

.menu-shade { position: fixed; inset: 0; z-index: 70; }
.menu {
  background: var(--glass-thick) !important;
  position: fixed;
  z-index: 71;
  min-width: 240px;
  border-radius: 16px;
  overflow: hidden;
  animation: menu .32s var(--spring) both;
}
.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.menu-item + .menu-item { box-shadow: inset 0 .5px 0 var(--sep); }
.menu-item:active { background: var(--fill); }
@media (hover: hover) { .menu-item:hover { background: var(--fill-2); } }
.menu-item svg { width: 20px; height: 20px; }
.menu-item.is-danger { color: var(--danger); }

/* ---------- Login */

.login { min-height: calc(100dvh - 160px); display: grid; place-items: center; }
.login form { width: min(360px, 100%); display: grid; gap: 14px; text-align: center; }
.login .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 8px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), 0 20px 50px hsl(var(--h2) 80% 40% / .4); }
.login .app-icon svg { width: 50px; height: 50px; }
.login h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.login p { margin: -8px 0 10px; color: var(--muted); font-size: 15px; }
.login .group { background: var(--cell); }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; }

/* ---------- Oeffentliche Seiten */

.pub-brand {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Einzelner Track: "Jetzt laeuft" */
.np { display: flex; flex-direction: column; align-items: center; max-width: 400px; margin: 0 auto; padding-top: clamp(8px, 4vh, 40px); }
.np-cover {
  width: min(100%, 340px, 40vh);
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2), 0 30px 70px rgba(0, 0, 0, .5), 0 20px 60px hsl(var(--h2) 80% 35% / .4);
  transform: scale(.82);
  transition: transform .8s var(--spring);
}
.np-cover.is-playing { transform: scale(1); }
.np-titles { align-self: stretch; margin-top: clamp(22px, 5vh, 44px); }
.np h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.026em; overflow-wrap: anywhere; }
.np p { margin: 2px 0 0; font-size: 19px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-wave { width: 100%; height: 56px; margin: clamp(16px, 3vh, 28px) 0 6px; }
.np-times { align-self: stretch; display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-actions { margin: clamp(10px, 2.5vh, 26px) 0 22px; }
.hero-play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform .3s var(--spring), background .2s;
}
.hero-play:active { transform: scale(.82); background: var(--fill-2); }
.hero-play svg { width: 62px; height: 62px; }

/* Pack */
.pack-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(4px, 2vh, 20px) 0 22px; }
.pack-cover { width: min(58vw, 230px); height: auto; aspect-ratio: 1; border-radius: 14px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2), 0 22px 54px rgba(0, 0, 0, .42), 0 18px 50px hsl(var(--h2) 80% 35% / .35); }
.pack-cover svg { width: 34%; height: 34%; stroke-width: 1.4; }
.pack-head h1 { margin: 20px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.026em; overflow-wrap: anywhere; }
.pack-head p { margin: 2px 0 0; color: var(--muted); }
.pack-actions { display: flex; gap: 14px; width: 100%; max-width: 400px; margin-top: 18px; }

.wave { display: block; cursor: pointer; touch-action: none; }

/* ---------- Tab-Leiste: schwebende Glas-Kapsel */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 21;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}
.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 86px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  transition: background .3s var(--spring), color .2s, transform .3s var(--spring);
}
.tabbar-item svg { width: 26px; height: 26px; }
.tabbar-item.is-active { background: var(--fill-2); color: var(--accent); }
.tabbar-item:active { transform: scale(.94); }

/* ---------- Mini-Player: Glas-Kapsel */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(640px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "cover info controls" "wave wave wave";
  align-items: center;
  gap: 6px 12px;
  padding: 8px 8px 10px 8px;
  border-radius: 26px;
  animation: rise .55s var(--spring) both;
}
body.has-tabbar .player { bottom: calc(84px + env(safe-area-inset-bottom)); }
.player .cover { grid-area: cover; width: 44px; height: 44px; border-radius: 12px; }
.pl-info { grid-area: info; min-width: 0; }
.pl-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-time { color: var(--muted); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pl-controls { grid-area: controls; display: flex; align-items: center; }
.pl-controls svg { width: 26px; height: 26px; }
.pl-toggle svg { width: 32px; height: 32px; }
.pl-wave { grid-area: wave; width: calc(100% - 12px); margin: 0 6px; height: 26px; }

/* ---------- Hinweis-Banner */

.toast {
  position: fixed;
  left: 50%;
  top: calc(10px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 80;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  max-width: calc(100vw - 32px);
  animation: fade .25s both;
}

/* ---------- Installations-Hinweis */

.install-hero { text-align: center; padding: 4px 12px 22px; }
.install-hero .app-icon { width: 88px; height: 88px; border-radius: 21px; margin: 0 auto 14px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), 0 18px 44px hsl(var(--h2) 80% 40% / .4); }
.install-hero .app-icon svg { width: 46px; height: 46px; }
.install-hero h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.026em; }
.install-hero p { margin: 6px auto 0; max-width: 300px; font-size: 15px; color: var(--muted); }
.sheet .cell svg { color: var(--accent); }

/* ---------- Umschalter in Formularen */

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 9px; background: var(--fill-2); min-width: 150px; }
.segmented button { height: 30px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 500; transition: background .3s var(--spring); }
.segmented button.is-active { background: var(--raised); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }

/* ---------- Grosser Player */

.pl-info, #pl-cover { cursor: pointer; }
.now-sheet {
  width: min(460px, calc(100vw - 32px));
  background: linear-gradient(hsl(var(--h1) 55% 22%), hsl(var(--h2) 50% 12%) 55%, var(--sheet));
  transition: --h1 1.4s ease, --h2 1.4s ease;
}
@media (prefers-color-scheme: light) {
  .now-sheet { background: linear-gradient(hsl(var(--h1) 80% 88%), hsl(var(--h2) 70% 93%) 55%, var(--sheet)); }
}
.grabber-btn { display: block; width: 100%; height: 30px; padding: 0; border: 0; background: transparent; }
.now-sheet .grabber { display: block; margin: 0 auto; }
.now-sheet .np { padding: 6px 30px 30px; max-width: none; }
.np-transport { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 0; }
.np-skip { width: 64px; height: 64px; }
.np-skip svg { width: 42px; height: 42px; }

/* ---------- Bewegung beim Wechsel zwischen Bereichen */

.enter-view .large-title, .enter-view .search, .enter-view .pack-head, .enter-view .empty { animation: enter .55s var(--spring) both; }
.enter-view .row { animation: enter .6s var(--spring) both; animation-delay: calc(var(--i, 0) * 32ms + 40ms); }
.pack-cover, .row .cover { transition: transform .4s var(--spring); }
.row:active .cover { transform: scale(.92); }

/* ---------- Handy: Sheets fahren von unten hoch */

@media (max-width: 640px) {
  .sheet {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    max-height: calc(100dvh - 54px - env(safe-area-inset-top));
    border-radius: 34px 34px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: sheet .5s var(--spring) both;
  }
  .grabber { display: block; }
  .now-sheet { height: calc(100dvh - 20px - env(safe-area-inset-top)); max-height: none; }
  .now-sheet .np { padding-top: clamp(6px, 3vh, 30px); }
}

@media (min-width: 900px) {
  .large-title { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
