﻿/* Netflix-style — New Best Cinema */
:root {
    color-scheme: dark;
    --nbc-bg: #141414;
    --nbc-bg-elevated: #181818;
    --nbc-bg-soft: #1a1a1a;
    --nbc-surface: #222222;
    --nbc-border: #2a2a2a;
    --nbc-border-strong: #3a3a3a;
    --nbc-red: #e50914;
    --nbc-red-hover: #f40612;
    /* Texte principal / secondaire (s’adaptent au thème) */
    --nbc-text: #ffffff;
    --nbc-text-muted: #b3b3b3;
    --nbc-text-dim: #8a8a8a;
    /* Toujours blanc : boutons rouges, overlays média, badges accent */
    --nbc-on-accent: #ffffff;
    --nbc-on-media: #ffffff;
    --nbc-header-start: rgba(0, 0, 0, 0.85);
    --nbc-header-end: transparent;
    --nbc-header-solid: #141414;
    --nbc-nav-mobile-bg: #141414;
    --nbc-bottom-nav-bg: rgba(18, 18, 18, 0.96);
    --nbc-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --nbc-glass-border: rgba(255, 255, 255, 0.14);
    --nbc-glass-border-strong: rgba(255, 255, 255, 0.28);
    --nbc-glass-bg: rgba(255, 255, 255, 0.05);
    --nbc-glass-bg-hover: rgba(255, 255, 255, 0.09);
    /* Dégradés / voiles (chrome UI) */
    --nbc-scrim: rgba(20, 20, 20, 0.92);
    --nbc-scrim-mid: rgba(20, 20, 20, 0.5);
    --nbc-overlay-heavy: rgba(0, 0, 0, 0.88);
    --nbc-overlay-mid: rgba(0, 0, 0, 0.55);
    --nbc-overlay-soft: rgba(0, 0, 0, 0.28);
    --nbc-grad-page: linear-gradient(180deg, #101010 0%, #0a0a0a 45%, #070707 100%);
    --nbc-grad-page-accent:
        radial-gradient(120% 70% at 50% -10%, rgba(229, 9, 20, 0.16), transparent 55%),
        radial-gradient(80% 50% at 100% 100%, rgba(40, 40, 40, 0.35), transparent 50%),
        linear-gradient(180deg, #101010 0%, #0a0a0a 45%, #070707 100%);
    --nbc-grad-pay-accent:
        radial-gradient(110% 65% at 20% -10%, rgba(229, 9, 20, 0.14), transparent 55%),
        radial-gradient(70% 45% at 100% 80%, rgba(40, 40, 40, 0.4), transparent 55%),
        linear-gradient(180deg, #101010 0%, #0a0a0a 50%, #070707 100%);
    --nbc-grad-panel: linear-gradient(165deg, #171717 0%, #101010 100%);
    --nbc-grad-panel-soft: linear-gradient(160deg, #1e1e1e 0%, #121212 100%);
    --nbc-grad-toolbar: linear-gradient(180deg, #141414 0%, #101010 100%);
    --nbc-grad-catalog: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    --nbc-grad-auth:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(229, 9, 20, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.88) 50%, rgba(0, 0, 0, 0.94) 100%);
    --nbc-grad-hero:
        linear-gradient(0deg, var(--nbc-bg) 0%, var(--nbc-scrim) 18%, var(--nbc-scrim-mid) 42%, transparent 68%),
        linear-gradient(90deg, var(--nbc-overlay-heavy) 0%, var(--nbc-overlay-mid) 32%, rgba(0, 0, 0, 0.18) 58%, transparent 78%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 22%, transparent 48%),
        linear-gradient(0deg, var(--nbc-overlay-soft), var(--nbc-overlay-soft));
    --nbc-grad-detail:
        linear-gradient(0deg, var(--nbc-bg) 0%, rgba(20, 20, 20, 0.95) 16%, rgba(20, 20, 20, 0.55) 38%, transparent 62%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 28%, rgba(0, 0, 0, 0.22) 55%, transparent 78%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 18%, transparent 42%);
    --nbc-grad-detail-mobile:
        linear-gradient(0deg, var(--nbc-bg) 0%, rgba(20, 20, 20, 0.96) 22%, rgba(20, 20, 20, 0.7) 42%, transparent 68%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 20%, transparent 40%);
    --nbc-grad-skel: linear-gradient(90deg, #1c1c1c 25%, #2a2a2a 37%, #1c1c1c 63%);
    --nbc-media-bg: #0a0a0a;
    --nbc-header-h: 68px;
    --nbc-bottom-nav-h: 0px;
    --nbc-gutter-x: clamp(16px, 4vw, 48px);
    --nbc-section-y: 12px;
}

html[data-theme="light"] {
    color-scheme: light;
    --nbc-bg: #f3f5f7;
    --nbc-bg-elevated: #ffffff;
    --nbc-bg-soft: #eef1f4;
    --nbc-surface: #e7ebf0;
    --nbc-border: #d5dbe3;
    --nbc-border-strong: #c2cad4;
    --nbc-red: #e50914;
    --nbc-red-hover: #c40812;
    --nbc-text: #121417;
    --nbc-text-muted: #5a6572;
    --nbc-text-dim: #6b7582;
    --nbc-on-accent: #ffffff;
    --nbc-on-media: #ffffff;
    --nbc-header-start: rgba(243, 245, 247, 0.96);
    --nbc-header-end: rgba(243, 245, 247, 0.55);
    --nbc-header-solid: #f3f5f7;
    --nbc-nav-mobile-bg: #ffffff;
    --nbc-bottom-nav-bg: rgba(255, 255, 255, 0.97);
    --nbc-shadow: 0 8px 28px rgba(18, 20, 23, 0.1);
    --nbc-glass-border: rgba(18, 20, 23, 0.12);
    --nbc-glass-border-strong: rgba(18, 20, 23, 0.22);
    --nbc-glass-bg: rgba(18, 20, 23, 0.03);
    --nbc-glass-bg-hover: rgba(18, 20, 23, 0.06);
    /* Dégradés clairs pour le chrome ; overlays média restent sombres pour le contraste */
    --nbc-scrim: rgba(243, 245, 247, 0.96);
    --nbc-scrim-mid: rgba(243, 245, 247, 0.55);
    --nbc-overlay-heavy: rgba(0, 0, 0, 0.72);
    --nbc-overlay-mid: rgba(0, 0, 0, 0.42);
    --nbc-overlay-soft: rgba(0, 0, 0, 0.22);
    --nbc-grad-page: linear-gradient(180deg, #f8f9fb 0%, #f3f5f7 50%, #eef1f4 100%);
    --nbc-grad-page-accent:
        radial-gradient(120% 70% at 50% -10%, rgba(229, 9, 20, 0.08), transparent 55%),
        radial-gradient(80% 50% at 100% 100%, rgba(180, 190, 205, 0.25), transparent 50%),
        linear-gradient(180deg, #f8f9fb 0%, #f3f5f7 45%, #eef1f4 100%);
    --nbc-grad-pay-accent:
        radial-gradient(110% 65% at 20% -10%, rgba(229, 9, 20, 0.08), transparent 55%),
        radial-gradient(70% 45% at 100% 80%, rgba(180, 190, 205, 0.28), transparent 55%),
        linear-gradient(180deg, #f8f9fb 0%, #f3f5f7 50%, #eef1f4 100%);
    --nbc-grad-panel: linear-gradient(165deg, #ffffff 0%, #f5f7f9 100%);
    --nbc-grad-panel-soft: linear-gradient(160deg, #ffffff 0%, #eef1f4 100%);
    --nbc-grad-toolbar: linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%);
    --nbc-grad-catalog: linear-gradient(135deg, #eef2f8 0%, #e4eaf3 45%, #f3f5f7 100%);
    --nbc-grad-auth:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 55%),
        linear-gradient(135deg, rgba(243, 245, 247, 0.92) 0%, rgba(238, 241, 244, 0.96) 50%, rgba(232, 236, 242, 0.98) 100%);
    --nbc-grad-hero:
        linear-gradient(0deg, var(--nbc-bg) 0%, var(--nbc-scrim) 18%, var(--nbc-scrim-mid) 42%, transparent 68%),
        linear-gradient(90deg, var(--nbc-overlay-heavy) 0%, var(--nbc-overlay-mid) 32%, rgba(0, 0, 0, 0.14) 58%, transparent 78%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 22%, transparent 48%),
        linear-gradient(0deg, var(--nbc-overlay-soft), var(--nbc-overlay-soft));
    --nbc-grad-detail:
        linear-gradient(0deg, var(--nbc-bg) 0%, var(--nbc-scrim) 16%, var(--nbc-scrim-mid) 38%, transparent 62%),
        linear-gradient(90deg, var(--nbc-overlay-heavy) 0%, var(--nbc-overlay-mid) 28%, rgba(0, 0, 0, 0.16) 55%, transparent 78%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 18%, transparent 42%);
    --nbc-grad-detail-mobile:
        linear-gradient(0deg, var(--nbc-bg) 0%, var(--nbc-scrim) 22%, var(--nbc-scrim-mid) 42%, transparent 68%),
        linear-gradient(90deg, var(--nbc-overlay-heavy) 0%, var(--nbc-overlay-mid) 45%, transparent 75%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 20%, transparent 40%);
    --nbc-grad-skel: linear-gradient(90deg, #e4e8ed 25%, #f0f3f6 37%, #e4e8ed 63%);
    --nbc-media-bg: #0a0a0a;
}

@media (min-width: 992px) {
    :root { --nbc-section-y: 16px; }
}

body.body {
    background-color: var(--nbc-bg) !important;
    color: var(--nbc-text);
    padding-top: var(--nbc-header-h);
    min-height: 100vh;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

html.nbc-theme-switching,
html.nbc-theme-switching body.body,
html.nbc-theme-switching #app-content {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#app-content {
    min-height: calc(100vh - var(--nbc-header-h));
    color: var(--nbc-text);
}

#app-content .container {
    padding-left: var(--nbc-gutter-x);
    padding-right: var(--nbc-gutter-x);
}

#app-content .content {
    padding: 0 !important;
}

#app-content p:last-child,
#app-content ul:last-child {
    margin-bottom: 0;
}

.content.nbc-catalog-page {
    padding: 0;
}

/* Pages dÃ©tail : un seul conteneur, blocs sÃ©parÃ©s par une ligne */
.nbc-detail-page {
    padding: 8px var(--nbc-gutter-x) var(--nbc-section-y);
}

.nbc-detail-block {
    padding: var(--nbc-section-y) 0;
}

.nbc-detail-block + .nbc-detail-block {
    border-top: 1px solid var(--nbc-border);
}

.nbc-detail-about__grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 768px) {
    .nbc-detail-about__grid {
        grid-template-columns: minmax(140px, 180px) 1fr;
        gap: 20px;
        align-items: start;
    }
}

.nbc-detail-page .h5,
.nbc-detail-page h2,
.nbc-detail-page h3 {
    margin-bottom: 6px;
}

.nbc-page-section {
    padding-top: var(--nbc-section-y);
    padding-bottom: var(--nbc-section-y);
}

/* Masquer l'ancienne barre de recherche FlixGo (toujours visible = bug) */
.header > .header__search,
.header__wrap {
    display: none !important;
}

/* ========== HEADER NETFLIX ========== */
.nbc-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--nbc-header-start) 0%, var(--nbc-header-end) 100%);
    transition: background 0.3s;
}

.nbc-header.header--scrolled {
    background: var(--nbc-header-solid) !important;
    box-shadow: 0 1px 0 var(--nbc-border);
}

.nbc-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 100%;
    padding: 0 4%;
    height: var(--nbc-header-h);
}

.nbc-logo {
    color: var(--nbc-red);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    flex-shrink: 0;
    font-family: inherit;
}

.nbc-logo:hover { color: var(--nbc-red-hover); }

.nbc-logo--sm { font-size: 1.25rem; }

.nbc-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nbc-nav-link {
    color: var(--nbc-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nbc-nav-link:hover {
    opacity: 0.7;
    color: var(--nbc-text);
}

.nbc-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.nbc-icon-btn {
    background: none;
    border: none;
    color: var(--nbc-text);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    opacity: 0.9;
}

.nbc-icon-btn:hover { opacity: 1; }

.nbc-theme-toggle .icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.nbc-theme-toggle:hover .icon {
    transform: rotate(-12deg) scale(1.05);
}

.nbc-btn-signin {
    background: var(--nbc-red);
    color: var(--nbc-on-accent);
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nbc-btn-signin:hover {
    background: var(--nbc-red-hover);
    color: var(--nbc-on-accent);
}

/* Avatar + dropdown */
.nbc-user-menu { position: relative; }

.nbc-avatar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nbc-avatar-letter,
.nbc-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: var(--nbc-text);
    font-weight: 700;
    font-size: 14px;
    object-fit: cover;
}

.nbc-avatar-caret {
    color: var(--nbc-text);
    font-size: 12px;
    opacity: 0.8;
}

.nbc-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(0,0,0,.92);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    z-index: 1100;
}

.nbc-dropdown__head {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.nbc-dropdown__head strong {
    display: block;
    color: var(--nbc-text);
    font-size: 14px;
}

.nbc-dropdown__head small {
    color: var(--nbc-text-muted);
    font-size: 12px;
}

.nbc-dropdown__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    color: var(--nbc-text);
    font-size: 13px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nbc-dropdown__item:hover {
    background: rgba(255,255,255,.08);
    color: var(--nbc-text);
}

.nbc-dropdown__logout {
    color: var(--nbc-text-muted);
}

.nbc-dropdown__divider {
    height: 1px;
    background: #333;
    margin: 6px 0;
}

.nbc-dropdown__prefs {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nbc-dropdown__prefs label {
    color: var(--nbc-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nbc-select {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    color: var(--nbc-text);
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Search panel (overlay, hidden by default) */
.nbc-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border-bottom: 1px solid #333;
    padding: 16px 4% 20px;
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.nbc-search-panel[hidden] { display: none !important; }

.nbc-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.nbc-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--nbc-text);
    font-size: 18px;
    outline: none;
    padding: 8px 0;
}

.nbc-search-form button {
    background: none;
    border: none;
    color: var(--nbc-text);
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.nbc-suggestions {
    max-width: 900px;
    margin: 8px auto 0;
}

.nbc-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--nbc-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.nbc-suggestion-item__thumb {
    width: 48px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #222;
}

.nbc-suggestion-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nbc-suggestion-item__text strong {
    color: var(--nbc-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbc-suggestion-item__text small {
    color: var(--nbc-red);
    font-size: 12px;
}

.nbc-suggestion-item:hover {
    background: #2a2a2a;
    color: var(--nbc-text);
}

.nbc-search-hint {
    color: var(--nbc-text-muted);
    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
}

.nbc-search-hint--error { color: #ff6b6b; }

.nbc-search-see-all {
    display: block;
    padding: 12px;
    text-align: center;
    color: var(--nbc-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #333;
    margin-top: 4px;
}

.nbc-search-see-all:hover { color: var(--nbc-text); }

.nbc-header { position: fixed !important; }

/* ========== HERO ========== */
.nbc-hero {
    position: relative;
    height: 75vh;
    min-height: 420px;
    max-height: 800px;
    margin-top: calc(-1 * var(--nbc-header-h));
    margin-bottom: -80px;
    overflow: hidden;
}

.nbc-hero__bg {
    position: absolute;
    inset: 0;
    background-color: var(--nbc-media-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.nbc-hero__gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--nbc-grad-hero);
}

.nbc-hero__content {
    position: absolute;
    bottom: 28%;
    left: 4%;
    max-width: 520px;
    z-index: 2;
}

.nbc-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--nbc-on-media);
    margin: 0 0 16px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,.8);
}

.nbc-hero__desc {
    color: var(--nbc-on-media);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 0, 0, 0.45);
    opacity: 0.95;
}

.nbc-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nbc-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.nbc-btn-play:hover { opacity: 0.85; color: #000; }

.nbc-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(109,109,110,.7);
    color: var(--nbc-on-media);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.nbc-btn-info:hover {
    background: rgba(109,109,110,.5);
    color: var(--nbc-on-media);
}

/* ========== ROWS & CARDS ========== */
.nbc-rows {
    position: relative;
    z-index: 3;
    padding: 0 0 24px;
}

.nbc-row { margin-bottom: 40px; padding-left: 4%; }

.nbc-row__title {
    color: var(--nbc-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.nbc-row__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 0 16px;
}

.nbc-row__track::-webkit-scrollbar { display: none; }

.nbc-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.nbc-card:hover { transform: scale(1.08); z-index: 10; }

.nbc-card__img-wrap {
    aspect-ratio: 2/3;
    background: #2a2a2a;
    position: relative;
}

.nbc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #1a1a1a;
}

.nbc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.nbc-card:hover .nbc-card__overlay { opacity: 1; }

.nbc-card__title {
    color: var(--nbc-on-media);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.nbc-card__meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4px;
}

.nbc-card--wide { width: 280px; }
.nbc-card--wide .nbc-card__img-wrap { aspect-ratio: 16/9; }

.nbc-price {
    display: inline-block;
    background: var(--nbc-red);
    color: var(--nbc-on-accent);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 6px;
}

.nbc-price--free {
    background: #1a472a;
    color: #7dffb3;
}

.nbc-series-episodes__head {
    margin-bottom: 6px;
}

.nbc-detail-about .h5,
.nbc-detail-about h2 {
    margin-bottom: 6px;
}

.nbc-hero__actions--detail {
    align-items: stretch;
    margin-top: 12px;
}

.nbc-trailer-link {
    margin-top: 10px;
}

.nbc-catalog-page__title {
    margin: 0 var(--nbc-gutter-x) 4px;
    padding: 0;
}

/* ========== CATALOG PAGE ========== */
.nbc-catalog-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--nbc-gutter-x) var(--nbc-section-y);
}

.nbc-catalog-head {
    padding: 10px 0 8px;
}

.nbc-catalog-head__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.nbc-catalog-head__intro {
    min-width: 0;
    flex: 1;
}

.nbc-catalog-head__title {
    color: var(--nbc-text);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}

.nbc-catalog-head__sub {
    color: var(--nbc-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    max-width: 560px;
}

.nbc-catalog-count {
    flex-shrink: 0;
    color: var(--nbc-red);
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 0;
    white-space: nowrap;
}

.nbc-catalog-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.nbc-catalog-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0 10px;
    min-height: 40px;
    min-width: 0;
    margin: 0;
    cursor: text;
}

.nbc-catalog-search:focus-within {
    border-color: #555;
}

.nbc-catalog-search .icon {
    color: var(--nbc-text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

.nbc-catalog-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--nbc-text);
    padding: 8px 0;
    font-size: 15px;
    outline: none;
}

.nbc-catalog-search input::placeholder {
    color: #666;
}

.nbc-view-toggle {
    display: flex;
    gap: 2px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 3px;
    flex: 0 0 auto;
}

.nbc-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--nbc-text-muted);
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-height: 34px;
    min-width: 38px;
    touch-action: manipulation;
    transition: background .15s, color .15s;
}

.nbc-view-toggle__btn .icon {
    font-size: 18px;
}

.nbc-view-toggle__label {
    display: none;
}

@media (min-width: 480px) {
    .nbc-view-toggle__label {
        display: inline;
    }
}

.nbc-view-toggle__btn:hover {
    color: var(--nbc-text);
}

.nbc-view-toggle__btn.active {
    background: var(--nbc-red);
    color: var(--nbc-text);
}

.nbc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: 0;
}

.nbc-catalog-grid .nbc-card {
    width: 100%;
    flex: unset;
    scroll-snap-align: unset;
}

.nbc-catalog-grid .nbc-card--wide {
    width: 100%;
}

.nbc-catalog-grid .nbc-card--wide .nbc-card__img-wrap {
    aspect-ratio: 16 / 9;
}

.nbc-catalog-grid--list {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-columns: unset;
}

.nbc-catalog-empty {
    color: var(--nbc-text-muted);
    padding: 24px 0;
    margin: 0;
    grid-column: 1 / -1;
}

.nbc-catalog-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}

.nbc-catalog-list-item:last-child {
    border-bottom: none;
}

.nbc-catalog-list-item:hover {
    opacity: 0.85;
}

.nbc-catalog-list-item__thumb {
    width: 72px;
    min-width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.nbc-catalog-list-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nbc-catalog-list-item__type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--nbc-red);
}

.nbc-catalog-list-item__title {
    color: var(--nbc-text);
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbc-catalog-list-item__meta {
    color: var(--nbc-text-muted);
    font-size: 12px;
}

.nbc-catalog-list-item__price {
    flex-shrink: 0;
    background: var(--nbc-red);
    color: var(--nbc-on-accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.nbc-catalog-list-item__price.nbc-price--free {
    background: #1a472a;
    color: #7dffb3;
}

/* ========== MY PURCHASES ========== */
.nbc-purchases-page {
    color: var(--nbc-text);
    padding: 28px 0 72px;
    min-height: calc(100dvh - var(--nbc-header-h, 68px) - var(--nbc-bottom-nav-h, 0px));
}

.nbc-purchases-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--nbc-gutter-x, 4%);
}

.nbc-purchases-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.nbc-purchases-head__intro {
    min-width: 0;
    flex: 1;
}

.nbc-purchases-head__title {
    color: var(--nbc-text);
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}

.nbc-purchases-head__sub {
    color: var(--nbc-text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.45;
}

.nbc-purchases-head__count {
    flex-shrink: 0;
    margin: 4px 0 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nbc-red) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--nbc-red) 40%, transparent);
    color: var(--nbc-red);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.nbc-purchases-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.nbc-purchases-filter {
    appearance: none;
    border: 1px solid var(--nbc-glass-border-strong);
    background: var(--nbc-glass-bg);
    color: var(--nbc-text);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nbc-purchases-filter:hover {
    border-color: var(--nbc-border-strong);
    background: var(--nbc-glass-bg-hover);
}

.nbc-purchases-filter.is-active {
    background: var(--nbc-red);
    border-color: var(--nbc-red);
    color: var(--nbc-on-accent);
}

.nbc-purchases-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nbc-purchase-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--nbc-glass-border);
    border-radius: 12px;
    background: var(--nbc-glass-bg);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nbc-purchase-row:hover {
    border-color: var(--nbc-glass-border-strong);
    background: var(--nbc-glass-bg-hover);
}

.nbc-purchase-row__media {
    flex-shrink: 0;
    width: 64px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--nbc-bg-soft);
}

.nbc-purchase-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nbc-purchase-row__body {
    flex: 1;
    min-width: 0;
}

.nbc-purchase-row__type {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nbc-text-dim);
    margin-bottom: 3px;
}

