        @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: linear-gradient(135deg, #ff6b6b, #7c5cff);
            --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent: linear-gradient(135deg, #ff6b6b, #7c5cff);
            --dark: #0a0a0a;
            --light: #ffffff;
            --gray: #888;
            --card-bg: rgba(20, 20, 20, 0.7);
            --glass: rgba(255, 255, 255, 0.05);
            --neon-red: #ff6b6b;
            --neon-purple: #7c5cff;
            --neon-blue: #00d4ff;
            --navbar-height: 75px;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #1a1a1a;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--dark);
            color: var(--light);
            overflow-x: hidden;
            position: relative;
        }

        /* Animated Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
            z-index: -1;
            animation: bgMove 20s ease-in-out infinite;
        }

        @keyframes bgMove {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(1deg);
            }
        }

        /* Modern Loading Screen */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            animation: fadeOut 0.5s ease 1.5s forwards;
        }

        .loader-content {
            text-align: center;
        }

        .loader-dots {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 20px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            animation: dotPulse 1.5s ease-in-out infinite;
        }

        .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes dotPulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.5;
            }

            50% {
                transform: scale(1.5);
                opacity: 1;
            }
        }

        .loader-logo {
            width: 150px;
            height: auto;
        }

        @keyframes fadeOut {
            to {
                opacity: 0;
                visibility: hidden;
            }
        }

        /* Ultra Modern Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            height: var(--navbar-height);
            background: rgba(10, 10, 10, 0.7);
            backdrop-filter: blur(20px);
            z-index: 1000;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        nav.scrolled {
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(30px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            padding: 0 5%;
            max-width: 1600px;
            margin: 0 auto;
        }

        /* New Redesign Banner */
        .redesign-banner {
            position: fixed;
            top: var(--navbar-height);
            width: 100%;
            background: var(--primary);
            color: white;
            text-align: center;
            padding: 8px 40px 8px 15px;
            font-size: 14px;
            z-index: 998;
            /* Below nav, above content */
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        .redesign-banner.hidden {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }

        .redesign-banner p {
            margin: 0;
        }

        .close-banner-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            position: absolute;
            right: 15px;
            line-height: 1;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .close-banner-btn:hover {
            opacity: 1;
        }


        .logo {
            height: 45px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.1);
            filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.5));
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 40px;
            align-items: center;
            margin: 0 auto;
        }

        .nav-link {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.3s ease;
            position: relative;
            padding: 8px 0;
            font-family: 'Poppins', sans-serif;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-link:hover {
            color: white;
            transform: translateY(-2px);
        }

        .nav-link:hover::before {
            width: 100%;
        }

        /* Ultra Modern Search Box - Smooth Expansion */
        .search-container {
            position: relative;
        }

        .search-box {
            position: relative;
            width: 50px;
            height: 50px;
            transition: width 0.4s ease;
            display: flex;
            align-items: center;
        }

        .search-box.active {
            width: 350px;
        }

        .search-input {
            width: 100%;
            height: 100%;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            outline: none;
            border-radius: 50px;
            color: white;
            font-size: 15px;
            font-family: 'Poppins', sans-serif;
            padding: 0 60px 0 20px;
            opacity: 0;
            pointer-events: none;
            transition: all 0.4s ease;
            border: 2px solid transparent;
        }

        .search-box.active .search-input {
            opacity: 1;
            pointer-events: all;
        }

        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
            font-family: 'Poppins', sans-serif;
        }

        .search-input:focus {
            border-color: rgba(255, 107, 107, 0.5);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 30px rgba(255, 107, 107, 0.2);
        }

        .search-btn {
            position: absolute;
            right: 0;
            top: 0;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            color: white;
            font-size: 18px;
            box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
        }

        .search-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 30px rgba(255, 107, 107, 0.5);
        }

        /* Mobile Menu */
        .mobile-menu {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 1002;
        }

        .mobile-menu span {
            width: 25px;
            height: 3px;
            background: white;
            transition: all 0.3s ease;
            border-radius: 3px;
        }

        .mobile-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .mobile-menu.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Mobile Dropdown Menu */
        .mobile-dropdown {
            position: fixed;
            top: var(--navbar-height);
            left: 0;
            right: 0;
            background: rgba(10, 10, 10, 0.98);
            backdrop-filter: blur(20px);
            padding: 0;
            z-index: 999;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            border-bottom: 2px solid rgba(255, 107, 107, 0.2);
        }

        .mobile-dropdown.active {
            max-height: 400px;
            padding: 20px;
        }

        .mobile-dropdown .nav-link {
            display: block;
            font-size: 16px;
            padding: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* Page Container */
        .page {
            display: none;
            min-height: 100vh;
        }

        .page.active {
            display: block;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            padding: 0 5%;
            padding-top: var(--navbar-height);
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(10, 10, 10, 0.9)),
                url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=1920') center/cover;
            overflow: hidden;
            transition: margin-top 0.5s ease;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 150px;
            background: linear-gradient(to top, var(--dark), transparent);
        }

        .hero-content {
            max-width: 700px;
            z-index: 2;
            animation: heroEntry 1s ease;
        }

        @keyframes heroEntry {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .hero-title {
            font-size: clamp(50px, 7vw, 100px);
            font-family: 'Bebas Neue', cursive;
            line-height: 0.9;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #fff, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: clamp(16px, 2.5vw, 22px);
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 30px;
            font-weight: 300;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 14px 35px;
            border: none;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            color: white;
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
        }

        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 50px;
            flex-wrap: wrap;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: clamp(28px, 3.5vw, 40px);
            font-weight: 700;
            background: var(--secondary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Custom Divider */
        .custom-divider {
            height: 2px;
            background: linear-gradient(90deg,
                    transparent,
                    var(--neon-red),
                    var(--neon-purple),
                    var(--neon-red),
                    transparent);
            margin: 40px 0 60px 0;
            position: relative;
            overflow: hidden;
        }

        .custom-divider.hidden {
            display: none;
        }

        .custom-divider::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,
                    transparent,
                    rgba(255, 255, 255, 0.8),
                    transparent);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            to {
                left: 100%;
            }
        }

        /* Section Styles */
        .section {
            padding: 20px 5% 80px 5%;
            position: relative;
        }

        .section.hidden {
            display: none !important;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-badge {
            display: inline-block;
            padding: 6px 20px;
            background: var(--glass);
            border: 1px solid rgba(255, 107, 107, 0.3);
            border-radius: 20px;
            font-size: 12px;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .section-title {
            font-size: clamp(36px, 4vw, 48px);
            font-family: 'Bebas Neue', cursive;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: 2px;
        }

        .section-subtitle {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.6);
            max-width: 600px;
            margin: 0 auto;
        }
/* Continue Watching Styles */
.continue-watching-card {
    position: relative;
}

.watch-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.watch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #7c5cff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.remove-watch-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.continue-watching-card:hover .remove-watch-btn {
    opacity: 1;
    transform: scale(1);
}

