:root {
  --bg: #000; --panel: rgba(16,16,18,var(--glass,.12)); --solid: #141416; --card: #181818; --card-hover: #282828; --elev: #242424;
  --text: #fff; --sub: #b3b3b3; --dim: #6a6a6a; --accent: #1ed760; --accent-dark: #1db954;
  --player-h: 88px; --radius: 8px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: Figtree, system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
input { font: inherit; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: var(--sub); font-size: 13px; }
[hidden] { display: none !important; }

#app { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr auto; grid-template-rows: 1fr var(--player-h); gap: 8px; height: 100%; padding: 8px 8px 0; }

/* Seitenleiste */
#sidebar { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side-nav, .side-lib, #main, #queue-panel { background: var(--panel); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.06); }
.side-nav { padding: 8px 12px; }
.side-nav a, .side-lib header a { display: flex; align-items: center; gap: 18px; padding: 10px 12px; font-weight: 700; color: var(--sub); transition: color .15s; }
.side-nav a:hover, .side-lib header a:hover, .side-nav a.on, .side-lib header a.on { color: var(--text); }
.side-lib { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px; }
.side-lib header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
#side-list { overflow-y: auto; flex: 1; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; cursor: pointer; }
.side-item:hover { background: #1a1a1a; }
.side-item.on { background: var(--elev); }
.side-item .cov { width: 48px; height: 48px; border-radius: 4px; }
.side-item .name { font-weight: 500; }
.side-item.playing .name { color: var(--accent); }

/* Cover */
.cov { background: #333 center/cover; flex: none; display: grid; place-items: center; overflow: hidden; position: relative; }
.cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cov.mosaic { display: grid; grid-template-columns: 1fr 1fr; }
.cov.mosaic img { aspect-ratio: 1; }
.cov.liked { background: linear-gradient(135deg, #450af5, #c4efd9); }
.cov.liked svg { width: 40%; height: 40%; }
.cov.ph { color: rgba(255,255,255,.75); font-weight: 800; }

/* Hauptbereich */
#main { overflow-y: auto; position: relative; min-width: 0; }
#topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: rgba(18,18,18,.0); transition: background .2s; }
#topbar.solid { background: rgba(16,16,18,.88); }
.top-right { display: flex; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--sub); position: relative; transition: color .15s, transform .1s; }
.icon-btn:hover { color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.round { background: rgba(0,0,0,.6); color: var(--text); }
.icon-btn.on { color: var(--accent); }
.icon-btn.on::after { content: ""; position: absolute; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.icon-btn .one { display: none; position: absolute; font-size: 9px; font-weight: 800; top: 13px; }
.icon-btn.one .one { display: block; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.big svg { width: 30px; height: 30px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--text); color: #000; font-weight: 700; font-size: 14px; }
.pill svg { width: 18px; height: 18px; }
.pill.ghost { background: rgba(0,0,0,.6); color: var(--text); }
.pill:hover { transform: scale(1.04); }

#view { padding: 0 24px 32px; }
.hero { margin: -64px -24px 0; padding: 88px 24px 24px; display: flex; align-items: flex-end; gap: 24px; background: linear-gradient(180deg, var(--tint, #535353) 0%, rgba(18,18,18,.4) 100%); }
.hero .cov { width: 232px; height: 232px; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.hero .kind { font-size: 13px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 6vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 8px 0 14px; word-break: break-word; }
.hero.artist .cov { border-radius: 50%; }
.actions { display: flex; align-items: center; gap: 20px; padding: 24px 0; margin: 0 -24px; padding-left: 24px; padding-right: 24px; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 200px); }
.play-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; transition: transform .1s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 18px; height: 18px; }
.play-btn .i-pause, .play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: block; }
.play-btn.green { width: 56px; height: 56px; background: var(--accent); }
.play-btn.green svg { width: 26px; height: 26px; }
.play-btn.green:hover { background: #3be477; }

h2.sec { font-size: 24px; font-weight: 700; margin: 28px 0 14px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; }
h2.sec a { font-size: 14px; color: var(--sub); font-weight: 700; }
h2.sec a:hover { text-decoration: underline; }
.greeting { font-size: 32px; font-weight: 800; letter-spacing: -.03em; padding-top: 4px; }

/* Schnellzugriff (Startseite oben) */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 20px; }
.quick-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; cursor: pointer; position: relative; transition: background .2s; }
.quick-item:hover { background: rgba(255,255,255,.18); }
.quick-item .cov { width: 64px; height: 64px; }
.quick-item .name { font-weight: 700; font-size: 15px; flex: 1; }
.quick-item .play-btn { margin-right: 10px; opacity: 0; box-shadow: 0 8px 16px rgba(0,0,0,.4); }
.quick-item:hover .play-btn { opacity: 1; }

/* Karten-Reihen */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px); gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0 -12px; }
.card { padding: 12px; border-radius: 8px; cursor: pointer; transition: background .2s; position: relative; min-width: 0; }
.card:hover { background: var(--card-hover); }
.card .cw { position: relative; margin-bottom: 10px; }
.card .cov { width: 100%; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card.artist .cov { border-radius: 50%; }
.card .name { font-weight: 600; font-size: 15px; }
.card .sub { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .play-btn { position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; background: var(--accent); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; box-shadow: 0 8px 16px rgba(0,0,0,.4); }
.card .play-btn svg { width: 22px; height: 22px; }
.card:hover .play-btn, .card .play-btn.is-playing { opacity: 1; transform: none; }

/* Songliste */
.tracks { margin-top: 4px; }
.tr { display: grid; grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2fr) 92px; align-items: center; gap: 16px; padding: 6px 16px; border-radius: 4px; cursor: default; user-select: none; }
.tr.head { color: var(--sub); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; margin-bottom: 8px; padding-bottom: 8px; position: sticky; top: 64px; background: rgba(20,20,22,.9); z-index: 2; }
.tr:not(.head):hover { background: rgba(255,255,255,.1); }
.tr .n { color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.tr .n .pl { display: none; }
.tr:not(.head):hover .n .num { display: none; }
.tr:not(.head):hover .n .pl { display: inline-grid; }
.tr .n .pl svg { width: 16px; height: 16px; color: var(--text); }
.tr .main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tr .main .cov { width: 40px; height: 40px; border-radius: 4px; }
.tr .t { font-size: 16px; }
.tr .a { color: var(--sub); font-size: 14px; }
.tr .a a:hover, .tr .alb:hover { text-decoration: underline; color: var(--text); }
.tr .alb { color: var(--sub); font-size: 14px; }
.tr .end { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.tr .end .icon-btn { width: 32px; height: 32px; opacity: 0; }
.tr .end .icon-btn svg { width: 18px; height: 18px; }
.tr:hover .end .icon-btn, .tr .end .like.on { opacity: 1; }
.tr.current .t { color: var(--accent); }
.tr.current .n .num { color: var(--accent); }
.eq { display: inline-flex; gap: 2px; height: 14px; align-items: flex-end; }
.eq i { width: 3px; background: var(--accent); animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.like .heart { fill: none; stroke: currentColor; stroke-width: 2; }
.like.on { color: var(--accent); }
.like.on .heart { fill: currentColor; stroke: none; }

/* Suche */
.search-box { position: relative; max-width: 420px; margin: 4px 0 8px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sub); }
.search-box input { width: 100%; height: 48px; border-radius: 999px; border: 0; background: var(--elev); color: var(--text); padding: 0 16px 0 48px; font-size: 16px; outline: none; }
.search-box input:focus { box-shadow: 0 0 0 2px var(--text); }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.genre { aspect-ratio: 1.6; border-radius: 8px; padding: 16px; font-size: 22px; font-weight: 800; position: relative; overflow: hidden; cursor: pointer; letter-spacing: -.02em; }
.genre .cov { position: absolute; width: 90px; height: 90px; right: -14px; bottom: -8px; transform: rotate(25deg); border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.top-result { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.top-card { background: var(--card); border-radius: 8px; padding: 20px; cursor: pointer; position: relative; }
.top-card:hover { background: var(--card-hover); }
.top-card .cov { width: 92px; height: 92px; border-radius: 6px; margin-bottom: 18px; }
.top-card.artist .cov { border-radius: 50%; }
.top-card .name { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.top-card .play-btn { position: absolute; right: 20px; bottom: 20px; }
.chips { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 14px; }
.chip.on { background: var(--text); color: #000; }
.empty { color: var(--sub); padding: 40px 0; text-align: center; }

/* Player-Leiste */
#player { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(180px, 1fr); align-items: center; gap: 16px; padding: 0 8px; }
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
#np-cover { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: #333; cursor: pointer; }
#np-cover[src=""] { visibility: hidden; }
.np-text { min-width: 0; }
#np-title { font-size: 14px; font-weight: 500; }
#np-artist { font-size: 12px; cursor: pointer; }
#np-artist:hover { text-decoration: underline; color: var(--text); }
.controls { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 720px; width: 100%; justify-self: center; }
.buttons { display: flex; align-items: center; gap: 12px; }
.buttons .play-btn { width: 32px; height: 32px; }
.progress { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.progress span { min-width: 36px; text-align: center; }
.extra { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--sub); }
.extra .vol-ico { width: 18px; height: 18px; }
#volume { width: 110px; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--fill, #fff) var(--p, 0%), #4d4d4d var(--p, 0%)); outline: none; cursor: pointer; }
input[type=range]:hover { --fill: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; }
input[type=range]:hover::-webkit-slider-thumb { opacity: 1; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
input[type=range]:hover::-moz-range-thumb { opacity: 1; }
.mini-bar { display: none; }

/* Warteschlange */
#queue-panel { width: 340px; overflow-y: auto; padding: 16px; }
#queue-panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#queue-panel h3 { font-size: 16px; }
#queue-panel h4 { font-size: 15px; margin: 18px 0 8px; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 6px; cursor: pointer; }
.q-item:hover { background: rgba(255,255,255,.1); }
.q-item .cov { width: 44px; height: 44px; border-radius: 4px; }
.q-item.current .name { color: var(--accent); }
.q-item .name { font-size: 15px; }

/* Kontextmenü, Dialog, Hinweis */
#menu { position: fixed; z-index: 50; min-width: 220px; max-height: 70vh; overflow-y: auto; background: #282828; border-radius: 6px; padding: 4px; box-shadow: 0 16px 24px rgba(0,0,0,.5); }
#menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 3px; font-size: 14px; text-align: left; }
#menu button:hover { background: #3e3e3e; }
#menu hr { border: 0; border-top: 1px solid #3e3e3e; margin: 4px 0; }
#menu .label { padding: 8px 12px 4px; color: var(--sub); font-size: 12px; }
#modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(480px, 100%); background: #282828; border-radius: 8px; padding: 24px; box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.dialog h3 { font-size: 22px; margin-bottom: 6px; }
.dialog p { color: var(--sub); font-size: 14px; margin-bottom: 16px; }
.dialog input[type=text], .dialog input[type=url] { width: 100%; height: 44px; border: 1px solid #535353; background: #3e3e3e; color: var(--text); border-radius: 4px; padding: 0 12px; font-size: 15px; outline: none; }
.dialog input:focus { border-color: var(--text); }
.dialog .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.dialog .btns button { height: 44px; padding: 0 28px; border-radius: 999px; font-weight: 700; }
.dialog .btns .ok { background: var(--text); color: #000; }
.dialog .btns .ok:hover { transform: scale(1.04); }
.dialog .jobs { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.job { background: #1f1f1f; border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.job .bar { height: 3px; background: #4d4d4d; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.job .bar i { display: block; height: 100%; background: var(--accent); }
.job.error { color: #f3727f; }
#toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--player-h) + 24px); transform: translateX(-50%); background: #2e77d0; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

#tabbar { display: none; }

@media (max-width: 1100px) { #app { grid-template-columns: 240px 1fr auto; } #queue-panel { width: 280px; } }

/* Handy */
@media (max-width: 760px) {
  :root { --player-h: 60px; }
  #app { display: block; padding: 0; }
  #sidebar, #queue-panel, .extra, .controls .progress, #back, #dj-link { display: none !important; }
  #main { position: fixed; inset: 0; border-radius: 0; padding-bottom: calc(var(--player-h) + 64px + var(--safe-b)); }
  #topbar { padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; }
  #topbar.solid { background: rgba(18,18,18,.95); }
  .top-left { flex: 1; }
  #view { padding: 0 16px 24px; }
  .hero { flex-direction: column; align-items: center; text-align: center; margin: -56px -16px 0; padding: 72px 16px 16px; gap: 16px; }
  .hero .cov { width: 240px; height: 240px; }
  .hero h1 { font-size: 28px; margin: 4px 0 6px; }
  .actions { margin: 0 -16px; padding: 12px 16px; }
  .greeting { font-size: 24px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick-item .cov { width: 56px; height: 56px; }
  .quick-item .name { font-size: 13px; }
  .quick-item .play-btn { display: none; }
  h2.sec { font-size: 20px; margin: 24px 0 10px; }
  .row { grid-auto-columns: 144px; }
  .card { padding: 6px; }
  .card .play-btn { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -6px; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0; gap: 10px; }
  .tr .n, .tr .alb, .tr.head { display: none; }
  .tr .main .cov { width: 48px; height: 48px; }
  .tr .end .icon-btn { opacity: 1; }
  .tr .end .like:not(.on) { display: none; }
  .top-result { grid-template-columns: 1fr; }
  .genres { grid-template-columns: 1fr 1fr; gap: 12px; }
  .genre { font-size: 17px; }
  .search-box { max-width: none; }
  #player { position: fixed; left: 8px; right: 8px; bottom: calc(64px + var(--safe-b)); height: 56px; display: flex; gap: 8px; padding: 0 8px; border-radius: 6px; background: var(--tint-dark, #3a3a3a); z-index: 20; }
  #player.empty { display: none; }
  .np { flex: 1; gap: 10px; }
  #np-cover { width: 40px; height: 40px; }
  .controls { width: auto; flex-direction: row; }
  .buttons { gap: 0; }
  #shuffle, #prev, #repeat { display: none; }
  .buttons .play-btn { background: none; color: var(--text); width: 40px; height: 40px; }
  .buttons .play-btn svg { width: 24px; height: 24px; }
  .mini-bar { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: rgba(255,255,255,.2); border-radius: 1px; overflow: hidden; }
  #mini-progress { height: 100%; width: 0; background: #fff; }
  #tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 8px 0 calc(var(--safe-b) + 6px); background: linear-gradient(0deg, rgba(0,0,0,.98) 40%, rgba(0,0,0,.85)); }
  #tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--sub); }
  #tabbar a.on { color: var(--text); }
  #toast { bottom: calc(var(--player-h) + 90px); }
  #menu { left: 8px !important; right: 8px; bottom: calc(8px + var(--safe-b)); top: auto !important; min-width: 0; }
  #menu button { padding: 14px 12px; font-size: 16px; }
}

/* schlanke Scrollbalken wie im Original */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }


/* ---------- Liner-Gefühl: Cover als Hintergrund, Glas, Songtext ---------- */
#ambient, .fp-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; pointer-events: none; }
.amb-layer { position: absolute; inset: -15%; background: center/cover no-repeat; opacity: 0; transition: opacity 1.4s ease;
  filter: blur(90px) saturate(1.6) brightness(var(--amb, .7)); transform: scale(1.1); animation: drift 40s ease-in-out infinite alternate; }
.amb-layer.on { opacity: 1; }
@keyframes drift { from { transform: scale(1.1) rotate(0deg); } to { transform: scale(1.25) rotate(8deg) translate(2%, -2%); } }
body.no-ambient #ambient .amb-layer { opacity: 0 !important; }
#ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.65), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .amb-layer { animation: none; } }
#player { position: relative; }
.play-btn.green, .card .play-btn { background: var(--accent); }
#tabbar a.on, .side-nav a.on { color: var(--text); }

#fullplayer { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 16px) 40px calc(var(--safe-b) + 32px); overflow: hidden; }
@keyframes fp-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }
#fullplayer .fp-bg { position: absolute; z-index: -1; }
#fullplayer .fp-bg .amb-layer { --amb: .6; filter: blur(70px) saturate(1.7) brightness(var(--amb)); }
#fullplayer .fp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.1) 50%, rgba(0,0,0,.25)); }
#fullplayer header { display: flex; justify-content: space-between; align-items: center; }
#fullplayer header > div { display: flex; gap: 4px; }
#fullplayer header .icon-btn { color: rgba(255,255,255,.8); }
#fullplayer header .icon-btn.on { color: #fff; }
#fullplayer header .sub { font-weight: 700; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.fp-body { flex: 1; min-height: 0; padding: 0 clamp(0px, 4vw, 64px); display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1400px; width: 100%; margin: 0 auto; }
.fp-left { display: flex; flex-direction: column; }
#fp-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,.55); background: rgba(255,255,255,.08); margin-bottom: 24px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
body:not(.playing-state) #fp-cover { transform: scale(.94); }
.fp-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.fp-meta > div { min-width: 0; }
#fp-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
#fp-artist { font-size: 16px; color: rgba(255,255,255,.7); cursor: pointer; }
.fp-meta .icon-btn { color: rgba(255,255,255,.8); }
.fp-meta .icon-btn svg { width: 26px; height: 26px; }
.fp-times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 6px; font-variant-numeric: tabular-nums; }
.fp-buttons { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.fp-buttons .icon-btn { color: rgba(255,255,255,.85); }
.fp-buttons .icon-btn.on { color: #fff; }
.fp-buttons .icon-btn.on::after { background: #fff; }
.play-btn.huge { width: 68px; height: 68px; }
.play-btn.huge svg { width: 30px; height: 30px; }
#fp-seek { flex: none; width: 100%; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.25) var(--p, 0%)); }
#fp-seek::-webkit-slider-thumb { opacity: 1; }
#fp-seek::-moz-range-thumb { opacity: 1; }

/* Songtext: Zeile für Zeile, Wort für Wort */
.fp-lyrics { height: 100%; max-height: 78vh; overflow-y: auto; scrollbar-width: none; padding: 30vh 0; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent); }
.fp-lyrics::-webkit-scrollbar { display: none; }
.ly { font-size: clamp(26px, 3.1vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; margin: 0 0 26px; color: rgba(255,255,255,.32); cursor: pointer; transform-origin: left center;
  transition: color .5s, transform .5s cubic-bezier(.2,.8,.2,1), filter .5s, opacity .5s; filter: blur(1.4px); }
.ly:hover { color: rgba(255,255,255,.6); filter: none; }
.ly.past { color: rgba(255,255,255,.42); }
.ly.cur { color: rgba(255,255,255,.38); filter: none; transform: scale(1.02); }
.ly .w { transition: color .25s, text-shadow .4s; }
.ly.cur .w.on { color: #fff; text-shadow: 0 0 24px rgba(255,255,255,.35); }
.ly.past .w { color: inherit; }
.ly.gap { font-size: 30px; letter-spacing: .3em; }
.ly-note { color: rgba(255,255,255,.45); font-size: 13px; margin-top: 8px; }
.ly-empty { color: rgba(255,255,255,.6); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }

/* Einstellungen «Mach es zu deinem» */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 18px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.3); }
.swatch.on { border-color: #fff; }
.swatch.auto { background: conic-gradient(#1ed760, #2e77d0, #a24bff, #ff4f8b, #ff9a2e, #1ed760); }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 15px; gap: 16px; }
.set-row input[type=range] { max-width: 180px; }
.toggle { width: 40px; height: 22px; border-radius: 11px; background: #535353; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(18px); }
.dialog h4 { font-size: 13px; color: var(--sub); text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }

@media (max-width: 760px) {
  #fullplayer { padding: calc(env(safe-area-inset-top, 0px) + 10px) 22px calc(var(--safe-b) + 24px); }
  .fp-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
  .fp-left { width: 100%; }
  #fp-cover { max-width: 420px; margin: 0 auto 28px; }
  .fp-lyrics { display: none; }
  #fullplayer.show-lyrics .fp-lyrics { display: block; order: -1; flex: 1; width: 100%; max-height: none; padding: 16vh 0 30vh; margin-bottom: 12px; }
  #fullplayer.show-lyrics #fp-cover { display: none; }
  .ly { font-size: 26px; margin-bottom: 18px; }
}

/* Songseite, Klangqualität, Upload */
.tr .t a:hover { text-decoration: underline; }
.np-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.qbadge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); flex: none; }
.qbadge.lossless { background: rgba(255,255,255,.9); color: #000; }
.qbadge.hires { background: linear-gradient(90deg, #f5c542, #ff8a3d); color: #000; }
.qbadge.high { color: #fff; }
#fp-q { margin-top: 8px; }
.hero.song .cov { box-shadow: 0 16px 56px rgba(0,0,0,.6); }
.hero-sub a:hover { text-decoration: underline; }
.song-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 32px; margin-top: 8px; }
.lyr-preview p { font-size: 22px; font-weight: 700; line-height: 1.35; color: rgba(255,255,255,.75); cursor: pointer; letter-spacing: -.01em; }
.lyr-preview p:hover { color: #fff; }
.lyr-preview .pill { margin-top: 16px; }
.qcard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 18px; }
.qcard .qbig { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.qcard.lossless .qbig { color: #fff; }
.qcard.hires .qbig { background: linear-gradient(90deg, #f5c542, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qcard p { margin-top: 12px; line-height: 1.45; }
.or { display: flex; align-items: center; gap: 12px; color: var(--sub); font-size: 12px; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #3e3e3e; }
.filedrop { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px dashed #5a5a5a; border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.filedrop:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.filedrop input { display: none; }
#dropzone { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); pointer-events: none; }
#dropzone div { border: 2px dashed var(--accent); border-radius: 16px; padding: 48px 64px; font-size: 28px; font-weight: 800; text-align: center; display: flex; flex-direction: column; gap: 8px; }
#dropzone small { font-size: 14px; font-weight: 500; color: var(--sub); }
@media (max-width: 760px) { .song-grid { grid-template-columns: 1fr; } .lyr-preview p { font-size: 19px; } .np-sub .qbadge { display: none; } }

/* Web-Streaming */
.qbadge.web { background: rgba(78,140,255,.22); color: #9cc0ff; }
h2.sec.web-h { justify-content: flex-start; gap: 10px; align-items: center; }
.web-h svg { width: 22px; height: 22px; color: #9cc0ff; }
.web-h .sub { font-weight: 500; font-size: 13px; }
.web-loading { display: flex; align-items: center; gap: 10px; color: var(--sub); padding: 18px 16px; }
.web-loading svg { width: 20px; height: 20px; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tr .end .icon-btn.save { opacity: 1; color: #9cc0ff; }
.buffering #play, .buffering #fp-play, .buffering .play-btn.is-playing { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.92); } }

/* Etappe 1: Audio-Engine */
.text-btn { height: 28px; min-width: 34px; padding: 0 6px; border-radius: 14px; font-size: 12px; font-weight: 800; color: var(--sub); }
.text-btn:hover { color: var(--text); }
.text-btn.on { color: var(--accent); }
#automix.on, #fp-automix.on { color: var(--accent); }
.fp-art { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: 24px; }
.fp-art #fp-cover { position: relative; z-index: 1; margin: 0; transform: scale(calc(1 + var(--beat, 0) * .03)); transition: transform .08s linear; }
body:not(.playing-state) .fp-art #fp-cover { transform: scale(.94); transition: transform .5s; }
#viz { position: absolute; inset: -16%; width: 132%; height: 132%; z-index: 0; pointer-events: none; }
#fullplayer .fp-bg .amb-layer.on { transform: scale(calc(1.15 + var(--beat, 0) * .12)); filter: blur(70px) saturate(1.7) brightness(calc(var(--amb, .6) + var(--beat, 0) * .35)); transition: opacity 1.4s, transform .12s linear, filter .12s linear; animation: none; }
#ambient .amb-layer.on { filter: blur(90px) saturate(1.6) brightness(calc(var(--amb, .7) + var(--beat, 0) * .15)); }
.settings .tabs { margin: 0 0 14px; }
.eq-bands { display: flex; justify-content: space-between; gap: 6px; height: 170px; padding: 8px 4px 0; }
.eq-bands label { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 11px; color: var(--sub); }
.eq-bands input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 6px; height: 130px; flex: none; background: linear-gradient(0deg, var(--accent) 50%, #4d4d4d 50%); }
.eq-bands input[type=range]::-webkit-slider-thumb { opacity: 1; }
.eq-bands input[type=range]::-moz-range-thumb { opacity: 1; }
@media (max-width: 760px) { #automix { display: none; } }

/* Etappe 2: Entdecken */
.moods { display: flex; gap: 10px; margin: 22px 0 4px; overflow-x: auto; scrollbar-width: none; }
.mood { flex: 1 0 auto; min-width: 120px; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-radius: 10px; font-weight: 800; font-size: 16px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #000)); box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .15s; }
.mood span { font-size: 22px; }
.mood:hover { transform: translateY(-2px); }
.mood.is-playing { outline: 2px solid #fff; }
.card.mix .mix-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-size: 12px; font-weight: 800; color: #000; border-radius: 0 0 6px 6px; text-transform: uppercase; letter-spacing: .04em; }
.card.mix .play-btn { bottom: 36px; }
.dialog.smart { max-height: 88vh; overflow-y: auto; width: min(560px, 100%); }
.dialog.smart h4 { margin: 14px 0 0; }
.dialog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dialog input[type=number] { width: 100%; height: 40px; border: 1px solid #535353; background: #3e3e3e; color: var(--text); border-radius: 4px; padding: 0 10px; font-size: 14px; }
.clean-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 18px; margin-top: 12px; }
.clean-card h3 { font-size: 17px; margin-bottom: 4px; }
#fix-status .job { margin-top: 10px; }
.dup { background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px; margin-bottom: 10px; }
.dup-row { display: flex; align-items: center; gap: 12px; padding: 6px; }
.dup-row .cov { width: 44px; height: 44px; border-radius: 4px; }
@media (max-width: 760px) { .clean-card { flex-direction: column; align-items: flex-start; } .mood { min-width: 104px; height: 48px; font-size: 14px; } }

/* Etappe 3: Rückblick */
.wrapped { position: relative; max-width: 420px; aspect-ratio: 9 / 16; margin: 16px auto 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.w-bars { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.w-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.w-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.w-bars i.done b { width: 100%; }
.w-bars i.run b { animation: wbar 6s linear forwards; }
@keyframes wbar { to { width: 100%; } }
.w-slide { position: absolute; inset: 0; padding: 56px 28px 28px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--wc) 90%, #fff), var(--wc) 40%, color-mix(in srgb, var(--wc) 30%, #000)); opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; color: #fff; }
.w-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.w-slide > * { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.w-slide.on > * { opacity: 1; transform: none; }
.w-slide.on > *:nth-child(2) { transition-delay: .12s; } .w-slide.on > *:nth-child(3) { transition-delay: .24s; } .w-slide.on > *:nth-child(4) { transition-delay: .36s; } .w-slide.on > *:nth-child(5) { transition-delay: .48s; }
.w-kicker { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.w-huge { font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.w-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 8px 0; }
.w-slide p { font-size: 16px; opacity: .9; line-height: 1.4; }
.w-cover .cov { width: 70%; aspect-ratio: 1; border-radius: 8px; margin: 18px 0 8px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.w-list { list-style: none; counter-reset: w; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.w-list li { display: flex; align-items: center; gap: 12px; counter-increment: w; }
.w-list li::before { content: counter(w); font-size: 26px; font-weight: 800; width: 24px; }
.w-list .cov { width: 56px; height: 56px; border-radius: 4px; }
.w-list.artists .cov { border-radius: 50%; }
.w-list b { display: block; font-size: 16px; } .w-list span { font-size: 13px; opacity: .8; }
.w-list div { min-width: 0; } .w-list b, .w-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-nav { position: absolute; z-index: 2; top: 0; bottom: 0; width: 40%; }
.w-nav.prev { left: 0; } .w-nav.next { right: 0; width: 60%; }

/* Etappe 4: Konto, Jam, Party */
#login { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 0%, #1d3b2a, #000 70%); }
.login-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.login-logo img { width: 72px; height: 72px; border-radius: 18px; }
.login-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.login-card input { height: 48px; border-radius: 8px; border: 1px solid #3e3e3e; background: #1a1a1a; color: #fff; padding: 0 14px; font: inherit; font-size: 16px; }
.login-card .pill { height: 48px; justify-content: center; background: var(--accent); color: #000; font-size: 16px; }
#li-err { color: #f3727f; min-height: 18px; }
#live-btn.on { color: var(--accent); }
#live-btn[data-badge]:not([data-badge=""])::before { content: attr(data-badge); position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; border-radius: 8px; background: #ff4f9a; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.live-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.06); margin-top: 10px; font-size: 26px; }
.live-opt:hover { background: rgba(255,255,255,.12); }
.live-opt svg { width: 28px; height: 28px; color: var(--accent); }
.live-opt b { display: block; font-size: 16px; } .live-opt .sub { display: block; font-size: 13px; }
.live-share { display: grid; grid-template-columns: 172px 1fr; gap: 16px; align-items: start; margin: 8px 0 12px; }
#qr { background: #fff; padding: 6px; border-radius: 8px; width: 172px; height: 172px; display: grid; place-items: center; color: #000; font-size: 12px; }
.live-code { font-size: 34px; font-weight: 800; letter-spacing: .12em; }
#lv-url { width: 100%; height: 34px; font-size: 12px; margin-top: 6px; }
.warn { color: #ffb86b; font-size: 12px; margin-top: 8px; line-height: 1.4; }
.req { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.req .cov { width: 40px; height: 40px; border-radius: 4px; }
.req .pill { height: 30px; padding: 0 12px; font-size: 13px; }
#live-banner { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: color-mix(in srgb, var(--accent) 30%, #111); font-size: 14px; }
#live-banner svg { width: 18px; height: 18px; }
#live-banner .pill { margin-left: auto; height: 28px; }
.user-row .pill { height: 28px; padding: 0 10px; font-size: 12px; }
@media (max-width: 760px) { .live-share { grid-template-columns: 1fr; } #qr { margin: 0 auto; } }
.mobile-only { display: none !important; } @media (max-width: 760px) { .mobile-only { display: inline-grid !important; } }

/* Canvas-Loop: scharfes Cover, langsame Kamerafahrt, Lichtschweif, pulsiert im Takt */
#fullplayer.canvas .fp-bg .amb-layer { inset: -6%; filter: saturate(1.25) brightness(calc(.42 + var(--beat, 0) * .25)); }
#fullplayer.canvas .fp-bg .amb-layer.on { animation: canvasloop 24s ease-in-out infinite alternate; transform: none; transition: opacity 1.4s, filter .12s linear; }
@keyframes canvasloop { 0% { transform: scale(1.08) translate(0, 0) rotate(0deg); } 50% { transform: scale(1.18) translate(-2.5%, 1.5%) rotate(-1.2deg); } 100% { transform: scale(1.12) translate(2%, -2%) rotate(1deg); } }
#fullplayer.canvas .fp-bg::before { content: ""; position: absolute; inset: -50%; z-index: 1; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%); animation: sweep 9s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0% { transform: translateX(-30%); } 60%, 100% { transform: translateX(30%); } }
#fullplayer.canvas .fp-bg::after { z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 35%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85)), linear-gradient(90deg, rgba(0,0,0,.35), transparent 60%); }
@media (prefers-reduced-motion: reduce) { #fullplayer.canvas .fp-bg .amb-layer.on, #fullplayer.canvas .fp-bg::before { animation: none; } }
#fullplayer.canvas .fp-bg .amb-layer { filter: saturate(1.2) brightness(calc(.3 + var(--beat, 0) * .2)); }
@media (min-width: 761px) { #fullplayer.canvas .fp-bg::after { background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.55) 45%, rgba(0,0,0,.75)), linear-gradient(180deg, rgba(0,0,0,.4), transparent 30%, transparent 70%, rgba(0,0,0,.6)); } }

/* Leistung: keine CSS-Unschärfe auf grossen Flächen mehr (der Hintergrund ist vorberechnet weich),
   Bewegung nur über transform/opacity, die der Grafikchip billig erledigt */
#ambient .amb-layer, #ambient .amb-layer.on, #fullplayer .fp-bg .amb-layer, #fullplayer .fp-bg .amb-layer.on { filter: none; }
#ambient .amb-layer { inset: -10%; animation: drift 60s ease-in-out infinite alternate; will-change: transform, opacity; }
#fullplayer .fp-bg .amb-layer.on:not(.sharp) { transform: scale(calc(1.1 + var(--beat, 0) * .08)); transition: opacity 1.4s, transform .12s linear; animation: none; }
#fullplayer .fp-bg .amb-layer.sharp { inset: -6%; will-change: transform; }
#fullplayer.canvas .fp-bg .amb-layer.sharp.on { animation: canvasloop 24s ease-in-out infinite alternate; transition: opacity 1.4s; }
#fullplayer.canvas .fp-bg::after { opacity: calc(1 - var(--beat, 0) * .35); }

/* Automix-Anzeige */
.seek-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.seek-wrap input { flex: 1; }
.mix-mark { position: absolute; top: 50%; width: 3px; height: 12px; margin-left: -1px; transform: translateY(-50%); border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); pointer-events: none; }
.mix-info { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 6px; height: 16px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.mix-info b { color: var(--text); font-weight: 700; }
.mix-live { color: var(--accent); font-weight: 800; animation: pulse 1s ease-in-out infinite; }
.mix-bar { display: inline-block; width: 70px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.mix-bar i { display: block; height: 100%; background: var(--accent); transition: width .25s linear; }
#fp-mix-info { justify-content: center; margin-top: 4px; color: rgba(255,255,255,.75); }
#fullplayer .seek-wrap { width: 100%; }
@media (max-width: 760px) { #mix-info { display: none; } }
/* Songtext ohne Unschärfe-Filter (teuer bei vielen Zeilen): Abstufung nur über Helligkeit */
.ly, .ly.cur, .ly:hover { filter: none; }
.ly { color: rgba(255,255,255,.26); }
.ly.past { color: rgba(255,255,255,.4); }
#fullplayer.canvas .fp-bg::before { display: none; }  /* Lichtschweif: zu teuer für eine ganze Bildschirmfläche */

/* Zeitleiste während eines Automix-Übergangs gesperrt */
input[type=range]:disabled { cursor: not-allowed; --fill: var(--accent); }
input[type=range]:disabled::-webkit-slider-thumb { opacity: 0 !important; }
input[type=range]:disabled::-moz-range-thumb { opacity: 0 !important; }
.seek-wrap.locked { padding-right: 16px; }
.seek-wrap.locked input { opacity: .55; }
.seek-wrap.locked::after { content: "🔒"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 10px; pointer-events: none; }

/* Durchsichtige Flächen wie der Player: nur ein feiner Rand trennt sie vom Hintergrund */
.side-nav, .side-lib, #main, #queue-panel { border-color: rgba(255,255,255,.08); }
.tr.head { background: rgba(16,16,18,.55); backdrop-filter: none; }
#topbar.solid { background: rgba(16,16,18,.55); }
.hero { background: linear-gradient(180deg, color-mix(in srgb, var(--tint, #535353) 55%, transparent) 0%, transparent 100%); }
.actions { background: none; }
.tr.head { background: rgba(16,16,18,.35); }

/* Wie die Player-Leiste: keine Fläche, kein Rahmen – nur das Cover-Licht dahinter */
:root { --panel: rgba(16,16,18,var(--glass,0)); }
.side-nav, .side-lib, #main, #queue-panel { border-color: transparent; }
.tr.head { background: transparent; }
#topbar.solid { background: transparent; }
.hero { background: none; }  /* keine Farbfläche: der Hintergrund kommt allein vom Cover-Licht */

/* Aufklappen wie in der Galerie (Hoch Art): Cover wächst aus der Karte an seinen Platz und zurück */
::view-transition-group(zoom-cover) { animation-duration: 700ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
/* Alte Seite tritt schnell zurück, neue steigt auf; Seitenleiste, Kopfzeile und Player bleiben ruhig stehen */
::view-transition-old(root) { animation: 220ms ease-out both vt-out; }
::view-transition-new(root) { animation: 450ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
#sidebar { view-transition-name: sidebar; }
#player { view-transition-name: player; }
#tabbar { view-transition-name: tabbar; }
::view-transition-group(sidebar), ::view-transition-group(player), ::view-transition-group(tabbar) { animation: none; }
::view-transition-old(sidebar), ::view-transition-old(player), ::view-transition-old(tabbar) { display: none; }
::view-transition-new(sidebar), ::view-transition-new(player), ::view-transition-new(tabbar) { animation: none; }
#view.rise .hero > div:not(.cov), #view.rise > :not(.hero):not(.tracks), #view.rise .tracks > :nth-child(-n+14) { animation: rise-in .6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
#view.rise .hero > div:not(.cov) { animation-delay: .12s; }
#view.rise > :not(.hero):not(.tracks) { animation-delay: .2s; }
#view.rise .tracks > :nth-child(1) { animation-delay: 0.23s; }
#view.rise .tracks > :nth-child(2) { animation-delay: 0.26s; }
#view.rise .tracks > :nth-child(3) { animation-delay: 0.29s; }
#view.rise .tracks > :nth-child(4) { animation-delay: 0.32s; }
#view.rise .tracks > :nth-child(5) { animation-delay: 0.35s; }
#view.rise .tracks > :nth-child(6) { animation-delay: 0.38s; }
#view.rise .tracks > :nth-child(7) { animation-delay: 0.41s; }
#view.rise .tracks > :nth-child(8) { animation-delay: 0.44s; }
#view.rise .tracks > :nth-child(9) { animation-delay: 0.47s; }
#view.rise .tracks > :nth-child(10) { animation-delay: 0.50s; }
#view.rise .tracks > :nth-child(11) { animation-delay: 0.53s; }
#view.rise .tracks > :nth-child(12) { animation-delay: 0.56s; }
#view.rise .tracks > :nth-child(13) { animation-delay: 0.59s; }
#view.rise .tracks > :nth-child(14) { animation-delay: 0.62s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.zoom-ghost { position: fixed; z-index: 60; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,.55); pointer-events: none; will-change: transform; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
