/* ==========================================================================
   Vegamoviess Cinematic Design System & Custom Styles
   Domain: https://vegamoviess.space/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e121b;
    --bg-surface-elevated: #161c2b;
    --bg-glass: rgba(14, 18, 27, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(229, 9, 20, 0.35);
    --accent-red: #e50914;
    --accent-red-hover: #b80710;
    --accent-amber: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #151a28 0%, #07090e 70%);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #07090e;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
}

.glass-nav {
    background: rgba(7, 9, 14, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Cinematic Wordmark */
.brand-wordmark {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}
.brand-wordmark .accent {
    color: var(--accent-red);
    position: relative;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}
.brand-wordmark .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-amber);
    border-radius: 50%;
    margin-left: 2px;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-amber);
}

/* Movie Poster Card Styles */
.poster-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.poster-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 16px 36px -10px rgba(229, 9, 20, 0.25), 0 0 20px rgba(0, 0, 0, 0.8);
}

.poster-image-wrap {
    position: relative;
    padding-top: 150%; /* 2:3 Aspect Ratio */
    background: #111622;
    overflow: hidden;
}

.poster-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-card:hover .poster-image-wrap img {
    transform: scale(1.08);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.4) 40%, transparent 100%);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.poster-card:hover .poster-overlay {
    opacity: 0.95;
}

/* Hero Backdrop */
.hero-backdrop-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center 20%;
    overflow: hidden;
}

.hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #07090e 0%, rgba(7, 9, 14, 0.85) 45%, rgba(7, 9, 14, 0.5) 75%, rgba(7, 9, 14, 0.95) 100%),
                linear-gradient(0deg, #07090e 0%, transparent 60%);
}

/* Badges */
.badge-rating {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 700;
}

.badge-ott {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transition: all 0.2s ease;
}
.badge-ott:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge-genre {
    background: rgba(229, 9, 20, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(229, 9, 20, 0.25);
    transition: all 0.2s ease;
}
.badge-genre:hover {
    background: rgba(229, 9, 20, 0.22);
    color: #ffffff;
}

/* Trailer Video Container (16:9) */
.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    background: #000;
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Clean Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #b80710 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ff1723 0%, #c80812 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: #f8fafc;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Mobile Drawer Overlay */
.mobile-drawer-open {
    overflow: hidden;
}
