/* ── Wrapper для позиционирования стрелок ── */
.hrh-youtube-feed-wrap {
    position: relative;
    padding: 0 50px;
}

/* ── Отступы между карточками ── */
.hrh-youtube-feed .posts-item {
    padding: 0 15px;
}

/* ── Сбрасываем отрицательный margin из .news_list темы ── */
ul.hrh-youtube-feed.news_list {
    margin: 0;
}

/* ── Play button поверх картинки ── */
.hrh-youtube-feed .posts-item-image {
    position: relative;
}

.hrh-youtube-feed .posts-item-image a {
    display: block;
    position: relative;
    overflow: hidden;
}

.hrh-youtube-feed .posts-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hrh-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: none;
}

.hrh-play-btn i {
    color: #fff;
    font-size: 20px;
    margin-left: 4px;
}

.hrh-youtube-feed .posts-item-image a:hover .hrh-play-btn {
    background: #002e5b;
}

/* ── Контейнер стрелок — относительно wrapper ── */
.hrh-youtube-feed.owl-carousel .owl-controls {
    pointer-events: none !important;
    position: static;
}

/* ── Стрелки ── */
.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30%;
    pointer-events: none;
}

.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-prev,
.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-next {
    pointer-events: all;
    visibility: visible !important;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #bac1c6;
    color: #bac1c6;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    /* убираем двойную иконку от темы */
    font-size: 16px !important;
}

/* Скрываем ::before который тема добавляет автоматически */
.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-prev:before,
.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-next:before {
    display: none !important;
}

.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-prev {
    left: -50px;
}

.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-next {
    right: -50px;
}

.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-prev:hover,
.hrh-youtube-feed.owl-carousel .owl-controls .owl-nav .owl-next:hover {
    border-color: #002e5b;
    background: #002e5b;
    color: #fff;
}

/* ── YouTube video popup ── */
.hrh-video-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrh-video-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.hrh-video-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.hrh-video-close {
    position: absolute;
    top: -44px; right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
}

.hrh-video-close:hover { opacity: 1; }
