/*
Theme Name: Cine Hybrid (Dooplay + ToroNites)
Theme URI: https://tuweb.com
Author: Ricky19
Description: Tema híbrido personalizado de películas con reproductor externo dinámico y optimización de velocidad.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cine-hybrid
*/

/* ==========================================================================
   ESTILOS GENERALES (Estilo Cine Oscuro)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #080a0d; /* Fondo ultra oscuro */
    color: #e2e8f0; /* Letras claras */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

a {
    color: #5a67d8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #667eea;
}

/* ==========================================================================
   CABECERA (HEADER)
   ========================================================================== */
.site-header {
    background-color: #0f1217;
    border-bottom: 1px solid #1a202c;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.logo-highlight {
    color: #5a67d8; /* Púrpura brillante estilo ToroPlay */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #a0aec0;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #fff;
}

/* ==========================================================================
   ESTRUCTURA DEL CONTENEDOR DE PELÍCULAS
   ========================================================================== */
.cine-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* REPRODUCTOR */
.player-section {
    background-color: #0f1217;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 40px;
    border: 1px solid #1d2430;
}

.ratio-16-9 {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    background: #000;
}

.ratio-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CONTROLES DE SERVIDORES */
.player-controls {
    padding: 20px;
    background-color: #12161f;
    border-top: 1px solid #1d2430;
}

.controls-title {
    display: block;
    color: #718096;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.servers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* BOTONES DE SERVIDOR */
.server-tab-btn {
    background-color: #1a202c;
    border: 1px solid #2d3748;
    color: #cbd5e0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.server-tab-btn:hover {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #fff;
}

.server-tab-btn.active {
    background-color: #5a67d8;
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 0 15px rgba(90, 103, 216, 0.4);
}

.srv-name {
    font-weight: 700;
    font-size: 14px;
}

.srv-lang {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 2px;
}

/* MENSAJE DE REPRODUCTOR VACÍO */
.player-placeholder {
    background: #12161f;
    padding: 100px 20px;
    text-align: center;
    color: #718096;
}

.player-placeholder p {
    margin-top: 10px;
}

/* DETALLES DE LA PELÍCULA */
.movie-flex {
    display: flex;
    gap: 40px;
}

.movie-poster-col {
    flex: 1;
    max-width: 280px;
}

.movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: block;
}

.placeholder-img {
    background: #1a202c;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #4a5568;
}

.movie-info-col {
    flex: 3;
}

.movie-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* ETIQUETAS DE TAXONOMÍAS */
.movie-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.year-tag {
    background-color: #2d3748;
    color: #e2e8f0;
}

.genre-tag {
    background-color: rgba(90, 103, 216, 0.2);
    color: #a3b1ff;
    border: 1px solid rgba(90, 103, 216, 0.4);
}

.movie-synopsis h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movie-synopsis {
    color: #a0aec0;
    margin-bottom: 30px;
    font-size: 16px;
}

/* BOTÓN DE TRAILER */
.btn-trailer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e53e3e; /* Rojo YouTube */
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-trailer:hover {
    background-color: #fc8181;
    color: #fff;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: #0a0d14;
    border-top: 1px solid #1a202c;
    padding: 30px 20px;
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-top: 60px;
}

.footer-disclaimer {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .movie-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .movie-poster-col {
        max-width: 200px;
    }
    .movie-meta-tags {
        justify-content: center;
    }
    .site-header .header-container {
        flex-direction: column;
        gap: 15px;
    }
}


/* Ficha técnica */
.movie-technical-sheet {
    margin-bottom: 20px;
    background: #12161f;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #1d2430;
}

.movie-technical-sheet p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #a0aec0;
}

.movie-technical-sheet p strong {
    color: #fff;
}

.movie-technical-sheet p span {
    color: #cbd5e0;
}

/* Insignia de Calidad (Amarillo ToroPlay) */
.quality-tag {
    background-color: #ecc94b;
    color: #1a202c;
    font-weight: 800;
}

/* ==========================================================================
   PORTADA: GRILLA DE PELÍCULAS (CINE GRID)
   ========================================================================== */
