﻿/* Font loaded via <link> in <head> for better performance */

        /* ── COOKIE BANNER ── */
        #xbc_gdpr_bnr {
            position: fixed !important;
            bottom: 24px !important;
            left: 50% !important;
            top: auto !important;
            right: auto !important;
            transform: translateX(-50%) !important;
            width: calc(100% - 48px) !important;
            max-width: 600px !important;
            background: rgba(24, 24, 27, 0.97) !important;
            border: 1px solid rgba(229, 9, 20, 0.3) !important;
            border-radius: 14px !important;
            padding: 18px 20px !important;
            z-index: 2147483647 !important;
            gap: 16px !important;
            align-items: center !important;
            justify-content: space-between !important;
            flex-wrap: wrap !important;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
            backdrop-filter: blur(12px) !important;
            font-family: Inter, sans-serif !important;
        }
        #xbc_gdpr_bnr p {
            margin: 0;
            font-size: 13px;
            color: rgba(255,255,255,0.75);
            line-height: 1.5;
            flex: 1;
            min-width: 200px;
        }
        #xbc_gdpr_bnr p a {
            color: #E50914;
            text-decoration: none;
        }
        .bc-cookie-btns {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }
        .bc-cookie-btns button {
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .bc-cookie-btns button:hover { opacity: 0.85; }
        #bc-accept-btn {
            background: #E50914;
            color: #fff;
        }
        #bc-reject-btn {
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.7);
        }

        :root {
            --bg-dark: #09090b;
            --panel-bg: rgba(24, 24, 27, 0.75);
            --accent-color: #E50914; 
            --accent-hover: #b20710;
            --text-main: #fcfcfc;
            --text-muted: #a1a1aa;
            --font-main: 'Inter', sans-serif;
        }

        * { box-sizing: border-box; }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-dark);
            color: var(--text-main);
            display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
            min-height: 100vh; margin: 0; padding: 0;
            overflow-x: hidden; letter-spacing: -0.01em; padding-top: 80px; 
        }

        button, input, select, textarea { font-family: var(--font-main); outline: none; }
        
        #toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
        .toast { background: rgba(24, 24, 27, 0.95); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 16px 24px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 40px rgba(0,0,0,0.6); backdrop-filter: blur(12px); animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; display: flex; align-items: center; gap: 12px; }
        .toast svg { flex-shrink: 0; }
        .toast.success { border-left: 3px solid #10b981; }
        .toast.error { border-left: 3px solid #ef4444; }
        .toast.info { border-left: 3px solid var(--accent-color); }
        @keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes fadeOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

        header.navbar { width: 100vw; padding: 0 40px; height: 76px; display: flex; justify-content: space-between; align-items: center; background: rgba(9, 9, 11, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: fixed; top: 0; left: 0; z-index: 50; }
        
        .nav-left { display: flex; flex-direction: row; align-items: center; gap: 16px; height: 100%; flex-shrink: 0; }
        .nav-left-tools { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-left: 4px; }
        .nav-tool-wrap { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
        .nav-icon-btn, #langPickerBtn.nav-icon-btn { background: transparent; border: none; color: rgba(255,255,255,0.55); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s, background 0.2s; padding: 0; flex-shrink: 0; }
        .nav-icon-btn:hover, #langPickerBtn.nav-icon-btn:hover { color: white; background: transparent; }
        .nav-icon-btn svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
        .dropdown-menu.lang-dropdown-left, .dropdown-menu.theme-picker-dropdown-left { right: auto; left: 0; }
        @media (max-width: 600px) {
            .nav-left { gap: 10px; }
            .nav-left-tools { gap: 4px; margin-left: 2px; }
            .nav-icon-btn, #langPickerBtn.nav-icon-btn { width: 28px; height: 28px; }
            .nav-icon-btn svg { width: 16px; height: 16px; }
        }

        .nav-brand { font-size: 24px; font-weight: 900; color: white; display: flex; align-items: center; gap: 10px; cursor: pointer; letter-spacing: -0.5px; transition: all 0.3s; }
        .nav-brand span { color: var(--accent-color); transition: color 0.3s; }
        .nav-brand svg { stroke: var(--accent-color); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 0.3s; }
        .nav-brand:hover svg { transform: rotate(15deg) scale(1.15); }
        .nav-brand:hover { opacity: 0.9; }

        .dropdown-menu { position: absolute; top: calc(100% + 15px); right: 0; background: rgba(24, 24, 27, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 8px; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,0.8); display: none; animation: fadeIn 0.2s ease; }
        /* display intentionally omitted here — .dropdown-menu sets display:none,
           and toggleDropdown() sets inline display:flex when opening. */
        .theme-picker-dropdown { flex-direction: row; gap: 8px; padding: 8px 12px; border-radius: 20px; align-items: center; white-space: nowrap; }
        .theme-dot { width: 14px; height: 14px; min-width: 14px; min-height: 14px; border-radius: 50%; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 2px solid transparent; flex-shrink: 0; aspect-ratio: 1 / 1; }
        .theme-dot:hover { transform: scale(1.25); box-shadow: 0 0 12px rgba(255,255,255,0.3); }
        .theme-dot.active { border-color: white; transform: scale(1.15); box-shadow: 0 0 12px currentColor;}

        .profile-dropdown { flex-direction: column; min-width: 180px; padding: 8px;}
        .profile-dropdown button { background: transparent; color: white; border: none; padding: 12px 16px; text-align: left; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); display: block; width: 100%; letter-spacing: 0.3px; }
        .profile-dropdown button:hover { background: rgba(255,255,255,0.08); color: var(--accent-color); padding-left: 20px; }
        .profile-dropdown button.danger:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding-left: 20px; }

        /* ── LANG PICKER ── (icon-only; old text-based styles removed) */
        .lang-dropdown { flex-direction: column; min-width: 170px; padding: 6px; right: 0; top: calc(100% + 12px); }
        .lang-dropdown-item { padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; display: flex; align-items: center; gap: 10px; font-family: var(--font-main); }
        .lang-dropdown-item:hover { background: rgba(255,255,255,0.08); color: white; }
        .lang-dropdown-item.active { color: var(--accent-color); background: rgba(229,9,20,0.08); }
        .lang-dropdown-item .lang-code { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; min-width: 26px; }

        .nav-center { display: flex; background: rgba(255,255,255,0.05); border-radius: 30px; padding: 4px; gap: 2px; border: 1px solid rgba(255,255,255,0.08); height: 44px; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
        .cat-btn { background: transparent; border: none; color: var(--text-muted); padding: 0 24px; height: 100%; font-size: 14px; font-weight: 600; border-radius: 26px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; align-items: center; justify-content: center; letter-spacing: 0.2px; }
        .cat-btn:hover:not(.active) { color: white; background: rgba(255,255,255,0.08); }
        .cat-btn.active { background: var(--accent-color); color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.3); font-weight: 700; }

        .nav-right { display: flex; gap: 16px; align-items: center; height: 100%; }
        .btn-nav-text { background: transparent; color: var(--text-muted); border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.2s ease; padding: 0; display: flex; align-items: center; gap: 6px; }
        .btn-nav-text:hover { color: white; }
        .btn-nav-primary { background: white; color: var(--bg-dark); border: none; padding: 10px 20px; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 14px; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
        .btn-nav-primary:hover { background: #e4e4e7; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.2);}
        
        .user-profile { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.6); padding: 4px 16px 4px 4px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s; height: 42px; cursor: pointer; }
        .user-profile:hover { border-color: rgba(255,255,255,0.2); background: rgba(0,0,0,0.8); }
        .user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-color); background: rgba(255,255,255,0.1); }
        .user-info { display: flex; flex-direction: column; justify-content: center; }
        .user-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 2px;}

        @media (max-width: 950px) { .nav-txt { display: none; } header.navbar { padding: 12px 20px; } .nav-center { display: none; } }
        @media (max-width: 600px) {
            header.navbar { padding: 0 14px; height: 60px; }
            .nav-brand { font-size: 18px; gap: 7px; }
            .nav-right { gap: 8px; }
            .btn-nav-primary { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
            body { padding-top: 60px; }

            /* Detail sayfası mobil */
            .show-header { flex-direction: column; align-items: flex-start; gap: 16px; }
            #poster { width: 110px !important; }
            .show-info h2 { font-size: 20px !important; }
            .airing-info { font-size: 11px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
            #actionBtnsContainer { flex-direction: column !important; gap: 8px !important; }
            .btn-save { padding: 12px 16px !important; font-size: 14px !important; }
            .btn-trailer { padding: 12px 16px !important; font-size: 14px !important; }
            .stats-grid { gap: 10px; }
            .stat-value { font-size: 18px !important; }

            /* Container mobil */
            .container { padding: 20px 16px !important; border-radius: 16px !important; }
        }
        @media (max-width: 400px) {
            .btn-nav-text[onclick*="goHome"],
            .btn-nav-text[onclick*="openMyList"],
            .btn-nav-text[onclick*="openCalendar"] { display: none; }
        }

        /* ── MOBILE BOTTOM NAV ── */
        .bottom-nav { display: none; }

        @media (max-width: 600px) {
            body { padding-bottom: 75px !important; }
            .btn-nav-text[onclick*="goHome"],
            .btn-nav-text[onclick*="openMyList"],
            .btn-nav-text[onclick*="openCalendar"] { display: none !important; }
            .bottom-nav {
                display: flex;
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                z-index: 1000;
                background: rgba(9, 9, 11, 0.92);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-top: 1px solid rgba(255,255,255,0.08);
                justify-content: space-around;
                align-items: center;
                padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
                gap: 0;
            }
            .bottom-nav-btn {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 4px;
                background: none;
                border: none;
                color: var(--text-muted);
                cursor: pointer;
                padding: 6px 0;
                transition: color 0.2s;
                font-family: var(--font-main);
            }
            .bottom-nav-btn:active { transform: scale(0.92); }
            .bottom-nav-btn.active { color: var(--accent-color); }
            .bottom-nav-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
            .bottom-nav-btn span { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
        }

        .background-container { position: fixed; top: -10vh; left: -10vw; width: 120vw; height: 120vh; z-index: -2; display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; align-content: center; opacity: 0.35; transform: rotate(-4deg) scale(1.1); pointer-events: none; transition: opacity 0.8s ease; filter: grayscale(20%); }
        .background-container img { width: 140px; height: 210px; border-radius: 4px; object-fit: cover; animation: fadeInImg 1s ease; box-shadow: 0 8px 20px rgba(0,0,0,0.8); content-visibility: auto; }
        @keyframes fadeInImg { from{opacity:0; transform: scale(0.95);} to{opacity:1; transform: scale(1);} }
        .bg-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(circle at center, rgba(9, 9, 11, 0.4) 0%, rgba(9, 9, 11, 0.98) 100%); z-index: -1; pointer-events: none; }

        .skeleton { background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
        @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

        .container { background-color: var(--panel-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 40px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.7); text-align: center; max-width: 600px; width: 100%; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.12); margin-top: 4vh; margin-bottom: 40px; animation: fadeUp 0.4s ease forwards; transition: border-color 0.3s; }
        
        #homeContainer { background-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; box-shadow: none; max-width: 1000px; padding: 10px 20px; display: flex; flex-direction: column; justify-content: center; margin-bottom: 40px; margin-top: 0;}
        
        .home-hero { margin-bottom: 0; text-align: center; animation: fadeUp 0.6s ease; }
        .home-hero h1 { font-size: 2.2rem; font-weight: 900; margin: 0 0 10px 0; color: white; letter-spacing: -1.5px; text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 0 80px rgba(229,9,20,0.15);}
        .home-hero p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0 auto; max-width: 580px; }

        /* ── HOME AMAZON SEARCH ── */
        .home-search-container { max-width: 520px; margin: 10px auto 16px; position: relative; width: 100%; }
        .home-search-bar { display: flex; align-items: center; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 4px 12px 4px 4px; transition: border-color 0.3s, box-shadow 0.3s; }
        .home-search-bar.focused { border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(229,9,20,0.15); }

        .home-search-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); flex-shrink: 0; margin: 0 4px; }
        .home-search-input { background: transparent; border: none; color: white; padding: 10px 8px 10px 12px; width: 100%; font-size: 14px; font-family: var(--font-main); outline: none; min-width: 0; }
        .home-search-input::placeholder { color: var(--text-muted); }
        .home-search-go { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: color 0.2s, background 0.2s; flex-shrink: 0; }
        .home-search-go:hover { color: white; background: rgba(255,255,255,0.08); }
        /* ── HOME CATEGORY DROPDOWN — GLASSMORPHISM ── */
        @keyframes ddReveal {
            0%   { opacity: 0; transform: translateY(-8px) scale(0.97); }
            100% { opacity: 1; transform: translateY(0)    scale(1); }
        }
        .home-search-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: rgba(12, 12, 14, 0.78);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255,255,255,0.09);
            border-radius: 14px;
            padding: 6px;
            z-index: 200;
            box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 0.5px rgba(255,255,255,0.04) inset;
            min-width: 162px;
            display: none;
        }
        .home-search-dropdown.open {
            display: block;
            animation: ddReveal 0.2s cubic-bezier(0.22,0.8,0.22,1) forwards;
        }
        .home-search-dropdown-item {
            padding: 11px 14px;
            border-radius: 9px;
            color: rgba(255,255,255,0.55);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
            font-family: var(--font-main);
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: 0.1px;
            position: relative;
        }
        .home-search-dropdown-item::before {
            content: '';
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--accent-color);
            opacity: 0;
            transition: opacity 0.2s ease, transform 0.2s ease;
            transform: scale(0.5);
            flex-shrink: 0;
        }
        .home-search-dropdown-item:hover {
            background: rgba(255,255,255,0.07);
            color: white;
            transform: translateX(3px);
        }
        .home-search-dropdown-item:hover::before { opacity: 0.7; transform: scale(1); }
        .home-search-dropdown-item.selected {
            color: white;
            background: rgba(255,255,255,0.04);
        }
        .home-search-dropdown-item.selected::before { opacity: 1; transform: scale(1); }
        /* Dropdown button — chevron */
        .home-search-dropdown-btn { background: rgba(255,255,255,0.05); border: none; color: white; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--font-main); transition: background 0.2s; flex-shrink: 0; }
        .home-search-dropdown-btn:hover { background: rgba(255,255,255,0.09); }
        .home-search-dropdown-btn svg { transition: transform 0.25s cubic-bezier(0.22,0.8,0.22,1); }
        .home-search-dropdown-btn.open svg { transform: rotate(180deg); }
        .home-search-microcopy { font-size: 12px; padding-left: 4px; margin-top: 8px; text-align: center; color: #ffffff; font-weight: 600; opacity: 0.95; letter-spacing: 0.2px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
        .micro-title { color: inherit; font-weight: 700; }
        .micro-examples { color: inherit; font-weight: 600; }
        .home-search-results { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; background: rgba(24,24,27,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; z-index: 1000; max-height: 350px; overflow-y: auto; display: none; box-shadow: 0 10px 40px rgba(0,0,0,0.6); padding: 8px; }
        .home-search-results.open { display: block; animation: fadeIn 0.15s ease; }
        .home-search-results::-webkit-scrollbar { width: 6px; }
        .home-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }


        .home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-bottom: 14px; animation: fadeUp 0.8s ease; }
        @media (max-width: 850px) { .home-cards { grid-template-columns: 1fr; margin-bottom: 20px; } }
        @media (max-width: 600px) {
            .home-cards { gap: 10px; }
            .home-card { padding: 16px 14px; border-radius: 14px; flex-direction: row; align-items: center; gap: 14px; }
            .home-card-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; }
            .home-hero h1 { font-size: 22px; }
            .home-hero p { font-size: 13px; }
            #homeContainer { padding: 10px 14px; }
        }
        
        .home-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 16px 14px 14px; cursor: pointer; transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; position: relative; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); }
        .home-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
        .home-card:hover { background: rgba(255,255,255,0.04); transform: translateY(-8px); border-color: var(--accent-color); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(var(--accent-rgb),0.12), inset 0 1px 0 rgba(255,255,255,0.08); }
        .home-card:hover::before { opacity: 1; }
        .home-card-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(var(--accent-rgb),0.12); color: var(--accent-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(var(--accent-rgb),0.25); box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1; }
        .home-card-icon svg { width: 22px; height: 22px; }
        .home-card:hover .home-card-icon { transform: scale(1.15) rotate(5deg); background: var(--accent-color); color: white; border-color: transparent; box-shadow: 0 8px 20px currentColor; }
        .home-card h3 { font-size: 15px; color: white; margin: 0 0 4px 0; font-weight: 800; z-index: 1; letter-spacing: -0.3px;}
        .home-card p { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.5; z-index: 1;}

        .trending-section-title { text-align: left; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; animation: fadeUp 1s ease; }
        .trending-section-title h2 { font-size: 18px; font-weight: 800; color: white; margin: 0; letter-spacing: -0.5px; padding-left: 12px; border-left: 3px solid var(--accent-color); }

        /* ── UP NEXT ── */
        #upNextSection { width: 100%; margin-top: 20px; margin-bottom: 4px; animation: fadeUp 0.7s ease; display: none; }
        #upNextSection .section-label { font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; padding-left: 2px; }
        #upNextSection .section-label span { color: var(--accent-color); }
        .up-next-grid { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
        .up-next-grid::-webkit-scrollbar { display: none; }
        .up-next-card { flex: 0 0 120px; display: flex; flex-direction: column; cursor: default; }
        .up-next-card .coll-card { width: 100%; padding-bottom: 150%; position: relative; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.05); box-shadow: 0 4px 12px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
        .up-next-card .coll-card img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
        .up-next-card:hover .coll-card { border-color: rgba(255,255,255,0.3); box-shadow: 0 12px 24px rgba(0,0,0,0.6); }
        .up-next-card .coll-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); opacity: 0; transition: opacity 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
        .up-next-card:hover .coll-overlay { opacity: 1; }
        .up-next-card .coll-prog-bar-bg { position: absolute; bottom:0; left:0; width:100%; height:4px; background: rgba(255,255,255,0.2); z-index:2; }
        .up-next-card .coll-prog-bar-fill { height: 100%; background: var(--accent-color); transition: width 0.3s ease; }
        .up-next-prog-label { color: white; font-size: 12px; font-weight: 700; }
        .up-next-title-label { font-size: 13px; font-weight: 700; color: white; margin-top: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
        .hero-slider { width: 100%; height: clamp(220px, 45vh, 420px); position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.1); display: none; background: var(--bg-dark); animation: fadeUp 1s ease; }
        
        .hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; background-size: cover; background-position: center top; display: flex; align-items: flex-end; padding: 24px 30px; z-index: 1; }
        .hero-slide.active { opacity: 1; z-index: 2; }
        
        .hero-click-target { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; cursor: pointer; }
        
        .hero-slide::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to top, rgba(9,9,11,0.95) 0%, rgba(9,9,11,0.4) 50%, rgba(9,9,11,0) 100%); z-index: 1; pointer-events: none;}
        .hero-content { position: relative; z-index: 5; text-align: left; max-width: 600px; padding-bottom: 0px; pointer-events: none; }
        
        .hero-tag { background: var(--accent-color); color: white; padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: inline-block; box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);}
        .hero-title { font-size: 28px; font-weight: 900; color: white; margin: 0 0 8px 0; line-height: 1.1; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,0.8);}
        .hero-desc { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0,0,0,0.8);}
        
        .hero-nav { position: absolute; bottom: 16px; right: 24px; z-index: 10; display: flex; gap: 6px; align-items: center; }
        .hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s ease; pointer-events: auto; }
        .hero-dot.active { background: white; width: 24px; border-radius: 4px; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
        
        .hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: 1px solid rgba(255,255,255,0.2); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.2s ease; opacity: 0; backdrop-filter: blur(4px); font-size: 16px; pointer-events: auto;}
        .hero-slider:hover .hero-arrow { opacity: 1; }
        .hero-arrow:hover { background: var(--accent-color); border-color: var(--accent-hover); transform: translateY(-50%) scale(1.1); }
        .hero-arrow.left { left: 16px; }
        .hero-arrow.right { right: 16px; }

        .search-wrapper { position: relative; width: 100%; margin-bottom: 10px; margin-top: 10px; }
        .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none;}
        input[type="text"].main-search { width: 100%; padding: 18px 20px 18px 50px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; font-size: 16px; background-color: rgba(0,0,0,0.4); color: white; transition: all 0.3s ease; }
        input.main-search:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); background-color: rgba(0,0,0,0.6); }
        .suggestions-box { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: rgba(24,24,27,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; z-index: 10; display: none; max-height: 320px; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.6); text-align: left; border: 1px solid rgba(255,255,255,0.08); padding: 8px; }
        .suggestions-box::-webkit-scrollbar { width: 6px; }
        .suggestions-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
        .suggestion-item { padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 15px; border-radius: 8px; transition: all 0.2s ease; background: transparent; }
        .suggestion-item:hover { background: rgba(255,255,255,0.06); transform: translateX(4px); }
        .suggestion-item img { width: 44px; height: 64px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.4); flex-shrink: 0; }
        .suggestion-item .sugg-info { display: flex; flex-direction: column; }
        .suggestion-item .sugg-title { font-weight: 600; font-size: 14px; color: #fff; }
        .suggestion-item .sugg-year { color: #a1a1aa; font-size: 0.85em; margin-top: 3px; }

        #result { margin-top: 24px; display: none; animation: fadeUp 0.4s ease forwards; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

        .show-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; text-align: left; }
        #poster { width: 130px; border-radius: 14px; box-shadow: 0 16px 32px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.05); }
        .show-info h2 { margin: 0 0 8px 0; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px;}
        
        #creatorInfo { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: none; }
        .airing-info { display: inline-block; font-size: 12px; font-weight: 700; color: #10b981; background: rgba(16, 185, 129, 0.1); padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; letter-spacing: 0.5px; border: 1px solid rgba(16, 185, 129, 0.2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        .rating-badge { display: flex; align-items: center; font-size: 14px; font-weight: 700; color: #fef08a; }
        .rating-badge span.score-val { margin-right: 6px; }
        .rating-badge svg { margin-right: 6px; }
        
        .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
        .stat-box { background: rgba(0,0,0,0.3); padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.04); transition: transform 0.2s ease; text-align: left;}
        .stat-box:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.1);}
        .stat-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 6px; }
        .stat-value { font-size: 20px; font-weight: 800; color: white; }

        .tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; gap: 20px;}
        .tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 0 0 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.2s ease; border-bottom: 2px solid transparent; }
        .tab-btn:hover { color: white; }
        .tab-btn.active { color: white; border-bottom-color: var(--accent-color); }
        .tab-panel { display: none; text-align: left; animation: fadeIn 0.3s ease; }
        .tab-panel.active { display: block; }

        .form-group { margin-bottom: 16px; text-align: left;}
        .form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
        .form-control { width: 100%; padding: 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-size: 15px; transition: all 0.2s ease; }
        .form-control:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15); background: rgba(0,0,0,0.5); }
        textarea.form-control { resize: vertical; min-height: 100px; }
        
        .btn-action { width: 100%; padding: 16px; background: white; color: #09090b; border: none; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.2s ease; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap:8px;}
        .btn-action:hover:not(:disabled) { background: #e4e4e7; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.2); }
        
        .btn-save { background: var(--accent-color); color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px; margin-top: 12px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; flex: 1;}
        .btn-save:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
        .btn-save:disabled, .btn-action:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

        .btn-trailer { flex: 1; margin-top: 12px; padding: 12px 20px; background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .btn-trailer:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-2px); }

        .plan-result { margin-top: 16px; padding: 20px; background: rgba(255,255,255,0.02); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); font-size: 15px; text-align: center; display: none; flex-direction: column; align-items: center; gap: 10px; color: var(--text-muted); }
        .plan-result span { font-size: 28px; font-weight: 900; color: white; display: block; margin: 4px 0; letter-spacing: -1px;}

        .settings-notice { background: rgba(255,255,255,0.03); border-left: 3px solid var(--text-muted); padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; text-align: left; }

        .scroll-wrapper { position: relative; display: flex; align-items: center; width: 100%; margin-top: 10px; }
        .scroll-wrapper .scroll-btn { opacity: 0; pointer-events: none; transition: all 0.2s ease; }
        .scroll-wrapper:hover .scroll-btn { opacity: 1; pointer-events: auto; }

        .rec-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 10px 4px; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; flex: 1; }
        .rec-scroll::-webkit-scrollbar { display: none; }
        
        .scroll-btn { position: absolute; top: 50%; transform: translateY(-50%) translateY(-15px); width: 36px; height: 72px; background: rgba(24, 24, 27, 0.85); color: white; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; cursor: pointer; z-index: 10; display: none; align-items: center; justify-content: center; font-size: 20px; backdrop-filter: blur(8px); }
        .scroll-btn:hover { background: var(--accent-color); border-color: var(--accent-hover); box-shadow: 0 4px 15px rgba(0,0,0,0.5);}
        .scroll-btn.left { left: -18px; } .scroll-btn.right { right: -18px; }
        @media (max-width: 768px) { .scroll-btn { display: none !important; } }

        .cast-card { flex: 0 0 80px; width: 80px; display: flex; flex-direction: column; gap: 6px; align-items: center; cursor: pointer; transition: transform 0.2s ease;}
        .cast-card:hover { transform: translateY(-4px); }
        .cast-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); box-shadow: 0 4px 10px rgba(0,0,0,0.4);}
        .cast-name { font-size: 12px; font-weight: 600; color: white; text-align: center; line-height: 1.2; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .cast-role { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.2; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .rec-card { flex: 0 0 110px; width: 110px; cursor: pointer; transition: transform 0.2s ease; display: flex; flex-direction: column; gap: 8px; }
        .rec-card:hover { transform: translateY(-4px); }
        .rec-card.collection-current { cursor: default; opacity: 0.95; }
        .rec-card.collection-current:hover { transform: none; }
        .rec-card.collection-current .rec-poster { border: 2px solid var(--accent-color); box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.35); }

        /* ── TV SEASONS (horizontal posters like collection) ───── */
        .season-card.active .rec-poster { border: 2px solid var(--accent-color); box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.35); }
        #seasonsEpisodesPanel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; max-height: 320px; overflow-y: auto; padding: 4px 0; }
        .season-ep-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
        .season-ep-row:last-child { border-bottom: none; }
        .season-ep-row.season-ep-future { opacity: 0.5; }
        .season-ep-num { font-size: 11px; font-weight: 800; color: var(--accent-color); letter-spacing: 0.5px; flex-shrink: 0; min-width: 32px; }
        .season-ep-title { flex: 1; color: white; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .season-ep-date { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
        .season-ep-loading { padding: 14px; text-align: center; font-size: 12px; color: var(--text-muted); }
        @media (max-width: 600px) {
            .season-ep-date { display: none; }
        }
        .rec-poster { width: 110px; height: 165px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); }
        .rec-title { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); text-align: center; }

        /* ── CATEGORY PREMIUM ANIMATIONS ── */
        @keyframes breathe {
            0%, 100% { opacity: 0.12; transform: translateY(-50%) scale(1); }
            50%       { opacity: 0.28; transform: translateY(-50%) scale(1.2); }
        }
        @keyframes blurReveal {
            0%   { opacity: 0; filter: blur(12px); transform: translateY(16px); }
            100% { opacity: 1; filter: blur(0px); transform: translateY(0); }
        }
        @keyframes iconDraw {
            0%   { stroke-dashoffset: 200; opacity: 0; }
            60%  { stroke-dashoffset: 0;   opacity: 1; }
            100% { stroke-dashoffset: 0;   opacity: 1; }
        }

        /* ── CATEGORY HEADER — NAKED UI ── */
        #searchContainer {
            background: transparent !important;
            border: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            box-shadow: none !important;
            max-width: 800px;
            padding: 20px 0;
        }
        .ambient-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 300px;
            height: 150px;
            background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
            filter: blur(60px);
            opacity: 0.15;
            z-index: -1;
            pointer-events: none;
            animation: breatheGlow 4s ease-in-out infinite;
        }
        @keyframes breatheGlow {
            0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
            50%       { opacity: 0.25; transform: translate(-50%, -50%) scale(1.2); }
        }
        #catPageHeader {
            position: relative;
            text-align: center;
            margin-bottom: 30px;
        }
        .search-wrapper {
            margin: 0 auto 30px auto;
            max-width: 600px;
        }
        .trending-card { display: flex; flex-direction: column; cursor: pointer; width: 100%; min-width: 0; transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; }
        #trendingGrid .trending-card { animation: blurReveal 0.5s cubic-bezier(0.2,0.8,0.2,1) both; }
        #trendingGrid .trending-card:nth-child(1) { animation-delay: 0.0s; }
        #trendingGrid .trending-card:nth-child(2) { animation-delay: 0.05s; }
        #trendingGrid .trending-card:nth-child(3) { animation-delay: 0.10s; }
        #trendingGrid .trending-card:nth-child(4) { animation-delay: 0.15s; }
        #trendingGrid .trending-card:nth-child(5) { animation-delay: 0.20s; }
        #trendingGrid .trending-card:nth-child(6) { animation-delay: 0.25s; }
        #trendingContainer { margin: 0 auto 40px auto; padding: 0 20px; width: 100%; max-width: 1100px; text-align: left; animation: fadeUp 0.4s ease forwards; }
        .trending-header { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: white; display: flex; align-items: center; width: 100%; letter-spacing: -0.5px; }
        .trending-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
        @media (min-width: 500px) { .trending-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (min-width: 768px) { .trending-grid { grid-template-columns: repeat(4, 1fr); } }
        @media (min-width: 1024px) { .trending-grid { grid-template-columns: repeat(6, 1fr); } }

        .trending-card { display: flex; flex-direction: column; cursor: pointer; width: 100%; min-width: 0; transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; }
        .trending-card:hover { transform: translateY(-6px); }
        .trending-card:hover .trending-poster-wrap { border-color: rgba(255,255,255,0.3); box-shadow: 0 12px 24px rgba(0,0,0,0.6); }
        .trending-poster-wrap { width: 100%; padding-bottom: 150%; position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: rgba(255,255,255,0.05); box-shadow: 0 4px 12px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
        .trending-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
        .trending-info-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
        .trending-rank { font-size: 34px; font-weight: 900; line-height: 0.75; color: white; letter-spacing: -2px; margin-top: 4px; }
        .trending-text-col { display: flex; flex-direction: column; overflow: hidden; width: 100%; padding-top: 2px; }
        .trending-title { font-size: 13px; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; margin-bottom: 3px; }
        .trending-year { font-size: 11px; color: var(--text-muted); font-weight: 600; }

        .list-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;}
        .list-tab { background: rgba(255,255,255,0.05); border: none; color: var(--text-muted); padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s; white-space: nowrap;}
        .list-tab:hover:not(.active) { background: rgba(255,255,255,0.1); color: white;}
        .list-tab.active { background: var(--accent-color); color: white; } 

        .coll-card { width: 100%; padding-bottom: 150%; position: relative; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.05); box-shadow: 0 4px 12px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
        .coll-card img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
        .coll-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.75); opacity: 0; transition: opacity 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .trending-card:hover .coll-overlay { opacity: 1; }
        
        .coll-prog-bar-bg { position: absolute; bottom:0; left:0; width:100%; height:4px; background: rgba(255,255,255,0.2); z-index:2; }
        .coll-prog-bar-fill { height: 100%; background: var(--accent-color); transition: width 0.3s ease; }
        
        .coll-add-btn { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-color); color: white; border: none; font-size: 28px; font-weight: 300; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background 0.2s; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
        .coll-add-btn:hover { transform: scale(1.1); background: var(--accent-hover); }

        .coll-sub-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); font-size: 24px; font-weight: 300; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background 0.2s, border-color 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
        .coll-sub-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); border-color: white; }
        .coll-text { color: white; font-weight: 800; margin-top: 12px; font-size: 14px; letter-spacing: 0.5px;}
        
        .coll-menu-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
        .coll-menu-btn:hover { background: rgba(0,0,0,0.8); border-color:white; }
        
        .coll-action-menu { position: absolute; top: 48px; right: 10px; background: rgba(24, 24, 27, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; flex-direction: column; display: none; overflow: hidden; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.8); min-width: 150px; }
        .coll-action-menu button { background: transparent; color: white; border: none; padding: 12px 16px; text-align: left; cursor: pointer; font-size: 12px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
        .coll-action-menu button:hover { background: rgba(255,255,255,0.1); color: var(--accent-color); }
        .coll-action-menu button:last-child { border-bottom: none; }

        .star-btn { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 32px; height: 32px; color: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 5; backdrop-filter: blur(4px); }
        .star-btn:hover { background: rgba(0,0,0,0.8); color: white; border-color: white; transform: scale(1.1); }
        .star-btn.active { color: #facc15; border-color: #facc15; background: rgba(0,0,0,0.8); }

        .dash-stat-row { display: flex; justify-content: space-around; background: rgba(0,0,0,0.3); border-radius: 16px; padding: 24px 10px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; gap: 16px; }
        .dash-stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
        .dash-stat-val { font-size: 28px; font-weight: 800; color: white; }
        .dash-stat-lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

        .dash-bar-wrap { background: rgba(0,0,0,0.4); border-radius: 14px; padding: 18px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.05); text-align: left; }
        .dash-bar-lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: white; margin-bottom: 10px; }
        .dash-bar-bg { width: 100%; height: 10px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden; }
        .dash-bar-fill { height: 100%; background: var(--accent-color); border-radius: 6px; transition: width 0.6s ease-out; }

        .badges-wrap { background: rgba(0,0,0,0.3); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); margin-top: 24px; text-align: left; position: relative;}
        .badges-scroll-area { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; flex: 1; min-width: 0; }
        .badges-scroll-area::-webkit-scrollbar { display: none; }
        .badge-card { flex: 0 0 120px; width: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 8px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; opacity: 0.4; filter: grayscale(1); }
        .badge-card.unlocked { opacity: 1; filter: none; border-color: var(--accent-color); background: rgba(229, 9, 20, 0.05); box-shadow: 0 4px 15px rgba(229,9,20,0.2); transform: translateY(-2px); }
        .badge-icon { font-size: 32px; }
        .badge-title { font-size: 12px; font-weight: 700; color: white; }
        .badge-desc { font-size: 10px; color: var(--text-muted); }

        .upcoming-wrap { background: rgba(0,0,0,0.3); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); margin-top: 24px; margin-bottom: 24px; text-align: left; }
        .upcoming-list { display: flex; flex-direction: column; gap: 10px; }
        .upcoming-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
        .upcoming-left { display: flex; align-items: center; gap: 12px; }
        .upcoming-date { background: var(--accent-color); color: white; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;}

        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 200; justify-content: center; align-items: center; backdrop-filter: blur(8px); }
        .modal-box { background: var(--bg-dark); padding: 40px; border-radius: 24px; width: 90%; max-width: 400px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 24px 60px rgba(0,0,0,0.9); text-align: center; position: relative; }
        .btn-close-modal { position: absolute; top: 16px; right: 20px; background: transparent; color: var(--text-muted); border: none; font-size: 28px; cursor: pointer; transition: color 0.2s; padding:0; font-weight: 300; line-height: 1; }
        .btn-close-modal:hover { color: white; }
        
        .auth-title { font-size: 26px; font-weight: 800; margin: 0 0 8px 0; color: white; letter-spacing: -0.5px;}
        .auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
        .auth-divider { display: flex; align-items: center; text-align: center; margin: 24px 0; color: #52525b; font-size: 12px; font-weight: 600; text-transform: uppercase; }
        .auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .auth-divider span { padding: 0 12px; }

        .btn-google { width: 100%; padding: 14px; background: white; color: #09090b; border: none; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; transition: opacity 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .btn-google:hover { opacity: 0.9; }

        .auth-switch { margin-top: 24px; font-size: 14px; color: var(--text-muted); }
        .auth-switch a { color: white; font-weight: 600; text-decoration: none; transition: color 0.3s; margin-left: 4px; }
        .auth-switch a:hover { color: var(--accent-color); text-decoration: underline; }

        .plan-calendar-item { display: flex; justify-content: space-between; padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .plan-calendar-item:last-child { border-bottom: none; }
        .history-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2); margin-bottom: 4px; border-radius: 8px;}
        
        .global-logbook-item { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.02); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; transition: transform 0.2s; cursor: pointer; }
        .global-logbook-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
        .global-logbook-img { width: 44px; height: 66px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
        .global-logbook-info { flex: 1; text-align: left; }
        .global-logbook-title { font-weight: 700; color: white; font-size: 15px; margin-bottom: 4px; }
        .global-logbook-desc { color: var(--text-muted); font-size: 13px; font-weight: 500; }
        .global-logbook-date { color: var(--text-muted); font-size: 13px; font-weight: 600; text-align: right; }

        .site-footer {
            width: 100%; z-index: 10; background: #09090b; 
            border-top: 1px solid rgba(255,255,255,0.08); padding: 40px 20px 30px; 
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            margin-top: auto; 
        }
        .footer-links {
            display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px;
        }
        .footer-links a {
            color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color 0.2s; cursor: pointer;
        }
        .footer-links a:hover { color: white; }
        .app-buttons {
            display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; align-items: center;
        }
        .app-btn {
            display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(255,255,255,0.2); 
            color: white; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
        }
        .app-btn:hover { background: rgba(255,255,255,0.05); border-color: white; transform: translateY(-2px); }
        .app-btn svg { width: 20px; height: 20px; fill: currentColor; }
        
        .btn-coffee {
            background: #f59e0b; border: none; color: #09090b; font-weight: 800; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
        }
        .btn-coffee:hover {
            background: #fbbf24; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
        }
        .btn-coffee:hover svg {
            animation: shakeCoffee 0.5s ease-in-out infinite alternate;
        }
        @keyframes shakeCoffee {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(-10deg); }
            50% { transform: rotate(10deg); }
            75% { transform: rotate(-10deg); }
            100% { transform: rotate(0deg); }
        }

        .footer-copyright { color: #52525b; font-size: 12px; text-align: center; }

        .text-content-page { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; text-align: left; }
        .text-content-page h3 { color: white; font-size: 18px; margin: 28px 0 12px 0; letter-spacing: -0.3px; }
        .text-content-page p { margin-bottom: 16px; }
        .text-content-page ul { margin-bottom: 16px; padding-left: 20px; }
        .text-content-page li { margin-bottom: 8px; }

        .faq-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
        .faq-q { color: white; font-weight: 700; font-size: 16px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
        .faq-q::before { content: 'Q:'; color: var(--accent-color); font-weight: 900; }
        .faq-a { color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; }
        .faq-a::before { content: 'A:'; color: #52525b; font-weight: 900; }

        .cat-modal-box {
            background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 32px 24px; 
            max-width: 360px; width: 90%; text-align: center; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.9);
        }
        .cat-modal-title { font-size: 24px; font-weight: 800; color: white; margin: 0 0 24px 0; letter-spacing: -0.5px; }
        .btn-close-cat { position: absolute; top: 16px; right: 16px; background: transparent; color: #52525b; border: none; font-size: 24px; cursor: pointer; transition: color 0.2s; padding: 0; line-height: 1; }
        .btn-close-cat:hover { color: white; }
        
        .cat-select-btn {
            position: relative; overflow: hidden; width: 100%; padding: 18px 20px; background: rgba(255,255,255,0.02); 
            border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; cursor: pointer; 
            margin-bottom: 12px; transition: all 0.3s; display: flex; align-items: center; justify-content: flex-start; gap: 14px;
        }
        .cat-select-btn:last-child { margin-bottom: 0; }
        .cat-select-btn svg { color: var(--text-muted); width: 24px; height: 24px; transition: color 0.3s, transform 0.3s; position: relative; z-index: 2;}
        .cat-select-btn span { font-size: 16px; font-weight: 700; color: white; position: relative; z-index: 2;}
        
        .cat-select-btn::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle at center, rgba(229,9,20,0.1) 0%, transparent 70%); opacity:0; transition: opacity 0.3s; pointer-events: none; z-index: 1;}
        .cat-select-btn:hover { border-color: var(--accent-color); background: rgba(255,255,255,0.04); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
        .cat-select-btn:hover svg { color: var(--accent-color); transform: scale(1.1); }
        .cat-select-btn:hover::before { opacity: 1; }

        .feedback-pills { display: flex; gap: 8px; margin-bottom: 16px; }
        .feedback-pill { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); border-radius: 12px; padding: 12px 8px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all 0.2s; }
        .feedback-pill svg { width: 20px; height: 20px; stroke: currentColor; }
        .feedback-pill:hover { background: rgba(255,255,255,0.1); color: white; }
        .feedback-pill.active { background: rgba(229,9,20,0.1); border-color: var(--accent-color); color: var(--accent-color); }
        .feedback-pill.active svg { stroke: var(--accent-color); }

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.empty-state {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 32px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.08);
    gap: 14px;
    animation: fadeIn 0.4s ease;
}
.empty-state-icon {
    width: 68px;
    height: 68px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 4px;
    border: 1px solid rgba(255,255,255,0.07);
}
.empty-state-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.3px;
}
.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    max-width: 320px;
    line-height: 1.65;
}
.empty-state .btn-action {
    margin-top: 6px;
    padding: 11px 28px;
    width: auto;
    font-size: 14px;
}

