:root {
  --bg: #0b0b10;
  --card: #17171f;
  --card2: #20202a;
  --line: #2a2a36;
  --text: #f4f4f7;
  --muted: #8e8e9c;
  --accent: #fe2c55;
  --accent2: #25f4ee;
  --grad: linear-gradient(135deg, var(--accent2), var(--accent));
  --danger: #ff5a5a;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { padding-bottom: calc(110px + var(--safe-b)); }
body.selecting { padding-bottom: calc(170px + var(--safe-b)); }
button, input, select { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

/* Icons */
.ic { width: 22px; height: 22px; flex: none; display: block; }
.dim { color: var(--muted); width: 20px; height: 20px; }

/* Kopf */
.head { position: sticky; top: 0; z-index: 5; padding-top: var(--safe-t);
  background: rgba(11, 11, 16, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 16px; }
.topbar h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-actions { display: flex; align-items: center; }
.spin .ic { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: flex; gap: 4px; margin: 0 16px 10px; padding: 4px; background: var(--card); border-radius: 13px; }
.seg-btn { flex: 1; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 650; cursor: pointer; transition: .2s; }
.seg-btn.active { background: var(--card2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.txt-btn { background: transparent; border: 0; color: var(--accent2); padding: 6px 8px; cursor: pointer; font-weight: 600; }
.txt-btn.strong { font-weight: 800; }

.toolbar { padding: 4px 16px 8px; }
.search-wrap { position: relative; }
.search-wrap .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
#search { width: 100%; padding: 11px 14px 11px 38px; border-radius: 12px; border: 1px solid transparent; background: var(--card); outline: none; }
#search:focus { border-color: rgba(37, 244, 238, .5); }
.tabs { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .9rem; }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab span { opacity: .6; font-size: .85em; margin-left: 2px; }

/* Listen */
.list { list-style: none; margin: 0; padding: 0 10px; }
.item { display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 8px; border-radius: var(--radius); cursor: pointer; transition: background .15s; }
.item:active { background: var(--card); }
.item.playing { background: linear-gradient(90deg, rgba(37,244,238,.10), rgba(254,44,85,.10)); }
.item.playing .title { color: #fff; }
.item.selected { background: rgba(37, 244, 238, .12); }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #4a4a58; display: grid; place-items: center; color: #000; }
.check .ic { width: 14px; height: 14px; }
.item.selected .check { background: var(--accent2); border-color: var(--accent2); }
.thumb { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; position: relative;
  background: #23232e; color: var(--muted); }
.thumb .ic { width: 20px; height: 20px; }
.item.has-audio .thumb, .pl .thumb { background: var(--grad); color: #0b0b10; }
.item.has-audio .thumb .ic { width: 18px; height: 18px; }
.meta { flex: 1; min-width: 0; }
.title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.big-title { font-size: 1.25rem; font-weight: 800; }
.sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .85rem; margin-top: 1px; }
.chev { color: var(--muted); }
.icon-btn { background: transparent; border: 0; padding: 8px; border-radius: 12px; cursor: pointer; line-height: 0; color: var(--text); display: inline-grid; place-items: center; transition: transform .12s, background .15s, opacity .15s; }
.icon-btn:active { transform: scale(.9); background: rgba(255,255,255,.06); }
.icon-btn:disabled { opacity: .3; }
.item .icon-btn { color: var(--muted); padding: 7px; }
.item .icon-btn .ic { width: 20px; height: 20px; }
.fav.on, .item .fav.on { color: var(--accent); }
.pl-head { display: flex; align-items: center; gap: 2px; }

/* animierte Balken (läuft gerade) */
.bars { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: bar 1s ease-in-out infinite; will-change: transform; }
.bars i:nth-child(2) { animation-delay: -.35s; }
.bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.is-playing .bars, .thumb.now .bars { display: flex; }
.thumb.now > .ic, .mini-art.is-playing > .ic { display: none; }
.paused .bars i { animation-play-state: paused; }

.empty { text-align: center; padding: 40px 24px; }
.empty-ic { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 22px; background: var(--grad); display: grid; place-items: center; color: #0b0b10; }
.empty-ic .ic { width: 34px; height: 34px; }
.empty .btn { margin: 6px auto; display: block; width: 100%; max-width: 320px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons */
.btn { padding: 11px 16px; border-radius: 12px; border: 1px solid #30303c; background: var(--card2); cursor: pointer; text-align: center; font-weight: 600; transition: transform .12s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.block { display: block; width: 100%; margin: 8px 0; text-align: left; }
.btn.center { text-align: center; }
.btn:disabled { opacity: .4; }
.btn.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 18px; }
.btn.pill .ic { width: 18px; height: 18px; }
.btn.grad { background: var(--grad); border: 0; color: #0b0b10; font-weight: 750; box-shadow: 0 6px 20px rgba(254,44,85,.25); }
.btn.block.pill { display: flex; }
.with-ic, .menu-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.with-ic .ic, .menu-item .ic { width: 19px; height: 19px; }
.menu-item { display: flex; justify-content: flex-start; gap: 12px; }
.row { display: flex; gap: 8px; margin: 10px 0; }
.row > * { flex: 1; }
.row form { display: flex; }
.row form .btn { flex: 1; }
.row.wrap { flex-wrap: wrap; }
.row.wrap > * { flex: 0 0 auto; }
.chip { padding: 7px 13px; border-radius: 999px; background: var(--card2); border: 1px solid transparent; color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .15s; }
.chip.on { background: var(--grad); color: #0b0b10; }
.chip[aria-disabled=true] { opacity: .35; pointer-events: none; }

/* Auswahl-Leiste */
.selbar { position: fixed; left: 8px; right: 8px; bottom: calc(86px + var(--safe-b)); z-index: 11; display: flex; align-items: center; gap: 2px;
  padding: 6px 8px; background: rgba(32, 32, 42, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.selbar #selCount { flex: 1; padding-left: 6px; font-weight: 650; }

/* Mini-Player */
.player { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); z-index: 10; overflow: hidden;
  background: rgba(28, 28, 38, .9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.07); border-radius: 18px; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.mini { display: flex; align-items: center; gap: 0; padding: 8px 8px 7px; }
.mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; background: transparent; border: 0; text-align: left; cursor: pointer; padding: 0; }
.mini-art { width: 42px; height: 42px; border-radius: 11px; background: var(--grad); color: #0b0b10; }
.mini-art .bars { height: 14px; }
.icon-btn.ctl .ic { width: 22px; height: 22px; }
.mini .play { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg); margin: 0 2px; }
.mini .play .ic { width: 20px; height: 20px; }
.mini-bar { height: 3px; background: rgba(255,255,255,.08); }
.mini-bar div { height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }

/* Dialoge */
dialog.sheet { border: 0; border-radius: 24px 24px 0 0; background: var(--card); color: var(--text); width: 100%; max-width: 560px;
  margin: auto auto 0; padding: 18px 18px calc(18px + var(--safe-b)); max-height: 92vh; overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(0,0,0,.62); }
dialog h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; }
dialog label { display: block; margin: 10px 0; font-size: .85rem; color: var(--muted); }
dialog input[type=text], dialog input[type=url], dialog input[type=email], dialog input[type=password] { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border-radius: 11px;
  border: 1px solid #30303c; background: var(--bg); color: var(--text); font-size: 1rem; outline: none; }
dialog input:focus { border-color: rgba(37,244,238,.5); }
dialog input[type=file] { display: block; margin-top: 4px; color: var(--text); }
.help { padding-left: 20px; }
.help li { margin-bottom: 10px; }
code { background: var(--bg); padding: 1px 5px; border-radius: 5px; }

/* ===== Großer Player ===== */
dialog.now { max-height: 100vh; height: 100vh; height: 100dvh; max-width: 600px; border-radius: 0; margin: 0 auto;
  padding: calc(8px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(37,244,238,.22), transparent 60%),
    radial-gradient(120% 60% at 90% 10%, rgba(254,44,85,.25), transparent 60%),
    #0e0e14; }
.now-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.now-top .ic { width: 26px; height: 26px; }
.now-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spacer { width: 42px; }
.art { position: relative; width: min(74vw, 300px); aspect-ratio: 1; margin: 10px auto 22px; border-radius: 28px; display: grid; place-items: center;
  background: var(--grad); color: rgba(11,11,16,.85); box-shadow: 0 30px 60px -10px rgba(254,44,85,.45), 0 10px 30px -10px rgba(37,244,238,.45);
  transition: transform .35s cubic-bezier(.2,.8,.2,1); transform: scale(.92); overflow: hidden; }
.art.is-playing { transform: scale(1); }
.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 30% 20%, rgba(255,255,255,.35), transparent 60%); pointer-events: none; }
.art-ic { width: 38%; height: 38%; transition: opacity .3s; }
.art-bars { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); display: flex; gap: 5px; align-items: flex-end; height: 22%; opacity: 0; transition: opacity .3s; }
.art-bars i { width: 7px; height: 100%; border-radius: 4px; background: rgba(11,11,16,.75); transform-origin: bottom; animation: bar2 1.1s ease-in-out infinite; }
.art-bars i:nth-child(2) { animation-delay: -.2s; } .art-bars i:nth-child(3) { animation-delay: -.5s; }
.art-bars i:nth-child(4) { animation-delay: -.8s; } .art-bars i:nth-child(5) { animation-delay: -.35s; }
.art-bars i:nth-child(6) { animation-delay: -.65s; } .art-bars i:nth-child(7) { animation-delay: -.95s; }
@keyframes bar2 { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.art:not(.is-playing) .art-bars i { animation-play-state: paused; }
.art.is-playing .art-bars { opacity: 1; }
.art.is-playing .art-ic { opacity: .0; }
.now-head { display: flex; align-items: center; gap: 8px; }
.now-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-head .sub { font-size: 1rem; }
.now-head .fav .ic { width: 26px; height: 26px; }
.now-head .fav { color: var(--muted); }
.now-head .fav.on { color: var(--accent); }
.times { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.controls { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 2px; padding: 0 4px; }
.controls .ctl.big .ic { width: 34px; height: 34px; }
.controls .play { width: 76px; height: 76px; border-radius: 50%; background: var(--text); color: #0b0b10;
  box-shadow: 0 10px 30px rgba(255,255,255,.12); }
.controls .play .ic { width: 32px; height: 32px; }
.toggle { color: var(--muted); position: relative; }
.toggle .ic { width: 22px; height: 22px; }
.toggle.on { color: var(--accent2); }
.toggle.on::after { content: ""; position: absolute; bottom: 1px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent2); }
.mode-line { text-align: center; min-height: 1.2em; margin: 4px 0 6px; font-size: .8rem; color: var(--muted); }

/* Schieberegler */
input.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; --p: 0%; }
input.rng::-webkit-slider-runnable-track { height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent)) 0 0 / var(--p) 100% no-repeat, rgba(255,255,255,.12); }
input.rng::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
input.rng::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
input.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.45), 0 0 0 4px rgba(254,44,85,.18); transition: transform .12s; }
input.rng:active::-webkit-slider-thumb { transform: scale(1.2); }
input.rng::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
input.rng.seek { margin-top: 18px; }
input.rng.seek::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -4px; box-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* Panels */
.panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 14px 16px; margin-top: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ph-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.ph-title .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--grad); color: #0b0b10; }
.val { font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); font-variant-numeric: tabular-nums; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.ticks { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 6px; padding: 0 2px; }

.switch { position: relative; width: 50px; height: 30px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #3a3a46; transition: .25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .25s cubic-bezier(.3,1.4,.6,1); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(20px); }

.chips-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* Equalizer */
.eq-box { position: relative; transition: opacity .25s; }
.eq-box.off { opacity: .35; pointer-events: none; }
.eq-curve { position: absolute; left: 0; right: 0; top: 24px; width: 100%; height: 120px; pointer-events: none; }
.eq-curve .zero { stroke: rgba(255,255,255,.12); stroke-dasharray: 3 4; }
.eq { display: flex; justify-content: space-between; position: relative; }
.band { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; touch-action: none; }
.band .db { font-size: .62rem; color: var(--muted); height: 14px; font-variant-numeric: tabular-nums; }
.band .track { position: relative; width: 26px; height: 120px; cursor: pointer; touch-action: none; }
.band .track::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: rgba(255,255,255,.08); }
.band .fill { position: absolute; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: var(--grad); }
.band .knob { position: absolute; left: 50%; width: 16px; height: 16px; margin: 0 0 -8px -8px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(254,44,85,.25); transition: transform .1s; }
.band.active .knob { transform: scale(1.25); }
.band .hz { font-size: .62rem; color: var(--muted); font-weight: 600; }

/* Segment-Auswahl */
.segmented { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,.3); border-radius: 13px; }
.segmented button { flex: 1; padding: 8px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 650; font-size: .85rem; cursor: pointer; transition: .2s; }
.segmented button.on { background: var(--grad); color: #0b0b10; box-shadow: 0 4px 12px rgba(254,44,85,.3); }

.toast { position: fixed; inset: auto; margin: 0; border: 0; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-weight: 650; max-width: 92vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.toast.has-action { display: flex; align-items: center; gap: 14px; text-align: left; padding: 8px 8px 8px 16px; white-space: nowrap; }
.toast:not(:popover-open) { display: none; }
.toast-btn { border: 0; background: var(--grad); color: #0b0b10; font-weight: 800; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }

/* Dialoge: eigenes Scrollen, nichts an den Hintergrund weitergeben */
dialog.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Song-Menü */
.action-sheet { padding-top: 8px; background: #15151c; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #3a3a46; margin: 0 auto 12px; }
.act-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; }
.act-head .thumb { width: 52px; height: 52px; border-radius: 13px; }
.act-head .thumb.has { background: var(--grad); color: #0b0b10; }
.act-head .title { font-size: 1.05rem; }
.act-group { background: var(--card2); border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.act { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: transparent; text-align: left;
  font-weight: 600; cursor: pointer; color: var(--text); }
.act + .act, .act-links + .act, .act + .act-links { border-top: 1px solid rgba(255,255,255,.06); }
.act:active { background: rgba(255,255,255,.06); }
.act .ic { width: 21px; height: 21px; color: var(--muted); }
.act.fav-act.on .ic { color: var(--accent); }
.act.danger, .act.danger .ic { color: var(--danger); }
.act-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 14px 51px; }
.act-links .chip { background: var(--bg); }
.act-cancel { display: block; width: 100%; padding: 14px; border: 0; border-radius: 16px; background: var(--card2); font-weight: 750; cursor: pointer; }

/* Wischen zum Löschen */
li.swipe { position: relative; border-radius: var(--radius); overflow: hidden; }
li.swipe > .item { position: relative; background: var(--bg); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
li.swipe > .item.playing { background: linear-gradient(90deg, #0f2a2c, #2a1118); }
li.swipe > .item.selected { background: #10272a; }
.swipe-del { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding-right: 22px; border: 0; background: linear-gradient(90deg, #ff5a5a, #fe2c55); color: #fff; font-weight: 750; cursor: pointer;
  visibility: hidden; }
li.swipe.swiping .swipe-del { visibility: visible; }
.swipe-del span { width: 56px; }
.swipe-del .ic { width: 20px; height: 20px; }

/* ===== Flüssiger & sauberer ===== */
/* Kein Doppeltipp-Zoom, keine Verzögerung beim Tippen, kein Markieren/Lupe bei langem Drücken */
button, a, .item, .tab, .chip, .seg-btn, input.rng { touch-action: manipulation; }
.list, .item, .mini, .act, .now-head, .controls { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { overscroll-behavior-y: none; }

/* Lange Listen: Zeilen außerhalb des Bildschirms nicht zeichnen */
.list > li { content-visibility: auto; contain-intrinsic-size: auto 62px; }

/* Menüs gleiten von unten herein und wieder hinaus */
dialog.sheet[open] { animation: sheet-in .34s cubic-bezier(.2,.9,.25,1); }
dialog.sheet[open]::backdrop { animation: fade-in .3s ease; }
dialog.sheet.closing { animation: sheet-out .19s cubic-bezier(.4,0,1,1) forwards; }
dialog.sheet.closing::backdrop { animation: fade-out .19s ease forwards; }
dialog.now[open] { animation: now-in .38s cubic-bezier(.2,.9,.25,1); }
dialog.now.closing { animation: sheet-out .2s cubic-bezier(.4,0,1,1) forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes now-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* Mini-Player und Hinweise erscheinen weich */
.player:not([hidden]) { animation: rise .35s cubic-bezier(.2,.9,.25,1); }
.toast:popover-open { animation: toast-in .28s cubic-bezier(.2,.9,.25,1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes toast-in { from { transform: translate(-50%, 14px); opacity: 0; } }

/* Seitenwechsel (Bibliothek / Playlists) */
#libraryView:not([hidden]), #playlistsView:not([hidden]), #playlistView:not([hidden]) { animation: view-in .22s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

/* Gedrückt-Zustände etwas deutlicher */
.item:active { background: var(--card); transform: scale(.985); }
li.swipe > .item:active { transform: none; }
.mini-info:active .mini-art { transform: scale(.94); }
.mini-art { transition: transform .15s; }
.act-cancel:active, .tab:active, .chip:active, .seg-btn:active { transform: scale(.96); }
.tab, .chip { transition: transform .12s, background .15s, color .15s; }

/* Wer Bewegung reduziert haben möchte, bekommt sie reduziert */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
