/* ============================================================
   LAYOUT ESTILO YOUTUBE PARA single-peliculas.php
   ============================================================ */

.sp-yt-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ===== REPRODUCTOR A TODO EL ANCHO ===== */
.sp-yt-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.sp-yt-player-wrapper .sp-trailer-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== LAYOUT PRINCIPAL: COLUMNA + SIDEBAR ===== */
.sp-yt-layout {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-top: 24px;
    padding: 0 20px;
}

.sp-yt-main {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 64%;
}

.sp-yt-sidebar {
    flex: 0 0 36%;
    max-width: 36%;
    min-width: 0;
    /* Antes tenía position:sticky -- eso tenía sentido cuando el sidebar
       podía terminar mucho antes que la columna izquierda (con 30 posts
       relacionados a veces sí, a veces no). Ahora que se limita a 10 y
       se estira a la misma altura que la columna izquierda (align-items:
       stretch de arriba), lo que sobra de esos 10 posts simplemente se
       recorta con overflow:hidden -- no hace falta que seewa "sticky". */
    overflow: hidden;
}

.sp-yt-sidebar::-webkit-scrollbar {
    display: none;
}

.sp-yt-sidebar {
    scrollbar-width: none;
}

/* ===== TÍTULO - ESTRUCTURA COMPLETA ===== */
.sp-yt-title {
    font-size: 1.8em;
    color: #e6e6e6;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-weight: 600;
}

/* ===== SUBCABECERA: CARÁTULA CHICA + TÍTULO ORIGINAL + AÑO + ACCIONES ===== */
.sp-yt-movie-subheader {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 14px;
    margin-bottom: 16px;
}

.sp-yt-mini-poster {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.sp-yt-mini-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-yt-movie-meta {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    margin-right: auto;
    padding-left: 10px;
    max-width: 100%;
}

.sp-yt-original-title-full {
    color: #888;
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sp-yt-rating-year {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 13px;
    line-height: 1;
}

.sp-yt-rating-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #facc15;
    font-weight: 600;
    line-height: 1;
}

.sp-yt-meta-separator {
    color: #888;
    line-height: 1;
}

.sp-yt-year-value {
    color: #888;
    line-height: 1;
}

/* ===== BOTONES EN PASTILLA (ESTILO YOUTUBE) ===== */
.sp-yt-actions {
    /* Antes: flex: 0 0 auto -- no se podía encoger, así que si no entraba
       completa junto al título, el navegador la mandaba ENTERA a la línea
       de abajo (antes de que el JS de actions-overflow.js llegara a hacer
       nada). Ahora se encoge para ocupar el espacio que quede junto al
       título/rating, y flex-wrap:nowrap evita que sus propios botones se
       apilen en más de una fila -- lo que no entra, el JS lo mete en el
       menú de "⋮" en vez de dejar que se desborde o se vaya abajo.

       Importante: SIN overflow:hidden a propósito. El menú desplegable
       del botón "⋮" (.sp-more-actions-menu) vive adentro de este mismo
       contenedor con position:absolute -- si esto tuviera
       overflow:hidden, el menú quedaría recortado/invisible apenas se
       abriera. El propio JS ya se encarga de que nada se desborde
       (calcula el ancho disponible y oculta con display:none lo que no
       entra), así que no hace falta el overflow:hidden como respaldo. */
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sp-yt-actions .sp-report-button,
.sp-yt-actions .sp-share-button,
.sp-yt-actions .sp-technical-button,
.sp-yt-actions .sp-trailer-action-button {
    background: rgba(255, 255, 255, .1) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #e6e6e6 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    /* Sin esto, el navegador podía achicar el botón individualmente
       (antes de que el JS decidiera si cabe entero o no), partiendo el
       texto en 2 líneas ("Ver más" / "tarde"). Con flex-shrink:0 el
       botón nunca se aprieta: o entra completo, o el JS lo manda al
       menú de "⋮" -- nunca un estado intermedio deformado. */
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.sp-yt-actions .sp-report-button:hover,
.sp-yt-actions .sp-share-button:hover,
.sp-yt-actions .sp-technical-button:hover,
.sp-yt-actions .sp-trailer-action-button:hover {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

.sp-yt-actions .sp-report-button:disabled {
    background: rgba(255, 255, 255, .06) !important;
}

.sp-yt-actions .sp-technical-button svg,
.sp-yt-actions .sp-share-button svg,
.sp-yt-actions .sp-trailer-action-button svg,
.sp-yt-actions .sp-report-button svg {
    flex-shrink: 0;
}

/* ===== WIDGET DE LIKES/DISLIKES (ESTILO YOUTUBE) ===== */
.sp-yt-actions .sp-likes-widget {
    display: inline-flex !important;
    align-items: stretch !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .1) !important;
    overflow: hidden !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #e6e6e6 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: background 0.3s, color 0.3s !important;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto[data-tipo="like"]::after {
    content: '';
    position: absolute;
    right: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(255, 255, 255, .2);
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto:hover {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto.sp-activo[data-tipo="like"] {
    background: #2e7d32 !important;
    color: #fff !important;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto.sp-activo[data-tipo="like"]::after {
    background: transparent;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto.sp-activo[data-tipo="dislike"] {
    background: #c62828 !important;
    color: #fff !important;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto:disabled {
    opacity: .6 !important;
    cursor: wait !important;
}

.sp-yt-actions .sp-likes-widget .sp-btn-voto svg {
    flex-shrink: 0 !important;
}

/* ===== BOTÓN DE DESCARGA ===== */
.sp-download-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: .3s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(255, 255, 255, .1);
    color: #e6e6e6;
}

.sp-download-action-button:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.sp-download-action-button.sp-proximamente-btn {
    background: #656b71;
    color: #ffffff;
    cursor: default;
    pointer-events: none;
}

.sp-download-action-button.sp-vip-button-obtener {
    background: linear-gradient(135deg, #facc15, #eab308) !important;
    color: #111 !important;
}

.sp-download-action-button.sp-vip-button-obtener:hover {
    background: linear-gradient(135deg, #fde047, #facc15) !important;
    color: #111 !important;
}

/* ===== MENÚ DE 3 PUNTOS ===== */
.sp-more-actions-dropdown {
    position: relative;
    display: inline-block;
}

.sp-more-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Antes: 44x44 fijo, más alto que los botones de al lado (que miden
       su alto según su propio padding+contenido, ~37px). Ahora usa
       exactamente el mismo padding que ellos, así queda del mismo tamaño
       real sin necesitar adivinar un valor fijo en píxeles. */
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #e6e6e6;
    border: none;
    cursor: pointer;
    transition: .3s;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.sp-more-actions-toggle:hover {
    background: rgba(255, 255, 255, .18);
}

.sp-more-actions-toggle svg {
    fill: #e6e6e6;
}

.sp-more-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: #28282a;
    border: 1px solid #444;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .4);
    z-index: 100;
    padding: 6px 0;
    overflow: hidden;
}

.sp-more-actions-menu.active {
    display: block;
}

.sp-more-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    width: 100%;
    background: transparent;
    border: none;
    color: #dbdbdb;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    font-family: inherit;
}

.sp-more-action-item:hover {
    background: rgba(255, 255, 255, .08);
}

.sp-more-action-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SINOSIS ===== */
.sp-sinopsis-section {
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 100%;
}

.sp-sinopsis-content {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.8;
    color: #dbdbdb;
    font-size: 14px;
    white-space: pre-line;
    max-width: 100%;
    margin-top: -24px;
}

.sp-sinopsis-full {
    font-size: 14px;
    line-height: 1.8;
    color: #dbdbdb;
}

.sp-sinopsis-short {
    font-size: 14px;
    line-height: 1.8;
    color: #dbdbdb;
}

.sp-sinopsis-toggle {
    background: transparent;
    border: none;
    color: #dbdbdb;
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
    font-size: 14px;
    display: inline;
}

.sp-sinopsis-toggle:hover {
    text-decoration: underline;
}

/* ===== COMENTARIOS ===== */
.sp-comments-section {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.sp-comments-section #respond,
.sp-comments-section .comment-list li {
    background: transparent !important;
    border: none !important;
}

.sp-comments-section .comment-list li:hover {
    box-shadow: none !important;
}

.sp-comments-section .comment-list li {
    padding: 20px 0;
    border-bottom: 1px solid #333 !important;
}

.sp-comments-section .children li {
    border-bottom: none !important;
}

.sp-comments-section .sp-section-title,
.sp-comments-section .comments-title,
.sp-comments-section #reply-title {
    display: none !important;
}

.sp-yt-sidebar-title {
    display: none !important;
}

/* ===== SIDEBAR: LISTA DE RECOMENDADAS ===== */
.sp-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}

.sp-related-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    padding: 4px;
    transition: background .2s;
    position: relative;
    overflow: hidden;
}

.sp-related-item:hover {
    background: rgba(255, 255, 255, .06);
}

.sp-related-item.sp-related-hidden {
    display: none;
}

.sp-related-thumb {
    position: relative;
    flex: 0 0 25vw;
    width: 25vw;
    max-width: 340px;
    min-width: 140px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.sp-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sp-related-thumb .sp-trailer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.sp-related-item:hover .sp-related-thumb .sp-trailer-container {
    opacity: 1;
}

.sp-related-thumb .sp-trailer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sp-related-duration-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
}

.sp-related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-related-title {
    color: #dbdbdb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    display: box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.sp-related-original-title {
    color: #888;
    font-size: 12px;
    display: block;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    margin-top: 2px;
}

.sp-related-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}

.sp-related-rating {
    color: #facc15;
    font-size: 12px;
}

.sp-related-year {
    color: #888;
    font-size: 12px;
}

.sp-related-views {
    color: #888;
    font-size: 12px;
}

#sp-related-sentinel {
    height: 1px;
    width: 100%;
}

/* ===== BADGE PRÓXIMAMENTE ===== */
.sp-badge-proximamente {
    display: inline-block;
    background: #656b71;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: bold;
    vertical-align: middle;
}

/* ============================================================
   POPUPS UNIFICADOS - TODOS USAN LAS MISMAS CLASES
   ============================================================ */

/* ===== POPUP OVERLAY BASE ===== */
.sp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.sp-popup-overlay.active {
    opacity: 1;
}

/* ===== POPUP BOX BASE ===== */
.sp-popup-box {
    background: #28282a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #444;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sp-popup-overlay.active .sp-popup-box {
    transform: scale(1);
}

/* ===== POPUP BOX - VARIANTES ===== */
.sp-popup-box-fullscreen {
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #000;
}

.sp-popup-box-center {
    max-width: 450px;
    text-align: center;
}

/* ===== BOTÓN DE CIERRE UNIFICADO ===== */
.sp-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: .3s;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.sp-popup-close:hover {
    background: rgba(255,44,44,.9);
    transform: rotate(90deg);
}

/* ===== HEADER UNIFICADO ===== */
.sp-popup-header {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff2c2c;
}

.sp-popup-title {
    color: #dbdbdb;
    text-align: center;
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

/* ===== BODY UNIFICADO ===== */
.sp-popup-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sp-popup-body-scroll {
    overflow-y: auto;
    padding-right: 5px;
    margin-right: -5px;
}

.sp-popup-body-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===== SCROLLBAR UNIFICADA ===== */
.sp-popup-body-scroll::-webkit-scrollbar {
    width: 8px;
}

.sp-popup-body-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
    margin: 5px 0;
}

.sp-popup-body-scroll::-webkit-scrollbar-thumb {
    background: #ff2c2c;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
}

.sp-popup-body-scroll::-webkit-scrollbar-thumb:hover {
    background: #d82323;
}

.sp-popup-body-scroll {
    scrollbar-width: thin;
    scrollbar-color: #ff2c2c #1a1a1a;
}

/* ===== GRID DE ITEMS UNIFICADO ===== */
.sp-popup-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sp-popup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    margin: 2px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.sp-popup-label {
    font-weight: 700;
    color: #dbdbdb;
    flex-shrink: 0;
    font-size: 14px;
    min-width: 100px;
}

.sp-popup-value {
    color: #dbdbdb;
    text-align: right;
    flex: 1;
    font-size: 14px;
    padding-left: 10px;
    word-break: break-word;
}

/* ===== FECHA ESTRENO ===== */
.sp-fecha-estreno-item {
    background: rgba(255, 44, 44, 0.1);
    border-radius: 6px;
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 44, 44, 0.3);
}

