/* RESET & BASE */
:root {
    --netflix-red: #E50914;
    --netflix-black: #141414;
    --netflix-dark-gray: #181818;
    --white: #fff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Martel Sans', sans-serif;
    background-color: var(--netflix-black);
    color: var(--white);
    overflow-x: hidden;
}

/* CLASES DE UTILIDAD */
.hidden { display: none !important; }
.video-hidden { display: none !important; }
.modal-hidden { display: none !important; }

/* =========================================
   1. LANDING MISTERIOSA
   ========================================= */
.landing-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 3000;
    position: relative;
}



.typing-container {
    padding: 0 20px; /* Margen para que no pegue a los bordes en celular */
    max-width: 800px; /* Que no se estire demasiado en pantallas grandes */
    text-align: center;
}

.typing-container h1 {
    font-family: 'Martel Sans', sans-serif;
    font-size: 2rem; /* Tamaño grande y legible */
    font-weight: 200;
    color: #e5e5e5;
    text-align: center;
    min-height: 60px; /* Esto evita que la pantalla salte si el texto se borra completo */
    
    /* El cursor parpadeante */
    border-right: 2px solid var(--netflix-red); 
    display: inline-block;
    animation: blink 0.7s infinite;
}

/* Efecto para que el cursor parpadee */
@keyframes blink {
    50% { border-color: transparent; }
}

#start-btn {
    margin-top: 30px;
    background: transparent;
    border: 1px solid var(--netflix-red);
    color: var(--netflix-red);
    padding: 15px 40px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0; /* Empieza oculto */
    transition: opacity 1s ease-in;
    text-transform: uppercase;
    border-radius: 20px;
}

#start-btn:hover {
    background: var(--netflix-red);
    color: white;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.fade-in { opacity: 1 !important; }

@keyframes blink { 50% { border-color: transparent; } }

/* =========================================
   2. VIDEO INTRO
   ========================================= */
#video-intro-container {
    position: fixed; /* Fijo en la pantalla, ignora el scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fondo negro por si el video tarda en cargar */
    z-index: 9999; /* Por encima de todo (landing, perfil, etc.) */
    
    /* Centrado */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Evita barras de desplazamiento */
}
#netflix-video {
    width: 100%;
    height: 100%;
    
    /* LA CLAVE MAGICA: */
    object-fit: cover; 
    /* 'cover' hace que el video llene todo el div, 
       recortando los bordes si es necesario para no deformar la imagen */
}

/* CLASE PARA OCULTARLO (Usada por el JS) */
.video-hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   3. PERFIL DE USUARIO (ESTILO TV REPLICA)
   ========================================= */
#profile-gate {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: #141414;
    overflow: hidden;
    font-family: 'Martel Sans', sans-serif;
    color: white;
}

.profile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;

    opacity: 1;
    transition: opacity 2s ease-in-out; /* MÁS SUAVE */
}

.profile-background.fade-out {
    opacity: 0;
}

/* Degradado negro a la izquierda para poder leer los textos de los perfiles */
.left-vignette {
    position: absolute;
    top: 0; left: 0; width: 65%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 35%, transparent 100%);
    z-index: 1;
}