.section-header {
    margin-bottom: 30px;
    border-left: 4px solid #5a67d8; /* Línea de color estilo ToroPlay */
    padding-left: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.section-subtitle {
    color: #718096;
    font-size: 14px;
    margin-top: 4px;
}

/* Contenedor de la grilla */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Tarjeta de Película */
.movie-card {
    background-color: #0f1217;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #1a202c;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: #5a67d8;
}

.movie-card-link {
    display: block;
    color: inherit;
}

/* Contenedor del póster dentro de la tarjeta */
.movie-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #1a202c;
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: scale 0.3s ease;
}

.movie-card:hover .movie-card-poster img {
    scale: 1.05;
}

/* Insignia de calidad sobre el póster */
.card-quality-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ecc94b; /* Amarillo llamativo ToroPlay */
    color: #0f1217;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Efecto de capa oscura y icono play en hover */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 11, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

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

.play-icon {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #5a67d8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(90, 103, 216, 0.6);
    transform: scale(0.8);
    transition: transform 0.2s ease;
}

.movie-card:hover .play-icon {
    transform: scale(1);
}

/* Información inferior de la tarjeta */
.movie-card-info {
    padding: 12px 10px;
}

.movie-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta textos largos con "..." */
    margin-bottom: 4px;
}

.movie-card-year {
    font-size: 11px;
    color: #718096;
}

/* Paginación estilo botones */
.cine-pagination {
    text-align: center;
    margin-top: 40px;
}

.cine-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #0f1217;
    border: 1px solid #1a202c;
    color: #a0aec0;
    border-radius: 4px;
    font-weight: 600;
}

.cine-pagination .page-numbers.current {
    background-color: #5a67d8;
    color: #fff;
    border-color: #5a67d8;
}

.cine-pagination .page-numbers:hover:not(.current) {
    background-color: #1a202c;
    color: #fff;
}

/* Estado sin películas */
.no-movies-found {
    text-align: center;
    padding: 80px 20px;
    color: #4a5568;
}

.no-movies-found .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.no-movies-found h3 {
    color: #fff;
    margin-bottom: 8px;
}

/* Adaptación móvil extra para portadas */
@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .movie-card-info {
        padding: 8px;
    }
    .movie-card-title {
        font-size: 12px;
    }
}

/* ==========================================================================
   ESTILOS DE LA BARRA DE BÚSQUEDA EN EL HEADER
   ========================================================================== */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    position: relative;
    background-color: #12161f;
    border: 1px solid #1d2430;
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-form:focus-within {
    border-color: #5a67d8; /* Brillo púrpura */
}

.search-field {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    width: 100%;
}

.search-submit {
    background: transparent;
    border: none;
    color: #a0aec0;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    color: #fff;
}

/* Ajustes responsivos para celulares */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .header-search {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* ==========================================================================
   LIVE SEARCH: RESULTADOS FLOTANTES
   ========================================================================== */
.live-search-results-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #0f1217;
    border: 1px solid #1d2430;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow: hidden;
    max-height: 400px;
}

/* Fila de película individual */
.live-search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #1a202c;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background-color: #1a202c;
    color: #fff;
}

/* Miniatura del póster sugerido */
.live-search-img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid #2d3748;
}

.live-search-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-search-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.live-search-year {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

/* Mensaje vacío sugerido */
.live-search-no-results {
    padding: 15px;
    color: #718096;
    font-size: 13px;
    text-align: center;
}

/* ==========================================================================
   MAQUETACIÓN CON BARRA LATERAL (Fila flexible)
   ========================================================================== */
.main-layout-wrapper {
    display: flex;
    gap: 30px;
}

/* El contenido ocupa el 75% del ancho */
.content-area {
    flex: 3;
    min-width: 0; /* Evita desbordamiento en flexbox */
}

/* La Sidebar ocupa el 25% */
.site-sidebar {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Estilo de los Widgets en la Sidebar */
.widget {
    background-color: #0f1217;
    border: 1px solid #1a202c;
    border-radius: 8px;
    padding: 20px;
}

.widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5a67d8; /* Línea púrpura ToroPlay */
    display: inline-block;
}

/* Lista de Géneros por defecto */
.sidebar-genres-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-genres-list li {
    border-bottom: 1px solid #1a202c;
    padding: 8px 0;
}

.sidebar-genres-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-genres-list a {
    color: #cbd5e0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s;
}

.sidebar-genres-list a:hover {
    color: #fff;
}

.genre-count {
    color: #718096;
    font-size: 12px;
}

/* ==========================================================================
   RESPONSIVO PARA PANTALLAS CHICAS (Celulares)
   ========================================================================== */
@media (max-width: 992px) {
    .main-layout-wrapper {
        flex-direction: column; /* La sidebar pasa abajo en tablets y celulares */
    }
    .site-sidebar {
        width: 100%;
    }
}

/* ==========================================================================
   CARRUSEL PRINCIPAL DE DESTACADOS (SLIDER)
   ========================================================================== */
.cine-slider-section {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0c0f13;
}

/* El truco del Scroll Snap para deslizamiento ultra fluido */
.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Ocultar barra en Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Ocultar barra en Chrome/Safari */
}

