@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
:root {
    /* === Backgrounds === */
    --bg-primary:    #f5f1d8;
    --bg-secondary:  #e5e0c5;
    --bg-tertiary:   #dbd6b8;
    --bg-quaternary: #d2cca9;
    --bg-accent:     #c2bb9a;

    /* === Text === */
    --text-primary:   #000000;
    --text-secondary: #473a29;
    --text-muted:     #776d57;
    --text-disabled:  #a39a86;

    /* === Accent === */
    --accent-primary:   #9c990e;
    --accent-secondary: #74a309;
    --accent-gradient:  linear-gradient(135deg, #9c990e, #8b5cf6);

    /* === Borders === */
    --border-primary:   #d2cca9;
    --border-secondary: #c2bb9a;
    --border-focus:     #9c990e;

    /* === Shadows === */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

    /* === Legacy aliases (used via var(--color-*) throughout file) === */
    --color-base-dark:    #f5f1d8;
    --color-gray-texture: #e5e0c5;
    --color-gold:         #9c990e;
    --color-brown-dark:   #74a309;
    --color-brown-light:  #776d57;
    --color-gray-neutral: #473a29;
    --color-text-light:   #000000;
    --color-blue:         #9c990e;
}

/*
Theme Name: DVDRLatino
Theme URI: https://dvdrlatino.com
Description: Tema personalizado para DVDRLatino con diseño oscuro y grilla de películas
Version: 1.0
Author: DVDRLatino
Text Domain: dvdrlatino
*/

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: linear-gradient(to bottom, #f5f1d8, #060818);
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll horizontal en el body */
}

/* Header */
.site-header {
    background: #f5f1d8;
    border-bottom: 1px solid #e5e0c5;
    box-shadow: 0 1px 0 0 rgba(99, 102, 241, 0.4),
                0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    font-size: 32px;
    font-weight: bold;
    color: #9c990e;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-logo span {
    color: #000000;
}

/* Navegación */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: #9c990e;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9c990e;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Búsqueda */
.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    background: #e5e0c5;
    border: 1px solid #cccccc;
    color: #000000;
    padding: 8px 15px;
    border-radius: 5px;
    min-width: 200px;
}

.search-submit {
    background: #9c990e;
    color: #000000;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #74a309;
}

/* ============================================
   MENÚ HAMBURGUESA Y DISEÑO RESPONSIVO
   ============================================ */

/* Contenedor de controles (hamburguesa + buscador) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón hamburguesa - oculto por defecto en desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #9c990e;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación del botón hamburguesa cuando está activo */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE
   ============================================ */

/* Tablets y móviles grandes (hasta 1024px) */
@media (max-width: 1024px) {
    .header-container {
        gap: 15px;
    }

    
    .main-nav ul {
        gap: 15px;
    }

    
    .search-input {
        min-width: 150px;
        font-size: 13px;
    }

}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }

    
    .header-container {
        flex-direction: column;
        padding: 0 15px;
        gap: 10px;
        align-items: center;
    }

    
    /* Logo centrado arriba en móvil */
    .site-logo {
        order: 1;
        font-size: 24px;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    
    /* Menú se oculta y se convierte en sidebar */
    .main-nav {
        order: 3;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #f5f1d8;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        border-right: 3px solid #9c990e;
    }

    
    .main-nav.active {
        left: 0;
    }

    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    
    .main-nav li {
        border-bottom: 1px solid #e5e0c5;
    }

    
    .main-nav a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
    }

    
    .main-nav a::after {
        display: none;
    }

    
    /* Controles (hamburguesa + buscador) en la segunda línea en móvil */
    .header-controls {
        order: 2;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    
    /* Mostrar botón hamburguesa en móvil */
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    
    /* Buscador ocupa el resto del espacio en móvil */
    .search-form {
        flex: 1;
        display: flex;
        gap: 8px;
    }

    
    .search-input {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 8px 12px;
    }

    
    .search-submit {
        padding: 8px 15px;
        font-size: 16px;
        flex-shrink: 0;
    }

    
    /* Overlay para cerrar el menú */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
    }

    
    .menu-overlay.active {
        display: block;
    }

}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .site-logo {
        font-size: 20px;
    }

    
    .search-input {
        font-size: 12px;
        padding: 6px 10px;
    }

    
    .search-submit {
        padding: 6px 12px;
        font-size: 14px;
    }

    
    .main-nav {
        width: 250px;
    }

}