/* ── ERROR STATE ─────────────────────────────────────────────────── */
.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    text-align: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}
.error-state-icon {
    width: 60px;
    height: 60px;
    background: rgba(239,68,68,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    margin-bottom: 4px;
    border: 1px solid rgba(239,68,68,0.2);
}
.error-state-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}
.error-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    max-width: 300px;
    line-height: 1.6;
}
.error-state .btn-action {
    margin-top: 8px;
    padding: 10px 26px;
    width: auto;
    font-size: 13px;
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}
.error-state .btn-action:hover {
    background: rgba(239,68,68,0.2);
    color: white;
}

/* ══════════════════════════════════════════════════════════════
   PREMIUM VISUAL LAYER
   ══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES FOR EFFECTS ─────────────────────────────────── */
:root {
    --accent-rgb:    229,9,20;
    --glow-color:    rgba(229,9,20,0.35);
    --glass-bg:      rgba(18,18,22,0.72);
    --glass-border:  rgba(255,255,255,0.09);
    --glass-blur:    16px;
    --card-radius:   18px;
    --shine-opacity: 0;
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── GLASSMORPHISM UPGRADE ──────────────────────────────────────── */
.container {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.modal-box {
    background: rgba(12,12,16,0.92) !important;
    backdrop-filter: blur(24px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7),
                0 0 0 1px rgba(255,255,255,0.04) !important;
}

.dropdown-menu {
    backdrop-filter: blur(20px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
    background: rgba(14,14,18,0.95) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7) !important;
}

/* ── NAVBAR SCROLL STATE ─────────────────────────────────────────── */
header.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
header.navbar.navbar-scrolled {
    background: rgba(6,6,8,0.96) !important;
    backdrop-filter: blur(28px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06),
                0 8px 40px rgba(0,0,0,0.5) !important;
}

/* ── GRADIENT TEXT ──────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Apply to main hero title */
[data-i18n="heroTitle"] {
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(229,9,20,0.15));
}

/* ── BUTTON GLOW ────────────────────────────────────────────────── */
.btn-save, .btn-action {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--transition-smooth),
                box-shadow 0.3s ease !important;
}
.btn-save::after, .btn-action::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}
.btn-save:hover::after, .btn-action:hover::after { opacity: 1; }
.btn-save:hover {
    box-shadow: 0 8px 28px var(--glow-color), 0 2px 8px rgba(0,0,0,0.4) !important;
    transform: translateY(-2px) scale(1.01) !important;
}
.btn-action:hover {
    transform: translateY(-2px) scale(1.01) !important;
}
.btn-save:active, .btn-action:active {
    transform: scale(0.97) !important;
    transition-duration: 0.08s !important;
}

