/* app.css 1.0.0 – 2026-12-04: Handysteuerung der Mediathek */
:root { --bg:#0b0d12; --panel:#151922; --panel2:#1d2230; --line:#2a3142; --text:#eceef3; --muted:#9aa2b5; --accent:#f5b400; --ink:#1a1300; --rot:#ff6b6b; color-scheme:dark; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.4 system-ui,sans-serif; padding-bottom:var(--unten,0); }
button,input,select { font:inherit; color:inherit; }
button { border:0; background:var(--panel2); border-radius:10px; min-height:44px; padding:0 14px; }
button:active { opacity:.6; }
header { position:sticky; top:0; z-index:2; background:var(--bg); padding:calc(8px + env(safe-area-inset-top)) 12px 8px; display:grid; gap:8px; border-bottom:1px solid var(--line); }
#pcs { display:flex; gap:6px; }
#pcs button { flex:1; background:var(--panel); border:1px solid var(--line); color:var(--muted); }
#pcs button::before { content:"●"; margin-right:7px; color:#555d70; }
#pcs button.an::before { color:#4ccf7a; }
#pcs button[aria-checked=true] { border-color:var(--accent); color:var(--text); font-weight:600; }
#suche { width:100%; height:44px; border-radius:10px; border:1px solid var(--line); background:var(--panel); padding:0 14px; }
#filter { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
#filter button { min-height:38px; background:none; color:var(--muted); white-space:nowrap; padding:0 12px; flex:1 0 auto; }
#filter button.an { background:var(--text); color:var(--bg); font-weight:600; }
#hinweis { margin:16px 12px; padding:14px; background:var(--panel); border-radius:10px; }
#raster { display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:14px 10px; padding:12px; }
.karte { padding:0; background:none; text-align:left; min-width:0; display:block; }
.bild { position:relative; aspect-ratio:2/3; border-radius:8px; overflow:hidden; background:var(--panel); display:grid; place-items:center; text-align:center; font-size:13px; color:var(--muted); }
.bild img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.bild i { position:absolute; left:0; bottom:0; height:4px; background:var(--accent); }
.bild em { position:absolute; right:6px; top:6px; background:var(--accent); color:var(--ink); border-radius:99px; width:22px; height:22px; font:700 13px/22px system-ui; }
.karte b { display:block; font-size:13px; font-weight:500; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.karte small,.info { color:var(--muted); }
#detail { position:fixed; inset:0; z-index:3; background:var(--bg); overflow-y:auto; overscroll-behavior:contain; padding:calc(12px + env(safe-area-inset-top)) 16px calc(24px + var(--unten,0px)); }
#detail .kopf { display:flex; gap:14px; margin:12px 0; }
#detail .kopf .bild { width:112px; flex:none; align-self:start; }
#detail h1 { font-size:22px; line-height:1.2; margin:0 0 6px; text-wrap:balance; }
#detail .start { width:100%; background:var(--accent); color:var(--ink); font-weight:700; min-height:54px; margin-bottom:8px; }
#detail .neben { width:100%; margin-bottom:8px; }
#detail select { width:100%; height:46px; border-radius:10px; background:var(--panel); border:1px solid var(--line); padding:0 12px; margin:12px 0 4px; }
.folge { width:100%; text-align:left; background:none; border-radius:0; border-bottom:1px solid var(--line); padding:12px 2px; display:flex; gap:12px; }
.folge span:first-child { color:var(--muted); min-width:24px; }
.folge span:nth-child(2) { flex:1; }
.folge.fehlt { color:var(--rot); opacity:.75; }
#player { position:fixed; z-index:4; left:0; right:0; bottom:0; background:var(--panel2); border-top:1px solid var(--line); padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
.zeile { display:flex; gap:12px; justify-content:space-between; }
.zeile b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#p-zeit { color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
#p-pos { width:100%; height:32px; accent-color:var(--accent); margin:0; }
.tasten { display:flex; gap:8px; align-items:center; }
.tasten button { flex:1; background:var(--panel); padding:0 4px; font-size:18px; min-height:48px; }
.tasten .gross { background:var(--accent); color:var(--ink); }
.tasten.klein { margin-top:8px; }
.tasten.klein button { font-size:14px; min-height:40px; }
#p-laut { min-width:44px; text-align:center; font-size:13px; color:var(--muted); }
#toast { position:fixed; z-index:5; left:16px; right:16px; top:calc(16px + env(safe-area-inset-top)); background:var(--text); color:var(--bg); padding:12px 16px; border-radius:10px; text-align:center; }