/* Diapositiva Individual */
.slide-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    aspect-ratio: 21/9; /* Proporción panorámica de cine */
    scroll-snap-align: start;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* Imagen de fondo */
.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Capa degradada para contraste (Estilo Netflix) */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(12, 15, 19, 0.95) 10%, rgba(12, 15, 19, 0.5) 50%, rgba(12, 15, 19, 0.2) 100%);
    display: flex;
    align-items: center;
    padding: 0 6%;
    box-sizing: border-box;
}

/* Bloque de texto */
.slide-content {
    max-width: 45%;
    color: #fff;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.slide-badge-quality {
    background-color: #ecc94b; /* Amarillo ToroPlay */
    color: #0f1217;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.slide-meta-year {
    color: #a0aec0;
    font-size: 13px;
    font-weight: 600;
}

.slide-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-director {
    font-size: 13px;
    color: #cbd5e0;
    margin-bottom: 12px;
}

.slide-excerpt {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.5;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón flotante para incitar al clic */
.slide-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #5a67d8; /* Púrpura */
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(90, 103, 216, 0.4);
    transition: background-color 0.2s, transform 0.2s;
}

.slide-link:hover .slide-btn-play {
    background-color: #4c51bf;
    transform: scale(1.05);
}

.slide-btn-play .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Flechas de Navegación */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(12, 15, 19, 0.7);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 15px 12px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.slider-arrow:hover {
    background-color: #5a67d8;
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

/* ==========================================================================
   ADAPTACIONES RESPONSIVAS (Móviles)
   ========================================================================== */
@media (max-width: 768px) {
    .slide-item {
        aspect-ratio: 16/9; /* Proporción un poco más alta en móviles */
    }
    
    .slide-overlay {
        background: linear-gradient(to top, rgba(12, 15, 19, 0.95) 40%, rgba(12, 15, 19, 0.4) 100%);
        align-items: flex-end;
        padding: 20px;
    }
    
    .slide-content {
        max-width: 100%;
    }
    
    .slide-title {
        font-size: 22px;
    }
    
    .slide-excerpt {
        display: none; /* Escondemos el resumen en celulares para ahorrar espacio */
    }
    
    .slider-arrow {
        display: none; /* En celular el usuario desliza con el dedo de forma nativa */
    }
}

/* ==========================================================================
   NUEVA TARJETA DE VOTACIÓN (1 AL 10) - ULTRA LLAMATIVA
   ========================================================================== */
.movie-rating-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 26, 38, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
    border: 1px solid rgba(90, 103, 216, 0.25); /* Borde sutil púrpura */
    border-radius: 14px;
    padding: 18px 25px;
    margin: 20px 0 25px 0;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    max-width: 520px;
}

