/* ================================================================
   Блок "Наши видеообзоры" (video-reviews)
   Подключается из /local/include/video-review/index.php
   ================================================================ */

.video-reviews {
    margin-top: 60px;
    margin-bottom: 60px;
}
.video-reviews__title {
    margin-bottom: 15px;
}
.video-reviews__layout {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

/* --- Левая колонка: миниатюры + стрелки --- */
.video-reviews__thumbs-col {
    flex: 0 0 333px;
    max-width: 333px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
/* Слайдер должен тянуться на всю ширину колонки */
.video-reviews__thumbs-slider {
    align-self: stretch;
}

/* Стрелки навигации (сверху / снизу) */
.video-reviews__arrow {
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.video-reviews__arrow:hover {
    transform: scale(1.2);
    opacity: 1;
}
.video-reviews__arrow--prev {
    background-image: url(/local/templates/public2016/images/svg/arrow-banner-swiper-left_new.svg);
    transform: rotate(90deg);
}
.video-reviews__arrow--prev:hover {
    transform: rotate(90deg) scale(1.2);
}
.video-reviews__arrow--next {
    background-image: url(/local/templates/public2016/images/svg/arrow-banner-swiper-right_new.svg);
    transform: rotate(90deg);
}
.video-reviews__arrow--next:hover {
    transform: rotate(90deg) scale(1.2);
}
.video-reviews__arrow.swiper-button-disabled {
    opacity: 0.25;
    cursor: default;
}

/* Слайдер: 2 превью 16:9 + зазор 15px */
.video-reviews__thumbs-slider {
    flex: 0 0 390px;
    width: 100%;
    height: 390px;
    max-height: 390px;
    overflow: hidden !important;
    padding-right: 12px;
    box-sizing: border-box;
}
.video-reviews__thumbs-slider .swiper-wrapper {
    height: 100% !important;
    max-height: 100% !important;
}

/* Карточка миниатюры (без текста) */
.video-reviews__thumb {
    cursor: pointer;
    border-radius: 24px;
    border: none;
    background: #f8f8f8;
    transition: box-shadow .25s ease;
    height: auto !important;
    box-sizing: border-box;
    overflow: hidden;
}
.video-reviews__thumb:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.video-reviews__thumb--active {
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Область превью (16:9) */
.video-reviews__thumb-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f8f8;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-reviews__thumb-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* Скроллбар */
.video-reviews__thumbs-slider .swiper-scrollbar {
    right: 2px;
    width: 5px;
    background: rgba(35, 94, 69, 0.10);
    border-radius: 3px;
}
.video-reviews__thumbs-slider .swiper-scrollbar-drag {
    background: #235E45;
    border-radius: 3px;
}

/* --- Правая колонка: плеер --- */
.video-reviews__player-col {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    align-content: center;
}
.video-reviews__player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 24px;
    overflow: hidden;
}
.video-reviews__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================================================
   Адаптив
   ================================================================ */

/* Планшеты (≤1140px) */
@media screen and (max-width: 1140px) {
    .video-reviews__thumbs-col {
        flex: 0 0 280px;
        max-width: 280px;
    }
    .video-reviews__thumbs-slider {
        height: 330px;
        max-height: 330px;
    }
}

/* Мобильные (≤980px): видео сверху, миниатюры снизу */
@media screen and (max-width: 980px) {
    .video-reviews {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .video-reviews__title {
        margin-bottom: 20px;
    }
    .video-reviews__layout {
        flex-direction: column;
        gap: 16px;
    }

    .video-reviews__player-col {
        flex: none;
        width: 100%;
        order: 1;
    }
    .video-reviews__player {
        height: 0;
        padding-bottom: 56.25%;
    }

    .video-reviews__thumbs-col {
        flex: none;
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        order: 2;
    }
    .video-reviews__thumbs-slider {
        flex: 1;
        height: auto;
        max-height: none;
        padding-right: 0;
        overflow: hidden !important;
    }
    .video-reviews__thumbs-slider .swiper-wrapper {
        flex-direction: row !important;
        height: auto !important;
        max-height: none !important;
    }
    .video-reviews__thumbs-slider .swiper-slide {
        height: auto !important;
    }
    .video-reviews__thumb {
        width: auto;
        flex-shrink: 0;
        border-radius: 10px;
        height: auto !important;
    }
    .video-reviews__thumb-img {
        aspect-ratio: 16/9;
        border-radius: 10px;
    }

    .video-reviews__thumbs-slider .swiper-scrollbar {
        display: none;
    }

    .video-reviews__arrow {
        width: 20px;
        height: 20px;
    }
    .video-reviews__arrow--prev {
        transform: rotate(0deg);
    }
    .video-reviews__arrow--prev:hover {
        transform: rotate(0deg) scale(1.2);
    }
    .video-reviews__arrow--next {
        transform: rotate(0deg);
    }
    .video-reviews__arrow--next:hover {
        transform: rotate(0deg) scale(1.2);
    }
}