:root {
    /* Color Palette */
    --bg-main: #060608;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-nav: rgba(6, 6, 8, 0.85);
    --accent: #a855f7; /* Electric Violet */
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing & Sizing */
    --container-width: 1400px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

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

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

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
}

.aura {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.search-bar {
    position: relative;
    width: 400px;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    padding-right: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.search-bar button {
    position: absolute;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.premium-nav-btn {
    margin-left: 2rem;
    background: linear-gradient(45deg, #a855f7, #6366f1) !important;
    border: none !important;
    text-decoration: none;
    color: white !important;
    transition: var(--transition);
}

.premium-nav-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #060608 20%, transparent 60%),
                linear-gradient(to top, #060608 0%, transparent 40%),
                url('https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&q=80&w=2000') center/cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-content {
    max-width: 700px;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.badge-live {
    background: #ef4444; /* Bright Red */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.badge-live::before {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-white 1.5s infinite;
}

@keyframes pulse-white {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.premium-text {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: white;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Content Shelf */
.content-shelf {
    padding: 4rem 0;
}

.shelf-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    height: 330px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: loading 1.5s infinite ease-in-out;
}

/* Animations */
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Movie Cards */
.movie-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.card-inner {
    position: relative;
    aspect-ratio: 2/3;
    width: 100%;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.play-btn-mini {
    background: var(--accent);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    margin-top: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--accent-glow);
    transition: var(--transition);
}

.play-btn-mini:hover {
    transform: scale(1.1);
}

.card-info h3 {
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

.ad-badge {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.ad-container {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.ad-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-banner-top { width: 728px; height: 90px; }
.ad-banner-mid { width: 970px; height: 250px; }
.ad-banner-sticky { width: 728px; height: 90px; }

.sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1500;
    padding: 0.5rem 0;
}

.sticky-ad-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
}

.close-ad {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* Video Ad Overlay */
#video-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-timer {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-weight: bold;
}

.skip-btn {
    display: none;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .premium-text { font-size: 3rem; }
    .search-bar { width: 250px; }
    .nav-links { display: none; }
    .ad-banner-top, .ad-banner-mid, .ad-banner-sticky { width: 100%; max-width: 320px; height: 100px; }
}