.remove-watch-btn:hover {
    background: rgba(255, 107, 107, 0.8);
    border-color: #ff6b6b;
    transform: scale(1.1);
}

.remove-watch-btn i {
    font-size: 14px;
}

.episode-info {
    padding: 3px 8px;
    background: rgba(124, 92, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .remove-watch-btn {
        opacity: 1;
        transform: scale(1);
    }
}

        /* Movie Grid */
        .movies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 25px;
        }

        .movie-card {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
            background: var(--card-bg);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .movie-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
        }

        /* Dark overlay on hover */
        .movie-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0);
            transition: background 0.5s ease;
            pointer-events: none;
            z-index: 2;
        }

        .movie-card:hover::after {
            background: rgba(0, 0, 0, 0.4);
        }

        .movie-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
            opacity: 1;
            transition: opacity 0.3s ease;
            z-index: 1;
        }

        .movie-card:hover::before {
            background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.98));
        }

        .movie-poster {
            width: 100%;
            height: 320px;
            object-fit: cover;
            transition: all 0.5s ease;
        }

        .movie-card:hover .movie-poster {
            transform: scale(1.1);
        }

        .movie-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            z-index: 3;
            transform: translateY(80px);
            /* ADJUSTED: Button is now hidden before hover */
            transition: transform 0.5s ease;
            margin-bottom: 1vw;
        }

        .movie-card:hover .movie-info {
            transform: translateY(0);
        }

        .movie-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            font-family: 'Poppins', sans-serif;
        }

        .movie-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 12px;
        }

        .movie-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #ffd700;
        }

        .movie-year {
            color: rgba(255, 255, 255, 0.6);
        }

        .movie-actions {
            display: flex;
            gap: 10px;
        }

        /* Redesigned Play Button */
        .play-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            text-transform: none;
            letter-spacing: 0.5px;
        }

        .play-btn:hover {
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
        }

        .play-btn i {
            font-size: 14px;
        }

        /* Movie Badges */
        .movie-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 5px 15px;
            background: var(--secondary);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            z-index: 4;
            animation: badge-pulse 2s infinite;
        }

        .movie-badge.coming-soon {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: #000;
        }

        @keyframes badge-pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        /* Movie Details Page */
        .movie-details-page {
            min-height: 100vh;
            padding-top: 0;
        }

        .movie-banner {
            position: relative;
            width: 100%;
            height: calc(60vh + var(--navbar-height));
            overflow: hidden;
            margin-top: 0;
        }

        .movie-banner-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin-top: 0;
        }

        .movie-banner-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(10, 10, 10, 1) 100%);
        }

        .movie-details-content {
            max-width: 1200px;
            margin: -100px auto 0;
            padding: 0 5% 50px;
            position: relative;
            z-index: 2;
        }

        .movie-details-header {
            display: flex;
            gap: 40px;
            margin-bottom: 40px;
            align-items: flex-start;
        }

        .movie-details-poster {
            width: 250px;
            height: 375px;
            object-fit: cover;
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            flex-shrink: 0;
        }

        .movie-details-info {
            flex: 1;
        }

        .movie-details-title {
            font-size: clamp(32px, 5vw, 48px);
            font-family: 'Bebas Neue', cursive;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #fff, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .movie-details-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .movie-details-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #ffd700;
            font-size: 18px;
        }

        .movie-details-year {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.7);
        }

        .movie-details-overview {
            font-size: 16px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 30px;
            font-family: 'Poppins', sans-serif;
        }

        .movie-details-actions {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .detail-btn {
            padding: 15px 40px;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .detail-play-btn {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            color: white;
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .detail-play-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
        }

        .back-btn {
            background: var(--glass);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }

        .back-btn:hover {
            transform: translateY(-3px);
            border-color: var(--neon-red);
            box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
        }

        /* New Cast Section Styles */
        .cast-section {
            padding: 40px 0;
        }

        .cast-section .section-title {
            text-align: left;
            margin-bottom: 30px;
            font-size: 32px;
        }

        .cast-grid {
            display: flex;
            overflow-x: auto;
            gap: 25px;
            padding-bottom: 20px;
            -webkit-overflow-scrolling: touch;
        }

        .cast-grid::-webkit-scrollbar {
            height: 8px;
        }

        .cast-grid::-webkit-scrollbar-track {
            background: var(--glass);
            border-radius: 4px;
        }

        .cast-grid::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            border-radius: 4px;
        }

        .cast-card {
            text-align: center;
            width: 120px;
            flex-shrink: 0;
        }

        .cast-img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 15px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .cast-card:hover .cast-img {
            border-color: var(--neon-red);
            transform: scale(1.05);
        }

        .cast-info {
            padding: 0 5px;
        }

        .cast-name {
            font-weight: 600;
            font-size: 14px;
            color: var(--light);
            margin-bottom: 4px;
        }

        .cast-character {
            font-size: 12px;
            color: var(--gray);
        }

        /* Trailer Section Styles */
        .trailer-section {
            padding: 40px 0;
        }

        .trailer-section .section-title {
            text-align: left;
            margin-bottom: 30px;
            font-size: 32px;
        }

        .trailer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
        }

        .trailer-card {
            background: var(--glass);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
        }

        .trailer-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
            border-color: var(--neon-red);
        }

        .trailer-thumbnail {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            /* 16:9 aspect ratio */
            background: #000;
            overflow: hidden;
        }

        .trailer-thumbnail img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .trailer-play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.4);
            transition: background 0.3s ease;
        }

        .trailer-card:hover .trailer-play-overlay {
            background: rgba(0, 0, 0, 0.6);
        }

        .trailer-play-btn {
            width: 70px;
            height: 70px;
            background: rgba(255, 107, 107, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .trailer-card:hover .trailer-play-btn {
            transform: scale(1.1);
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
        }

        .trailer-play-btn i {
            color: white;
            font-size: 24px;
            margin-left: 4px;
        }

        .trailer-info {
            padding: 15px 20px;
        }

        .trailer-title {
            font-weight: 600;
            font-size: 15px;
            color: var(--light);
            margin-bottom: 5px;
            line-height: 1.4;
        }

        .trailer-badge {
            display: inline-block;
            padding: 4px 10px;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(124, 92, 255, 0.2));
            border-radius: 12px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .trailer-badge.official {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            color: white;
        }

        /* Mobile adjustments for trailer grid */
        @media (max-width: 768px) {
            .trailer-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        .season-episode-container {
            background: var(--glass);
            padding: 30px;
            border-radius: 20px;
            margin-top: 30px;
            border: 1px solid rgba(255, 107, 107, 0.2);
        }

        /* Custom Dropdown Styles */
        .custom-select {
            position: relative;
            margin-bottom: 20px;
        }

        .custom-select label {
            display: block;
            margin-bottom: 8px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
        }

        .select-selected {
            background: rgba(255, 255, 255, 0.08);
            padding: 14px 20px;
            border-radius: 12px;
            cursor: pointer;
            user-select: none;
            font-family: 'Poppins', sans-serif;
            font-size: 15px;
            color: white;
            border: 2px solid rgba(255, 107, 107, 0.2);
            transition: all 0.3s ease;
            position: relative;
        }

        .select-selected:hover {
            border-color: rgba(255, 107, 107, 0.4);
            background: rgba(255, 255, 255, 0.1);
        }

        .select-selected::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.3s ease;
            color: rgba(255, 255, 255, 0.6);
        }

        .select-selected.active::after {
            transform: translateY(-50%) rotate(180deg);
        }

        .select-items {
            position: absolute;
            background: rgba(20, 20, 20, 0.98);
            backdrop-filter: blur(20px);
            top: 100%;
            left: 0;
            right: 0;
            z-index: 99;
            margin-top: 5px;
            border-radius: 12px;
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.3s ease, padding 0.3s ease;
            border: 2px solid rgba(255, 107, 107, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .select-items.show {
            max-height: 300px;
            padding: 8px;
            overflow-y: auto;
        }

        .select-items div {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
        }

        .select-items div:hover {
            background: rgba(255, 107, 107, 0.2);
            color: white;
            padding-left: 20px;
        }

        .select-items div.selected {
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(124, 92, 255, 0.3));
            color: white;
        }

        /* Custom scrollbar for dropdown */
        .select-items::-webkit-scrollbar {
            width: 6px;
        }

        .select-items::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        .select-items::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            border-radius: 3px;
        }

        /* Pricing Section */
        #pricing-section {
            padding: 20px 5% 80px 5%;
        }

        .just-kidding {
            text-align: center;
            padding: 60px 5%;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(124, 92, 255, 0.1));
            border-radius: 30px;
            margin: 0 auto;
            max-width: 800px;
            position: relative;
            overflow: hidden;
        }

        .just-kidding::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 107, 107, 0.2), transparent);
            animation: rotate 15s linear infinite;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .just-kidding-content {
            position: relative;
            z-index: 1;
        }

        .just-kidding h2 {
            font-size: clamp(40px, 5vw, 60px);
            font-family: 'Bebas Neue', cursive;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #ff6b6b, #7c5cff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        .confetti {
            font-size: 50px;
            animation: confetti 3s ease-in-out infinite;
        }

        @keyframes confetti {

            0%,
            100% {
                transform: rotate(0deg) scale(1);
            }

            25% {
                transform: rotate(15deg) scale(1.1);
            }

            75% {
                transform: rotate(-15deg) scale(0.9);
            }
        }

        /* Footer */
        footer {
            background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9));
            padding: 80px 5% 30px;
            margin-top: 100px;
        }

        /* Spinner */
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .spinner {
            animation: spin 1s linear infinite;
        }

        /* Reveal Animation */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .mobile-menu {
                display: flex;
            }

            .nav-menu {
                display: none;
            }

            .redesign-banner {
                font-size: 12px;
                padding: 8px 35px 8px 10px;
            }

            .search-box.active {
                width: 200px;
            }

            .movies-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
            }

            .movie-poster {
                height: 230px;
                /* ADJUSTED: Better aspect ratio */
            }

            .movie-details-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .movie-details-poster {
                width: 200px;
                height: 300px;
            }

            .logo {
                height: 35px;
            }
        }