.sp-fecha-estreno-value {
    color: #ff2c2c !important;
    font-weight: 700;
}

/* ===== BOTÓN DE DESCARGA EN POPUP ===== */
.sp-popup-button-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.sp-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #b80000, #d82323);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.sp-popup-btn:hover {
    background: linear-gradient(135deg, #d82323, #b80000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184,0,0,.4);
    color: #fff;
}

.sp-popup-btn.sp-proximamente-btn {
    background: #656b71 !important;
    color: #ffffff !important;
    cursor: default !important;
    pointer-events: none !important;
}

.sp-popup-btn.sp-vip-button-obtener {
    background: linear-gradient(135deg, #facc15, #eab308) !important;
    color: #111 !important;
}

.sp-popup-btn.sp-vip-button-obtener:hover {
    background: linear-gradient(135deg, #fde047, #facc15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250,204,21,.4);
    color: #111 !important;
}

/* ===== SHARE POPUP ESPECÍFICO ===== */
.sp-share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sp-share-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 10px;
    color: #dbdbdb;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    cursor: pointer;
}

.sp-share-social:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.sp-share-social svg {
    width: 24px;
    height: 24px;
}

.sp-share-whatsapp:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.15);
}

.sp-share-facebook:hover {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
}

.sp-share-twitter:hover {
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.15);
}

/* Declarado acá directo (antes dependía de una regla vieja en el
   archivo compartido que le ganaba por orden de carga) -- así el look
   coloreado no depende de qué otro archivo se cargue después. */
.sp-share-whatsapp {
    background: #25d366;
    color: #fff;
}

.sp-share-facebook {
    background: #1877f2;
    color: #fff;
}

.sp-share-twitter {
    background: #1da1f2;
    color: #fff;
}

.sp-share-messages:hover {
    color: #34b7f1;
    background: rgba(52, 183, 241, 0.15);
}

.sp-share-embed:hover {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.sp-share-copypaste:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.sp-popup-url-box {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.sp-popup-url-input {
    flex: 1;
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: #dbdbdb;
    font-size: 13px;
    outline: none;
}

.sp-popup-url-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: none;
    color: #dbdbdb;
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.3s;
}

.sp-popup-url-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ===== REPORT POPUP ESPECÍFICO ===== */
.sp-report-icon {
    margin: 10px 0 15px 0;
}

.sp-report-message {
    margin-bottom: 25px;
    color: #dbdbdb;
    line-height: 1.6;
    font-size: 15px;
}

.sp-report-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.sp-report-confirm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
    width: 100%;
    text-decoration: none;
}

.sp-report-confirm-button:hover {
    background: #e55a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* ===== SHARE REQUIRED POPUP ESPECÍFICO ===== */
.sp-vip-alternative-message {
    background: linear-gradient(135deg, rgba(255,204,0,.15), rgba(255,204,0,.08));
    border-left: 4px solid #facc15;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
    text-align: center;
}

.sp-vip-alternative-text {
    margin: 0;
    font-size: 14px;
    color: #dbdbdb;
    line-height: 1.4;
}

.sp-vip-alternative-link {
    color: #ebc014;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
}

.sp-vip-alternative-link:hover {
    color: gold;
    text-decoration: none;
}

.sp-vip-crown-icon {
    color: #facc15;
    margin-right: 5px;
}

.sp-url-copy-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.sp-url-input {
    flex: 1;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #dbdbdb;
    font-size: 14px;
}

.sp-share-url-copy {
    padding: 10px 20px;
    background: #ff2c2c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background .3s;
    white-space: nowrap;
}

.sp-share-url-copy:hover {
    background: #d82323;
}

.sp-share-links-form,
.sp-share-progress {
    margin: 20px 0;
}

.sp-progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.sp-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #facc15, #eab308);
    width: 0%;
    transition: width .3s;
}

.sp-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #888;
}

.sp-share-link-group {
    margin-bottom: 15px;
}

.sp-share-link-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #dbdbdb;
}

.sp-share-link-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #dbdbdb;
    font-size: 14px;
}

.sp-share-link-input.verified {
    border-color: #10b981;
}

.sp-share-link-input.invalid {
    border-color: #ef4444;
}

.sp-share-link-status {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.sp-share-link-status.verified {
    color: #10b981;
}

.sp-share-link-status.invalid {
    color: #ef4444;
}

.sp-share-link-status.loading {
    color: #facc15;
}

.sp-verify-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #111;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
    margin-top: 10px;
}

.sp-verify-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #fde047, #facc15);
    transform: translateY(-2px);
}

.sp-verify-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.sp-share-success {
    text-align: center;
    padding: 20px;
    background: #10b981;
    border-radius: 10px;
    color: #fff;
    margin: 20px 0;
}

.sp-share-success i {
    font-size: 40px;
    margin-bottom: 10px;
}

.sp-share-url-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* ===== TRAILER POPUP ===== */
.sp-popup-box-fullscreen .sp-trailer-popup-player {
    width: 100%;
    height: 100%;
    border: none;
}