.nbc-purchase-row__title {
    display: block;
    color: var(--nbc-text);
    font-weight: 650;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nbc-purchase-row__title:hover {
    text-decoration: underline;
    color: var(--nbc-text);
}

.nbc-purchase-row__meta {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--nbc-text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.nbc-purchase-row__dot {
    opacity: 0.55;
}

.nbc-purchase-row__price {
    color: var(--nbc-text);
    font-weight: 600;
}

.nbc-purchase-row__watch {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--nbc-red);
    color: var(--nbc-on-accent);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nbc-purchase-row__watch .icon {
    font-size: 16px;
    line-height: 1;
}

.nbc-purchase-row__watch:hover {
    opacity: 0.92;
    color: var(--nbc-on-accent);
    transform: translateY(-1px);
}

.nbc-purchases-empty {
    text-align: center;
    padding: 48px 16px;
    border: 1px dashed var(--nbc-border-strong);
    border-radius: 14px;
    background: var(--nbc-glass-bg);
}

.nbc-purchases-empty__icon {
    display: block;
    font-size: 42px;
    color: var(--nbc-text);
    margin-bottom: 12px;
    opacity: 0.85;
}

.nbc-purchases-empty__text {
    color: var(--nbc-text);
    font-size: 1rem;
    margin: 0 0 18px;
}

.nbc-purchases-filter-empty {
    color: var(--nbc-text-muted);
    text-align: center;
    padding: 28px 8px;
    margin: 0;
}

@media (max-width: 575px) {
    .nbc-purchases-head {
        flex-direction: column;
        gap: 10px;
    }

    .nbc-purchase-row {
        gap: 12px;
        padding: 10px;
    }

    .nbc-purchase-row__media {
        width: 56px;
    }

    .nbc-purchase-row__watch {
        padding: 9px 11px;
    }

    .nbc-purchase-row__watch span {
        display: none;
    }
}

/* ========== PROFILE PAGE ========== */
.nbc-profile {
    padding: 40px 4% 80px;
    max-width: 900px;
    margin: 0 auto;
}

.nbc-profile__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nbc-text);
    margin-bottom: 32px;
}