/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .redesign-banner {
        font-size: 12px;
        padding: 8px 35px 8px 10px;
    }

    .search-box.active {
        width: 200px;
    }

    /* Improved movie grid for mobile */
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    /* Better poster sizing for mobile */
    .movie-poster {
        height: 210px; /* Better aspect ratio for mobile */
        object-fit: cover;
    }

    /* Smaller text for mobile movie cards */
    .movie-title {
        font-size: 14px; /* Reduced from 18px */
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .movie-info {
        padding: 12px; /* Reduced padding */
        transform: translateY(70px); /* Adjusted for smaller cards */
    }

    .movie-meta {
        gap: 10px;
        margin-bottom: 8px;
    }

    .movie-rating {
        font-size: 12px; /* Smaller rating text */
    }

    .movie-rating i {
        font-size: 11px;
    }

    .movie-year {
        font-size: 12px;
    }

    /* Smaller play button for mobile */
    .play-btn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
    }

    .play-btn i {
        font-size: 11px;
    }

    /* Movie badge adjustments */
    .movie-badge {
        padding: 3px 10px;
        font-size: 10px;
        top: 8px;
        right: 8px;
    }

    /* Continue watching card adjustments */
    .continue-watching-card .movie-title {
        font-size: 13px;
    }

    .episode-info {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Section headers for mobile */
    .section-title {
        font-size: clamp(28px, 6vw, 36px);
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-badge {
        font-size: 10px;
        padding: 4px 15px;
    }

    /* Movie details page mobile adjustments */
    .movie-details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-details-poster {
        width: 180px;
        height: 270px;
    }

    .movie-details-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .movie-details-overview {
        font-size: 14px;
        line-height: 1.5;
    }

    .logo {
        height: 35px;
    }

    /* Hero section mobile */
    .hero-title {
        font-size: clamp(40px, 10vw, 60px);
    }

    .hero-subtitle {
        font-size: clamp(14px, 3vw, 18px);
    }

    /* Cast cards mobile */
    .cast-card {
        width: 90px;
    }

    .cast-img {
        width: 75px;
        height: 75px;
    }

    .cast-name {
        font-size: 12px;
    }

    .cast-character {
        font-size: 10px;
    }

    /* Custom divider spacing */
    .custom-divider {
        margin: 30px 0 40px 0;
    }

    /* Section padding adjustments */
    .section {
        padding: 15px 3% 60px 3%;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Even smaller grid for very small screens */
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .movie-poster {
        height: 165px;
    }

    .movie-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .movie-info {
        padding: 10px;
        transform: translateY(65px);
    }

    .play-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .movie-rating {
        font-size: 11px;
    }

    .movie-year {
        font-size: 11px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    /* Hero adjustments for very small screens */
    .hero-title {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 30px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .movie-poster {
        height: 180px;
    }

    .hero {
        min-height: 100vh;
        padding-top: calc(var(--navbar-height) + 20px);
    }
}
/* Mobile Movie Section Complete Redesign */
@media (max-width: 768px) {
    /* Section spacing improvements */
    .section {
        padding: 20px 15px 40px 15px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

    .section-badge {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    /* 2x2 Grid Layout for Mobile */
    .movies-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
    }

    /* Complete Movie Card Redesign for Mobile */
    .movie-card {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #1a1a1a;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .movie-card:active {
        transform: scale(0.98);
    }

    /* Remove hover effects on mobile */
    .movie-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .movie-card::before,
    .movie-card::after {
        display: none; /* Remove overlays for cleaner look */
    }

    /* Poster adjustments */
    .movie-poster {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
    }

    .movie-card:hover .movie-poster {
        transform: none; /* Disable zoom on mobile */
    }

    /* Simplified Movie Info - Always Visible on Mobile */
    .movie-info {
        position: relative;
        padding: 12px;
        background: #1a1a1a;
        transform: none;
        transition: none;
        margin-bottom: 0;
    }

    .movie-card:hover .movie-info {
        transform: none;
    }

    /* Compact Movie Title */
    .movie-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.2;
        color: #ffffff;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-shadow: none;
    }

    /* Simplified Meta Information */
    .movie-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 0;
    }

    .movie-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #ffd700;
    }

    .movie-rating i {
        font-size: 10px;
    }

    .movie-year {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }

    /* Hide play button on mobile - tap card to view details */
    .movie-actions {
        display: none;
    }

    /* Simplified badges */
    .movie-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 6px;
        font-weight: 600;
        z-index: 2;
        background: rgba(255, 107, 107, 0.9);
        backdrop-filter: blur(10px);
    }

    .movie-badge.coming-soon {
        background: rgba(255, 215, 0, 0.9);
        color: #000;
    }

    /* Continue Watching Section Specific */
    #continueWatchingSection .movies-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 0 0 10px 0;
        -webkit-overflow-scrolling: touch;
    }

    #continueWatchingSection .movie-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }

    #continueWatchingSection .movie-poster {
        height: 200px;
    }

    .continue-watching-card .episode-info {
        font-size: 10px;
        padding: 2px 6px;
        background: rgba(124, 92, 255, 0.3);
        border-radius: 4px;
    }

    .remove-watch-btn {
        width: 28px;
        height: 28px;
        opacity: 1; /* Always visible on mobile */
        transform: scale(1);
    }

    /* Custom scrollbar for continue watching */
    #continueWatchingSection .movies-grid::-webkit-scrollbar {
        height: 4px;
    }

    #continueWatchingSection .movies-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    #continueWatchingSection .movies-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 107, 107, 0.5);
        border-radius: 2px;
    }

    /* Dividers with more spacing */
    .custom-divider {
        margin: 30px 15px;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 107, 107, 0.3), 
            rgba(124, 92, 255, 0.3), 
            transparent);
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .movies-grid {
        gap: 12px;
    }

    .movie-poster {
        height: 220px;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
    }

    .movie-info {
        padding: 10px;
    }

    .movie-title {
        font-size: 13px;
    }

    .movie-rating {
        font-size: 11px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* Landscape mode for mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .movie-poster {
        height: 180px;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
    }

    .movie-info {
        padding: 8px;
    }

    .movie-title {
        font-size: 12px;
    }
}

