            /* Estilos generales (asumidos de style.css) */
            :root {
                --color-principal: #1a1a1a; /* Fondo oscuro */
                --color-secundario: #2c2c2c; /* Fondo de contenedores */
                --color-acento-amarillo: #f5c518; /* Amarillo IMDB/Acento */
                --color-acento-celeste: #00bcd4; /* Azul/Celeste USC */
                --color-acento-verde: #4caf50; /* Verde Telegram */
                --color-acento-rojo: #f44336; /* Rojo Descarga */
                --color-texto-claro: white;
            }
            body {
                background-color: var(--color-principal);
                color: var(--color-texto-claro);
                font-family: Arial, sans-serif;
                margin: 0;
                padding: 0;
            }
    
            /* --- ESTILOS DE HEADER, BOTONES Y METADATA (Sin cambios) --- */
            header { padding: 10px 40px; background-color: #1e1e1e; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
            .logo-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }
            .logo { display: flex; align-items: center; }
            .logo h1 { margin-left: 15px; font-size: 1.8em; color: white; }
            .detalle-container { padding: 40px; max-width: 1200px; margin: auto; }
            .detalle-header { display: flex; gap: 40px; margin-bottom: 30px; align-items: flex-start; }
            .detalle-poster { flex-shrink: 0; width: 300px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); border-radius: 8px; }
            .detalle-info { flex-grow: 1; }
            .detalle-info h2 { font-family: 'Montserrat', sans-serif; color: var(--color-acento-amarillo); font-size: 2.5em; margin-top: 0; margin-bottom: 10px; line-height: 1.2; }
            .score-large { display: inline-block; background-color: var(--color-principal); color: var(--color-acento-amarillo); padding: 5px 10px; border-radius: 4px; font-weight: bold; margin-right: 15px; font-size: 1.1em; }
            .star-rating { display: inline-block; margin-bottom: 10px; }
            .star-rating .fa-star { color: var(--color-acento-amarillo); }
            .detalle-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
            .btn-usc, .btn-primary, .btn-secondary, .btn-imdb, .btn-download-yellow {
                display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s; border: none; cursor: pointer; font-size: 0.9em; white-space: nowrap;
            }
            .btn-usc[href$="usc_url"] { display: none !important; }
            .btn-usc { background-color: var(--color-acento-celeste); color: var(--color-principal); }
            .btn-primary { background-color: var(--color-acento-verde); color: var(--color-principal); }
            .btn-secondary { background-color: var(--color-acento-rojo); color: white; }
            .btn-imdb { background-color: #f5c518; color: #000000; }
            /* Botón de Descarga Amarillo */
            .btn-download-yellow { background-color: #f5c518; color: #000000; }
            .btn-download-yellow:hover { background-color: #ffd84d; }
            .btn-download-yellow i { margin-right: 8px; color: #000000; }
            .btn-usc i, .btn-primary i, .btn-secondary i, .btn-imdb i { margin-right: 8px; }
            .synopsis { margin-top: 20px; line-height: 1.6; color: #ccc; }
            .metadata { margin-top: 40px; padding: 20px; background-color: var(--color-secundario); border-radius: 8px; }
            .metadata h3 { border-bottom: 2px solid var(--color-acento-celeste); padding-bottom: 5px; margin-bottom: 15px; }
            .metadata p { margin: 5px 0; color: #ccc; }
            .metadata strong { color: white; }
            /* Estilos del Reproductor */
            .trailer-container-wrapper { max-width: 800px; margin: 0 auto; }
            .trailer-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
            .trailer-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 8px; }
            .video-player-section { margin-top: 40px; }
            .episode-buttons-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; max-height: 200px; overflow-y: auto; padding-right: 10px; }
            .episode-btn { background-color: var(--color-secundario); color: white; border: 1px solid #444; padding: 8px 15px; border-radius: 4px; cursor: pointer; transition: all 0.2s; font-size: 0.9em; white-space: nowrap; }
            .episode-btn.active { background-color: var(--color-acento-celeste); border-color: var(--color-acento-celeste); color: var(--color-principal); font-weight: bold; }
            .video-player-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; margin-top: 20px; }
            .video-player-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 8px; }
    
            @media (max-width: 800px) {
                .detalle-header { flex-direction: column; gap: 20px; }
                .detalle-poster { width: 100%; max-width: 300px; margin: 0 auto; }
                .detalle-container { padding: 20px; }
                .detalle-info h2 { font-size: 2em; }
            }


:root {
    --color-fondo: #121212;
    --color-acento-amarillo: #FFC300;
    --color-acento-celeste: #33AFFF;
    --color-texto-claro: #F0F0F0;
}

/* Tipografía */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

body {
    background-color: var(--color-fondo);
    color: var(--color-texto-claro);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #000;
    padding: 10px 40px;
    border-bottom: 2px solid var(--color-acento-celeste);
}
.logo {
    display: flex;
    align-items: center;
}
.logo h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-acento-amarillo);
    margin-left: 15px;
    font-size: 2em;
}

/* BARRA DE FILTROS */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1e1e1e;
    flex-wrap: wrap;
    gap: 15px;
}

/* Estilo de Botones de Filtro */
.filter-btn {
    background-color: #333;
    color: var(--color-texto-claro);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s;
}
.filter-btn:hover {
    background-color: var(--color-acento-celeste);
}

/* Estilo de Búsqueda y Puntaje */
#search-input, #score-min {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #2e2e2e;
    color: var(--color-texto-claro);
}

/* GRILLA DE CONTENIDO */
#content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
}
.card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(51, 175, 255, 0.5); /* Sombra celeste al pasar el ratón */
}

.card-image {
    width: 100%;
    height: 300px; /* Altura fija para uniformidad */
    object-fit: cover;
    display: block;
}
.card-info {
    padding: 10px;
}
.card-info h3 {
    font-size: 1.1em;
    height: 3.3em; /* Limita a 2 o 3 líneas */
    overflow: hidden;
    margin: 5px 0 10px 0;
}

/* PUNTUACIÓN EN LA TARJETA */
.score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-acento-amarillo);
    color: var(--color-fondo);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2em;
    z-index: 10;
}
.score-stars {
    color: var(--color-acento-amarillo);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Estilo para los botones de paginación en el footer */
#pagination-controls 
.filter-btn {
    margin: 0 5px;
}

/* ? NUEVO ESTILO PARA EL BOTÓN DE PÁGINA ACTUAL ? */
#pagination-controls 
.filter-btn.active {
    background-color: var(--color-acento-celeste); /* Usamos el color de acento celeste */
    color: var(--color-texto-claro);
    pointer-events: none; /* Opcional: Deshabilita el click en el botón activo */
}
/* FIN NUEVO ESTILO */

