:root {
  --bg: #0b0b0f; --card: #17171d; --line: #2a2a33; --txt: #f3f3f5; --muted: #a1a1aa;
  --red: #e11d48; --gold: #f5b301; --green: #22c55e;
  --top: 52px; --bottom: 58px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* Kopf- und Fußleiste */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: linear-gradient(#0b0b0fee, #0b0b0f99); z-index: 20; backdrop-filter: blur(6px); }
.logo { display: flex; align-items: baseline; gap: 6px; }
.logo .itl { font-weight: 900; font-size: 22px; letter-spacing: 1px; color: var(--red); }
.logo .sub { font-weight: 700; font-size: 14px; color: var(--gold); }
.top-right { display: flex; gap: 10px; align-items: center; }
.coins { background: #ffffff14; padding: 6px 10px; border-radius: 999px; font-weight: 700; color: var(--gold); }
select { background: #ffffff14; color: var(--txt); border: 0; border-radius: 8px; padding: 6px; }
.bottom { position: fixed; inset: auto 0 0 0; height: var(--bottom); display: flex; background: #0b0b0ff2; border-top: 1px solid var(--line); z-index: 20;
  padding-bottom: env(safe-area-inset-bottom); }
.bottom a { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.bottom a.active { color: var(--txt); font-weight: 700; }
main { padding: var(--top) 0 var(--bottom); min-height: 100%; }

/* Feed: senkrecht wischen */
.feed { height: calc(100dvh - var(--top) - var(--bottom)); overflow-y: scroll; scroll-snap-type: y mandatory; }
.slide { position: relative; height: 100%; scroll-snap-align: start; overflow: hidden; background: #000; }
.slide video, .slide img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, #000d); pointer-events: none; }
.slide .info { position: absolute; left: 16px; right: 16px; bottom: 18px; }
.slide h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.15; }
.slide p { margin: 0 0 12px; color: #e5e5e5; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px;
  font-weight: 800; background: var(--red); color: #fff; }
.btn.gold { background: var(--gold); color: #000; }
.btn.ghost { background: #ffffff1a; color: var(--txt); }
.btn.block { width: 100%; }
.unmute { position: absolute; top: 12px; right: 12px; z-index: 2; }

/* Serienliste */
.wrap { padding: 14px; max-width: 720px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 9/14; object-fit: cover; display: block; background: #222; }
.card .t { padding: 8px 10px 10px; font-weight: 700; font-size: 14px; }

/* Serienseite */
.hero { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; margin-bottom: 16px; }
.hero img { width: 120px; aspect-ratio: 9/14; object-fit: cover; border-radius: 12px; }
.hero h1 { margin: 0 0 6px; font-size: 22px; }
.hero p { margin: 0 0 10px; color: var(--muted); }
.eps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ep { aspect-ratio: 1; border-radius: 10px; background: var(--card); display: grid; place-items: center; font-weight: 800; position: relative; border: 1px solid var(--line); }
.ep.locked::after { content: "🔒"; position: absolute; font-size: 11px; top: 3px; right: 4px; }
.ep.unlocked { border-color: var(--gold); }
.ep.soon { opacity: .35; }
.ep.free::after { content: "FREE"; position: absolute; font-size: 8px; bottom: 3px; color: var(--green); }

/* Player */
.player { position: fixed; inset: 0; background: #000; z-index: 30; display: flex; flex-direction: column; }
.player video { flex: 1; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px;
  background: linear-gradient(#000c, transparent); }
.player .next { position: absolute; right: 12px; top: 64px; }
.player .title { font-weight: 700; }

/* Sheet (Bezahlschranke, Hinweise) */
.sheet { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--card); border-radius: 20px 20px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px #000a; max-height: 85dvh; overflow: auto; }
.sheet h3 { margin: 0 0 6px; font-size: 20px; }
.sheet p { color: var(--muted); margin: 0 0 14px; }
.pk { display: grid; gap: 10px; margin: 12px 0; }
.pkg { display: flex; justify-content: space-between; align-items: center; background: #ffffff0d; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pkg b { color: var(--gold); font-size: 18px; }
.code { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 2px; background: #000; padding: 14px; border-radius: 10px; text-align: center; margin: 10px 0; color: var(--gold); }
.box { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.box h3 { margin-top: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input[type=text] { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #000; color: var(--txt); font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.ok { color: var(--green); }
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom) + 16px); transform: translateX(-50%); background: #fff; color: #000; padding: 10px 16px;
  border-radius: 999px; font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; }
.testmode { background: var(--gold); color: #000; font-weight: 800; text-align: center; padding: 4px; font-size: 12px; position: fixed; top: var(--top); left: 0; right: 0; z-index: 19; }

/* Test-Banner nimmt oben Platz weg */
body.has-testmode main { padding-top: calc(var(--top) + 24px); }
body.has-testmode .feed { height: calc(100dvh - var(--top) - 24px - var(--bottom)); }

/* Regionsauswahl */
.region-btn { background: #ffffff14; border: 0; border-radius: 999px; padding: 5px 9px; font-size: 18px; line-height: 1; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.regions button { background: #ffffff0d; border: 1px solid var(--line); color: var(--txt); border-radius: 12px; padding: 10px 4px; font-size: 13px; }
.regions button .f { display: block; font-size: 28px; margin-bottom: 4px; }
.regions button.on { border-color: var(--gold); background: #f5b30122; }
.paywith{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.paywith .btn{font-size:13px;padding:8px 10px}
.card{position:relative}.card .age{position:absolute;top:6px;right:6px;background:#e11d48;color:#fff;font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px}
.tag.age{background:#e11d48;color:#fff}
.pkg{flex-wrap:wrap;gap:8px}
.legal{text-align:center;color:#a1a1aa;font-size:13px;margin:24px 0 90px}.legal a{color:#a1a1aa}.premiere .box p{margin:6px 0 10px}