.nbc-profile__card {
    background: #181818;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid #333;
}

.nbc-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--nbc-red);
    color: var(--nbc-text);
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.nbc-profile__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #2a2a2a;
    color: var(--nbc-text);
}

.nbc-profile__row:last-child { border-bottom: none; }

.nbc-profile__label {
    color: var(--nbc-text-muted);
    font-size: 14px;
}

.nbc-profile__badge--warn {
    background: #e50914;
    color: var(--nbc-text);
}

.nbc-profile__verify {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nbc-profile__verify-hint {
    color: var(--nbc-text-muted);
    font-size: 14px;
    margin: 0;
}

.nbc-profile__verify-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nbc-profile__verify-row .nbc-profile__input {
    flex: 1;
    min-width: 140px;
}

.nbc-profile__error--ok {
    color: #46d369;
}

.nbc-auth-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.nbc-profile__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nbc-profile__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nbc-profile__section {
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nbc-profile__section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nbc-text);
    margin: 0;
}

.nbc-profile__input {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--nbc-text);
    padding: 12px 14px;
    font-size: 15px;
}

.nbc-profile__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.nbc-profile__input:focus {
    outline: none;
    border-color: var(--nbc-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.nbc-profile__readonly {
    color: var(--nbc-text);
    font-size: 15px;
    font-weight: 500;
}

.nbc-profile__error {
    color: #ff6b6b;
    font-size: 14px;
    margin: 0;
}

.nbc-profile__submit {
    align-self: flex-start;
    min-width: 200px;
}

/* ========== DETAIL PAGES ========== */
.nbc-detail-hero {
    position: relative;
    min-height: 50vh;
    margin-top: calc(-1 * var(--nbc-header-h));
    padding-top: calc(var(--nbc-header-h) + 24px);
    padding-bottom: 48px;
    background-color: var(--nbc-media-bg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.nbc-detail-hero::before,
.nbc-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Voile + dÃ©gradÃ©s : texte lisible sur toute banniÃ¨re (claire ou sombre) */
.nbc-detail-hero::before {
    background: var(--nbc-overlay-soft);
}

.nbc-detail-hero::after {
    background: var(--nbc-grad-detail);
}

.nbc-detail-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.nbc-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nbc-text);
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.4);
}

.nbc-detail-meta {
    color: #e8e8e8;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.nbc-detail-meta span { margin-right: 10px; }

.nbc-episodes { display: grid; gap: 8px; margin-top: 0; }

.nbc-episode {
    display: flex;
    gap: 16px;
    background: var(--nbc-bg-elevated);
    padding: 16px;
    border-radius: 6px;
    align-items: center;
    transition: background 0.2s;
}

.nbc-episode:hover { background: #2a2a2a; }

.nbc-episode__num {
    font-size: 24px;
    font-weight: 300;
    color: #666;
    min-width: 36px;
}

/* ========== AUTH PAGES ========== */
body.nbc-page-auth {
    --nbc-header-bg: transparent;
}

body.nbc-page-auth .nbc-header {
    background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, transparent 100%);
    border-bottom: none;
}

body.nbc-page-auth .nbc-header.header--scrolled {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

body.nbc-page-auth .nbc-btn-signin--signup {
    background: #fff;
    color: #141414;
}

body.nbc-page-auth .nbc-btn-signin--signup:hover {
    background: #e6e6e6;
    color: #141414;
}

.nbc-auth {
    position: relative;
    margin-top: calc(-1 * var(--nbc-header-h));
    min-height: 100vh;
    padding: calc(var(--nbc-header-h) + 24px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.nbc-auth__scrim {
    position: absolute;
    inset: 0;
    background: var(--nbc-grad-auth);
    pointer-events: none;
}

.nbc-auth__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 48px);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 768px) {
    .nbc-auth__layout {
        grid-template-columns: 1fr 1fr;
        gap: clamp(32px, 5vw, 64px);
    }
}

.nbc-auth-aside {
    display: none;
    color: var(--nbc-text);
    padding: clamp(8px, 2vw, 24px);
}

@media (min-width: 768px) {
    .nbc-auth-aside {
        display: block;
    }
}

.nbc-auth-aside__tagline {
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    max-width: 28rem;
}

.nbc-auth__inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nbc-auth__inner {
        margin: 0;
        max-width: none;
    }
}

/* Card */
.nbc-auth-card.sign__form {
    width: 100%;
    box-sizing: border-box;
    background: rgba(20, 20, 20, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 36px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    align-items: stretch;
}

.nbc-auth-card.sign__form::before {
    display: none !important;
}

.nbc-auth-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nbc-auth-brand:hover {
    opacity: 0.9;
    text-decoration: none;
}

.nbc-auth-brand--compact {
    display: none;
}

@media (max-width: 767px) {
    .nbc-auth-brand--compact {
        display: inline-flex;
        align-items: center;
        margin-bottom: 1rem;
    }
}

.nbc-auth-brand__mark {
    font-family: inherit;
    font-size: clamp(2.25rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--nbc-red);
    line-height: 1;
}

.nbc-auth-brand--compact .nbc-auth-brand__mark {
    font-size: 1.75rem;
}

.nbc-auth-brand__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nbc-auth-card__head {
    margin-bottom: 1.5rem;
}

.nbc-auth-title {
    color: var(--nbc-text);
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.nbc-auth-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.nbc-auth-form {
    width: 100%;
}

.nbc-auth-field {
    margin-bottom: 1rem;
}

.nbc-auth-field__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nbc-auth .sign__input,
.nbc-auth-field__input {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 6px !important;
    font-size: 16px;
    height: 48px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--nbc-text);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nbc-auth .sign__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.nbc-auth .sign__input:focus,
.nbc-auth-field__input:focus {
    outline: none;
    border-color: var(--nbc-red) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.nbc-auth-field__input--code {
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 600;
}

.nbc-auth-remember.sign__group--checkbox {
    margin: 0.25rem 0 1rem;
}

.nbc-auth .sign__group--checkbox label {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.875rem;
}

.nbc-auth-btn.sign__btn {
    width: 100%;
    min-height: 48px;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    background: var(--nbc-red);
    transition: background 0.2s, transform 0.15s;
}

.nbc-auth-btn.sign__btn:hover:not(:disabled) {
    background: var(--nbc-red-hover);
}

.nbc-auth-btn.sign__btn:active:not(:disabled) {
    transform: scale(0.98);
}

.nbc-auth-btn--loading {
    pointer-events: none;
    opacity: 0.85;
}

.nbc-auth-btn__spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: var(--nbc-text);
    border-radius: 50%;
    animation: nbc-auth-spin 0.7s linear infinite;
}

@keyframes nbc-auth-spin {
    to { transform: rotate(360deg); }
}

.nbc-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nbc-auth-divider::before,
.nbc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.nbc-auth-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.nbc-auth-field__label-row .nbc-auth-field__label {
    margin-bottom: 0;
}

.nbc-auth-forgot {
    font-size: 0.8rem;
    color: var(--nbc-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.nbc-auth-forgot:hover {
    color: var(--nbc-text);
    text-decoration: underline;
}

.nbc-auth-password {
    position: relative;
}

.nbc-auth-password .nbc-auth-field__input {
    padding-right: 48px;
}

.nbc-auth-password__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--nbc-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nbc-auth-password__toggle:hover,
.nbc-auth-password__toggle[aria-pressed="true"] {
    color: var(--nbc-text);
}

.nbc-auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nbc-auth-footer--signup {
    text-align: center;
}

.nbc-auth-footer__hint {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.nbc-auth-btn-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid #fff;
    border-radius: 6px;
    color: #141414;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.nbc-auth-btn-signup:hover {
    background: #e6e6e6;
    color: #141414;
    text-decoration: none;
}

.nbc-auth .sign__text {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    line-height: 1.65;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.nbc-auth-footer .sign__text + .sign__text {
    margin-top: 0.5rem;
}

.nbc-auth .sign__text a {
    color: var(--nbc-text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 9, 20, 0.5);
    transition: color 0.2s, border-color 0.2s;
}

.nbc-auth .sign__text a:hover {
    color: var(--nbc-red-hover);
    border-bottom-color: var(--nbc-red);
}

.nbc-auth-error {
    color: #ff8a80;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.nbc-auth-success {
    color: #81c784;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.nbc-auth-success--standalone {
    margin-bottom: 1.25rem;
}

.nbc-auth-btn-ghost.sign__btn--ghost {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 10px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
}

.nbc-auth-btn-ghost.sign__btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.nbc-auth .nbc-auth-captcha__row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}

.nbc-auth .nbc-auth-captcha__row .sign__input,
.nbc-auth .nbc-auth-captcha__row .nbc-auth-field__input {
    flex: 1 1 0;
    width: auto !important;
    min-width: 8rem;
    min-height: 48px;
}

.nbc-auth .nbc-auth-captcha__row .nbc-auth-btn-ghost.sign__btn--ghost {
    flex: 0 0 auto;
    width: auto !important;
    margin-top: 0 !important;
    height: 48px;
    padding: 0 16px;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .nbc-auth .nbc-auth-captcha__row {
        flex-direction: column;
    }
    .nbc-auth .nbc-auth-captcha__row .sign__input,
    .nbc-auth .nbc-auth-captcha__row .nbc-auth-field__input,
    .nbc-auth .nbc-auth-captcha__row .nbc-auth-btn-ghost.sign__btn--ghost {
        width: 100% !important;
        flex: none;
    }
}

.nbc-auth #google-signin-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.nbc-auth #google-signin-btn > div,
.nbc-auth #google-signin-btn iframe {
    max-width: 100% !important;
}

.sign__btn,
.nbc-btn-primary {
    background: var(--nbc-red) !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 4px !important;
}

.sign__btn:hover { background: var(--nbc-red-hover) !important; }

/* ========== LOADER ========== */
.nbc-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--nbc-text-muted);
    z-index: 2;
}

.nbc-loader--inline {
    min-height: 160px;
    padding: 32px 16px;
}

.nbc-loader__ring {
    display: block;
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--nbc-red);
    border-radius: 50%;
    animation: nbc-spin 0.7s linear infinite;
}

.nbc-loader--inline .nbc-loader__ring {
    width: 40px;
    height: 40px;
}

.nbc-loader__text {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nbc-text-dim);
}

@keyframes nbc-spin {
    to { transform: rotate(360deg); }
}

.nbc-skel-page {
    min-height: 50vh;
}

.nbc-skel-page--center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100dvh - var(--nbc-header-h, 68px) - var(--nbc-bottom-nav-h, 0px) - env(safe-area-inset-bottom, 0px));
}