/* Alternative Clean Card Design - Add this class to body for a different style */
.clean-mobile-design .movie-card {
    background: transparent;
    box-shadow: none;
}

.clean-mobile-design .movie-poster {
    border-radius: 8px;
    margin-bottom: 8px;
}

.clean-mobile-design .movie-info {
    background: transparent;
    padding: 0;
}

.clean-mobile-design .movie-title {
    font-size: 13px;
    margin-bottom: 4px;
}

.clean-mobile-design .movie-meta {
    justify-content: flex-start;
    gap: 12px;
}

/* Loading states for mobile */
@media (max-width: 768px) {
    .spinner {
        width: 30px !important;
        height: 30px !important;
        border-width: 3px !important;
    }
}

/* Touch-friendly tap areas */
@media (max-width: 768px) {
    .movie-card {
        -webkit-tap-highlight-color: rgba(255, 107, 107, 0.1);
    }

    /* Add visual feedback for touch */
    .movie-card:active {
        opacity: 0.9;
        transition: opacity 0.1s ease;
    }
}

/* Optional: Minimal Mode for Very Clean Look */
@media (max-width: 768px) {
    .minimal-mode .movie-info {
        padding: 8px;
    }

    .minimal-mode .movie-title {
        font-size: 12px;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }

    .minimal-mode .movie-meta {
        display: none;
    }

    .minimal-mode .movie-poster {
        height: 260px;
    }
}

