/* ==========================================================================
   NGOMA STREAM - Ultra-Premium Streaming Platform Design System
   Inspired by Netflix, HBO Max & Apple TV+ Standards
   ========================================================================== */

:root {
    /* SynthWave '84 Palette (Matching User's IDE Theme) */
    --bg-base: #1a1528;
    --bg-surface: #241b2f;
    --bg-card: #262335;
    --bg-elevated: #34294f;
    --bg-overlay: rgba(26, 21, 40, 0.92);

    --brand-red: #fe4450;
    --brand-red-hover: #ff7edb;
    --brand-red-glow: rgba(255, 126, 219, 0.55);
    --brand-red-light: rgba(255, 42, 133, 0.18);

    --synth-pink: #ff7edb;
    --synth-cyan: #36f9f6;
    --synth-yellow: #fede5d;
    --synth-orange: #f97e72;
    --synth-green: #72f1b8;
    --synth-purple: #b893ff;

    --text-primary: #FFFFFF;
    --text-secondary: #d1c7e8;
    --text-muted: #848bbd;
    --text-white-dim: rgba(255, 255, 255, 0.9);

    --badge-gold: #fede5d;
    --badge-green: #72f1b8;
    --badge-blue: #36f9f6;
    --badge-purple: #b893ff;

    --glass-bg: rgba(36, 27, 47, 0.82);
    --glass-bg-hover: rgba(52, 41, 79, 0.9);
    --glass-border: rgba(255, 126, 219, 0.22);
    --glass-border-hover: rgba(54, 249, 246, 0.45);
    --glass-blur: blur(20px);

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows & SynthWave '84 Neon Glow */
    --shadow-card: 0 12px 30px -5px rgba(10, 5, 20, 0.85), 0 0 15px rgba(255, 126, 219, 0.12);
    --shadow-glow: 0 0 25px rgba(255, 126, 219, 0.45);
    --shadow-glow-lg: 0 0 45px rgba(54, 249, 246, 0.35);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
}

body, .netflix-body {
    background-color: var(--bg-base) !important;
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #262936;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #3A3F52;
}

/* ==========================================================================
   Navigation Bar (Desktop & Mobile Glassmorphism)
   ========================================================================== */
.ngoma-navbar, .netflix-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 4px 18px !important;
    background: linear-gradient(180deg, rgba(26, 21, 40, 0.98) 0%, rgba(36, 27, 47, 0.75) 75%, transparent 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 126, 219, 0.15);
    transition: all var(--transition-normal);
}

.ngoma-navbar.scrolled, .netflix-navbar.scrolled {
    background: rgba(26, 21, 40, 0.98) !important;
    border-bottom-color: rgba(255, 126, 219, 0.25) !important;
    box-shadow: 0 8px 24px rgba(10, 5, 20, 0.8), 0 0 16px rgba(255, 126, 219, 0.15) !important;
    padding: 3px 18px !important;
}

.ngoma-nav-container, .netflix-nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ngoma-nav-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Brand Logo - NS Monogram & SynthWave '84 Typography */
.ngoma-logo {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.25s ease;
}

.ngoma-logo:hover {
    transform: scale(1.03);
}

.logo-ns-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 126, 219, 0.5));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: middle;
}

.ngoma-logo:hover .logo-ns-badge {
    transform: rotate(-4deg) scale(1.08);
}