.nbc-skel-page--catalog {
    padding: 16px var(--nbc-gutter-x) 32px;
}

.nbc-skel {
    background: var(--nbc-grad-skel);
    background-size: 400% 100%;
    animation: nbc-shimmer 1.2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes nbc-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.nbc-skel--hero,
.nbc-skel--banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52vh;
    min-height: 280px;
    margin-bottom: 8px;
    border-radius: 0;
}

.nbc-skel--card {
    flex: 0 0 140px;
    width: 140px;
    aspect-ratio: 2 / 3;
}

.nbc-skel--wide {
    flex: 0 0 220px;
    width: 220px;
    aspect-ratio: 16 / 9;
}

.nbc-skel--title {
    width: 180px;
    height: 18px;
    margin-bottom: 12px;
}

.nbc-skel--line {
    height: 14px;
    width: 70%;
    margin: 10px 0;
}

.nbc-skel--line-short {
    width: 40%;
}

.nbc-skel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.nbc-skel-grid .nbc-skel--card {
    width: 100%;
    flex: none;
}

/* Override FlixGo white cards on dark pages */
.content .card--details,
.content .card__content {
    background: transparent !important;
}

/* Bouton hamburger (indÃ©pendant de FlixGo .header__btn) */
.nbc-mobile-toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    opacity: 0.9;
}