/* Search Results Grid - Keep it compact */
@media (max-width: 768px) {
    #searchResults .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Hero Section Mobile Optimization */
@media (max-width: 768px) {
    .hero {
        padding: 0 20px;
        height: 85vh;
        min-height: 500px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        margin-bottom: 0;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .hero-stats {
        margin-top: 40px;
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {

        font-size: 12px;
    }
}

/* Mobile Movie Section - Info on Poster Design */
@media (max-width: 768px) {
    /* Section spacing improvements */
    .section {
        padding: 20px 15px 40px 15px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

    .section-badge {
        font-size: 10px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    /* 2x2 Grid Layout for Mobile */
    .movies-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
    }

    /* Movie Card Redesign - Info on Poster */
    .movie-card {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .movie-card:active {
        transform: scale(0.98);
    }

    /* Remove hover effects on mobile */
    .movie-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Dark gradient overlay for better text visibility */
    .movie-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.9) 100%
        );
        z-index: 1;
        pointer-events: none;
    }

    .movie-card::after {
        display: none;
    }

    /* Poster takes full card space */
    .movie-poster {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
        filter: brightness(0.85); /* Slightly darken the poster */
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
    }

    .movie-card:hover .movie-poster {
        transform: none; /* Disable zoom on mobile */
    }

    /* Movie Info Positioned on Poster */
    .movie-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 10px 10px;
        background: transparent;
        transform: none;
        transition: none;
        z-index: 2;
        margin-bottom: 0;
    }

    .movie-card:hover .movie-info {
        transform: none;
    }

    /* Smaller Movie Title on Poster */
    .movie-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Compact Meta Information on Poster */
    .movie-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .movie-rating {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        color: #ffd700;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }

    .movie-rating i {
        font-size: 10px;
    }

    .movie-year {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }

    /* Hide play button - tap card to play */
    .movie-actions {
        display: none;
    }

    /* Badge positioned on top */
    .movie-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 6px;
        font-weight: 600;
        z-index: 3;
        background: rgba(255, 107, 107, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .movie-badge.coming-soon {
        background: rgba(255, 215, 0, 0.95);
        color: #000;
    }

    /* Continue Watching Section with Horizontal Scroll */
    #continueWatchingSection .movies-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 0 0 10px 0;
        -webkit-overflow-scrolling: touch;
    }

    #continueWatchingSection .movie-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }

    #continueWatchingSection .movie-poster {
        height: 220px;
    }

    #continueWatchingSection .movie-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .continue-watching-card .episode-info {
        display: inline-block;
        font-size: 10px;
        padding: 2px 6px;
        background: rgba(124, 92, 255, 0.8);
        backdrop-filter: blur(5px);
        border-radius: 4px;
        color: white;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .remove-watch-btn {
        width: 28px;
        height: 28px;
        opacity: 1;
        transform: scale(1);
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }

    /* Dividers with more spacing */
    .custom-divider {
        margin: 30px 15px;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 107, 107, 0.3), 
            rgba(124, 92, 255, 0.3), 
            transparent);
    }
}

