/* ============================================================
   STYLES.CSS - Complete styles for JIODE V2
   Cinematic Movie-Themed Design with Stunning Animations
   ============================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a0a0a;
    --secondary: #141414;
    --accent: #e50914;
    --accent-hover: #b20710;
    --accent-glow: rgba(229, 9, 20, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --shadow: 0 8px 32px rgba(0,0,0,0.8);
    --shadow-glow: 0 0 40px rgba(229, 9, 20, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(229, 9, 20, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(229, 9, 20, 0.03) 0%, transparent 50%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 20px;
    transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}
::-webkit-scrollbar-track {
    background: var(--secondary);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   LOADING SCREEN - CINEMATIC SPLASH
   ============================================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

/* Cinematic film grain overlay */
.loading-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    animation: filmGrain 0.5s steps(2) infinite;
}

@keyframes filmGrain {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(5%, 0); }
    30% { transform: translate(0, 5%); }
    40% { transform: translate(-5%, 0); }
    50% { transform: translate(0, -5%); }
    60% { transform: translate(5%, 5%); }
    70% { transform: translate(0, 0); }
    80% { transform: translate(-5%, 5%); }
    90% { transform: translate(5%, -5%); }
    100% { transform: translate(0, 0); }
}

/* Cinematic vignette effect */
.loading-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.loading-screen .loader {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 1;
}

/* Film reel animation */
.loading-screen .loader::before {
    content: '🎬';
    font-size: 3.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: reelSpin 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes reelSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    25% { transform: translate(-50%, -50%) rotate(90deg) scale(1.1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1); }
    75% { transform: translate(-50%, -50%) rotate(270deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.loading-screen .loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: #ff6b6b;
    border-radius: 50%;
    animation: loaderSpin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cinematic spotlight animation */
.loading-screen .loader-spotlight {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
    animation: spotlightPulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes spotlightPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

.loading-screen p {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    z-index: 1;
    position: relative;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.4; letter-spacing: 4px; }
    50% { opacity: 1; letter-spacing: 6px; }
}

/* Loading progress bar (cinematic style) */
.loading-screen .progress-bar {
    width: 200px;
    height: 2px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.loading-screen .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff6b6b, var(--accent));
    animation: progressSlide 1.8s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progressSlide {
    0% { left: -100%; width: 30%; }
    50% { left: 50%; width: 50%; }
    100% { left: 100%; width: 30%; }
}

.loading-screen.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* ============================================================
   HEADER - CINEMATIC
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.4s ease,
                box-shadow 0.4s ease;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    height: 100%;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1;
    position: relative;
}

/* Logo glow effect */
.logo h1::after {
    content: 'JIODE';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(12px);
    opacity: 0.3;
    z-index: -1;
}

.logo .badge-v2 {
    background: var(--accent);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    -webkit-text-fill-color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo p {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 400;
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.main-nav a i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.main-nav a:hover i {
    transform: translateY(-2px);
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    border-radius: 4px;
    animation: slideIn 0.4s ease;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

@keyframes slideIn {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 20px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
    transform: rotate(20deg) scale(1.1);
}

/* ===== AUTH BUTTONS ===== */
.auth-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding-right: 35px;
}

.btn-login, .btn-signup {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.btn-login::before, .btn-signup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover::before, .btn-signup:hover::before {
    width: 200px;
    height: 200px;
}

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

.btn-login:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.05);
    transform: translateY(-2px);
}

.btn-signup {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.btn-signup:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 30px rgba(229, 9, 20, 0.4);
}

/* ===== USER MENU ===== */
.user-menu {
    position: relative;
    padding-right: 35px;
}

.btn-user {
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-user:hover {
    background: rgba(255,255,255,0.05);
}

.btn-user i:first-child {
    font-size: 1.3rem;
    color: var(--accent);
}

.btn-user .fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 200px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s ease;
    z-index: 50;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.user-dropdown a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding-left: 1.5rem;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.3rem 0;
}

/* ===== NAV TOGGLE (mobile) ===== */
.nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1001;
    background: var(--accent);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.nav-toggle.active {
    background: var(--accent-hover);
}

.nav-toggle.active i {
    transform: rotate(90deg);
    transition: var(--transition);
}

/* ============================================================
   HERO SEARCH - CINEMATIC
   ============================================================ */
.hero-search {
    padding: 4rem 0 5rem;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(229, 9, 20, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(229, 9, 20, 0.03) 0%, transparent 50%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Cinematic light rays effect */
.hero-search::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(229, 9, 20, 0.03) 0%, transparent 60%);
    animation: lightRays 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightRays {
    0%, 100% { transform: translateX(-10%) rotate(-5deg); }
    50% { transform: translateX(10%) rotate(5deg); }
}

.hero-search.hidden {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    animation: heroTitleFade 1s ease;
}

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

.hero-content h2 span {
    background: linear-gradient(135deg, var(--accent), #ff6b6b, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: heroTitleFade 1.2s ease;
}

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.3rem;
    transition: all 0.4s ease;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    animation: heroTitleFade 1.4s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15), var(--shadow-glow);
    background: rgba(255,255,255,0.06);
    transform: scale(1.01);
}

.search-box .search-icon {
    color: var(--text-secondary);
    padding: 0 0.5rem 0 1.2rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--accent);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.9rem 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-weight: 400;
    min-width: 0;
    font-family: var(--font-family);
}

.search-box input::placeholder {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.search-box:focus-within input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: var(--accent);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.search-box button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.search-box button:hover::before {
    width: 150px;
    height: 150px;
}

.search-box button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(229, 9, 20, 0.4);
}

/* ===== TRENDING TAGS ===== */
.trending-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: heroTitleFade 1.6s ease;
}

.trending-tags span {
    font-weight: 600;
    color: var(--text-primary);
}

.trending-tags a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.trending-tags a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

.trending-tags a:hover::before {
    opacity: 0.1;
}

.trending-tags a:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.1);
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
#searchResultsSection {
    padding: 2rem 0;
    animation: fadeInUp 0.5s ease;
}