.ns-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-ngoma {
    color: #fe4450 !important;
    background: linear-gradient(135deg, #fe4450 0%, #ff7edb 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 0 15px rgba(255, 42, 133, 0.7)) drop-shadow(0 0 28px rgba(255, 126, 219, 0.35)) !important;
    text-shadow: 0 0 15px rgba(255, 42, 133, 0.7), 0 0 28px rgba(255, 126, 219, 0.35) !important;
}

.logo-stream {
    color: #36f9f6 !important;
    background: linear-gradient(135deg, #36f9f6 0%, #2af5ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 0 15px rgba(54, 249, 246, 0.6)) !important;
    text-shadow: 0 0 15px rgba(54, 249, 246, 0.6) !important;
}

/* Catalog & Content Page Clearance (Titles 100% visible with ample breathing space below navbar) */
.catalog-page {
    padding: 108px 4% 24px !important;
}

/* PWA Floating Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 440px;
    width: calc(100vw - 32px);
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.pwa-install-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.pwa-banner-card {
    background: rgba(36, 27, 47, 0.95);
    border: 1px solid rgba(255, 126, 219, 0.35);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 126, 219, 0.2);
    backdrop-filter: blur(24px);
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwa-banner-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 126, 219, 0.3);
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwa-banner-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-display, 'Outfit', sans-serif);
}

.pwa-banner-desc {
    font-size: 0.8rem;
    color: #d1c7e8;
    line-height: 1.35;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: #848bbd;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.pwa-btn-dismiss:hover {
    color: #ffffff;
}

.pwa-btn-install {
    background: linear-gradient(135deg, #fe4450 0%, #ff7edb 100%);
    border: none;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(254, 68, 80, 0.4);
    transition: all 0.2s ease;
}

.pwa-btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(254, 68, 80, 0.6);
}

@media (max-width: 576px) {
    .pwa-install-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

body.has-bottom-nav .pwa-install-banner {
    bottom: 84px !important;
}

/* iOS PWA Install Modal */
.pwa-ios-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pwa-ios-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.pwa-ios-modal-card {
    background: #181524;
    border: 1px solid rgba(254, 68, 80, 0.35);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px 20px 32px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(254, 68, 80, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-ios-modal-overlay.visible .pwa-ios-modal-card {
    transform: translateY(0);
}

.pwa-ios-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.pwa-ios-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fe4450;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-ios-step-text {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.4;
}

.pwa-ios-step-text strong {
    color: #ffffff;
}

/* Universal PWA Install Modal (SynthWave '84 Edition) */
.pwa-universal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 0;
}

.pwa-universal-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.pwa-universal-modal-card {
    background: #171324;
    border: 1px solid rgba(254, 68, 80, 0.35);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 520px;
    padding: 24px 22px 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(254, 68, 80, 0.2);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.pwa-universal-modal-overlay.visible .pwa-universal-modal-card {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .pwa-universal-modal-overlay {
        align-items: center;
        padding: 20px;
    }
    .pwa-universal-modal-card {
        border-radius: 22px;
        transform: scale(0.92);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .pwa-universal-modal-overlay.visible .pwa-universal-modal-card {
        transform: scale(1);
    }
}

.pwa-tab-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.pwa-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 8px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-tab-btn.active {
    background: linear-gradient(135deg, #ff2a85 0%, #fe4450 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(254, 68, 80, 0.4);
}

.pwa-tab-pane {
    display: none;
}

.pwa-tab-pane.active {
    display: block;
    animation: pwaFadeIn 0.25s ease;
}

@keyframes pwaFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ngoma-nav-install-btn {
    background: rgba(254, 68, 80, 0.15);
    border: 1px solid rgba(254, 68, 80, 0.4);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ngoma-nav-install-btn:hover {
    background: linear-gradient(135deg, #fe4450 0%, #ff7edb 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(254, 68, 80, 0.4);
    transform: translateY(-1px);
}

/* Desktop Nav Menu */
@media (min-width: 992px) {
    .ngoma-nav-menu {
        display: flex;
        align-items: center;
        list-style: none;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .ngoma-nav-menu li {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .ngoma-nav-link {
        font-size: 14.5px;
        font-weight: 500;
        color: var(--text-secondary);
        position: relative;
        padding: 6px 0;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        line-height: 1.4;
        vertical-align: middle;
        transition: all var(--transition-fast);
    }

    .ngoma-nav-link.ngoma-nav-jeunesse {
        background: linear-gradient(135deg, #ff7043, #ffb300);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 600;
    }

    .ngoma-nav-link.ngoma-nav-jeunesse:hover {
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 179, 0, 0.55));
    }

    .ngoma-nav-link:hover {
        color: #36f9f6;
        text-shadow: 0 0 8px rgba(54, 249, 246, 0.5);
    }

    .ngoma-nav-link.active {
        color: #ff7edb;
        text-shadow: 0 0 10px rgba(255, 126, 219, 0.6);
    }
}

.ngoma-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7edb, #36f9f6);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px #36f9f6;
}

/* Right Nav Controls */
.ngoma-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ngoma-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.ngoma-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.ngoma-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--brand-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-base);
    box-shadow: 0 0 8px var(--brand-red-glow);
}

/* Profile Avatar Dropdown */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--brand-red);
}

.ngoma-dropdown {
    background: var(--bg-surface) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
    padding: 8px !important;
    min-width: 220px;
}

.ngoma-dropdown .dropdown-item {
    color: var(--text-secondary) !important;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.ngoma-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    transform: translateX(4px);
}

.ngoma-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin: 6px 0 !important;
}

/* Buttons */
.ngoma-btn, .btn-primary, .netflix-btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.ngoma-btn-primary {
    background: linear-gradient(135deg, #ff2a85 0%, #fe4450 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(255, 42, 133, 0.45);
}

.ngoma-btn-primary:hover {
    background: linear-gradient(135deg, #ff7edb 0%, #ff2a85 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(255, 126, 219, 0.55);
}

.btn-secondary, .netflix-btn-secondary {
    background: rgba(36, 27, 47, 0.8) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(54, 249, 246, 0.35) !important;
    color: #36f9f6 !important;
}

.btn-secondary:hover, .netflix-btn-secondary:hover {
    background: rgba(52, 41, 79, 0.9) !important;
    border-color: #36f9f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(54, 249, 246, 0.35) !important;
}

/* ==========================================================================
   Cinematic Hero Banner (Home & Details)
   ========================================================================== */
.netflix-hero, .cinematic-hero, .netflix-details-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 4% 80px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

.netflix-hero::before, .netflix-details-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-base) 0%, rgba(8, 9, 12, 0.7) 40%, rgba(8, 9, 12, 0.2) 75%, rgba(8, 9, 12, 0.9) 100%),
                radial-gradient(circle at 80% 30%, transparent 0%, rgba(8, 9, 12, 0.6) 70%, var(--bg-base) 100%);
    z-index: 1;
}

.netflix-hero-content, .netflix-details-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInHero 0.8s ease-out;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title, .netflix-details-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta, .netflix-details-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

/* Match & Badges */
.badge-match, .netflix-match-score {
    color: var(--badge-green);
    font-weight: 700;
}

.badge-pill, .netflix-rating-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-white-dim);
    letter-spacing: 0.5px;
}