/* Small phones */
@media (max-width: 375px) {
    .movies-grid {
        gap: 12px;
    }

    .movie-poster {
        height: 240px;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
    }

    .movie-info {
        padding: 10px 8px 8px;
    }

    .movie-title {
        font-size: 12px;
    }

    .movie-rating {
        font-size: 10px;
    }

    .movie-rating i {
        font-size: 9px;
    }

    .movie-year {
        font-size: 10px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* Landscape mode for mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .movie-poster {
        height: 180px;
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95));
    }

    .movie-info {
        padding: 8px;
    }

    .movie-title {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .movie-meta {
        gap: 8px;
    }

    .movie-rating {
        font-size: 10px;
    }
}

/* Search Results - Same style */
@media (max-width: 768px) {
    #searchResults .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Loading states for mobile */
@media (max-width: 768px) {
    .spinner {
        width: 30px !important;
        height: 30px !important;
        border-width: 3px !important;
    }
}

/* Touch feedback */
@media (max-width: 768px) {
    .movie-card {
        -webkit-tap-highlight-color: rgba(255, 107, 107, 0.1);
    }

    .movie-card:active {
        opacity: 0.95;
        transition: opacity 0.1s ease;
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 0 20px;
        height: 85vh;
        min-height: 500px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .hero-stats {
        margin-top: 40px;
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }
}
/* Custom Warning Modal */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.warning-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.warning-modal-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

.warning-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.warning-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
    }
}

