:root {
    --bg-primary: #0a0101;
    /* Deepest Red-Black */
    --bg-secondary: #140202;
    /* Slightly lighter red-black */
    --text-primary: #ffffff;
    --text-secondary: #ffcccc;
    /* Red-tinted text */

    /* Premium Crimson Red Palette */
    --accent-color: #ff000d;
    /* Purest, brightest Red */
    --accent-glow: #ff3333;
    --accent-secondary: #8a0000;
    /* Blood Maroon */
    --accent-gradient: linear-gradient(135deg, #ff000d 0%, #990000 100%);

    --glass-bg: rgba(40, 0, 0, 0.6);
    /* Stronger red tint */
    --glass-border: rgba(255, 0, 13, 0.3);
    --card-hover-bg: #2b0505;

    --font-main: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Spring physics */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-primary);
    /* Add a subtle red gradient over the whole page */
    background-image: radial-gradient(circle at 50% 0%, #300000 0%, var(--bg-primary) 70%);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Glows */
.ambient-glow {
    position: fixed;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.45;
    /* Much stronger visibility */
    z-index: -1;
    pointer-events: none;
    animation: float 10s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    /* Makes the red pop against dark bg */
}

.glow-1 {
    background: radial-gradient(circle, #ff0000, transparent 60%);
    top: -250px;
    right: -150px;
}

.glow-2 {
    background: radial-gradient(circle, #800000, transparent 60%);
    bottom: -250px;
    left: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 60px);
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 4%;
    width: 92%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(0px);
    /* Start clear */
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    /* Nearly solid opacity */
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.8rem 2rem;
    /* Optional: slightly reduce padding on scroll */
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.6rem;
    /* Slightly smaller to fit in block */
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;

    /* Glass Block Styling */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

    transition: all 0.4s var(--ease-spring);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll Blending: Remove background when navbar is dark */
.navbar.scrolled .logo {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0;
    /* Removing padding might jump, let's keep padding but make bg transparent or reduce padding smoothly? */
    /* Better approach: Keep position stable. */
    padding: 0.6rem 0;
    /* Remove horizontal padding visually */
    backdrop-filter: none;
}

.logo .highlight {
    color: var(--accent-color);
    /* Solid Red */
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.user-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s var(--ease-spring);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=100&q=80');
    background-size: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.profile-avatar:hover {
    border-color: var(--text-primary);
}

/* Filter Bar styles (Genres/Categories) */
.filter-bar-container {
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 6%;
    position: relative;
    z-index: 50;
    transition: all 0.3s var(--ease-spring);
}

.filter-bar-container.hidden {
    display: none;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    overflow-x: visible;
    /* Changed from auto to visible so dropdown is not clipped */
    overflow-y: visible;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    /* Add some space below in case it wraps */
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    /* Let pills wrap to a new line on small screens instead of horizontal scroll */
    scrollbar-width: none;
    /* Firefox */
}

.filter-bar::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-glow);
    box-shadow: 0 0 25px rgba(255, 0, 13, 0.4);
    font-weight: 600;
}

/* Custom UI Dropdown */
.custom-dropdown {
    position: relative;
    margin-right: 0.5rem;
    /* Gap before genre pills */
}

/* Responsive Genre Filters */
.mobile-genre-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .desktop-genre-pill {
        display: none !important;
    }

    .mobile-genre-dropdown {
        display: block !important;
    }

    .filter-bar {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        /* Slightly smaller gap */
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .custom-dropdown {
        flex: 1;
        min-width: 0;
        margin-right: 0;
        padding: 0;
    }

    .dropdown-btn {
        width: 100%;
        padding: 0.5rem 0.6rem;
        /* Cut padding drastically internally */
        font-size: 0.8rem;
        /* Drop font size marginally */
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .dropdown-btn span {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        display: inline-block;
        max-width: calc(100% - 20px);
        /* Leave room for the chevron icon */
    }
}

.dropdown-btn {
    background: rgba(40, 0, 0, 0.6);
    /* Match theme dark red glass */
    border: 1px solid rgba(255, 0, 13, 0.3);
    color: var(--text-primary);
    padding: 0.6rem 2.2rem 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 200px;
    /* Default desktop width */
    max-width: 100%;
    /* Prevent it from exploding out of its container */
}

.dropdown-btn:hover {
    background-color: rgba(60, 0, 0, 0.8);
    border-color: rgba(255, 0, 13, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 13, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(20, 2, 2, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 13, 0.3);
    border-radius: var(--radius-md);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item:hover {
    background: rgba(255, 0, 13, 0.15);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--accent-color);
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 0, 13, 0.4);
}

/* Movie Page Hero - More focused on single content */
.movie-hero {
    height: 85vh;
    /* Slightly shorter than Main hero */
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    /* Bottom align similar to main */
    padding: 0 6% 6rem;
}

.movie-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #e5e5e5;
}

.quality-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.movie-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.movie-desc {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Episodes Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-right: 6%;
}

.episode-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring);
}

.episode-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

.episode-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.episode-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-info {
    padding: 1rem;
}

.episode-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.episode-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dropdown {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Ensure slides don't spill */
    /* Remove flex aligning on parent since slides handle it now */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 6%;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.02);
    will-change: transform, opacity;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.hero-slide.exiting {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-slide.entering {
    z-index: 2;
}

/* Entering slide animation */
.fade-in {
    animation: fadeIn 1.5s var(--ease-smooth) forwards;
    z-index: 2;
    /* Sit on top */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ensure background covers everything */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: pan 30s linear infinite alternate;
}

@keyframes pan {
    100% {
        transform: scale(1.15);
    }
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced opacity of left gradient to let image show through */
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 120%),
        linear-gradient(to right, rgba(10, 1, 1, 0.7) 0%, transparent 60%);
}

.hero-content {
    max-width: 700px;
    z-index: 10;
    margin-top: 60px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 59, 63, 0.2);
    border: 1px solid rgba(255, 59, 63, 0.4);
    color: #ff8a8e;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* Animated Title Gradient */
.hero-title {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 40%, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* Fix anchor underlines */
}

.btn svg {
    transition: transform 0.3s var(--ease-spring);
}

.btn:hover svg {
    transform: scale(1.2);
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: #ff0f1f;
    /* Slightly lighter on hover */
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(229, 9, 20, 0.15);
    /* Red tint on hover */
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

/* Rows & Cards */
.content-container {
    padding-bottom: 6rem;
    margin-top: 0;
    /* Removed overlap */
    z-index: 20;
    position: relative;
    padding-top: 2rem;
    /* Add some spacing */
}

.row-section {
    margin-bottom: 4rem;
    padding-left: 6%;
}

.row-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.row-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    /* Glowy accent */
    border-radius: 4px;
}

.slider-container {
    overflow-x: hidden;
    /* Hide the scrollbar since we auto-scroll */
    padding: 3rem 0;
    /* Huge padding for hover scale space */
    margin: -3rem 0;
    width: 100%;
    position: relative;
    /* Remove gap from here, the track will handle it */
}

.auto-scroll-track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    /* Let it grow to fit all items */
    animation: autoScroll 180s linear infinite;
    padding-left: 6%;
    /* Initial offset */
    padding-right: 1.2rem;
    /* Buffer at the end */
}