/* ── ACCENT GLOW ON ACTIVE ELEMENTS ────────────────────────────── */
.cat-btn.active {
    box-shadow: 0 4px 20px var(--glow-color), 0 0 0 1px rgba(255,255,255,0.05) !important;
}
.list-tab.active {
    box-shadow: 0 2px 12px var(--glow-color) !important;
}
.tab-btn.active {
    box-shadow: 0 2px 10px var(--glow-color) !important;
}

/* ── SEARCH INPUT FOCUS ─────────────────────────────────────────── */
.main-search:focus, .form-control:focus {
    box-shadow: 0 0 0 2px rgba(229,9,20,0.35), 0 4px 20px rgba(0,0,0,0.3) !important;
    border-color: rgba(229,9,20,0.5) !important;
    outline: none;
}

/* ── HOME CARD UPGRADE ──────────────────────────────────────────── */
.home-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--transition-smooth),
                box-shadow 0.35s var(--transition-smooth),
                border-color 0.35s ease !important;
}
.home-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.04) 0%,
        transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.home-card:hover::before { opacity: 1; }
.home-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5),
                0 0 0 1px rgba(var(--accent-rgb),0.25),
                0 0 40px rgba(var(--accent-rgb),0.08) !important;
    border-color: rgba(var(--accent-rgb),0.2) !important;
}

