/* =========================================
   SKETCH ON TV - MEDIA PLATFORM (FINAL)
   ========================================= */

:root {
    --sp-cyan: #00E5FF;
    --sp-dark: #050505;
}

body { background-color: #000; color: white; font-family: 'regular', sans-serif; }

/* --- 1. CINEMA HERO (Estilo Netflix) --- */
.cinema-hero {
    position: relative; height: 85vh; width: 100%;
    display: flex; align-items: center; padding-left: 5%;
    overflow: hidden;
}
.cinema-bg-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.5; z-index: 0;
}
.cinema-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    z-index: 1;
}

.cinema-content {
    position: relative; z-index: 2; max-width: 700px; padding-right: 20px;
}
.cinema-tag {
    background: #E50914; /* Rojo Netflix */
    color: white; padding: 5px 12px; font-family: 'medium'; 
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    display: inline-block; margin-bottom: 25px; border-radius: 2px;
}
.cinema-title {
    font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.95; margin-bottom: 25px;
    text-transform: uppercase; font-family: 'medium';
}
.cinema-desc {
    color: #e0e0e0; font-size: 1.15rem; line-height: 1.6; margin-bottom: 35px;
    font-family: 'light'; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Botones Hero */
.action-row { display: flex; gap: 20px; }
.btn-play-hero {
    background: white; color: black; padding: 15px 40px; font-size: 1.1rem;
    font-family: 'medium'; text-transform: uppercase; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px; border-radius: 4px;
    transition: 0.3s;
}
.btn-play-hero:hover { background: var(--sp-cyan); transform: scale(1.05); }

.btn-info-hero {
    background: rgba(109, 109, 110, 0.6); color: white; padding: 15px 40px; font-size: 1.1rem;
    font-family: 'medium'; text-transform: uppercase; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px; border-radius: 4px;
    transition: 0.3s; backdrop-filter: blur(5px);
}
.btn-info-hero:hover { background: rgba(109, 109, 110, 0.9); }


/* --- 2. SECCIONES DE VIDEO (NETFLIX SLIDER) --- */
.tv-section {
    padding: 40px 0 40px 20px; /* Left padding para alinear el inicio */
    border-bottom: 1px solid #111;
    overflow: hidden; 
}

.tv-cat-title {
    font-size: 1.4rem; color: #e5e5e5; margin-bottom: 20px; font-family: 'medium';
    border-left: 3px solid var(--sp-cyan); padding-left: 15px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* EL CARRUSEL MÁGICO (Scroll Horizontal) */
.tv-grid {
    display: flex; /* Alinea uno al lado del otro */
    gap: 15px;
    overflow-x: auto; /* Permite deslizar */
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-right: 20px; /* Espacio al final */
    padding-bottom: 20px; /* Espacio para sombras */
    
    /* Ocultar barra de scroll (Look App) */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.tv-grid::-webkit-scrollbar { display: none; }

/* TARJETA DE VIDEO */
.video-card {
    position: relative;
    flex: 0 0 auto; /* No encoger, mantener tamaño fijo */
    width: 320px;   /* Ancho fijo en PC */
    aspect-ratio: 16/9;
    border-radius: 4px; overflow: hidden; cursor: pointer;
    transition: 0.3s; border: 1px solid #222;
    background: #111;
}

.vc-thumb {
    width: 100%; height: 100%; object-fit: cover; transition: 0.4s;
    filter: brightness(0.8);
}

/* Overlay de Play */
.vc-play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2); 
    opacity: 0; transition: 0.3s;
}
.play-icon-circle {
    font-size: 3.5rem; color: white; 
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
    transition: 0.3s;
}

/* Info Abajo */
.vc-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 15px; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, transparent);
    transform: translateY(100%); /* Oculto en PC por defecto */
    transition: 0.3s;
}
.vc-title { 
    font-size: 1rem; color: white; margin-bottom: 4px; font-family: 'medium'; 
    text-shadow: 0 2px 4px black; line-height: 1.2;
}
.vc-meta { font-size: 0.75rem; color: var(--sp-cyan); text-transform: uppercase; font-family: 'medium'; letter-spacing: 1px; }

/* --- HOVER EFFECTS (SOLO PC) --- */
@media (hover: hover) {
    .video-card:hover {
        transform: scale(1.05); z-index: 10;
        border-color: var(--sp-cyan);
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    }
    .video-card:hover .vc-thumb { filter: brightness(1); }
    .video-card:hover .vc-play-overlay { opacity: 1; }
    .video-card:hover .vc-info { transform: translateY(0); }
}

/* --- MODAL VIDEO PLAYER --- */
.video-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 9999;
    display: none; align-items: center; justify-content: center;
}
.video-modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content {
    width: 90%; max-width: 1100px; aspect-ratio: 16/9; 
    background: black; position: relative;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
}
.close-modal {
    position: absolute; top: -50px; right: 0;
    color: white; font-size: 2.5rem; cursor: pointer; background: none; border: none;
    transition: 0.3s;
}
.close-modal:hover { color: var(--sp-cyan); transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    /* Hero Móvil */
    .cinema-hero { 
        height: 75vh; align-items: flex-end; padding-bottom: 80px; padding-left: 20px; padding-right: 20px;
    }
    .cinema-overlay { background: linear-gradient(0deg, #000 10%, rgba(0,0,0,0.6) 60%, transparent 100%); }
    .cinema-title { font-size: 2.8rem; }
    .action-row { width: 100%; }
    .btn-play-hero, .btn-info-hero { flex: 1; justify-content: center; font-size: 0.9rem; padding: 12px; }

    /* Carrusel Móvil */
    .video-card {
        width: 260px; /* Ancho ideal para ver 1 y medio en pantalla */
    }
    
    /* HACER VISIBLE LA INFO SIEMPRE EN MÓVIL */
    .vc-info {
        transform: translateY(0) !important; 
        background: linear-gradient(to top, rgba(0,0,0,1) 40%, transparent);
        padding: 12px;
    }
    .vc-play-overlay {
        opacity: 1 !important; 
    }
    .play-icon-circle {
        font-size: 2rem; opacity: 0.7; /* Icono sutil para no molestar */
    }
    .vc-thumb {
        filter: brightness(1); /* Imagen clara siempre */
    }
}