/* Hotfix 18.10.2026 (Samsung Tizen 5 = Chromium 63): "inset" kennt Chrome erst ab 87 - vor jedem inset stehen deshalb top/right/bottom/left (sonst hatte z. B. der Player die Hoehe 0: nur Ton, kein Bild). */
/**
 * NOFLIX Web-Player - spiegelt player/PlayerControls.kt (siehe player.js
 * für die Verdrahtung). Eigene Datei statt Teil von style.css: eigenständig
 * genug, und nur auf Seiten mit Wiedergabe gebraucht.
 *
 * TV/breit vs. Handy/schmal: PlayerControls.kt unterscheidet nach
 * "spielerKompakt" (kleinere Bildschirmseite < 400dp) - hier über eine
 * Media-Query auf die kleinere Fensterseite nachgebaut.
 */

body.nx-player-open { overflow: hidden; }
/* Mauszeiger (2.5.1-beta7): weg, sobald die Steuerleiste ausgeblendet ist - wie in ueblichen Playern; Samsung/LG
   zusaetzlich nach 3 s ohne Bewegung (nx-zeiger-weg, player.js) */
.nx-player.nx-controls-versteckt, .nx-player.nx-controls-versteckt *,
.nx-player.nx-zeiger-weg, .nx-player.nx-zeiger-weg * { cursor: none !important; }

.nx-player {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    background: #000;
    z-index: 500;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    /* Verhindert, dass der Browser einen Doppel-Tipp (siehe Doppeltipp-
       Spulen in player.js) als Zoomen der Seite deutet - ohne das kaempfte
       ein schneller zweiter Tipp links/rechts mit der Browser-eigenen
       Zoom-Geste statt zuverlaessig zu spulen. */
    touch-action: manipulation;
}

.nx-player-video, .nx-player-video video {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}
/* Bildformat "Zoom" (beta26, spiegelt Format.ZOOM der App): fuellt den
   Bildschirm, Raender beschnitten. Fest eingebaute Kinobalken nimmt
   player.js::balkenZoom zusaetzlich per transform weg. */
.nx-player-video { overflow: hidden; }
/* Samsung/LG (2.5.1-beta6): Videobereich ohne eigenen Grund - der Fernseher legt das Bild in seiner Hardware-Ebene
   darunter; der schwarze Grund liegt weiter an .nx-player */
.nx-player.nx-tv-ebene .nx-player-video, .nx-player.nx-tv-ebene .nx-player-video video { background: transparent; }
.nx-player.nx-format-zoom .nx-player-video video { object-fit: cover; }

/* Doppeltipp-Spulen (Nutzerwunsch, 2026-09-22): kurz aufblitzende Anzeige
   links/rechts, links/rechts Drittel des Bilds, waehrend das Steuer-Overlay
   selbst unveraendert aus- oder eingeblendet bleiben kann. */