.warning-icon i {
    font-size: 28px;
    color: white;
}

.warning-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.warning-message {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.warning-btn {
    background: linear-gradient(135deg, #addc35, #8eb82a);
    color: #1a1a1a;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(173, 220, 53, 0.3);
}

.warning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 220, 53, 0.4);
    background: linear-gradient(135deg, #b8e63c, #9ac52f);
}

.warning-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .warning-modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .warning-icon {
        width: 50px;
        height: 50px;
    }
    
    .warning-icon i {
        font-size: 24px;
    }
    
    .warning-title {
        font-size: 20px;
    }
    
    .warning-message {
        font-size: 14px;
    }
}

/* Dark mode animation for the modal background */
.warning-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.warning-modal.closing .warning-modal-content {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
}
/* Custom Warning Modal Styles */
.custom-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-warning-overlay.show {
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.custom-warning-box {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 420px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.7) translateY(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.custom-warning-overlay.show .custom-warning-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.custom-warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff6b6b, 
        #ff9f40,
        #ff6b6b,
        transparent);
    animation: warningShimmer 3s infinite linear;
}

@keyframes warningShimmer {
    to {
        left: 100%;
    }
}

.warning-header {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.1), transparent);
}

.warning-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(255, 107, 107, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    animation: warningPulse 2s infinite;
    position: relative;
}

