/* ---- backUrl ---- */
.vb-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #919191;
    font-size: 14px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 25px;
    transition: color 0.2s;
}

.vb-back:hover { color: #555; }

.vb-back__arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 34px;
    height: 8px;
    flex-shrink: 0;
    margin-right: 8px;
}

.vb-back__arrow-icon {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    transform: rotate(180deg);
    color: #919191;
    transition: color 0.2s;
}

.vb-back:hover .vb-back__arrow-icon { color: #555; }

.vb-back__arrow-line {
    background: #919191;
    height: 2px;
    position: absolute;
    left: 1px;
    top: 3px;
    right: calc(100% - 18px);
    transition: right 0.5s ease;
}

.vb-back:hover .vb-back__arrow-line { right: calc(100% - 34px); }

.vb-back__text {
    padding-left: 8px;
}

/* ---- Сетка видео — 2 колонки ---- */
.vb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 70px;
    list-style: none;
    margin: 10px 30px 0px;
    padding: 0;
}

.vb-grid__item {
    list-style: none;
}

.vb-grid__item::before,
.vb-grid__item::after {
    display: none;
    content: none;
}

/* ---- Карточка видео ---- */
.vb-video__player {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
    cursor: pointer;
}

/* Превью как span с background */
.vb-video__thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    border-radius: 4px;
}

.vb-video__player:hover .vb-video__thumb {
    transform: none;
}

.vb-video__thumb--placeholder {
    background: linear-gradient(145deg, #1e3a5f 0%, #0d2240 100%);
}

/* Кнопка play */
.vb-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.vb-video__play svg {
    width: 94px;
    height: 94px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.vb-video__player:hover .vb-video__play svg {
    transform: scale(1.15);
}

/* Iframe после клика на play */
.vb-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 4px;
}

/* Прямой iframe без превью — курсор обычный */
.vb-video__player--direct {
    cursor: default;
}

/* Нативное видео — появляется после клика, стили через JS */

/* ---- Пагинация (скрытая — только для JS) ---- */
.vb-pagination {
    margin-top: 24px;
}

.vb-empty {
    color: #888;
    font-size: 15px;
}

@media (max-width: 767px) {
    .vb-grid { grid-template-columns: 1fr; }
}