:root {
            --primary: #0033ff;
            --primary-glow: rgba(0, 51, 255, 0.4);
            --bg-dark: #010010;
            --card-bg: rgba(10, 10, 35, 0.6);
            --text-main: #ffffff;
            --text-dim: #aeb5d9;
            --accent: #3b82f6;
            --yt-red: #ff0000;
            --glass-border: rgba(255, 255, 255, 0.08);
            --sidebar-width: clamp(240px, 20vw, 300px);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
        
        body {
            background: var(--bg-dark);
            color: var(--text-main);
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column; /* Mobile first stack */
        }

        /* --- Ambient Background --- */
        .bg-glow {
            position: fixed;
            inset: 0;
            background: 
                radial-gradient(circle at 15% 20%, #1a1a50aa, transparent 40%),
                radial-gradient(circle at 85% 70%, #0033ff44, transparent 40%);
            filter: blur(80px); /* Slightly reduced for mobile performance */
            z-index: -2;
        }

        .grid-overlay {
            position: fixed;
            inset: 0;
            background-image: linear-gradient(rgba(10, 10, 42, 0.2) 1px, transparent 1px),
                              linear-gradient(90deg, rgba(10, 10, 42, 0.2) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
        }

        /* --- Mobile Overlay (Active when menu is open) --- */
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }

        /* --- Sidebar (Mobile First) --- */
        nav.sidebar {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 280px;
            background: rgba(2, 2, 20, 0.9);
            backdrop-filter: blur(15px);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            padding: 2.5rem 1.5rem;
            z-index: 1000;
            transform: translateX(-100%); /* Hidden by default on mobile */
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
        }

        nav.sidebar.active {
            transform: translateX(0);
        }

        .profile-container {
            text-align: center;
            margin-bottom: 2rem;
        }

        .profile-img {
            width: 100%;
            max-width: 100px;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
            border: 3px solid var(--primary);
            padding: 5px;
            box-shadow: 0 0 20px var(--primary-glow);
            object-fit: cover;
        }

        .nav-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            color: var(--text-dim);
            text-decoration: none;
            border-radius: 12px;
            transition: 0.3s;
            font-size: 0.95rem;
        }

        .nav-links a i { width: 25px; font-size: 1.1rem; }
        .nav-links a span { margin-left: 10px; }

        .nav-links a:hover, .nav-links a.active {
            background: rgba(0, 51, 255, 0.15);
            color: #fff;
            transform: translateX(5px);
        }

        /* --- Mobile Toggle Button --- */
        .mobile-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 2000;
            background: var(--primary);
            width: 3rem;
            height: 3rem;
            border-radius: 12px;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 15px var(--primary-glow);
            transition: transform 0.2s;
        }

        .mobile-toggle:active {
            transform: scale(0.95);
        }

        /* --- Main Content (Mobile First) --- */
        main {
            flex: 1;
            padding: 5rem 1.5rem 6rem 1.5rem; /* Space for header & footer */
            width: 100%;
            transition: 0.4s;
        }

        /* --- Next-Gen Hero Section --- */
        .hero-spotlight {
            max-width: 1200px;
            margin: 0 auto 2rem;
            display: grid;
            grid-template-columns: 1fr; /* Stack on mobile */
            gap: 20px;
            animation: slideUp 0.8s ease-out;
        }

        .latest-video-hero {
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            aspect-ratio: 16/9;
            border: 1px solid var(--glass-border);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
            cursor: pointer;
        }

        .latest-video-hero img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .latest-video-hero:hover img { transform: scale(1.05); }

        .hero-badge {
            position: absolute; top: 15px; left: 15px;
            background: var(--yt-red); color: white;
            padding: 5px 12px; border-radius: 8px; font-weight: 600;
            font-size: 0.75rem; letter-spacing: 1px;
            display: flex; align-items: center; gap: 6px;
            box-shadow: 0 5px 15px rgba(255,0,0,0.3);
        }

        /* --- Dashboard Stats --- */
        .stats-dashboard {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat-card {
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            padding: 20px;
            border-radius: 20px;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            transition: 0.3s;
        }
        .stat-card:hover { border-color: var(--primary); transform: translateY(-5px); }
        .stat-card i { color: var(--accent); font-size: 1.5rem; margin-bottom: 10px; }
        .stat-card .value { font-size: 1.5rem; font-weight: 700; font-family: 'JetBrains Mono'; }
        .stat-card .label { color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

        /* --- Channel Header --- */
        .channel-header {
            max-width: 1200px;
            margin: 0 auto 2rem;
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 1.5rem;
            backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column; /* Center and stack on mobile */
            justify-content: center;
            align-items: center;
            text-align: center;
            gap: 1rem;
        }

        .channel-info h1 {
            font-size: 1.8rem;
            background: linear-gradient(to right, #fff, var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .live-indicator {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            color: #4ade80; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px;
        }
        .pulse {
            width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
            box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
            animation: pulse 2s infinite;
        }

        /* --- Video Bento Grid --- */
        .video-bento-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .video-card {
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            overflow: hidden;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            backdrop-filter: blur(5px);
        }

        .video-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary);
            box-shadow: 0 10px 30px rgba(0, 51, 255, 0.2);
        }

        .thumbnail-container { position: relative; aspect-ratio: 16/9; overflow: hidden; }
        .thumbnail-container img { width: 100%; height: 100%; object-fit: cover; }
        
        .play-overlay {
            position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
            display: flex; align-items: center; justify-content: center;
            opacity: 0; transition: 0.3s; backdrop-filter: blur(3px);
        }
        .video-card:hover .play-overlay { opacity: 1; }

        .video-details { padding: 1.25rem; }
        .video-details h3 { font-size: 0.95rem; font-weight: 500; line-height: 1.4; height: 2.8em; overflow: hidden; }

        /* --- Footer --- */
        footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 1rem;
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-dim);
            background: rgba(1, 0, 16, 0.8);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.05);
            z-index: 100;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
            100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
        }

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

        /* =========================================
           RESPONSIVE BREAKPOINTS
           ========================================= */

        /* --- Tablet (768px and up) --- */
        @media (min-width: 768px) {
            .channel-header {
                flex-direction: row;
                justify-content: space-between;
                text-align: left;
                padding: 1.8rem 2.5rem;
            }
            
            .live-indicator { justify-content: flex-start; }
            .channel-info h1 { font-size: 2rem; }
            
            .stat-card .value { font-size: 1.8rem; }
        }

        /* --- Desktop (1024px and up) --- */
        @media (min-width: 1024px) {
            body {
                flex-direction: row; /* Switch back to side-by-side layout */
            }

            .mobile-toggle { display: none; }
            .sidebar-overlay { display: none !important; }

            nav.sidebar {
                transform: translateX(0);
                width: var(--sidebar-width);
            }
 /* d */
            main {
                margin-left: var(--sidebar-width); /* Push content to right of sidebar */
                padding: 3.5rem;
                padding-bottom: 5rem;
            }

            .hero-spotlight {
                grid-template-columns: 1.5fr 1fr; /* Side by side hero & stats */
                gap: 30px;
                margin-bottom: 2.5rem;
            }
            
            .stats-dashboard { gap: 20px; }
            .channel-header { margin-bottom: 2.5rem; }
            .video-bento-grid { gap: 25px; }

            footer {
                width: calc(100% - var(--sidebar-width));
                left: var(--sidebar-width);
            }
            
            .bg-glow { filter: blur(120px); }
        }