.nbc-mobile-toggle:hover { opacity: 1; }

.nbc-mobile-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -12px;
    height: 2px;
    width: 24px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.nbc-mobile-toggle span:nth-child(1) { top: 14px; }
.nbc-mobile-toggle span:nth-child(2) { top: 21px; }
.nbc-mobile-toggle span:nth-child(3) { top: 28px; }

.nbc-mobile-toggle--active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.nbc-mobile-toggle--active span:nth-child(2) {
    opacity: 0;
}

.nbc-mobile-toggle--active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ========== DETAIL EXTRAS ========== */
.nbc-detail-hero--short { min-height: 40vh; }

.nbc-detail-synopsis {
    color: var(--nbc-text);
    max-width: 640px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.nbc-synopsis-section .nbc-detail-synopsis {
    max-width: 800px;
    margin-bottom: 0;
}

.nbc-detail-about__poster {
    width: 180px;
    max-width: 100%;
    flex-shrink: 0;
}

.nbc-detail-poster {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center top;
    background: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
}

.nbc-detail-facts li {
    margin-bottom: 6px;
    color: var(--nbc-text-muted);
}

.nbc-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nbc-text);
    margin-bottom: 8px;
}

/* ========== CREDITS (public) ========== */
.nbc-credits-section {
    padding-bottom: 0;
}

.nbc-credits-section .nbc-section-title:not(:first-child) {
    margin-top: 10px;
}

.nbc-credits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .nbc-credits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

.nbc-credit-card {
    background: var(--nbc-bg-elevated);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    height: 100%;
}

.nbc-credit-card__photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: block;
}

.nbc-credit-card__photo--empty {
    background: #333;
    border-radius: 50%;
}

.nbc-credit-card__name {
    display: block;
    color: var(--nbc-text);
    font-size: 14px;
    margin-bottom: 4px;
}

.nbc-credit-card__role,
.nbc-credit-card__badge {
    display: inline-block;
    color: var(--nbc-text-muted);
    font-size: 12px;
}

.nbc-credit-card__badge {
    background: #333;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 4px;
}

.nbc-credit-card__desc {
    color: var(--nbc-text-muted);
    font-size: 12px;
    margin: 8px 0 0;
    line-height: 1.4;
}