/* ============================================
   SECCIÓN DE ESTRENOS - CARRUSEL INFINITO
   ============================================ */

/* Contenedor principal - SIN SCROLL */
.featured-section {
    width: 100%;
    max-width: 100vw;
    margin: 20px auto 0;
    padding: 0;
    overflow: hidden; /* CRÍTICO: previene scroll horizontal */
}

/* Contenedor interno - SIN SCROLL */
.featured-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden; /* CRÍTICO: previene scroll horizontal */
}

/* Título de la sección ESTRENOS */
.section-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    margin: 0 auto 12px auto;
    padding: 6px 32px;
    color: #473a29;
    text-transform: uppercase;
    background: transparent;
    border: none;
    border-bottom: 2px solid #d2cca9;
    display: block;
    max-width: 100%;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #9c990e;
}

/* Botones de navegación del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(10, 14, 39, 0.75);
    border: 1px solid #d2cca9;
    color: #473a29;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0;
}

.carousel-btn:hover {
    background: rgba(99, 102, 241, 0.85);
    border-color: #9c990e;
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn--prev {
    left: 10px;
}

.carousel-btn--next {
    right: 10px;
}

.featured-movies-wrapper:hover .carousel-btn {
    opacity: 1;
}

/* Wrapper del carrusel - ESTE OCULTA EL OVERFLOW */
.featured-movies-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* CRÍTICO: oculta las películas que salen del viewport */
    padding: 20px 0; /* Espaciado vertical */
}

/* Vignette: fade lateral para que el carrusel "se pierda" en los bordes */
.featured-movies-wrapper::before,
.featured-movies-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.featured-movies-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f5f1d8, transparent);
}

.featured-movies-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f5f1d8, transparent);
}

/* Contenedor de películas que se mueve - SIN SCROLL, SIN PADDING */
.featured-movies {
    display: flex;
    gap: 15px;
    will-change: transform;
    transition: none; /* El JS maneja la animación */
    /* IMPORTANTE: NO tiene overflow, NO tiene padding lateral, NO tiene scrollbar */
}

/* Tarjetas de películas */
.featured-movies .movie-card {
    flex: 0 0 150px;
    width: 150px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #e5e0c5;
    border: 1px solid #d2cca9;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-movies .movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    border-color: #9c990e;
}

.featured-movies .movie-poster {
    width: 150px;
    height: 225px;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* ============================================
   FIN SECCIÓN CARRUSEL
   ============================================ */

/* Contenedor principal */
.main-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #e5e0c5;
    border-radius: 8px;
    border-left: 3px solid #9c990e;
}

.section-header h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000000;
}

.view-more {
    color: #9c990e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #000000;
}

/* Grilla de películas */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    background: #e5e0c5;
    border: 1px solid #d2cca9;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    border-color: #9c990e;
}

.movie-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 8px;
}

.movie-info {
    padding: 12px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    position: absolute;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-info {
    opacity: 1;
}

.movie-title {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow:
        0 0 4px rgba(0,0,0,1),
        0 0 8px rgba(0,0,0,1),
        0 1px 3px rgba(0,0,0,1),
        0 2px 12px rgba(0,0,0,0.9);
}

.movie-quality {
    display: inline-block;
    background: #9c990e;
    color: #000000;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
    font-weight: bold;
}

/* Colores específicos por calidad */
.movie-quality.dvd5 {
    background: #ff000094;
    color: #000000;
}

.movie-quality.dvd9 {
    background: #0a0e27b3;
    border: 1px solid #9c990e;
    color: #000000;
}

.movie-quality.custom {
    background: #7c88a9ab;
    color: #000000;
}

.movie-quality.bd25 {
    background: #4e9bffc7;
    color: #000000;
}

.movie-quality.bdremux {
    background: #b48a2ba3;
    color: #000000;
}

.movie-quality.p1080 {
    background: #ff4cff;
    color: #000000;
}

.movie-series-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #9c990e;
    color: #000000;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background: #f5f1d8;
    border-top: 3px solid #9c990e;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content p {
    color: #473a29;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: #9c990e;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #000000;
}