#clearSearchBtn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: var(--font-family);
}

#clearSearchBtn:hover {
    color: var(--accent);
    transform: scale(1.05);
}

/* ============================================================
   CATEGORY ROWS
   ============================================================ */
.category-row {
    padding: 2.5rem 0 0.5rem;
    animation: fadeInUp 0.6s ease;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.section-header h2 i {
    color: var(--accent);
    font-size: 1.3rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.view-all {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: var(--font-family);
    position: relative;
}

.view-all::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.view-all:hover {
    color: var(--text-primary);
}

.view-all:hover::after {
    width: 100%;
}

.view-all i {
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(4px);
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(0.5);
}

.category-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.category-card .category-icon {
    font-size: 2rem;
    line-height: 1.2;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(-5deg);
}

.category-card .category-name {
    font-weight: 600;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--accent);
}

/* ============================================================
   MOVIE SCROLL
   ============================================================ */
.movie-scroll {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.4rem 0.2rem 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.movie-scroll::-webkit-scrollbar {
    height: 4px;
    background: transparent;
}
.movie-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 20px;
}
.movie-scroll::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 20px;
}

/* ============================================================
   MOVIE CARDS - CINEMATIC
   ============================================================ */
.movie-card {
    flex: 0 0 200px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    transform-origin: center;
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, transparent 50%, rgba(229, 9, 20, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    border-color: var(--accent);
    z-index: 10;
}

.movie-card:active {
    transform: scale(0.97);
}

.movie-poster {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: var(--secondary);
    transition: var(--transition-slow);
}

.movie-card:hover .movie-poster {
    filter: brightness(1.08) contrast(1.05);
    transform: scale(1.02);
}

/* Rating badge on poster */
.movie-card .rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f5c518;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.05);
}