/* Contenedor del menú izquierdo alineado */
.profile-interface-container {
    position: relative;
    z-index: 10;
    height: 100%;
    padding-left: 10%; /* Separación del borde de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-header {
    margin-bottom: 25px;
}

/* Contenedor del logo */
.net-logo-small {
    margin-bottom: 15px; /* Espacio entre el logo y el texto "Choose a Profile" */
    display: inline-block;
}

/* Estilo directo para la imagen del logo */
.net-logo-small img {
    width: 240px; /* Este es el tamaño ideal, puedes subirlo o bajarlo un poco si quieres */
    height: auto; /* Mantiene la proporción para que no se deforme */
    display: block; /* Quita un pequeño margen fantasma que a veces dejan las imágenes */
}

.choose-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

/* Lista Vertical de Perfiles */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

/* Item individual */
.profile-item {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    opacity: 0.5; /* Inactivos se ven un poco apagados */
    height: 120px; /* Altura fija CLAVE para que no haya saltos visuales al agrandar la foto */
    transition: opacity 0.3s ease;
}

/* Caja del Avatar */
.avatar-box {
    width: 80px;  /* Tamaño inactivo */
    height: 80px; /* Tamaño inactivo */
    overflow: hidden;
    border-radius: 4px;
    border: 3px solid transparent; 
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box; /* Evita que el borde rompa las medidas */
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nombre del perfil (oculto por defecto a la izquierda) */
.profile-name {
    margin-left: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    opacity: 0; 
    transform: translateX(-15px); /* Empieza desplazado a la izquierda */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* --- ESTADOS ACTIVOS (Como el cursor de una Smart TV) --- */

.profile-item.active, 
.profile-item:hover {
    opacity: 1; /* Se ilumina al enfocarse */
}

.profile-item.active .avatar-box, 
.profile-item:hover .avatar-box {
    width: 110px;  /* Crece fluidamente */
    height: 110px; /* Crece fluidamente */
    border-color: white; /* Borde blanco característico */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.profile-item.active .profile-name, 
.profile-item:hover .profile-name {
    opacity: 1; /* Aparece el texto */
    transform: translateX(0); /* Se desliza a su posición */
}

/* Botón Añadir Perfil (+) */
.plus-box {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #666; /* Borde grisáceo inactivo */
}

.plus-box i {
    font-size: 2.5rem;
    color: #666;
    transition: all 0.3s;
}

/* Efectos al seleccionar el botón de Añadir */
.profile-item.active .plus-box,
.profile-item:hover .plus-box {
    background: white;
    border-color: white;
}

.profile-item.active .plus-box i,
.profile-item:hover .plus-box i {
    color: black;
}
/* =========================================
   BOTÓN VOLVER AL INICIO (SELECTOR PERFILES)
   ========================================= */
.back-to-start {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 20;
    color: #b3b3b3; /* Gris Netflix */
    font-size: 1.2rem;
    font-family: 'Martel Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-to-start:hover {
    color: #fff;
    transform: translateX(-5px); /* Pequeño efecto de movimiento hacia la izquierda */
}

@media (max-width: 768px) {
    .back-to-start {
        top: 20px;
        left: 20px;
        font-size: 1rem;
    }
}
/* =========================================
   ESTILOS DEL MENSAJE EMERGENTE (TOAST)
   ========================================= */
#custom-toast {
    position: fixed;
    bottom: 40px; /* Separación desde abajo */
    left: 50%;
    transform: translateX(-50%); /* Centrado perfecto */
    background-color: #E50914; /* Rojo Netflix */
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: 'Martel Sans', sans-serif;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    text-align: center;
    
    /* Animación oculta por defecto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, bottom 0.4s ease;
}

/* Clase que se activa con JS para mostrarlo */
#custom-toast.toast-show {
    opacity: 1;
    visibility: visible;
    bottom: 60px; /* Efecto de que sube un poquito al aparecer */
}
/* =========================================
   4. HOME NETFLIX (ESTILO WEB)
   ========================================= */
#netflix-home { 
    animation: fadeIn 1.5s; 
    padding-bottom: 50px;
}

/* --- NAVEGACIÓN ESTILO NETFLIX WEB --- */
.web-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 70px;
    box-sizing: border-box;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

/* Grupos de Izquierda (Logo y Menú) y Derecha (Lupa y Perfil) */
.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo-web {
    height: 30px; 
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 20px;
}
.nav-menu a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-menu a:hover { color: #b3b3b3; }
.nav-menu a.active { font-weight: bold; color: white; }

.nav-icon { color: white; font-size: 1.2rem; }

/* Perfil y Dropdown */
.nav-profile-container { position: relative; }
.nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.nav-profile img { width: 35px; height: 35px; border-radius: 4px; object-fit: cover; }
.nav-profile i { color: white; font-size: 0.8rem; transition: transform 0.3s; }

/* El menú ahora se abre alineado a la derecha */
.profile-dropdown {
    position: absolute;
    top: 50px; right: 0; 
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    padding: 10px;
    min-width: 170px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown button {
    background: transparent; border: none; color: white; width: 100%;
    text-align: left; padding: 10px; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.profile-dropdown button:hover { text-decoration: underline; }

/* Responsive para la navegación web */
@media (max-width: 900px) {
    .nav-menu { gap: 15px; }
    .nav-menu a { font-size: 0.8rem; }
}
@media (max-width: 600px) {
    .nav-left { gap: 15px; }
    .nav-menu a:not(.active) { display: none; }
    .logo-web { height: 20px; }
    .nav-profile img { width: 30px; height: 30px; }
}


/* =========================================
   HERO ESTILO PANTALLA COMPLETA (WEB)
   ========================================= */
.net-hero {
    position: relative;
    height: 90vh;             
    min-height: 600px;
    width: 100%;
    margin: 0; /* Quitamos los márgenes del recuadro de TV */
    display: flex;
    align-items: center;
    padding-left: 4%;
     box-sizing: border-box;
    overflow: hidden;
    background-color: #000;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top; 
    z-index: 1;
}

/* Oscurecimiento a la izquierda para el texto */
.hero-vignette {
    position: absolute;
    top: 0; left: 0; width: 55%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

/* Oscurecimiento inferior para unir con las filas de películas */
.hero-gradient-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(0deg, #141414 0%, transparent 100%);
    display: block; 
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 650px; /* Cambiamos el porcentaje por un máximo fijo */
    margin-top: 5%; 
}

.hero-title-img {
    width: 100%;
    max-width: 450px; 
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Botones Rectangulares Suaves (Web) */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 80px; 
}
.hero-buttons button {
    border: none;
    border-radius: 4px; /* Bordes ligeramente redondos */
    padding: 10px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, opacity 0.2s;
}
.hero-buttons button i {
    font-size: 1.4rem;
}

.btn-play { background-color: #fff; color: #000; }
.btn-play:hover { background-color: rgba(255, 255, 255, 0.75); }

.btn-info { background-color: rgba(109, 109, 110, 0.7); color: white; }
.btn-info:hover { background-color: rgba(109, 109, 110, 0.4); }

/* Recuadro de Clasificación de Edad (Pegado a la derecha) */
.hero-maturity {
    position: absolute;
    bottom: 30%; /* Altura media-baja en la pantalla */
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-maturity .replay-icon {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.hero-maturity .replay-icon:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.maturity-rating {
    background: rgba(51, 51, 51, 0.6);
    color: white;
    padding: 8px 50px 8px 15px; /* Más padding a la derecha para chocar con el borde */
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 3px solid #d9d9d9;
}

/* =========================================
   ESPACIADO DE LAS FILAS DE ABAJO
   ========================================= */
.net-rows-container { 
    position: relative; 
    z-index: 20; 
    margin-top: -30px; /* Sube las filas para que se fusionen con el difuminado negro inferior */
    padding-left: 0 !important; 
}
/* =========================================
   REPRODUCTOR DE VIDEO A PANTALLA COMPLETA
   ========================================= */
.player-hidden {
    display: none !important;
}
#fullscreen-player {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: black;
    z-index: 99999; /* Por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
}
#main-movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que el video no se corte */
}
.top-controls {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10000;
}
.back-player-btn {
    background: rgba(0,0,0,0.5);
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
.back-player-btn:hover {
    transform: scale(1.1);
    background: white;
    color: black;
}


/* =========================================
   ROWS & CARDS (CARRUSEL NETFLIX)
   ========================================= */

.row-title { 
    font-size: 1.2rem; 
    color: #e5e5e5; 
    margin: 20px 0 10px 0; 
    font-weight: 600; 
    position: relative; 
    z-index: 5; 
    padding-left: 4% !important;
}

/* El carrusel de las tarjetas */
.row-scroller {
    display: flex; 
    overflow-x: auto; 
    overflow-y: hidden; 
    gap: 8px; 
    
    padding-top: 30px; 
    padding-bottom: 190px; 
    
    /* TRUCO 3: Le damos el padding POR DENTRO al carrusel */
    padding-left: 4% !important; 
    padding-right: 4% !important;
    
    margin-top: -20px;
    margin-bottom: -140px; 
    
    scrollbar-width: none;
    position: relative; 
    z-index: 1; 
}

/* CRÍTICO: La fila entera se viene al frente al pasar el mouse */
.row-scroller:hover {
    z-index: 9999; 
}

.row-scroller::-webkit-scrollbar { 
    display: none; 
}

/* Tarjeta Principal */
.net-card {
    min-width: 250px; 
    height: 140px; 
    background: #181818;
    border-radius: 4px; 
    position: relative; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1; 
    overflow: visible; 
}

.net-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 4px; 
}

/* 1. Si la tarjeta es la PRIMERA, se ancla a la izquierda y crece a la derecha */
.row-scroller .net-card:first-child {
    transform-origin: left center !important;
}

/* 2. Si la tarjeta es la ÚLTIMA (y NO es la primera), se ancla a la derecha */
.row-scroller .net-card:last-child:not(:first-child) {
    transform-origin: right center !important;
}

/* 3. Si la tarjeta es la ÚNICA en toda la fila, SIEMPRE manda el lado izquierdo */
.row-scroller .net-card:only-child {
    transform-origin: left center !important;
}

/* 4. Mantenemos las reglas al hacer hover para que no parpadee */
.row-scroller .net-card:first-child:hover,
.row-scroller .net-card:only-child:hover {
    transform-origin: left center !important;
}

.row-scroller .net-card:last-child:not(:first-child):hover {
    transform-origin: right center !important;
}

/* Hover de la Tarjeta */
.net-card:hover { 
    transform: scale(1.35); 
    z-index: 100; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.8); 
}
.net-card:hover img { 
    border-bottom-left-radius: 0; 
    border-bottom-right-radius: 0; 
}

/* HOVER ESTILO NETFLIX (El recuadro que baja con la info) */
.card-info {
    position: absolute; 
    top: 100%; /* Cambiado para que siempre nazca justo debajo de la tarjeta */
    left: 0; 
    width: 100%;
    background: #181818; 
    padding: 12px; 
    box-sizing: border-box; 
    opacity: 0; 
    pointer-events: none; 
    transition: 0.3s ease;
    z-index: -1; 
    border-radius: 0 0 4px 4px;
}

.net-card:hover .card-info {
    opacity: 1; 
    pointer-events: auto;
    z-index: 10;
    box-shadow: 0 15px 20px rgba(0,0,0,0.9); 
}

/* Textos de la tarjeta */
.card-title-hover { font-size: 0.9rem; margin: 0 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-metadata { font-size: 0.75rem; color: #bcbcbc; display: flex; gap: 8px; align-items: center;}
.card-match { color: #46d369; font-weight: bold; }

/* Botones redondos de Netflix dentro de la tarjeta */
.card-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.card-btn {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5); background: #181818; color: white;
    display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s;
}
.card-btn:hover { border-color: white; background: rgba(255,255,255,0.2); }
.card-btn.play { background: white; color: black; border: none; }
.card-btn.play:hover { background: #e6e6e6; }

/* Barra roja de progreso "Continuar viendo" */
.progress-container {
    width: 100%; height: 4px; background: rgba(255,255,255,0.2);
    position: absolute; bottom: 0; left: 0; z-index: 5;
}
.progress-bar { height: 100%; background: #E50914; width: 0%; transition: width 0.3s; }
.card-info h4 { margin: 0; font-size: 0.8rem; }

/* Estilo para Coming Soon (Bloqueado) */
.net-card.locked {
    filter: grayscale(100%) brightness(0.4);
    cursor: not-allowed;
    position: relative;
}
.net-card.locked:hover { transform: none; box-shadow: none; }
.lock-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; color: #888;
}
/* =========================================
   5. MODAL (DISEÑO ACTUALIZADO)
   ========================================= */
#movie-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 5000;
    display: flex; justify-content: center; align-items: flex-start;
    overflow-y: auto; /* Permite scroll si el contenido es muy largo */
}

.modal-content {
    background: #181818; 
    width: 100%; 
    max-width: 850px; 
    border-radius: 10px; 
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.8); 
    margin: 40px auto; /* Centrado con espacio arriba y abajo */
    color: #fff;
    animation: zoomIn 0.3s;
    overflow: hidden; /* Corta los bordes rectos de la imagen */
}

/* Imagen de portada y difuminado */
.modal-hero-img { width: 100%; height: 450px; position: relative; }
.modal-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-shade {
    position: absolute; bottom: -1px; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, #181818 0%, transparent 100%);
}

/* Botón de cerrar redondo oscuro */
.close-modal {
    position: absolute; top: 15px; right: 15px; width: 36px; height: 36px;
    background: rgba(24, 24, 24, 0.7); color: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    font-size: 18px; z-index: 20; transition: background 0.2s;
}
.close-modal:hover { background: rgba(24, 24, 24, 1); }

/* --- Overlay: Título y botones sobre la imagen --- */
.modal-overlay-content { position: absolute; bottom: 5%; left: 40px; width: 80%; z-index: 5; }
#modal-title-overlay {
    font-size: 3.5rem; font-weight: 800; margin: 0 0 20px 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8); line-height: 1; font-family: 'Martel Sans', sans-serif;
}
.modal-title-img {
    width: 100%;
    max-width: 250px; /* Tamaño ideal para que no tape las caras */
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.6)); /* Sombrita para que resalte */
}
.modal-buttons { display: flex; gap: 10px; align-items: center; }

/* Botón Reproducir */
.btn-play-modal {
    background: white; color: black; border: none; padding: 10px 25px; 
    border-radius: 4px; font-size: 1.1rem; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: background 0.2s;
}
.btn-play-modal:hover { background: rgba(255,255,255,0.75); }

/* Botoncitos redondos (+ y Like) */
.btn-circle {
    background: rgba(42,42,42,0.6); border: 2px solid rgba(255,255,255,0.5);
    color: white; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer; display: flex;
    justify-content: center; align-items: center; transition: all 0.2s;
}
.btn-circle:hover { border-color: white; background: rgba(42,42,42,0.9); }

/* --- Contenedor de Textos (2 columnas) --- */
.modal-info-container {
    display: grid; grid-template-columns: 2fr 1fr; /* 66% y 33% */
    gap: 30px; padding: 0 40px 40px 40px;
}

/* Columna Izquierda */
.meta-data { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 1rem; }
.match-score { color: #46d369; font-weight: bold;}
#modal-year, #modal-duration { color: #bcbcbc; }
.badge-hd { border: 1px solid #bcbcbc; color: #bcbcbc; padding: 0 4px; font-size: 0.7rem; border-radius: 3px; font-weight: bold;}

.maturity-row { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.age-rating { border: 1px solid white; padding: 2px 6px; font-size: 0.85rem; font-weight: bold; }
.maturity-tags { color: #fff; font-size: 0.95rem; }

.modal-desc-text { line-height: 1.5; font-size: 1rem; color: #fff; margin: 0; }

/* Columna Derecha */
.modal-info-right p { font-size: 0.9rem; line-height: 1.4; margin: 0 0 10px 0; color: #fff; }
.info-label { color: #777; }

/* Adaptación para Celular */
@media (max-width: 768px) {
    .modal-info-container { grid-template-columns: 1fr; gap: 20px;}
    #modal-title-overlay { font-size: 2.2rem; }
    .modal-hero-img { height: 320px; }
    .modal-overlay-content { left: 20px; }
    .modal-info-container { padding: 0 20px 20px 20px; }
}

/* AJUSTES PARA CELULAR */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem; /* Título más pequeño en celular */
    }
    .hero-desc {
        font-size: 1rem;
    }
    .profile-list {
        gap: 20px;
    }
    .profile-item .avatar-box {
        width: 60px; height: 60px;
    }
    .profile-item.active .avatar-box {
        width: 80px; height: 80px;
    }
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    .modal-hero-img {
        height: 250px; /* Imagen del modal más baja en celular */
    }
    .net-nav {
        flex-direction: column; /* Menú apilado en celular */
        gap: 10px;
    }
}

/* =========================================
   AJUSTES RESPONSIVOS (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 900px) {
    /* Hacemos los botones un poco más pequeños */
    .hero-buttons button {
        padding: 10px 20px;
        font-size: 1.1rem;
    }
    .hero-title-img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    /* Ajustes para Celular */
    .net-hero {
        min-height: 500px;
        height: 70vh;
    }
    
    .hero-content {
        max-width: 90%; /* Toma casi todo el ancho disponible */
        margin-top: 20%; 
    }

    .hero-title-img {
        max-width: 250px;
    }

    .hero-desc {
        font-size: 1rem; /* Texto más pequeño */
        margin-bottom: 20px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons button {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .hero-buttons button i {
        font-size: 1.2rem;
    }

    /* Ocultamos el recuadro de edad (16+) en celulares para que no rompa la pantalla */
    .hero-maturity {
        display: none;
    }
}