.warning-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3), transparent);
    animation: warningRipple 2s infinite;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes warningRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.warning-svg {
    width: 35px;
    height: 35px;
    color: white;
    z-index: 1;
    position: relative;
}

.warning-body {
    padding: 0 30px 25px;
    text-align: center;
}

.warning-heading {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.warning-text {
    color: #a8a8a8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.warning-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.warning-ok-btn {
    background: linear-gradient(135deg, #addc35, #8eb82a);
    color: #1a1a1a;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(173, 220, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.warning-ok-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.warning-ok-btn:hover::before {
    width: 300px;
    height: 300px;
}

.warning-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(173, 220, 53, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.warning-ok-btn:active {
    transform: translateY(0);
}

.warning-ok-btn span {
    position: relative;
    z-index: 1;
}



.custom-warning-box.shake {
    animation: warningShake 0.5s ease;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .custom-warning-box {
        width: 95%;
        border-radius: 16px;
    }
    
    .warning-header {
        padding: 25px 20px 15px;
    }
    
    .warning-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .warning-svg {
        width: 30px;
        height: 30px;
    }
    
    .warning-body {
        padding: 0 20px 20px;
    }
    
    .warning-heading {
        font-size: 22px;
    }
    
    .warning-text {
        font-size: 14px;
    }
    
    .warning-footer {
        padding: 15px 20px 25px;
    }
    
    .warning-ok-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}


/* Custom Warning Modal - Matching Site Design */
.custom-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-warning-overlay.show {
    visibility: visible;
    opacity: 1;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
}

.custom-warning-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.7) translateY(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.custom-warning-overlay.show .custom-warning-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animated gradient border top */
.custom-warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--neon-red),
        var(--neon-purple),
        var(--neon-red),
        transparent);
    animation: shine 3s infinite;
}

/* Glowing effect around modal */
.custom-warning-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-purple));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.custom-warning-overlay.show .custom-warning-box::after {
    opacity: 0.5;
}

.warning-header {
    padding: 35px 35px 25px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.05), transparent);
    position: relative;
}

.warning-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 40px rgba(255, 107, 107, 0.4),
        0 0 0 10px rgba(255, 107, 107, 0.1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    animation: badge-pulse 2s infinite;
    position: relative;
}

.warning-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.2), transparent 70%);
    animation: warningRipple 2s infinite;
}

.warning-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.15), transparent 70%);
    animation: warningRipple 2s infinite 0.5s;
}

@keyframes warningRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.warning-svg {
    width: 40px;
    height: 40px;
    color: white;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.warning-body {
    padding: 0 35px 30px;
    text-align: center;
}

.warning-heading {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--neon-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.warning-text {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.warning-footer {
    padding: 0 35px 35px;
    text-align: center;
}

.warning-ok-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 45px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.warning-ok-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.warning-ok-btn:hover::before {
    width: 400px;
    height: 400px;
}

.warning-ok-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.warning-ok-btn:active {
    transform: translateY(0);
}

.warning-ok-btn span {
    position: relative;
    z-index: 1;
}

/* Icon animation */
.warning-icon-wrapper i {
    animation: iconShake 2s ease-in-out infinite;
}




.custom-warning-box.shake {
    animation: warningShake 0.5s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-warning-box {
        width: 95%;
        max-width: 380px;
        border-radius: 15px;
    }
    
    .warning-header {
        padding: 30px 25px 20px;
    }
    
    .warning-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .warning-svg {
        width: 35px;
        height: 35px;
    }
    
    .warning-body {
        padding: 0 25px 25px;
    }
    
    .warning-heading {
        font-size: 30px;
    }
    
    .warning-text {
        font-size: 14px;
    }
    
    .warning-footer {
        padding: 0 25px 30px;
    }
    
    .warning-ok-btn {
        padding: 14px 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-warning-box {
        border-radius: 12px;
    }
    
    .warning-header {
        padding: 25px 20px 15px;
    }
    
    .warning-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .warning-svg {
        width: 30px;
        height: 30px;
    }
    
    .warning-body {
        padding: 0 20px 20px;
    }
    
    .warning-heading {
        font-size: 26px;
        letter-spacing: 1px;
    }
    
    .warning-text {
        font-size: 13px;
    }
    
    .warning-footer {
        padding: 0 20px 25px;
    }
    
    .warning-ok-btn {
        padding: 12px 30px;
        font-size: 13px;
        border-radius: 25px;
    }
}