/* ── RATING BADGE PULSE ─────────────────────────────────────────── */
.rating-badge {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rating-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(229,9,20,0.2);
}


/* ── SCROLL BUTTONS UPGRADE ──────────────────────────────────────── */
.scroll-btn {
    transition: opacity 0.25s ease, transform 0.25s ease,
                box-shadow 0.25s ease !important;
}
.scroll-btn:hover {
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5),
                0 0 20px var(--glow-color) !important;
}

/* ── SECTION FADE TRANSITIONS ───────────────────────────────────── */
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes sectionFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}

/* ── HERO SLIDER UPGRADE ─────────────────────────────────────────── */
.hero-slide {
    transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.hero-title {
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
    animation: heroTextIn 0.6s ease both;
}
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(16px); letter-spacing: -3px; }
    to   { opacity: 1; transform: translateY(0);    letter-spacing: normal; }
}

/* ── AIRING / STATUS BADGE PULSE ────────────────────────────────── */
.airing-info {
    animation: pulseBadge 3s ease-in-out infinite;
}
@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(229,9,20,0); }
}

/* ── STAR BUTTON ANIMATION ───────────────────────────────────────── */
.star-btn {
    transition: transform 0.2s var(--transition-smooth),
                color 0.2s ease !important;
}
.star-btn:hover { transform: scale(1.25) rotate(5deg) !important; }
.star-btn.active { animation: starPop 0.35s var(--transition-smooth); }
@keyframes starPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5) rotate(-8deg); }
    100% { transform: scale(1); }
}