/* Círculo Gigante de Puntuación */
.rating-radial-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    background: radial-gradient(circle, #1a202c 40%, #0c0f13 100%);
    border: 3px solid #5a67d8; /* Anillo brillante púrpura */
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(90, 103, 216, 0.5), inset 0 0 10px rgba(90, 103, 216, 0.2);
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rating-big-num {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.15s ease;
}

/* Color cuando se está previsualizando una nota al pasar el mouse */
.rating-big-num.preview-active {
    color: #ecc94b; /* Cambia a amarillo oro */
}

.rating-max {
    font-size: 10px;
    color: #718096;
    font-weight: 700;
    margin-top: 2px;
}

/* Panel derecho */
.rating-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.rating-label-hint {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #718096;
}

/* Contenedor de las 10 estrellas */
.star-rating-10 {
    display: flex;
    flex-direction: row-reverse; /* Permite el hover secuencial */
    font-size: 25px;
    gap: 2px;
}

.star-10 {
    color: #2d3748; /* Gris oscuro para las apagadas */
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease, text-shadow 0.15s ease;
}

.star-10.filled {
    color: #ecc94b; /* Amarillo brillante */
    text-shadow: 0 0 8px rgba(236, 201, 75, 0.4);
}

/* Efecto hover interactivo en secuencia */
.movie-rating-card:not(.voted-disabled) .star-10:hover,
.movie-rating-card:not(.voted-disabled) .star-10:hover ~ .star-10 {
    color: #f6e05e;
    transform: scale(1.2);
    text-shadow: 0 0 12px rgba(246, 224, 94, 0.8);
}

/* Información de votos y estados */
.rating-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.rating-votes-count {
    color: #a0aec0;
    font-weight: 500;
}

.rating-status {
    font-weight: 700;
    font-style: italic;
}

/* Deshabilitar clicks una vez calificado */
.voted-disabled {
    pointer-events: none;
}

.voted-disabled .star-10 {
    cursor: default;
}

.voted-disabled .rating-radial-badge {
    border-color: #48bb78; /* El círculo cambia a color verde éxito */
    box-shadow: 0 0 15px rgba(72, 187, 120, 0.5);
}

/* Adaptación para pantallas de celulares */
@media (max-width: 480px) {
    .movie-rating-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    .star-rating-10 {
        font-size: 20px; /* Reduce un poco las estrellas en móviles para que quepan holgadamente */
        justify-content: center;
    }
    .rating-meta-info {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
}

/* ==========================================================================
   ESTILOS DE RELACIONADAS, REPORTES Y FAVORITOS
   ========================================================================== */

/* 1. Relacionadas */
.related-movies-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #1a202c;
}
.related-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 800;
}
.related-movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.related-poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 6px;
    background: #1a202c;
}
.related-poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-quality-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ecc94b;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
}
.related-movie-title {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e0;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Botón de Reportar y Favoritos */
.report-link-wrapper, .favorite-btn-wrapper {
    margin-top: 15px;
}
.btn-report-link, .btn-favorite {
    background: #1a202c;
    border: 1px solid #2d3748;
    color: #a0aec0;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s;
}
.btn-report-link:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}
.btn-favorite:hover {
    background: #ecc94b;
    color: #000;
    border-color: #ecc94b;
}

/* 3. Modal de Reportes */
.report-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.report-modal-content {
    background: #0f1217;
    border: 1px solid #2d3748;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    color: #fff;
}
.close-modal-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
}
.report-modal-content select, .report-modal-content textarea {
    width: 100%;
    background: #1a202c;
    border: 1px solid #2d3748;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0 20px 0;
}
.btn-submit-report {
    background: #e53e3e;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* 4. Favoritos Sidebar */
.fav-sidebar-item {
    padding: 10px 0;
    border-bottom: 1px solid #1a202c;
}
.fav-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #cbd5e0;
}
.fav-item-poster {
    width: 35px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.fav-item-title {
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .related-movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   ETIQUETAS PREMIUM PARA DETALLES DE PELÍCULA (SINGLE)
   ========================================================================== */
.movie-meta-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Base Común de Etiquetas */
.meta-single-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.meta-single-tag .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
}

/* 1. Estilo Calidad (Amarillo Neon ToroPlay) */
.tag-quality {
    background-color: #ecc94b;
    color: #0f1217;
    box-shadow: 0 4px 10px rgba(236, 201, 75, 0.2);
}
.tag-quality:hover {
    transform: translateY(-2px);
    background-color: #f6e05e;
}

/* 2. Estilo Año (Gris Oscuro con borde sutil) */
.tag-year {
    background-color: #1a202c;
    color: #cbd5e0;
    border-color: #2d3748;
}
.tag-year:hover {
    transform: translateY(-2px);
    background-color: #2d3748;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 3. Estilo Géneros (Púrpura Elegante) */
.tag-genre {
    background-color: rgba(90, 103, 216, 0.15);
    color: #a3b8ff;
    border-color: rgba(90, 103, 216, 0.3);
}
.tag-genre:hover {
    transform: translateY(-2px);
    background-color: #5a67d8;
    color: #fff;
    border-color: #5a67d8;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.4);
}

/* ==========================================================================
   ESTILOS PARA EL IMPORTADOR DINÁMICO DE TMDB (CINE HYBRID)
   ========================================================================== */

/* Contenedor principal de la página de administración */
.wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Grilla de resultados de búsqueda */
#tmdb-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Tarjeta individual de película de TMDb */
.tmdb-movie-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Efecto Hover sobre la tarjeta */
.tmdb-movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: #cbd5e0 !important;
}

/* Imagen de póster de la película */
.tmdb-movie-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid #edf2f7;
    transition: transform 0.5s ease;
}

