:root {
    --bg-deep: #050507;
    --bg-dark: #0a0a0f;
    --primary: #f59e0b; /* Golden Orange */
    --primary-glow: rgba(245, 158, 11, 0.4);
    --secondary: #3b82f6;
    --text-white: #ffffff;
    --text-dim: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Background Effects */
.glow-container {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: float 20s infinite alternate;
}

.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -100px; left: -100px; }
.orb-3 { width: 400px; height: 400px; background: #8b5cf6; top: 40%; left: 30%; }

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: height 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.logo span span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--text-white); }

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the mobile menu */
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    color: #000 !important;
    padding: 0.8rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Hero Section */
.hero-parallax {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-primary-complex {
    padding: 1.2rem 2.5rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-primary-complex:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.search-box-complex {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box-complex input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem 0;
    width: 100%;
    outline: none;
    font-size: 1.1rem;
}

.input-group-complex {
    margin-bottom: 1rem;
}
.input-group-complex label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.input-group-complex input {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}
.input-group-complex input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-dark);
    padding: 4rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories */
.categories-section {
    padding: 4rem 0 2rem;
}

.category-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.pill.active, .pill:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Movie Cards Complex */
.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.movie-grid-complex {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    padding-bottom: 8rem;
}

.movie-card-v2 {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.movie-card-v2:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--card-shadow);
}

.card-image {
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.8);
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    color: var(--primary);
    backdrop-filter: blur(5px);
}

/* Modal Complex */
.modal-complex {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(15px);
}

.modal-complex.active { display: flex; }

.modal-inner {
    background: var(--bg-dark);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 40px;
    position: relative;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

/* Custom Modal Scrollbar */
.modal-inner::-webkit-scrollbar {
    width: 6px;
}
.modal-inner::-webkit-scrollbar-track {
    background: transparent;
}
.modal-inner::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.modal-side { position: relative; }
.modal-side img { width: 100%; height: 100%; object-fit: cover; }
.modal-side-overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent, var(--bg-dark)); }

.modal-main {
    padding: 4rem;
}

.modal-main h2 { font-size: 3.5rem; font-family: var(--font-heading); margin-bottom: 1.5rem; }

.modal-tags { display: flex; gap: 1.5rem; margin-bottom: 2rem; color: var(--text-dim); }

.modal-tags span { background: var(--glass); padding: 0.4rem 1.2rem; border-radius: 10px; }

.modal-main p { font-size: 1.1rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 3rem; }

.modal-stats-grid { display: flex; gap: 3rem; margin-bottom: 3rem; }

.m-stat { display: flex; align-items: center; gap: 0.8rem; }
.m-stat i { color: var(--primary); }

.btn-watch-now {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.2rem;
    width: fit-content;
}

.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--glass);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* Footer Complex */
.footer-complex {
    background: var(--bg-dark);
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links a { display: block; text-decoration: none; color: var(--text-dim); margin-bottom: 0.8rem; }

.socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.socials a {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
}

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

/* Animations */
.animate-reveal { opacity: 0; transform: translateY(50px); animation: reveal 1s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.active { transform: translateX(0); }

.toast.success { border-left: 4px solid var(--primary); }
.toast.error { border-left: 4px solid #ef4444; }

.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--primary); }
.toast.error i { color: #ef4444; }

/* Reviews System */
.modal-reviews-section { margin-top: 3rem; border-top: 1px solid var(--glass-border); padding-top: 2rem; }
.reviews-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.review-item { background: var(--glass); border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 15px; margin-bottom: 1rem; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.review-user { font-weight: 700; color: var(--primary); }
.review-rating { display: flex; gap: 2px; color: #f59e0b; }
.review-comment { font-size: 0.95rem; line-height: 1.5; color: var(--text-dim); }
.review-date { font-size: 0.8rem; color: #666; margin-top: 0.5rem; }

.add-review-box { background: var(--glass); padding: 1.5rem; border-radius: 20px; border: 1px solid var(--primary); margin-bottom: 2rem; }
.star-rating { display: flex; gap: 0.5rem; margin-bottom: 1rem; cursor: pointer; }
.star-rating i { font-size: 1.5rem; color: #333; transition: 0.3s; }
.star-rating i.active { color: #f59e0b; }
.review-textarea { width: 100%; background: var(--bg-deep); border: 1px solid var(--glass-border); border-radius: 12px; color: #fff; padding: 1rem; margin-bottom: 1rem; resize: none; }

/* Responsive */
@media (max-width: 1024px) {
    .modal-layout { grid-template-columns: 1fr; }
    .modal-side { display: none; }
    .hero-content h1 { font-size: 4rem; }
    .movie-grid-complex { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { 
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        padding-top: 100px; /* Space for the header */
        transition: 0.4s ease-in-out;
        z-index: 1000;
        align-items: flex-start;
        padding-left: 2rem;
    }
    .nav-links.active {
        right: 0; /* Slide in */
    }
    .user-nav-box {
        margin-top: 2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .logo-text { display: none; } /* Hide text, keep icon on small screens if needed, or adjust size */
    .logo { font-size: 1.2rem; }
    .glass-nav { height: 70px; }
    .hero-content h1 { font-size: 3rem; line-height: 1.1; }
    .hero-content p { font-size: 1rem; }
    .stats-grid { flex-direction: column; gap: 2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
    .btn-primary-complex { text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .socials { justify-content: center; }
    .modal-main { padding: 2rem 1rem; }
    .modal-main h2 { font-size: 2rem; }
    .modal-stats-grid { flex-direction: column; gap: 1rem; }
    .btn-watch-now { width: 100%; justify-content: center; }
    .movie-grid-complex { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .card-content { padding: 1rem; }
    .card-content h3 { font-size: 1rem; }
    .card-badge { top: 0.5rem; right: 0.5rem; padding: 0.2rem 0.5rem; font-size: 0.7rem; }
    .toast-container { right: 1rem; top: 1rem; left: 1rem; align-items: center; }
    .toast { width: 100%; justify-content: center; transform: translateY(-120%); }
    .toast.active { transform: translateY(0); }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .movie-grid-complex { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; }
    .user-nav-box .btn-login span { display: none; } /* Only show icon on very small screens */
    .user-nav-box .btn-login { padding: 0.6rem; border-radius: 50%; }
    .logo-icon { width: 35px; height: 35px; }
    .modal-tags { flex-wrap: wrap; gap: 0.5rem; }
}