/* ── TOAST UPGRADE ───────────────────────────────────────────────── */
.toast {
    backdrop-filter: blur(20px) saturate(1.8) !important;
    background: rgba(10,10,14,0.96) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7),
                0 0 0 1px rgba(255,255,255,0.06) !important;
}

/* ── LOGBOOK ITEM HOVER ──────────────────────────────────────────── */
.global-logbook-item {
    transition: background 0.2s ease, transform 0.2s ease !important;
    cursor: pointer;
}
.global-logbook-item:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: translateX(4px);
    border-color: rgba(229,9,20,0.2) !important;
}

/* ── UP-NEXT CARD ───────────────────────────────────────────────── */
.up-next-card .coll-card {
    transition: transform 0.3s var(--transition-smooth),
                box-shadow 0.3s ease !important;
}
.up-next-card .coll-card:hover {
    transform: scale(1.06) translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6),
                0 0 20px var(--glow-color) !important;
}

/* ── BADGE CARD UNLOCK GLOW ─────────────────────────────────────── */
.badge-card.unlocked {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3),
                0 0 0 1px rgba(229,9,20,0.15);
    transition: transform 0.3s var(--transition-smooth),
                box-shadow 0.3s ease;
}
.badge-card.unlocked:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4),
                0 0 20px var(--glow-color);
}

