:root {
    --bg-color: #0a0e17;
    --bg-secondary: #0f1420;
    --card-bg: #151b2b;
    --card-bg-hover: #1a2235;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent-color: #f59e0b;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --container-width: 1200px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 20px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.95) 0%, transparent 100%);
    padding: 20px 4%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.header-scrolled {
    background-color: var(--bg-color);
    position: fixed;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* Mobile optimizations for grid */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Cards */
.card {
    background: linear-gradient(145deg, var(--card-bg) 0%, #0f1218 100%);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), var(--glow-blue);
    border-color: rgba(59, 130, 246, 0.4);
    z-index: 2;
}

.card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-info {
    padding: 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: white;
}

.card-year {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* Detail Page - Hero */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.3) 0%, rgba(10, 14, 23, 0.85) 60%, var(--bg-color) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 2px 30px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meta-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.rating-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Call to Action Buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 50px;
    /* Rounded pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    /* Green glow */
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
}

.btn-cta:hover {
    background-color: var(--whatsapp-dark);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.btn-cta i {
    margin-right: 10px;
    /* Space for icon if added later */
}

/* Content Blocks */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.content-block {
    margin-bottom: 40px;
    background: linear-gradient(145deg, var(--card-bg) 0%, #0d111a 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.content-block h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-block h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.tag-list {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

/* Trailer Video */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(180deg, var(--bg-color) 0%, #050810 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 60px;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Mobile specific styling */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero-content {
        padding: 0 20px 30px;
    }

    .btn-cta {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        /* Full width on mobile */
    }


    /* Admin Panel Futuristic Styles */
    .admin-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .glass-panel {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 40px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-secondary);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .form-group input {
        width: 100%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: white;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .form-group input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
        background: rgba(0, 0, 0, 0.5);
    }

    .admin-section-title {
        font-size: 1.2rem;
        color: var(--primary-color);
        margin: 30px 0 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .btn-save {
        background: linear-gradient(45deg, var(--primary-color), #ff4757);
        color: white;
        padding: 15px 40px;
        border: none;
        border-radius: 50px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        width: 100%;
        margin-top: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
    }

    .btn-save:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
    }

    .status-badge {
        background: rgba(37, 211, 102, 0.2);
        color: #25D366;
        padding: 5px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
        margin-left: 10px;
    }
}

/* --- MOBILE & RESPONSIVE FIXES --- */

/* Header Mobile Layout */
@media (max-width: 768px) {
    header {
        position: relative;
        /* Stop floating on mobile to prevent overlap issues */
        background: var(--bg-color);
        padding: 15px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Force search bar to break line on mobile if valid */
    .search-bar {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
        max-width: 100%;
        display: block !important;
        /* Force show */
    }

    .mobile-menu-icon {
        order: 2;
    }

    .desktop-nav {
        top: 100%;
        z-index: 999;
    }
}

/* Grid Mobile Fix */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-info {
        padding: 8px;
    }

    .card-title {
        font-size: 0.85rem;
    }
}

/* Banner Responsive 16:9 Force */
.site-banner {
    width: 100%;
    display: flex;
    /* Centers child */
    justify-content: center;
}

.site-banner a {
    display: block;
    width: 100%;
    max-width: 100%;
    /* Ensure it doesn't overflow */
    position: relative;
    /* Option 1: Modern CSS */
    aspect-ratio: 16 / 9;
    /* Option 2: Fallback if needed, but aspect-ratio is safe for modern web */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.site-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for Search Grid Images (The big image bug) */
.grid .card img {
    height: auto;
    aspect-ratio: 2/3;
    width: 100%;
    object-fit: cover;
}

/* Ensure grid items don't stretch weirdly */
.grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.site-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures 16:9 fill without distortion */
    object-position: center;
    border-radius: 8px;
}

/* ========================================
   PRICING PLANS SECTION
======================================== */
.pricing-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a0a 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-subtitle {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.pricing-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin: 0;
}

/* ========================================
   CATEGORY BAR (SCROLLABLE)
======================================== */
.category-bar-container {
    padding: 20px 0;
    margin-top: -30px;
    /* Pull up closer to hero */
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0) 0%, var(--bg-color) 20%);
}

.category-bar {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.plan-card {
    background: linear-gradient(145deg, #1a1f2e 0%, #0f1218 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.featured {
    background: linear-gradient(145deg, #1e3a5f 0%, #0f1a2e 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #000;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.plan-currency {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    margin-right: 5px;
}

.plan-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.plan-cents {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

.plan-duration {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #10b981;
    font-size: 0.8rem;
}

.plan-features li.highlight {
    color: #60a5fa;
    font-weight: 500;
}

.plan-features li.highlight::before {
    color: #60a5fa;
}

.plan-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.plan-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.plan-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.plan-btn-primary {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.plan-btn-primary:hover {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .plan-card {
        padding: 25px 20px;
    }

    .plan-value {
        font-size: 2.4rem;
    }
}