/* Hermes Kino - Optik angelehnt an moderne Konsolen-Oberflaechen (PlayStation-Stil) */
:root {
  --bg: #07101f; --bg2: #0d1b36; --surface: rgba(255, 255, 255, .07); --surface2: rgba(255, 255, 255, .12);
  --text: #f2f6ff; --dim: #9db0d0; --accent: #3d8bff; --accent2: #7aa8ff; --ok: #5bd98a; --red: #ff5d73;
  --r: 14px; --focus: 0 0 0 3px #fff, 0 10px 30px rgba(0, 0, 0, .55), 0 0 40px rgba(61, 139, 255, .45);
  --font: "SST", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { margin: 0; min-height: 100%; color: var(--text); font-family: var(--font); font-size: 17px; }
body { overflow-x: hidden; }
body.noscroll { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

#bg { position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(1200px 700px at 78% -10%, #1c4a9a55, transparent 60%),
              radial-gradient(900px 600px at 0% 100%, #0e3a7a44, transparent 60%),
              linear-gradient(160deg, #0b1830 0%, #06101f 55%, #040a16 100%); }

/* ---------- Anmeldung ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: min(420px, 100%); padding: 38px 32px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(24px); border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.logo { font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #8f6bff);
  clip-path: none; box-shadow: 0 4px 14px rgba(61, 139, 255, .6); }
.logo b { color: var(--accent2); font-weight: 700; }
.login h1 { margin: 18px 0 4px; font-size: 1.7rem; font-weight: 600; }
.login p { color: var(--dim); margin: 0 0 24px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .85rem; color: var(--dim); margin-bottom: 6px; }
.field input, .search input, select { width: 100%; padding: 12px 16px; background: rgba(255, 255, 255, .08); border: 2px solid transparent; border-radius: 12px; transition: border-color .15s, background .15s; }
.field input:focus, .search input:focus, select:focus { border-color: #fff; background: rgba(255, 255, 255, .14); }
select option { background: #0d1b36; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border: 0; border-radius: 999px; background: #fff; color: #07101f;
  font-weight: 700; font-size: 1rem; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover, .btn:focus-visible { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .4); }
.btn.ghost { background: var(--surface2); color: #fff; }
.btn.big { padding: 15px 36px; font-size: 1.08rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.err { color: var(--red); min-height: 1.3em; margin: 6px 0 12px; font-size: .95rem; }

/* ---------- Kopfzeile ---------- */
header.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 14px 34px;
  background: linear-gradient(rgba(6, 12, 24, .9), rgba(6, 12, 24, 0)); }
nav.tabs { display: flex; gap: 6px; }
.tab { background: none; border: 0; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--dim); transition: background .15s, color .15s, transform .12s; }
.tab:hover { color: #fff; }
.tab:focus-visible { box-shadow: 0 0 0 3px #fff; color: #fff; }
.tab.on { background: var(--surface2); color: #fff; }
.spacer { flex: 1; }
.search { width: min(300px, 36vw); }
.search input { border-radius: 999px; padding-left: 20px; }
.iconbtn { background: var(--surface); border: 0; width: 42px; height: 42px; display: grid; place-items: center; color: var(--text); border-radius: 50%; transition: background .15s, transform .12s; }
.iconbtn:hover { background: var(--surface2); }
.iconbtn:focus-visible { box-shadow: 0 0 0 3px #fff; }
.iconbtn svg { width: 20px; height: 20px; fill: currentColor; }

main { padding: 0 34px 80px; max-width: 2000px; margin: 0 auto; }
.banner { margin: 8px 0 0; padding: 12px 18px; border-radius: 12px; background: rgba(255, 176, 32, .14); color: #ffd180; }
.banner.info { background: rgba(61, 139, 255, .16); color: var(--accent2); }

/* ---------- Buehne (grosses Banner wie bei der PlayStation) ---------- */
.stage { position: relative; height: clamp(300px, 46vh, 480px); margin: -76px -34px 4px; overflow: hidden; border-radius: 0 0 28px 28px; }
.stage .back { position: absolute; inset: -30px; background-size: cover; background-position: center 20%; filter: blur(34px) saturate(1.3) brightness(.7); transform: scale(1.1); opacity: 0; transition: opacity .6s; }
.stage .back.on { opacity: 1; }
.stage .art { position: absolute; right: 7%; top: 96px; bottom: 28px; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: #12264a; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); opacity: 0; transition: opacity .5s; }
.stage .art.on { opacity: 1; }
.stage .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 12, 24, .92) 0%, rgba(6, 12, 24, .55) 45%, rgba(6, 12, 24, .1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 38%); pointer-events: none; }
.stage .info { position: absolute; left: 34px; bottom: 36px; z-index: 2; max-width: min(640px, 60%); }
.stage .kicker { color: var(--accent2); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.stage h1 { margin: 6px 0 8px; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.05; font-weight: 700; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.stage .sub { color: #d5e1f7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; max-width: 56ch; }
.stage .meta { margin: 0 0 10px; }

.section { margin-top: 26px; }
.section h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; padding: 0 4px; font-size: 1.3rem; font-weight: 600; }
.section h2 small { color: var(--dim); font-weight: 400; font-size: .95rem; }
.section h2 a { margin-left: auto; color: var(--dim); font-size: .92rem; font-weight: 500; cursor: pointer; padding: 4px 10px; border-radius: 999px; }
.section h2 a:hover { color: #fff; background: var(--surface); }
.row { display: flex; gap: 18px; overflow-x: auto; padding: 16px 12px 24px; margin: 0 -12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .card { flex: 0 0 176px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 20px; padding: 14px 6px; }
.toolbar { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 1.6rem; font-weight: 700; }
.toolbar select { width: auto; border-radius: 999px; padding-right: 34px; }
.toolbar .count { color: var(--dim); }
.empty { margin: 60px auto; max-width: 660px; padding: 32px; border-radius: 22px; background: var(--surface); }
.empty h2 { margin-top: 0; }
.empty code { background: rgba(0, 0, 0, .3); padding: 2px 8px; border-radius: 6px; }
.empty ul { padding-left: 20px; color: var(--dim); line-height: 1.6; }

/* ---------- Kacheln ---------- */
.card { background: none; border: 0; padding: 0; text-align: left; display: block; scroll-margin: 100px 24px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); color: inherit; }
.card .poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #12264a; border-radius: var(--r); transition: box-shadow .2s; }
.card .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.poster.has-img img { opacity: 1; }
.poster.has-img .ph { opacity: 0; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font-weight: 700; font-size: 1.05rem; line-height: 1.2; transition: opacity .35s; overflow: hidden; }
.ph span { position: relative; z-index: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .55); overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.badge { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 9px; font-size: .78rem; font-weight: 700; border-radius: 999px; background: rgba(6, 12, 24, .75); backdrop-filter: blur(6px); }
.badge.ok { color: var(--ok); }
.card .cap { padding: 10px 4px 0; }
.card .t { font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .s { color: var(--dim); font-size: .88rem; margin-top: 2px; }
.card:hover { transform: scale(1.04); }
.card:focus-visible { transform: scale(1.09); z-index: 3; position: relative; }
.card:focus-visible .poster, .card:hover .poster { box-shadow: var(--focus); }
.card:hover:not(:focus-visible) .poster { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---------- Serien-Seite / Detail ---------- */
.hero { display: grid; grid-template-columns: 240px 1fr; gap: 34px; margin-top: 30px; align-items: start; }
.hero .poster { aspect-ratio: 2 / 3; position: relative; overflow: hidden; border-radius: var(--r); background: #12264a; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hero .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.hero .poster.has-img img { opacity: 1; }
.hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.08; font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--surface2); font-size: .85rem; color: #dbe6fa; }
.overview { color: #c4d3ee; max-width: 70ch; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.seasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 14px; }
.chipbtn { background: var(--surface); border: 0; padding: 9px 20px; border-radius: 999px; font-weight: 600; color: var(--dim); }
.chipbtn.on { background: #fff; color: #07101f; }
.chipbtn:hover:not(.on) { color: #fff; background: var(--surface2); }
.chipbtn:focus-visible { box-shadow: 0 0 0 3px #fff; }
.eps { display: grid; gap: 10px; padding-bottom: 10px; }
.ep { position: relative; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 16px 20px; text-align: left; border: 0; border-radius: var(--r);
  background: var(--surface); scroll-margin: 100px 0; overflow: hidden; color: inherit; transition: transform .15s, background .15s; }
.ep:hover { background: var(--surface2); }
.ep:focus-visible { background: var(--surface2); box-shadow: 0 0 0 3px #fff; transform: scale(1.015); }
.ep .n { font-size: 1.3rem; font-weight: 700; color: var(--accent2); }
.ep .et { font-weight: 600; }
.ep .ok { color: var(--ok); font-size: .9rem; font-weight: 600; }
.ep .bar { left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; }
.back-btn { margin-top: 22px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 7, 16, .72); backdrop-filter: blur(14px); }
.modal[hidden], .player[hidden] { display: none; }
.sheet { position: relative; width: min(920px, 100%); max-height: 94vh; overflow: auto; padding: 32px; background: #0f1e3b; border-radius: 26px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.sheet .hero { margin-top: 0; grid-template-columns: 210px 1fr; }
.sheet .close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.loading { color: var(--dim); padding: 34px; text-align: center; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; padding: 12px 22px; border-radius: 999px; background: #fff; color: #07101f; font-weight: 600; max-width: 90vw; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 100; background: #000; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.player.hide-ui { cursor: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player .subs { position: absolute; left: 6%; right: 6%; bottom: 9%; text-align: center; pointer-events: none; transition: bottom .25s; font-size: calc(var(--subsize, 1) * clamp(18px, 2.8vw, 40px)); }
.player:not(.hide-ui) .subs { bottom: 24%; }
.player .subs span { display: inline-block; padding: 3px 14px; background: rgba(0, 0, 0, .6); color: #fff; white-space: pre-line; line-height: 1.3; text-shadow: 0 1px 4px #000; border-radius: 8px; }
.player .osd { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 14px 30px; background: rgba(10, 18, 36, .8); backdrop-filter: blur(10px); border-radius: 999px;
  font-size: 1.6rem; font-weight: 600; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 5; }
.player .osd.on { opacity: 1; }
.spinner { position: absolute; top: 50%; left: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border: 5px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%;
  animation: spin .85s linear infinite; display: none; pointer-events: none; z-index: 4; }
.player.busy .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.player .bigplay { position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: none; place-items: center; z-index: 3; background: rgba(10, 18, 36, .6);
  backdrop-filter: blur(8px); border-radius: 50%; pointer-events: none; }
.player.paused:not(.busy) .bigplay { display: grid; }
.bigplay svg { width: 44px; height: 44px; fill: #fff; }
.player .ui { transition: opacity .3s; }
.player.hide-ui .ui { opacity: 0; pointer-events: none; }
.ptop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 18px 26px; padding-top: max(18px, env(safe-area-inset-top)); background: linear-gradient(rgba(0, 0, 0, .8), transparent); z-index: 6; }
.ptitle { font-weight: 700; font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptitle small { display: block; color: var(--dim); font-weight: 500; font-size: .85rem; }
.pctl { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 28px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .88)); z-index: 6; }
.seek { position: relative; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek .track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); transition: height .12s; }
.seek:hover .track, .seek.drag .track { height: 10px; }
.seek .buf, .seek .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.seek .buf { background: rgba(255, 255, 255, .32); }
.seek .fill { background: #fff; }
.seek .knob { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); transform: scale(0); transition: transform .12s; }
.seek:hover .knob, .seek.drag .knob { transform: scale(1); }
.seek .tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 4px 10px; background: rgba(10, 18, 36, .95); border-radius: 8px; font-size: .88rem; font-weight: 600; display: none; pointer-events: none; }
.seek:hover .tip, .seek.drag .tip { display: block; }
.prow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.pb { background: none; border: 0; color: #fff; min-width: 46px; height: 46px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .15s; }
.pb:hover { background: rgba(255, 255, 255, .14); }
.pb:focus-visible { box-shadow: 0 0 0 3px #fff; }
.pb svg { width: 26px; height: 26px; fill: currentColor; }
.pb.txt { padding: 0 16px; background: rgba(255, 255, 255, .1); margin-left: 4px; }
.pb.txt small { display: block; color: var(--dim); font-size: .7rem; font-weight: 500; margin-top: 1px; }
.pb.on { background: #fff; color: #07101f; }
.ptime { font-size: .95rem; padding: 0 12px; color: #dbe6fa; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vol { display: flex; align-items: center; }
.vol input { width: 92px; accent-color: #fff; }
.pmenu { position: absolute; right: 28px; bottom: 128px; z-index: 8; min-width: 270px; max-width: calc(100vw - 40px); max-height: 55vh; overflow: auto; background: rgba(15, 28, 56, .96); backdrop-filter: blur(20px);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); padding: 6px; }
.pmenu h4 { margin: 0; padding: 10px 14px 6px; font-size: .8rem; color: var(--dim); font-weight: 600; }
.pmenu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 12px 14px; text-align: left; background: none; border: 0; border-radius: 12px; }
.pmenu button:hover, .pmenu button:focus-visible { background: rgba(255, 255, 255, .12); }
.pmenu button.on { background: #fff; color: #07101f; font-weight: 700; }
.pmenu button[disabled] { opacity: .4; cursor: default; }
.pmenu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 6px 4px; }
.perr { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: min(520px, 90vw); padding: 28px; text-align: center; z-index: 9; background: #0f1e3b; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.perr p { margin: 0 0 18px; line-height: 1.45; }
.nextup { position: absolute; right: 28px; bottom: 150px; z-index: 9; width: min(350px, 90vw); padding: 18px; background: rgba(15, 28, 56, .96); backdrop-filter: blur(16px); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.nextup b { display: block; font-size: .8rem; color: var(--dim); font-weight: 600; }
.nextup .nt { margin: 6px 0 14px; font-weight: 700; }
.nextup .btn { padding: 9px 18px; font-size: .9rem; }
.nextup .actions { margin-top: 0; }

@media (max-width: 760px) {
  header.top { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .search { order: 5; width: 100%; flex: 1 1 100%; }
  main { padding: 0 16px 60px; }
  .stage { margin: -112px -16px 4px; height: 360px; }
  .stage .art { display: none; }
  .stage .info { left: 16px; right: 16px; max-width: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 12px; }
  .row .card { flex-basis: 124px; }
  .hero, .sheet .hero { grid-template-columns: 1fr; gap: 16px; }
  .hero .poster { width: 150px; }
  .tab { padding: 8px 14px; font-size: .92rem; }
  .vol input { display: none; }
  .pb { min-width: 40px; padding: 0 8px; }
  .pctl { padding: 50px 14px 12px; }
  .pmenu { right: 8px; left: 8px; bottom: 124px; }
  .sheet { padding: 22px 16px; }
}

/* ---------- Update-Button ---------- */
.iconbtn { position: relative; }
.iconbtn.has { color: #fff; background: var(--accent); }
.iconbtn.has::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #ff5d73; box-shadow: 0 0 0 3px #0b1830; }
.sheet.small { width: min(520px, 100%); }
.sheet h2 { margin: 0 0 10px; font-size: 1.5rem; }
.changes { margin: 6px 0 4px; padding-left: 20px; color: #c4d3ee; line-height: 1.6; max-height: 40vh; overflow: auto; }
.sheet code { background: rgba(0, 0, 0, .35); padding: 3px 9px; border-radius: 6px; }

/* =====================================================================
   GLAS-LOOK: durchsichtige Flaechen ueber fliessenden Farben
   ===================================================================== */
:root {
  --glass: rgba(255, 255, 255, .075); --glass2: rgba(255, 255, 255, .14); --glass-line: rgba(255, 255, 255, .2);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .05);
  --blur: blur(26px) saturate(1.6);
}
#bg { display: block; width: 100%; height: 100%; background: #060b1c; }

header.top { top: 10px; margin: 10px 18px 0; padding: 9px 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), 0 12px 40px rgba(0, 0, 0, .28); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.stage { margin-top: -86px; }
.tab.on { background: var(--glass2); box-shadow: var(--glass-hi); }
.iconbtn, .chip, .chipbtn, .btn.ghost, .field input, .search input, select {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.iconbtn:hover, .btn.ghost:hover, .chipbtn:hover:not(.on) { background: var(--glass2); }
.field input:focus, .search input:focus, select:focus { background: var(--glass2); border-color: rgba(255, 255, 255, .7); }
.chipbtn.on { background: rgba(255, 255, 255, .92); }
.btn { background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .8)); box-shadow: inset 0 1px 0 #fff, 0 8px 26px rgba(0, 0, 0, .3); }
.btn.ghost { color: #fff; }
.iconbtn.has { background: rgba(61, 139, 255, .75); }

.login, .sheet, .empty, .ep, .banner, .pmenu, .perr, .nextup, .toast {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 24px 70px rgba(0, 0, 0, .4);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.sheet, .login { background: rgba(255, 255, 255, .09); }
.banner { color: #fff; } .banner.info { color: #e3edff; }
.toast { color: #fff; background: rgba(255, 255, 255, .16); }
.ep:hover, .ep:focus-visible { background: var(--glass2); }
.modal { background: rgba(4, 8, 22, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet code, .empty code { background: rgba(255, 255, 255, .12); }

.card .poster, .hero .poster { border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 14px 36px rgba(0, 0, 0, .35); }
.card .poster::after, .hero .poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 28%, transparent 46%); }
.card .poster .bar, .card .poster .badge { z-index: 2; }
.badge { background: rgba(255, 255, 255, .18); border: 1px solid var(--glass-line); }
.bar { background: rgba(255, 255, 255, .22); }
.stage { border-radius: 0 0 30px 30px; }
.stage::after { background: linear-gradient(90deg, rgba(5, 10, 28, .78) 0%, rgba(5, 10, 28, .3) 48%, rgba(5, 10, 28, 0) 100%), linear-gradient(0deg, rgba(5, 10, 28, .5) 0%, transparent 40%); }
.stage .art { border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 24px 60px rgba(0, 0, 0, .5); }

/* Player-Bedienung als Glas */
.pctl { background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.prow { padding: 4px 8px; border-radius: 22px; background: rgba(255, 255, 255, .09); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--glass-hi); }
.pb.txt { background: rgba(255, 255, 255, .12); }
.pmenu button.on { background: rgba(255, 255, 255, .9); }
.player .osd { background: rgba(255, 255, 255, .16); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); }
@media (max-width: 760px) { header.top { margin: 8px 10px 0; } .stage { margin-top: -118px; } }
@supports not (backdrop-filter: blur(1px)) { .login, .sheet, .empty, .ep, .banner, .pmenu, .perr, .nextup, header.top { background: rgba(20, 30, 62, .92); } }

.stage::after { background: linear-gradient(90deg, rgba(5, 10, 28, .55) 0%, rgba(5, 10, 28, .15) 50%, rgba(5, 10, 28, 0) 100%); }
.stage { border-radius: 0 0 30px 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.stage .back { filter: blur(34px) saturate(1.4) brightness(.85); }
.stage .back.on { opacity: .55; }

/* ---------- Metadaten: Banner, Film-Fenster, Folgen ---------- */
.stage .back.bd { inset: 0; filter: saturate(1.1) brightness(.8); transform: none; background-position: center 25%; }
.stage .back.bd.on { opacity: .9; }
.tagline { color: var(--accent2); font-style: italic; margin: 4px 0 0; }
.cast { color: #c4d3ee; max-width: 70ch; line-height: 1.5; margin: 10px 0 0; }
.cast b { color: #fff; }
.chip.tech { opacity: .75; }
.sheet { isolation: isolate; }
.sheet-bd { position: absolute; inset: 0 0 auto 0; height: 260px; z-index: -1; background-size: cover; background-position: center 25%; opacity: .45;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
main { position: relative; }
.show-bd { position: absolute; left: -34px; right: -34px; top: -80px; height: 460px; z-index: -1; background-size: cover; background-position: center 20%; opacity: .5;
  -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent); pointer-events: none; }
.ep.has-thumb { grid-template-columns: 44px 176px 1fr auto; padding: 12px 16px; }
.ep .thumb { position: relative; width: 176px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep .thumb.none { visibility: hidden; }
.ep .etx { min-width: 0; }
.ep .eo { color: #b9c9e6; font-size: .92rem; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .er { color: var(--dim); font-size: .82rem; margin-top: 4px; }
@media (max-width: 760px) {
  .ep.has-thumb { grid-template-columns: 30px 108px 1fr; } .ep.has-thumb > :last-child { display: none; }
  .ep .thumb { width: 108px; } .ep .eo { -webkit-line-clamp: 3; font-size: .85rem; }
  .show-bd { left: -16px; right: -16px; }
}

/* ---------- Fortschrittsbalken ---------- */
.pbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 10px; position: relative; }
.pbar i { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width .5s; }
.pbar.ind i { position: absolute; width: 35%; animation: ind 1.3s ease-in-out infinite; }
@keyframes ind { from { left: -35%; } to { left: 100%; } }
.banner.prog .pbt { display: flex; gap: 8px; flex-wrap: wrap; }
.banner.prog .pbs { color: var(--dim); font-size: .85rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loading .pbar { max-width: 320px; margin: 14px auto 0; }
.loadmsg { position: absolute; top: calc(50% + 58px); left: 50%; transform: translateX(-50%); z-index: 4; width: min(460px, 88vw); text-align: center; padding: 12px 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); border-radius: 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); pointer-events: none; }
.loadmsg[hidden] { display: none; }
.loadmsg .lt { font-weight: 600; line-height: 1.35; }

.stage .sub { text-shadow: 0 2px 14px rgba(0, 0, 0, .6); margin: 2px 0 14px; }

/* ---------- Einstellungen ---------- */
.settings { max-width: 760px; margin: 24px auto 0; display: grid; gap: 18px; }
.ph1 { font-size: 2rem; margin: 0 0 2px; }
.panel { padding: 22px 24px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 18px 50px rgba(0, 0, 0, .3);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.panel h2 { margin: 0 0 12px; font-size: 1.25rem; }
.panel .help, .field2 .help { display: block; color: var(--dim); font-size: .9rem; line-height: 1.45; margin: 3px 0 8px; font-weight: 400; }
.field2 { display: block; margin: 0 0 16px; }
.field2 > label, label.field2 { display: block; }
.field2 b { display: block; margin-bottom: 4px; }
.field2 input[type=text], .field2 input[type=password], label.field2 input { width: 100%; padding: 12px 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--glass-line);
  border-radius: 12px; transition: border-color .15s, background .15s; }
.field2 input:focus, label.field2 input:focus { border-color: #fff; background: rgba(0, 0, 0, .4); }
.frow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.fmsg { min-height: 1.3em; margin-top: 8px; font-size: .95rem; }
.fmsg.ok { color: var(--ok); } .fmsg.bad { color: #ff8a9a; }
.check { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #fff; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 8px; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; word-break: break-all; }
@media (max-width: 760px) { .panel { padding: 18px 16px; } .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }

/* ---------- Benutzer, Verlauf ---------- */
.userchip { flex: 0 0 auto; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px; padding: 8px 16px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: var(--glass-hi); }
.userchip:hover, .userchip:focus-visible { background: var(--glass2); }
@media (max-width: 760px) { .userchip { display: none; } }
.check.small { margin: 0; font-size: .95rem; }
.chipbtn.mark { margin-right: 8px; border-style: dashed; }
.btn.small { padding: 8px 16px; font-size: .88rem; }
.btn.danger { background: rgba(255, 93, 115, .22); color: #ffb3bd; border: 1px solid rgba(255, 93, 115, .5); }
.chip.adm { background: rgba(61, 139, 255, .35); color: #fff; }
.ulist { display: grid; gap: 12px; margin-bottom: 22px; }
.urow { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); }
.uhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.uname { font-size: 1.1rem; }
.ustats { color: var(--dim); font-size: .9rem; margin: 6px 0 2px; }
.inline { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; } .inline[hidden] { display: none; }
.inline input, .fgrid input, .fgrid select { flex: 1 1 220px; padding: 11px 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--glass-line); border-radius: 12px; min-width: 0; }
.adduser h3 { margin: 0 0 4px; font-size: 1.05rem; }
.fgrid { display: flex; gap: 10px; flex-wrap: wrap; }
.hist { display: grid; gap: 10px; padding-bottom: 20px; }
.hrow { display: flex; gap: 10px; align-items: center; }
.hmain { flex: 1; display: flex; gap: 16px; align-items: center; text-align: left; padding: 10px 14px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); color: inherit; min-width: 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--glass-hi); }
.hmain:hover, .hmain:focus-visible { background: var(--glass2); box-shadow: 0 0 0 3px #fff; }
.hthumb { width: 56px; flex: none; } .hthumb .poster { aspect-ratio: 2 / 3; position: relative; border-radius: 8px; overflow: hidden; background: #12264a; }
.hthumb .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; } .hthumb .poster.has-img img { opacity: 1; }
.hthumb .ph { font-size: .55rem; padding: 4px; } .hthumb .ph::after { display: none; }
.htx { min-width: 0; flex: 1; } .htx .et { font-weight: 600; } .htx .ok { color: var(--ok); font-size: .9rem; margin-top: 4px; } .htx .er { color: var(--dim); font-size: .9rem; margin-top: 4px; }
.htx .pbar { margin-top: 8px; max-width: 320px; }

.credit { display: block; color: var(--dim); font-size: .78rem; margin: 6px 0 0; }

/* ---------- Benutzer-Seite ---------- */
.help.wide { max-width: 70ch; color: var(--dim); margin: 6px 4px 18px; }
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding-bottom: 30px; }
.ucard { padding: 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 14px 40px rgba(0, 0, 0, .28);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.uhead2 { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; background: linear-gradient(135deg, #5b8cff, #9b6bff); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); flex: none; }
.avatar.adm { background: linear-gradient(135deg, #ff8a5b, #ff4f8b); }
.uid .uname { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; } .uid .chip { margin-right: 6px; }
.ustats2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.ustat { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); min-width: 0; }
.ustat b { display: block; font-size: 1.05rem; } .ustat span { color: var(--dim); font-size: .82rem; }
.dform .field2 { margin-bottom: 14px; } .dform .btn.small { margin-top: 8px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rolecard { text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 2px solid transparent; color: inherit; display: grid; gap: 4px; }
.rolecard span { color: var(--dim); font-size: .85rem; line-height: 1.35; font-weight: 400; }
.rolecard.on { border-color: #fff; background: rgba(255, 255, 255, .14); }
.sheet.small .iconbtn.close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 760px) { .ugrid { grid-template-columns: 1fr; } .roles { grid-template-columns: 1fr; } }