.sp-trailer-inline-player {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.sp-trailer-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,44,44,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    z-index: 3;
    border: none;
    box-shadow: 0 0 20px rgba(255,44,44,.5);
}

.sp-trailer-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff2c2c;
    box-shadow: 0 0 30px rgba(255,44,44,.7);
}

.sp-trailer-play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.sp-trailer-placeholder {
    color: #fff;
    text-align: center;
    padding: 40px;
    z-index: 2;
    position: relative;
}

.sp-trailer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(.6);
    transform: scale(1.1);
    z-index: 1;
}

/* ===== TOAST ===== */
.sp-toast-report {
    position: fixed;
    bottom: 80px;
    left: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-150%);
    transition: .5s;
    z-index: 10001;
    background: #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.sp-toast-report.error {
    background: #dc3545;
}

/* ============================================================
   RESPONSIVE - TABLET (max-width: 1100px)
   ============================================================ */

@media (max-width: 1100px) {
    .sp-yt-layout {
        flex-direction: column;
    }
    .sp-yt-main {
        max-width: 100%;
    }
    .sp-yt-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        position: static;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    
    /* ===== REPRODUCTOR FIJO EN LA PARTE SUPERIOR - MÁS ALTO ===== */
    .sp-yt-player-wrapper {
        position: fixed !important;
        top: 48px !important;
        left: 0 !important;
        width: 100% !important;
        aspect-ratio: auto !important;
        max-height: none !important;
        height: 35vh !important;
        z-index: 999 !important;
        background: #000 !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
    }
    
    .sp-yt-container {
        padding-top: 35vh !important;
    }
    
    /* Cuando la barra de servidores esta visible (tras el primer
       play), reservamos espacio extra para que no quede tapada ni
       tape al contenido de abajo. */
    body.sp-server-selector-visible .sp-yt-container {
        padding-top: calc(35vh + 48px) !important;
    }
    
    /* ===== NUEVO: ESPACIO EXTRA ENTRE REPRODUCTOR Y TÍTULO ===== */
    .sp-yt-layout {
        padding-top: 12px !important;
    }
    
    /* ===== TÍTULO PRINCIPAL CON MÁS ESPACIO SUPERIOR ===== */
    .sp-yt-title {
        font-size: 1.3em !important;
        margin: 8px 0 4px 0 !important;
        color: #e6e6e6 !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        display: block !important;
        padding-top: 4px !important;
    }
    
    /* ===== LAYOUT PRINCIPAL ===== */
    .sp-yt-layout {
        flex-direction: column !important;
        padding: 0 12px !important;
        margin-top: 0 !important;
        gap: 12px !important;
        overflow: visible !important;
    }
    
    .sp-yt-main {
        max-width: 100% !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .sp-yt-sidebar {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        position: static !important;
        margin-top: 0 !important;
        overflow: visible !important;
    }
    
    /* ===== ELIMINAR POSIBLE DOBLE SCROLL ===== */
    .sp-yt-sidebar::-webkit-scrollbar {
        display: none !important;
    }
    
    .sp-yt-sidebar {
        scrollbar-width: none !important;
    }
    
    .sp-site-main,
    #sp-primary,
    .sp-container {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .sp-related-list {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .sp-wrapper {
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .sp-main {
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh !important;
        padding-bottom: calc(var(--sp-bottom-nav-height) + 20px) !important;
    }
    
    .sp-content-area {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    body.sp-body-override {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    /* ===== TÍTULO ORIGINAL - VISIBLE ===== */
    .sp-yt-original-title-full {
        font-size: 0.85em !important;
        color: #888 !important;
        font-weight: 400 !important;
        display: block !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    /* ===== PUNTUACIÓN Y AÑO - VISIBLES ===== */
    .sp-yt-rating-year {
        font-size: 13px !important;
        color: #aaa !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    
    .sp-yt-rating-value {
        color: #facc15 !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .sp-yt-meta-separator {
        color: #888 !important;
    }
    
    .sp-yt-year-value {
        color: #888 !important;
    }
    
    /* ===== SUBHEADER CON CARÁTULA CIRCULAR + BOTONES PEQUEÑOS ===== */
    .sp-yt-movie-subheader {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Carátula circular a la izquierda */
    .sp-yt-mini-poster {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        border: 2px solid #333 !important;
        flex-shrink: 0 !important;
    }
    
    .sp-yt-mini-poster img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .sp-yt-movie-meta {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    
    /* ===== BOTONES DE ACCIÓN - HORIZONTALES, PEQUEÑOS, REDONDEADOS ===== */
    .sp-yt-actions {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        margin-top: 0 !important;
        width: auto !important;
        padding: 0 !important;
    }
    
    .sp-yt-actions .sp-technical-button,
    .sp-yt-actions .sp-share-button,
    .sp-yt-actions .sp-trailer-action-button,
    .sp-yt-actions .sp-download-action-button,
    .sp-yt-actions .sp-favoritos-button,
    .sp-yt-actions .sp-ver-mas-tarde-button {
        padding: 0 !important;
        font-size: 0 !important;
        border-radius: 50% !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        width: 38px !important;
        height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #e6e6e6 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        position: relative !important;
    }
    
    .sp-yt-actions .sp-technical-button svg,
    .sp-yt-actions .sp-share-button svg,
    .sp-yt-actions .sp-trailer-action-button svg,
    .sp-yt-actions .sp-download-action-button svg,
    .sp-yt-actions .sp-favoritos-button svg,
    .sp-yt-actions .sp-ver-mas-tarde-button svg {
        width: 18px !important;
        height: 18px !important;
        fill: currentColor !important;
        flex-shrink: 0 !important;
        display: block !important;
        margin: 0 auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .sp-yt-actions .sp-technical-button:hover,
    .sp-yt-actions .sp-share-button:hover,
    .sp-yt-actions .sp-trailer-action-button:hover,
    .sp-yt-actions .sp-download-action-button:hover,
    .sp-yt-actions .sp-favoritos-button:hover,
    .sp-yt-actions .sp-ver-mas-tarde-button:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #fff !important;
        transform: scale(1.05) !important;
    }
    
    .sp-yt-actions .sp-technical-button:active,
    .sp-yt-actions .sp-share-button:active,
    .sp-yt-actions .sp-trailer-action-button:active,
    .sp-yt-actions .sp-download-action-button:active,
    .sp-yt-actions .sp-favoritos-button:active,
    .sp-yt-actions .sp-ver-mas-tarde-button:active {
        transform: scale(0.92) !important;
    }

    /* Widget de likes/dislikes en móvil: misma altura que los botones circulares */
    .sp-yt-actions .sp-likes-widget {
        min-height: 38px !important;
        height: 38px !important;
    }

    .sp-yt-actions .sp-likes-widget .sp-btn-voto {
        padding: 0 10px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }

    .sp-yt-actions .sp-likes-widget .sp-btn-voto svg {
        width: 15px !important;
        height: 15px !important;
    }

    /* Botón de 3 puntos */
    .sp-more-actions-dropdown {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .sp-more-actions-toggle {
        padding: 0 !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #e6e6e6 !important;
        /* Sin !important a propósito acá: si el menú queda vacío (sin
           Reportar ni botones que desbordaron), el JS/PHP le ponen
           display:none en línea -- un !important acá se lo pisaría y el
           botón se vería siempre, esté vacío o no. El resto de las
           propiedades (tamaño, forma) sí necesitan !important para
           ganarle a la regla de escritorio, pero display no. */
        display: inline-flex;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        position: relative !important;
    }
    
    .sp-more-actions-toggle:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        transform: scale(1.05) !important;
    }
    
    .sp-more-actions-toggle:active {
        transform: scale(0.92) !important;
    }
    
    .sp-more-actions-toggle svg {
        width: 18px !important;
        height: 18px !important;
        fill: currentColor !important;
        display: block !important;
        margin: 0 auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* ===== SINOPSIS ===== */
    .sp-sinopsis-section {
        margin-top: 10px !important;
        padding: 16px !important;
        background: #1a1a1a !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    
    .sp-sinopsis-content,
    .sp-sinopsis-short,
    .sp-sinopsis-full {
        font-size: 13px !important;
        line-height: 1.7 !important;
        color: #dbdbdb !important;
    }

    .sp-sinopsis-content {
        margin-top: -21px !important;
    }
    
    /* ===== COMENTARIOS ===== */
    .sp-comments-section {
        margin-top: 10px !important;
        padding: 0 !important;
    }
    
    /* ===== PELÍCULAS RELACIONADAS - IMAGEN 16:9 CON TÍTULO DEBAJO ===== */
    .sp-related-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        padding: 0 !important;
    }
    
    .sp-related-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        transition: none !important;
    }
    
    .sp-related-item:hover {
        background: transparent !important;
        transform: none !important;
    }
    
    .sp-related-thumb {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #1a1a1a !important;
        position: relative !important;
    }
    
    .sp-related-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
    .sp-related-thumb .sp-trailer-container {
        border-radius: 8px !important;
    }
    
    .sp-related-duration-badge {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
        background: rgba(0, 0, 0, 0.85) !important;
        color: #fff !important;
        padding: 3px 8px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        z-index: 3 !important;
    }
    
    .sp-related-info {
        padding: 0 4px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
    
    .sp-related-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #dbdbdb !important;
        line-height: 1.3 !important;
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .sp-related-original-title {
        font-size: 12px !important;
        color: #888 !important;
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .sp-related-meta {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12px !important;
        color: #888 !important;
        margin-top: 2px !important;
    }
    
    .sp-related-rating {
        color: #facc15 !important;
        font-weight: 500 !important;
    }
    
    .sp-related-year {
        color: #888 !important;
    }
    
    .sp-related-views {
        color: #666 !important;
        font-size: 11px !important;
    }
    
    .sp-yt-sidebar-title {
        display: none !important;
    }
    
    /* ===== POPUPS - FIJADOS EN LA PARTE INFERIOR ===== */
    .sp-popup-overlay {
        align-items: flex-end !important;
        justify-content: center !important;
    }
    
    .sp-popup-box {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 70vh !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 20px !important;
        margin: 0 !important;
        border: none !important;
        border-top: 2px solid #ff2c2c !important;
        transform: translateY(100%) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5) !important;
    }
    
    .sp-popup-overlay.active .sp-popup-box {
        transform: translateY(0) !important;
    }
    
    .sp-popup-box-fullscreen {
        border-radius: 0 !important;
        max-height: 100% !important;
        transform: translateY(0) !important;
    }
    
    .sp-popup-box-center {
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .sp-popup-close {
        top: 10px !important;
        right: 14px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 22px !important;
        background: rgba(0,0,0,0.7) !important;
    }
    
    .sp-popup-title {
        font-size: 1.2em !important;
        padding-right: 30px !important;
    }
    
    /* ===== BOTONES DE COMPARTIR EN MÓVIL ===== */
    .sp-share-buttons-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .sp-share-social {
        padding: 12px 8px !important;
        font-size: 11px !important;
    }
    
    .sp-share-social svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* ===== ITEMS DEL POPUP EN UNA SOLA COLUMNA ===== */
    .sp-popup-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 8px 0 !important;
        gap: 2px !important;
    }
    
    .sp-popup-label {
        min-width: unset !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #dbdbdb !important;
    }
    
    .sp-popup-value {
        text-align: left !important;
        padding-left: 0 !important;
        font-size: 13px !important;
        width: 100% !important;
        color: #dbdbdb !important;
    }
    
    /* ===== BOTÓN DE DESCARGA EN POPUP ===== */
    .sp-popup-btn {
        font-size: 15px !important;
        padding: 14px 20px !important;
        border-radius: 10px !important;
    }
    
    /* ===== SPACING ENTRE SECCIONES ===== */
    .sp-sinopsis-section,
    .sp-comments-section,
    .sp-yt-sidebar {
        scroll-margin-top: 35vh !important;
    }
    
    /* ===== SCROLL SUAVE ===== */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* ===== SENTINEL PARA CARGA INFINITA ===== */
    #sp-related-sentinel {
        height: 2px !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

/* ============================================================
   RESPONSIVE - MÓVIL PEQUEÑO (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
    
    /* Reproductor más alto en pantallas muy pequeñas */
    .sp-yt-player-wrapper {
        top: 44px !important;
        height: 40vh !important;
    }
    
    .sp-yt-container {
        padding-top: 40vh !important;
    }
    
    body.sp-server-selector-visible .sp-yt-container {
        padding-top: calc(40vh + 44px) !important;
    }
    
    /* ===== ESPACIO EXTRA PARA TÍTULO EN PANTALLAS MUY PEQUEÑAS ===== */
    .sp-yt-layout {
        padding-top: 8px !important;
    }
    
    .sp-yt-title {
        font-size: 1.1em !important;
        margin: 6px 0 4px 0 !important;
        padding-top: 2px !important;
    }
    
    /* ===== ASEGURAR QUE NO HAYA DOBLE SCROLL ===== */
    .sp-yt-main,
    .sp-yt-sidebar,
    .sp-related-list,
    .sp-site-main,
    #sp-primary,
    .sp-container,
    .sp-wrapper,
    .sp-main,
    .sp-content-area {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
    
    body.sp-body-override {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    .sp-yt-original-title-full {
        font-size: 0.8em !important;
    }
    
    .sp-yt-rating-year {
        font-size: 12px !important;
    }
    
    .sp-yt-mini-poster {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
    }
    
    .sp-yt-actions .sp-technical-button,
    .sp-yt-actions .sp-share-button,
    .sp-yt-actions .sp-trailer-action-button,
    .sp-yt-actions .sp-download-action-button {
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .sp-yt-actions .sp-technical-button svg,
    .sp-yt-actions .sp-share-button svg,
    .sp-yt-actions .sp-trailer-action-button svg,
    .sp-yt-actions .sp-download-action-button svg,
    .sp-yt-actions .sp-favoritos-button svg,
    .sp-yt-actions .sp-ver-mas-tarde-button svg {
        width: 15px !important;
        height: 15px !important;
    }
    
    .sp-more-actions-toggle {
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .sp-more-actions-toggle svg {
        width: 15px !important;
        height: 15px !important;
    }
    
    .sp-yt-actions {
        gap: 4px !important;
    }

    .sp-yt-actions .sp-likes-widget {
        min-height: 32px !important;
        height: 32px !important;
    }

    .sp-yt-actions .sp-likes-widget .sp-btn-voto {
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    .sp-yt-actions .sp-likes-widget .sp-btn-voto svg {
        width: 13px !important;
        height: 13px !important;
    }

    .sp-related-title {
        font-size: 13px !important;
    }
    
    .sp-related-original-title {
        font-size: 11px !important;
    }
    
    .sp-related-meta {
        font-size: 11px !important;
    }
    
    .sp-popup-box {
        padding: 16px !important;
        max-height: 75vh !important;
    }
    
    .sp-popup-title {
        font-size: 1.1em !important;
    }
    
    .sp-share-buttons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .sp-share-social {
        padding: 10px 6px !important;
        font-size: 10px !important;
    }
    
    .sp-share-social svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .sp-popup-btn {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
    
    .sp-sinopsis-section {
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    .sp-sinopsis-content,
    .sp-sinopsis-short,
    .sp-sinopsis-full {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    .sp-sinopsis-content {
        margin-top: -16px !important;
    }
    
    .sp-sinopsis-section,
    .sp-comments-section,
    .sp-yt-sidebar {
        scroll-margin-top: 40vh !important;
    }
}/* ============================================================
   ESTILOS PARA "PRÓXIMAMENTE" - BOTÓN EN COLOR PLOMO
   ============================================================ */

/* Botón "Próximamente" - Color plomo/gris */
.sp-download-button-poster.sp-proximamente-btn {
    background: #656b71 !important;
    color: #ffffff !important;
    cursor: default !important;
    pointer-events: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    text-decoration: none !important;
    border-radius: 0 0 12px 12px !important;
    font-size: 16px !important;
    border: none !important;
    width: 100% !important;
    text-align: center !important;
    transition: none !important;
    box-shadow: none !important;
}

.sp-download-button-poster.sp-proximamente-btn i {
    color: #ffffff !important;
}

/* Badge "Próximamente" en el título */
.sp-badge-proximamente {
    display: inline-block;
    background: #656b71;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: bold;
}

/* ============================================================
   SECCIÓN MEDIA: CARÁTULA + REPRODUCTOR - MISMA ALTURA
   ============================================================ */

/* El contenedor flex que alinea ambas columnas */
.sp-movie-top-section {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Columna izquierda: Carátula + botón */
.sp-movie-poster-section {
    flex: 0 0 302px;
    display: flex;
    flex-direction: column;
    min-height: 448px;
}

/* Contenedor de la carátula */
.sp-movie-poster-container {
    width: 100%;
    overflow: hidden;
    flex: 1;
    min-height: 400px;
    max-height: 600px;
}

.sp-movie-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

/* Botón de descarga */
.sp-download-button-poster {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #b80000, #d82323);
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: .3s;
    width: 100%;
    text-align: center;
    flex-shrink: 0;
    min-height: 54px;
}

.sp-download-button-poster:hover {
    background: linear-gradient(135deg, #d82323, #b80000);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184,0,0,.4);
}

.sp-download-button-poster.disabled {
    background: #666;
    cursor: not-allowed;
    opacity: .7;
}

.sp-download-button-poster.disabled:hover {
    transform: none;
    box-shadow: none;
    background: #666;
}

.sp-download-button-poster.vip-locked {
    background: linear-gradient(135deg, #666, #888);
}

.sp-download-button-poster.vip-locked:hover {
    background: linear-gradient(135deg, #888, #666);
    transform: none;
    box-shadow: none;
}

.sp-vip-button-obtener {
    background: linear-gradient(135deg, #facc15, #eab308) !important;
    color: #111 !important;
}

.sp-vip-button-obtener:hover {
    background: linear-gradient(135deg, #fde047, #facc15) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250,204,21,.4);
}

.sp-vip-button-actualizar {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
}

.sp-vip-button-actualizar:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
}

/* Columna derecha: Reproductor */
.sp-trailer-section {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
    background: #000;
    min-height: 448px;
    display: flex;
    flex-direction: column;
}

/* El reproductor ocupa toda la altura del contenedor */
.sp-trailer-player {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.sp-trailer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(.6);
    transform: scale(1.1);
    z-index: 1;
}

.sp-trailer-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,44,44,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    z-index: 3;
    border: none;
    box-shadow: 0 0 20px rgba(255,44,44,.5);
}

.sp-trailer-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff2c2c;
    box-shadow: 0 0 30px rgba(255,44,44,.7);
}

.sp-trailer-play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.sp-trailer-placeholder {
    color: #fff;
    text-align: center;
    padding: 40px;
    z-index: 2;
    position: relative;
}

/* ============================================================
   EL RESTO DE TU CSS EXISTENTE
   ============================================================ */

#comments,#respond{margin-top:30px}
.sp-anime-layout-container,.sp-dorama-layout-container,.sp-movie-layout-container,.sp-series-layout-container,.sp-telenovela-layout-container{display:flex;flex-direction:column;gap:30px}
.sp-title-actions-section{display:flex;justify-content:space-between;align-items:center;gap:20px}
.sp-anime-title-section,.sp-dorama-title-section,.sp-movie-title-section,.sp-series-title-section,.sp-telenovela-title-section{flex:1}
.sp-anime-title,.sp-dorama-title,.sp-movie-title,.sp-series-title,.sp-telenovela-title{text-align:left;font-size:2.2em;color:#e6e6e6;margin:0;line-height:1.2}
/* .sp-title-actions ya NO se define acá: era una regla de un layout
   viejo (junto a clases como .sp-movie-title-section que no existen en el
   HTML actual), pero por coincidencia de nombre chocaba con .sp-title-actions
   del layout actual (compartida por .sp-yt-actions/.sp-series-actions/etc.),
   ganándole en display/gap/align-items por cargarse después en el archivo
   combinado. Esas propiedades ya las define cada tipo de contenido en su
   propio archivo (single-peliculas.css / single-episodic-content.css). */
.sp-anime-top-section,.sp-dorama-top-section,.sp-movie-top-section,.sp-series-top-section,.sp-telenovela-top-section{display:flex;gap:30px;align-items:stretch}
.sp-anime-poster-section,.sp-dorama-poster-section,.sp-movie-poster-section,.sp-series-poster-section,.sp-telenovela-poster-section{flex:0 0 302px;display:flex;flex-direction:column}
.sp-anime-poster-container,.sp-dorama-poster-container,.sp-movie-poster-container,.sp-series-poster-container,.sp-telenovela-poster-container{width:100%;overflow:hidden;height:448px}
.sp-anime-poster-container img,.sp-dorama-poster-container img,.sp-movie-poster-container img,.sp-series-poster-container img,.sp-telenovela-poster-container img{width:100%;height:100%;object-fit:cover;border-radius:12px 12px 0 0;box-shadow:0 8px 25px rgba(0,0,0,.3)}

.sp-report-button,.sp-share-button,.sp-technical-button,.sp-trailer-action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:6px;font-weight:400;font-size:14px;text-decoration:none;transition:.3s;border:1px solid rgba(255,255,255,.2);cursor:pointer;white-space:nowrap;background:rgba(255,255,255,.08);color:var(--sp-text-light)}
.sp-report-button:hover,.sp-share-button:hover,.sp-technical-button:hover,.sp-trailer-action-button:hover{background:rgba(255,255,255,.1);color:var(--sp-text-color);border-color:var(--sp-primary-color)}
.sp-capturas-title,.sp-comments-title,.sp-recommended-title,.sp-section-title,.sp-sinopsis-title{color:#dbdbdb;margin-bottom:25px;padding-bottom:15px;border-bottom:2px solid #ff2c2c;display:flex;align-items:center;gap:10px;font-size:1.5em}
.comment-metadata a:hover,.sp-capturas-title i,.sp-comments-section h3 i,.sp-comments-title i,.sp-recommended-section h3 i,.sp-recommended-title i,.sp-section-title i,.sp-sinopsis-title i{color:#ff2c2c}
.sp-technical-sheet-grid{display:grid}
.sp-technical-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #333;margin:2px 0}
.sp-technical-label{font-weight:700;color:#dbdbdb;flex-shrink:0;margin-right:15px;font-size:14px}
.sp-technical-value{color:#dbdbdb;text-align:right;flex:1;font-size:14px;padding-left:10px}
.sp-content-section{display:flex;gap:30px;align-items:flex-start}
.sp-capturas-section,.sp-comments-section,.sp-recommended-section,.sp-sinopsis-section{flex:1;min-width:0}
.sp-sinopsis-section.full-width{flex:0 0 100%}
.sp-comments-section h3,.sp-recommended-section h3{color:#dbdbdb;font-size:1.5em;padding-bottom:15px;align-items:center;gap:10px;margin-bottom:25px}
.sp-sinopsis-content{text-align:justify;hyphens:auto;-webkit-hyphens:auto;-moz-hyphens:auto;word-break:break-word;overflow-wrap:break-word;line-height:1.7;color:#dbdbdb}
.sp-capturas-gallery{display:grid;grid-template-columns:1fr;gap:10px}
.sp-capturas-gallery img{width:100%;height:auto;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.2);transition:transform .3s}
.sp-capturas-gallery img:hover{transform:scale(1.05)}
.sp-bottom-section{display:flex;gap:30px}
.sp-comments-section,.sp-recommended-section{background:#28282a;padding:30px;border-radius:10px;border:1px solid #333;box-shadow:0 4px 15px rgba(0,0,0,.1)}
.sp-comments-section h3{display:flex}
.sp-recommended-section h3{border-bottom:2px solid #ff2c2c;display:flex}
.fn a,.fn a:hover,.sp-author-comment h3{color:#dbdbdb!important}
.sp-author-comment{background:#1a1a1a;border-left:4px solid #ff2c2c;padding:20px;border-radius:0 8px 8px 0;margin-bottom:30px;box-shadow:0 3px 10px rgba(0,0,0,.1)}
.sp-author-comment h3{font-size:1em;margin:0;line-height:1.6;font-weight:600;text-align:justify}
.sp-comments-login-form-message{text-align:center;padding:30px;background:linear-gradient(135deg,rgba(40,40,42,.9),rgba(30,30,32,.9));border-radius:12px;border:2px solid #ff2c2c;box-shadow:0 8px 25px rgba(0,0,0,.3);margin:30px 0 10px}
.sp-comments-login-form-icon{font-size:50px;color:#ff2c2c;margin-bottom:15px;display:block}
.sp-comments-login-form-title{color:#dbdbdb;font-size:1.5em;margin-bottom:10px;font-weight:600}
.sp-comments-login-form-text{color:#aaa;font-size:1em;line-height:1.6;margin-bottom:20px;max-width:600px;margin-left:auto;margin-right:auto}
.sp-comments-login-form-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 25px;background:linear-gradient(135deg,#ff2c2c,#d82323);color:#fff;text-decoration:none;border-radius:8px;font-weight:600;font-size:1em;transition:.3s;border:none;cursor:pointer}
#submit,.comment-reply-link{background:#ff2c2c;transition:.3s}
.fn,.fn a,.fn a:hover{text-decoration:none!important}
#respond,.comment-list li{background:#1a1a1a;border:1px solid #333}
.sp-comments-login-form-button:hover{background:linear-gradient(135deg,#d82323,#ff2c2c);transform:translateY(-2px);box-shadow:0 4px 15px rgba(255,44,44,.4)}
#submit:hover,.comment-reply-link:hover{background:#d82323;transform:translateY(-2px)}
#comments .comments-title,#reply-title{color:#dbdbdb;font-size:1.5em;margin-bottom:25px;padding-bottom:10px;border-bottom:1px solid #333}
.comment-list{list-style:none;padding:0;margin:0}
.comment-list li{border-radius:8px;padding:20px;margin-bottom:20px;transition:.3s}
.comment-list li:hover{border-color:#ff2c2c;box-shadow:0 4px 12px rgba(255,44,44,.1)}
.comment-body{position:relative}
.comment-author{display:flex;align-items:center;gap:15px;margin-bottom:15px}
.avatar{border-radius:50%}
.fn{color:#dbdbdb;font-weight:600;font-size:1.1em}
.fn a{pointer-events:none!important;cursor:default!important}
.says{color:#aaa;margin-left:5px}
.comment-meta{margin-left:auto}
.comment-metadata{color:#777;font-size:.9em}
.comment-metadata a{color:#aaa;text-decoration:none}
.comment-metadata .edit-link,.sp-comments-section .children .comment-metadata,.sp-comments-section .comment-date,.sp-comments-section .comment-datetime,.sp-comments-section .comment-edit-link,.sp-comments-section .comment-form-cookies-consent,.sp-comments-section .comment-meta,.sp-comments-section .comment-metadata,.sp-comments-section .comment-notes,.sp-comments-section .comment-notes-before,.sp-comments-section .comment-time,.sp-comments-section .datetime,.sp-comments-section .edit-link,.sp-comments-section .form-allowed-tags,.sp-comments-section .logged-in-as,.sp-comments-section .says,.sp-comments-section time{display:none!important}
.comment-content{color:#dbdbdb;line-height:1.6;margin:15px 0;padding-left:70px}
.comment-content p{margin:0 0 10px}
.comment-content p:last-child{margin-bottom:0}
.reply{text-align:right;margin-top:15px}
.comment-reply-link{color:#fff;padding:8px 15px;border-radius:5px;text-decoration:none;font-size:.9em}
.comment-reply-link:hover{color:#fff}
.children{list-style:none;padding-left:30px}
.children li{border-color:#444}
#respond{border-radius:8px;padding:25px}
#reply-title{margin-top:0}
.comment-form{display:grid;gap:20px}
.comment-form label{display:block;color:#dbdbdb;margin-bottom:8px;font-weight:600}
.comment-form input[type=email],.comment-form input[type=text],.comment-form input[type=url],.comment-form textarea{width:100%;padding:12px 15px;background:#28282a;border:1px solid #333;border-radius:5px;color:#dbdbdb;font-size:1em;transition:.3s}
#submit,.sp-popup-close{border:none;cursor:pointer}
.comment-form input:focus,.comment-form textarea:focus,.sp-comments-section .comment-form input:focus,.sp-comments-section .comment-form textarea:focus{outline:0;border-color:#ff2c2c;box-shadow:0 0 0 2px rgba(255,44,44,.1)}
.comment-form textarea{min-height:150px;resize:vertical}
.comment-form-cookies-consent{display:flex;align-items:center;gap:10px;color:#aaa}
.comment-form-cookies-consent input{margin:0}
.form-submit{margin-top:10px;text-align:center}
#submit{color:#fff;padding:12px 25px;border-radius:5px;font-size:1em;font-weight:600;display:inline-block}
#submit:hover{box-shadow:0 5px 15px rgba(255,44,44,.2)}
.comment-form input.error,.comment-form textarea.error{border-color:#dc3545}
.comment-form .error-message{color:#dc3545;font-size:.9em;margin-top:5px}
.comment-awaiting-moderation{background:rgba(255,193,7,.1);color:#ffc107;padding:10px 15px;border-radius:5px;margin:10px 0;border-left:3px solid #ffc107}
.nocomments{color:#aaa;text-align:center;padding:30px;font-style:italic}
.sp-recommended-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.sp-recommended-item{display:flex;flex-direction:column;transition:transform .3s;border-radius:4px;overflow:hidden;background:#1a1a1a;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.sp-recommended-item:hover{transform:translateY(-5px);box-shadow:0 6px 15px rgba(0,0,0,.3)}
.sp-recommended-item-link{display:flex;flex-direction:column;text-decoration:none;color:inherit;height:100%;position:relative}
.sp-recommended-thumbnail{position:relative;width:100%;height:180px;overflow:hidden}
.sp-recommended-thumbnail img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.sp-recommended-item:hover .sp-recommended-thumbnail img{transform:scale(1.08)}
.sp-recommended-year-badge{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.85);color:#fff;padding:4px 8px;border-radius:3px;font-size:11px;font-weight:700;backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.2)}
.sp-recommended-title-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.9));padding:20px 10px 10px;color:#fff}
.sp-recommended-title{color:#fff;text-decoration:none;font-size:13px;font-weight:600;line-height:1.3;text-align:center;width:100%;margin:0;text-shadow:1px 1px 2px rgba(0,0,0,.8)}
.sp-popup-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:10000;align-items:center;justify-content:center;opacity:0;transition:opacity .3s}
.sp-popup-overlay.active{opacity:1}
.sp-popup-content{background:#000;padding:0;border-radius:0;width:100%;height:100%;overflow:hidden;position:relative;border:none;transform:scale(.9);transition:transform .3s}
.sp-popup-overlay.active .sp-popup-content,.sp-popup-overlay.active .sp-report-popup-content,.sp-popup-overlay.active .sp-share-popup-content,.sp-popup-overlay.active .sp-share-required-popup-content,.sp-popup-overlay.active .sp-technical-popup-content{transform:scale(1)}
.sp-trailer-popup-player{width:100%;height:100%;border:none}
.sp-share-popup-content{background:#28282a;padding:30px;border-radius:15px;max-width:500px;border:2px solid #ff2c2c;transition:transform .3s}
.sp-share-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:20px 0}
.sp-share-social{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:8px;color:#fff;text-decoration:none;font-weight:500;transition:transform .3s}
.sp-share-social:hover{transform:translateY(-2px)}
.sp-share-whatsapp{background:#25d366}
.sp-share-facebook{background:#1877f2}
.sp-share-twitter{background:#1da1f2}
.sp-share-linkedin{background:#0077b5}
.sp-share-telegram{background:#08c}
.sp-url-copy-box{display:flex;gap:10px;margin-top:20px;padding:15px;background:#1a1a1a;border-radius:8px;border:1px solid #333}
.sp-url-input{flex:1;padding:10px;background:#2a2a2a;border:1px solid #444;border-radius:5px;color:#dbdbdb;font-size:14px}
.sp-copy-button{padding:10px 20px;background:var(--sp-primary-color);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:background .3s}
.sp-copy-button:hover{background:#d82323}
.sp-report-popup-content{background:#28282a;padding:30px;border-radius:15px;max-width:450px;border:2px solid #e63946;transition:transform .3s;text-align:center}
.sp-report-popup-title{color:#dbdbdb;text-align:center;margin-bottom:25px;font-size:1.5em;border-bottom:2px solid #e63946;padding-bottom:10px}
.sp-report-popup-icon{font-size:40px;margin-bottom:15px;color:#e63946}
.sp-report-popup-message{margin-bottom:25px;color:#dbdbdb;line-height:1.6;font-size:15px}
.sp-report-buttons{display:flex;gap:12px;justify-content:center;margin-top:20px}
.sp-report-confirm-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;background:#e63946;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:15px;cursor:pointer;transition:.3s;width:100%;text-decoration:none}
.sp-report-confirm-button:hover{background:#d82323;transform:translateY(-2px);box-shadow:0 4px 12px rgba(230,57,70,.4)}
.sp-report-button:disabled,.sp-report-button:disabled:hover{background:rgba(255,255,255,.05)!important;color:#888!important;border-color:#444!important}
.sp-report-button:disabled{cursor:not-allowed!important;opacity:.6!important}
.sp-report-button:disabled:hover{transform:none!important}
.sp-trailer-inline-player{width:100%;height:100%;border:none;display:none}
.sp-toast-report{position:fixed;bottom:80px;left:20px;padding:14px 20px;border-radius:8px;color:#fff;font-weight:700;opacity:0;transform:translateX(-150%);transition:.5s;z-index:10001;background:#28a745;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.sp-toast-report.error{background:#dc3545}
.sp-share-required-popup-content{background:#28282a;padding:30px;border-radius:15px;max-width:500px;width:90%;max-height:85vh;overflow:hidden;position:relative;border:2px solid var(--sp-primary-color);transform:scale(.9);transition:transform .3s;display:flex;flex-direction:column}
.sp-share-required-content{flex:1;overflow-y:auto;padding:5px 10px 5px 0;margin-right:-5px}
.sp-share-required-content::-webkit-scrollbar{width:8px}
.sp-share-required-content::-webkit-scrollbar-track{background:#1a1a1a;border-radius:4px;margin:10px 0}
.sp-share-required-content::-webkit-scrollbar-thumb{background:var(--sp-primary-color);border-radius:4px;border:2px solid #1a1a1a}
.sp-share-required-content::-webkit-scrollbar-thumb:hover{background:#d82323}
.sp-share-url-copy{padding:10px 20px;background:var(--sp-primary-color);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:background .3s;white-space:nowrap}
.sp-share-url-copy:hover{background:#d82323}
.sp-share-links-form,.sp-share-progress{margin:20px 0}
.sp-progress-bar{width:100%;height:8px;background:#333;border-radius:4px;overflow:hidden}
.sp-progress-fill{height:100%;background:linear-gradient(135deg,#facc15,#eab308);width:0%;transition:width .3s}
.sp-progress-text{text-align:center;margin-top:8px;font-size:14px;color:#888}
.sp-share-link-group{margin-bottom:15px}
.sp-share-link-group label{display:block;margin-bottom:5px;font-weight:700;color:#dbdbdb}
.sp-share-link-input{width:100%;padding:10px;border:1px solid #444;border-radius:6px;background:#2a2a2a;color:#dbdbdb;font-size:14px}
.sp-share-link-input.verified{border-color:#10b981}
.sp-share-link-input.invalid{border-color:#ef4444}
.sp-share-link-status{font-size:12px;margin-top:4px;min-height:16px}
.sp-share-link-status.verified{color:#10b981}
.sp-share-link-status.invalid{color:#ef4444}
.sp-share-link-status.loading{color:#facc15}
.sp-verify-button{width:100%;padding:12px;background:linear-gradient(135deg,#facc15,#eab308);color:#111;border:none;border-radius:8px;font-weight:600;font-size:16px;cursor:pointer;transition:.3s;margin-top:10px}
.sp-verify-button:hover:not(:disabled){background:linear-gradient(135deg,#fde047,#facc15);transform:translateY(-2px)}
.sp-verify-button:disabled{background:#666;cursor:not-allowed;transform:none}
.sp-share-success{text-align:center;padding:20px;background:#10b981;border-radius:10px;color:#fff;margin:20px 0}
.sp-share-success i{font-size:40px;margin-bottom:10px}
.sp-share-url-section{margin-top:20px;padding-top:20px;border-top:1px solid #333}
.sp-comments-section .comment-form-comment{margin-top:0;margin-bottom:20px}
.sp-comments-section #submit{margin-top:10px}
.sp-comments-section .comment-author{width:100%;margin-bottom:10px}
.sp-comments-section .comment-body{padding-top:10px}
.sp-comments-section .comment-content{padding-left:0;margin-top:10px}
.sp-comments-section .avatar{width:40px;height:40px}
.sp-comments-section .comment-form input[type=email],.sp-comments-section .comment-form input[type=text],.sp-comments-section .comment-form input[type=url],.sp-comments-section .comment-form textarea{background:#2a2a2a;border:1px solid #444;border-radius:5px;color:#dbdbdb;padding:12px 15px;width:100%;transition:.3s}
.sp-comments-section li:nth-child(n+2){border-top:2px solid #555!important;padding-top:20px!important;margin-top:20px!important}
.sp-comments-section .children li{border-top:none!important;padding-top:0!important;margin-top:0!important}
.sp-vip-alternative-message{background:linear-gradient(135deg,rgba(255,204,0,.15),rgba(255,204,0,.08));border-left:4px solid #facc15;padding:12px 15px;margin-bottom:20px;border-radius:0 6px 6px 0;text-align:center}
.sp-vip-alternative-text{margin:0;font-size:14px;color:#dbdbdb;line-height:1.4}
.sp-vip-alternative-link{color:#ebc014;font-weight:700;text-decoration:none;transition:.3s}
.sp-vip-alternative-link:hover{color:gold;text-decoration:none}
.sp-vip-crown-icon{color:#facc15;margin-right:5px}
.pais-con-bandera{display:inline-flex!important;align-items:center!important;gap:8px;line-height:1.2}
.bandera-pais{display:block!important;height:16px;width:auto;margin:0;padding:0;border-radius:2px}
.nombre-pais{display:inline-block;margin:0;padding:0}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .sp-movie-top-section {
        flex-direction: column;
        align-items: center;
    }
    
    .sp-movie-poster-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 302px;
        margin: 0 auto;
        min-height: auto;
    }
    
    .sp-movie-poster-container {
        min-height: 350px;
        max-height: 450px;
    }
    
    .sp-trailer-section {
        width: 100%;
        max-width: 302px;
        min-height: auto;
        aspect-ratio: 16/9;
    }
    
    .sp-trailer-player {
        min-height: auto;
        aspect-ratio: 16/9;
    }
    
    .sp-technical-sheet-grid.two-columns.has-scroll {
        grid-template-columns: 1fr;
    }
    
    .sp-technical-sheet-grid.two-columns.has-scroll::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .sp-movie-poster-section {
        max-width: 100%;
    }
    
    .sp-movie-poster-container {
        min-height: 300px;
        max-height: 400px;
    }
    
    .sp-trailer-section {
        max-width: 100%;
        min-height: auto;
        aspect-ratio: 16/9;
    }
    
    .sp-trailer-player {
        aspect-ratio: 16/9;
    }
    
    .sp-technical-popup-content {
        max-width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .sp-technical-sheet-grid.two-columns {
        grid-template-columns: 1fr;
    }
    
    .sp-technical-sheet-grid.two-columns::before {
        display: none;
    }
    
    .sp-technical-item {
        flex-direction: row;
        padding: 8px 0;
    }
    
    .sp-technical-label {
        min-width: 80px;
        font-size: 13px;
    }
    
    .sp-technical-value {
        font-size: 13px;
    }
    
    .sp-recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sp-recommended-thumbnail {
        height: 140px;
    }
    
    .sp-recommended-title {
        font-size: 12px;
    }
    
    .sp-title-actions-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* .sp-title-actions ya no se toca acá (ver nota más arriba en el
       archivo) -- width:100% rompía el layout nuevo, obligando a los
       botones a bajar a su propia fila completa en vez de quedarse junto
       al título. */
    
    .sp-bottom-section,
    .sp-content-section {
        flex-direction: column;
    }
    
    .sp-capturas-section,
    .sp-comments-section,
    .sp-recommended-section,
    .sp-sinopsis-section {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sp-movie-poster-container {
        min-height: 250px;
        max-height: 350px;
    }
    
    .sp-download-button-poster {
        font-size: 14px;
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .sp-technical-popup-content {
        max-width: 98%;
        padding: 15px;
        max-height: 92vh;
    }
    
    .sp-technical-popup-title {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .sp-technical-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        gap: 2px;
    }
    
    .sp-technical-label {
        min-width: unset;
        font-size: 12px;
    }
    
    .sp-technical-value {
        text-align: left;
        padding-left: 0;
        font-size: 13px;
        width: 100%;
    }
    
    .sp-recommended-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sp-recommended-thumbnail {
        height: 160px;
    }
    
    /* .sp-title-actions y los botones sueltos (.sp-report-button, etc.) ya
       no se tocan acá -- forzaban "flex-direction: column" y "width: 100%",
       rompiendo el layout nuevo (los botones deben quedarse junto al
       título, y el modo ícono-solo de móvil ya define su propio tamaño
       circular fijo en single-peliculas.css). */
    
    .sp-trailer-play-button {
        width: 60px;
        height: 60px;
    }
}

/* =============================================================================
   FACADE DEL REPRODUCTOR (poster + boton de play)
   =============================================================================
   Antes el iframe del servidor de video (externo) se cargaba automaticamente
   al entrar a la pagina. Ahora se muestra el poster con un boton de play y el
   iframe solo se crea cuando el usuario hace clic, para que la pagina no
   compita por ancho de banda con un sitio externo desde el primer segundo. */
.sp-player-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: #000;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.sp-player-facade-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.sp-player-facade:hover .sp-player-facade-poster {
    opacity: 0.7;
}

.sp-player-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 44, 44, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(255, 44, 44, 0.5);
}

.sp-player-facade:hover .sp-player-facade-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff2c2c;
    box-shadow: 0 0 30px rgba(255, 44, 44, 0.7);
}

@media (max-width: 768px) {
    .sp-player-facade-play {
        width: 60px;
        height: 60px;
    }
    .sp-player-facade-play svg {
        width: 24px;
        height: 24px;
    }
}


/* =============================================================================
   BOTONES "FAVORITOS" Y "VER MÁS TARDE" en la fila de acciones de los singles
   =============================================================================
   Mismo estilo exacto que Ficha Técnica/Compartir/Ver Tráiler (que viven
   anidados bajo .sp-yt-actions / .sp-series-actions / etc. según el tipo
   de contenido). En vez de repetir la anidación por cada uno de los 5
   tipos, se le da el estilo directo a estas 2 clases -- el resultado
   visual es idéntico, sin importar dentro de qué contenedor caigan. */
.sp-favoritos-button,
.sp-ver-mas-tarde-button {
    background: rgba(255, 255, 255, .1) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #e6e6e6 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.3s !important;
    /* Evita que el botón se achique y el texto se parta en 2 líneas
       ("Ver más" / "tarde") antes de que el JS decida si cabe entero o
       se va al menú de "⋮". */
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.sp-favoritos-button:hover,
.sp-ver-mas-tarde-button:hover {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

.sp-favoritos-button svg,
.sp-ver-mas-tarde-button svg {
    flex-shrink: 0;
}

/* Estado activo (ya guardado): fondo rojo sólido, igual criterio de color
   que usa el resto del sitio para "seleccionado/activo". */
.sp-favoritos-button.sp-list-btn-active,
.sp-ver-mas-tarde-button.sp-list-btn-active {
    background: #ff2c2c !important;
    color: #fff !important;
}

.sp-favoritos-button.sp-list-btn-active:hover,
.sp-ver-mas-tarde-button.sp-list-btn-active:hover {
    background: #d82323 !important;
}

.sp-favoritos-button:disabled,
.sp-ver-mas-tarde-button:disabled {
    opacity: 0.6 !important;
    cursor: default !important;
}

@media (max-width: 480px) {
    .sp-watchlist-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* =============================================================================
   WIDGET DE CALIFICACIÓN DE LA COMUNIDAD
   ============================================================================= */
.sp-rating-widget {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
}

.sp-rating-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sp-rating-title {
    font-size: 14px;
    font-weight: 600;
    color: #e6e6e6;
}

.sp-rating-summary {
    font-size: 14px;
    font-weight: 600;
    color: #ffc107;
}

.sp-rating-summary-empty {
    color: #a3a3a3;
    font-weight: 400;
    font-size: 13px;
}

.sp-rating-count {
    color: #a3a3a3;
    font-weight: 400;
}

.sp-rating-stars {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sp-rating-star {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #444;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease, transform 0.1s ease;
}

.sp-rating-star:hover {
    transform: scale(1.15);
}

.sp-rating-star-hover,
.sp-rating-star-active {
    color: #ffc107;
}

.sp-rating-star:disabled {
    cursor: default;
}

.sp-rating-mi-voto {
    margin: 10px 0 0;
    font-size: 13px;
    color: #a3a3a3;
}

.sp-rating-mi-voto strong {
    color: #ffc107;
}

.sp-rating-login-prompt {
    margin: 0;
    font-size: 13px;
    color: #a3a3a3;
}

.sp-rating-login-prompt a {
    color: #ff2c2c;
    text-decoration: none;
}

.sp-rating-login-prompt a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .sp-rating-star {
        font-size: 18px;
        padding: 3px;
    }
}

/* =============================================================================
   PALABRAS CLAVE (keywords de TMDB)
   ============================================================================= */
.sp-keywords-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 16px 0;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.sp-keywords-section::-webkit-scrollbar {
    height: 3px;
}

.sp-keywords-section::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sp-keywords-section::-webkit-scrollbar-thumb {
    background: var(--sp-primary-color);
    border-radius: 4px;
}

.sp-keywords-section::-webkit-scrollbar-thumb:hover {
    background: var(--sp-primary-hover);
}

.sp-keyword-pill {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a3a3a3;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

/* =============================================================================
   REPARTO Y DIRECCIÓN (con fotos de TMDB)
   ============================================================================= */
.sp-reparto-section {
    margin: 24px 0;
}

.sp-reparto-title {
    font-size: 16px;
    font-weight: 600;
    color: #e6e6e6;
    margin: 0 0 14px;
}

.sp-reparto-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Mismo estilo exacto que la barra de scroll vertical de todo el sitio
   (ver ::-webkit-scrollbar en header.css) -- misma variable de color,
   mismo radio, sólo cambia "width" por "height" porque acá el scroll es
   horizontal. */
.sp-reparto-scroll::-webkit-scrollbar {
    height: 4px;
}

.sp-reparto-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sp-reparto-scroll::-webkit-scrollbar-thumb {
    background: var(--sp-primary-color);
    border-radius: 4px;
}

.sp-reparto-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--sp-primary-hover);
}

.sp-reparto-item {
    flex: 0 0 auto;
    width: 108px;
    text-align: center;
    background: #1c1c1c;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px 8px 10px;
    transition: border-color .2s ease, transform .2s ease;
}

.sp-reparto-item:hover {
    border-color: #3a3a3a;
    transform: translateY(-2px);
}

.sp-reparto-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sp-reparto-item-link:hover .sp-reparto-nombre {
    color: #ff2c2c;
}

.sp-reparto-item-link:hover .sp-reparto-foto-wrapper {
    border-color: #ff2c2c;
}

.sp-boton-seguir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 10px;
    padding: 6px 6px;
    font-size: 11px;
    font-weight: 600;
    background: transparent;
    color: #a3a3a3;
    border: 1px solid #444;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sp-boton-seguir:hover {
    background: rgba(255, 44, 44, .12);
    border-color: #ff2c2c;
    color: #fff;
}

.sp-boton-seguir.sp-siguiendo {
    background: #ff2c2c;
    border-color: #ff2c2c;
    color: #fff;
}

.sp-boton-seguir.sp-siguiendo:hover {
    background: #d82323;
    border-color: #d82323;
}

.sp-reparto-foto-wrapper {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #141414;
    border: 2px solid #333;
    transition: border-color .2s ease;
}

.sp-reparto-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-reparto-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #555;
}

.sp-reparto-nombre {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #e6e6e6;
    line-height: 1.3;
    transition: color .2s ease;
}

.sp-reparto-rol {
    display: inline-block;
    font-size: 10px;
    color: #ff2c2c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-top: 5px;
    padding: 2px 8px;
    background: rgba(255, 44, 44, .12);
    border-radius: 999px;
}

/* =============================================================================
   BOTÓN "MI COLECCIÓN" (VIP) — mismo estilo que Favoritos/Ver más tarde
   ============================================================================= */
.sp-coleccion-button {
    background: rgba(255, 255, 255, .1) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #e6e6e6 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.sp-coleccion-button:hover {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

/* =============================================================================
   POPUP DE "MI COLECCIÓN"
   ============================================================================= */
.sp-coleccion-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Mismo patrón de animación que Ficha Técnica/Compartir: display se
       controla desde JS (con un pequeño truco de "forzar reflow" antes
       de agregar .activo, para que la transición sí se vea), acá sólo
       se anima la opacidad y la escala del contenido. */
    opacity: 0;
    transition: opacity .3s;
}

.sp-coleccion-popup-overlay.activo {
    display: flex;
    opacity: 1;
}

.sp-coleccion-popup-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9);
    transition: transform .3s;
}

.sp-coleccion-popup-overlay.activo .sp-coleccion-popup-content {
    transform: scale(1);
}

.sp-coleccion-popup-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

.sp-coleccion-lista {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    min-height: 40px;
}

.sp-coleccion-cargando {
    color: #a3a3a3;
    font-size: 13px;
    text-align: center;
    margin: 12px 0;
}

.sp-coleccion-vacio {
    color: #a3a3a3;
    font-size: 13px;
    text-align: center;
    margin: 12px 0;
}

.sp-coleccion-check-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-coleccion-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #e6e6e6;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.sp-coleccion-check-item:hover {
    background: rgba(255, 255, 255, .06);
}

.sp-coleccion-check-item span:first-of-type {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-coleccion-ver-link {
    color: #ff2c2c;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sp-coleccion-ver-link:hover {
    text-decoration: underline;
}

.sp-coleccion-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #ff2c2c;
    flex-shrink: 0;
}

.sp-coleccion-check-count {
    color: #a3a3a3;
    font-size: 12px;
}

.sp-coleccion-nueva {
    display: flex;
    gap: 8px;
    border-top: 1px solid #333;
    padding-top: 16px;
}

.sp-coleccion-nueva input {
    flex: 1;
    background: #141414;
    border: 1px solid #333;
    color: #e6e6e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.sp-coleccion-nueva button {
    background: #ff2c2c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.sp-coleccion-nueva button:hover {
    background: #d82323;
}

.sp-coleccion-nueva button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* =============================================================================
   CAMPOS ADICIONALES DE LA FICHA TÉCNICA (tagline, productoras, etc.)
   ============================================================================= */
.sp-popup-item-full {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
}

.sp-popup-tagline {
    font-style: italic;
    color: #a3a3a3 !important;
}