
/* ========================================
   DELAC HOME SLIDER
======================================== */

.streamvid-slider {
    --sv-accent: #8055ff;
    --sv-text: #ffffff;
    --sv-height: clamp(500px, 52vw, 760px);

    position: relative;
    width: 100%;
    height: var(--sv-height);
    min-height: 500px;
    overflow: hidden;
    isolation: isolate;
    color: var(--sv-text);
    background: #03051b;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.streamvid-slider,
.streamvid-slider * {
    box-sizing: border-box;
}

.streamvid-slider .sv-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.streamvid-slider .sv-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .65s ease, visibility .65s;
}

.streamvid-slider .sv-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* ========================================
   IMAGEN DE FONDO  */

.streamvid-slider .sv-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: var(--sv-background);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 6s ease;
    will-change: transform;
}

.streamvid-slider .sv-slide.is-active .sv-background {
    transform: scale(1);
}

/* Método alternativo con <img class="sv-slide-image"> */
.streamvid-slider .sv-slide-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Evitar conflictos con el contenido */
.streamvid-slider .sv-slide > .sv-overlay {
    z-index: 1;
}

.streamvid-slider .sv-slide > .sv-background,
.streamvid-slider .sv-slide > .sv-slide-image {
    z-index: 0;
}

/* ========================================
   DEGRADADO   */

.streamvid-slider .sv-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 5, 27, .98) 0%,
            rgba(3, 5, 27, .83) 27%,
            rgba(3, 5, 27, .35) 57%,
            rgba(3, 5, 27, .04) 100%
        ),
linear-gradient(
    0deg,
    #03051b 0%,
    #03051b 20%,
    rgba(3, 5, 27, .85) 40%,
    rgba(3, 5, 27, .45) 65%,
    transparent 100%
)
}

/* ========================================
   INFORMACIÓN  */

.streamvid-slider .sv-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(25px, 5vw, 85px);
    width: min(48%, 650px);
    max-height: calc(100% - 100px);
    overflow: hidden;
    transform: translateY(-55%);
}

.streamvid-slider .sv-type {
    display: inline-block;
    margin-bottom: 12px;
    color: #c1aaff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.streamvid-slider .sv-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.streamvid-slider .sv-meta,
.streamvid-slider .sv-genres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.streamvid-slider .sv-meta {
    margin-bottom: 15px;
}

.streamvid-slider .sv-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 7px;
    color: #fff;
    background: rgba(10, 12, 32, .35);
    font-size: 13px;
    font-weight: 600;
}

.streamvid-slider .sv-meta .sv-rating {
    border-color: #e8bd3e;
    color: #ffda57;
}

.streamvid-slider .sv-genres {
    margin-bottom: 20px;
}

.streamvid-slider .sv-genres span {
    padding: 8px 13px;
    border-radius: 5px;
    color: #fff;
    background: rgba(34, 35, 57, .88);
    font-size: 13px;
    font-weight: 600;
}

.streamvid-slider .sv-description {
    display: -webkit-box;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, .83);
    font-size: 15px;
    line-height: 1.7;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ========================================
   BOTONES  */

.streamvid-slider .sv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.streamvid-slider .sv-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s, filter .2s;
}

.streamvid-slider .sv-button:hover {
    color: #fff;
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.streamvid-slider .sv-play {
    background: linear-gradient(110deg, #6468ff, #9850f5);
    color: #fff;
}

.streamvid-slider .sv-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    color: #fff;
}

/* Favoritos del slider: solo icono */
.streamvid-slider .sv-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.streamvid-slider .sv-favorite > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: rgba(30, 31, 54, .88);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.streamvid-slider .sv-favorite .list-count-<?php echo 0; ?> {
    display: none;
}
.streamvid-slider .sv-favorite .tooltiptext,
.streamvid-slider .sv-favorite .list-count-<?php echo 0; ?> {
    display: none !important;
}
.streamvid-slider .sv-favorite .tooltip > span {
    display: none !important;
}
.streamvid-slider .sv-favorite .fa-heart {
    font-size: 21px;
    line-height: 1;
}
.streamvid-slider .sv-favorite > a.in-list {
    color: #ff4f81;
}
.streamvid-slider .sv-favorite > a:hover {
    color: #ff4f81;
}

/* ========================================
   MINIATURAS  */

.streamvid-slider .sv-thumbnails {
    position: absolute;
    z-index: 5;
    bottom: 25px;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: calc(100% - 30px);
    max-width: 100%;
    transform: translateX(-50%);
}

.streamvid-slider .sv-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}