/* Single Post */
.single-movie {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.movie-header {
    text-align: center;
    margin-bottom: 30px;
}

.movie-header h1 {
    font-size: 36px;
    color: #9c990e;
    margin-bottom: 20px;
}

.movie-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.movie-date {
    color: #473a29;
    font-size: 14px;
}

.movie-content {
    background: #e5e0c5;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #9c990e;
}

.movie-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.movie-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #9c990e;
}

.movie-navigation a {
    color: #9c990e;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.movie-navigation a:hover {
    color: #000000;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #e5e0c5;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #cccccc;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: #9c990e;
    border-color: #9c990e;
}

/* ============================================
   RESPONSIVE - CARRUSEL
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 12px;
        letter-spacing: 4px;
        padding: 6px 16px;
    }

    
    .featured-movies .movie-card {
        flex: 0 0 120px;
        width: 120px;
    }

    
    .featured-movies .movie-poster {
        width: 120px;
        height: 180px;
    }

}

@media (max-width: 480px) {
    .section-title {
        font-size: 11px;
        letter-spacing: 3px;
        padding: 5px 12px;
    }

    
    .featured-movies .movie-card {
        flex: 0 0 100px;
        width: 100px;
    }

    
    .featured-movies .movie-poster {
        width: 100px;
        height: 150px;
    }

}

/* ============================================
   RESPONSIVE - GENERAL
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    
    .search-form {
        width: 100%;
    }

    
    .search-input {
        width: 100%;
    }

    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    
}


/* Estilos para el buscador AJAX */

.search-form {
    position: relative;
}

.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e5e0c5;
    border: 1px solid #cccccc;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 600px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
}

.search-loading,
.search-error,
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #000000;
}

.search-loading {
    color: #1af6eb;
}

.search-error {
    color: #949400;
}

.search-results {
    padding: 10px;
}

.search-results-header {
    padding: 15px;
    background: #d5d5d5;
    color: #1af6eb;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #1af6eb;
    border-radius: 8px 8px 0 0;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    border-bottom: 1px solid #cccccc;
    transition: background 0.3s ease;
}

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

.search-result-item:hover {
    background: #d5d5d5;
}

.search-result-link {
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease;
}

.search-result-link:hover {
    transform: translateX(5px);
}

.search-result-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    background: #cccccc;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.search-result-meta {
    font-size: 12px;
    color: #9c990e;
    font-weight: 500;
}

.search-result-imdb {
    font-size: 12px;
    color: #1af6eb;
    font-weight: 500;
}

.search-result-genres,
.search-result-categories {
    font-size: 11px;
    color: #9c990e;
    text-transform: uppercase;
    font-weight: 500;
}

.search-result-director {
    font-size: 11px;
    color: #64a649;
    font-style: italic;
}