.movie-info {
    padding: 0.7rem 0.8rem 0.9rem;
    position: relative;
    z-index: 2;
}

.movie-title {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.movie-card:hover .movie-title {
    color: var(--accent);
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.movie-rating {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent);
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* ===== BOOKMARK BUTTON ON CARD ===== */
.movie-card .bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.movie-card .bookmark-btn:hover {
    transform: scale(1.15);
    background: rgba(229, 9, 20, 0.8);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.movie-card .bookmark-btn i {
    transition: transform 0.3s ease;
}

.movie-card .bookmark-btn:hover i {
    transform: scale(1.1);
}

/* ============================================================
   PLATFORMS STRIP
   ============================================================ */
.platforms-strip {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.platforms-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.platforms-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platforms-content span {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.platform-icons {
    display: flex;
    gap: 2rem;
    font-size: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-icons i {
    color: var(--text-secondary);
    transition: all 0.4s ease;
    cursor: default;
    filter: grayscale(0.5);
}

.platform-icons i:hover {
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.2);
    filter: grayscale(0);
}

.platform-icons i.fa-netflix:hover { color: #E50914; }
.platform-icons i.fa-amazon:hover { color: #FF9900; }
.platform-icons i.fa-disney:hover { color: #113CCF; }
.platform-icons i.fa-bolt:hover { color: #5822B4; }
.platform-icons i.fa-apple:hover { color: #555555; }
.platform-icons i.fa-youtube:hover { color: #FF0000; }
.platform-icons i.fa-tv:hover { color: #1CE783; }
.platform-icons i.fa-play-circle:hover { color: #0066FF; }

/* ============================================================
   MODAL - CINEMATIC
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFade 0.4s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: overlayFade 0.4s ease;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: var(--secondary);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border-color);
    margin: 50px auto;
}

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

.modal-content::-webkit-scrollbar {
    width: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 20px;
}
.modal-content::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 20px;
}

.modal-close {
    position: sticky;
    top: 16px;
    right: 16px;
    float: right;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

#modalBody {
    padding: 0 2rem 2rem;
    clear: both;
}

/* ===== MOVIE DETAILS IN MODAL ===== */
#modalBody .modal-poster {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
}

#modalBody .modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

#modalBody .modal-details {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
}

#modalBody .modal-details span {
    background: var(--card-bg);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#modalBody .modal-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1rem 0;
}

#modalBody .modal-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

#modalBody .modal-platforms .platform-badge {
    background: var(--card-bg);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

#modalBody .modal-platforms .platform-badge:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

#modalBody .watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--accent);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

#modalBody .watch-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#modalBody .watch-btn:hover::before {
    width: 300px;
    height: 300px;
}

#modalBody .watch-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.3);
}

/* ============================================================
   VIEW ALL MODAL
   ============================================================ */
#viewAllModal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

#viewAllMoviesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

#viewAllMoviesGrid .movie-card {
    flex: 0 0 auto;
    width: 100%;
}

/* ============================================================
   CATEGORY MODAL
   ============================================================ */
.category-modal .modal-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 50px auto;
}

#categoryMoviesGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

#categoryMoviesGrid .movie-card {
    flex: 0 0 auto;
    width: 100%;
}

/* ============================================================
   AUTH MODALS
   ============================================================ */
.auth-content {
    max-width: 420px;
    padding: 2.5rem;
}

.auth-form h2 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.auth-form p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    font-family: var(--font-family);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-auth:hover::before {
    width: 300px;
    height: 300px;
}

.btn-auth:hover {
    background: var(--accent-hover);
    transform: scale(1.01);
}

.auth-switch {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===== GOOGLE BUTTON ===== */
.google-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.google-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.google-btn:hover::before {
    opacity: 1;
}

.google-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--secondary);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.1);
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.6rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
}

.footer-links ul li a:hover::after {
    width: 100%;
}

.footer-newsletter h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-box {
    display: flex;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.newsletter-box:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.newsletter-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.7rem 1.2rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-family);
    font-size: 0.9rem;
}

.newsletter-box input::placeholder {
    color: var(--text-secondary);
}

.newsletter-box button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.newsletter-box button:hover {
    background: var(--accent-hover);
}

.newsletter-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: 24px;
}

.newsletter-message.success {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.newsletter-message.error {
    color: var(--accent);
    background: rgba(229, 9, 20, 0.1);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================================
   FLOATING SUPPORT BUTTON
   ============================================================ */
#supportDropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================================
   SCROLL TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    box-shadow: 0 4px 30px rgba(229, 9, 20, 0.4);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 40px rgba(229, 9, 20, 0.5);
}

.scroll-top:active {
    transform: scale(0.9);
}

/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 4px 8px;
    transition: var(--transition);
    z-index: 2;
    border-radius: 4px;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.password-toggle i {
    pointer-events: none;
}

.form-group input[type="password"],
.form-group input[type="text"] {
    padding-right: 44px;
}

/* ============================================================
   BAD GATEWAY ANIMATION
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .hero-content h2 {
        font-size: 3rem;
    }
    #categoryMoviesGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header .container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    .logo p {
        display: none;
    }
    .logo .badge-v2 {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
    }
    
    .nav-toggle {
        display: flex;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    .main-nav.open {
        display: block;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    .main-nav a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        width: 100%;
        justify-content: center;
    }
    .main-nav a.active::after {
        bottom: 0;
    }
    
    .header-actions {
        gap: 0.3rem;
        margin-left: 0;
    }
    .btn-login, .btn-signup {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    .auth-buttons {
        gap: 0.3rem;
    }
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    .hero-search {
        padding: 2rem 0 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 30px;
        padding: 0.5rem;
        margin: 0 0.5rem 1.5rem;
    }
    .search-box .search-icon {
        display: none;
    }
    .search-box input {
        padding: 0.7rem 1rem;
        width: 100%;
        text-align: center;
    }
    .search-box button {
        width: 100%;
        border-radius: 30px;
        height: 44px;
        margin-top: 0.3rem;
    }
    
    .trending-tags {
        gap: 0.5rem;
    }
    .trending-tags a {
        padding: 0.2rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .movie-card {
        flex: 0 0 150px;
    }
    .movie-poster {
        height: 210px;
    }
    .movie-title {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    .section-header h2 i {
        font-size: 1rem;
    }
    .view-all {
        font-size: 0.8rem;
    }
    
    .category-row {
        padding: 1.5rem 0 0.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.6rem;
    }
    
    .category-card {
        padding: 0.8rem 0.5rem;
    }
    .category-card .category-icon {
        font-size: 1.4rem;
    }
    .category-card .category-name {
        font-size: 0.7rem;
    }
    
    #categoryMoviesGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #viewAllMoviesGrid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }
    #modalBody {
        padding: 0 1rem 1.5rem;
    }
    
    .auth-content {
        padding: 1.5rem;
    }
    .auth-form h2 {
        font-size: 1.6rem;
    }
    
    #aboutSection .container > div {
        padding: 1.5rem;
    }
    #aboutSection h2 {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .platforms-content {
        gap: 1rem;
    }
    .platform-icons {
        gap: 1.2rem;
        font-size: 1.5rem;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
    }
    
    #floatingSupportBtn {
        bottom: 5rem !important;
        right: 1rem !important;
    }
    #floatingSupportBtn button {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
    #supportDropdown {
        min-width: 200px !important;
        right: -10px !important;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    .logo .badge-v2 {
        font-size: 0.45rem;
        padding: 0.1rem 0.3rem;
    }
    
    .nav-toggle {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .movie-card {
        flex: 0 0 130px;
    }
    .movie-poster {
        height: 185px;
    }
    .movie-info {
        padding: 0.5rem 0.5rem 0.6rem;
    }
    .movie-title {
        font-size: 0.75rem;
    }
    .movie-meta {
        font-size: 0.65rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    .section-header h2 i {
        font-size: 0.9rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }
    
    .category-card {
        padding: 0.6rem 0.3rem;
    }
    .category-card .category-icon {
        font-size: 1.2rem;
    }
    .category-card .category-name {
        font-size: 0.65rem;
    }
    
    #categoryMoviesGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    #viewAllMoviesGrid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.8rem;
    }
    
    .btn-login, .btn-signup {
        padding: 0.2rem 0.5rem;
        font-size: 0.6rem;
    }
    .auth-buttons {
        gap: 0.2rem;
    }
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .search-box input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    .search-box button {
        height: 38px;
        font-size: 0.9rem;
    }
    
    .trending-tags a {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }
    
    .platform-icons {
        gap: 0.8rem;
        font-size: 1.2rem;
    }
    .platforms-content span {
        font-size: 0.75rem;
    }
    
    .footer-brand h2 {
        font-size: 1.4rem;
    }
    .footer-social a {
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
    }
}

/* ============================================================
   LIGHT THEME - CINEMATIC
   ============================================================ */
body.light-theme {
    --primary: #f0f0f0;
    --secondary: #ffffff;
    --text-primary: #141414;
    --text-secondary: #555555;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

body.light-theme .hero-search {
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(229, 9, 20, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(229, 9, 20, 0.02) 0%, transparent 50%);
}

body.light-theme .search-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: #d0d0d0;
}

body.light-theme .search-box input {
    color: #141414;
}

body.light-theme .search-box input::placeholder {
    color: #999;
}

body.light-theme .movie-card {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-theme .movie-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

body.light-theme .category-card {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-theme .category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .modal-content {
    background: #ffffff;
}

body.light-theme #modalBody .modal-details span {
    background: #f0f0f0;
    color: #555;
}

body.light-theme #modalBody .modal-description {
    color: #555;
}

body.light-theme #aboutSection .container > div {
    background: #ffffff;
}

body.light-theme .footer {
    background: #f5f5f5;
    border-top-color: #e0e0e0;
}

body.light-theme .footer-brand p,
body.light-theme .footer-links ul li a,
body.light-theme .footer-newsletter p,
body.light-theme .footer-bottom {
    color: #666;
}

body.light-theme .footer-links h4,
body.light-theme .footer-newsletter h4 {
    color: #141414;
}

body.light-theme .newsletter-box {
    background: #ffffff;
    border-color: #d0d0d0;
}

body.light-theme .newsletter-box input {
    color: #141414;
}

body.light-theme .user-dropdown {
    background: #ffffff;
}

body.light-theme .user-dropdown a {
    color: #555;
}

body.light-theme .user-dropdown a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #141414;
}

body.light-theme .user-dropdown hr {
    border-color: #e0e0e0;
}

body.light-theme .form-group input {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #141414;
}

body.light-theme .form-group input:focus {
    border-color: var(--accent);
}

body.light-theme .auth-content {
    background: #ffffff;
}

body.light-theme .auth-form p {
    color: #666;
}

body.light-theme .auth-switch {
    color: #666;
}

body.light-theme .support-section {
    background: linear-gradient(135deg, #f8f8f8, #ffffff) !important;
    border-color: #e94560 !important;
}

body.light-theme .support-section h2 {
    color: #141414 !important;
}

body.light-theme .support-section p {
    color: #555 !important;
}

body.light-theme .support-section strong {
    color: #141414 !important;
}

body.light-theme #supportDropdown {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-theme #supportDropdown h4 {
    color: #141414 !important;
}

body.light-theme #supportDropdown p {
    color: #666 !important;
}

body.light-theme .platform-icons i {
    color: #999;
}

body.light-theme .platform-icons i:hover {
    color: #141414;
}

body.light-theme .footer-social a {
    border-color: #d0d0d0;
}

body.light-theme .footer-social a:hover {
    border-color: var(--accent);
}