/* =========================================================
   AeroWaves – im Stil von "Do Not Disturb" (prod.ddn)
   Himmel + Pixelwolken, Mac-Fenster mit harten Schatten,
   Pixelschrift, Frutiger-Aero-MP3-Player.
   ========================================================= */
@font-face { font-family: "Lantern"; src: url(fonts/lantern.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --sky1: #5aaeff; --sky2: #b6e2ff; --night: 0; --warm: 0; --stars: 0;
  --panel: #ffffff; --panel2: #f4f7ff;
  --line: #1d1d2b; --soft: #d9deee;
  --text: #1d1d2b; --mute: #666b84;
  --red: #e8473b; --red-d: #a52a20;
  --coin: #ffcc33; --coin-d: #c98a12;
  --leaf: #43b047; --lcd: #1c2342;
  --mred: #ff5f57; --yel: #febc2e; --grn: #28c840;
  --font-display: "Lantern", "Arial Black", Arial, sans-serif;
  --font-px: "Press Start 2P", "Courier New", monospace;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-aero: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --nav-h: 66px; --mini-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { margin: 0; background: var(--sky1); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
body { min-height: 100vh; color: var(--text); font-family: var(--font-mono); font-size: 15px; line-height: 1.55;
  background: var(--sky2); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 2px; }
svg.px, .px svg { image-rendering: pixelated; shape-rendering: crispEdges; display: block; }
.hidden { display: none !important; }
.muted { color: var(--mute); }

/* ---------- Himmel ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 100%); }
.stars { position: absolute; inset: 0 0 35% 0; opacity: var(--stars); transition: opacity 2s; }
.stars i { position: absolute; width: 3px; height: 3px; background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.8); animation: twinkle 2.4s steps(2) infinite; }
.stars i.big { width: 5px; height: 5px; background: #fff5c2; }
.sun, .moon { position: absolute; width: 46px; transform: translate(-50%, -50%); transition: left 60s linear, top 60s linear, opacity 2s; }
.sun { filter: drop-shadow(0 0 18px rgba(255,204,51,.75)); }
.moon { width: 34px; filter: drop-shadow(0 0 14px rgba(220,230,255,.6)); }
.cloud svg { filter: brightness(calc(1 - var(--night) * .3)) saturate(calc(1 - var(--night) * .4)) sepia(calc(var(--warm) * .55)) hue-rotate(calc(var(--warm) * -25deg)); }
.cloud { position: absolute; left: -220px; animation: drift linear infinite; opacity: calc(1 - var(--night) * .78); }
@keyframes drift { to { transform: translateX(calc(100vw + 440px)); } }
.sprite { position: absolute; animation: bob 1.2s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes twinkle { 50% { opacity: .2; } }

/* ---------- HUD ---------- */
.hud { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 16px) 16px 6px; }
.hud-left { display: flex; flex-direction: column; gap: 6px; }
.clock { font-family: var(--font-px); font-size: 7px; line-height: 1.4; color: var(--text); opacity: .8; display: flex; gap: 6px; align-items: center; }
.clock svg { width: 10px; height: 10px; }
body.dark .hud { color: #fff; }
body.dark .clock { color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-px); font-size: 10px; letter-spacing: .06em; }
.brand-ic { width: 26px; height: 26px; }
.stats-hud { display: flex; align-items: center; gap: 14px; font-family: var(--font-px); font-size: 9px; }
.hp, .coins { display: inline-flex; align-items: center; gap: 6px; }
.hp svg, .coins svg { width: 16px; height: 16px; }
.coins.bump, .hp.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Ansicht ---------- */
.view { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto;
  padding: 12px 14px calc(var(--nav-h) + var(--mini-h) + var(--safe-b) + 34px); display: flex; flex-direction: column; gap: 22px; min-height: 80vh; }
.view.enter > * { animation: winIn .5s cubic-bezier(.2,.8,.2,1) both; }
.view.enter > *:nth-child(2) { animation-delay: .06s; } .view.enter > *:nth-child(3) { animation-delay: .12s; }
.view.enter > *:nth-child(4) { animation-delay: .18s; } .view.enter > *:nth-child(5) { animation-delay: .24s; }
@keyframes winIn { from { opacity: 0; transform: scale(.96) translateY(12px); } }

/* ---------- Mac-Fenster ---------- */
.win { background: var(--panel); border: 3px solid var(--line); border-radius: 12px; box-shadow: 6px 6px 0 rgba(29,29,43,.22); position: relative; }
body.dark .win, body.dark .back, body.dark .icard { box-shadow: 6px 6px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); }
.bar, .ibar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; border-bottom: 3px solid var(--line);
  background: linear-gradient(#f7f7fa, #e7e8ef); border-radius: 9px 9px 0 0; }
.lights { display: flex; gap: 8px; }
.lights i, .lclose { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35); }
.lights i:nth-child(1), .lclose { background: var(--mred); } .lights i:nth-child(2) { background: var(--yel); } .lights i:nth-child(3) { background: var(--grn); }
.lclose { position: relative; }
.lclose::before { content: ""; position: absolute; inset: -14px; }
.ttl { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--mute); white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.ttl b { color: var(--text); font-weight: 500; }
.bar .rt { margin-left: auto; font-family: var(--font-px); font-size: 8px; color: var(--mute); }
.wbody { padding: 20px 18px 20px; }
.wbody.flush { padding: 6px 0; }

/* ---------- Typografie ---------- */
.drop { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-px); font-size: 9px; color: var(--red); margin: 0 0 14px; line-height: 1.4; }
.rar { color: var(--text); background: var(--coin); border: 2px solid var(--line); padding: 5px 7px; }
h1.big { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 12vw, 92px); line-height: .93; margin: 0 0 14px;
  text-shadow: 4px 4px 0 var(--coin); letter-spacing: .005em; word-break: break-word; }