/* ========== EPISODES ========== */
.nbc-episode__thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.nbc-episode__play {
    color: var(--nbc-text);
    font-size: 24px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nbc-episode:hover .nbc-episode__play { opacity: 1; color: var(--nbc-red); }

/* ========== SERIES (public) ========== */
.nbc-detail-hero--series { min-height: 55vh; }

.nbc-series-tag {
    color: var(--nbc-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.nbc-detail-kicker {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.nbc-detail-kicker__link {
    color: #f0f0f0;
    text-decoration: none;
}

.nbc-detail-kicker__link:hover {
    color: var(--nbc-text);
    text-decoration: underline;
}

.nbc-trailer-link {
    margin-top: 12px;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nbc-series-hero-desc {
    color: #f2f2f2;
    max-width: 640px;
    line-height: 1.5;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 16px rgba(0, 0, 0, 0.4);
}

.nbc-age-badge {
    border: 1px solid rgba(255,255,255,.35);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.nbc-season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

/* Onglets dÃ©filables (catalogue + saisons) */
.nbc-tabs-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.nbc-tabs-scroll::-webkit-scrollbar { display: none; }

.nbc-tabs-scroll > .nbc-catalog-tab,
.nbc-tabs-scroll > .nbc-season-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.nbc-season-tab {
    background: transparent;
    border: 1px solid #444;
    color: var(--nbc-text-muted);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    touch-action: manipulation;
}

.nbc-season-tab .nbc-accent-text { color: var(--nbc-red); }

.nbc-season-tab:hover { color: var(--nbc-text); border-color: var(--nbc-red); }

.nbc-season-tab.active {
    background: var(--nbc-red);
    color: var(--nbc-text);
    border-color: var(--nbc-red);
    font-weight: 600;
}

.nbc-season-tab.active .nbc-accent-text { color: var(--nbc-text); }

.nbc-season-panel { display: none; }
.nbc-season-panel.active { display: block; }

.nbc-accent-text { color: var(--nbc-red) !important; font-weight: 600; }

.nbc-accent-sep { color: rgba(255,255,255,.35); font-weight: 400; }

.nbc-detail-meta--series .nbc-accent-text { font-weight: 600; }

.nbc-series-stats { font-size: 14px; }

.nbc-series-empty { color: var(--nbc-text-muted); }

.nbc-series-season-label {
    color: var(--nbc-text);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.nbc-series-season-desc {
    color: var(--nbc-red);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.nbc-ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.nbc-ep-card {
    display: flex;
    flex-direction: column;
    background: var(--nbc-bg-elevated);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    color: inherit;
}

.nbc-ep-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.nbc-ep-card__thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--nbc-media-bg);
}

.nbc-ep-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nbc-ep-card__num {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.75);
    color: var(--nbc-text);
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.nbc-ep-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    color: var(--nbc-text);
    font-size: 42px;
    opacity: 0;
    transition: opacity .2s;
}

.nbc-ep-card:hover .nbc-ep-card__play { opacity: 1; }

.nbc-ep-card__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255,255,255,.2);
}

.nbc-ep-card__progress span {
    display: block;
    height: 100%;
    background: var(--nbc-red);
}

.nbc-ep-card__body { padding: 14px 16px 16px; }

.nbc-ep-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.nbc-ep-card__title {
    color: var(--nbc-text);
    font-size: 15px;
    line-height: 1.3;
}

.nbc-ep-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--nbc-text-muted);
    font-size: 13px;
}

.nbc-ep-card__action { color: var(--nbc-red); font-weight: 600; }

.nbc-ep-card__desc {
    color: var(--nbc-text-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nbc-ep-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.nbc-ep-badge--free { background: #1a472a; color: #7dffb3; }
.nbc-ep-badge--owned { background: #1a3a5c; color: #7ec8ff; }
.nbc-ep-badge--lock { background: #3a2a00; color: #ffc866; }
.nbc-ep-badge--preview { background: #333; color: var(--nbc-text-muted); }
.nbc-ep-badge--done { background: #222; color: var(--nbc-text-muted); }

.nbc-card__type {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(229, 9, 20, .9);
    color: var(--nbc-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
}

.nbc-card__episodes { opacity: .85; }

.nbc-card--series .nbc-card__img-wrap { position: relative; }

.nbc-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px var(--nbc-gutter-x) 4px;
    margin: 0;
}

.nbc-catalog-tab {
    color: var(--nbc-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #333;
    font-size: 14px;
    transition: all .2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    touch-action: manipulation;
}

.nbc-catalog-tab:hover { color: var(--nbc-text); border-color: #555; }

.nbc-catalog-tab.active {
    background: #fff;
    color: #141414;
    border-color: var(--nbc-text);
    font-weight: 600;
}

.nbc-catalog-hero {
    margin: 0 var(--nbc-gutter-x) 8px;
    padding: 16px;
    border-radius: 12px;
    background: var(--nbc-grad-catalog);
    border: 1px solid var(--nbc-border);
}

.nbc-catalog-hero__title {
    color: var(--nbc-text);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.nbc-catalog-hero__desc {
    color: var(--nbc-text-muted);
    margin: 0 0 8px;
    max-width: 560px;
}

.nbc-catalog-hero__count {
    color: var(--nbc-red);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 767px) {
    .nbc-detail-title { font-size: 1.75rem; }
}

/* ========== SEARCH PAGE ========== */
.nbc-search-page { min-height: 50vh; }

.nbc-search-query {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nbc-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nbc-search-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--nbc-bg-elevated);
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.nbc-search-result:hover {
    background: #2a2a2a;
    transform: translateX(4px);
}

.nbc-search-result__thumb {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #222;
}

.nbc-search-result__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nbc-search-result__type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--nbc-red);
}

.nbc-search-result__title {
    color: var(--nbc-text);
    font-size: 16px;
}

.nbc-search-result__sub {
    color: var(--nbc-text-muted);
    font-size: 13px;
}

.nbc-search-empty {
    color: var(--nbc-text-muted);
    padding: 32px 0;
    text-align: center;
}

/* ========== WATCH / PLAYER ========== */
.nbc-watch-page {
    position: relative;
    min-height: calc(100vh - var(--nbc-header-h));
    background: var(--nbc-bg);
    overflow: hidden;
}

.nbc-watch-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--nbc-grad-page-accent);
    z-index: 0;
}

.nbc-watch-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--nbc-watch-bg);
    background-size: cover;
    background-position: center top;
    opacity: 0.14;
    filter: blur(28px) saturate(1.05);
    transform: scale(1.08);
    pointer-events: none;
    z-index: 0;
}

.nbc-watch-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 20px var(--nbc-gutter-x) 48px;
}

.nbc-watch-top {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.nbc-watch-heading {
    max-width: 48rem;
}

.nbc-watch-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.nbc-watch-back:hover {
    color: var(--nbc-text);
}

.nbc-watch-back__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.05rem;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nbc-watch-back:hover .nbc-watch-back__icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.nbc-watch-eyebrow {
    margin: 0 0 6px;
    color: var(--nbc-red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nbc-watch-title {
    color: var(--nbc-text);
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.nbc-watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.nbc-watch-meta li {
    color: #e8e8e8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nbc-watch-banner-slot {
    margin-bottom: 16px;
}

.nbc-watch-banner-slot .nbc-paid-banner {
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.nbc-watch-stage {
    position: relative;
    animation: nbc-watch-rise 0.45s ease both;
}

@keyframes nbc-watch-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nbc-player-wrap {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(229, 9, 20, 0.08);
}

.nbc-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 720px);
    display: block;
    background: #000;
    object-fit: contain;
}

.nbc-player-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
    background: var(--nbc-grad-toolbar);
    border-top: 1px solid var(--nbc-border);
}

.nbc-player-quality-label {
    margin: 0;
    font-size: 12px;
    color: var(--nbc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.nbc-player-badge-inline {
    font-size: 12px;
    color: var(--nbc-text);
    font-weight: 600;
}

.nbc-player-error {
    margin: 0 !important;
    padding: 0 16px 14px !important;
}

.nbc-player-wrap--protected video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.nbc-select-compact {
    width: auto;
    min-width: 150px;
    background: #1c1c1c;
    border-color: #333;
    color: var(--nbc-text);
    border-radius: 8px;
}

.nbc-watch-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    min-height: min(48vh, 420px);
    padding: 40px 24px;
    border-radius: 14px;
    background: var(--nbc-grad-panel);
    border: 1px solid var(--nbc-border);
}

.nbc-watch-panel--loading {
    min-height: min(42vh, 360px);
}

.nbc-watch-panel--glass {
    background: var(--nbc-glass-bg);
    border: 1px solid var(--nbc-glass-border);
    backdrop-filter: blur(10px);
    min-height: 0;
    width: min(380px, 100%);
    box-shadow: var(--nbc-shadow);
}

.nbc-watch-panel__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: var(--nbc-text);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nbc-watch-panel__title {
    margin: 0;
    color: var(--nbc-text);
    font-size: 1.35rem;
    font-weight: 700;
}

.nbc-watch-panel__text {
    margin: 0 0 8px;
    color: var(--nbc-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 32ch;
}

.nbc-player-wrap--protected { position: relative; }

.nbc-player-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--nbc-text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.nbc-player-wrap--preview {
    position: relative;
}

.nbc-player-wrap--preview > .nbc-player-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.nbc-player-wrap--preview .nbc-player-preview-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 193, 7, 0.94);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nbc-watch-paid-modal {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.nbc-watch-paid-modal[hidden] {
    display: none !important;
}

.nbc-watch-paid-modal-panel {
    background: var(--nbc-grad-panel-soft);
    border: 1px solid var(--nbc-border-strong);
    border-radius: 12px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--nbc-shadow);
}

.nbc-watch-paywall-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.nbc-watch-paid-modal-title {
    color: var(--nbc-text);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.nbc-watch-paid-modal-text {
    color: var(--nbc-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.nbc-watch-paid-modal-price {
    color: var(--nbc-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.nbc-watch-paid-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.nbc-watch-paid-modal-pay {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nbc-watch-paid-modal-dismiss {
    background: none;
    border: none;
    color: var(--nbc-text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
}

.nbc-watch-paid-modal-dismiss:hover {
    color: var(--nbc-text-muted);
}

.nbc-watch-locked {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    min-height: min(48vh, 420px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nbc-watch-locked__poster {
    width: 100%;
    height: 100%;
    min-height: min(48vh, 420px);
    object-fit: cover;
    opacity: 0.28;
    filter: blur(2px) saturate(0.85);
    display: block;
}

.nbc-watch-locked__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nbc-text);
    padding: 24px;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.6) 100%);
}

.nbc-watch-locked__overlay .nbc-btn-play {
    position: relative;
    z-index: 2;
}

.nbc-watch-locked__overlay .icon {
    font-size: 48px;
    color: var(--nbc-red);
}

@media (max-width: 767.98px) {
    .nbc-watch-shell {
        padding: 14px 14px 36px;
    }

    .nbc-watch-title {
        font-size: 1.35rem;
    }

    .nbc-player-wrap,
    .nbc-watch-locked,
    .nbc-watch-panel {
        border-radius: 10px;
    }

    .nbc-player {
        max-height: 56vh;
    }

    .nbc-watch-panel {
        min-height: 42vh;
        padding: 28px 18px;
    }
}

.nbc-purchase-gate {
    background: var(--nbc-bg-elevated);
    border: 1px solid var(--nbc-border);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
    color: var(--nbc-text);
    box-shadow: var(--nbc-shadow);
}

.nbc-purchase-gate--success {
    text-align: center;
    border-color: color-mix(in srgb, #4caf50 45%, var(--nbc-border));
    background: color-mix(in srgb, #4caf50 10%, var(--nbc-bg-elevated));
}

.nbc-purchase-gate__lock {
    font-size: 48px;
    color: var(--nbc-red);
    margin-bottom: 12px;
    line-height: 1;
}

.nbc-purchase-gate__lock--ok,
.nbc-purchase-gate--success .nbc-purchase-gate__lock {
    color: #81c784;
    font-size: 56px;
}

.nbc-purchase-gate__title {
    color: var(--nbc-text);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.nbc-purchase-gate__text {
    color: var(--nbc-text);
    margin-bottom: 16px;
    opacity: 0.92;
    line-height: 1.5;
}

.nbc-purchase-gate__price {
    color: var(--nbc-text);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.nbc-purchase-label {
    display: block;
    color: var(--nbc-text);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.nbc-pay-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 18px;
}

.nbc-pay-channel {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.nbc-pay-channel input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nbc-pay-channel__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--nbc-border-strong);
    border-radius: 10px;
    background: var(--nbc-glass-bg);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.nbc-pay-channel__body strong {
    color: var(--nbc-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.nbc-pay-channel__body small {
    color: var(--nbc-text-muted);
    font-size: 0.75rem;
}

.nbc-pay-channel input:checked + .nbc-pay-channel__body {
    border-color: var(--nbc-red, #e50914);
    background: rgba(229, 9, 20, 0.12);
}

.nbc-pay-channel input:focus-visible + .nbc-pay-channel__body {
    outline: 2px solid rgba(229, 9, 20, 0.55);
    outline-offset: 2px;
}

.nbc-pay-phone-block {
    margin-bottom: 12px;
}

.nbc-pay-visa-hint {
    margin-top: -4px;
}

@media (max-width: 480px) {
    .nbc-pay-channels {
        grid-template-columns: 1fr;
    }
}

.nbc-purchase-hint {
    color: var(--nbc-text);
    font-size: 0.82rem;
    opacity: 0.9;
    margin: 0 0 14px;
    line-height: 1.45;
}

.nbc-purchase-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--nbc-text);
}

.nbc-purchase-alert--warn {
    background: rgba(255, 193, 7, 0.16);
    border: 1px solid rgba(255, 193, 7, 0.45);
}

.nbc-purchase-alert--error {
    background: rgba(229, 9, 20, 0.18);
    border: 1px solid rgba(229, 9, 20, 0.5);
}

.nbc-purchase-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--nbc-text);
    font-weight: 500;
}

.nbc-purchase-status[hidden] {
    display: none !important;
}

.nbc-purchase-status__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
}

.nbc-purchase-status--info {
    background: rgba(33, 150, 243, 0.18);
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.nbc-purchase-status--success {
    background: rgba(76, 175, 80, 0.18);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.nbc-purchase-status--error {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.55);
}

.nbc-purchase-input {
    background: #222;
    border-color: #444;
    color: var(--nbc-text);
}

.nbc-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.nbc-phone-country,
.nbc-phone-local {
    background: #1c1c1c;
    border-color: #444;
    color: var(--nbc-text);
}

.nbc-phone-country {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.5rem;
    max-width: 42%;
}

.nbc-phone-local {
    flex: 1 1 auto;
    min-width: 0;
}

.nbc-phone-country option,
.nbc-phone-local::placeholder {
    color: var(--nbc-text);
}

.nbc-phone-local::placeholder {
    opacity: 0.55;
}

.nbc-purchase-providers {
    display: grid;
    gap: 10px;
}

.nbc-purchase-provider {
    background: var(--nbc-red);
    border: none;
    color: var(--nbc-text);
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.nbc-purchase-provider:hover { background: var(--nbc-red-hover); }

.nbc-purchase-provider:disabled { opacity: 0.6; cursor: not-allowed; }

.nbc-purchase-provider--primary {
    width: 100%;
    margin-top: 4px;
}

.nbc-manual-pay__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nbc-manual-pay__divider::before,
.nbc-manual-pay__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.nbc-manual-pay__switch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #fff !important;
    background: #e50914 !important;
    color: var(--nbc-text);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.nbc-manual-pay__switch:hover,
.nbc-manual-pay__switch--pulse {
    border-color: rgba(229, 9, 20, 0.65);
    background: rgba(229, 9, 20, 0.18);
}

.nbc-manual-pay__switch-hint {
    margin: 8px 0 0;
    color: var(--nbc-text);
    opacity: 0.8;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.4;
}

.nbc-manual-pay__title {
    color: var(--nbc-text);
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.nbc-manual-pay__intro,
.nbc-manual-pay__label {
    color: var(--nbc-text);
    opacity: 0.9;
    margin: 0 0 12px;
    font-size: 0.92rem;
}

.nbc-manual-pay__amount {
    color: var(--nbc-text);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.nbc-manual-pay__networks {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.nbc-manual-pay__network {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--nbc-text);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.nbc-manual-pay__network strong {
    display: block;
    margin-bottom: 4px;
}

.nbc-manual-pay__network span {
    font-size: 0.85rem;
    opacity: 0.85;
}

.nbc-manual-pay__network:hover {
    border-color: rgba(229, 9, 20, 0.5);
    background: rgba(229, 9, 20, 0.1);
}

.nbc-manual-pay__back {
    background: none;
    border: 0;
    color: var(--nbc-text);
    opacity: 0.85;
    padding: 0;
    margin-bottom: 12px;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.88rem;
}

.nbc-manual-pay__phones {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.nbc-manual-pay__phones li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nbc-manual-pay__phone {
    color: var(--nbc-text);
    font-size: 1rem;
    font-weight: 700;
}

.nbc-manual-pay__copy {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--nbc-text);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

.nbc-manual-pay__steps {
    color: var(--nbc-text);
    margin: 0 0 18px;
    padding-left: 1.2rem;
    line-height: 1.55;
}

.nbc-manual-pay__form .nbc-purchase-provider {
    margin-top: 8px;
}

.nbc-manual-pay__form .nbc-purchase-label {
    margin-top: 14px;
}

.nbc-manual-pay__network--preferred {
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.25);
}

.nbc-manual-sms {
    min-height: 110px;
    resize: vertical;
    font-size: 0.92rem;
    line-height: 1.45;
}

.nbc-manual-proof-drop {
    position: relative;
    margin: 8px 0 4px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-height: 140px;
}

.nbc-manual-proof-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.nbc-manual-proof-drop:has(.nbc-manual-proof-preview:not([hidden])) .nbc-manual-proof-input {
    pointer-events: none;
}

.nbc-manual-proof-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    text-align: center;
    color: var(--nbc-text);
    pointer-events: none;
}

.nbc-manual-proof-ui[hidden] {
    display: none !important;
}

.nbc-manual-proof-ui__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.nbc-manual-proof-ui strong {
    font-size: 0.98rem;
}

.nbc-manual-proof-ui small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.nbc-manual-proof-preview {
    position: relative;
    z-index: 3;
    padding: 10px;
    text-align: center;
}

.nbc-manual-proof-preview[hidden] {
    display: none !important;
}

.nbc-manual-proof-preview img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}

.nbc-manual-proof-change {
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--nbc-text);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.nbc-manual-proof-change:hover {
    border-color: var(--nbc-text);
}

.nbc-manual-analysis {
    margin: 12px 0 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--nbc-text);
    font-size: 0.88rem;
}

.nbc-manual-analysis[hidden] {
    display: none !important;
}

.nbc-manual-analysis--ok {
    border-color: rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.1);
}

.nbc-manual-analysis--bad {
    border-color: rgba(229, 9, 20, 0.45);
    background: rgba(229, 9, 20, 0.1);
}

.nbc-manual-analysis__title {
    font-weight: 700;
    margin-bottom: 8px;
}

.nbc-manual-analysis ul {
    margin: 0;
    padding-left: 1.1rem;
}

.nbc-manual-analysis li {
    margin: 4px 0;
}

.nbc-manual-analysis li.is-ok {
    color: #7dffa8;
}

.nbc-manual-analysis li.is-bad {
    color: #ff9aa2;
}

.nbc-manual-analysis__msg {
    margin: 10px 0 0;
    opacity: 0.9;
}

.nbc-manual-ocr-text {
    margin-top: 10px;
    font-size: 0.8rem;
}

.nbc-manual-ocr-text summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
}

.nbc-manual-ocr-text pre {
    margin: 8px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 160px;
    overflow: auto;
    color: #e8e8e8;
}

/* ========== PAID BANNER ========== */
.nbc-paid-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.nbc-paid-banner--info {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.35);
    color: #e3f2fd;
}

.nbc-paid-banner--warning {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.4);
    color: #ffeaea;
}

.nbc-paid-banner--preview {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.4);
    color: #fff8e1;
}

.nbc-paid-banner--preview .nbc-paid-banner__icon {
    color: #ffc107;
}

.nbc-paid-banner__icon {
    font-size: 28px;
    flex-shrink: 0;
    color: var(--nbc-red);
}

.nbc-paid-banner__body {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nbc-paid-banner__body strong {
    color: var(--nbc-text);
    font-size: 15px;
}

.nbc-paid-banner__body span {
    font-size: 13px;
    opacity: 0.9;
}

.nbc-paid-banner__cta {
    background: var(--nbc-red);
    color: var(--nbc-text);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nbc-paid-banner__cta:hover { background: var(--nbc-red-hover); color: var(--nbc-text); }

.nbc-paid-banner__cta--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nbc-paid-banner__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nbc-paid-banner--unlocked {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.4);
    color: #e8f5e9;
}

.nbc-paid-banner--unlocked .nbc-paid-banner__icon {
    color: #4caf50;
}

/* ========== PAY PAGE ========== */
.nbc-pay-page {
    position: relative;
    min-height: calc(100vh - var(--nbc-header-h));
    background: var(--nbc-bg);
    overflow: hidden;
}

.nbc-pay-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--nbc-grad-pay-accent);
    z-index: 0;
}

.nbc-pay-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--nbc-pay-bg);
    background-size: cover;
    background-position: center top;
    opacity: 0.12;
    filter: blur(30px) saturate(1.05);
    transform: scale(1.08);
    pointer-events: none;
    z-index: 0;
}

.nbc-pay-shell {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 20px var(--nbc-gutter-x) 48px;
}

.nbc-pay-top {
    margin-bottom: 18px;
}

.nbc-pay-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nbc-pay-back:hover {
    color: var(--nbc-text);
}

.nbc-pay-back__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    line-height: 1;
}

.nbc-pay-back:hover .nbc-pay-back__icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.nbc-pay-layout {
    display: grid;
    gap: 28px;
    align-items: start;
    animation: nbc-watch-rise 0.45s ease both;
}

@media (min-width: 768px) {
    .nbc-pay-layout {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
        gap: 36px;
    }
}

.nbc-pay-poster-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
    background: #111;
    max-width: 220px;
}

.nbc-pay-poster {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center top;
}

.nbc-pay-eyebrow {
    margin: 0 0 6px;
    color: var(--nbc-red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nbc-pay-title,
.nbc-pay-page__title,
.nbc-payment-page__title {
    color: var(--nbc-text);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

.nbc-pay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.nbc-pay-meta li {
    color: #e8e8e8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nbc-pay-meta li:last-child {
    color: var(--nbc-text);
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.4);
}

.nbc-pay-banner-slot {
    margin-top: 16px;
}

.nbc-pay-banner-slot .nbc-paid-banner {
    margin-bottom: 0;
    border-radius: 12px;
}

.nbc-pay-stage {
    margin-top: 20px;
}

.nbc-pay-manual-fallback {
    margin-top: 14px;
}

.nbc-pay-manual-fallback[hidden] {
    display: none !important;
}

.nbc-pay-page .nbc-manual-pay__switch,
.nbc-pay-page .nbc-manual-pay__network {
    display: flex !important;
    width: 100%;
}

.nbc-pay-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 24px;
    border-radius: 14px;
    background: var(--nbc-grad-panel);
    border: 1px solid var(--nbc-border);
    box-shadow: var(--nbc-shadow);
}

.nbc-pay-panel--success {
    align-items: center;
    text-align: center;
}

.nbc-pay-panel__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: var(--nbc-text);
    font-size: 1.35rem;
}

.nbc-pay-panel--success .nbc-pay-panel__icon {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #81c784;
    font-size: 1.8rem;
}

.nbc-pay-panel__title {
    margin: 0;
    color: var(--nbc-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.nbc-pay-panel__text {
    margin: 0 0 4px;
    color: var(--nbc-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 36ch;
}

.nbc-pay-page,
.nbc-pay-page .text-muted,
.nbc-pay-page .form-label,
.nbc-pay-page .nbc-purchase-gate,
.nbc-pay-page .nbc-purchase-gate__title,
.nbc-pay-page .nbc-purchase-gate__text,
.nbc-pay-page .nbc-purchase-label,
.nbc-pay-page .nbc-purchase-hint,
.nbc-pay-page .nbc-manual-pay__title,
.nbc-pay-page .nbc-manual-pay__intro,
.nbc-pay-page .nbc-manual-pay__label,
.nbc-pay-page .nbc-manual-pay__amount,
.nbc-pay-page .nbc-manual-pay__steps,
.nbc-pay-page .nbc-manual-analysis,
.nbc-pay-page .nbc-paid-banner,
.nbc-pay-page .nbc-paid-banner__body,
.nbc-pay-page .nbc-paid-banner__body strong,
.nbc-pay-page .nbc-paid-banner__body span,
.nbc-pay-page .nbc-pay-panel__title,
.nbc-pay-page .nbc-pay-panel__text {
    color: var(--nbc-text);
}

.nbc-pay-page .nbc-purchase-gate {
    max-width: none;
    text-align: left;
    margin: 0;
    border-radius: 14px;
    border-color: var(--nbc-glass-border);
    background: var(--nbc-grad-panel);
    box-shadow: var(--nbc-shadow);
    padding: 28px 24px;
}

.nbc-pay-page .nbc-purchase-gate__lock {
    font-size: 36px;
    margin-bottom: 8px;
}

.nbc-pay-page .nbc-purchase-gate__price {
    color: var(--nbc-text);
}

.nbc-pay-page .form-control,
.nbc-pay-page .form-select,
.nbc-pay-page .nbc-phone-country,
.nbc-pay-page .nbc-phone-local {
    background: #1c1c1c;
    border-color: #555;
    color: var(--nbc-text);
}

.nbc-pay-page .form-control:focus,
.nbc-pay-page .form-select:focus,
.nbc-pay-page .nbc-phone-country:focus,
.nbc-pay-page .nbc-phone-local:focus {
    background: #222;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--nbc-text);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.nbc-pay-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.nbc-pay-page__login,
.nbc-pay-page__unlocked {
    background: #141414;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px 28px;
    text-align: center;
    max-width: 480px;
}

.nbc-pay-page__unlocked .icon {
    font-size: 56px;
    color: #4caf50;
    margin-bottom: 12px;
    display: block;
}

@media (max-width: 767.98px) {
    .nbc-pay-shell {
        padding: 14px 14px 36px;
    }

    .nbc-pay-aside {
        display: flex;
        justify-content: center;
    }

    .nbc-pay-poster-frame {
        max-width: 160px;
        border-radius: 12px;
    }

    .nbc-pay-main {
        text-align: center;
    }

    .nbc-pay-meta {
        justify-content: center;
    }

    .nbc-pay-panel {
        align-items: center;
        text-align: center;
    }

    .nbc-pay-page .nbc-purchase-gate {
        text-align: center;
        padding: 24px 18px;
    }
}

/* Titres longs : pas de dÃ©bordement horizontal */
.nbc-hero__content,
.nbc-card,
.nbc-search-result,
.nbc-search-result__body,
.nbc-catalog-list-item__body,
.nbc-purchase-row__body,
.nbc-ep-card__head,
.nbc-ep-card__title {
    min-width: 0;
    max-width: 100%;
}

.nbc-card__title,
.nbc-catalog-list-item__title,
.nbc-search-result__title,
.nbc-search-result__sub,
.nbc-purchase-row__title,
.nbc-ep-card__title,
.nbc-suggestion-item__text strong,
.nbc-suggestion-item__text small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.nbc-suggestion-item__text strong,
.nbc-catalog-list-item__title,
.nbc-purchase-row__title {
    -webkit-line-clamp: 2;
}

.nbc-hero__title,
.nbc-detail-title,
.nbc-watch-title,
.nbc-pay-title,
.nbc-pay-page__title,
.nbc-payment-page__title,
.nbc-catalog-hero__title,
.nbc-catalog-head__title,
.nbc-row__title,
.nbc-section-title,
.nbc-auth-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nbc-hero__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

@media (max-width: 767px) {
    .nbc-hero__title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .nbc-detail-title,
    .nbc-watch-title,
    .nbc-pay-title,
    .nbc-pay-page__title,
    .nbc-payment-page__title,
    .nbc-catalog-hero__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }
}

/* ========== THEME SURFACES (texte déjà via --nbc-text) ========== */

/* Bootstrap .text-white → couleur thématique (sauf overlays média / watch) */
#app-content .text-white {
    color: var(--nbc-text) !important;
}

.nbc-hero .text-white,
.nbc-card .text-white,
.nbc-watch-panel .text-white,
.nbc-watch-locked .text-white,
body.nbc-page-watch #app-content .text-white {
    color: var(--nbc-on-media) !important;
}

html[data-theme="light"] .nbc-purchase-row,
html[data-theme="light"] .nbc-purchases-empty,
html[data-theme="light"] .nbc-profile__card,
html[data-theme="light"] .nbc-auth-card,
html[data-theme="light"] .nbc-payment-page__card,
html[data-theme="light"] .nbc-purchase-gate {
    background: var(--nbc-bg-elevated);
    box-shadow: var(--nbc-shadow);
    border-color: var(--nbc-border);
}

html[data-theme="light"] .nbc-bottom-nav {
    background: var(--nbc-bottom-nav-bg);
    border-top: 1px solid var(--nbc-border);
    box-shadow: 0 -4px 18px rgba(18, 20, 23, 0.06);
}

html[data-theme="light"] .nbc-bottom-nav__item {
    color: var(--nbc-text-muted);
}

html[data-theme="light"] .nbc-bottom-nav__item.is-active,
html[data-theme="light"] .nbc-bottom-nav__item.is-active .icon {
    color: var(--nbc-red);
}

html[data-theme="light"] .nbc-search-panel,
html[data-theme="light"] .nbc-suggestions,
html[data-theme="light"] .nbc-suggestion-item {
    background: var(--nbc-bg-elevated);
    color: var(--nbc-text);
    border-color: var(--nbc-border);
}

html[data-theme="light"] .nbc-search-form,
html[data-theme="light"] #search-input {
    color: var(--nbc-text);
    background: var(--nbc-bg-soft);
}

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] input.form-control,
html[data-theme="light"] select.form-select {
    background-color: var(--nbc-bg-elevated);
    border-color: var(--nbc-border-strong);
    color: var(--nbc-text);
}

html[data-theme="light"] .nbc-mobile-toggle span {
    background: var(--nbc-text);
}

html[data-theme="light"] .nbc-pay-channel__body {
    background: var(--nbc-bg-soft);
    border-color: var(--nbc-border);
}

/* Overlays média : toujours blanc */
.nbc-hero__content,
.nbc-hero__title,
.nbc-hero__desc,
.nbc-card__overlay,
.nbc-card__title,
.nbc-card__meta,
.nbc-card__type,
.nbc-watch-locked__overlay {
    color: var(--nbc-on-media);
}

.nbc-btn-signin,
.nbc-purchase-row__watch,
.nbc-purchases-filter.is-active,
.nbc-catalog-list-item__price:not(.nbc-price--free),
.nbc-paid-banner__cta:not(.nbc-paid-banner__cta--secondary) {
    color: var(--nbc-on-accent) !important;
}

html[data-theme="light"] body.nbc-page-watch,
html[data-theme="light"] body.nbc-page-watch #app-content {
    background: #000 !important;
    color: #fff;
}

/* ========== PWA install ========== */
.nbc-pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--nbc-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.nbc-pwa-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nbc-pwa-banner__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--nbc-grad-panel);
    border: 1px solid var(--nbc-border);
    box-shadow: var(--nbc-shadow);
    color: var(--nbc-text);
}

.nbc-pwa-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.nbc-pwa-banner__copy {
    flex: 1 1 160px;
    min-width: 0;
}

.nbc-pwa-banner__title {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 700;
}

.nbc-pwa-banner__text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--nbc-text-muted);
    line-height: 1.35;
}

