/* ========================================
           MATCHFLIX - CINEMATIC DARK THEME
           Pure black, solid colors, no gradients
        ======================================== */
        
        :root {
            /* Core Colors - Solid Only */
            --color-bg-pure: #000000;
            --color-bg-surface: #0F0F0F;
            --color-bg-elevated: #1A1A1A;
            --color-border: #27272A;
            
            /* Accent Colors - Flat, Bold */
            --color-primary: #DC2626;
            --color-accent-gold: #FBBF24;
            --color-accent-blue: #3B82F6;
            --color-success: #22C55E;
            --color-error: #EF4444;
            --color-warning: #F59E0B;
            
            /* Text Colors */
            --color-text-white: #FFFFFF;
            --color-text-light: #D1D5DB;
            --color-text-muted: #6B7280;
            --color-text-dark: #4B5563;
        }

        * {
            box-sizing: border-box;
        }

        html, body {
            overflow-x: hidden;
        }

        body {
            background-color: var(--color-bg-pure);
            color: var(--color-text-white);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ===== NAVBAR ===== */
        .navbar {
            background-color: rgba(0, 0, 0, 0.95);
            border-bottom: 1px solid var(--color-border);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Logo */
        .logo {
            font-size: 1.5rem;
            font-weight: 900;
            color: var(--color-primary);
            text-decoration: none;
            letter-spacing: -0.02em;
            transition: opacity 0.2s ease;
        }

        .logo:hover {
            opacity: 0.8;
        }

        /* Nav Links */
        .nav-links {
            display: none;
            align-items: center;
            gap: 2rem;
        }

        @media (min-width: 768px) {
            .nav-links {
                display: flex;
            }
        }

        .nav-link {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
            letter-spacing: 0.01em;
        }

        .nav-link:hover {
            color: var(--color-text-white);
        }

        /* Nav Right */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-shrink: 0;
        }

        /* Hide desktop-only elements on mobile */
        @media (max-width: 767px) {
            .nav-right .user-profile,
            .nav-right .auth-link[data-i18n="logout"],
            .nav-right .notification-btn {
                display: none;
            }
        }

        /* Notification Icon */
        .notification-btn {
            position: relative;
            color: var(--color-text-muted);
            transition: color 0.2s ease;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .notification-btn:hover {
            color: var(--color-text-white);
        }

        .notification-badge {
            position: absolute;
            top: 0;
            right: 0;
            background-color: var(--color-primary);
            color: var(--color-text-white);
            font-size: 0.625rem;
            font-weight: 700;
            width: 1.125rem;
            height: 1.125rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* User Profile */
        .user-profile {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--color-text-light);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .user-profile:hover {
            color: var(--color-text-white);
        }

        .user-avatar {
            width: 2rem;
            height: 2rem;
            background-color: var(--color-primary);
            color: var(--color-text-white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
            overflow: hidden;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Auth Links */
        .auth-link {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .auth-link:hover {
            color: var(--color-text-white);
        }

        /* ===== BUTTONS ===== */
        .btn-primary {
            background-color: var(--color-primary);
            color: var(--color-text-white);
            padding: 0.625rem 1.25rem;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: none;
            cursor: pointer;
            transition: opacity 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary:hover {
            opacity: 0.9;
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--color-text-light);
            padding: 0.625rem 1.25rem;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: 1px solid var(--color-border);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-secondary:hover {
            border-color: var(--color-primary);
            color: var(--color-text-white);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--color-text-muted);
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            border: 1px solid var(--color-border);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }

        .btn-outline:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        /* ===== CARDS ===== */
        .card {
            background-color: var(--color-bg-surface);
            border: 1px solid var(--color-border);
        }

        /* ===== MOVIE CARDS ===== */
        .movie-card {
            position: relative;
            background-color: var(--color-bg-surface);
            border: 1px solid transparent;
            overflow: hidden;
            transition: transform 0.2s ease, border-color 0.2s ease;
            cursor: pointer;
        }

        .movie-card:hover {
            transform: translateY(-4px);
            border-color: var(--color-primary);
        }

        .movie-poster {
            width: 100%;
            aspect-ratio: 2/3;
            object-fit: cover;
            display: block;
            background-color: var(--color-bg-elevated);
        }

        /* ===== SECTION TITLES ===== */
        .section-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-muted);
            margin-bottom: 1rem;
        }

        .section-title-large {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--color-text-white);
            text-transform: uppercase;
            letter-spacing: -0.01em;
            margin-bottom: 1.5rem;
        }

        /* ===== TEXT UTILITIES ===== */
        .text-primary {
            color: var(--color-primary);
        }

        .text-gold {
            color: var(--color-accent-gold);
        }

        .text-blue {
            color: var(--color-accent-blue);
        }

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

        /* ===== INPUTS ===== */
        .input-field {
            width: 100%;
            background-color: var(--color-bg-pure);
            border: 1px solid var(--color-border);
            color: var(--color-text-white);
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            transition: border-color 0.2s ease;
        }

        .input-field::placeholder {
            color: var(--color-text-dark);
        }

        .input-field:focus {
            outline: none;
            border-color: var(--color-primary);
        }

        /* ===== TOAST NOTIFICATIONS ===== */
        .toast-container {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .toast {
            min-width: 300px;
            max-width: 400px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease-out;
            border: 1px solid;
        }

        .toast-success {
            background-color: #064E3B;
            border-color: var(--color-success);
        }

        .toast-error {
            background-color: #7F1D1D;
            border-color: var(--color-error);
        }

        .toast-info {
            background-color: #1E3A8A;
            border-color: var(--color-accent-blue);
        }

        .toast-warning {
            background-color: #78350F;
            border-color: var(--color-warning);
        }

        .toast-icon {
            font-size: 1.25rem;
        }

        .toast-message {
            flex: 1;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--color-text-white);
        }

        .toast-close {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            font-size: 1.25rem;
            padding: 0;
            transition: color 0.2s;
        }

        .toast-close:hover {
            color: white;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(100px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOut {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(100px);
            }
        }

        .toast.hiding {
            animation: slideOut 0.3s ease-out forwards;
        }

        /* ===== ANIMATIONS ===== */
        .fade-in {
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== FOOTER ===== */
        .footer {
            border-top: 1px solid var(--color-border);
            margin-top: 5rem;
            padding: 3rem 0;
            background-color: var(--color-bg-pure);
        }

        .footer-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .footer-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-white);
            margin-bottom: 1rem;
        }

        .footer-text {
            font-size: 0.875rem;
            color: var(--color-text-muted);
            line-height: 1.6;
        }

        .footer-link {
            font-size: 0.875rem;
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.2s ease;
            display: block;
            margin-bottom: 0.5rem;
        }

        .footer-link:hover {
            color: var(--color-text-white);
        }

        .footer-bottom {
            border-top: 1px solid var(--color-border);
            padding-top: 2rem;
            text-align: center;
        }

        .footer-copyright {
            font-size: 0.75rem;
            color: var(--color-text-muted);
        }

        .tmdb-attribution {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            padding: 1.5rem 0;
            border-top: 1px solid var(--color-border);
        }

        @media (min-width: 640px) {
            .tmdb-attribution {
                flex-direction: row;
            }
        }

        .tmdb-logo {
            height: 1.5rem;
            opacity: 0.7;
            transition: opacity 0.2s ease;
        }

        .tmdb-logo:hover {
            opacity: 1;
        }

        .tmdb-text {
            font-size: 0.75rem;
            color: var(--color-text-muted);
            max-width: 24rem;
            text-align: center;
        }

        /* ===== SETTINGS TOGGLE ===== */
        .settings-toggle-group {
            display: flex;
            gap: 0.5rem;
        }

        .settings-toggle-btn {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid var(--color-border);
            background-color: var(--color-bg-surface);
            color: var(--color-text-muted);
        }

        .settings-toggle-btn:hover {
            border-color: var(--color-accent-blue);
            color: var(--color-text-white);
        }

        .settings-toggle-btn.active {
            background-color: var(--color-accent-blue);
            border-color: var(--color-accent-blue);
            color: white;
        }

        /* ===== UTILITY CLASSES ===== */
        .hidden {
            display: none !important;
        }

        .max-w-7xl {
            max-width: 80rem;
        }

        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }

        .px-6 {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }

        .py-4 {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }

        .py-12 {
            padding-top: 3rem;
            padding-bottom: 3rem;
        }

        .mb-4 {
            margin-bottom: 1rem;
        }

        .mb-6 {
            margin-bottom: 1.5rem;
        }

        .mb-8 {
            margin-bottom: 2rem;
        }

        .min-h-screen {
            min-height: 100vh;
        }

        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: flex;
            padding: 0.5rem;
            background: none;
            border: none;
            color: var(--color-text-muted);
            cursor: pointer;
        }

        @media (min-width: 768px) {
            .mobile-menu-btn {
                display: none;
            }
        }

        .mobile-menu-btn:hover {
            color: var(--color-text-white);
        }

        /* ===== MOBILE MENU ===== */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -280px;
            width: 280px;
            height: 100%;
            background-color: var(--color-bg-surface);
            border-left: 1px solid var(--color-border);
            z-index: 999;
            transition: right 0.3s ease;
            overflow-y: auto;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--color-border);
        }

        .mobile-menu-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-primary);
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--color-text-muted);
            cursor: pointer;
            padding: 0.5rem;
            transition: color 0.2s ease;
        }

        .mobile-menu-close:hover {
            color: var(--color-text-white);
        }

        .mobile-menu-links {
            padding: 1rem 0;
        }

        .mobile-menu-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.5rem;
            color: var(--color-text-light);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .mobile-menu-link:hover {
            background-color: var(--color-bg-elevated);
            color: var(--color-text-white);
        }

        .mobile-menu-link svg {
            width: 20px;
            height: 20px;
            color: var(--color-text-muted);
        }

        .mobile-menu-divider {
            height: 1px;
            background-color: var(--color-border);
            margin: 0.5rem 1.5rem;
        }

        .mobile-menu-user {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--color-border);
        }

        .mobile-menu-user .user-avatar {
            width: 2.5rem;
            height: 2.5rem;
        }

        .mobile-menu-user-info {
            display: flex;
            flex-direction: column;
        }

        .mobile-menu-username {
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--color-text-white);
        }

        .mobile-menu-email {
            font-size: 0.75rem;
            color: var(--color-text-muted);
        }

        @media (min-width: 768px) {
            .mobile-menu,
            .mobile-menu-overlay {
                display: none !important;
            }
        }
