:root {
    --bg-color: #0b0f13;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --accent-color: #00f2d1;
    --accent-glow: rgba(0, 242, 209, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(11, 15, 19, 0.8), transparent);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--surface-border);
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(11, 15, 19, 0.95);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    z-index: 1100;
    margin-top: 10px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-content a {
    color: var(--text-secondary) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--surface-color);
    color: var(--accent-color) !important;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, var(--bg-color) 20%, transparent 60%),
        linear-gradient(0deg, var(--bg-color) 5%, transparent 40%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.hero-info {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: none;
}

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

.btn-secondary {
    background-color: var(--surface-color);
    color: white;
    border: 1px solid var(--surface-border);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Category Sections */
.section {
    padding: 4rem 5% 2rem;
}

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

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Movie Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: scroll;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 165px;
    width: 165px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.movie-card:hover .card-img {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid var(--surface-border);
    background: #1a1a1a;
    /* Placeholder bg */
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.movie-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Modal / Detailed View */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.modal-left {
    flex: 1;
}

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

.modal-right {
    flex: 1.5;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-right h2 {
    font-size: 2.5rem;
}

/* Footer & Attribution */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--surface-border);
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    max-width: 400px;
    line-height: 1.4;
}

.footer-content img {
    height: 12px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-content img:hover {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-color);
        padding: 5rem 2rem;
        transition: 0.4s ease-in-out;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--surface-border);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    nav ul li a {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-info {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .movie-card {
        min-width: 110px;
        width: 110px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
}
/* Filter Bar Styles */
.filter-select {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.filter-select option {
    background: #0b0f13;
    color: white;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.6rem 1.2rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.page-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