.search-result-excerpt {
    font-size: 13px;
    color: #333333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar personalizado */
.search-results-container::-webkit-scrollbar {
    width: 8px;
}

.search-results-container::-webkit-scrollbar-track {
    background: #e5e0c5;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: #1af6eb;
    border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb:hover {
    background: #4df8ef;
}

/* Responsive */
@media (max-width: 768px) {
    .search-results-container {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 100px);
    }

    
    .search-result-thumbnail {
        width: 60px;
        height: 90px;
    }

    
    .search-result-title {
        font-size: 14px;
    }

    
    .search-result-excerpt {
        font-size: 12px;
    }

}

/* ================================
   IMPROVED GOLD THEME ENHANCEMENTS
   ================================ */

/* Body refined gradient */
body {
    background: linear-gradient(to bottom, #f5f1d8, #060818);
    color: var(--color-text-light);
}

/* Header refinement */
.site-header {
    background: #f5f1d8;
    border-bottom: 3px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.site-logo {
    color: var(--color-gold);
}

.site-logo span {
    color: var(--color-text-light);
}

/* Custom logo image */
.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    width: 229px !important;
    height: 52px !important;
    max-width: 229px !important;
    object-fit: contain;
    display: block;
}

/* Navigation hover effect refined */
.main-nav a {
    color: var(--color-text-light);
}

.main-nav a:hover {
    color: var(--color-gold);
}

.main-nav a::after {
    background: var(--color-gold);
}

/* Search input refined */
.search-input {
    background: #dbd6b8;
    border: 1px solid var(--color-brown-dark);
}

.search-submit {
    background: var(--color-gold);
    color: #f5f1d8;
}

.search-submit:hover {
    background: var(--color-brown-dark);
    color: var(--color-text-light);
}

/* Section titles refined */
.section-title {
    color: #473a29;
    border: none;
    border-bottom: 2px solid #d2cca9;
    background: transparent;
}

/* Cards refined */
.movie-card, .featured-movies .movie-card {
    background: #e5e0c5;
    border: 1px solid #d2cca9;
    box-shadow: none;
}

.movie-card:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    border-color: #9c990e;
}

/* Poster border refined */
.movie-poster {
    border: none;
}

/* Quality label refinement */
.movie-quality {
    background: var(--color-gold);
    color: #f5f1d8;
}

/* Footer refinement */
.site-footer {
    background: #f5f1d8;
    border-top: 3px solid var(--color-gold);
}

.footer-links a {
    color: var(--color-gold);
}

.footer-links a:hover {
    color: var(--color-text-light);
}

/* Single post content */
.movie-content {
    background: #f5f1d8;
    border: 2px solid var(--color-brown-dark);
    box-shadow: 0 0 20px rgba(99, 102, 241,0.3);
}


/* ============================================================
   🎬 PREMIUM GOLD PRO — ENCABEZADO DE RESULTADOS DE BÚSQUEDA
   ============================================================ */

/* --- Fix: Estilo dorado para el título de resultados --- */
.search-results-header {
    color: var(--color-gold) !important;
    background: rgba(99, 102, 241, 0.10) !important;
    border: 2px solid var(--color-brown-dark) !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 16px !important;
}


.search-loading {
    color: var(--color-gold) !important;
    background: linear-gradient(
        to right,
        rgba(99, 102, 241,0.10),
        rgba(139, 92, 246,0.20)
    ) !important;
    border: 2px solid var(--color-gold) !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    text-align: center;

    box-shadow:
        0 0 10px rgba(99, 102, 241,0.45),
        inset 0 0 8px rgba(99, 102, 241,0.25);
}

/* Estilos para los títulos de sección con flechita */
.section-header h2 {
    margin: 0;
    padding: 0;
}

.section-title-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    transition: color 0.2s ease;
}

.section-title-link:hover {
    color: #9c990e;
    transform: none;
}

/* Eliminar línea extra debajo del h2 */
.section-header h2::after {
    content: '';
    display: none;
    width: 100%;
    height: 0;
    background: transparent;
    margin-top: 10px;
}

/* Estilos para títulos de páginas de archivo */
.archive-title {
    color: #9c990e;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9c990e;
}

/* Estilos para paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #e5e0c5;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #9c990e;
    transform: translateY(-2px);
}

.pagination .current {
    background: #9c990e;
    font-weight: bold;
}

.pagination .prev,
.pagination .next {
    background: #dbd6b8;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #74a309;
}

/* Mensaje cuando no hay posts */
.no-posts {
    text-align: center;
    font-size: 18px;
    color: #776d57;
    padding: 40px 20px;
    background: #e5e0c5;
    border-radius: 10px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title-link {
        font-size: 20px;
    }

    
    .archive-title {
        font-size: 24px;
    }

    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .section-title-link {
        font-size: 18px;
    }

    
    .archive-title {
        font-size: 20px;
    }

    
    .pagination {
        gap: 5px;
    }

    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }

}

/* ============================================
   🎬 BADGES DE CALIDAD APILADOS
   Agregar este código AL FINAL de tu style.css
   ============================================ */

/* Contenedor de badges apilados */
.quality-badges-stack {
    position: absolute;
    top: 6px;                  /* Reducido de 8px */
    left: 6px;                 /* Reducido de 8px */
    display: flex;
    flex-direction: column;
    gap: 3px;                  /* Reducido de 4px */
    z-index: 10;
    pointer-events: none; /* Los badges no bloquean el clic */
}

