
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary-color: #e60023;
            --primary-dark: #ad081b;
            --bg-color: #0a0a0a;
            --surface-color: #1a1a1a;
            --text-primary: #ffffff;
            --text-secondary: #b0b0b0;
            --border-color: #333;
            --shadow-light: rgba(255, 255, 255, 0.1);
            --shadow-dark: rgba(0, 0, 0, 0.5);
            --gradient-primary: linear-gradient(135deg, #e60023 0%, #ff4081 100%);
            --gradient-surface: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
        }
        
        /* Header moderno */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
        }
        
        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }
        
        .logo {
            font-size: 2.5rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }
        
        /* Barra de bsqueda moderna */
        .search-container {
            width: 100%;
            max-width: 600px;
        }
        
        .search-form {
            display: flex;
            background: var(--surface-color);
            border-radius: 50px;
            overflow: hidden;
            box-shadow: 0 10px 30px var(--shadow-dark);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .search-form:focus-within {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px var(--shadow-dark);
            border-color: var(--primary-color);
        }
        
        .search-input {
            flex: 1;
            padding: 1rem 1.5rem;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 1.1rem;
            outline: none;
        }
        
        .search-input::placeholder {
            color: var(--text-secondary);
        }
        
        .search-button {
            padding: 1rem 2rem;
            background: var(--gradient-primary);
            border: none;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-button:hover {
            background: linear-gradient(135deg, #ad081b 0%, #c2185b 100%);
            transform: scale(1.02);
        }
        
        /* Container principal */
        .main-container {
            max-width: 100%;
            margin: 0 auto;
            padding: 2rem;
            min-height: calc(100vh - 200px);
            position: relative;
        }
        
        /* Grid de videos optimizado */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        /* Cards de video modernos */
        .video-card {
            position: relative;
            background: var(--gradient-surface);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: 1px solid var(--border-color);
            min-height: 280px;
            display: flex;
            flex-direction: column;
        }
        
        .video-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 60px rgba(230, 0, 35, 0.2);
            border-color: var(--primary-color);
        }
        
        .video-card.loaded {
            min-height: auto;
        }
        
        .video-thumbnail {
            position: relative;
            aspect-ratio: 16/9;
            overflow: hidden;
            background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
            flex-shrink: 0;
        }
        
        .video-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.6s ease;
            opacity: 0;
        }
        
        .video-image.loaded {
            opacity: 1;
        }
        
        .video-card:hover .video-image {
            transform: scale(1.1);
        }
        
        /* Play button mejorado */
        .play-button {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 25px rgba(230, 0, 35, 0.4);
            transition: all 0.3s ease;
            opacity: 0.95;
            z-index: 2;
        }
        
        .play-button::after {
            content: "";
            width: 0;
            height: 0;
            border-left: 16px solid white;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
            margin-left: 3px;
        }
        
        .video-card:hover .play-button {
            transform: scale(1.15);
            box-shadow: 0 12px 35px rgba(230, 0, 35, 0.6);
        }
        
        /* Informacin del video */
        .video-info {
            padding: 5px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .video-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.4;
            margin-bottom: 0.8rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .video-source {
            color: var(--primary-color);
            font-size: 0.9rem;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.3rem 0.8rem;
            background: rgba(230, 0, 35, 0.1);
            border-radius: 15px;
            align-self: flex-start;
        }
        
        .video-source:hover {
            background: rgba(230, 0, 35, 0.2);
            color: var(--text-primary);
        }
        
        /* Modal de video */
        .video-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            backdrop-filter: blur(15px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        
        .video-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .video-player-container {
            position: relative;
            width: 90%;
            max-width: 1200px;
            background: #000;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
            transform: scale(0.8);
            transition: transform 0.4s ease;
        }
        
        .video-modal.active .video-player-container {
            transform: scale(1);
        }
        
        .video-iframe {
            width: 100%;
            height: 90vh;
            border: none;
        }
        
        /* Controles del reproductor */
        .player-controls {
            display: none;
        }

        .modal-prev, .modal-next {
            position: absolute;
            z-index: 10001;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            min-width: 120px;
            padding: 0.8rem 1.5rem;
            box-shadow: 0 8px 20px rgba(230, 0, 35, 0.4);
            opacity: 0.95;
            outline: none;
        }
        .modal-prev:disabled, .modal-next:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #666;
        }
        /* Desktop layout: buttons left/right of video frame, vertically centered */
        @media (min-width: 769px) {
            .video-modal {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .modal-prev {
                left: 2vw;
                top: 50%;
                transform: translateY(-50%);
            }
            .modal-next {
                right: 2vw;
                top: 50%;
                transform: translateY(-50%);
            }
            .modal-prev, .modal-next {
                position: absolute;
            }
            .video-player-container {
                position: relative;
            }
        }
        /* Mobile layout: prev above, next below, both centered */
        @media (max-width: 768px) {
            .video-modal {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }
            .modal-prev {
                position: relative;
                left: 0;
                top: 0;
                margin-bottom: 1rem;
                align-self: center;
                transform: none;
            }
            .video-player-container {
                width: 100vw;
                max-width: 100vw;
            }
            .modal-next {
                position: relative;
                left: 0;
                top: 0;
                margin-top: 1rem;
                align-self: center;
                transform: none;
            }
        }
        
        /* Estados de carga */
        .loading-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            color: var(--text-secondary);
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid var(--border-color);
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .no-results {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-secondary);
            grid-column: 1 / -1;
        }
        
        .no-results h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }
        
        .end-message {
            text-align: center;
            padding: 2rem;
            color: var(--text-secondary);
            grid-column: 1 / -1;
            display: none;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                padding: 0 1rem;
            }
            
            .logo {
                font-size: 2rem;
            }
            
            .main-container {
                padding: 1rem;
            }
            
            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1.5rem;
            }
            
            .video-iframe {
                height: 90vh;
            }
            
            .player-controls {
                bottom: -70px;
                flex-direction: column;
                gap: 0.8rem;
                padding: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .video-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .search-form {
                flex-direction: column;
                border-radius: 15px;
            }
            
            .search-button {
                border-radius: 0 0 15px 15px;
            }
            
            .video-iframe {
                height: 40vh;
            }
        }
        
        /* Animaciones */
        .video-card {
            animation: slideInUp 0.6s ease-out backwards;
        }
        
        @keyframes slideInUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Scrollbar personalizada */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--surface-color);
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }
        
        /* Efectos adicionales */
        .video-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 49%, rgba(230, 0, 35, 0.05) 50%, transparent 51%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 1;
        }
        
        .video-card:hover::before {
            opacity: 1;
        }

		
        .player-controls {
            bottom: -5px;
            flex-direction: row;
            gap: 0.8rem;
            padding: 0.6rem 1rem;
            min-width: 220px;
        }
        
        .control-button {
            padding: 0.6rem 1rem;
            font-size: 0.75rem;
        }

		/* Contenedor alineado a la esquina superior derecha */
		   .menu-container {
		     position: absolute;
		     top: 10px;
		     right: 10px;
		   }

		   /* Botón del menú */
		   .menu-button {
		     background-color: #333;
		     color: white;
		     padding: 10px 15px;
		     border: none;
		     cursor: pointer;
		     border-radius: 5px;
		   }

		   /* Contenido desplegable */
		   .menu-content {
		     display: none;
		     position: absolute;
		     right: 0;
		     background-color: white;
		     min-width: 150px;
		     box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
		     border-radius: 5px;
		     z-index: 1;
		   }

		   .menu-content a {
		     color: black;
		     padding: 10px 15px;
		     text-decoration: none;
		     display: block;
		   }

		   .menu-content a:hover {
		     background-color: #f1f1f1;
		   }

		   /* Mostrar el menú al pasar el ratón */
		   .menu-container:hover .menu-content {
		     display: block;
		   }			
		