/* ── NOTIFICATION BADGE ─────────────────────────────────────────── */
.notif-badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    background: var(--accent-color);
    color: white;
    font-size: 10px; font-weight: 800;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-dark);
    padding: 0 3px;
    pointer-events: none;
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ── NOTIFICATION DROPDOWN ──────────────────────────────────────── */
.notif-dropdown {
    flex-direction: column !important;
    width: 320px;
    max-height: 420px;
    padding: 0 !important;
    overflow: hidden;
    right: 0;
    top: calc(100% + 12px);
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.notif-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}
.notif-clear-btn:hover { color: var(--accent-color); }
#notifList {
    overflow-y: auto;
    flex: 1;
}
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    margin-top: 5px;
    transition: background 0.2s;
}
.notif-item.unread { background: rgba(229, 9, 20, 0.06); }
.notif-item.unread .notif-dot { background: var(--accent-color); box-shadow: 0 0 8px var(--accent-color); }
.notif-item.unread .notif-title { color: #fff; }
.notif-content { flex: 1; min-width: 0; }
.notif-title   { font-size: 13px; font-weight: 700; color: white; margin-bottom: 2px; }
.notif-body    { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time    { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ── SUBSCRIBE BUTTON ───────────────────────────────────────────── */
.btn-subscribe {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    padding: 0 18px;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-subscribe:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-2px);
}
.btn-subscribe.active {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.4);
    color: #10b981;
    box-shadow: 0 0 20px rgba(16,185,129,0.15);
}
.btn-subscribe.active:hover {
    background: rgba(16,185,129,0.18);
    box-shadow: 0 4px 24px rgba(16,185,129,0.25);
}
.btn-subscribe:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── RESPONSIVE: disable heavy effects on mobile ────────────────── */
@media (max-width: 768px) {
    .trending-card { will-change: auto; }
    .notif-dropdown { width: calc(100vw - 32px); right: -8px; }
}

/* ════════════════════════════════════════════════════════════
   STREAK HERO CARD (Dashboard)
   ════════════════════════════════════════════════════════════ */
.streak-hero {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(255,120,50,0.04));
    border: 1px solid rgba(229,9,20,0.18);
    transition: all .25s ease;
}
.streak-hero.active {
    background: linear-gradient(135deg, rgba(255,100,20,0.14), rgba(255,190,50,0.06));
    border-color: rgba(255,150,50,0.4);
    box-shadow: 0 0 30px rgba(255,130,30,0.15);
}
.streak-hero.at-risk {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    border-color: rgba(245,158,11,0.4);
    animation: streakPulse 2s ease-in-out infinite;
}
.streak-hero.cold {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
@keyframes streakPulse {
    0%,100% { box-shadow: 0 0 20px rgba(245,158,11,0.15); }
    50%     { box-shadow: 0 0 30px rgba(245,158,11,0.35); }
}
.streak-hero-icon {
    font-size: 44px; line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(255,130,30,0.3));
}
.streak-hero-body { flex: 1; min-width: 0; }
.streak-hero-count {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 34px; font-weight: 900;
    color: #fff;
    line-height: 1;
}
.streak-hero-unit {
    font-size: 15px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px; text-transform: uppercase;
}
.streak-hero-sub {
    margin-top: 6px;
    font-size: 13px; color: var(--text-muted);
    line-height: 1.4;
}
.streak-hero-longest {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    min-width: 68px;
}
.streak-hero-longest-icon { font-size: 20px; }
.streak-hero-longest span:last-child {
    font-size: 18px; font-weight: 800; color: #fff;
}
@media (max-width: 520px) {
    .streak-hero { padding: 16px; gap: 14px; }
    .streak-hero-icon { font-size: 36px; }
    .streak-hero-count { font-size: 26px; }
    .streak-hero-longest { min-width: 56px; padding: 8px 10px; }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR STREAK PILL
   ════════════════════════════════════════════════════════════ */
.navbar-streak {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,100,20,0.2), rgba(255,180,40,0.12));
    border: 1px solid rgba(255,150,50,0.3);
    font-size: 13px; font-weight: 700; color: #fff;
    cursor: pointer; transition: transform .15s ease;
    user-select: none;
}
.navbar-streak:hover { transform: scale(1.05); }
.navbar-streak.at-risk {
    background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(245,158,11,0.1));
    border-color: rgba(245,158,11,0.5);
    animation: streakPulse 2s ease-in-out infinite;
}
.navbar-streak.hidden { display: none; }


/* ════════════════════════════════════════════════════════════
   CALENDAR VIEW
   ════════════════════════════════════════════════════════════ */
.calendar-wrap { max-width: 860px; margin: 0 auto; }
.calendar-header { margin-bottom: 28px; }
.calendar-header h1 { font-size: 30px; font-weight: 900; margin: 0 0 18px 0; }
.calendar-hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cal-stat {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; flex-direction: column; gap: 4px;
}
.cal-stat-val { font-size: 22px; font-weight: 900; color: #fff; line-height: 1.1; }
.cal-stat-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.calendar-section { margin-bottom: 32px; }
.cal-section-title {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted);
    margin: 0 0 14px 0;
}

.cal-day-list { display: flex; flex-direction: column; gap: 10px; }
.cal-day-card {
    display: grid; grid-template-columns: 72px 1fr; gap: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: all .18s ease;
}
.cal-day-card.today {
    background: linear-gradient(135deg, rgba(229,9,20,0.1), rgba(229,9,20,0.02));
    border-color: rgba(229,9,20,0.3);
}
.cal-day-card.past {
    opacity: 0.82;
}
.cal-day-date {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 4px; border-right: 1px solid rgba(255,255,255,0.08); padding-right: 14px;
}
.cal-day-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.cal-day-dom { font-size: 28px; font-weight: 900; color: #fff; line-height: 1; margin-top: 2px; }
.cal-day-month { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; }
.cal-day-today-tag {
    margin-top: 6px;
    font-size: 9px; font-weight: 800; letter-spacing: 1px;
    padding: 2px 6px; border-radius: 3px;
    background: var(--accent-color, #E50914); color: #fff;
}
.cal-day-events { min-width: 0; }
.cal-day-label {
    font-size: 13px; font-weight: 700; color: #fff;
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.cal-day-pill {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: rgba(16,185,129,0.15); color: #10b981; letter-spacing: 0.5px;
}
.cal-day-placeholder {
    font-size: 12px; color: var(--text-muted); font-style: italic;
}
.cal-day-empty {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 16px 6px 20px;
    font-size: 12px; color: var(--text-muted);
    opacity: 0.6;
}
.cal-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-block;
}

.cal-event {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer; transition: all .15s ease;
    margin-bottom: 6px;
}
.cal-event:hover { background: rgba(255,255,255,0.08); transform: translateX(2px); }
.cal-event:last-child { margin-bottom: 0; }
.cal-event.upcoming {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.02));
    border-color: rgba(59,130,246,0.2);
}
.cal-event.watched {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
    border-color: rgba(16,185,129,0.15);
}
.cal-event-poster {
    width: 40px; height: 58px;
    border-radius: 5px; object-fit: cover;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
}
.cal-event-body { flex: 1; min-width: 0; }
.cal-event-title {
    font-size: 14px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-event-meta {
    margin-top: 3px;
    display: flex; gap: 10px; align-items: center;
    font-size: 11px; color: var(--text-muted);
}
.cal-event-kind { font-weight: 700; }
.cal-event.upcoming .cal-event-kind { color: #60a5fa; }
.cal-event.watched  .cal-event-kind { color: #10b981; }

.cal-empty-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.1);
}

@media (max-width: 520px) {
    .calendar-hero-stats { grid-template-columns: 1fr 1fr; }
    .calendar-hero-stats .cal-stat:nth-child(3) { grid-column: span 2; }
    .cal-day-card { grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; }
    .cal-day-date { padding-right: 10px; }
    .cal-day-dom { font-size: 22px; }
    .cal-event-poster { width: 34px; height: 50px; }
    .cal-event-title { font-size: 13px; }
}


/* ════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE POLISH
   Applies to all viewports <= 600px unless otherwise noted
   ════════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll globally */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 600px) {
    /* ── NAVBAR ────────────────────────────────────────────── */
    .nav-right { gap: 6px !important; }
    .navbar-streak {
        padding: 3px 8px;
        font-size: 12px;
    }

    /* ── STREAK HERO CARD (Dashboard) ─────────────────────── */
    .streak-hero {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
    }
    .streak-hero-icon { font-size: 32px; }
    .streak-hero-body { flex: 1 1 auto; min-width: 0; order: 1; }
    .streak-hero-count { font-size: 24px; gap: 6px; }
    .streak-hero-unit  { font-size: 12px; }
    .streak-hero-sub   { font-size: 11.5px; line-height: 1.35; }
    .streak-hero-longest {
        order: 2;
        flex-direction: row;
        gap: 6px;
        min-width: auto;
        padding: 6px 10px;
    }
    .streak-hero-longest-icon { font-size: 14px; }
    .streak-hero-longest span:last-child { font-size: 14px; }

    /* ── CALENDAR ─────────────────────────────────────────── */
    .calendar-wrap { padding: 0 4px; }
    .calendar-header h1 { font-size: 24px; margin-bottom: 14px; }
    .calendar-hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .calendar-hero-stats .cal-stat:nth-child(3) { grid-column: span 2; }
    .cal-stat { padding: 10px 12px; }
    .cal-stat-val { font-size: 18px; }
    .cal-stat-lbl { font-size: 10px; }
    .cal-section-title { font-size: 12px; margin-bottom: 10px; }

    .cal-day-card {
        grid-template-columns: 54px 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
    }
    .cal-day-date { padding-right: 8px; padding-top: 2px; }
    .cal-day-dow   { font-size: 10px; letter-spacing: 0.8px; }
    .cal-day-dom   { font-size: 20px; }
    .cal-day-month { font-size: 9px; }
    .cal-day-today-tag { font-size: 8px; padding: 1px 5px; }
    .cal-day-label { font-size: 12px; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
    .cal-day-pill  { font-size: 9px; padding: 2px 6px; }
    .cal-day-placeholder { font-size: 11px; }
    .cal-day-empty { font-size: 11px; padding: 4px 12px; }

    .cal-event { padding: 8px 10px; gap: 10px; margin-bottom: 5px; }
    .cal-event-poster { width: 32px; height: 46px; }
    .cal-event-title  { font-size: 12.5px; }
    .cal-event-meta   { font-size: 10px; gap: 8px; }
    .cal-empty-state  { padding: 22px 14px; font-size: 12px; }

    /* ── DASHBOARD ────────────────────────────────────────── */
    #dashboardContainer { padding: 24px 16px !important; max-width: 100%; }
    .dash-stat-row { gap: 8px !important; }
    .dash-stat-item { padding: 12px 10px !important; }
    .dash-stat-val { font-size: 18px !important; }
    .dash-stat-lbl { font-size: 10px !important; }
    .badges-wrap h3, .upcoming-wrap h3 { font-size: 14px !important; }

    /* ── CALENDAR CONTAINER ─────────────────────────────── */
    #calendarContainer { padding: 20px 14px !important; max-width: 100%; }

    /* ── MODALS (generic) ────────────────────────────────── */
    .modal-content, .auth-modal-content, .plan-modal-content,
    .feedback-modal-content, .settings-modal-content {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 60px) !important;
        margin: 12px auto !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    /* ── TOAST positioning above bottom-nav ─────────────── */
    .toast, .bc-toast, #toast {
        bottom: 88px !important;
        left: 12px !important;
        right: 12px !important;
        max-width: calc(100vw - 24px) !important;
        font-size: 13px !important;
    }

    /* ── NOTIFICATION DROPDOWN ──────────────────────────── */
    .notif-dropdown {
        position: fixed !important;
        top: 64px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
    }

    /* ── HOME SEARCH ──────────────────────────────────────── */
    .home-search-container { padding: 0 2px; }
    .home-search-dropdown { left: 2px !important; min-width: 140px; }

    /* ── COLLECTION ITEMS ─────────────────────────────────── */
    .coll-item { padding: 10px !important; gap: 10px !important; }
    .coll-item-poster { width: 56px !important; height: 80px !important; }
    .coll-item-title  { font-size: 13.5px !important; }
    .coll-item-meta   { font-size: 11px !important; }

    /* ── DETAIL PAGE ─────────────────────────────────────── */
    .cast-scroll, .rec-scroll { gap: 10px !important; }
    .show-info h2 { line-height: 1.15 !important; }

    /* ── TAP TARGET MINIMUMS ─────────────────────────────── */
    button, a, .home-card, .trending-card { touch-action: manipulation; }

    /* ── FORM INPUTS ─────────────────────────────────────── */
    input, select, textarea { font-size: 16px !important; /* prevents iOS zoom on focus */ }
}

