/* ===================================
   DETALLE PELÍCULA - UI MODERNO
   Inspirado en Netflix/Disney+/Prime Video
   =================================== */

/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-red: #e50914;
    --primary-red-hover: #f6121d;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d2d2d2;
    --text-muted: #999999;
    --accent-gold: #ffd700;
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.9);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    --blur-backdrop: blur(20px);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body.det {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== HERO SECTION MODERNO ===== */
.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Background dinámico aplicado via JavaScript */
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.95) 0%, 
        rgba(15, 15, 25, 0.85) 50%, 
        rgba(25, 25, 35, 0.9) 100%
    ); /* Fallback elegante */
    overflow: hidden;
    transition: background 1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Fondo moderno: Imagen como textura sutil */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Los estilos dinámicos se aplicarán via JavaScript */
    filter: blur(20px) brightness(0.3);
    transform: scale(1.05);
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    opacity: 0.2; /* Por defecto sutil */
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%
    );
    z-index: 2;
    transition: background 0.8s ease-in-out; /* Transición suave para cambios dinámicos */
    will-change: auto; /* Optimización de rendering */
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

/* ===== INFORMACIÓN DE LA PELÍCULA ===== */
.movie-info {
    padding: 2rem 0;
}

.movie-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.rating-badge::before {
    content: '★';
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.rating-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.year-badge {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

.genre-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--primary-red);
    padding: 0.4rem 0.8rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--transition-smooth);
}

.genre-tag:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--primary-red);
    transform: translateY(-1px);
}

.movie-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.movie-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-item {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s var(--transition-smooth);
}

.detail-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== BOTONES DE ACCIÓN ===== */
.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(229, 9, 20, 0.6);
}

.play-button:active {
    transform: translateY(-1px) scale(1.02);
}

.play-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.info-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-backdrop);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== POSTER MODERNO ===== */
.movie-poster-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.movie-poster {
    position: relative;
    max-width: 400px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s var(--transition-smooth);
}

.movie-poster:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.movie-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s var(--transition-smooth);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
}

.movie-poster:hover .poster-overlay {
    opacity: 1;
}

/* ===== VIDEO PLAYER MODERNO ===== */
.video-section {
    position: relative;
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.video-container {
    position: relative;
    background: var(--darker-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
}

.video-header {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-backdrop);
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: between;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.video-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-success {
    color: #10b981;
}

.status-error {
    color: #ef4444;
}

#videoPlayer {
    width: 100%;
    height: auto;
    min-height: 400px;
    background: var(--darker-bg);
    border: none;
    outline: none;
}

/* ===== RECOMENDACIONES MEJORADAS ===== */
.recommendations-modern {
    margin: 6rem auto 4rem;
    max-width: 1400px;
    padding: 0 2rem;
}

.recommendations-header {
    margin-bottom: 3rem;
    text-align: left;
}

.recommendations-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recommendations-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-type {
    background: rgba(229, 9, 20, 0.2);
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.recommendation-card-modern {
    position: relative;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    group: hover;
}

.recommendation-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.3);
}

.recommendation-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s var(--transition-smooth);
}

.recommendation-card-modern:hover .recommendation-image img {
    transform: scale(1.1);
}

.recommendation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.recommendation-card-modern:hover .recommendation-overlay {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
}

.recommendation-card-modern:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 2px;
}

.recommendation-info-modern {
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--card-bg) 0%, #0f0f0f 100%);
}

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommendation-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== OPTIMIZACIONES PARA TV Y PANTALLAS GRANDES ===== */

/* TV y pantallas grandes (sistema moderno optimizado) */
@media screen and (min-width: 1400px) {
    .hero-container {
        transition: background 1.2s cubic-bezier(0.4, 0.0, 0.2, 1); /* Transición TV-friendly */
        transform: translateZ(0); /* Hardware acceleration */
        -webkit-transform: translateZ(0);
    }
    
    .hero-background {
        filter: blur(15px) brightness(0.3) saturate(1.1); /* Textura sutil optimizada */
        transform: scale(1.03); /* Escala menor para estabilidad */
        opacity: 0.12; /* Más sutil en TV */
        transition: all 1s cubic-bezier(0.4, 0.0, 0.2, 1);
        mix-blend-mode: soft-light; /* Mejor integración */
    }
    
    .hero-overlay {
        transition: background 1.2s cubic-bezier(0.4, 0.0, 0.2, 1); /* Suave para TV */
    }
}