.tmdb-movie-card:hover img {
    transform: scale(1.03);
}

/* Contenedor de información de la película */
.tmdb-movie-card .movie-info-wrap {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
}

/* Título de la película */
.tmdb-movie-card h4 {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* Evita desajustes de altura en títulos cortos/largos */
}

/* Año de lanzamiento */
.tmdb-movie-card .movie-year {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

/* Botón de Importación dentro de la tarjeta */
.tmdb-movie-card .import-btn {
    width: 100%;
    text-align: center;
    font-weight: 700 !important;
    color: #5a67d8 !important;
    border-color: #5a67d8 !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: auto !important;
    line-height: 1.4 !important;
}

.tmdb-movie-card .import-btn:hover {
    background: #5a67d8 !important;
    color: #ffffff !important;
    border-color: #5a67d8 !important;
}

/* Estado del botón al importar (Carga) */
.tmdb-movie-card .import-btn:disabled {
    background: #edf2f7 !important;
    border-color: #cbd5e0 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
}

/* Mensaje de estado general del Importador (Cargando / Éxito / Error) */
#importer-status-msg {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Estilo para carga */
#importer-status-msg:has(span[style*="color:#d69e2e"]),
#importer-status-msg:has(span[style*="color:#646970"]) {
    background-color: #fefcbf;
    border: 1px solid #faf089;
    color: #b7791f;
}

/* Estilo para éxito */
#importer-status-msg:has(span[style*="color:#48bb78"]) {
    background-color: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

/* Estilo para error */
#importer-status-msg:has(span[style*="color:#f56565"]) {
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    color: #742a2a;
}

#importer-status-msg a {
    color: #2b6cb0;
    text-decoration: underline;
    font-weight: 700;
}

/* Input de búsqueda principal */
#tmdb-search-input {
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#tmdb-search-input:focus {
    border-color: #5a67d8 !important;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.15) !important;
    outline: none;
}
/* ==========================================================================
   ESTILOS DEL ENCABEZADO DEL CATÁLOGO Y FILTROS AJAX (PORTADA)
   ========================================================================== */
.section-header-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a202c; /* Línea divisoria elegante */
}

/* Textos de cabecera */
.section-title-wrapper .section-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
    text-transform: capitalize;
}

.section-title-wrapper .section-subtitle {
    font-size: 14px;
    color: #a0aec0;
    margin: 0;
    font-weight: 500;
}

/* Barra de selectores de filtrado */
.catalog-filters-bar {
    display: flex;
    gap: 12px;
}

/* Estilo para cada uno de los inputs/selectores del filtro */
.filter-select {
    background-color: #101524; /* Fondo oscuro premium */
    border: 1px solid #2d3748;
    color: #cbd5e0;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    -webkit-appearance: none; /* Quitar estilo por defecto del sistema en móviles */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 38px; /* Espacio para que no se pise el texto con la flechita */
}

/* Cambios de estado al pasar el mouse o enfocar */
.filter-select:hover {
    border-color: #5a67d8; /* Borde púrpura brillante */
    color: #ffffff;
    background-color: #151c30;
    transform: translateY(-1px);
}

.filter-select:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.25);
}

/* Envoltorio de transición fluida de las películas */
#ajax-movies-container {
    transition: opacity 0.25s ease;
}

/* Paginación dinámica AJAX */
.cine-pagination.ajax-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    width: 100%;
}

.ajax-pagination .page-numbers {
    background: #101524;
    border: 1px solid #2d3748;
    color: #cbd5e0;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ajax-pagination .page-numbers.current, 
.ajax-pagination .page-numbers:hover {
    background: #5a67d8;
    color: #ffffff;
    border-color: #5a67d8;
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
    transform: translateY(-1px);
}

/* Vista cuando no hay películas */
.no-movies-found {
    text-align: center;
    padding: 60px 20px;
    background: #101524;
    border: 1px dashed #2d3748;
    border-radius: 12px;
    margin: 20px 0;
}

.no-movies-found .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #718096;
    margin-bottom: 15px;
}