.nbc-pwa-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.nbc-pwa-banner__btn {
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.nbc-pwa-banner__btn--primary {
    background: var(--nbc-red);
    color: var(--nbc-on-accent);
}

.nbc-pwa-banner__btn--ghost {
    background: transparent;
    color: var(--nbc-text-muted);
}

.nbc-pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nbc-pwa-sheet.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.nbc-pwa-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.nbc-pwa-sheet__panel {
    position: relative;
    width: min(440px, 100%);
    margin: 0;
    padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: var(--nbc-bg-elevated);
    color: var(--nbc-text);
    border: 1px solid var(--nbc-border);
    border-bottom: 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(24px);
    transition: transform 0.28s ease;
}

.nbc-pwa-sheet.is-visible .nbc-pwa-sheet__panel {
    transform: translateY(0);
}

.nbc-pwa-sheet__handle {
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: var(--nbc-border-strong);
    margin: 4px auto 16px;
}

.nbc-pwa-sheet__icon {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin: 0 auto 14px;
}

.nbc-pwa-sheet__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.nbc-pwa-sheet__lead {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: var(--nbc-text-muted);
    text-align: center;
    line-height: 1.45;
}

.nbc-pwa-sheet__steps {
    margin: 0 0 14px;
    padding: 0 0 0 1.2rem;
    color: var(--nbc-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.nbc-pwa-sheet__steps li {
    margin-bottom: 10px;
}

.nbc-pwa-sheet__steps .icon {
    color: var(--nbc-red);
    font-size: 1.15em;
    vertical-align: -2px;
}

.nbc-pwa-sheet__hint {
    margin: 0 0 16px;
    font-size: 0.8rem;
    color: var(--nbc-text-dim);
    text-align: center;
}

.nbc-pwa-sheet__done {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--nbc-red);
    color: var(--nbc-on-accent);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nbc-pwa-sheet {
        align-items: center;
    }
    .nbc-pwa-sheet__panel {
        border-radius: 16px;
        border-bottom: 1px solid var(--nbc-border);
        margin: 16px;
    }
}