/* Commentator Swiper Styles */

/* Swiper container for >3 items */
.commentator-swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-commentators {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.slider-commentators .swiper-wrapper {
    display: flex;
    align-items: center;
    transition-property: transform;
}

.slider-commentators .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 12px) / 2);
    flex-shrink: 0;
    min-width: 0;
}

@media (min-width: 640px) {
    .slider-commentators .swiper-slide {
        width: calc((100% - 16px) / 2);
    }
}

@media (min-width: 1024px) {
    .slider-commentators .swiper-slide {
        width: calc((100% - 20px) / 2);
    }
}

.slider-commentators .swiper-slide a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Navigation buttons */
[class*="commentator-prev"],
[class*="commentator-next"] {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

[class*="commentator-prev"]:hover,
[class*="commentator-next"]:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: #FF6601;
}

[class*="commentator-prev"].swiper-button-disabled,
[class*="commentator-next"].swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Pagination - Hidden */
.slider-commentators .swiper-pagination {
    display: none !important;
}

/* Single item layout - full width */
.commentator-single-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Two items layout - centered */
.commentator-two-items {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .slider-commentators {
        padding: 0 12px;
    }
}

@media (min-width: 1024px) {
    .slider-commentators {
        padding: 0 16px;
    }
    
    [class*="commentator-prev"],
    [class*="commentator-next"] {
        width: 32px;
        height: 32px;
    }
}

/* Hide pagination if only 2-3 slides visible (when slidesPerView = 2) */
.slider-commentators .swiper-pagination:has(.swiper-pagination-bullet:only-child) {
    display: none;
}

