:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #0066ff;
    --accent: #f5c518;
    --red: #ff3b3b;
    --bg-deep: #050508;
    --bg-card: rgba(25, 25, 35, 0.6);
    --bg-glass: rgba(10, 10, 15, 0.85);
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 20px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-glow); }
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- NAV --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 80px; padding: 0 5vw;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Bebas Neue', cursiv; font-size: 2.2rem;
    color: #fff; text-decoration: none; display: flex; align-items: center; gap: 0.8rem;
    letter-spacing: 1px;
}
.logo span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-input {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    border-radius: 99px; color: #fff; font-size: 0.9rem;
    padding: 0.7rem 1.5rem 0.7rem 3rem; width: 250px; outline: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.search-input:focus { width: 350px; background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }

/* --- SECTIONS & TITLES --- */
.section { padding: 4rem 5vw 2rem; max-width: 1600px; margin: 0 auto; }
.section-title {
    font-size: 2rem; font-weight: 800; margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.section-title span { color: var(--primary); }

/* --- GENRE/YEAR LISTS --- */
.tag-list {
    display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem;
}
.tag-item {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 0.5rem 1.2rem; border-radius: 99px; color: var(--text-dim);
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    transition: all 0.3s ease;
}
.tag-item:hover {
    background: var(--primary); color: #000; border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- HERO --- */
.hero {
    position: relative; height: 90vh; min-height: 700px;
    display: flex; align-items: flex-end; padding: 0 5vw 12vh;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background-size: cover; background-position: center 20%;
    filter: brightness(0.4) saturate(1.2);
}
.hero-vignette {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at 20% 50%, transparent 10%, var(--bg-deep) 85%),
                linear-gradient(to top, var(--bg-deep) 10%, transparent 50%);
}
.hero-content { max-width: 800px; animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1); }
.hero-title { font-size: clamp(3rem, 10vw, 7rem); font-weight: 900; line-height: 0.85; margin-bottom: 1.5rem; letter-spacing: -3px; }

/* --- GRID & CARDS --- */
.movie-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
}
.card {
    text-decoration: none; color: inherit; display: block;
    animation: fadeInUp 0.8s ease-out both;
}
.card-poster-wrap {
    position: relative; aspect-ratio: 2/3; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    transition: all 0.4s ease;
}
.card:hover .card-poster-wrap {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 255, 0.3);
}
.card-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover .card-poster { transform: scale(1.1); }

.card-score {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    border: 1px solid var(--accent); color: var(--accent);
    padding: 3px 10px; border-radius: 8px; font-weight: 800; font-size: 0.8rem;
}
.card-body { padding: 1.2rem 0; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- MOVIE DETAILS --- */
.details-hero {
    position: relative; padding: 100px 5vw 60px; min-height: 600px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.details-backdrop {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center; filter: blur(30px) brightness(0.3);
}
.details-container {
    display: grid; grid-template-columns: 350px 1fr; gap: 4rem;
    position: relative; z-index: 10;
}
.details-poster {
    width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
.details-content h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 2rem; color: #fff; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.meta-item { background: var(--bg-card); padding: 1rem; border-radius: 15px; border: 1px solid var(--border); }
.meta-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.meta-value { font-size: 1.1rem; font-weight: 800; color: #fff; }

.btn {
    display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 1.2rem 2.5rem; border-radius: 99px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    transition: all 0.4s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 10px 30px var(--primary-glow); }
.btn-primary:hover { background: #fff; transform: translateY(-5px); box-shadow: 0 15px 40px rgba(255,255,255,0.3); }

/* --- DOWNLOAD CARDS --- */
.dl-section { margin-top: 4rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.dl-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 1.5rem; border-radius: var(--radius); position: relative;
    border-left: 5px solid var(--primary); transition: all 0.3s ease;
}
.dl-card:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.05); }
.dl-type { font-weight: 800; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; margin-bottom: 0.5rem; }
.dl-title { font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 1.5rem; }
.btn-dl { 
    background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border);
    padding: 0.6rem 1.5rem; border-radius: 99px; font-size: 0.85rem; font-weight: 700;
    text-decoration: none; transition: 0.3s;
}
.btn-dl:hover { background: var(--primary); color: #000; border-color: var(--primary); }

/* --- MODALS --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .details-container { grid-template-columns: 1fr; }
    .poster-col { display: none; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 4rem; }
    .nav { padding: 0 1.5rem; }
}
