/* ========================================
   PURPLEFLIX - Premium Streaming Website
   Purple Neon Glassmorphism Theme
   ======================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Purple Color Palette */
    --primary-purple: #6C3BFF;
    --neon-purple: #9D6CFF;
    --light-purple: #B794F6;
    --dark-purple: #4A2BBF;
    --deep-purple: #2D1B69;
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-glass: rgba(26, 26, 37, 0.7);
    --bg-glass-light: rgba(108, 59, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    
    /* Borders */
    --border-color: rgba(108, 59, 255, 0.3);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Glow Effects */
    --glow-purple: 0 0 20px rgba(108, 59, 255, 0.5);
    --glow-purple-strong: 0 0 40px rgba(108, 59, 255, 0.8);
    --glow-neon: 0 0 30px rgba(157, 108, 255, 0.6);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-purple: 0 8px 32px rgba(108, 59, 255, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all var(--transition-fast);
}

input {
    font-family: inherit;
}

/* ==================== ANIMATED BACKGROUND EFFECTS ==================== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-purple);
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 800px;
    height: 800px;
    background: var(--neon-purple);
    bottom: -300px;
    right: -300px;
    animation-delay: -7s;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: var(--light-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(108, 59, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 59, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn i {
    font-size: 0.9em;
}

/* Primary Purple Button with Glow */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-purple), var(--light-purple));
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple-strong);
}

.btn-glow-effect {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 59, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(108, 59, 255, 0.8); }
}

/* Glass Button */
.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--neon-purple);
}

/* Glass Outline Button */
.btn-glass-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-glass-outline:hover {
    background: var(--bg-glass-light);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* Icon Button */
.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-glass-light);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* Large Button */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Block Button */
.btn-block {
    width: 100%;
}

/* ==================== NAVIGATION BAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-purple);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: var(--glow-purple);
}

.logo-icon.large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text .accent {
    color: var(--neon-purple);
    text-shadow: 0 0 20px rgba(157, 108, 255, 0.5);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.9em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--neon-purple));
    transition: width var(--transition-base);
    box-shadow: var(--glow-purple);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Search */
.search-box {
    position: relative;
}

.search-toggle {
    background: transparent;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-toggle:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.search-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + var(--spacing-sm));
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

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

.search-dropdown input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.95rem;
}

.search-dropdown input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--spacing-xs);
}

.search-close:hover {
    color: var(--neon-purple);
}

/* Icon Buttons */
.icon-btn {
    background: transparent;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.1rem;
}

.icon-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-purple);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    background: transparent;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.profile-trigger img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.profile-trigger:hover img {
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.profile-trigger i {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.profile-dropdown.active .profile-trigger i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + var(--spacing-sm));
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid var(--neon-purple);
}

.dropdown-header h4 {
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-links {
    padding: var(--spacing-xs);
}

.dropdown-links li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.dropdown-links li a:hover {
    background: var(--bg-glass-light);
    color: var(--neon-purple);
}

.dropdown-links li a i {
    width: 20px;
    text-align: center;
}

.dropdown-links .divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-xs) var(--spacing-md);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-btn span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn span:nth-child(1) { top: 12px; }
.mobile-menu-btn span:nth-child(2) { top: 50%; }
.mobile-menu-btn span:nth-child(3) { bottom: 12px; }

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    bottom: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 650px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 15, 0.98) 0%,
        rgba(10, 10, 15, 0.7) 30%,
        rgba(10, 10, 15, 0.3) 60%,
        rgba(10, 10, 15, 0.1) 100%
    );
}

.slide-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(transparent, var(--bg-primary));
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.badge.featured {
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    box-shadow: var(--glow-purple);
}

.badge.trending {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 0 20px rgba(238, 90, 36, 0.5);
}

.badge.new {
    background: linear-gradient(135deg, #00d9ff, #0099ff);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Hero Title */
.slide-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Description */
.slide-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Actions */
.slide-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Hero Meta */
.slide-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
}

.slide-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-meta i {
    color: #ffd700;
}

.quality-badge {
    background: var(--bg-glass);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--neon-purple);
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
    position: relative;
}

.slider-dot.active {
    background: var(--neon-purple);
    box-shadow: var(--glow-purple);
    transform: scale(1.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all var(--transition-base);
}

.hero:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--bg-glass-light);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.slider-arrow.prev { left: var(--spacing-lg); }
.slider-arrow.next { right: var(--spacing-lg); }

/* ==================== MAIN CONTENT ==================== */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    margin-bottom: var(--spacing-2xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.section-title i {
    color: var(--neon-purple);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(157, 108, 255, 0.5));
}

.view-all {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.view-all:hover {
    color: var(--neon-purple);
}

/* ==================== MOVIE ROW ==================== */
.movie-row {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: var(--spacing-md);
}

.movie-row::-webkit-scrollbar {
    display: none;
}

/* ==================== MOVIE CARDS ==================== */
.movie-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-base);
    cursor: pointer;
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.movie-card:hover {
    transform: scale(1.08) translateY(-8px);
    z-index: 10;
    box-shadow: var(--shadow-purple);
}

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

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.movie-card:hover .card-image img {
    transform: scale(1.15);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(10, 10, 15, 0.95) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
}

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

