       .play-btn:hover {
            background: #e50914;
            transform: scale(1.1);
        }

        .movie-info {
            padding: 1rem;
            background: linear-gradient(145deg, #1a1a1a, #252525);
        }

        .movie-info h3 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            line-height: 1.3;
        }

        .movie-year {
            color: #aaa;
            font-size: 0.9rem;
            font-weight: 400;
        }

        /* Responsive Card Sizes */
        @media (min-width: 1400px) {
            .movie-card { width: 280px; }
        }

        @media (min-width: 1200px) and (max-width: 1399px) {
            .movie-card { width: 250px; }
        }

        @media (min-width: 992px) and (max-width: 1199px) {
            .movie-card { width: 220px; }
        }

        @media (min-width: 768px) and (max-width: 991px) {
            .movie-card { width: 200px; }
            
              
        }

        @media (min-width: 576px) and (max-width: 767px) {
            .movie-card { width: 180px; }
            .auth-icon {
              pointer-events: none;
              display: none;
              }
              .logo-container {
                margin-left: -50%;
              }
              .movie-db-badge {
               margin-left: 100px; 
              }
              .play-btn {
                 margin-top: 100px;
              }
              
        }

        @media (max-width: 575px) {
            .movie-card { width: 160px; }
            .auth-icon {
              pointer-events: none;
              display: none;
            }
        }

        /* Loading Spinner */
        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
            color: #aaa;
            flex-direction: column;
            gap: 1rem;
        }

        .loading-spinner i {
            font-size: 2rem;
            animation: spin 1s linear infinite;
        }

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

        /* Movie Details Modal */
        .movie-details-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            overflow-y: auto;
            padding: 1rem;
            backdrop-filter: blur(5px);
        }

        .movie-details {
            background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
            border-radius: 16px;
            width: 100%;
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            padding: 2rem;
            box-shadow: 0 20px 60px rgba(0,0,0,0.8);
        }

        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .close-btn:hover {
            background: rgba(229, 9, 20, 0.8);
            transform: scale(1.1);
        }

        .movie-info-detail {
            display: flex;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .movie-info-detail img {
            width: 300px;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        }

        .movie-text {
            flex: 1;
        }

        .movie-text h2 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: #e50914;
            font-weight: 700;
        }

        .movie-meta {
            display: flex;
            align-items: center;
            color: #aaa;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .separator {
            margin: 0 0.5rem;
        }

        .movie-rating-detail {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            color: #ffd700;
            align-items: center;
        }

        .movie-rating-detail span:last-child {
            color: #aaa;
            font-size: 0.9rem;
        }

        .movie-director, .movie-actors {
            margin-bottom: 1rem;
            color: #ddd;
            line-height: 1.5;
        }

        .movie-description {
            line-height: 1.6;
            margin-bottom: 1.5rem;
            color: #ddd;
            font-size: 1.1rem;
        }

        .movie-genres {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 2rem;
        }

        .movie-genres span {
            background: linear-gradient(135deg, #333, #444);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .movie-player {
            margin-bottom: 2rem;
        }

        .movie-player h3 {
            margin-bottom: 1rem;
            color: #e50914;
            font-size: 1.8rem;
            font-weight: 600;
        }

        .video-container {
            width: 100%;
            background-color: #000;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            padding-top: 56.25%;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        }

        #videoPlayer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .download-options h3 {
            margin-bottom: 1rem;
            color: #e50914;
            font-size: 1.8rem;
            font-weight: 600;
        }

        .download-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 1.5rem;
            background: linear-gradient(135deg, #333, #444);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .download-btn:hover {
            background: linear-gradient(135deg, #e50914, #f40612);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
        }

        .error-message {
            text-align: center;
            color: #e50914;
            padding: 2rem;
            background: rgba(229, 9, 20, 0.1);
            border: 1px solid rgba(229, 9, 20, 0.3);
            border-radius: 12px;
            margin: 2rem 0;
        }

        /* Footer */
        footer {
            background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
            padding: 3rem 2rem 1rem;
            margin-top: 4rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        .footer-section h3 {
            color: #e50914;
            margin-bottom: 1rem;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .footer-section p {
            color: #aaa;
            line-height: 1.6;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-section ul li a {
            color: #aaa;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section ul li a:hover {
            color: #e50914;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
        }

        .social-icons a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #333, #444);
            color: white;
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background: linear-gradient(135deg, #e50914, #f40612);
            transform: translateY(-2px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #333;
        }

        .footer-bottom p {
            color: #666;
        }

        /* Mobile Responsive Design */
        @media (max-width: 768px) {
            header {
                padding: 1rem;
                flex-direction: column;
                gap: 1rem;
                background: rgba(20,20,20,0.95);
            }

            .main-nav ul {
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .main-nav a {
                font-size: 0.9rem;
            }

            .hero-section {
                height: 100vh;
                padding: 0 1rem;
                background-position: center;
            }

            main {
                padding: 1rem;
                margin-top: 0;
            }

            .section-title {
                font-size: 1.5rem;
                margin: 2rem 0 1rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            .movie-grid {
                gap: 0.75rem;
                padding: 0 0.5rem;
                padding-right: 1rem;
            }

            .movie-info-detail {
                flex-direction: column;
                gap: 1rem;
            }

            .movie-info-detail img {
                width: 100%;
                max-width: 300px;
                margin: 0 auto;
            }

            .movie-text h2 {
                font-size: 2rem;
            }

            .movie-details {
                padding: 1rem;
                margin: 0.5rem;
            }

            .search-bar {
                flex-direction: column;
                gap: 0.75rem;
            }

            .download-links {
                justify-content: center;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .hero-content h2 {
                font-size: 2rem;
            }

            .hero-content p {
                font-size: 1rem;
            }

            .cta-button {
                padding: 0.8rem 1.5rem;
                font-size: 1rem;
            }

            .movie-card {
                width: 140px;
            }

            .movie-info h3 {
                font-size: 0.9rem;
            }

            .movie-year {
                font-size: 0.8rem;
            }

            .section-title {
                font-size: 1.3rem;
            }

            .category-badge {
                font-size: 0.7rem;
                padding: 0.3rem 0.8rem;
            }
        }

        /* Tablet Specific Styles */
        @media (min-width: 768px) and (max-width: 1024px) {
            .hero-section {
                height: 90vh;
            }

            .main-nav ul {
                gap: 1.5rem;
            }

            .movie-grid {
                gap: 1rem;
            }

            .movie-card {
                width: 200px;
            }

            .section-title {
                font-size: 1.8rem;
            }
        }

        /* Touch-friendly improvements */
        @media (hover: none) and (pointer: coarse) {
            .movie-card:hover {
                transform: none;
                box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            }

            .movie-overlay {
                opacity: 0.8;
            }

            .play-btn {
                width: 50px;
                height: 50px;
                font-size: 1rem;
                margin-top: 275px;
            }
        }