/* Badge individual */
.quality-badge-stacked {
    display: inline-block;
    padding: 2px 6px;          /* Reducido de 4px 10px */
    font-size: 9px;            /* Reducido de 11px */
    font-weight: bold;
    border-radius: 3px;        /* Reducido de 4px */
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    min-width: 42px;           /* Reducido de 55px */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

/* Colores específicos por calidad (manteniendo tus colores originales) */
.quality-badge-stacked.dvd5 {
    background: #ff000094;
}

.quality-badge-stacked.dvd9 {
    background: #0a0e27b3;
    border: 1px solid #9c990e;
}

.quality-badge-stacked.custom {
    background: #7c88a9ab;
}

.quality-badge-stacked.bd25 {
    background: #4e9bffc7;
}

.quality-badge-stacked.bdremux {
    background: #b48a2ba3;
}

.quality-badge-stacked.p1080 {
    background: #ff4cff;
}

.quality-badge-stacked.p720 {
    background: #74a309;
}

.quality-badge-stacked.p4k {
    background: #74ff00;
}

/* Animación sutil al hover del card */
.movie-card:hover .quality-badge-stacked {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

/* ============================================
   RESPONSIVE - BADGES APILADOS
   ============================================ */

@media (max-width: 768px) {
    .quality-badges-stack {
        top: 5px;
        left: 5px;
        gap: 2px;              /* Reducido de 3px */
    }

    
    .quality-badge-stacked {
        padding: 2px 5px;      /* Reducido de 3px 8px */
        font-size: 8px;        /* Reducido de 10px */
        min-width: 38px;       /* Reducido de 50px */
    }

}

@media (max-width: 480px) {
    .quality-badges-stack {
        top: 4px;
        left: 4px;
        gap: 2px;
    }

    
    .quality-badge-stacked {
        padding: 1px 4px;      /* Reducido de 2px 6px */
        font-size: 7px;        /* Reducido de 9px */
        min-width: 35px;       /* Reducido de 45px */
    }

}

/* FIN DE BADGES APILADOS */




/* ============================================
   PÁGINA DE CALIDADES DE PELÍCULA
   Agregar este código AL FINAL de style.css
   (después del código de badges apilados)
   ============================================ */

.movie-qualities-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header con información de la película */
.movie-qualities-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: #f5f1d8;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #9c990e;
}

.movie-qualities-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #9c990e;
}

.movie-qualities-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movie-qualities-title {
    font-size: 36px;
    color: #9c990e;
    margin: 0;
    line-height: 1.2;
}

.movie-year {
    color: #473a29;
    font-size: 28px;
    font-weight: normal;
}

.movie-overview {
    color: #000000;
    line-height: 1.6;
}

.movie-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.movie-meta p {
    margin: 0;
    color: #000000;
    font-size: 14px;
}

.movie-meta strong {
    color: #9c990e;
}

.movie-meta a {
    color: #9c990e;
    text-decoration: none;
    transition: color 0.3s;
}

.movie-meta a:hover {
    color: #9c990e;
}