/* Play Button */
.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all var(--transition-base);
    box-shadow: var(--glow-purple-strong);
}

.movie-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Card Actions */
.card-actions {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.card-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.card-action-btn:hover {
    background: var(--primary-purple);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.card-action-btn.added {
    background: var(--neon-purple);
}

/* Card Info */
.card-info {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffd700;
    font-weight: 600;
}

.card-rating i {
    font-size: 0.8em;
}

.card-quality {
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

/* ==================== DETAIL MODAL ==================== */
.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.modal-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(30px);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl), var(--shadow-purple);
}

.detail-modal.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--primary-purple);
    box-shadow: var(--glow-purple);
}

/* Modal Banner */
.modal-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--bg-card));
}

.play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--glow-purple-strong);
}

.play-circle:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Modal Body */
.modal-body {
    padding: var(--spacing-lg);
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.movie-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.match-score {
    color: #46d369;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quality {
    background: var(--bg-glass);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--neon-purple);
}

.movie-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

.movie-details {
    margin-bottom: var(--spacing-lg);
}

.detail-row {
    margin-bottom: var(--spacing-sm);
}

.detail-row .label {
    color: var(--text-muted);
    margin-right: var(--spacing-sm);
}

.genre-tags {
    display: inline-flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.genre-tag {
    background: var(--bg-glass-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--neon-purple);
    border: 1px solid var(--border-color);
}

.detail-row .value {
    color: var(--text-primary);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ==================== VIDEO PLAYER ==================== */
.video-player {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.video-player.active {
    opacity: 1;
    visibility: visible;
}

.player-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-close:hover {
    background: var(--primary-purple);
    box-shadow: var(--glow-purple);
}

.player-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* Player Controls */
.player-controls {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--glow-purple-strong);
}

.center-play:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.player-header {
    padding: var(--spacing-lg);
    background: linear-gradient(rgba(0,0,0,0.8), transparent);
}

.player-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.player-bottom {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    position: relative;
    cursor: pointer;
}

.progress-buffer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    width: 30%;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--neon-purple));
    border-radius: var(--radius-full);
    width: 0%;
    box-shadow: var(--glow-purple);
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.ctrl-btn {
    background: transparent;
    color: white;
    font-size: 1.2rem;
    padding: var(--spacing-xs);
}

.ctrl-btn:hover {
    color: var(--neon-purple);
}

.time-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== AUTH MODAL ==================== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    max-width: 480px;
    width: 100%;
    transform: scale(0.9);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl), var(--shadow-purple);
}

.auth-modal.active .auth-card {
    transform: scale(1);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.auth-logo h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.auth-logo .accent {
    color: var(--neon-purple);
    text-shadow: 0 0 20px rgba(157, 108, 255, 0.5);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab-btn {
    flex: 1;
    padding: var(--spacing-sm);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple));
    color: white;
    box-shadow: var(--glow-purple);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group label i {
    margin-right: var(--spacing-xs);
    color: var(--neon-purple);
}

.input-group input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

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

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
}

.forgot-link {
    color: var(--neon-purple);
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.checkbox-label.terms {
    margin-bottom: var(--spacing-md);
}

.checkbox-label.terms a {
    color: var(--neon-purple);
}

.divider {
    text-align: center;
    color: var(--text-muted);
    margin: var(--spacing-md) 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border-color);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.social-btns {
    display: flex;
    gap: var(--spacing-md);
}

.social-btn {
    flex: 1;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.social-btn:hover {
    background: var(--bg-glass-light);
    border-color: var(--neon-purple);
}

.social-btn.google i { color: #ea4335; }
.social-btn.apple i { color: white; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
}

.footer-logo .accent {
    color: var(--neon-purple);
    text-shadow: 0 0 20px rgba(157, 108, 255, 0.5);
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-purple);
    border-color: var(--neon-purple);
    color: white;
    box-shadow: var(--glow-purple);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-purple);
}

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

.heart-icon {
    color: var(--neon-purple);
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-card {
        flex: 0 0 200px;
    }
    
    .card-image {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-md);
        transition: left var(--transition-base);
        z-index: 999;
        box-shadow: var(--shadow-xl);
        border-right: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 75vh;
        min-height: 550px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-actions {
        flex-direction: column;
    }
    
    .slide-meta {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .movie-card {
        flex: 0 0 160px;
    }
    
    .card-image {
        height: 240px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .modal-card {
        width: 95%;
    }
    
    .modal-banner {
        height: 280px;
    }
    
    .movie-title {
        font-size: 1.8rem;
    }
    
    .modal-actions {
        flex-wrap: wrap;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .auth-card {
        padding: var(--spacing-lg);
    }
    
    .social-btns {
        flex-direction: column;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .slide-content {
        padding: 0 var(--spacing-md);
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .movie-card {
        flex: 0 0 140px;
    }
    
    .card-image {
        height: 210px;
    }
    
    .content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .content-section {
        margin-bottom: var(--spacing-lg);
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* ==================== FOCUS STYLES ==================== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .hero,
    .detail-modal,
    .video-player,
    .auth-modal,
    .footer,
    .bg-effects {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
