:root {
    /* YouTube Brand Colors */
    --primary: #FF0000;
    --primary-input: #3bee0e;
    --primary-hover: #cc0000;

    /* Modern Dark Theme (OLED Black + Cyber Glow) */
    --bg-main: #050505;
    --bg-card: rgba(15, 15, 15, 0.4);
    --bg-neutral: #1f2937;
    --text-main: #ffffff;
    --text-dim: #9ca3af;
    --text-neutral: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --aura-1: rgba(99, 102, 241, 0.15);
    /* Indigo */
    --aura-2: rgba(168, 85, 247, 0.1);
    /* Violet */
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* Light Theme Support (Modern Soft) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-main: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.7);
        --bg-neutral: #f3f4f6;
        --text-main: #000000;
        --text-dim: #4b5563;
        --text-neutral: #1a1a1a;
        --border: rgba(0, 0, 0, 0.08);
        --aura-1: rgba(99, 102, 241, 0.05);
        --aura-2: rgba(168, 85, 247, 0.03);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, var(--aura-1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--aura-2) 0px, transparent 50%),
        radial-gradient(at 50% 100%, var(--aura-1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s ease;
}

/* Fluid Typography for TV/Large Screens */
@media (min-width: 2560px) {
    body {
        font-size: 24px;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Layout Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (min-width: 2560px) {
    .container {
        max-width: 2200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Shared Components */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    background-color: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Ad Sections */
.ad-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.ad-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    opacity: 0.5;
}

/* Premium Mode Specifics (Global) */
body.premium-active .ad-banner,
body.premium-active .sidebar-ad {
    display: none !important;
}

.sidebar-ad {
    width: 300px;
    min-height: 600px;
    position: sticky;
    top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-secondary {
    background-color: var(--bg-neutral);
    color: var(--text-neutral);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #333;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Base Styles (Visible on Desktop) */
.hamburger-btn {
    display: none;
}

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

    .container {
        padding: 0 1rem;
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .hamburger-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        transition: var(--transition);
        border-radius: 2px;
    }

    /* Hamburger Animation to X */
    .mobile-menu-active .hamburger-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-active .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-active .hamburger-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-main);
    border-left: 1px solid var(--border);
    z-index: 1001;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

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

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

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

.mobile-nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.mobile-menu-active body {
    overflow: hidden;
}

/* Mobile & Small Screen Adaptations */
@media (max-width: 480px) {
    header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* TV & Ultra-wide Adaptations */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}