

/* Start:/local/templates/main/components/bitrix/news.list/video_list/style.css?17848929244820*/
/* ===== Список видео ===== */
.video-section {
    padding: 0 150px 0 150px;
}

@media (max-width: 767px) {
    .video-section {
        padding: 15px;
    }
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.video-list__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.video-list__item:hover {
    transform: translateY(-4px);
}

.video-list__thumbnail {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}
.video-list__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #2a2a2a;
    display: block;
}

.video-list__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-list__play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #ff0000;
    margin-left: 4px;
}

.video-list__title {
    font-size: 18px;
    margin: 12px 15px 6px;
    font-weight: 600;
}
.video-list__date {
    font-size: 13px;
    color: #888;
    margin: 0 15px 15px;
}

/* ===== Модальное окно (без изменений) ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.video-modal--open {
    display: flex;
}
.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}
.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.video-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    padding: 0 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.video-modal__close:hover {
    background: rgba(255,255,255,0.4);
}
.video-modal__player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}
.video-modal__video {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Детальная страница (если используется) ===== */
.video-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.video-detail__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a2e;
}
.video-detail__date {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.video-detail__player-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.video-detail__video {
    width: 100%;
    height: 100%;
    display: block;
}
.video-detail__description {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}
.video-detail__error {
    padding: 40px;
    text-align: center;
    color: #999;
    background: #f5f5f5;
    border-radius: 8px;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .video-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px 0;
    }
    .video-list__title {
        font-size: 16px;
    }
    .video-list__play-icon {
        width: 50px;
        height: 50px;
    }
    .video-list__play-icon::after {
        border-width: 12px 0 12px 20px;
    }
    .video-modal__content {
        width: 95%;
    }
    .video-modal__close {
        font-size: 28px;
        top: 5px;
        right: 10px;
    }
}
@media (max-width: 480px) {
    .video-list {
        grid-template-columns: 1fr; /* на очень маленьких экранах — одна колонка */
    }
    .video-list__title {
        font-size: 14px;
    }
    .video-list__play-icon {
        width: 40px;
        height: 40px;
    }
    .video-list__play-icon::after {
        border-width: 10px 0 10px 16px;
    }
    .video-modal__close {
        font-size: 24px;
        top: 2px;
        right: 6px;
    }
}
/* End */
/* /local/templates/main/components/bitrix/news.list/video_list/style.css?17848929244820 */