@media (max-width: 380px) {
    /* Extra-small phones */
    .nav-brand { font-size: 16px !important; }
    .streak-hero-count { font-size: 22px; }
    .calendar-header h1 { font-size: 22px; }
    .cal-day-card { grid-template-columns: 48px 1fr; }
    .cal-day-dom { font-size: 18px; }
    .dash-stat-val { font-size: 16px !important; }
    .dash-stat-lbl { font-size: 9px !important; }
    .bottom-nav-btn span { font-size: 9px !important; }
    .home-hero h1 { font-size: 20px !important; }
}

/* ── Landscape phone: cap hero heights so bottom nav stays reachable ── */
@media (max-width: 820px) and (orientation: landscape) and (max-height: 500px) {
    .streak-hero { padding: 10px 14px; }
    .streak-hero-icon { font-size: 28px; }
    .streak-hero-count { font-size: 22px; }
    .hero-slider, #heroSlider { max-height: 260px !important; }
}

/* ════════════════════════════════════════════════════════════════
   ICON SYSTEM (Lucide SVGs via js/lib/icons.js)
   ──────────────────────────────────────────────────────────────── */
.ic {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; }

/* Make badge/streak icons scale with parent font-size for consistency */
.streak-hero-icon .ic        { width: 1em; height: 1em; }
.streak-hero-longest-icon    { display:inline-flex; align-items:center; color: #F5A623; font-size: 18px; }
.streak-hero-longest-icon .ic{ width:1em; height:1em; }
.navbar-streak .ic           { width: 16px; height: 16px; }
.cal-stat-icon               { display:inline-flex; margin-left:6px; vertical-align:middle; font-size:14px; opacity:.85; }
.cal-day-pill .ic            { width:10px; height:10px; margin-right:3px; }
.badge-card .ic              { width: 28px; height: 28px; }

/* ════════════════════════════════════════════════════════════════
   DESKTOP BREATHING-ROOM LAYOUT  (>= 1100px)
   Shift away from centered-mobile feel toward wide editorial design
   ──────────────────────────────────────────────────────────────── */
@media (min-width: 1100px) {
    /* Wider containers */
    .container {
        max-width: 1180px !important;
        padding: 48px 56px !important;
    }
    #dashboardContainer { max-width: 1180px !important; padding: 48px 56px !important; }
    #calendarContainer  { max-width: 1180px !important; padding: 48px 56px !important; }

    /* Home / hero full-width breathing */
    .hero-slider, #heroSlider { max-height: 520px; }

    /* Dashboard: bento-grid */
    .streak-hero {
        gap: 32px !important;
        padding: 32px 36px !important;
    }
    .streak-hero-icon { font-size: 56px; }
    .streak-hero-count { font-size: 40px; }
    .streak-hero-sub   { font-size: 14px; max-width: 540px; }

    /* Three-column stat row stays but becomes more generous */
    .dash-stat-row { gap: 20px !important; margin-top: 32px; }
    .dash-stat-item { padding: 28px 24px !important; border-radius: 18px !important; }
    .dash-stat-val  { font-size: 32px !important; }
    .dash-stat-lbl  { font-size: 11px !important; letter-spacing: 1.4px !important; }

    /* Side-by-side on wide screens: Upcoming + Achievements */
    .dash-bento-row {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 28px;
        margin-top: 32px;
    }
    /* Elevate section cards */
    .upcoming-wrap, .badges-wrap {
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 18px;
        padding: 24px 26px;
        margin: 0 !important;
    }
    .upcoming-wrap h3, .badges-wrap h3 {
        font-size: 12px !important;
        letter-spacing: 1.6px;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 18px !important;
    }

    /* Calendar desktop: 2-column day cards on wide screens */
    .cal-day-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px !important;
    }
    .calendar-hero-stats { gap: 16px !important; }
    .cal-stat { padding: 20px 24px !important; }
    .cal-stat-val { font-size: 28px !important; }

    /* Home sections: wider scrollers, more cards visible */
    .section-title { font-size: 22px !important; letter-spacing: -0.3px; }
    .trending-scroll, .hot-scroll, .rec-scroll, .cast-scroll {
        gap: 16px !important;
    }

    /* Navbar: bigger logo, more generous nav */
    .nav-brand { font-size: 22px !important; letter-spacing: -0.5px; }
    .navbar, nav { padding-left: 56px !important; padding-right: 56px !important; }

    /* Modals bigger on desktop */
    .modal-box, .modal-content {
        max-width: 560px;
    }
}

/* Ultra-wide desktop (>= 1440px): grant more air */
@media (min-width: 1440px) {
    .container,
    #dashboardContainer,
    #calendarContainer {
        max-width: 1320px !important;
        padding: 56px 72px !important;
    }
    .navbar, nav { padding-left: 72px !important; padding-right: 72px !important; }
    .hero-slider, #heroSlider { max-height: 580px; }
    .streak-hero-count { font-size: 46px; }
    .dash-stat-val { font-size: 36px !important; }
}

/* 4K / huge displays (>= 1920px) */
@media (min-width: 1920px) {
    .container,
    #dashboardContainer,
    #calendarContainer {
        max-width: 1440px !important;
    }
}

/* ════════════════════════════════════════════════════════════════
   POLISH — typography hierarchy, borders, muted rails
   ──────────────────────────────────────────────────────────────── */
.streak-hero {
    background: linear-gradient(135deg, rgba(255,107,53,0.08) 0%, rgba(229,9,20,0.04) 100%);
    border: 1px solid rgba(255,107,53,0.18);
}
.streak-hero.cold {
    background: linear-gradient(135deg, rgba(120,120,140,0.08) 0%, rgba(40,40,50,0.04) 100%);
    border-color: rgba(255,255,255,0.08);
}
.streak-hero.at-risk {
    background: linear-gradient(135deg, rgba(229,9,20,0.12) 0%, rgba(245,166,35,0.06) 100%);
    border-color: rgba(229,9,20,0.35);
}
/* Icon was originally a 🔥 emoji styled via background-clip:text. The HTML
   now uses an SVG whose stroke uses `currentColor`, so the gradient-text
   trick renders the stroke transparent → invisible. Use solid colors here
   so the SVG flame is always visible; the drop-shadow keeps the warm glow. */
.streak-hero-icon {
    background: none;
    color: #FF6B35;
    -webkit-text-fill-color: #FF6B35;
}
.streak-hero-icon .ic { stroke: currentColor; }
.streak-hero.cold .streak-hero-icon {
    background: none;
    color: #8b8b94;
    -webkit-text-fill-color: #8b8b94;
}
.streak-hero.at-risk .streak-hero-icon {
    background: none;
    color: #F5A623;
    -webkit-text-fill-color: #F5A623;
}