/* Smart TV específico (4K y grandes) */
@media screen and (min-width: 1920px) and (min-height: 1080px) {
    .hero-container {
        transition: background 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Extra suave */
    }
    
    .hero-background {
        filter: blur(12px) brightness(0.25) saturate(1.0); /* Mínimo procesamiento */
        opacity: 0.1; /* Ultra sutil para 4K */
        transform: scale(1.02); /* Mínima escala */
        transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Máximo rendimiento TV */
    .hero-container,
    .hero-background,
    .hero-overlay {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        will-change: transform;
    }
}

/* ===== OPTIMIZACIÓN PARA TVs DE BAJO RECURSOS ===== */
/* Detectar TVs con hardware limitado */
@media screen and (min-width: 1280px) and (max-width: 1920px) and (min-height: 720px),
       screen and (pointer: coarse) and (min-width: 1024px) {
    
    /* Simplificar fondo para mejor rendimiento */
    .hero-background {
        filter: blur(8px) brightness(0.3) !important; /* Menos blur = menos procesamiento */
        opacity: 0.15 !important;
        transform: scale(1.01) !important; /* Mínima escala */
        transition: opacity 0.8s ease !important; /* Solo animar opacidad */
        will-change: opacity; /* Solo optimizar opacidad */
    }
    
    /* Fondo más simple sin múltiples gradientes */
    .hero-container {
        background: linear-gradient(135deg, 
            rgba(20, 20, 30, 0.98) 0%, 
            rgba(25, 25, 35, 0.95) 100%
        ) !important;
        transition: none !important; /* Sin transiciones dinámicas */
    }
    
    /* Overlay simplificado */
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.8) 100%
        ) !important;
        transition: none !important;
    }
    
    /* Reducir efectos en badges */
    .rating-badge,
    .year-badge {
        backdrop-filter: none !important; /* Eliminar blur costoso */
        background: rgba(40, 40, 50, 0.8) !important; /* Fondo sólido */
        transition: background 0.3s ease !important; /* Solo background */
        will-change: auto;
    }
    
    .rating-badge:hover,
    .year-badge:hover {
        transform: none !important; /* Sin escalado */
        box-shadow: none !important; /* Sin sombras */
    }
    
    /* Simplificar video player */
    .video-container {
        backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    /* Optimizar recomendaciones */
    .recommendation-card-modern {
        transition: transform 0.2s ease !important; /* Transición más rápida */
    }
    
    .recommendation-card-modern:hover {
        transform: scale(1.02) !important; /* Menor escalado */
    }
    
    /* Desactivar animaciones complejas */
    .movie-info *,
    .movie-poster-container,
    .recommendations-modern * {
        animation: none !important;
    }
}

/* ===== MODO ULTRA COMPATIBLE (TVs MUY LIMITADOS) ===== */
@media screen and (min-width: 1024px) and (max-width: 1366px) and (min-height: 720px) {
    
    /* Eliminar completamente efectos pesados */
    .hero-background {
        filter: brightness(0.25) !important; /* Solo brightness, sin blur */
        opacity: 0.1 !important;
        transform: none !important; /* Sin transformaciones */
        transition: none !important;
    }
    
    /* Fondo completamente estático */
    .hero-container {
        background: #1a1a1a !important; /* Color sólido */
    }
    
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 100%
        ) !important;
    }
    
    /* Badges sin efectos */
    .rating-badge,
    .year-badge {
        backdrop-filter: none !important;
        background: #2a2a2a !important; /* Gris sólido */
        border: 1px solid #3a3a3a !important;
        transition: none !important;
    }
    
    .rating-badge:hover,
    .year-badge:hover {
        background: #3a3a3a !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Desactivar todas las animaciones */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== CLASE DE DETECCIÓN DE BAJO RENDIMIENTO ===== */
/* Aplicada via JavaScript cuando se detecta TV de bajo recursos */
.low-end-tv .hero-background {
    filter: brightness(0.2) !important;
    opacity: 0.08 !important;
    transform: none !important;
    transition: none !important;
    background-attachment: scroll !important; /* Mejor rendimiento */
}

.low-end-tv .hero-container {
    background: #1a1a1a !important;
    transition: none !important;
}

.low-end-tv .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    transition: none !important;
}