.streamvid-slider .sv-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.streamvid-slider .sv-thumb.is-active {
    border-color: #fff;
    transform: scale(1.12);
}

.streamvid-slider .sv-thumb:focus-visible,
.streamvid-slider .sv-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* ========================================
   TABLET  MOVILES */

@media (max-width: 900px) {
    .streamvid-slider {
        --sv-height: 570px;
        min-height: 450px;
    }

    .streamvid-slider .sv-content {
        left: 28px;
        width: 58%;
    }

    .streamvid-slider .sv-title {
        font-size: 38px;
    }

    .streamvid-slider .sv-thumbnails {
        gap: 9px;
    }

    .streamvid-slider .sv-thumb {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 600px) {
    .streamvid-slider {
        height: 50vh;
        height: 50svh;
        min-height: 320px;
        max-height: 430px;
    }

    /* Imagen centrada: cubrir alto y ancho */
    .streamvid-slider .sv-background {
        background-position: center center;
        background-size: cover;
    }

    .streamvid-slider .sv-slide-image {
        object-fit: cover;
        object-position: center center;
    }

    .streamvid-slider .sv-overlay {
        background:
            linear-gradient(
                0deg,
                #03051b 0%,
                #03051b 5%,
                rgba(3, 5, 27, .98) 10%,
                rgba(3, 5, 27, .75) 35%,
                rgba(3, 5, 27, .25) 100%
            );
    }

    /* Contenido centrado */
    .streamvid-slider .sv-content {
        top: 50%;
        bottom: auto;
        left: 15px;
        width: calc(100% - 30px);
        max-height: calc(100% - 95px);
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transform: translateY(-58%);
        text-align: center;
    }

    .streamvid-slider .sv-type {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .streamvid-slider .sv-title {
        margin: 0 0 10px;
        font-size: clamp(23px, 6vw, 32px);
        line-height: 1.15;
        text-align: center;
    }

    .streamvid-slider .sv-meta {
        justify-content: center;
        gap: 5px;
        margin-bottom: 10px;
    }

    .streamvid-slider .sv-meta span {
        min-height: 25px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .streamvid-slider .sv-genres {
        justify-content: center;
        gap: 5px;
        margin-bottom: 0;
    }

    .streamvid-slider .sv-genres span {
        padding: 5px 8px;
        font-size: 10px;
    }

    /* Ocultar descripción */
    .streamvid-slider .sv-description {
        display: none;
    }

    /* Botones centrados */
    .streamvid-slider .sv-actions {
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }

    .streamvid-slider .sv-button {
        min-height: 42px;
        padding: 0 13px;
        border-radius: 9px;
        font-size: 12px;
    }

    .streamvid-slider .sv-play-icon {
        width: 21px;
        height: 21px;
    }

/* Miniaturas centradas abajo */
.streamvid-slider .sv-thumbnails {
    bottom: 12px;
    left: 0;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 5px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.streamvid-slider .sv-thumbnails::-webkit-scrollbar {
    display: none;
}

.streamvid-slider .sv-thumb {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

    
    .streamvid-slider .sv-favorite > a {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    .streamvid-slider .sv-favorite .fa-heart {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .streamvid-slider .sv-slide,
    .streamvid-slider .sv-background,
    .streamvid-slider .sv-button,
    .streamvid-slider .sv-thumb {
        transition: none;
    }
}




/* ========================================
   MODULO TOP TV MOVIES
======================================== */

.module .content #dt-tvshows-top.items {
    width: 100%;
    float: left;
    margin-bottom: 25px;
}

#dt-tvshows-top, #dt-movies-top {
    display: none;
}
#dt-tvshows-top .item {
    width: 100%!important;
}
#dt-movies-top .item {
    width: 100%!important;
}

.module .content .items .item .poster-top {
width: 100%;
height: 100%;
float: left;
position: relative;
overflow: hidden;
margin: 0;
padding-top: 100%;
border-radius: 6px
}
.module .content .items .item .poster-top .cont {
width: 100%;
height: 100%;
margin-top: -100%;
position: absolute;
-o-object-fit: cover;
object-fit: cover;
-webkit-transition: all .2s ease-in-out;
transition: all .2s ease-in-out
}


/* Número gigante detrás del póster */
.item .top-num {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    width: 60%;
    transform: translateY(-50%);
    letter-spacing: -9px;
    color: #eee;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 3px #ddd;
    font-size: clamp(96px, 12vw, 138px);
    font-weight: 300;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
}


/* Enlace del póster */
.item .top-poster-link {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 60%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Imagen del póster: relación 2:3 */
.item .top-poster-link img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.module .content .items .item .top-poster-link:hover img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-filter: blur(0) brightness(.3);
    filter: blur(0) brightness(.3)
}

.item .top-poster-link .see {
    position: absolute;
    inset: 0;
    z-index: 3;
}
.module .content .items .item .poster-top a:hover .see.play1 {
    background: url(img/play1.svg) 50% 50% no-repeat;
    background-size: 40% 40%
}
.module .content .items .item .poster-top a:hover .see.play2 {
    background: url(img/play2.svg) 50% 50% no-repeat;
    background-size: 40% 40%
}
.module .content .items .item .poster-top a:hover .see.play3 {
    background: url(img/play3.svg) 50% 50% no-repeat;
    background-size: 40% 40%
}
.module .content .items .item .poster-top a:hover .see.play4 {
    background: url(img/play4.svg) 50% 50% no-repeat;
    background-size: 40% 40%
}

@media screen and (max-width: 480px) {
    .item .poster-top {
        padding-top: 100%;
        height: auto;
    }
    .item .top-num {
        font-size: 90px;
        -webkit-text-stroke-width: 1.5px;
    }
}



/* ========================================
   MODULO GÉNEROS
======================================== */

.module .content #dt-genres-home.items {
    width: 100%;
    float: left;
    margin-bottom: 25px;
}

#dt-genres-home {
    display: none;
}
#dt-genres-home .item {
    width: 100%!important;
}


