/* ==========================================================================
   NGOMA STREAM - Ultra-Premium Streaming Platform Design System
   Inspired by Netflix, HBO Max & Apple TV+ Standards
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

: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: 14px 4%;
    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 transparent;
    transition: all var(--transition-normal);
}

.ngoma-navbar.scrolled, .netflix-navbar.scrolled {
    background: rgba(26, 21, 40, 0.96) !important;
    border-bottom-color: rgba(255, 126, 219, 0.25) !important;
    box-shadow: 0 10px 30px rgba(10, 5, 20, 0.8), 0 0 20px rgba(255, 126, 219, 0.15) !important;
    padding: 10px 4%;
}

.ngoma-nav-container, .netflix-nav-container {
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ngoma-nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

/* 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;
    line-height: 1;
    vertical-align: middle;
    text-shadow: 0 0 15px rgba(255, 42, 133, 0.7), 0 0 30px rgba(255, 126, 219, 0.4);
}

.logo-stream {
    color: #36f9f6;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    text-shadow: 0 0 15px rgba(54, 249, 246, 0.6);
}

/* 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;
    }
}

/* Desktop Nav Menu */
.ngoma-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.ngoma-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    transition: all var(--transition-fast);
}

.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: 100px 4% 20px;
}

.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,
    .navbar-login-btn {
        display: 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;
    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: 18px 4% !important;
    color: #9d95af !important;
    font-size: 13.5px !important;
    z-index: 1;
    clear: both;
}

@media (max-width: 768px) {
    .ngoma-footer.ngoma-footer-compact {
        padding: 20px 4% 95px !important; /* Clears mobile bottom navigation with extra space */
        margin-top: 20px;
        z-index: 1; /* Réduire le z-index pour éviter de couvrir le contenu */
        position: relative; /* S'assurer que le footer est dans le flux normal */
    }
}

.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;
    }
}