/*
Theme Name: CineBeatX Elite
Author: Antigravity
Version: 1.0.0
Description: premium, high-end cinematic WordPress theme with Glassmorphism and Neon aesthetics.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #2b115b;
    --primary-gradient: linear-gradient(135deg, #6236ff 0%, #ff2a5f 100%);
    --bg-surface: rgba(255, 255, 255, 0.1);
    --primary: #ff2a5f;
    --accent: #5effc4;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glow-shadow: 0 15px 35px rgba(98, 54, 255, 0.5);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

/* Header / Navigation */
.top-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.logo .accent-star {
    color: #ff2a5f;
    font-size: 24px;
    vertical-align: top;
    margin-left: -5px;
}

.logo span {
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Hero Section - Divi Style */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #6236ff;
    /* Fallback */
    background: linear-gradient(135deg, #2b115b 0%, #6236ff 40%, #ff2a5f 100%);
    border-bottom-left-radius: 100px 50px;
    border-bottom-right-radius: 100px 50px;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* mix-blend-mode: overlay; */
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
    border-radius: 50%;
    z-index: 2;
}

.hero-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 550px;
    flex: 1;
}

.hero-video-mockup {
    width: 650px;
    aspect-ratio: 16/9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
    transition: 0.5s;
}

.hero-video-mockup:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--glow-shadow);
}

.hero h1 {
    font-size: 84px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1;
    letter-spacing: -3px;
}

.hero-desc {
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-premium {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s transform, 0.3s box-shadow;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 42, 95, 0.6);
}

/* Content Grid */
.elite-content-wrapper {
    background: #fff;
    padding-top: 80px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.elite-section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 40px 30px;
    color: #2b115b;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 30px 50px;
    justify-content: center;
}

.movie-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: 0.3s;
    z-index: 1;
}

.movie-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--glow-shadow);
}

.movie-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: 0.5s;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    text-decoration: none;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.card-meta {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Single Post Page - Immersive */
.single-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.video-player-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto 40px auto !important;
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), var(--glow-shadow);
    position: relative;
    line-height: 0;
    /* Fixes extra space below video */
}

.video-player-container video,
.video-player-container iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    display: block;
}

.single-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.2;
    color: #111;
}

.elite-post-body {
    padding: 30px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.single-content {
    font-size: 16px;
    line-height: 1.7;
    color: #313131;
}

/* Footer */
footer {
    padding: 60px 40px;
    background: #000;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-tier {
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        margin: 30px 20px;
    }

    .featured-grid {
        padding: 0 20px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }
}