.module .content .items .item .genreshome {
    width: 100%;
    aspect-ratio: 16 / 9;
    float: left;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 6px;
}

.module .content .items .item .genreshome img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: all .2s ease-in-out;
}

.module .content .items .item .genreshome h2 {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: transform .2s ease-in-out;
}

.module .content .items .item .genreshome h2 a {
    color: #fff;
    text-decoration: none;
}

.module .content .items .item .genreshome .genrecontent {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.module .content .items .item .genreshome::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
    pointer-events: none;
    transition: background .2s ease-in-out;
}

.module .content .items .item .genreshome .see {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.module .content .items .item .genreshome:hover img {
    filter: brightness(.4);
    transform: scale(1.03);
}

.module .content .items .item .genreshome:hover h2 {
    transform: translateY(-22px);
}
.module .content .items .item .genreshome:hover .see.play1 {
    background: url(img/play1.svg) 50% 75% / 28px 28px no-repeat;
    opacity: 1;
}
.module .content .items .item .genreshome:hover .see.play2 {
    background: url(img/play2.svg) 50% 75% / 28px 28px no-repeat;
    opacity: 1;
}
.module .content .items .item .genreshome:hover .see.play3 {
    background: url(img/play3.svg) 50% 75% / 28px 28px no-repeat;
    opacity: 1;
}
.module .content .items .item .genreshome:hover .see.play4 {
    background: url(img/play4.svg) 50% 75% / 28px 28px no-repeat;
    opacity: 1;
}