.badge-4k {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--badge-blue);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
}

.hero-overview, .netflix-details-overview {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white-dim);
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions, .netflix-details-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-play {
    background: linear-gradient(135deg, #ff2a85 0%, #fe4450 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 25px rgba(255, 42, 133, 0.55) !important;
    border: none !important;
    transition: all var(--transition-fast) !important;
}

.btn-hero-play:hover {
    background: linear-gradient(135deg, #ff7edb 0%, #ff2a85 100%) !important;
    transform: scale(1.04) !important;
    box-shadow: 0 6px 30px rgba(255, 126, 219, 0.65) !important;
}

.btn-hero-info {
    background: rgba(36, 27, 47, 0.85) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(54, 249, 246, 0.45) !important;
    color: #36f9f6 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 0 15px rgba(54, 249, 246, 0.25) !important;
    transition: all var(--transition-fast) !important;
}

.btn-hero-info:hover {
    background: rgba(52, 41, 79, 0.95) !important;
    border-color: #36f9f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(54, 249, 246, 0.45) !important;
    transform: scale(1.03) !important;
}

/* ==========================================================================
   Content Sections & Horizontal Carousels
   ========================================================================== */
.content-section, .netflix-section {
    padding: 24px 4%;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.section-explore-link {
    font-size: 13px;
    color: var(--brand-red);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.section-explore-link:hover {
    color: var(--brand-red-hover);
    gap: 10px;
}

.carousel-container {
    position: relative;
    margin: 0 -4%;
    padding: 0 4%;
}

.netflix-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px 0 24px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.netflix-carousel::-webkit-scrollbar {
    display: none;
}

/* Movie & Series Cards */
.netflix-card, .ngoma-card {
    flex: 0 0 calc(16.666% - 14px);
    min-width: 170px;
    max-width: 240px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.netflix-card:hover, .ngoma-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 35px rgba(10, 5, 20, 0.9), 0 0 25px rgba(255, 126, 219, 0.35);
    border-color: #ff7edb;
    z-index: 10;
}

.card-poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    background: #181B24;
    overflow: hidden;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.netflix-card:hover .card-poster {
    transform: scale(1.06);
}

.card-badge-top {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    gap: 4px;
}

.badge-tag {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-premium {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #000000;
    border: none;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 9, 12, 0.95) 0%, rgba(8, 9, 12, 0.4) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    transition: opacity var(--transition-normal);
    z-index: 4;
}

.netflix-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-btn-circle:hover {
    background: #FFFFFF;
    color: #000000;
    transform: scale(1.1);
}

.card-btn-circle.play {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.card-overlay-title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-overlay-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==========================================================================
   TOP 10 Stylized Row
   ========================================================================== */
.top10-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0 24px;
    scrollbar-width: none;
}

.top10-card {
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    cursor: pointer;
}

.top10-rank {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    font-size: clamp(75px, 9vw, 115px);
    font-weight: 900;
    line-height: 0.82;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #FFFFFF 15%, #d1c7e8 55%, #4a3b68 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #FFFFFF;
    margin-right: -10px;
    z-index: 2;
    user-select: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
    transition: all 0.25s ease;
    min-width: 52px;
    text-align: center;
    display: inline-block;
}

.top10-card:hover .top10-rank {
    background: linear-gradient(180deg, #ff7edb 0%, #fe4450 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(254, 68, 80, 0.65));
    transform: translateY(-2px);
}

.top10-card .netflix-card {
    min-width: 160px;
    max-width: 200px;
    z-index: 1;
}

/* ==========================================================================
   CAST & CREW COMPONENT (High Priority Feature)
   ========================================================================== */
.cast-section {
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.cast-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0 16px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.cast-carousel::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex: 0 0 130px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding: 12px 8px;
    scroll-snap-align: start;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.cast-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-red);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.cast-avatar-wrapper, .cast-photo-frame, .cast-photo-circle {
    width: 105px;
    height: 140px;
    border-radius: 10px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    background: #181524;
    border: 1px solid rgba(255, 126, 219, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.cast-avatar, .cast-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.cast-name {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cast-character {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Series Seasons & Episodes List
   ========================================================================== */
.episodes-section {
    padding: 30px 0;
}

.season-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.season-select-custom {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    outline: none;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.episode-card {
    display: flex;
    gap: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--transition-fast);
    cursor: pointer;
    align-items: center;
}

.episode-card:hover {
    background: var(--bg-card);
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
}

.episode-number-badge {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 32px;
    text-align: center;
}

.episode-thumb-wrapper {
    position: relative;
    width: 170px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #161820;
    flex-shrink: 0;
}

.episode-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-play-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.episode-card:hover .episode-play-hover {
    opacity: 1;
}

.episode-info {
    flex: 1;
}

.episode-info-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.episode-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.episode-duration {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.episode-synopsis {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Catalog Filter Chips & Grids (Films & Séries)
   ========================================================================== */
.catalog-header {
    padding: 0 !important;
    margin: 0 0 6px 0 !important;
}

.catalog-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.genre-filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.genre-filter-row::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.genre-pill:hover, .genre-pill.active {
    background: var(--brand-red);
    color: #FFFFFF;
    border-color: var(--brand-red);
    box-shadow: 0 4px 15px var(--brand-red-glow);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 4% 120px; /* Augmenté pour éviter que le footer couvre le contenu */
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001; /* Au-dessus du footer */
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 6px 4px;
}

.mobile-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1 1 0;
    max-width: 68px;
    padding: 6px 2px;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.mobile-nav-item i {
    font-size: 18px;
}

.mobile-nav-item.active {
    color: var(--brand-red);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .desktop-nav,
    .ngoma-nav-menu,
    ul.ngoma-nav-menu,
    .navbar-live-search-box,
    .navbar-login-btn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .hide-desktop {
        display: inline-flex !important;
    }
    .mobile-bottom-nav {
        display: block !important;
    }
    body {
        padding-bottom: 0px;
    }
    body.has-bottom-nav {
        padding-bottom: 70px;
    }
    .netflix-card {
        flex: 0 0 calc(25% - 12px);
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .netflix-card {
        flex: 0 0 calc(33.333% - 10px);
        min-width: 120px;
    }
    .hero-title, .netflix-details-title {
        font-size: 32px;
    }
    .episode-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .episode-thumb-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .netflix-card {
        flex: 0 0 calc(45% - 8px);
        min-width: 110px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ==========================================================================
   SYNTHWAVE '84 FLOATING TOAST NOTIFICATIONS (AUTO-DISMISSING & GLOWING)
   ========================================================================== */
.ngoma-toast-stack {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100vw - 48px);
}

.ngoma-toast-banner {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(36, 27, 47, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 126, 219, 0.3);
    border-radius: 12px;
    padding: 14px 16px 16px 16px;
    box-shadow: 0 15px 35px rgba(10, 5, 20, 0.85), 0 0 25px rgba(255, 126, 219, 0.2);
    overflow: hidden;
    animation: toastSlideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ngoma-toast-banner.dismissing {
    animation: toastSlideOutRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(60px) scale(0.92);
    }
}

.toast-glow-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    pointer-events: none;
    opacity: 0.2;
    background: radial-gradient(circle at left, #ff7edb 0%, transparent 70%);
}

.toast-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: rgba(255, 126, 219, 0.15);
    border: 1px solid rgba(255, 126, 219, 0.35);
    color: #ff7edb;
    box-shadow: 0 0 12px rgba(255, 126, 219, 0.3);
}

.toast-success .toast-icon-wrap {
    background: rgba(54, 249, 246, 0.15);
    border-color: rgba(54, 249, 246, 0.4);
    color: #36f9f6;
    box-shadow: 0 0 15px rgba(54, 249, 246, 0.35);
}

.toast-success {
    border-color: rgba(54, 249, 246, 0.35);
    box-shadow: 0 15px 35px rgba(10, 5, 20, 0.85), 0 0 25px rgba(54, 249, 246, 0.25);
}

.toast-success .toast-glow-accent {
    background: radial-gradient(circle at left, #36f9f6 0%, transparent 70%);
}

.toast-error, .toast-danger {
    border-color: rgba(254, 68, 80, 0.4);
    box-shadow: 0 15px 35px rgba(10, 5, 20, 0.85), 0 0 25px rgba(254, 68, 80, 0.25);
}

.toast-error .toast-icon-wrap, .toast-danger .toast-icon-wrap {
    background: rgba(254, 68, 80, 0.15);
    border-color: rgba(254, 68, 80, 0.4);
    color: #fe4450;
    box-shadow: 0 0 15px rgba(254, 68, 80, 0.35);
}

.toast-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: var(--font-display);
}

.toast-success .toast-title {
    color: #36f9f6;
    text-shadow: 0 0 8px rgba(54, 249, 246, 0.4);
}

.toast-error .toast-title {
    color: #fe4450;
    text-shadow: 0 0 8px rgba(254, 68, 80, 0.4);
}

.toast-message-text {
    font-size: 12.5px;
    color: #d1c7e8;
    line-height: 1.35;
}

.toast-dismiss-btn {
    background: none;
    border: none;
    color: #848bbd;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.toast-dismiss-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.toast-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff7edb, #36f9f6);
    box-shadow: 0 0 8px #36f9f6;
}

.toast-success .toast-progress-fill {
    background: linear-gradient(90deg, #36f9f6, #72f1b8);
    box-shadow: 0 0 8px #36f9f6;
}

.toast-error .toast-progress-fill {
    background: linear-gradient(90deg, #ff2a85, #fe4450);
    box-shadow: 0 0 8px #fe4450;
}

/* ==========================================================================
   Navbar Login Button - Compact & Lifted
   ========================================================================== */
.navbar-login-btn {
    padding: 5px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
    margin-top: -3px !important;
    margin-bottom: 3px !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 3px 12px rgba(255, 42, 133, 0.45) !important;
    transition: all 0.2s ease !important;
}

.navbar-login-btn:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(255, 126, 219, 0.6) !important;
}

/* ==========================================================================
   Streamlined Compact Footer
   ========================================================================== */
.ngoma-footer.ngoma-footer-compact {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 21, 40, 0.95) 0%, #120e1c 100%) !important;
    border-top: 1px solid rgba(255, 126, 219, 0.2) !important;
    padding: 16px 4% !important;
    color: #9d95af !important;
    font-size: 13.5px !important;
    z-index: 1;
    clear: both;
    margin-top: 16px !important;
}

@media (max-width: 768px) {
    .ngoma-footer.ngoma-footer-compact {
        padding: 14px 4% calc(85px + var(--ns-safe-bottom, 0px)) !important;
        margin-top: 8px !important;
        z-index: 1;
        position: relative;
    }
}

.ngoma-footer-compact-inner {
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-compact-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-compact-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    font-family: var(--font-display, 'Inter', sans-serif);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.footer-compact-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.footer-compact-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-compact-link {
    color: #b8b0c8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-compact-link:hover {
    color: #36f9f6 !important;
    text-shadow: 0 0 8px rgba(54, 249, 246, 0.6);
}

.footer-compact-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn.compact {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 126, 219, 0.2);
    color: #b8b0c8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-btn.compact:hover {
    background: linear-gradient(135deg, #ff2a85, #fe4450);
    border-color: #ff7edb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 68, 80, 0.45);
}

@media (max-width: 900px) {
    .ngoma-footer-compact-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .footer-compact-brand {
        flex-direction: column;
        gap: 4px;
    }
    .footer-compact-nav {
        gap: 16px;
    }
}

/* Neutralisation définitive des notifications de mise à jour intempestives */
.pwa-update-toast,
#pwaUpdateToast,
.pwa-update-card {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Mode curseur cache sur inactivite */
html.hide-cursor,
html.hide-cursor *,
body.hide-cursor,
body.hide-cursor *,
.hide-cursor,
.hide-cursor * {
    cursor: none !important;
}

/* === NETFLIX A-TO-Z SYNTHWAVE SYSTEM 2026 === */
:root {
    --ns-bg-primary: #1a1528;
    --ns-bg-deep: #0e0b16;
    --ns-bg-card: #241b2f;
    --ns-accent-coral: #fe4450;
    --ns-accent-cyan: #36f9f6;
    --ns-accent-pink: #ff7edb;
    --ns-accent-mint: #72f1b8;
    --ns-accent-gold: #ffb300;
}

/* Sticky Glassmorphic Filter Bar on Catalog Pages (Films, Series, Animes, Jeunesse) */
.catalog-filter-bar,
.filter-bar-container,
.movies-filter-bar,
.series-filter-bar {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(14, 11, 22, 0.86) !important;
    border: 1px solid rgba(255, 126, 219, 0.18) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

/* Netflix Hover Card Action Buttons */
.card-btn-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    background: rgba(20, 16, 32, 0.78);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}
.card-btn-circle:hover {
    transform: scale(1.12);
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 14px rgba(54, 249, 246, 0.45);
}
.card-btn-circle.play {
    background: #ffffff;
    color: #0e0b16;
    border-color: #ffffff;
}
.card-btn-circle.play:hover {
    background: #fe4450;
    color: #ffffff;
    border-color: #fe4450;
    box-shadow: 0 0 16px rgba(254, 68, 80, 0.65);
}
.card-btn-circle.is-fav {
    border-color: #72f1b8;
    color: #72f1b8;
}

/* Quick Details Modal Netflix Glassmorphic Upgrade */
.quick-modal-dialog {
    background: linear-gradient(180deg, #1f1830 0%, #0e0b16 100%) !important;
    border: 1px solid rgba(255, 126, 219, 0.28) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.92), 0 0 35px rgba(254, 68, 80, 0.2) !important;
    border-radius: 16px !important;
}


/* === NETFLIX 14 PAGES COMPLETE POLISH === */
/* Filter Pills Bar on Catalog Pages */
.pills-filter-scroll-wrap {
    position: relative !important;
    top: auto !important;
    z-index: 20;
    margin-top: 6px !important;
    margin-bottom: 28px !important;
    padding: 8px 14px !important;
    border-radius: 14px;
    background: rgba(14, 11, 22, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 126, 219, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Catalog Cards Hover Glow */
.catalog-card:hover {
    transform: translateY(-8px) scale(1.04) !important;
    border-color: rgba(254, 68, 80, 0.45) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(254, 68, 80, 0.25) !important;
    z-index: 10;
}

/* Details Page Episode Row & Cast Cards */
.episode-card-item,
.episode-row-card {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.episode-card-item:hover,
.episode-row-card:hover {
    transform: translateY(-2px);
    border-color: rgba(54, 249, 246, 0.45) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65), 0 0 16px rgba(54, 249, 246, 0.18) !important;
}

/* Auth & Profile Glassmorphic Cards */
.auth-card,
.login-card,
.register-card,
.profile-card {
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    border: 1px solid rgba(255, 126, 219, 0.22) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(254, 68, 80, 0.14) !important;
}


/* === NETFLIX A-TO-Z OFFICIAL VISUAL SYSTEM (SYNTHWAVE PALETTE) === */
.nf-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.nf-lockup-badge {
    background: linear-gradient(135deg, #fe4450 0%, #ff2a6d 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(254, 68, 80, 0.65);
}
.nf-lockup-type {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #d1d5db;
    text-transform: uppercase;
}
.nf-top10-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}
.nf-top10-sq {
    background: #fe4450;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.05;
    padding: 3px 5px;
    border-radius: 3px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(254, 68, 80, 0.5);
}
.nf-maturity-right {
    position: absolute;
    right: 0;
    bottom: 38px;
    z-index: 5;
    background: rgba(14, 11, 22, 0.82);
    backdrop-filter: blur(8px);
    border-left: 3px solid #36f9f6;
    padding: 6px 28px 6px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.p-card-ns {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 9;
    background: linear-gradient(135deg, #fe4450 0%, #ff2a6d 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}
.p-card-top10-corner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
    background: #fe4450;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 900;
    padding: 3px 6px;
    border-bottom-left-radius: 5px;
    line-height: 1.05;
    text-align: center;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}
.p-card-ribbon {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    background: #fe4450;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    letter-spacing: 0.2px;
}
.p-card-ribbon.ribbon-amber {
    background: #ffb300;
    color: #0e0b16;
}
.top10-big-rank {
    color: #0e0b16 !important;
    -webkit-text-stroke: 2.5px #36f9f6 !important;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.92)) !important;
}
.top10-item:hover .top10-big-rank {
    -webkit-text-stroke: 2.5px #fe4450 !important;
    filter: drop-shadow(0 0 18px rgba(254, 68, 80, 0.7)) !important;
}
.nf-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 0 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 126, 219, 0.16);
}
.nf-subheader-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.nf-cat-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}
.nf-genre-dropdown {
    background: #0e0b16;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
}
.catalog-type-pill {
    display: none !important;
}
@media (max-width: 768px) {
    .nf-maturity-right {
        bottom: 16px;
        padding: 4px 14px 4px 8px;
        font-size: 11px;
    }
    .home-hero {
        margin: 8px 14px 14px !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        overflow: hidden !important;
        min-height: 410px !important;
        padding: 160px 18px 22px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .home-hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .hero-badges-row {
        justify-content: center !important;
    }
    .hero-btns {
        flex-direction: row !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .hero-btns > a, .hero-btns > button {
        flex: 1 1 auto !important;
    }
}

/* Fix Définitif Badges de Genres Proportionnés */
.genre-badge, .genre-pill, .genre-tag, .genre-tag-item, .detail-genres a, .detail-genres span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 30px !important;
    padding: 4px 14px !important;
    border-radius: 999px !important;
    font-size: 0.80rem !important;
    line-height: 1.1 !important;
    vertical-align: middle !important;
}

/* Bouton 'Tout Effacer' dans l'Historique */
.clear-history-btn, .cw-clear-all-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600;
    border-radius: 999px !important;
    border: 1px solid rgba(254, 68, 80, 0.4) !important;
    background: rgba(254, 68, 80, 0.12) !important;
    color: #fe4450 !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.clear-history-btn:hover, .cw-clear-all-btn:hover {
    background: rgba(254, 68, 80, 0.25) !important;
    border-color: #fe4450 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