.no-movies-found h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

/* ==========================================================================
   DISEÑO DEFINITIVO DEL CARRUSEL (BLINDADO CONTRA CONFLICTOS)
   ========================================================================== */
.ch-slider-section-wrapper {
    position: relative;
    width: 100% !important;
    margin-bottom: 40px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #0c0f13 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

/* Contenedor del scroll horizontal */
.ch-slider-container {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Firefox */
}

.ch-slider-container::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}

/* Estructura de cada diapositiva */
.ch-slide-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    position: relative !important;
    aspect-ratio: 21/9 !important; /* Formato panorámico de cine en PC */
    scroll-snap-align: start !important;
    overflow: hidden !important;
}

.ch-slide-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

/* IMAGEN DE FONDO: Ajuste perfecto garantizado */
.ch-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;        /* Escala la imagen sin deformarla */
    object-position: center 25% !important; /* Enfoca las caras de los actores */
    display: block !important;
}

/* Sombreado de cine para que las letras blancas siempre se lean */
.ch-slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(12, 15, 19, 0.95) 15%, rgba(12, 15, 19, 0.5) 50%, rgba(12, 15, 19, 0.15) 100%) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 8% !important;
    box-sizing: border-box !important;
}

/* Textos e información */
.ch-slide-content {
    max-width: 45% !important;
    color: #ffffff !important;
}

.ch-slide-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

.ch-slide-badge {
    background-color: #ecc94b !important;
    color: #0f1217 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}

.ch-slide-year {
    color: #a0aec0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.ch-slide-title {
    font-size: 38px !important;
    font-weight: 900 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.ch-slide-director {
    font-size: 13px !important;
    color: #cbd5e0 !important;
    margin-bottom: 15px !important;
}

.ch-slide-excerpt {
    font-size: 14px !important;
    color: #a0aec0 !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.ch-slide-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: #5a67d8 !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(90, 103, 216, 0.4) !important;
    transition: background-color 0.2s, transform 0.2s !important;
}

.ch-slide-link:hover .ch-slide-btn {
    background-color: #4c51bf !important;
    transform: scale(1.03) !important;
}

/* Flechas de Navegación */
.ch-slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: rgba(12, 15, 19, 0.75) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 20px !important;
    padding: 16px 14px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s !important;
    border-radius: 6px !important;
}

.ch-slider-arrow:hover {
    background-color: #5a67d8 !important;
}

.ch-prev { left: 15px !important; }
.ch-next { right: 15px !important; }

/* ==========================================================================
   DISEÑO RESPONSIVO MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .ch-slide-item {
        aspect-ratio: 16/9 !important; /* Relación más alta en celulares para que luzca la imagen */
    }
    
    .ch-slide-overlay {
        background: linear-gradient(to top, rgba(12, 15, 19, 0.98) 45%, rgba(12, 15, 19, 0.4) 100%) !important;
        align-items: flex-end !important;
        padding: 20px !important;
    }
    
    .ch-slide-content {
        max-width: 100% !important;
    }
    
    .ch-slide-title {
        font-size: 24px !important;
    }
    
    .ch-slide-excerpt, 
    .ch-slider-arrow, 
    .ch-slide-director {
        display: none !important; /* Ocultamos elementos secundarios para no saturar la pantalla móvil */
    }
}

/* ==========================================================================
   ESTILOS DE RESPALDO PARA PELÍCULAS SIN IMAGEN DE FONDO HORIZONTAL
   ========================================================================== */
.ch-slide-fallback-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #0c0f13;
    overflow: hidden;
}

/* Imagen del póster estirada y ultra desenfocada de fondo */
.ch-slide-fallback-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: blur(25px) brightness(0.3) !important; /* Desfoque de cine */
    transform: scale(1.1);
}

/* Contenedor del póster centrado a la derecha */
.ch-slide-fallback-poster-container {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    height: 80%;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Póster vertical con sombreado flotando en la derecha */
.ch-slide-fallback-poster {
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .ch-slide-fallback-poster-container {
        display: none !important; /* En celulares ocultamos el póster flotante para que no se encima con el texto */
    }
}