/* Simplificar badges en modo bajo recursos */
.low-end-tv .rating-badge,
.low-end-tv .year-badge {
    backdrop-filter: none !important;
    background: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    transition: none !important;
    will-change: auto !important;
}

.low-end-tv .rating-badge:hover,
.low-end-tv .year-badge:hover {
    background: #3a3a3a !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Desactivar animaciones en modo bajo recursos */
.low-end-tv *,
.low-end-tv *::before,
.low-end-tv *::after {
    animation: none !important;
    transition: none !important;
}

/* Solo permitir transiciones muy básicas */
.low-end-tv button {
    transition: background-color 0.2s ease !important;
}

/* Título optimizado para TVs de bajo recursos */
.low-end-tv .movie-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important; /* Sombra más simple */
    font-weight: 600 !important;
}

/* Optimizar video en modo bajo recursos */
.low-end-tv .video-container {
    backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Simplificar recomendaciones */
.low-end-tv .recommendation-card-modern {
    transition: none !important;
}

.low-end-tv .recommendation-card-modern:hover {
    transform: none !important;
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .movie-poster {
        max-width: 300px;
    }
}

/* ===== MÓVIL MINIMALISTA Y ELEGANTE ===== */
@media (max-width: 768px) {
    
    /* Hero Section más limpio */
    .hero-container {
        min-height: 90vh;
    }
    
    .hero-background {
        filter: blur(20px) brightness(0.15); /* Más sutil */
        opacity: 0.7; /* Menos prominente */
    }
    
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.85) 60%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        min-height: auto;
        gap: 2.5rem;
        max-width: 100%;
    }
    
    /* Título más elegante */
    .movie-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
        font-weight: 600;
        letter-spacing: -0.01em;
        margin-bottom: 1.5rem;
        color: #ffffff;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.3);
        text-align: center;
    }
    
    /* Meta información minimalista */
    .movie-meta {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Rating más sutil - MENOS RUIDOSO */
    .rating-badge {
        background: rgba(255, 255, 255, 0.12); /* Fondo sutil */
        backdrop-filter: blur(12px);
        color: var(--text-primary); /* Blanco en lugar de dorado */
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.5rem 1rem;
        font-weight: 500; /* Menos pesado */
        font-size: 0.85rem;
        box-shadow: none; /* Sin sombra llamativa */
    }
    
    .rating-badge::before {
        content: '★';
        color: #ffffff; /* Estrella blanca, no dorada */
        opacity: 0.8;
        font-size: 0.9rem;
    }
    
    /* Año más discreto */
    .year-badge {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--text-muted);
        padding: 0.5rem 1rem;
        font-weight: 400;
        font-size: 0.85rem;
    }
    
    /* Géneros más minimalistas */
    .genre-tags {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .genre-tag {
        background: rgba(255, 255, 255, 0.08); /* Menos colorido */
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--text-secondary); /* Gris en lugar de rojo */
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
        font-weight: 400; /* Menos peso */
        letter-spacing: 0.01em;
        border-radius: 1.2rem;
    }
    
    .genre-tag:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--text-primary);
        transform: none; /* Sin animación en móvil */
    }
    
    /* Descripción más legible */
    .movie-description {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-secondary);
        margin-bottom: 2rem;
        text-align: left;
        opacity: 0.9;
    }
    
    /* Detalles más limpios */
    .movie-details {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .detail-item {
        background: rgba(255, 255, 255, 0.06); /* Más sutil */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.8rem;
        padding: 1.2rem;
    }
    
    .detail-item:hover {
        transform: none; /* Sin hover en móvil */
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .detail-label {
        font-size: 0.75rem;
        color: var(--text-muted);
        opacity: 0.8;
        margin-bottom: 0.4rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
        color: var(--text-secondary);
        font-weight: 400;
    }
    
    /* Botón de play más elegante */
    .action-buttons {
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }
    
    .play-button {
        width: 100%;
        max-width: 280px;
        background: rgba(255, 255, 255, 0.15); /* Menos colorido */
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.25);
        color: var(--text-primary);
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 500; /* Menos peso */
        box-shadow: none; /* Sin sombra llamativa */
        transition: all 0.3s ease;
    }
    
    .play-button::before {
        display: none; /* Sin efecto shine en móvil */
    }
    
    .play-button:hover,
    .play-button:active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(0.98); /* Sutil press effect */
        box-shadow: none;
    }
    
    .play-icon {
        width: 20px;
        height: 20px;
        opacity: 0.9;
    }
    
    /* Poster más centrado */
    .movie-poster {
        max-width: 280px;
        border-radius: 0.8rem;
    }
    
    .movie-poster:hover {
        transform: none; /* Sin efectos 3D en móvil */
    }
    
    /* Recomendaciones más limpias */
    .recommendations-modern {
        margin: 4rem auto 2rem;
        padding: 0 1.5rem;
    }
    
    .recommendations-title {
        font-size: 1.4rem;
        font-weight: 600; /* Menos pesado */
        margin-bottom: 0.5rem;
    }
    
    .recommendations-title svg {
        width: 24px;
        height: 24px;
        opacity: 0.8; /* Menos prominente */
    }
    
    .recommendation-type {
        background: rgba(255, 255, 255, 0.1); /* Más sutil */
        color: var(--text-secondary); /* Menos colorido */
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 400;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
    }
    
    /* Cards de recomendaciones minimalistas */
    .recommendation-card-modern {
        background: rgba(255, 255, 255, 0.05); /* Más sutil */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.8rem;
    }
    
    .recommendation-card-modern:hover {
        transform: scale(1.02); /* Menos dramático */
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Sombra sutil */
    }
    
    /* Información de recomendación más limpia */
    .recommendation-info-modern {
        padding: 1rem;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.1) 100%);
    }
    
    .recommendation-title {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
    }
    
    .recommendation-rating {
        font-size: 0.8rem;
        color: var(--text-muted); /* Gris en lugar de dorado */
        font-weight: 400;
    }
    
    .recommendation-rating svg {
        opacity: 0.7; /* Estrella más sutil */
    }
    
    /* Video section más limpia */
    .video-section {
        margin: 3rem auto;
        padding: 0 1.5rem;
    }
    
    .video-container {
        border-radius: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .video-header {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        padding: 1.2rem;
    }
    
    .video-title {
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .status-success {
        color: #10b981;
        opacity: 0.8; /* Más sutil */
    }
}

/* ===== MÓVILES MUY PEQUEÑOS - ULTRA MINIMALISTA ===== */
@media (max-width: 480px) {
    
    /* Hero más compacto */
    .hero-content {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }
    
    .movie-info {
        padding: 1rem 0;
    }
    
    /* Título aún más sutil */
    .movie-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        font-weight: 600;
        margin-bottom: 1.2rem;
        color: #ffffff;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.4);
        text-align: center;
    }
    
    /* Meta información más compacta */
    .movie-meta {
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .rating-badge,
    .year-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Géneros más pequeños */
    .genre-tags {
        justify-content: center;
        gap: 0.4rem;
        margin-bottom: 1.2rem;
    }
    
    .genre-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Descripción más compacta */
    .movie-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    /* Detalles simplificados */
    .movie-details {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .detail-item {
        padding: 1rem;
        border-radius: 0.6rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .detail-value {
        font-size: 0.85rem;
    }
    
    /* Botón más compacto */
    .play-button {
        max-width: 260px;
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .play-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Poster más pequeño */
    .movie-poster {
        max-width: 240px;
        border-radius: 0.6rem;
    }
    
    /* Recomendaciones ultra compactas */
    .recommendations-modern {
        margin: 3rem auto 2rem;
        padding: 0 1rem;
    }
    
    .recommendations-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .recommendations-title svg {
        width: 20px;
        height: 20px;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .recommendation-card-modern {
        border-radius: 0.6rem;
    }
    
    .recommendation-info-modern {
        padding: 0.8rem;
    }
    
    .recommendation-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .recommendation-rating {
        font-size: 0.75rem;
    }
    
    /* Video section compacta */
    .video-section {
        margin: 2.5rem auto;
        padding: 0 1rem;
    }
    
    .video-header {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
}

/* ===== LOADING Y ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.movie-info {
    animation: slideInLeft 0.8s var(--transition-smooth);
}

.movie-poster-container {
    animation: slideInRight 0.8s var(--transition-smooth);
}

.recommendations-modern {
    animation: fadeInUp 0.8s var(--transition-smooth);
}

/* ===== MODO OSCURO MEJORADO ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(10, 10, 10, 0.9);
        --card-bg: #0f0f0f;
    }
}

/* ===== EFECTOS ESPECIALES ===== */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(229, 9, 20, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ERROR DE VIDEO ===== */
.video-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    min-height: 300px;
}

.error-icon {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.video-error h4 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.video-error p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    max-width: 500px;
}

.video-error small {
    font-size: 0.85rem;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: inline-block;
}

/* ===== NO RECOMENDACIONES MODERNO ===== */
.no-recommendations-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
    min-height: 300px;
}

.no-rec-icon {
    margin-bottom: 1.5rem;
}

.no-recommendations-modern h4 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-recommendations-modern p {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.play-button:focus,
.info-button:focus,
.recommendation-card-modern:focus-within {
    outline: 2px solid var(--primary-red);
    outline-offset: 4px;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
.recommendations-grid::-webkit-scrollbar {
    height: 8px;
}

.recommendations-grid::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 10px;
}

.recommendations-grid::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.recommendations-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-hover);
}

/* ===== MODO FULLSCREEN ===== */
#videoPlayer:fullscreen,
#videoPlayer:-webkit-full-screen,
#videoPlayer:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: var(--darker-bg) !important;
}

/* ===== MICROANIMACIONES ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones solo en desktop */
@media (min-width: 769px) {
    .genre-tag {
        animation: slideUp 0.5s ease backwards;
    }

    .genre-tag:nth-child(1) { animation-delay: 0.1s; }
    .genre-tag:nth-child(2) { animation-delay: 0.2s; }
    .genre-tag:nth-child(3) { animation-delay: 0.3s; }
    .genre-tag:nth-child(4) { animation-delay: 0.4s; }

    .recommendation-card-modern {
        animation: slideUp 0.6s ease backwards;
    }

    .recommendation-card-modern:nth-child(1) { animation-delay: 0.1s; }
    .recommendation-card-modern:nth-child(2) { animation-delay: 0.2s; }
    .recommendation-card-modern:nth-child(3) { animation-delay: 0.3s; }
    .recommendation-card-modern:nth-child(4) { animation-delay: 0.4s; }
    .recommendation-card-modern:nth-child(5) { animation-delay: 0.5s; }
}

/* Sin animaciones en móvil para mejor performance */
@media (max-width: 768px) {
    .genre-tag,
    .recommendation-card-modern,
    .movie-info,
    .movie-poster-container,
    .recommendations-modern {
        animation: none !important;
    }
}

/* ===== MODO LANDSCAPE MÓVIL ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .movie-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        color: #ffffff;
        font-weight: 600;
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .movie-details {
        grid-template-columns: 1fr 1fr;
    }
}