/* Título de la sección de calidades */
.qualities-title {
    text-align: center;
    font-size: 28px;
    color: #9c990e;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid de calidades */
.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Item individual de calidad */
.quality-item {
    background: #e5e0c5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    border-color: #9c990e;
}

.quality-link {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

/* Badge grande de calidad */
.quality-badge-large {
    padding: 15px 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 6px;
    color: #000000;
    text-transform: uppercase;
}

/* Colores específicos por calidad (iguales a los badges apilados) */
.quality-badge-large.dvd5 {
    background: #ff000094;
}

.quality-badge-large.dvd9 {
    background: #0a0e27b3;
    border: 2px solid #9c990e;
}

.quality-badge-large.custom {
    background: #7c88a9ab;
}

.quality-badge-large.bd25 {
    background: #4e9bffc7;
}

.quality-badge-large.bdremux {
    background: #b48a2ba3;
}

.quality-badge-large.p1080 {
    background: #ff4cff;
}

.quality-badge-large.p720 {
    background: #74a309;
}

.quality-badge-large.p4k {
    background: #74ff00;
}

/* Detalles de la calidad */
.quality-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quality-post-title {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.quality-date {
    color: #473a29;
    font-size: 13px;
}

/* Flecha */
.quality-arrow {
    font-size: 24px;
    color: #9c990e;
    font-weight: bold;
}

/* Botón para volver */
.movie-qualities-back {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-block;
    padding: 15px 40px;
    background: #9c990e;
    color: #f5f1d8;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-back:hover {
    background: #74a309;
    color: #000000;
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE - PÁGINA DE CALIDADES
   ============================================ */

@media (max-width: 968px) {
    .movie-qualities-header {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    
    .qualities-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
    .movie-qualities-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    
    .movie-qualities-poster {
        max-width: 300px;
        margin: 0 auto;
    }

    
    .movie-qualities-title {
        font-size: 28px;
    }

    
    .qualities-grid {
        grid-template-columns: 1fr;
    }

    
    .quality-link {
        grid-template-columns: 100px 1fr 30px;
        gap: 10px;
        padding: 15px;
    }

    
    .quality-badge-large {
        font-size: 16px;
        padding: 12px 8px;
    }

    
    .quality-post-title {
        font-size: 14px;
    }

}

@media (max-width: 480px) {
    .movie-qualities-container {
        padding: 0 10px;
    }

    
    .movie-qualities-header {
        padding: 20px;
    }

    
    .movie-qualities-title {
        font-size: 24px;
    }

    
    .movie-year {
        font-size: 20px;
    }

    
    .quality-link {
        grid-template-columns: 80px 1fr 25px;
        padding: 12px;
    }

    
    .quality-badge-large {
        font-size: 14px;
        padding: 10px 5px;
    }

    
    .quality-post-title {
        font-size: 13px;
    }

    
    .quality-date {
        font-size: 11px;
    }

    
    .btn-back {
        padding: 12px 30px;
        font-size: 14px;
    }

}

/* FIN DE ESTILOS DE PÁGINA DE CALIDADES */


/* Estilos para el botón ESTRENOS destacado */

.estreno-button {
    color: #baff00 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 0 4px rgba(255, 69, 0, 0.6);
}

.estreno-button:hover {
    color: #9cb800 !important;
    text-shadow: 0 0 6px rgba(255, 69, 0, 0.9);
}

.estreno-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 4px rgba(255, 69, 0, 0.6));
}

.estreno-button:hover .estreno-icon {
    filter: drop-shadow(0 0 6px rgba(255, 69, 0, 0.9));
    transform: scale(1.1);
}

/* Estilos para el botón VIP destacado */

.vip-button {
    color: #2b50c8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.vip-button:hover {
    color: #28ff00 !important;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.9);
}

.vip-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.vip-button:hover .vip-icon {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
    transform: scale(1.1);
}


/* Estilos para badges de calidad visibles sobre el poster */
.quality-badges-visible {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}

.quality-badges-visible .movie-quality {
    display: inline-block;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Asegurar que .movie-card tenga position relative para el posicionamiento absoluto */
.movie-card {
    position: relative;
}

.movie-card a {
    position: relative;
    display: block;
}


/* Estilos para el scrollbar en navegadores WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px; /* Ancho del scrollbar vertical */
    height: 12px; /* Alto del scrollbar horizontal */
}

::-webkit-scrollbar-track {
    background: #f5f1d8; /* Color de fondo del track - oscuro */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9c990e 0%, #74a309 100%); /* Degradado naranja */
    border-radius: 10px;
    border: 2px solid #f5f1d8; /* Borde que hace juego con el track */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #74a309 0%, #5a4b03 100%); /* Más claro al hover */
}

/* Estilos para Firefox */
* {
    scrollbar-width: thin; /* "auto" o "thin" */
    scrollbar-color: #9c990e #f5f1d8; /* color del thumb y del track */
}

/* ── Language badge en portadas ───────────────────────────── */
.language-badge-poster {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.5);
    line-height: 0;
    border: 1px solid rgba(180,180,180,.35);
    transition: transform .2s ease;
}

.language-badge-poster img {
    width: 26px;
    height: 16px;
    display: block;
    object-fit: cover;
}

.movie-card:hover .language-badge-poster {
    transform: scale(1.08);
}
