/* Container */
.custom-insor-shorts-slider {
    width: 100%;
    position: relative;
    padding-bottom: 70px;
    /* Space for play/pause buttons below the items */
}

/* Item */
.custom-insor-shorts-slider .item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.custom-insor-shorts-slider .insor-short-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    position: relative;
}

.custom-insor-shorts-slider .insor-short-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Magia: forzará la miniatura a ocupar todo sin bordes negros */
    background-position: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.custom-insor-shorts-slider .play-overlay {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-insor-shorts-slider .insor-short-thumbnail:hover .play-overlay {
    transform: scale(1.1);
}

.custom-insor-shorts-slider .insor-short-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.custom-insor-shorts-slider .insor-short-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.custom-insor-shorts-slider .insor-short-title {
    display: none !important;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    /* Let clicks pass through to YouTube */
    z-index: 3;
}

/* Nav arrows (reusing the circular premium style) */
.custom-insor-shorts-slider .owl-theme .owl-nav {
    margin: 0;
    position: static;
}

.custom-insor-shorts-slider button.owl-prev,
.custom-insor-shorts-slider button.owl-next {
    position: absolute;
    top: 45%;
    /* Slightly above center looks better for portrait */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 2.5em !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100;
    transition: all 0.3s ease;
}

.custom-insor-shorts-slider button.owl-prev span,
.custom-insor-shorts-slider button.owl-next span {
    display: block;
    line-height: 1;
    position: relative;
    top: -3px;
}

.custom-insor-shorts-slider button.owl-prev {
    left: -25px;
}

.custom-insor-shorts-slider button.owl-next {
    right: -25px;
}

.custom-insor-shorts-slider button.owl-prev:hover,
.custom-insor-shorts-slider button.owl-next:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #000 !important;
    border-color: #fff !important;
}

.custom-insor-shorts-slider button:focus {
    outline: 0;
}

/* Controls Play / Pause Circulares */
.custom-insor-shorts-slider .caja-play-pause {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-insor-shorts-slider .insor-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #333;
    /* Since it's below items, maybe solid color is better. Lets use the previous #f1f1f1 with grey text or match the dark ones */
    background-color: #f1f1f1;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 0;
}

.custom-insor-shorts-slider .insor-btn i {
    margin: 0;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    color: #25368b;
}

.custom-insor-shorts-slider .insor-btn-play i {
    margin-left: 3px !important;
    margin-top: 5px !important;
}

.custom-insor-shorts-slider .insor-btn-stop i {
    margin-left: 0 !important;
    margin-top: 5px !important;
}

.custom-insor-shorts-slider .insor-btn:hover {
    background-color: #ddd;
    color: #000;
}

/* Responsive (Mobile view) */
@media (max-width: 768px) {
    .custom-insor-shorts-slider button.owl-prev {
        left: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.5em !important;
    }

    .custom-insor-shorts-slider button.owl-next {
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.5em !important;
    }
}