.navbar-streak .ic { color: #FF6B35; }
.navbar-streak.at-risk .ic { color: #F5A623; }

.badge-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.badge-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); }
.badge-card .badge-icon { color: var(--text-muted); }
.badge-card.unlocked .badge-icon {
    color: var(--accent-color);
}
.badge-card.unlocked {
    border-color: rgba(229,9,20,0.22);
    background: linear-gradient(135deg, rgba(229,9,20,0.08) 0%, rgba(255,107,53,0.03) 100%);
}

/* Calendar polish */
.cal-day-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color .2s ease, background .2s ease;
}
.cal-day-card:hover { border-color: rgba(255,255,255,0.14); }
.cal-day-card.today { border-color: rgba(229,9,20,0.4); background: linear-gradient(135deg, rgba(229,9,20,0.08) 0%, rgba(255,107,53,0.03) 100%); }
.cal-day-card.past  { opacity: 0.78; }

.cal-event.upcoming .cal-event-title { color: #fff; }
.cal-event.watched  .cal-event-title { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.2); }

.cal-day-pill.watched {
    background: rgba(34,197,94,0.12);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.25);
}

/* Scroll-btn arrows (❮ ❯) — replace with proper icons later; keep but style */
.scroll-btn {
    font-family: system-ui, sans-serif;
    font-weight: 300;
    font-size: 18px;
}

/* When Upcoming is hidden, Achievements spans full bento width */
@media (min-width: 1100px) {
    .dash-bento-row:has(> .upcoming-wrap[style*="display: none"]),
    .dash-bento-row:has(> .upcoming-wrap[style*="display:none"]) {
        grid-template-columns: 1fr;
    }
}
/* Mobile/tablet: always stack bento rows */
@media (max-width: 1099px) {
    .dash-bento-row { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
    .upcoming-wrap, .badges-wrap {
        background: rgba(255,255,255,0.025);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 16px;
        padding: 18px 16px;
        margin: 0 !important;
    }
    .upcoming-wrap h3, .badges-wrap h3 {
        font-size: 12px !important;
        letter-spacing: 1.6px;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 14px !important;
    }
}


/* ════════════════════════════════════════════════════════════════
   SCROLL BUTTON SVG ADJUSTMENT
   ──────────────────────────────────────────────────────────────── */
.scroll-btn svg { width: 20px; height: 20px; display: block; margin: auto; }
.scroll-btn { display: flex; align-items: center; justify-content: center; }
.hero-arrow svg { width: 28px; height: 28px; }
.btn-close-modal svg, .btn-close-cat svg { display: block; }


/* ════════════════════════════════════════════════════════════════
   SKELETON LOADERS
   ──────────────────────────────────────────────────────────────── */
.skeleton {
    display: block;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.3s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Trending card skeletons */
.sk-trending-card {
    display: flex; flex-direction: column; gap: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 10px;
    border-radius: 14px;
}
.sk-trending-poster { aspect-ratio: 2/3; width: 100%; border-radius: 10px; }
.sk-trending-line   { height: 12px; width: 85%; border-radius: 4px; }
.sk-trending-line.sm{ height: 10px; width: 45%; border-radius: 4px; }

/* Generic list row skeleton (for cast, rec, etc.) */
.sk-row { display:flex; gap:12px; align-items:center; padding:8px 0; }
.sk-row-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.sk-row-body { flex:1; display:flex; flex-direction:column; gap:6px; min-width:0; }

/* Card-sized block (posters) */
.sk-poster-card { flex: 0 0 140px; display:flex; flex-direction:column; gap:8px; }
.sk-poster-card .sk-trending-poster { width: 140px; }


/* ════════════════════════════════════════════════════════════════
   TOAST + UNDO ACTION
   ──────────────────────────────────────────────────────────────── */
.toast {
    display: flex;
    align-items: center;
    gap: 14px;
}
.toast-msg { flex: 1; min-width: 0; }
.toast-action {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.toast-action:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.45);
}


/* ════════════════════════════════════════════════════════════════
   COLLECTION GRID — DESKTOP BREATHING ROOM
   ──────────────────────────────────────────────────────────────── */
@media (min-width: 1100px) {
    #collectionGrid.trending-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 32px 22px !important;
    }
}
@media (min-width: 1280px) {
    #collectionGrid.trending-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 36px 24px !important;
    }
    #collectionContainer { padding: 0 40px !important; }
}
@media (min-width: 1600px) {
    #collectionGrid.trending-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

/* Polish the collection card title: truncate long names cleanly */
#collectionGrid .trending-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
    letter-spacing: -0.1px;
    color: #e5e5e5;
    font-weight: 600;
}

/* Slightly stronger hover lift on desktop so the grid feels alive */
@media (min-width: 1100px) {
    #collectionGrid .trending-card {
        transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    #collectionGrid .trending-card:hover {
        transform: translateY(-8px);
    }
    #collectionGrid .coll-card {
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    #collectionGrid .trending-card:hover .coll-card {
        box-shadow: 0 22px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
    }
}


/* ════════════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ──────────────────────────────────────────────────────────────── */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    transition: background .22s ease;
}
.switch-slider::before {
    content: ""; position: absolute;
    height: 18px; width: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    transition: transform .22s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.switch input:checked + .switch-slider { background: var(--accent-color); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:focus-visible + .switch-slider { box-shadow: 0 0 0 3px rgba(229,9,20,0.35); }

/* ════════════════════════════════════════════════════════════════
   PUBLIC PROFILE PAGE
   ──────────────────────────────────────────────────────────────── */
.pub-profile-wrap { max-width: 1000px; margin: 0 auto; }
.pub-profile-head {
    display: flex; align-items: center; gap: 24px;
    padding: 24px 0 28px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pub-profile-avatar {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.pub-profile-identity { flex: 1; min-width: 0; }
.pub-profile-name {
    margin: 0 0 6px; font-size: 28px; font-weight: 900; color: #fff;
    letter-spacing: -0.5px; line-height: 1.2;
}
.pub-profile-bio { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.5; max-width: 56ch; }
.pub-profile-share { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 10px 16px; border-radius: 10px; width: auto;
    cursor: pointer; transition: all .18s ease;
}
.pub-share-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

.pub-profile-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin: 28px 0 40px;
}
.pub-stat {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 18px 20px;
    display: flex; flex-direction: column; gap: 4px;
}
.pub-stat-val { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.pub-stat-lbl { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); }

.pub-profile-section { margin-bottom: 40px; }
.pub-section-title {
    font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--text-muted); margin: 0 0 18px; font-weight: 700;
}
.pub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 22px 16px;
}
.pub-card { display: flex; flex-direction: column; gap: 8px; }
.pub-poster {
    position: relative; width: 100%; padding-bottom: 150%;
    border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.pub-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pub-poster-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.15); }
.pub-poster-progress > div { height: 100%; background: var(--accent-color); transition: width .3s ease; }
.pub-card-title {
    font-size: 13px; color: #fff; font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-card-meta { font-size: 11px; color: var(--text-muted); }

.pub-profile-empty {
    text-align: center; padding: 80px 24px;
    color: var(--text-muted);
}
.pub-profile-empty h2 { color: #fff; font-size: 22px; margin: 14px 0 0; }
.pub-empty { color: var(--text-muted); font-size: 14px; }

@media (max-width: 640px) {
    .pub-profile-head { flex-direction: column; text-align: center; gap: 16px; }
    .pub-profile-avatar { width: 84px; height: 84px; }
    .pub-profile-share { justify-content: center; }
    .pub-profile-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pub-stat { padding: 14px 14px; }
    .pub-stat-val { font-size: 20px; }
    .pub-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px 12px; }
}


/* ════════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS MODAL
   ──────────────────────────────────────────────────────────────── */
.shortcuts-modal {
    max-width: 480px !important;
    width: 100%;
    padding: 32px 28px !important;
}
.shortcuts-title {
    font-size: 20px; font-weight: 900; letter-spacing: -0.3px;
    color: #fff; margin: 0 0 22px;
}
.shortcuts-list { display: flex; flex-direction: column; gap: 2px; }
.shortcuts-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.shortcuts-row:last-child { border-bottom: none; }
.shortcuts-label { color: var(--text-muted); font-size: 14px; }
.shortcuts-keys { display: inline-flex; gap: 4px; }
.shortcuts-modal kbd {
    display: inline-block;
    min-width: 24px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-bottom-width: 2px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}
.shortcuts-hint {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
.shortcuts-hint kbd {
    padding: 1px 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
}


/* ════════════════════════════════════════════════════════════════
   SECTION LABEL (Up Next / Continue Watching header)
   ──────────────────────────────────────────────────────────────── */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 16px;
    padding: 0 2px;
}
.section-label .sl-ic {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
}
.section-label .sl-sep {
    color: rgba(255,255,255,0.2);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    margin: 0 4px;
}
.section-label > span:not(.sl-sep) {
    color: #e5e5e5;
    font-weight: 700;
}


/* ════════════════════════════════════════════════════════════════
   STREAK AT-RISK STATE — subtle color shift instead of alert icon
   ──────────────────────────────────────────────────────────────── */
.navbar-streak.at-risk .ic { color: #F5A623; }
.navbar-streak.at-risk { border-color: rgba(245,166,35,0.35); }

.streak-hero.at-risk .streak-hero-icon {
    background: linear-gradient(135deg, #F5A623 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cal-stat-icon.at-risk { color: #F5A623; }
.cal-stat-icon:not(.at-risk) { color: #FF6B35; }

/* Streak pulse on at-risk for gentle attention (no flashing red) */
@keyframes streak-at-risk-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.navbar-streak.at-risk .ic,
.streak-hero.at-risk .streak-hero-icon {
    animation: streak-at-risk-pulse 2.4s ease-in-out infinite;
}