.nx-tipp-anzeige {
    position: absolute;
    top: 50%;
    width: 33%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    z-index: 15;
}
/* Wischgesten (App v5.4.1-beta15): Abdunkeln nur des Bildes, Anzeige wie WischAnzeigeOverlay der App */
.nx-dimmer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #000; opacity: 0; pointer-events: none; }
/* Minimalistischer Player (2.3.2-beta32): nur Zeitleiste, Play/Pause, vorige/naechste Folge (+ Kopfzeile mit Zurueck) */
.nx-player.nx-minimal .nx-symbolleiste, .nx-player.nx-minimal .nx-zeit-reihe,
.nx-player.nx-minimal .nx-spul-knopf, .nx-player.nx-minimal .nx-skip-knopf { display: none !important; }
/* Pausen-Abdunkeln (2.3.2-beta30): langsam dunkel, bei Bedienung sofort hell (Uebergang nur in der An-Klasse) */
.nx-pausen-dimmer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.nx-pausen-dimmer.nx-pausen-dimmer-an { opacity: .6; transition: opacity 1.2s ease; }
.nx-wisch-balken, .nx-wisch-tempo {
    position: absolute; z-index: 16; pointer-events: none; opacity: 0; transition: opacity .32s ease;
    background: rgba(20,20,20,.8); color: #fff; display: flex; align-items: center;
}
.nx-wisch-balken { top: 50%; left: 14%; transform: translate(-50%, -50%); flex-direction: column; gap: 12px; padding: 16px 14px; border-radius: 26px; }
.nx-wisch-balken.nx-wisch-rechts { left: 86%; }
.nx-wisch-balken .material-icons, .nx-wisch-tempo .material-icons { font-size: 26px; }
.nx-wisch-spur { position: relative; width: 8px; height: 132px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; }
.nx-wisch-spur i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #fff; }
.nx-wisch-tempo { top: 19%; left: 50%; transform: translate(-50%, -50%); gap: 10px; padding: 12px 20px; border-radius: 22px; }
.nx-wisch-text { font-size: calc(15px * var(--fs, 1)); font-weight: 600; white-space: nowrap; }
.nx-wisch-tempo .nx-wisch-text { font-size: calc(17px * var(--fs, 1)); }
.nx-wisch-balken.nx-wisch-sichtbar, .nx-wisch-tempo.nx-wisch-sichtbar { opacity: 1; transition: opacity .12s ease; }
.nx-tipp-anzeige.nx-tipp-links { left: 0; }
.nx-tipp-anzeige.nx-tipp-rechts { right: 0; }
.nx-tipp-anzeige.nx-tipp-aktiv { animation: nx-tipp-blitz .7s ease; }
/* Spul-Serie (mehrere Tipps hintereinander): stehen lassen, dann ausblenden. */
.nx-tipp-anzeige { transition: opacity .25s ease; }
.nx-tipp-anzeige.nx-tipp-halten { opacity: 1; animation: nx-tipp-rein .18s ease; }
@keyframes nx-tipp-rein { from { transform: translateY(-50%) scale(.85); } to { transform: translateY(-50%) scale(1); } }
.nx-tipp-anzeige .material-icons { font-size: 40px; }
.nx-tipp-anzeige span:last-child { font-size: calc(15px * var(--fs, 1)); font-weight: 700; }
@keyframes nx-tipp-blitz {
    0% { opacity: 0; transform: translateY(-50%) scale(.85); }
    18% { opacity: 1; transform: translateY(-50%) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.nx-spinner {
    position: absolute;
    top: 50%; left: 50%;
    width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    /* Drehende OK-Hand (App v5.2.3-beta2) - Drehpunkt = Ring-Mitte = Bildmitte */
    transform-origin: 50% 50%;
    animation: nx-spin 1.1s linear infinite;
}
.nx-spinner .ok-hand-lader { width: 100%; height: 100%; display: block; }
.ok-hand-lader .ok-hand-haupt { fill: var(--rot, #E50914); }
.ok-hand-lader .ok-hand-detail { fill: #8E0710; }
@supports (color: color-mix(in srgb, red, red)) { .ok-hand-lader .ok-hand-detail { fill: color-mix(in srgb, var(--rot, #E50914) 62%, #000); } }
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* Zurueck-Pfeil oben links neben dem Titel (2.2.1-beta1, vorher X oben rechts) */
.nx-schliessen {
    position: absolute;
    top: 26px; top: calc(26px + env(safe-area-inset-top, 0px));
    left: 12px; left: calc(12px + env(safe-area-inset-left, 0px));
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.35);
    color: #fff;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity .2s ease;
    /* Ohne das hier blieb der Knopf UNSICHTBAR trotzdem klickbar/antippbar -
       anders als bei .nx-mitte/.nx-bottom (siehe dort), die das schon
       richtig machten. Gefunden beim Nachforschen des Touch-Overlay-
       Nutzerberichts, 2026-09-22 - ein Antippen genau dort haette den
       Player unsichtbar geschlossen, ohne dass je ein Knopf zu sehen war. */
    pointer-events: none;
}
.nx-controls-sichtbar .nx-schliessen { opacity: 1; pointer-events: auto; }
.nx-schliessen .material-icons { font-size: calc(28px * var(--fs, 1)); }
.nx-schliessen:hover, .nx-schliessen:focus { background: var(--rot); outline: none; }
/* Hochformat am Handy (beta58, Nutzerbericht iPhone): der Knopf sass 20 px unter dem Rand - mitten in der
   Statusleiste neben der Dynamic Island - und war kaum zu treffen. Jetzt unter der Aussparung auf Hoehe von
   Titel und Uhr, und groesser. Querformat bleibt wie es war. */
@media (orientation: portrait) and (max-width: 640px) {
    .nx-schliessen {
        top: 14px; top: calc(14px + env(safe-area-inset-top, 0px));
        left: 8px; left: calc(8px + env(safe-area-inset-left, 0px));
        width: 48px; height: 48px;
    }
    .nx-schliessen .material-icons { font-size: calc(30px * var(--fs, 1)); }
    .nx-top { padding-left: 64px; padding-left: calc(64px + env(safe-area-inset-left, 0px)); }
    .nx-top-right { margin-right: 0; }
}

/* ---- oberer Vorspann ---- */
.nx-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 56px;
    /* Sicherheitsabstand zur Notch/Dynamic Island - im Querformat sitzt sie
       seitlich genau dort, wo Titel/Schliessen-Knopf liegen (2026-09-20,
       per Code-Audit gefunden). Faellt auf 0px zurueck, wo es keine gibt. */
    padding-top: calc(32px + env(safe-area-inset-top, 0px));
    /* links Platz fuer den Zurueck-Pfeil (12 px Rand + 44 px + 12 px Abstand) */
    padding-left: calc(68px + env(safe-area-inset-left, 0px));
    padding-right: 56px; padding-right: calc(56px + env(safe-area-inset-right, 0px));
    background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.nx-controls-sichtbar .nx-top { opacity: 1; }

.nx-titel { font-size: calc(26px * var(--fs, 1)); font-weight: 700; }
.nx-subtitel { font-size: calc(16px * var(--fs, 1)); color: #d8d8de; margin-top: 4px; }
.nx-nerd-zeile { font-size: calc(15px * var(--fs, 1)); color: #b6b6c2; margin-top: 6px; }
.nx-nerd-zeile:nth-of-type(1) { margin-top: 10px; }
/* Nerd-Stats (beta23): gruen = Direct Play, gelb = FFmpeg im Browser, rot = vom Server umgerechnet */
.nx-nerd-direkt { color: #4cd964; }
.nx-nerd-ffmpeg { color: #ffd34d; }
.nx-nerd-umgerechnet { color: #ff6b6b; }
.nx-nerd-remux { color: #5ab0ff; }

.nx-top-right { text-align: right; flex-shrink: 0; }
.nx-uhr { font-size: calc(22px * var(--fs, 1)); font-weight: 700; }
.nx-ende { font-size: calc(14px * var(--fs, 1)); color: #b6b6c2; margin-top: 2px; }

/* ---- Mitte: Sprung-/Play-Reihe ---- */
.nx-mitte {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.nx-controls-sichtbar .nx-mitte { opacity: 1; pointer-events: auto; }

.nx-mitte-knopf {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.nx-mitte-knopf .material-icons { font-size: 22px; }
.nx-mitte-knopf:hover, .nx-mitte-knopf:focus { background: var(--rot); outline: none; }
.nx-mitte-knopf-gross { width: 56px; height: 56px; }
.nx-mitte-knopf-gross .material-icons { font-size: 30px; }
.nx-mitte-knopf[hidden] { display: none; }

/* ---- Skip-Intro/Abspann ---- */
.nx-skip-knopf {
    position: absolute;
    right: 56px; bottom: 140px;
    background: rgba(26,26,34,.8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: calc(17px * var(--fs, 1));
    font-weight: 600;
    cursor: pointer;
    z-index: 15;
}
.nx-skip-knopf:hover, .nx-skip-knopf:focus { background: var(--rot); outline: none; }

/* ---- Nächste Folge in N s (an der Stelle des Skip-Knopfs, App v5.5.1-beta15) ---- */
.nx-naechste-karte {
    position: absolute;
    right: 56px; bottom: 140px;
    display: flex;
    align-items: center;
    z-index: 16;
}
.nx-naechste-karte[hidden] { display: none; }
.nx-naechste-karte button {
    background: rgba(26,26,34,.8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: calc(17px * var(--fs, 1));
    font-weight: 600;
    cursor: pointer;
}
/* margin statt gap: Flexbox-gap kann Chromium 56 (Tizen 4) nicht */
.nx-naechste-karte button + button { margin-left: 10px; }
.nx-naechste-karte button:hover, .nx-naechste-karte button:focus { background: var(--rot); outline: none; }

/* ---- unterer Bereich ---- */
.nx-bottom {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 80px 56px 20px;
    /* Sicherheitsabstand zum Home-Indikator im Quer-/Inline-Modus (nur dort
       ueberhaupt relevant - im nativen iOS-Vollbild uebernimmt Apples
       eigene Leiste, siehe iosVollbildFallback() in player.js). Faellt auf
       0px zurueck, wo es keine Notch/keinen Home-Indikator gibt
       (2026-09-20, per Code-Audit gefunden). */
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    padding-left: 56px; padding-left: calc(56px + env(safe-area-inset-left, 0px));
    padding-right: 56px; padding-right: calc(56px + env(safe-area-inset-right, 0px));
    background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.nx-controls-sichtbar .nx-bottom { opacity: 1; pointer-events: auto; }

/* ---- Kompatibilitaets-Rueckmeldung ("Quelldatei", Nutzerwunsch,
   2026-09-22) - eigene Karte oberhalb der Symbolleiste, Sichtbarkeit wird
   in player.js::starteQuelle() gesteuert (hidden-Attribut), hier nur die
   Optik. Erbt Ein-/Ausblenden von .nx-bottom (ist ein Kind davon), braucht
   deshalb keine eigene opacity/pointer-events-Logik. */
.nx-kompat-karte {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    max-width: 380px;
}
.nx-kompat-frage { margin: 0 0 8px; font-size: calc(13px * var(--fs, 1)); color: #d8d8de; }
.nx-kompat-gruppe { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.nx-kompat-gruppe:last-of-type { margin-bottom: 0; }
/* min-width statt width (2.2.3-beta5): "Obraz"/"Dźwięk" sind breiter als "Bild"/"Ton" */
.nx-kompat-label { min-width: 34px; flex-shrink: 0; font-size: calc(13px * var(--fs, 1)); color: #b6b6c2; }
.nx-kompat-knopf {
    flex: 1;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: calc(12.5px * var(--fs, 1));
    cursor: pointer;
}
.nx-kompat-knopf:hover, .nx-kompat-knopf:focus { border-color: var(--rot); outline: none; }
.nx-kompat-knopf.nx-kompat-aktiv { background: var(--rot); border-color: var(--rot); font-weight: 600; }
.nx-kompat-danke { margin: 8px 0 0; font-size: calc(12px * var(--fs, 1)); color: #4cd964; }

.nx-symbolleiste {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    min-height: 40px;
}
.nx-sym-gruppe { display: flex; align-items: center; gap: 12px; }
.nx-sym-gruppe:first-child { flex: 1; }
.nx-sym-gruppe:last-child { flex: 1; justify-content: flex-end; }
.nx-sym-mitte { position: absolute; left: 50%; transform: translateX(-50%); }

.nx-sym-knopf {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.nx-sym-knopf .material-icons { font-size: 22px; }
.nx-sym-knopf:hover, .nx-sym-knopf:focus { background: var(--rot); outline: none; }
.nx-sym-knopf[hidden] { display: none; }
.nx-hq { font-weight: 700; font-size: calc(12px * var(--fs, 1)); }

.nx-seek-wrap { position: relative; margin-bottom: 10px; }
/* touch-action:none noetig, sonst nimmt der Browser ein Ziehen auf der
   Leiste selbst als Seiten-Scroll/-Zoom statt es als Scrub-Geste
   durchzureichen (Nutzerwunsch: mit dem Finger frei auf der Leiste spulen). */
.nx-seek { padding: 10px 0; cursor: pointer; touch-action: none; }
.nx-seek-track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.33);
    transition: height .15s ease;
}
.nx-seek:hover .nx-seek-track, .nx-seek:focus .nx-seek-track { height: 10px; outline: none; }
/* Gepufferter Bereich (2.3.2-beta24): heller als die Leiste, unter der roten Fuellung */
.nx-seek-puffer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.nx-seek-puffer > i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255,255,255,.45); }
.nx-seek-puffer > i[hidden] { display: none; }
.nx-seek-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 0%;
    background: var(--rot);
    border-radius: 3px;
}
.nx-seek-griff {
    position: absolute; top: 50%; left: 0%;
    width: 0; height: 0;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .15s ease, height .15s ease;
}
.nx-seek:hover .nx-seek-griff, .nx-seek:focus .nx-seek-griff { width: 16px; height: 16px; }

.nx-trickplay {
    position: absolute;
    bottom: 26px;
    width: 240px;
    pointer-events: none;
}
.nx-trickplay-bild {
    width: 240px; height: 135px;
    border-radius: 8px;
    background: #16161c;
    display: block;
}
/* Kapitelmarken (beta54, wie App PlayerControls.kt): 2 px, halbtransparent weiss, ueber der Fuellung */
.nx-kapitel { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.6); pointer-events: none; }
.nx-trickplay-kapitel {
    position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); box-sizing: border-box;
    background: rgba(0,0,0,.8); border-radius: 4px; padding: 3px 8px; font-size: calc(12px * var(--fs, 1));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-trickplay-zeit {
    position: absolute;
    right: 8px; bottom: 8px;
    background: rgba(0,0,0,.8);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: calc(13px * var(--fs, 1));
}

.nx-zeit-reihe {
    display: flex;
    justify-content: space-between;
    font-size: calc(14px * var(--fs, 1));
    color: #d8d8de;
}

/* ---- Menü (Tonspur/Untertitel/Details/Tempo/Qualität) ---- */
.nx-menu-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    background: rgba(0,0,0,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}
.nx-menu-panel {
    width: 560px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    max-height: calc(80vh / var(--nx-zoom, 1)); /* zoom (Fernseher, Anzeigegroesse): vh zaehlt mal zoom (beta99) */
    overflow-y: auto;
    background: rgba(26,26,34,.95);
    border-radius: 14px;
    padding: 28px;
}
.nx-menu-panel h2 { margin: 0 0 16px; font-size: calc(20px * var(--fs, 1)); }
.nx-menu-overview { color: #d8d8de; font-size: calc(14px * var(--fs, 1)); margin-bottom: 16px; }
/* Lange Inhaltsangabe (beta54, Nutzerbericht): scrollen statt mitten in der Zeile abschneiden - fuenf ganze
   Zeilen sichtbar, Mausrad/Finger direkt darin, Fernbedienung per Hoch/Runter (keyHandler) */
.nx-menu-panel .nx-menu-overview { line-height: 1.45; max-height: calc(1.45em * 5); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
/* Zeilen im Stil des Kontextmenüs (App PlayerMenues.kt MenueZeile, v5.2.6-beta30):
   Häkchen bei der aktiven Wahl, Fokus/gedrückt weiß mit dunkler Schrift */
.nx-menu-zeile {
    display: flex; align-items: center; gap: 12px;
    width: 100%; box-sizing: border-box; text-align: left;
    padding: 12px 14px; border: 0; border-radius: 12px;
    background: transparent; color: rgba(255,255,255,.82);
    font-family: inherit; font-size: calc(16px * var(--fs, 1)); cursor: pointer;
}
.nx-menu-zeile-aktiv { color: #fff; font-weight: 600; }
.nx-menu-zeile:hover, .nx-menu-zeile:focus { background: #fff; color: #111114; font-weight: 600; outline: none; }
.nx-menu-haken { flex: 0 0 20px; width: 20px; font-size: calc(20px * var(--fs, 1)); }
.nx-menu-text { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Kapitel-Liste (App v5.3.1-beta18): Startzeit rechts, gedaempft, im Fokus dunkel */
.nx-menu-zeit { flex: 0 0 auto; margin-left: 8px; font-size: calc(14px * var(--fs, 1)); font-weight: 400; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.nx-menu-zeile:hover .nx-menu-zeit, .nx-menu-zeile:focus .nx-menu-zeit { color: rgba(17,17,20,.7); }
.nx-menu-schliessen { margin-top: 8px; color: #d8d8de; }
/* Karte direkt über dem Knopf - die Leiste bleibt darunter sichtbar */
.nx-menu-overlay.nx-menu-ueber-knopf { background: transparent; display: block; }
.nx-menu-panel.nx-menu-karte {
    position: absolute; max-width: none; padding: 8px; box-sizing: border-box; overflow-y: auto;
    background: rgba(18,18,22,.95); border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
    opacity: 0; transform: scale(.94); transform-origin: 0 100%;
    transition: opacity .17s ease, transform .17s ease;
}
.nx-menu-panel.nx-menu-karte.nx-menu-rechts { transform-origin: 100% 100%; }
.nx-menu-panel.nx-menu-karte.nx-menu-sichtbar { opacity: 1; transform: none; }
.nx-menu-titel { color: rgba(255,255,255,.6); font-size: calc(13px * var(--fs, 1)); font-weight: 600; letter-spacing: 1px; padding: 8px 14px 6px; }
.nx-menu-trenner { height: 1px; background: rgba(255,255,255,.08); margin: 6px 10px; }
.nx-menu-hinweis { color: rgba(255,255,255,.6); font-size: calc(14px * var(--fs, 1)); margin: 0 14px 6px; }
.nx-menu-spalten { display: flex; gap: 6px; }
.nx-menu-spalte { flex: 1; min-width: 0; }
/* Ton-Versatz (−/+) */
.nx-versatz { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; }
.nx-versatz-text { flex: 1; min-width: 0; }
.nx-versatz-kopf { color: #fff; font-size: calc(16px * var(--fs, 1)); font-weight: 600; }
.nx-versatz-unter { color: rgba(255,255,255,.6); font-size: calc(13px * var(--fs, 1)); margin-top: 1px; }
.nx-versatz-knopf {
    flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.nx-versatz-knopf .material-icons { font-size: 22px; }
.nx-versatz-knopf:hover, .nx-versatz-knopf:focus { background: #fff; color: #111114; outline: none; }
.nx-versatz-knopf[hidden] { display: none; }
/* Aktionszeile im Menue (App MenueAktionsZeile, "Weitere Untertitel suchen …"): Symbol, Text, Erklaerzeile */
.nx-menu-aktion-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-menu-aktion-kopf { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-menu-aktion-unter { color: rgba(255,255,255,.62); font-size: calc(13px * var(--fs, 1)); font-weight: 400; }
.nx-menu-aktion:hover .nx-menu-aktion-kopf, .nx-menu-aktion:focus .nx-menu-aktion-kopf { color: #111114; }
.nx-menu-aktion:hover .nx-menu-aktion-unter, .nx-menu-aktion:focus .nx-menu-aktion-unter { color: rgba(17,17,20,.62); }
/* Untertitel aus dem Netz (App v5.4.1-beta17, PlayerMenues.kt UntertitelSucheInhalt): Sprach-Chips, Stand, Treffer */
.nx-ut-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 6px 6px; scrollbar-width: none; }
.nx-ut-chips::-webkit-scrollbar { display: none; }
.nx-ut-chip {
    flex: 0 0 auto; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
    background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: calc(14px * var(--fs, 1));
}
.nx-ut-chip-aktiv { background: rgba(255,255,255,.24); font-weight: 600; }
.nx-ut-chip:hover, .nx-ut-chip:focus { background: #fff; color: #111114; font-weight: 600; outline: none; }
.nx-ut-stand { display: flex; align-items: center; gap: 8px; padding: 8px 14px 2px; color: rgba(255,255,255,.65); font-size: calc(13px * var(--fs, 1)); }
.nx-ut-stand-fehler { color: #ff8a80; }
.nx-ut-kreisel {
    flex: 0 0 auto; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.25); border-top-color: rgba(255,255,255,.8); animation: nx-ut-dreh .8s linear infinite;
}
@keyframes nx-ut-dreh { to { transform: rotate(360deg); } }
.nx-ut-frei { padding: 0 14px 4px; color: rgba(255,255,255,.45); font-size: calc(12px * var(--fs, 1)); }
.nx-ut-fuss { padding: 6px 14px; }
.nx-ut-treffer {
    display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; text-align: left;
    padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: #fff; font-family: inherit; cursor: pointer;
}
.nx-ut-treffer:hover, .nx-ut-treffer:focus { background: #fff; color: #111114; outline: none; }
.nx-ut-gesperrt { opacity: .5; }
.nx-ut-treffer-symbol { flex: 0 0 20px; display: flex; align-items: center; justify-content: center; }
.nx-ut-treffer-symbol .material-icons { font-size: 20px; opacity: .8; }
.nx-ut-treffer-symbol .nx-ut-kreisel { width: 18px; height: 18px; }
.nx-ut-treffer:hover .nx-ut-kreisel, .nx-ut-treffer:focus .nx-ut-kreisel { border-color: rgba(17,17,20,.25); border-top-color: #111114; }
.nx-ut-treffer-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nx-ut-treffer-name { font-size: calc(15px * var(--fs, 1)); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nx-ut-treffer-details { font-size: calc(13px * var(--fs, 1)); opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-ut-marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nx-ut-marke { font-size: calc(11px * var(--fs, 1)); font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.nx-ut-marke-gruen { color: #34a853; background: rgba(52,168,83,.16); }
.nx-ut-marke-orange { color: #f29900; background: rgba(242,153,0,.16); }
.nx-ut-marke-grau { color: #9aa0a6; background: rgba(154,160,166,.16); }
/* Per KI uebersetzt (App v5.6.1-beta4, MARKE_KI): lila Marke hinter dem Namen in der Spurliste; im Fokus dunkler */
.nx-ut-marke-ki { color: #9c8cff; background: rgba(156,140,255,.18); }
.nx-menu-zeile .nx-ut-marke-ki { flex: 0 0 auto; margin-left: 8px; }
.nx-menu-zeile:hover .nx-ut-marke-ki, .nx-menu-zeile:focus .nx-ut-marke-ki { color: #5b45d6; background: rgba(91,69,214,.14); }
/* Per KI uebersetzen: Vorlage unter den Sprachen, laufender Balken in KI-Lila (ohne Flexbox-gap, Tizen 4) */
.nx-ut-ki-vorlage { padding: 6px 14px 2px; }
.nx-ut-ki-balken { position: relative; height: 3px; margin: 6px 14px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.12); }
.nx-ut-ki-balken span { position: absolute; top: 0; bottom: 0; left: 0; width: 35%; border-radius: 2px; background: #9c8cff; animation: nx-ut-ki-lauf 1.4s ease-in-out infinite; }
@keyframes nx-ut-ki-lauf { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 100% { -webkit-transform: translateX(290%); transform: translateX(290%); } }
/* HDR aufhellen (beta80): Regler 0-100 % in der Menue-Karte, Farben wie die Zeitleiste */
.nx-hdr-regler { padding: 4px 14px 10px; }
.nx-hdr-kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.nx-hdr-wert { color: #fff; font-size: calc(20px * var(--fs, 1)); font-weight: 700; font-variant-numeric: tabular-nums; }
.nx-hdr-wort { color: rgba(255,255,255,.6); font-size: calc(14px * var(--fs, 1)); min-width: 0; }
.nx-hdr-schieber {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; height: 32px; margin: 0; padding: 0;
    background: transparent; cursor: pointer; touch-action: pan-y;
}
.nx-hdr-schieber::-webkit-slider-runnable-track {
    height: 6px; border-radius: 3px;
    background: linear-gradient(to right, var(--rot, #E50914) var(--wert, 0%), rgba(255,255,255,.33) var(--wert, 0%));
}
.nx-hdr-schieber::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.33); }
.nx-hdr-schieber::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--rot, #E50914); }
.nx-hdr-schieber::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; margin-top: -7px; border: 0; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.nx-hdr-schieber::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.nx-hdr-schieber:focus { outline: none; }
.nx-hdr-wahl .nx-menu-zeile { padding: 10px 12px; gap: 8px; }
.nx-hdr-hinweis { font-size: calc(13px * var(--fs, 1)); line-height: 1.35; margin-top: 4px; }
/* :focus-visible getrennt - alte Engines verwerfen sonst die ganze Regel samt Tasten-Rueckfall (2.2.2-beta11, Pruefung 15.10.) */
.nx-hdr-schieber:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255,255,255,.35); transform: scale(1.15); }
[data-eingabe="taste"] .nx-hdr-schieber:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255,255,255,.35); transform: scale(1.15); }
.nx-hdr-schieber:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
[data-eingabe="taste"] .nx-hdr-schieber:focus::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }

.nx-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-bottom: 16px; }
.nx-info-zeile { display: flex; gap: 8px; font-size: calc(13px * var(--fs, 1)); }
.nx-info-label { color: #b6b6c2; width: 90px; flex-shrink: 0; }
.nx-info-wert { color: #fff; }

.nx-fehler { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; }

/* Kurzer, sich selbst ausblendender Hinweis (z.B. Ton-Wache bei "Quelldatei") */
.nx-ton-hinweis {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.82); color: #fff; padding: 10px 18px; border-radius: 999px;
    font-size: calc(14px * var(--fs, 1)); z-index: 40; opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.nx-ton-hinweis.nx-ton-hinweis-sichtbar { opacity: 1; }

/* Bildformat-Hinweis (spiegelt FormatHinweisAnzeige.kt): Karte im oberen
   Bilddrittel - in der Mitte liegen am Handy Play/Pause. */
.nx-format-hinweis {
    position: absolute; top: 25%; left: 50%; z-index: 40;
    width: max-content; max-width: calc(100% - 32px); max-width: min(520px, calc(100% - 32px)); box-sizing: border-box;
    display: flex; align-items: center; gap: 14px;
    background: rgba(20, 20, 20, .85); border-radius: 22px; padding: 14px 22px;
    pointer-events: none;
    opacity: 0; visibility: hidden; transform: translate(-50%, -50%);
    transition: opacity .26s ease, visibility 0s linear .26s;
}
/* Rein: einblenden + leicht wachsen, raus: nur ausblenden (wie in der App) */
.nx-format-hinweis.nx-sichtbar {
    opacity: 1; visibility: visible;
    transition: opacity .16s ease;
    animation: nx-format-rein .2s ease;
}
@keyframes nx-format-rein {
    from { transform: translate(-50%, -50%) scale(.92); }
    to { transform: translate(-50%, -50%); }
}
.nx-format-hinweis .material-icons { font-size: 30px; color: #fff; flex-shrink: 0; }
.nx-format-titel { font-size: calc(19px * var(--fs, 1)); font-weight: 700; color: #fff; }
.nx-format-text { font-size: calc(14px * var(--fs, 1)); line-height: 18px; color: rgba(255, 255, 255, .75); }

/* ---- Handy/schmales Format: kleinere Abstände/Schrift, spiegelt
   "spielerKompakt" (kleinere Fensterseite < 400px) ---- */
@media (max-width: 400px), (max-height: 400px) {
    .nx-top {
        padding: 16px 24px;
        padding-top: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px));
        padding-left: 58px; padding-left: calc(58px + env(safe-area-inset-left, 0px));
        padding-right: 24px; padding-right: calc(24px + env(safe-area-inset-right, 0px));
    }
    .nx-schliessen { top: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); left: 8px; left: calc(8px + env(safe-area-inset-left, 0px)); width: 42px; height: 42px; }
    .nx-titel { font-size: calc(18px * var(--fs, 1)); }
    .nx-subtitel { font-size: calc(13px * var(--fs, 1)); }
    .nx-uhr { font-size: calc(16px * var(--fs, 1)); }
    .nx-ende { font-size: calc(11px * var(--fs, 1)); }
    .nx-top-right { margin-right: 0; }
    .nx-bottom {
        padding: 50px 24px 10px;
        padding-bottom: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding-left: 24px; padding-left: calc(24px + env(safe-area-inset-left, 0px));
        padding-right: 24px; padding-right: calc(24px + env(safe-area-inset-right, 0px));
    }
    /* Tippflaeche 44 px, sichtbar weiter 32 px: durchsichtiger Rand statt inset (2.2.2-beta11, Pruefung 15.10.) */
    .nx-mitte { gap: 12px; }
    .nx-mitte-knopf { width: 44px; height: 44px; box-sizing: border-box; border: 6px solid transparent; background-clip: padding-box; }
    /* :hover/:focus setzt per background-Kurzschreibweise den Clip zurueck (2.2.2-beta11, Pruefung 15.10.) */
    .nx-mitte-knopf:hover, .nx-mitte-knopf:focus { background-clip: padding-box; }
    .nx-mitte-knopf .material-icons { font-size: 18px; }
    .nx-mitte-knopf-gross { width: 44px; height: 44px; border-width: 0; }
    .nx-mitte-knopf-gross .material-icons { font-size: 24px; }
    .nx-skip-knopf, .nx-naechste-karte { right: 24px; bottom: 100px; }
    .nx-kompat-karte { max-width: 100%; padding: 8px 10px; }
    .nx-kompat-label { min-width: 28px; font-size: calc(12px * var(--fs, 1)); }
    .nx-kompat-knopf { padding: 6px 4px; font-size: calc(11px * var(--fs, 1)); }
}

/* Hochformat/schmal: Info-Knopf nicht mehr absolut in der Mitte (lag dort
   ueber der rechten Gruppe mit vier Knoepfen, Nutzerbericht 2026-09-27) -
   alle Gruppen nebeneinander, kleinere Knoepfe, gleichmaessig verteilt. */
@media (max-width: 520px) {
    /* Passen nicht alle Knoepfe nebeneinander (seit 2.0.1-beta2 mit "Szene merken" und "Was bisher geschah" bis zu
       12), bricht die rechte Gruppe in eine zweite Zeile um und bleibt rechtsbuendig - vorher ragte ein Knopf aus dem Bild */
    .nx-symbolleiste { justify-content: space-between; gap: 6px; flex-wrap: wrap; row-gap: 8px; }
    .nx-sym-gruppe:last-child { margin-left: auto; }
    .nx-sym-gruppe { gap: 6px; }
    .nx-sym-gruppe:first-child, .nx-sym-gruppe:last-child { flex: 0 0 auto; }
    .nx-sym-mitte { position: static; transform: none; }
    .nx-sym-knopf { width: 36px; height: 36px; }
    .nx-sym-knopf .material-icons { font-size: 20px; }
    .nx-hq { font-size: calc(11px * var(--fs, 1)); }
}
@media (max-width: 340px) {
    .nx-symbolleiste, .nx-sym-gruppe { gap: 3px; }
    .nx-sym-knopf { width: 32px; height: 32px; }
}
/* Handy hochkant: Zoom wuerde den Grossteil des Bildes abschneiden (und die
   Leiste haette keinen Platz) - Knopf weg, ganzes Bild; quer gilt Zoom wieder. */
@media (max-width: 520px) and (orientation: portrait) {
    .nx-format-knopf { display: none; }
    .nx-player.nx-format-zoom .nx-player-video video { object-fit: contain; transform: none !important; }
}

/* Miniplayer aktiv: Player-Bildschirm tritt zurueck, darunter laeuft die
   Web-App in einem eingebetteten Rahmen weiter (player.js::betretePip). */
.nx-player.nx-pip-aktiv { visibility: hidden; pointer-events: none; }
.nx-pip-rahmen {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%;
    border: 0; background: var(--bg, #0b0b0f); z-index: 1;
}
body.nx-pip-shell > *:not(.nx-pip-rahmen):not(.nx-player) { display: none !important; }

/* Schlaftimer (App v5.2.2-beta17): Knopf leuchtet, solange ein Timer laeuft;
   "Noch wach?" oben mittig, auch bei ausgeblendeter Leiste sichtbar. */
.nx-sym-knopf.nx-sym-aktiv .material-icons, .nx-mitte-knopf.nx-sym-aktiv .material-icons { color: #FFD54F; }
.nx-schlaf-frage {
    position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 45;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(26, 26, 34, .93); border-radius: 16px; padding: 18px 28px;
    max-width: calc(100% - 32px); box-sizing: border-box; text-align: center;
}
.nx-schlaf-titel { color: #fff; font-size: calc(20px * var(--fs, 1)); font-weight: 700; }
.nx-schlaf-text { color: #B0B0B8; font-size: calc(14px * var(--fs, 1)); }
.nx-schlaf-knopf {
    margin-top: 12px; padding: 10px 22px; border-radius: 10px; border: 2px solid transparent;
    background: #33333D; color: #fff; font: inherit; font-size: calc(16px * var(--fs, 1)); font-weight: 700; cursor: pointer;
}
/* :focus-visible als eigene Regel (2.2.2-beta11, Pruefung 15.10.) */
.nx-schlaf-knopf:hover, [data-eingabe="taste"] .nx-schlaf-knopf:focus { background: var(--rot, #E50914); border-color: #fff; outline: none; }
.nx-schlaf-knopf:focus-visible { background: var(--rot, #E50914); border-color: #fff; outline: none; }

/* ---------------------------------------------------------------------
   Untertitel im Browser (beta.noflix.app 1.59, player.js untertitelAktualisieren):
   Textebene ueber der Bildflaeche (Groesse/Lage rechnet player.js aus der
   echten Bildflaeche, auch bei schwarzen Balken), Hinweis beim Vorbereiten.
   Die Zeichenflaechen von JASSUB (ASS) und libpgs (PGS) legen sich selbst
   ueber das Bild.
   --------------------------------------------------------------------- */
.nx-ut-text {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    padding: 0 4%;
    text-align: center;
    pointer-events: none;
    color: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.28;
    text-shadow: 0 0 3px #000, 0 0 2px #000, 1px 1px 3px rgba(0, 0, 0, .9);
    transition: transform .2s ease;
}
.nx-ut-text span {
    background: rgba(0, 0, 0, .35);
    padding: .04em .32em;
    border-radius: .15em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
/* Untertitel-Aussehen (App v5.4.1-beta16): nur, wenn etwas verstellt ist - sonst gilt der Stil oben */
.nx-ut-text.nx-ut-stil { color: var(--ut-farbe, #fff); text-shadow: none; }
.nx-ut-text.nx-ut-stil span { background: transparent; border-radius: 0; padding: .02em .25em; }
.nx-ut-text.nx-ut-hg-schwarz span { background: #000; }
.nx-ut-text.nx-ut-hg-halb span { background: rgba(0, 0, 0, .6); }
.nx-ut-text.nx-ut-hg-umriss {
    text-shadow: -.05em -.05em 0 #000, 0 -.05em 0 #000, .05em -.05em 0 #000, .05em 0 0 #000,
                 .05em .05em 0 #000, 0 .05em 0 #000, -.05em .05em 0 #000, -.05em 0 0 #000;
}
.nx-ut-text.nx-ut-hg-schatten { text-shadow: .06em .06em .08em #000; }
/* Bedienleiste sichtbar: Untertitel etwas hoeher, damit sie nicht verdeckt werden */
.nx-controls-sichtbar .nx-ut-text { transform: translateY(-84px); }
.nx-player-video canvas { pointer-events: none; }
.nx-ut-hinweis {
    position: absolute;
    top: 72px; top: calc(72px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: calc(14px * var(--fs, 1));
    pointer-events: none;
    white-space: nowrap;
}
.nx-ut-hinweis[hidden] { display: none; }

/* ---------------------------------------------------------------------
   Playerspecs-Test (playerspecs.js, wie App "Playerspecs sammeln"): eigene
   Anzeigen ueber dem Player - dessen Bedienung ist im Test ausgeblendet.
   Die Buehne liegt ueber allem und faengt Klicks ab (kein Pausieren aus
   Versehen), Tasten nimmt playerspecs.js selbst.
   --------------------------------------------------------------------- */
.nx-player.nx-test .nx-top, .nx-player.nx-test .nx-mitte, .nx-player.nx-test .nx-bottom,
.nx-player.nx-test .nx-schliessen { display: none !important; }
.ps-buehne { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2147483000; color: #fff; transition: background .2s ease; }
.ps-buehne.ps-dunkel { background: rgba(0,0,0,.74); }
.ps-buehne p { margin: 0 0 10px; }
.ps-karte {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100vh / var(--nx-zoom, 1) - 32px); overflow: auto; box-sizing: border-box;
    background: rgba(18,18,22,.97); border-radius: 18px; padding: 24px 26px; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.ps-karte h2 { margin: 0 0 12px; font-size: calc(24px * var(--fs, 1)); line-height: 1.2; }
.ps-karte p { line-height: 1.45; color: #e6e6ea; font-size: calc(15px * var(--fs, 1)); }
.ps-marke { color: var(--rot, #e50914); font-weight: 700; font-size: calc(14px * var(--fs, 1)) !important; margin-bottom: 6px !important; }
.ps-buehne .ps-dim { color: #a8a8b4; font-size: calc(13px * var(--fs, 1)); }
.ps-reihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.ps-knopf {
    background: rgba(255,255,255,.13); color: #fff; border: 2px solid transparent; border-radius: 10px;
    padding: 9px 18px; font: inherit; font-size: calc(15px * var(--fs, 1)); font-weight: 600; cursor: pointer;
}
.ps-knopf:hover { border-color: var(--rot, #e50914); }
/* Fokus per Fernbedienung (beta51): weisser Ring aussen - der rote Rand war auf dem roten Hauptknopf
   ("Starten", "Schliessen") unsichtbar, am Fernseher sah man nicht, was ausgewaehlt ist */
.ps-knopf:focus { outline: 3px solid #fff; outline-offset: 3px; }
.ps-knopf.ps-primaer { background: var(--rot, #e50914); }
.ps-knopf.ps-gewaehlt { background: #fff; color: #000; }
.ps-status, .ps-live { position: absolute; top: 16px; background: rgba(0,0,0,.74); border-radius: 12px; padding: 12px 14px; box-sizing: border-box; }
.ps-status { left: 16px; width: 380px; max-width: calc(100vw - 32px); }
.ps-status p { margin: 0 0 3px; }
.ps-format { font-weight: 700; font-size: calc(18px * var(--fs, 1)); }
.ps-titel { color: rgba(255,255,255,.8); font-size: calc(14px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-stand { font-size: calc(15px * var(--fs, 1)); margin-top: 6px !important; }
.ps-balken { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; margin: 8px 0 6px; overflow: hidden; }
.ps-balken i { display: block; height: 100%; background: var(--rot, #e50914); transition: width .3s linear; }
.ps-live { right: 16px; width: 300px; max-width: calc(100vw - 32px); font-size: calc(13px * var(--fs, 1)); }
.ps-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.ps-zeile span:first-child { color: #a8a8b4; }
.ps-zeile span:last-child { text-align: right; }
.ps-auffaellig { color: #FFB04D; }
.ps-fragen {
    position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 10px 18px; background: rgba(0,0,0,.74); border-radius: 14px; padding: 10px 14px; max-width: calc(100vw - 32px); box-sizing: border-box;
}
.ps-frage { display: inline-flex; align-items: center; gap: 8px; font-size: calc(15px * var(--fs, 1)); }
.ps-hinweis { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); background: rgba(0,0,0,.86); padding: 10px 16px; border-radius: 8px; }
.ps-ladezeile { display: flex; align-items: center; gap: 12px; font-size: calc(17px * var(--fs, 1)); }
.ps-lader { width: 34px; height: 34px; display: inline-flex; flex-shrink: 0; }
.ps-lader svg { width: 100%; height: 100%; }
.ps-ergebnisse { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 5px; font-size: calc(14px * var(--fs, 1)); }
/* Lange Ergebnisliste (beta51): nur die Liste scrollt, Ueberschrift und Knopf bleiben sichtbar - am
   Fernseher (960 x 540) rutschte "Schliessen" sonst unter den Rand der Karte */
.ps-karte { display: flex; flex-direction: column; }
.ps-karte > * { flex-shrink: 0; }
.ps-karte > .ps-ergebnisse { flex: 0 1 auto; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.ps-ergebnis { display: flex; justify-content: space-between; gap: 12px; }
.ps-ergebnis span:last-child { color: #c8c8d0; text-align: right; }
.ps-gut { color: #46D369; }
.ps-schlecht { color: #E5484D; }
@media (max-width: 640px) {
    .ps-live { top: auto; bottom: 96px; left: 16px; right: 16px; width: auto; }
    .ps-status { width: auto; right: 16px; }
}

/* Cover oben links neben der Schrift (2.3.2-beta13, beta14 um 40 % groesser) - der Zurueck-Pfeil bleibt, wo er war */
.nx-top-links { display: flex; align-items: flex-start; min-width: 0; }
.nx-top-links .nx-top-left { min-width: 0; }
.nx-cover {
    display: block; flex: none; width: 106px; height: 160px; margin-right: 20px; object-fit: cover;
    border-radius: 8px; background: rgba(255,255,255,.08); box-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.nx-cover[hidden] { display: none; }
@media (max-width: 400px), (max-height: 400px) {
    .nx-cover { width: 62px; height: 92px; margin-right: 12px; border-radius: 6px; }
}
@media (orientation: portrait) and (max-width: 640px) {
    .nx-cover { width: 73px; height: 109px; margin-right: 12px; }
}
html.tv-geraet .nx-cover { width: 126px; height: 189px; }

/* Rueckmeldung fuer Tastenkuerzel (2.3.2-beta13): Pille oben in der Mitte */
.nx-osd {
    position: absolute; top: 18%; left: 50%; z-index: 30; pointer-events: none;
    display: flex; align-items: center; padding: 12px 22px; border-radius: 999px;
    background: rgba(0,0,0,.72); color: #fff; font-size: calc(20px * var(--fs, 1)); font-weight: 700; white-space: nowrap;
    opacity: 0; transform: translate(-50%, -6px); transition: opacity .18s ease, transform .18s ease;
}
.nx-osd .material-icons { font-size: calc(28px * var(--fs, 1)); margin-right: 10px; }
.nx-osd.nx-osd-an { opacity: 1; transform: translate(-50%, 0); }
html.keine-animation .nx-osd { transition: none; }

/* Nerd-Infos (2.3.2-beta14): ersetzt "Details" - Abschnitte als Karten, farbig nach Weg, Diagnose senden */
.nx-nerd-knopf span { font-size: calc(22px * var(--fs, 1)); line-height: 1; }
.nx-menu-panel.nx-nerd-panel { width: 920px; max-width: 94vw; max-height: 86vh; max-height: calc(86vh / var(--nx-zoom, 1)); display: flex; flex-direction: column; padding: 22px 24px 18px; box-sizing: border-box; }
.nx-nerd-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; flex: none; }
.nx-nerd-kopf h2 { margin: 0 12px 0 0; }
.nx-nerd-inhalt {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    /* Zeilenweise paarweise nebeneinander (Nutzerwunsch beta15): Wiedergabe|Bild, Ton|Untertitel, Leistung|Geraet -
       gleich hoch je Zeile. Flex-Umbruch mit Rand statt gap (flex-gap erst ab Chromium 84, Tizen) */
    display: flex; flex-wrap: wrap; align-items: stretch; align-content: flex-start; padding-right: 4px;
}
.nx-nerd-abschnitt {
    width: calc(50% - 6px); box-sizing: border-box; margin: 0 0 12px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px 10px; min-width: 0;
}
.nx-nerd-abschnitt h3 {
    display: flex; align-items: center; margin: 0 0 8px; font-size: calc(13px * var(--fs, 1)); font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.nx-nerd-abschnitt h3 .material-icons { font-size: 18px; margin-right: 8px; color: rgba(255,255,255,.55); }
.nx-nerd-abschnitt h3 .nx-nerd-chip { margin-left: auto; text-transform: none; letter-spacing: 0; }
.nx-nerd-abschnitt:nth-child(odd) { margin-right: 12px; }
@media (max-width: 760px) {
    .nx-nerd-abschnitt { width: 100%; }
    .nx-nerd-abschnitt:nth-child(odd) { margin-right: 0; }
}
.nx-nerd-zeile2 { display: flex; align-items: baseline; padding: 3px 0; font-size: calc(14px * var(--fs, 1)); line-height: 1.35; }
.nx-nerd-label { flex: 0 0 38%; color: #9a9aa6; padding-right: 10px; }
.nx-nerd-wert { flex: 1 1 auto; min-width: 0; color: #f2f2f5; word-break: break-word; }
.nx-nerd-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: calc(12px * var(--fs, 1)); font-weight: 700; white-space: nowrap;
    background: rgba(255,255,255,.12); color: #fff; }
.nx-nerd-chip.nx-nerd-gross { font-size: calc(15px * var(--fs, 1)); padding: 5px 14px; }
.nx-nerd-chip.nx-farbe-gruen { background: rgba(76,217,100,.18); color: #4cd964; }
.nx-nerd-chip.nx-farbe-blau { background: rgba(90,176,255,.18); color: #5ab0ff; }
.nx-nerd-chip.nx-farbe-orange { background: rgba(255,169,77,.18); color: #ffa94d; }
.nx-nerd-chip.nx-farbe-rot { background: rgba(255,107,107,.18); color: #ff6b6b; }
.nx-nerd-chip.nx-farbe-gelb { background: rgba(255,211,77,.18); color: #ffd34d; }
.nx-nerd-chip.nx-farbe-lila { background: rgba(190,140,255,.2); color: #c49bff; }
.nx-nerd-wert.nx-farbe-gruen { color: #4cd964; }
.nx-nerd-wert.nx-farbe-blau { color: #5ab0ff; }
.nx-nerd-wert.nx-farbe-orange { color: #ffa94d; }
.nx-nerd-wert.nx-farbe-rot { color: #ff6b6b; }
.nx-nerd-wert.nx-farbe-gelb { color: #ffd34d; }
.nx-nerd-wert.nx-farbe-lila { color: #c49bff; }
.nx-nerd-knoepfe { display: flex; flex: none; margin-top: 14px; }
.nx-nerd-knoepfe .nx-menu-zeile { flex: 1 1 0; justify-content: center; margin: 0; background: rgba(255,255,255,.08); }
.nx-nerd-knoepfe .nx-menu-zeile + .nx-menu-zeile { margin-left: 10px; }
.nx-nerd-senden { display: flex; align-items: center; }
.nx-nerd-senden .material-icons { font-size: 20px; margin-right: 8px; }
.nx-nerd-senden.nx-nerd-gesendet { color: #4cd964; }
@media (max-width: 480px) {
    .nx-nerd-knoepfe { flex-direction: column; }
    .nx-nerd-knoepfe .nx-menu-zeile { flex: none; }
    .nx-nerd-knoepfe .nx-menu-zeile + .nx-menu-zeile { margin: 8px 0 0; }
}
.nx-nerd-senden[aria-disabled="true"] { cursor: default; }
html.tv-geraet .nx-nerd-zeile2 { font-size: calc(16px * var(--fs, 1)); }

/* "Wie geht's weiter?" am Filmende (2.3.2-beta20): oben der naechste Film der Reihe, darunter aehnliche Filme */
.nx-endwahl {
    position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 25; overflow-y: auto; box-sizing: border-box;
    padding: 40px 56px 32px; padding-left: calc(56px + env(safe-area-inset-left, 0px)); padding-right: calc(56px + env(safe-area-inset-right, 0px));
    background: linear-gradient(to top, rgba(0,0,0,.94) 30%, rgba(0,0,0,.72) 75%, rgba(0,0,0,.55));
    display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
}
.nx-endwahl[hidden] { display: none; }
.nx-endwahl-offen .nx-top, .nx-endwahl-offen .nx-mitte, .nx-endwahl-offen .nx-bottom, .nx-endwahl-offen .nx-schliessen, .nx-endwahl-offen .nx-skip-knopf { opacity: 0 !important; pointer-events: none !important; }
.nx-endwahl-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nx-endwahl-kopf h2 { margin: 0; font-size: calc(28px * var(--fs, 1)); }
.nx-endwahl-zu {
    display: flex; align-items: center; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 600;
}
.nx-endwahl-zu .material-icons { font-size: 20px; margin-right: 8px; }
.nx-endwahl-zu:hover, .nx-endwahl-zu:focus { background: #fff; color: #111114; outline: none; }
.nx-endwahl-titel { margin: 18px 0 10px; font-size: calc(16px * var(--fs, 1)); font-weight: 700; color: rgba(255,255,255,.75); }
.nx-endwahl-zeile { display: flex; }
.nx-endwahl-band { overflow-x: auto; overflow-y: hidden; padding: 6px 4px 10px; margin: -6px -4px 0; scrollbar-width: none; }
.nx-endwahl-band::-webkit-scrollbar { display: none; }
.nx-endwahl-kachel {
    position: relative; flex: none; border: 0; padding: 0; cursor: pointer; background: #1c1c22; color: #fff; font: inherit; text-align: left;
    border-radius: 10px; overflow: hidden; width: 130px; margin-right: 12px; outline: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.nx-endwahl-kachel img { display: block; width: 100%; height: 195px; object-fit: cover; }
.nx-endwahl-kachel .nx-endwahl-kachel-text { display: block; padding: 7px 8px 8px; }
.nx-endwahl-name { display: block; font-size: calc(13px * var(--fs, 1)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-endwahl-jahr { display: block; font-size: calc(12px * var(--fs, 1)); color: rgba(255,255,255,.6); margin-top: 2px; }
.nx-endwahl-kachel:hover, .nx-endwahl-kachel:focus { transform: scale(1.04); box-shadow: 0 0 0 3px #fff; }
/* grosse Kachel: naechster Teil der Reihe */
.nx-endwahl-gross { width: 560px; max-width: 100%; display: flex; align-items: stretch; margin-right: 0; background: #16161c; }
.nx-endwahl-gross:hover, .nx-endwahl-gross:focus { transform: scale(1.015); }
.nx-endwahl-gross img { width: 300px; height: 169px; flex: none; }
.nx-endwahl-gross.nx-endwahl-ohne-backdrop img { width: 113px; }
.nx-endwahl-gross .nx-endwahl-kachel-text { display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; min-width: 0; }
.nx-endwahl-marke { font-size: calc(12px * var(--fs, 1)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rot, #e50914); margin-bottom: 6px; }
.nx-endwahl-gross .nx-endwahl-name { font-size: calc(20px * var(--fs, 1)); white-space: normal; }
.nx-endwahl-los { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 12px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--rot, #e50914); font-weight: 700; font-size: calc(14px * var(--fs, 1)); }
.nx-endwahl-los .material-icons { font-size: 20px; margin-right: 4px; }
@media (max-width: 640px), (max-height: 480px) {
    .nx-endwahl { padding: 20px 16px 16px; }
    .nx-endwahl-kopf h2 { font-size: calc(20px * var(--fs, 1)); }
    .nx-endwahl-gross img { width: 160px; height: 90px; }
    .nx-endwahl-gross .nx-endwahl-name { font-size: calc(16px * var(--fs, 1)); }
    .nx-endwahl-kachel { width: 96px; }
    .nx-endwahl-kachel img { height: 144px; }
}

/* "Deine Szenen" (2.3.2-beta21): Lesezeichen mit kleinem Herz oben rechts statt "+" */
.nx-szenen-knopf { position: relative; }
.nx-szenen-knopf .material-icons:first-child { transform: translate(-2px, 1px); }
.nx-szenen-herz { position: absolute; top: 7px; right: 6px; font-size: 11px !important; line-height: 1; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.6); }
.nx-menu-hinweis { padding: 10px 14px 12px; color: rgba(255,255,255,.65); font-size: calc(14px * var(--fs, 1)); line-height: 1.4; }
