/* 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-Bildschirmschoner - siehe screensaver.js. Eigene Datei statt
 * Teil von style.css/player.css: eigenstaendig genug, auf jeder Seite
 * gebraucht (Leerlauf-Waechter laeuft ueberall), aber nur im aktiven Fall
 * sichtbar.
 */
.nx-schoner {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    z-index: 900;
    background: #000;
    cursor: pointer;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.nx-schoner-feld {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    overflow: hidden;
}

/* ---- gemeinsame Uhr/Schriftzug-Bloecke ---- */
.nx-schoner-uhr {
    position: absolute;
    text-align: left;
    color: #fff;
    pointer-events: none;
    transition: top 1.2s ease, left 1.2s ease, right 1.2s ease, bottom 1.2s ease;
}
.nx-schoner-uhr-zeit {
    font-size: calc(72px * var(--fs, 1));
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.nx-schoner-uhr-datum {
    font-size: calc(22px * var(--fs, 1));
    margin-top: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.nx-schoner-uhr-marke { margin-top: 8px; line-height: 0; }
/* Logo mit OK-Hand (App v5.2.6-beta28): Buchstabenhoehe 15 px (Labyrinth 14 px),
   Farben je Art per Variablen aus screensaver.js logoFarben() */
.nx-schoner-logo { display: block; height: 15.5px; width: auto; overflow: visible; }
.nx-schoner-logo .nx-wm-akzent { fill: var(--wm-akzent, #E50914); }
.nx-schoner-logo .nx-wm-detail { fill: var(--wm-detail, #8E0710); }
.nx-schoner-logo .nx-wm-schrift { fill: var(--wm-schrift, #fff); }
.nx-schoner-uhr-dunkel { color: #3A3A42; }
.nx-schoner-uhr-dunkel .nx-schoner-uhr-datum { color: #2E2E36; }
/* Erstes Bild da (App v5.4.1-beta12): Uhr faerbt sich in 1,5 s von gedaempft auf hell */
.nx-schoner-uhr-weich, .nx-schoner-uhr-weich .nx-schoner-uhr-datum { transition: color 1.5s ease, top 1.2s ease, left 1.2s ease, right 1.2s ease, bottom 1.2s ease; }

/* ---- STANDARD/SCHWARZ (Hero) ---- */
.nx-schoner-hero { background: #000; }
.nx-schoner-fanart {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.nx-schoner-fanart.aktiv { opacity: 1; }
.nx-schoner-gradient {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0, calc(0.6 + 0.35 * var(--nx-schoner-dunkel, 0.5))) 0%,
        rgba(0,0,0, calc(0.15 + 0.15 * var(--nx-schoner-dunkel, 0.5))) 45%,
        rgba(0,0,0, calc(0.75 + 0.2 * var(--nx-schoner-dunkel, 0.5))) 100%
    );
}
.nx-schoner-text {
    position: absolute;
    left: 6%;
    bottom: 9%;
    max-width: 640px;
    color: #fff;
}
.nx-schoner-titel {
    font-size: calc(40px * var(--fs, 1));
    font-weight: 700;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.nx-schoner-overview {
    font-size: calc(17px * var(--fs, 1));
    margin-top: 10px;
    line-height: 1.4;
    opacity: .9;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.nx-schoner-hint {
    display: block;
    margin-top: 16px;
    padding: 0;
    background: none;
    border: none;
    color: #cfcfd8;
    font-size: calc(13px * var(--fs, 1));
    font-family: inherit;
    cursor: pointer;
    opacity: .85;
}

/* ---- RETRO ---- */
.nx-schoner-retro { background: #0a0a06; }
.nx-schoner-retro-gruppe {
    position: absolute;
    text-align: center;
    color: #ffb000;
}
.nx-schoner-retro-logo {
    font-size: calc(36px * var(--fs, 1));
    font-weight: 800;
    letter-spacing: 3px;
    white-space: nowrap;
}
.nx-schoner-retro-uhr {
    font-size: calc(16px * var(--fs, 1));
    margin-top: 6px;
    opacity: .8;
}

/* ---- MATRIX ---- */
.nx-schoner-matrix { background: #000; }
.nx-schoner-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; }
.nx-schoner-uhr-matrix .nx-schoner-uhr-zeit { color: #B6FFC0; font-weight: 300; }
.nx-schoner-uhr-matrix .nx-schoner-uhr-marke { margin-top: 10px; }
.nx-schoner-uhr-matrix .nx-schoner-uhr-datum { display: none; }

/* ---- LABYRINTH ---- */
.nx-schoner-labyrinth { background: #000; }
.nx-schoner-uhr-labyrinth .nx-schoner-uhr-zeit { color: #AEE9FF; font-weight: 300; font-size: calc(40px * var(--fs, 1)); }
.nx-schoner-uhr-labyrinth .nx-schoner-logo { height: 14.5px; }
.nx-schoner-uhr-labyrinth .nx-schoner-uhr-datum { display: none; }
.nx-schoner-uhr-fest { left: 6% !important; bottom: 8% !important; top: auto !important; right: auto !important; transform: none !important; }

/* ---- Handy/schmal: kleinere Schrift, Textblock etwas hoeher ---- */
@media (max-width: 640px) {
    .nx-schoner-titel { font-size: calc(26px * var(--fs, 1)); }
    .nx-schoner-overview { font-size: calc(14px * var(--fs, 1)); -webkit-line-clamp: 3; }
    .nx-schoner-uhr-zeit { font-size: calc(48px * var(--fs, 1)); }
    .nx-schoner-uhr-datum { font-size: calc(16px * var(--fs, 1)); }
    .nx-schoner-retro-logo { font-size: calc(24px * var(--fs, 1)); }
}

/* Farbschleier-Bildschirmschoner (ScreenSaver.kt::FarbSchleierScreenSaver, v5.1.1-beta40) */
.nx-schoner-farbschleier { background: #000; }
.nx-schoner-uhr-farbschleier .nx-schoner-uhr-zeit { color: #fff; }
.nx-schoner-uhr-farbschleier .nx-schoner-uhr-datum { display: none; }
.nx-schoner-uhr-farbschleier .nx-schoner-uhr-marke { margin-top: 10px; }
.nx-schoner-farbschleier-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; display: block; }
