.video-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
}
.carousel__wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel__wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc(25% - 12px); 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Proporción 9:16 vertical */
.item__figure {
    position: relative;
    width: 100%;
    padding-bottom: 177.7%; 
    background-color: #0d0d0d;
    overflow: hidden; /* CLAVE: corta todo lo que sobresalga */
    margin: 0 0 10px 0;
    cursor: pointer;
}
.item__figure img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(237, 247, 38, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 2;
}
.play-overlay svg {
    filter: brightness(0) invert(8%) sepia(97%) saturate(2978%) hue-rotate(233deg) brightness(40%) contrast(110%) !important;
}
.item__figure:hover .play-overlay {
    background: rgba(237, 247, 38, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.item__title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

.carousel__navigation {
    display: none;
    justify-content: space-between;
    margin-top: 15px;
}
.arrow {
    background: var(--co-alt);
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

/* =========================================================
    HACK para ocultar el clipchoice del SDK:
    El player-master-container es un 14% más alto que su padre
    (.item__figure), que tiene overflow:hidden.
    El clipchoice queda fuera del área visible y se recorta.
    ========================================================= */
#player-master-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 114%; /* Más alto que el padre para empujar el clipchoice fuera */
    z-index: 3;
}

#vp-wrapper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
}

/* Forzar aspect ratio portrait al wrapper interno del SDK */
#vp-wrapper-container [id$="-responsive"] {
    padding-top: 177.78% !important;
}

#vp-wrapper-container [id$="-wrapper"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    #slider-track {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch;
        gap: 16px; 
        padding-left: 16px;
        padding-right: 40px; 
        box-sizing: border-box;
    }

    .carousel-item {
        flex: 0 0 82%; 
        scroll-snap-align: start; 
        white-space: normal; 
    }
    
    #slider-track::-webkit-scrollbar { display: none; }
    #slider-track {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}