.horizontal-scroll-track {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    /* Optional: hide scrollbar completely for aesthetic */
    /* -ms-overflow-style: none; scrollbar-width: none; */
}

/* Pause the animation completely when user hovers so they can click */
.slider-container:hover .auto-scroll-track {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Scroll left exactly 50% of the track (which is 1 full set of the duplicated items) */
        transform: translateX(calc(-50% - 0.6rem));
    }
}

.movie-card {
    flex: 0 0 auto;
    width: 240px;
    height: auto;
    /* Allow height to grow with text */
    min-height: 380px;
    /* Ensure consistency */
    border-radius: 0;
    /* Wrapper doesn't need radius, inner image does */
    overflow: visible;
    /* Allow pop effect */
    position: relative;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    background: transparent;
    will-change: transform;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--ease-spring);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    pointer-events: none;
}

.type-movie {
    background: rgba(20, 2, 2, 0.85);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.type-tv {
    background: rgba(255, 0, 13, 0.85);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Cinematic Ad Banner */
/* Cinematic Ad Banner REMOVED */

/* Mobile Ad Adjustments REMOVED */

/* POP Effect on Wrapper mainly */
.movie-card:hover .card-image-wrapper {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    z-index: 100;
}

.movie-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: flex-end;
}

.movie-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Info Below */
.card-info-below {
    padding: 0 4px;
    transition: transform 0.4s var(--ease-spring);
}

/* Optional: Make text slide down slightly when image pops up to maintain gap */
.movie-card:hover .card-info-below {
    transform: translateY(4px);
    opacity: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-meta {
    font-size: 0.8rem;
    color: #ddd;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    width: 100%;
}

.match-score {
    color: #46d369;
    font-weight: 800;
    background: rgba(70, 211, 105, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
    /* Ensure above drawer */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 3px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
        /* Tighter padding */
        background: rgba(10, 10, 10, 0.95);
        /* Slightly more visible background */
        backdrop-filter: blur(15px);
        left: 0;
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.scrolled {
        top: 0;
        border-radius: 0;
        padding: 0.8rem 1rem;
    }

    .navbar .logo {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Full screen mobile menu */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 2rem;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.98);
        /* Darker, cleaner background */
        width: 100%;
        height: 100dvh;
        /* Dynamic viewport height */
        text-align: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 8rem;
        z-index: 1000;
        backdrop-filter: blur(25px);
        margin: 0;
        border-radius: 0;
        border: none;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        align-items: flex-end;
        padding-bottom: 20vh;
        height: 100dvh;
        /* Fix for mobile address bar */
        min-height: 600px;
    }

    .hero-content {
        margin-top: 0;
        width: 100%;
        padding: 0 1.5rem;
        /* Ensure side padding */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Better fit */
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* Limit lines */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        /* Stack buttons */
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .content-container {
        margin-top: 0;
        /* Remove negative margin on mobile to avoid overlap issues */
        position: relative;
        z-index: 20;
        background: linear-gradient(to bottom, transparent, var(--bg-primary) 10%);
        /* Smooth transition */
        padding-top: 2rem;
    }

    .row-section {
        padding-left: 0;
        margin-bottom: 3rem;
    }

    .row-title {
        padding-left: 1.5rem;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .slider-container {
        gap: 1rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin: 0;
        /* Reset margins */
        padding-bottom: 2rem;
        /* Space for scrollbar/touch */
    }

    .hero-image {
        object-position: top center;
        /* Focus on faces/top part */
    }

    .movie-card {
        width: 140px;
        /* Standardize mobile card width */
        min-height: auto;
    }

    .card-image-wrapper {
        aspect-ratio: 2/3;
        border-radius: var(--radius-sm);
        /* Smaller radius for mobile */
    }

    /* Disable hover pop on touch devices usually, but keep for now or tone down */
    .movie-card:hover .card-image-wrapper {
        transform: scale(1.02);
        /* Subtle scale */
    }
}

/* Inline Search Styles */
.search-box {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 40px;
    padding: 5px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.search-box.active {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.search-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 2;
}

.search-box.active .search-btn {
    background: var(--accent-color);
    transform: scale(0.9);
}

.search-txt {
    border: none;
    background: none;
    outline: none;
    padding: 0;
    color: #fff;
    font-size: 1rem;
    transition: width 0.4s ease, padding 0.4s ease;
    line-height: 40px;
    width: 0px;
    opacity: 0;
    font-family: var(--font-main);
}

.search-box.active .search-txt {
    width: 240px;
    /* Expands on click */
    padding: 0 10px;
    opacity: 1;
}

@media (max-width: 768px) {
    .search-box.active {
        position: fixed;
        /* Use fixed to guarantee it sits on top of everything */
        top: 0;
        left: 0;
        width: 100vw;
        /* Force full viewport width */
        height: 70px;
        /* Cover navbar height */
        z-index: 9999;
        /* Super high z-index */
        /* Highest priority */
        background: #000;
        border-bottom: 1px solid var(--accent-color);
        border-radius: 0;
        padding: 0 1rem;
        justify-content: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    .search-box.active .search-txt {
        width: 100%;
        font-size: 1.2rem;
    }

    .search-box.active .search-btn {
        position: absolute;
        right: 1.5rem;
    }

    /* Mobile Suggestions Fix */
    .search-suggestions {
        padding: 0;
        width: 100% !important;
        left: 0;
        right: auto;
        top: 70px;
        border-radius: 0 0 10px 10px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 10, 10, 0.98);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }
}

.search-txt::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 15px;
    color: #eee;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(229, 9, 20, 0.2);
    color: #fff;
    padding-left: 20px;
    /* Slide effect */
}

/* -------------------
   LOADING SCREEN (HOURGLASS)
   ------------------- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(15px);
    /* Glass effect */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease-out, visibility 0.4s;
    /* Faster transition */
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* From Uiverse.io by SouravBandyopadhyay */
/* From Uiverse.io by SouravBandyopadhyay */
.hourglassBackground {
    position: relative;
    background-color: rgb(71, 60, 60);
    height: 130px;
    width: 130px;
    border-radius: 50%;
    margin: 30px auto;
    transform: scale(0.6);
    /* Smaller size */
}

.hourglassContainer {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 70px;
    -webkit-animation: hourglassRotate 1s ease-in 0s infinite;
    /* Faster speed */
    animation: hourglassRotate 1s ease-in 0s infinite;
    /* Faster speed */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hourglassContainer div,
.hourglassContainer div:before,
.hourglassContainer div:after {
    transform-style: preserve-3d;
}

@-webkit-keyframes hourglassRotate {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(180deg);
    }

    100% {
        transform: rotateX(180deg);
    }
}

@keyframes hourglassRotate {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(180deg);
    }

    100% {
        transform: rotateX(180deg);
    }
}

.hourglassCapTop {
    top: 0;
}

.hourglassCapTop:before {
    top: -25px;
}

.hourglassCapTop:after {
    top: -20px;
}

.hourglassCapBottom {
    bottom: 0;
}

.hourglassCapBottom:before {
    bottom: -25px;
}

.hourglassCapBottom:after {
    bottom: -20px;
}

.hourglassGlassTop {
    transform: rotateX(90deg);
    position: absolute;
    top: -16px;
    left: 3px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    background-color: #999999;
}

.hourglassGlass {
    perspective: 100px;
    position: absolute;
    top: 32px;
    left: 20px;
    width: 10px;
    height: 6px;
    background-color: #999999;
    opacity: 0.5;
}

.hourglassGlass:before,
.hourglassGlass:after {
    content: '';
    display: block;
    position: absolute;
    background-color: #999999;
    left: -17px;
    width: 44px;
    height: 28px;
}

.hourglassGlass:before {
    top: -27px;
    border-radius: 0 0 25px 25px;
}

.hourglassGlass:after {
    bottom: -27px;
    border-radius: 25px 25px 0 0;
}

.hourglassCurves:before,
.hourglassCurves:after {
    content: '';
    display: block;
    position: absolute;
    top: 32px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #333;
    animation: hideCurves 1s ease-in 0s infinite;
    /* Faster speed */
}

.hourglassCurves:before {
    left: 15px;
}

.hourglassCurves:after {
    left: 29px;
}

@-webkit-keyframes hideCurves {
    0% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes hideCurves {
    0% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.hourglassSandStream:before {
    content: '';
    display: block;
    position: absolute;
    left: 24px;
    width: 3px;
    background-color: white;
    -webkit-animation: sandStream1 1s ease-in 0s infinite;
    /* Faster speed */
    animation: sandStream1 1s ease-in 0s infinite;
    /* Faster speed */
}

.hourglassSandStream:after {
    content: '';
    display: block;
    position: absolute;
    top: 36px;
    left: 19px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    animation: sandStream2 1s ease-in 0s infinite;
    /* Faster speed */
}

@-webkit-keyframes sandStream1 {
    0% {
        height: 0;
        top: 35px;
    }

    50% {
        height: 0;
        top: 45px;
    }

    60% {
        height: 35px;
        top: 8px;
    }

    85% {
        height: 35px;
        top: 8px;
    }

    100% {
        height: 0;
        top: 8px;
    }
}

@keyframes sandStream1 {
    0% {
        height: 0;
        top: 35px;
    }

    50% {
        height: 0;
        top: 45px;
    }

    60% {
        height: 35px;
        top: 8px;
    }

    85% {
        height: 35px;
        top: 8px;
    }

    100% {
        height: 0;
        top: 8px;
    }
}

@-webkit-keyframes sandStream2 {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    51% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    91% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes sandStream2 {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    51% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    91% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.hourglassSand:before,
.hourglassSand:after {
    content: '';
    display: block;
    position: absolute;
    left: 6px;
    background-color: white;
    perspective: 500px;
}

.hourglassSand:before {
    top: 8px;
    width: 39px;
    border-radius: 3px 3px 30px 30px;
    animation: sandFillup 1s ease-in 0s infinite;
    /* Faster speed */
}

.hourglassSand:after {
    border-radius: 30px 30px 3px 3px;
    animation: sandDeplete 1s ease-in 0s infinite;
    /* Faster speed */
}

@-webkit-keyframes sandFillup {
    0% {
        opacity: 0;
        height: 0;
    }

    60% {
        opacity: 1;
        height: 0;
    }

    100% {
        opacity: 1;
        height: 17px;
    }
}

@keyframes sandFillup {
    0% {
        opacity: 0;
        height: 0;
    }

    60% {
        opacity: 1;
        height: 0;
    }

    100% {
        opacity: 1;
        height: 17px;
    }
}

@-webkit-keyframes sandDeplete {
    0% {
        opacity: 0;
        top: 45px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    1% {
        opacity: 1;
        top: 45px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    24% {
        opacity: 1;
        top: 45px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    25% {
        opacity: 1;
        top: 41px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    50% {
        opacity: 1;
        top: 41px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    90% {
        opacity: 1;
        top: 41px;
        height: 0;
        width: 10px;
        left: 20px;
    }
}

@keyframes sandDeplete {
    0% {
        opacity: 0;
        top: 45px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    1% {
        opacity: 1;
        top: 45px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    24% {
        opacity: 1;
        top: 45px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    25% {
        opacity: 1;
        top: 41px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    50% {
        opacity: 1;
        top: 41px;
        height: 17px;
        width: 38px;
        left: 6px;
    }

    90% {
        opacity: 1;
        top: 41px;
        height: 0;
        width: 10px;
        left: 20px;
    }
}

/* Cinematic Sponsor Banner */
.sponsored-banner {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 4rem 0;
    background-image: url('https://image.pollinations.ai/prompt/cyberpunk%20city%20panorama%20red%20neon?width=1920&height=600&nologo=true');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 6%;
    border-top: 1px solid rgba(229, 9, 20, 0.3);
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    cursor: pointer;
    /* UX Improvement */
    transition: transform 0.3s ease;
}

.sponsored-banner:hover {
    transform: scale(1.005);
}

.sponsored-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 1;
}

.sponsor-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sponsor-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sponsor-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.1;
}

.sponsor-desc {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sponsor-cta {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s;
}

.sponsor-cta:hover {
    transform: scale(1.05);
}

/* Watch Page Styles */
.watch-container {
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
}

.watch-main-column {
    flex: 3;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.watch-card,
.info-card {
    width: 100%;
    /* Take full width of parent column */
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card {
    margin-top: 0;
    /* Remove margin as parent handles gap */
}

.video-stage {
    flex: 3;
    min-width: 300px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.video-info {
    margin-top: 1.5rem;
}

#watch-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#watch-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Series Sidebar */
.series-controls {
    flex: 1;
    min-width: 300px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 600px;
    /* Fixed height for scroll */
}

.series-controls.hidden {
    display: none;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.episode-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 5px;
}

.episode-list::-webkit-scrollbar {
    width: 4px;
}

/* Reusing card-like style for list items */
.ep-link {
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ep-link:hover,
.ep-link.active {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent-color);
}

.ep-num {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.ep-title {
    font-size: 1rem;
    font-weight: 600;
}

.small-banner {
    margin: 2rem auto;
    height: 250px;
    max-width: 1400px;
}

/* --- Listing Page Fixes --- */
.listing-page-content {
    padding-top: 220px;
    /* Ensure strictly below navbar */
    min-height: 100vh;
    background: radial-gradient(circle at 50% -10%, rgba(229, 9, 20, 0.15), transparent 40%);
}

/* --- Shared Grid & Pagination Styles --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 6%;
}

@media (max-width: 768px) {
    .media-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Explicit simple 2-column */
        gap: 0.6rem;
        /* Tighter gap */
        padding: 0 0.8rem;
        /* Tighter padding */
        width: 100%;
        max-width: 100vw;
        /* Hard limit */
        box-sizing: border-box;
        margin: 0 auto;
        overflow: hidden;
        /* safety */
    }

    .listing-page-content {
        padding-top: 130px;
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        position: relative;
        /* Reduced padding for mobile */
    }

    /* CRITICAL FIX: Override the fixed 140px width from slider styles */
    .grid-view-item {
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        /* Reset flex */
    }

    .grid-view-item .card-image-wrapper {
        aspect-ratio: 2/3;
        width: 100%;
    }
}

.media-grid .movie-card {
    width: 100%;
    min-height: auto;
}

/* --- Premium Pagination Controls --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 4rem auto;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s var(--ease-spring);
}

.pagination-controls:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.1);
    transform: translateY(-2px);
}

.nav-btn-rect {
    background: transparent;
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn-rect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.nav-btn-rect:hover:not(:disabled) {
    color: #fff;
    transform: translateX(0);
    /* Reset any transform */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-btn-rect:hover:not(:disabled)::before {
    opacity: 1;
}

.nav-btn-rect:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: var(--text-secondary);
}

.page-info {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 0 1rem;
    position: relative;
}

.page-info::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    border-radius: 2px;
}

/* --- Season Toggle Button (Styled Select) --- */
.season-tabs {
    position: relative;
    display: inline-block;
}

.season-select-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #141414;
    /* Darker background to match theme */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 3rem 0.8rem 1.2rem;
    border-radius: 4px;
    /* Sharper corners like Netflix/Standard UI */
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    /* Red Accent Arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E50914' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.season-select-btn:hover {
    border-color: #fff;
    background-color: #1a1a1a;
}

.season-select-btn:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

.season-select-btn option {
    background: #141414;
    color: #fff;
    padding: 12px;
}

/* --- New Details Page Stylings --- */

.genre-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.genre-tag {
    color: #fff;
    font-size: 0.9rem;
    position: relative;
    padding-right: 1rem;
}

.genre-tag:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -4px;
    color: var(--accent-color);
}

/* Cast List */
.cast-card {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
    cursor: default;
}

.cast-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s var(--ease-spring);
}

.cast-card:hover .cast-img {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.cast-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.cast-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Trailer Button Override */
#trailer-btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive Details */
@media (max-width: 768px) {
    .movie-hero {
        padding-bottom: 3rem;
    }

    .movie-title {
        font-size: 2.5rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer (fix z-index) */
.site-footer {
    padding: 3rem 6%;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to top, #0a0101, transparent);
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Watch Page Styles */
.watch-container {
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
}

.video-stage {
    flex: 3;
    min-width: 300px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.video-info {
    margin-top: 1.5rem;
}

#watch-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#watch-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Series Sidebar */
.series-controls {
    flex: 1;
    min-width: 300px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 600px;
    /* Fixed height for scroll */
}

.series-controls.hidden {
    display: none;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.episode-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 5px;
}

.episode-list::-webkit-scrollbar {
    width: 4px;
}

/* Reusing card-like style for list items */
.ep-link {
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ep-link:hover,
.ep-link.active {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--accent-color);
}

.ep-num {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.ep-title {
    font-size: 1rem;
    font-weight: 600;
}

.small-banner {
    margin: 2rem auto;
    height: 250px;
    max-width: 1400px;
}

/* --- Server Selector (Horizontal & Premium) --- */
.server-selector-group {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.control-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.server-list {
    display: flex;
    flex-wrap: wrap;
    /* Ensure wrapping */
    gap: 12px;
}

.server-list .btn {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 120px;
    /* FIXED WIDTH */
    height: 44px;
    /* FIXED HEIGHT */
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.server-list .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.server-list .btn.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* --- Video Player Error/Loader --- */
.video-wrapper {
    position: relative;
    /* Context for overlay */
    background: #000;
}

#player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.error-msg-container {
    text-align: center;
    padding: 2rem;
    display: none;
    /* Hidden initially */
}

.error-msg-container h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.error-msg-container p {
    color: #888;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ad Placeholder Text */
.ad-banner-glass {
    width: 100%;
    min-height: 250px;
    /* Fixed Height for Ad */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.ad-banner-glass::before {
    content: 'ADVERTISEMENT';
    color: #333;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 5px;
}

/* Movie Card Subtitles */
.movie-subtitle {
    font-size: 0.95rem;
    margin-top: 0.8rem;
    color: #e5e5e5;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    transition: color 0.3s;
}

.movie-card:hover .movie-subtitle {
    color: var(--accent-color);

}


/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Player Tip Box (Static above player) */
.player-tip-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;

    background: rgba(255, 193, 7, 0.25);
    /* Increased visibility */
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    /* Accent border */
    color: #ffd54f;

    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;

    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.player-tip-box .tip-icon {
    font-size: 1.6rem;
    color: #ffca28;
    flex-shrink: 0;
}

.player-tip-box .tip-content {
    display: flex;
    flex-direction: column;
}

.player-tip-box strong {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: #fff;
}

.player-tip-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* Close button removed from CSS since it is removed from HTML */

/* Player Overlay & Error Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    /* Ensure height if empty */
    display: flex;
    /* Centering */
    justify-content: center;
    align-items: center;
}

#player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50;
    /* High z-index to sit on top of video */
    display: flex !important;
    /* Force flex if not hidden */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

#player-overlay.hidden {
    display: none !important;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.error-msg-container h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.error-msg-container p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Navbar Actions Container --- */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Status Dot --- */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
    /* Grey (Disconnected) */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    cursor: help;
}

.status-dot.connected {
    background-color: #00ff00;
    /* Green (Connected) */
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 10px #00ff00;
    }

    50% {
        box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00;
    }

    100% {
        box-shadow: 0 0 10px #00ff00;
    }
}

/* --- Player Error Overlay (Premium Style) --- */
.player-overlay {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease;
}

/* Override existing error container styles */
.error-msg-container {
    background: rgba(20, 0, 0, 0.85) !important;
    /* Dark Red-Black */
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    padding: 2.5rem !important;
    max-width: 500px !important;
    width: 90%;
    text-align: center !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.1) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Subtle glow effect behind error box */
.error-msg-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.error-msg-container h3#error-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--accent-color) !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.error-msg-container p#error-desc {
    color: #ffd1d1 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Retry Button in Error */
.server-list .btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #aa0000 100%) !important;
    border: 1px solid rgba(255, 100, 100, 0.2) !important;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3) !important;
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s !important;
}

.server-list .btn-primary:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5) !important;
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%) !important;
}

/* --- Redesigned Player Overlay & Button --- */

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.start-overlay-active {
    display: flex !important;
    /* Force flex when active */
    background: rgba(0, 0, 0, 0.4);
    /* Lighter background to see poster */
}

.glass-play-btn {
    appearance: none;
    border: none;
    outline: none;
    cursor: pointer;

    /* Shape & Size */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 50px;

    /* Glassmorphism */
    background: rgba(229, 9, 20, 0.85);
    /* Proper Netflix/YouTube Red but translucent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 30px rgba(229, 9, 20, 0.4),
        /* Red Glow */
        0 10px 20px rgba(0, 0, 0, 0.3);
    /* Shadow */

    /* Text/Icon */
    color: white;
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Icon Styling */
.glass-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
}

.glass-play-btn span {
    position: relative;
    z-index: 2;
}

/* Hover Effects */
.glass-play-btn:hover {
    background: rgba(255, 30, 40, 0.95);
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 0 50px rgba(229, 9, 20, 0.6),
        0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-play-btn:hover svg {
    transform: scale(1.2);
}

/* Active/Click Effect */
.glass-play-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

/* Shimmer Animation */
.glass-play-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* ============================== */
/* --- Legal Pages (Privacy, Contact) --- */
/* ============================== */

.legal-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 6%;
}

.legal-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    opacity: 0.7;
}

.legal-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.legal-section:hover {
    border-color: rgba(229, 9, 20, 0.2);
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.legal-section p {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}

.legal-section ul li {
    color: #b0b0b0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}

.legal-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.legal-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* --- Contact Cards Grid --- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 9, 20, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: rgba(229, 9, 20, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.contact-card p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 20px;
}

.contact-link:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--accent-color);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 90px;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Year Grid Styles */
.year-grid-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.year-block {
    background: rgba(15, 0, 0, 0.8);
    border: 2px solid rgba(229, 9, 20, 0.3);
    border-radius: 20px 0 20px 0;
    /* Cyberpunk angled shape */
    color: #b3b3b3;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.year-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, transparent 50%, rgba(229, 9, 20, 0.5) 50%);
    transition: all 0.4s ease;
}

.year-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.year-block:hover {
    transform: translateY(-6px) scale(1.05);
    background: rgba(40, 0, 0, 0.95);
    border-color: rgba(229, 9, 20, 0.9);
    color: #fff;
    border-radius: 0 20px 0 20px;
    /* Shape shifts on hover! */
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.5), inset 0 0 10px rgba(229, 9, 20, 0.2);
    z-index: 2;
}

.year-block:hover::after {
    bottom: auto;
    right: auto;
    top: 0;
    left: 0;
    background: linear-gradient(315deg, transparent 50%, rgba(229, 9, 20, 0.9) 50%);
}

.year-block.active {
    background: linear-gradient(135deg, var(--primary-color), #8a0000);
    color: #ffffff;
    border-color: rgba(255, 100, 100, 0.5);
    border-radius: 12px;
    /* Uniform rounded rect when active */
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.8), 0 5px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.year-block.active::after,
.year-block.active::before {
    display: none;
}

/* Cast Card Styles */
.cast-card {
    min-width: 100px;
    margin-right: 1rem;
    text-align: center;
}

.cast-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

/* --- Broadcast Banner Overlay --- */
.broadcast-overlay {
    position: fixed;
    top: 80px;
    /* Pushed down to clear the navbar */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 11000;
    /* Highest priority */
    pointer-events: none;
    /* Let clicks pass through if empty */
    transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
    opacity: 0;
    visibility: hidden;
}

.broadcast-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.broadcast-content {
    background: rgba(255, 204, 0, 0.95);
    /* Bright Warning Yellow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 204, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* Scanning highlight effect across the top */
.broadcast-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    animation: broadcastScan 2.5s ease-in-out infinite;
}

@keyframes broadcastScan {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.broadcast-message {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.broadcast-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.broadcast-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* --- Broadcast Bell Icon --- */
.broadcast-bell {
    background: transparent;
    border: none;
    color: var(--primary-color);
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: ringBell 2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    transform-origin: top center;
    position: relative;
    /* For pseudo-element absolute positioning */
}

/* Glowing Notification Dot */
.broadcast-bell::after {
    content: '';
    position: absolute;
    top: 0px;
    right: 0px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--primary-color);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

.broadcast-bell:hover {
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.8));
    animation: ringBellHover 0.5s ease-in-out infinite alternate;
}

.broadcast-bell svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2px;
    fill: rgba(229, 9, 20, 0.2);
}

@keyframes ringBell {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(5deg);
    }

    40% {
        transform: rotate(-5deg);
    }

    50%,
    100% {
        transform: rotate(0);
    }
}

@keyframes ringBellHover {
    0% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

.broadcast-bell.hidden {
    display: none;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    /* Dark overlay to block interaction */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cookie-banner.show {
    opacity: 1;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    background: rgba(20, 2, 2, 0.85);
    border: 1px solid rgba(255, 0, 13, 0.4);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 13, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease-spring);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-banner.show .cookie-content {
    transform: translateY(0) scale(1);
}

.cookie-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.cookie-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    justify-content: center;
}

.cookie-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
}

/* --- Age Verification Overlay --- */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.age-overlay.show {
    opacity: 1;
}

.age-overlay.hidden {
    display: none;
}

.age-modal {
    background: rgba(20, 2, 2, 0.85);
    border: 1px solid rgba(255, 0, 13, 0.4);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 13, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease-spring);
}

.age-overlay.show .age-modal {
    transform: translateY(0) scale(1);
}

.age-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.age-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Scrollable Age Picker */
.age-picker-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient masks for seamless fading at top/bottom */
.age-picker-container::before,
.age-picker-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 2;
    pointer-events: none;
}

.age-picker-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(20, 2, 2, 1) 0%, rgba(20, 2, 2, 0) 100%);
}

.age-picker-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 2, 2, 1) 0%, rgba(20, 2, 2, 0) 100%);
}

/* Middle highlight line */
.age-picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 50px;
    transform: translateY(-50%);
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    background: rgba(255, 0, 13, 0.05);
    z-index: 1;
    pointer-events: none;
}

.age-list {
    list-style: none;
    padding: 50px 0;
    /* Padding equals half container height to allow first/last items to reach middle */
    margin: 0;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.age-list::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.age-list li {
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    scroll-snap-align: center;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.age-list li.selected {
    color: var(--accent-color);
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(255, 0, 13, 0.5);
}

#submit-age-btn {
    width: 100%;
    justify-content: center;
}

/* Utility to prevent background scrolling when overlay is active */
body.no-scroll {
    overflow: hidden !important;
}