h1.mid { font-family: var(--font-px); font-weight: 400; font-size: clamp(17px, 4.6vw, 28px); line-height: 1.35; margin: 0 0 16px; text-shadow: 3px 3px 0 var(--coin); overflow-wrap: anywhere; }
h1.mid.long { font-size: clamp(14px, 3.6vw, 22px); }
.lead { font-size: 15px; line-height: 1.6; margin: 0; color: #3c4058; max-width: 46ch; }
.lead b { color: var(--red); }
.sec { font-family: var(--font-px); font-size: 9px; color: var(--red); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; line-height: 1.5; }
.sec small { color: var(--mute); font-size: 8px; }
.press { font-family: var(--font-px); font-size: 8px; color: var(--mute); margin: 14px 0 0; }
.press span { color: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Buttons ---------- */
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff;
  font-family: var(--font-px); font-size: 10px; padding: 14px 18px; white-space: nowrap; text-decoration: none; box-shadow: 0 -4px 0 0 var(--red-d) inset;
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)); }
.cta:active { transform: translateY(2px); }
.cta.wide { width: 100%; }
.cta.alt { background: #fff; color: var(--text); box-shadow: 0 0 0 3px var(--line) inset, 0 -4px 0 3px var(--soft) inset; }
.cta svg { width: 12px; height: 12px; }
.tbtn { width: 46px; height: 42px; border: 3px solid var(--line); background: #fff; display: grid; place-items: center; }
.tbtn svg { width: 16px; height: 16px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.istart { animation: pulse 1.2s steps(2) infinite; }
@keyframes pulse { 50% { filter: brightness(1.15); transform: translateY(-2px); } }

/* ---------- Cover ---------- */
.cover { flex-shrink: 0; background-size: cover; background-position: center; image-rendering: pixelated; border: 3px solid var(--line); background-color: var(--panel2); }
.cover.shadow { box-shadow: 4px 4px 0 rgba(29,29,43,.22); }
.cover.round { border-radius: 50%; }

/* ---------- Start: Weiter-Karte ---------- */
.home-grid { display: grid; gap: 22px; }
.cont { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 12px; border: 3px solid var(--line); background: var(--lcd);
  border-radius: 8px; color: #fff; position: relative; overflow: hidden; cursor: pointer; width: 100%; text-align: left; }
.cont::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(rgba(255,255,255,.12), transparent); pointer-events: none; }
.cont .cover { width: 74px; height: 74px; border-color: #0a2a45; box-shadow: 0 0 0 2px #7fb4d9; }
.cont .meta { flex: 1; min-width: 0; }
.cont .lab { font-family: var(--font-px); font-size: 8px; color: var(--coin); display: flex; gap: 8px; align-items: center; }
.cont .t { font-family: var(--font-aero); font-weight: 700; font-size: 19px; line-height: 1.2; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 8px rgba(120,210,255,.45); }
.cont .s { font-size: 12px; color: #9aa3d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont .go { width: 52px; height: 52px; flex-shrink: 0; border: 3px solid #0a2a45; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 120%, #c9ff8a 0%, #5fd13f 45%, #2f9a28 100%); box-shadow: 0 0 0 2px #fff; position: relative; overflow: hidden; }
.cont .go::before { content: ""; position: absolute; left: 14%; right: 14%; top: 4%; height: 46%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.05)); }
.cont .go svg { position: relative; width: 18px; height: 18px; }

/* ---------- Kacheln ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; border: 3px solid var(--line); background: var(--panel2); text-align: left; padding: 0 10px 0 0;
  font-weight: 700; font-size: 13px; min-height: 58px; transition: transform .12s; }
.tile:active { transform: translate(2px, 2px); }
.tile .cover { width: 52px; height: 52px; border-width: 0 3px 0 0; }
.tile span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }

/* ---------- Regale ---------- */
.shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 10px; scroll-padding: 18px; }
.shelf::-webkit-scrollbar { display: none; }
.card { width: 138px; flex-shrink: 0; text-align: left; scroll-snap-align: start; transition: transform .12s; }
.card:active { transform: translate(2px, 2px); }
.card .cover { width: 138px; height: 138px; box-shadow: 4px 4px 0 rgba(29,29,43,.22); margin-bottom: 10px; }
.card .t { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.center { text-align: center; }

/* ---------- Songliste (Level-Liste) ---------- */
.tracks { list-style: none; margin: 0; padding: 0; }
.trk { width: 100%; display: grid; grid-template-columns: 44px 42px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; text-align: left; cursor: pointer; }
.trk .n { font-family: var(--font-px); font-size: 8px; color: var(--mute); }
.trk .cover { width: 42px; height: 42px; border-width: 2px; }
.trk .nm { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .ar { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .ar svg { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 4px; }
.trk .d { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.trk .more { width: 44px; height: 44px; display: grid; place-items: center; color: var(--mute); }
.trk .more svg { width: 14px; height: 14px; }
.trk.cur { background: #fff6d6; }
.trk.cur .nm, .trk.cur .n { color: var(--red); font-weight: 700; }
.trk.cur .n::before { content: "\25B6 "; }
.trk + .trk { border-top: 2px solid var(--panel2); }

/* ---------- Hero (Playlist) ---------- */
.back { align-self: flex-start; font-family: var(--font-px); font-size: 9px; display: inline-flex; gap: 8px; align-items: center;
  background: #fff; border: 3px solid var(--line); padding: 9px 12px; box-shadow: 3px 3px 0 rgba(29,29,43,.22); }
.back svg { width: 10px; height: 10px; }
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: end; }
.hero .cover { width: 150px; height: 150px; box-shadow: 6px 6px 0 rgba(29,29,43,.22); }
.hero .meta2 { font-size: 13px; color: var(--mute); margin-bottom: 16px; }
.item { border: 3px solid var(--line); background: var(--panel2); padding: 12px 14px; margin-top: 16px; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 12px; }
.stats dt { color: var(--mute); font-family: var(--font-px); font-size: 8px; padding-top: 3px; }
.stats dd { margin: 0; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 7px; height: 9px; background: var(--soft); display: block; }
.meter i.f { background: var(--leaf); }

/* ---------- Chips / Suche / Formulare ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-family: var(--font-px); font-size: 8px; padding: 9px 11px; border: 3px solid var(--line); background: #fff; }
.chip.on { background: var(--coin); box-shadow: inset 0 -3px 0 var(--coin-d); }
.field { width: 100%; background: #fff; border: 3px solid var(--line); color: var(--text); font-size: 16px; padding: 12px 14px; border-radius: 0; outline: none; margin-bottom: 10px; }
.field::placeholder { color: #9aa0b8; }
.field:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,71,59,.18); }
.searchrow { display: flex; gap: 10px; align-items: center; }
.searchrow .field { margin: 0; }
.searchrow svg { width: 18px; height: 18px; }

/* ---------- Upload ---------- */
.dropzone { display: block; text-align: center; padding: 30px 16px; border: 3px dashed var(--line); background: var(--panel2); cursor: pointer; transition: background .2s; }
.dropzone .big-ic { width: 48px; height: 48px; margin: 0 auto 14px; }
.dropzone b { display: block; font-family: var(--font-px); font-size: 10px; line-height: 1.6; margin-bottom: 8px; }
.dropzone .muted { font-size: 12px; }
.pbar { display: flex; gap: 3px; margin-top: 16px; height: 14px; border: 3px solid var(--line); padding: 2px; background: #fff; }
.pbar i { flex: 1; background: var(--soft); }
.pbar i.f { background: var(--leaf); }
.up-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 2px solid var(--panel2); font-size: 13px; }
.up-item .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .st { color: var(--mute); flex-shrink: 0; font-variant-numeric: tabular-nums; font-family: var(--font-px); font-size: 8px; padding-top: 3px; }
.up-item .st.ok { color: var(--leaf); } .up-item .st.bad { color: var(--red); }
.quest { border: 3px solid var(--line); background: #fffdf3; padding: 12px 14px; margin-bottom: 14px; }
.quest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.quest li { display: flex; gap: 10px; align-items: flex-start; }
.quest .box { width: 14px; height: 14px; border: 2px solid var(--line); background: #fff; flex: none; margin-top: 3px; }
.quest code { background: var(--coin); padding: 0 4px; font-size: 12px; }
.msg { font-family: var(--font-px); font-size: 8px; line-height: 1.7; margin: 12px 0 0; color: var(--red); min-height: 1em; }

/* ---------- Leere Zustände ---------- */
.empty { text-align: center; padding: 28px 10px 10px; }
.empty .px-ic { width: 44px; height: 44px; margin: 0 auto 16px; animation: bob 1.2s steps(2) infinite; }
.empty b { display: block; font-family: var(--font-px); font-size: 11px; line-height: 1.6; margin-bottom: 10px; }
.empty p { margin: 0 auto 18px; color: var(--mute); font-size: 13px; max-width: 36ch; }

/* ---------- Navigation: Grasboden ---------- */
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding: 14px 0 var(--safe-b); display: flex;
  background: linear-gradient(var(--leaf) 0 12px, #2f8a36 12px 16px, #c8743a 16px 100%); }
.tabs::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--leaf) 0 8px, #58c75c 8px 16px); }
.tabs::after { content: ""; position: absolute; left: 0; right: 0; top: 24px; bottom: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.12) 14px 16px), repeating-linear-gradient(0deg, transparent 0 14px, rgba(0,0,0,.12) 14px 16px); }
.tabs-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(8, 12, 40, calc(var(--night) * .5)); }
.tabs a { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; color: #fff; font-family: var(--font-px); font-size: 7px; text-shadow: 2px 2px 0 var(--line); }
.tabs a i svg { width: 18px; height: 18px; filter: drop-shadow(2px 2px 0 var(--line)); }
.tabs a.active { color: var(--coin); }
.tabs a.active i { animation: bob 1s steps(2) infinite; }

/* ---------- Mini-Player (LCD) ---------- */
.mini { position: fixed; z-index: 31; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); max-width: 1020px; margin: 0 auto;
  height: var(--mini-h); display: flex; align-items: center; gap: 10px; padding: 0 10px; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, #0b2440, #061424); border: 3px solid var(--line); border-radius: 12px; color: #e8f6ff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85) inset, 5px 5px 0 rgba(29,29,43,.3); animation: winIn .4s cubic-bezier(.2,1.4,.4,1); }
.mini::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(rgba(255,255,255,.12), transparent); pointer-events: none; }
.mini-cover { width: 48px; height: 48px; border: 2px solid #0a2a45; box-shadow: 0 0 0 2px #7fb4d9; }
.mini-info { flex: 1; min-width: 0; }
.mini-state { display: flex; align-items: center; gap: 6px; font-family: var(--font-px); font-size: 6px; color: #8ff07a; }
.mini-title { font-family: var(--font-aero); font-weight: 700; font-size: 15px; line-height: 1.25; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 8px rgba(120,210,255,.45); }
.mini-artist { font-size: 11px; color: #7fb4d9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-progress { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 4px; background: #1d4366; }
.mini-progress div { height: 100%; width: 0; background: linear-gradient(90deg, #b6ff9a, #3fc22f); }
.led { width: 8px; height: 8px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #c8d7e0, #6f8796); box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
body:not(.is-paused) .led { background: radial-gradient(circle at 35% 30%, #eaffd4, #4fd13b); box-shadow: 0 0 0 1.5px rgba(255,255,255,.8), 0 0 8px #6dff5a; }
.pbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--line); background: #fff; color: var(--text); position: relative; z-index: 1; flex: none; }
.pbtn svg { width: 14px; height: 14px; }
.pbtn.red { background: var(--red); color: #fff; box-shadow: inset 0 -4px 0 0 var(--red-d); }
.pbtn.ghost { border-color: transparent; background: transparent; color: #7fb4d9; }
.pbtn.ghost.on { color: #ff6b81; }

/* ---------- Vollbild-Player: MP3 im Frutiger-Aero-Stil ---------- */
.player { position: fixed; inset: 0; z-index: 50; overflow-y: auto; visibility: hidden; transform: translateY(100%);
  background: linear-gradient(180deg, var(--sky1), var(--sky2)); transition: transform .5s cubic-bezier(.2,.9,.2,1), visibility 0s .5s; }
.player.open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.2,.9,.2,1), visibility 0s; }
.player-inner { min-height: 100%; max-width: 420px; margin: 0 auto; padding: calc(var(--safe-t) + 14px) 18px calc(var(--safe-b) + 22px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.player-top { display: flex; align-items: center; justify-content: space-between; }
.ptag { font-family: var(--font-px); font-size: 8px; background: var(--coin); border: 3px solid var(--line); padding: 7px 9px; }
.mp3 { position: relative; overflow: hidden; border-radius: 40px; padding: 18px 18px 18px; color: #0d2a44;
  background: linear-gradient(180deg, rgba(225,247,255,.85) 0%, rgba(120,205,245,.7) 38%, rgba(40,150,215,.72) 70%, rgba(70,190,170,.78) 100%);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 2px #2a6f9e, inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -18px 30px rgba(0,80,120,.25), 0 18px 40px rgba(20,80,140,.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
.mp3::before { content: ""; position: absolute; left: 6%; right: 6%; top: 6px; height: 30%; border-radius: 34px 34px 50% 50% / 34px 34px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.05)); pointer-events: none; z-index: 0; }
.mp3 > * { position: relative; z-index: 1; }
.mp3 > .bub { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255,255,255,.7);
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 12%, rgba(255,255,255,.25) 13% 45%, rgba(255,255,255,.08) 60%, rgba(255,255,255,.4) 100%); animation: rise 7s ease-in-out infinite; }
.bub.b1 { width: 26px; height: 26px; left: 9%; bottom: 20%; } .bub.b2 { width: 14px; height: 14px; right: 12%; bottom: 34%; animation-delay: -2s; }
.bub.b3 { width: 40px; height: 40px; right: 6%; bottom: 5%; animation-delay: -4s; } .bub.b4 { width: 10px; height: 10px; left: 18%; bottom: 7%; animation-delay: -5s; }
@keyframes rise { 50% { transform: translateY(-10px); } }
.mp3-top { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 12px; }
.jack { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5d6b7a, #0d1a26); box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.engr { font-family: var(--font-aero); font-size: 13px; font-weight: 700; font-style: italic; color: #13527f; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.mp3-top .led { width: 10px; height: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.lcd { position: relative; overflow: hidden; background: linear-gradient(180deg, #0b2440 0%, #061424 100%); border: 2px solid #0a2a45; border-radius: 16px; padding: 12px 12px 8px; color: #e8f6ff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 5px #2a6f9e, inset 0 2px 10px rgba(0,0,0,.6); }
.lcd::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); pointer-events: none; }
.sb { display: flex; align-items: center; gap: 8px; font-family: var(--font-px); font-size: 7px; color: #7fb4d9; }
.sb .live { margin-left: auto; color: #8ff07a; }
.bat { display: inline-flex; gap: 1px; padding: 1px; border: 1px solid #7fb4d9; border-radius: 2px; }
.bat i { width: 3px; height: 5px; background: #8ff07a; display: block; }
.lcd-main { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.lcd-cover { width: 96px; height: 96px; border: 2px solid #0a2a45; box-shadow: 0 0 0 2px #7fb4d9; transition: transform .5s cubic-bezier(.2,1.4,.4,1); }
body.is-paused .lcd-cover { transform: scale(.92); }
.lcd-text { flex: 1; min-width: 0; }
.lcd .tname { font-family: var(--font-aero); font-weight: 700; font-size: 20px; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 8px rgba(120,210,255,.45); }
.lcd .tmeta { font-size: 12px; color: #7fb4d9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd .tctx { font-family: var(--font-px); font-size: 6px; color: #5f8fb3; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin: 12px 0 6px; cursor: pointer; touch-action: none; }
.wave i { flex: 1; background: #1d4366; min-height: 4px; border-radius: 2px 2px 0 0; }
.wave i.on { background: linear-gradient(180deg, #b6ff9a, #3fc22f); }
.time { display: flex; justify-content: space-between; font-family: var(--font-px); font-size: 7px; color: #7fb4d9; }
.pad { position: relative; width: 196px; height: 196px; margin: 22px auto 4px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #d9f3ff 30%, #7cc8ee 75%, #3a93c9 100%);
  border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 0 2px #2a6f9e, inset 0 -10px 18px rgba(0,70,120,.35), 0 8px 18px rgba(20,80,140,.3); }
.pad::before { content: ""; position: absolute; left: 18%; right: 18%; top: 5%; height: 34%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0)); pointer-events: none; }
.pl { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--font-aero); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: #13527f; padding: 6px 10px; border-radius: 10px; }
.pl.top { top: 10px; } .pl.bot { bottom: 10px; }
.pl svg { width: 16px; height: 16px; }
.pl.on { color: var(--red); }
.pb { position: absolute; z-index: 1; color: #13527f; display: grid; place-items: center; border-radius: 50%; }
.pb svg { width: 18px; height: 18px; }
.pb.prev { left: 6px; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.pb.next { right: 6px; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.pb.play { left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); color: #fff; border: 2px solid rgba(255,255,255,.95); overflow: hidden;
  background: radial-gradient(circle at 50% 120%, #c9ff8a 0%, #5fd13f 45%, #2f9a28 100%);
  box-shadow: 0 0 0 2px #2c7a24, 0 6px 14px rgba(30,100,40,.45), inset 0 -6px 12px rgba(0,60,0,.35); }
.pb.play::before { content: ""; position: absolute; left: 14%; right: 14%; top: 4%; height: 46%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.05)); }
.pb.play svg { position: relative; width: 26px; height: 26px; filter: drop-shadow(0 1px 0 rgba(0,60,0,.6)); }
.pb.play:active { transform: translate(-50%, calc(-50% + 2px)); }
.mp3-modes { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.mode { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-aero); font-weight: 700; font-size: 11px; color: #fff; letter-spacing: .06em;
  padding: 7px 12px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.8); background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.08)); text-shadow: 0 1px 0 rgba(0,60,100,.55); }
.mode svg { width: 14px; height: 14px; filter: drop-shadow(0 1px 0 rgba(0,60,100,.55)); }
.mode.on { background: radial-gradient(circle at 50% 120%, #c9ff8a 0%, #5fd13f 45%, #2f9a28 100%); border-color: #fff; box-shadow: 0 0 10px rgba(109,255,90,.6); }

/* ---------- Dialog-Fenster ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; padding: 14px 14px calc(var(--safe-b) + 14px); }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(29,29,43,.4); animation: fade .2s; }
.sheet { position: relative; width: min(520px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: #fff; border: 3px solid var(--line); border-radius: 12px;
  box-shadow: 6px 6px 0 rgba(29,29,43,.3); animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.sheet-body { overflow-y: auto; padding: 14px 16px 16px; }
.sheet-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 3px solid var(--panel2); }
.sheet-head .cover { width: 50px; height: 50px; }
.sheet-head .t { font-weight: 700; }
.sheet-head .s { font-size: 12px; color: var(--mute); }
.sheet h3 { font-family: var(--font-px); font-weight: 400; font-size: 10px; color: var(--red); margin: 4px 0 14px; }
.sheet-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 8px; font-size: 14px; font-weight: 500; text-align: left; }
.sheet-btn svg { width: 14px; height: 14px; }
.sheet-btn.danger { color: var(--red); }
.sheet-btn .muted { font-size: 12px; }
.qi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; text-align: left; }
.qi .cover { width: 38px; height: 38px; border-width: 2px; }
.qi .n { font-family: var(--font-px); font-size: 7px; color: var(--mute); width: 26px; }
.qi .t { font-size: 13px; font-weight: 500; }
.qi.cur { background: #fff6d6; }
.qi.cur .t, .qi.cur .n { color: var(--red); font-weight: 700; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; top: calc(var(--safe-t) + 16px); transform: translate(-50%, -180%); visibility: hidden; white-space: nowrap;
  font-family: var(--font-px); font-size: 9px; line-height: 1.5; background: var(--coin); border: 3px solid var(--line); padding: 10px 14px;
  box-shadow: 4px 4px 0 rgba(29,29,43,.25); transition: transform .45s cubic-bezier(.2,1.4,.4,1), visibility 0s .45s; max-width: calc(100vw - 30px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s cubic-bezier(.2,1.4,.4,1); }

/* ---------- Login ---------- */
.login { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, var(--sky1), var(--sky2)); }
.icard { width: min(420px, 100%); background: #fff; border: 3px solid var(--line); border-radius: 12px; box-shadow: 6px 6px 0 rgba(29,29,43,.22); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.ibody { padding: 30px 24px 24px; text-align: center; }
.ipre { font-family: var(--font-px); font-size: 8px; color: var(--mute); margin: 0 0 14px; }
.ititle { font-family: var(--font-display); font-size: clamp(42px, 12vw, 62px); line-height: .95; margin: 0 0 10px; text-shadow: 3px 3px 0 var(--coin); }
.isub { font-size: 13px; color: var(--mute); margin: 0 0 22px; }
.err { font-family: var(--font-px); font-size: 8px; color: var(--red); margin-top: 12px; min-height: 1em; }

/* ---------- Grössere Bildschirme ---------- */
@media (min-width: 720px) {
  .view { padding-left: 24px; padding-right: 24px; }
  .hud { padding-left: 24px; padding-right: 24px; }
  .wbody { padding: 30px 32px; }
  .shelf { margin: 0 -32px; padding-left: 32px; padding-right: 32px; scroll-padding: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .card, .card .cover { width: 160px; } .card .cover { height: 160px; }
  .hero .cover { width: 220px; height: 220px; }
  .home-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .tabs a { flex-direction: row; gap: 10px; font-size: 8px; }
  .player-inner { max-width: 440px; }
}
@media (max-width: 420px) {
  .hero { grid-template-columns: 1fr; }
  .hero .cover { width: 180px; height: 180px; }
  .trk { grid-template-columns: 28px 40px minmax(0, 1fr) auto 40px; gap: 8px; padding-left: 12px; padding-right: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- iPhone (14 Pro: 393×852, Dynamic Island) ---------- */
button, a, .trk, .tile, .card, .tabs, .mini, .pad, .wave { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cover { -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
.view, .player, .sheet-body { overscroll-behavior: contain; }
@supports (height: 100dvh) { .player-inner { min-height: 100dvh; } }
@media (max-width: 430px) {
  .hud { padding-left: 16px; padding-right: 16px; }
  .view { padding-left: 12px; padding-right: 12px; gap: 18px; }
  .wbody { padding: 18px 16px; }
  .shelf { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
  .card, .card .cover { width: 128px; } .card .cover { height: 128px; }
  .mini { left: 8px; right: 8px; }
  .pad { width: 188px; height: 188px; }
  .pb.play { width: 80px; height: 80px; }
}
@media (max-height: 760px) { .pad { width: 168px; height: 168px; margin-top: 14px; } .pb.play { width: 72px; height: 72px; } .lcd-cover { width: 80px; height: 80px; } }

@media (hover: hover) {
  .lclose:hover::after { content: "\00d7"; position: absolute; inset: 0; font: 700 10px/12px Arial, sans-serif; color: #6b0f0a; }
  .cta:hover { background: var(--coin); color: var(--text); box-shadow: 0 -4px 0 0 var(--coin-d) inset; }
  .cta.alt:hover { background: var(--coin); }
  .tbtn:hover { background: var(--coin); }
  .tile:hover { background: #fff6d6; }
  .card:hover { transform: translateY(-3px); }
  .trk:hover { background: #eef4ff; }
  .trk .more:hover { color: var(--text); background: var(--coin); }
  .back:hover { background: var(--coin); }
  .chip:hover { background: #fff6d6; }
  .dropzone:hover, .dropzone.over { background: #fff6d6; }
  .pbtn:hover { background: var(--coin); }
  .pbtn.red:hover { background: var(--coin); color: var(--text); box-shadow: inset 0 -4px 0 0 var(--coin-d); }
  .pbtn.ghost:hover { background: rgba(127,180,217,.15); }
  .pl:hover { color: #fff; }
  .pb.prev:hover, .pb.next:hover { color: #fff; }
  .pb.play:hover { filter: brightness(1.08) saturate(1.1); }
  .sheet-btn:hover { background: #fff6d6; }
  .qi:hover { background: #eef4ff; }
}
/* Tipp-Feedback auf Touch-Geräten */
.trk:active, .sheet-btn:active, .qi:active, .tile:active, .chip:active { background: #fff6d6; }
.pbtn:active, .tbtn:active, .back:active { background: var(--coin); }
/* Fenster nie breiter als der Bildschirm */
.view > *, .home-grid > * { min-width: 0; max-width: 100%; }
