 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #141414;
            color: #ffffff;
            overflow-x: hidden;
        }

        /* Header Styles */
        header {
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
            background-color: transparent;
            backdrop-filter: blur(10px);
            transition: background-color 0.3s ease;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo-container img {
            width: 40px;
            height: 40px;
            border-radius: 8px;
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .main-nav a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            font-size: 0.95rem;
        }

        .main-nav a:hover, .main-nav a.active {
            color: #e50914;
        }

        .user-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #e50914, #f40612);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .user-icon:hover {
            transform: scale(1.1);
        }

        /* Hero Section */
        .hero-section {
            height: 100vh;
            background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                        url('https://img.freepik.com/fotos-premium/imagen-auditorio-cine-pequeno-e-intimo-asientos-comodos-ambiente-acogedor_168058-415.jpg?ga=GA1.1.184293385.1750638395&semt=ais_hybrid&w=740') center/cover;
            display: flex;
            align-items: center;
            padding: 0 2rem;
            position: relative;
        }

        .hero-content {
            max-width: 600px;
            z-index: 2;
        }

        .hero-content h2 {
            font-size: clamp(2rem, 5vw, 4rem);
            margin-bottom: 1rem;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        }

        .hero-content p {
            font-size: clamp(1rem, 2.5vw, 1.3rem);
            margin-bottom: 2rem;
            color: #e5e5e5;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        }

        .cta-button {
            padding: 1rem 2rem;
            background: linear-gradient(135deg, #e50914, #f40612);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
        }

        /* Main Content */
        main {
            padding: 2rem;
            margin-top: -10vh;
            position: relative;
            z-index: 3;
        }

        .local-mode-notice {
            background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
            border: 1px solid rgba(40, 167, 69, 0.3);
            color: #28a745;
            padding: 1rem;
            border-radius: 12px;
            margin-bottom: 2rem;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .search-container {
            margin-bottom: 2rem;
            display: flex;
            justify-content: center;
        }

        .search-bar {
            display: flex;
            max-width: 500px;
            width: 100%;
            gap: 0.5rem;
        }

        .search-bar input {
            flex: 1;
            padding: 0.75rem 1rem;
            border: 2px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            background-color: rgba(255,255,255,0.1);
            color: #fff;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-bar input:focus {
            outline: none;
            border-color: #e50914;
            background-color: rgba(255,255,255,0.15);
        }

        .search-bar button {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            background: linear-gradient(135deg, #e50914, #f40612);
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .search-bar button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
        }

        /* Section Titles */
        .section-title {
            font-size: clamp(1.5rem, 3vw, 2rem);
            margin: 3rem 0 1.5rem;
            color: #fff;
            position: relative;
            padding-left: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: linear-gradient(135deg, #e50914, #f40612);
            border-radius: 2px;
        }

        .category-badge {
            background: linear-gradient(135deg, #e50914, #f40612);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .category-badge.nueva {
            background: linear-gradient(135deg, #28a745, #20c997);
        }

        .category-badge.famosa {
            background: linear-gradient(135deg, #ffc107, #ffca2c);
            color: #000;
        }

        .category-badge.comun {
            background: linear-gradient(135deg, #6c757d, #868e96);
        }

        /* Category Sections */
        .category-section {
            margin-bottom: 4rem;
        }

        /* Movie Carousel */
        .movie-carousel {
            position: relative;
            margin-bottom: 2rem;
        }

        .carousel-container {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            padding: 1rem 0;
        }

        .movie-grid {
            display: flex;
            gap: 1rem;
            padding: 0 1rem;
            overflow-x: auto;
          
            padding-right: 2rem;
        }

        .movie-grid::-webkit-scrollbar {
            display: none;
        }

        /* Movie Cards - Responsive Sizes */
        .movie-card {
            background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            position: relative;
            
            flex-shrink: 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }

        .movie-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 12px 40px rgba(0,0,0,0.5);
            z-index: 0;
        }

        .movie-poster {
            position: relative;
            overflow: hidden;
            aspect-ratio: 2/3;
        }

        .movie-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .movie-card:hover .movie-poster img {
            transform: scale(1.1);
        }

        .movie-category-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            padding: 0.3rem 0.7rem;
            border-radius: 15px;
            font-size: 0.7rem;
            font-weight: 700;
            z-index: 5;
            text-transform: uppercase;
            backdrop-filter: blur(10px);
        }

        .movie-category-badge.nueva {
            background: rgba(40, 167, 69, 0.9);
            color: white;
        }

        .movie-category-badge.famosa {
            background: rgba(255, 193, 7, 0.9);
            color: #000;
        }

        .movie-category-badge.comun {
            background: rgba(108, 117, 125, 0.9);
            color: white;
        }
        /* Movie Is Disponible? */
        .movie-db-badge {
            position: absolute;
            top: 12px;
            right: 85%;
            padding: 0.3rem 0.7rem;
            border-radius: 15px;
            font-size: 0.7rem;
            font-weight: 700;
            z-index: 5;
            text-transform: uppercase;
            backdrop-filter: blur(10px);
        }
        .movie-db-badge.true {
            background: rgba(40, 167, 69, 0.9);
            color: white;
            padding-left: 100px;
        }

        .movie-db-badge.false {
            background: rgba(255, 7, 7, 0.9);
            color: white;
            padding-left: 100px;
        }
        .movie-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 1rem;
        }

        .movie-card:hover .movie-overlay {
            opacity: 1;
        }

        .rating {
            align-self: flex-start;
            background: rgba(0, 0, 0, 0.8);
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            color: #ffd700;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .play-btn {
            align-self: center;
            margin-bottom: 1rem;
            background: rgba(229, 9, 20, 0.9);
            color: white;
            margin-top: 260px;
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.2rem;
            backdrop-filter: blur(10px);
        }
       .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;
            }
        }
        .local-mode-notice {
            margin-top: 50px;
        }
        .search-container {
            margin-top: -15px;
        }
        .pqr-button {
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin: 10px 0;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        .pqr-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
            color: white;
            text-decoration: none;
        }
        .pqr-button i {
            font-size: 16px;
        }
        /* estilos para badge disponible (verde) */
        .movie-db-badge.available {
            background: linear-gradient(135deg, #00ff00, #00cc00) !important;
            color: #000 !important;
            font-weight: bold !important;
        }