

/* Start:/bitrix/templates/uralradio/components/bitrix/news.list/video_list/style.css?17803211374156*/
/* Стили видеогалереи (video_list) */

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 16, 20, 0.35);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s ease;
    z-index: 2;
}

.video-play-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B00, #FF8A00);
    color: #FFFBF9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background-color 0.3s;
}

/* Центрирование иконки треугольника */
.video-play-button svg {
    margin-left: 3px;
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Эффекты наведения (Hover) на всю карточку */
.video-gallery-cell:hover .video-play-overlay {
    background: rgba(12, 16, 20, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.video-gallery-cell:hover .video-play-button {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.6);
    background: linear-gradient(135deg, #FF7B1A, #FF991A);
}

.video-gallery-cell:hover .video-play-button svg {
    transform: scale(1.05);
}

/* Дополнительный тег Видео */
.video-duration-tag {
    background-color: rgba(255, 107, 0, 0.15);
    color: #FF8A00 !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
}

.theme-light .video-duration-tag {
    background-color: rgba(255, 107, 0, 0.1);
    color: #E05E00 !important;
}



/* Адаптивные стили под мобильные разрешения */
@media (max-width: 768px) {
    .video-play-button {
        width: 48px;
        height: 48px;
    }
    .video-play-button svg {
        width: 16px;
        height: 16px;
        margin-left: 2px;
    }
}

/* --- Настройки всплывающего окна (Inline Lightbox) --- */

/* 1. Очищаем стили оберток GLightbox */
.glightbox-container .gslide-inline,
.glightbox-container .ginlined-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    box-shadow: none !important;
    width: 100% !important;
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Идеальная математически выверенная обертка для iframe */
.video-iframe-wrapper {
    position: relative;
    /* 
       Ширина выбирается как МИНИМАЛЬНОЕ из:
       1. 100% доступной ширины контейнера (для узких экранов)
       2. 900px (максимальный размер плеера на десктопе)
       3. 85vh * 16/9 (чтобы плеер пропорционально сжимался, если экран слишком низкий)
    */
    width: min(100%, 900px, calc(85vh * 16 / 9));
    aspect-ratio: 16 / 9;
    background: #000;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

/* Для старых браузеров (fallback) */
@supports not (aspect-ratio: 16 / 9) {
    .video-iframe-wrapper {
        padding-top: 56.25%; 
        height: 0;
    }
}

/* 3. Сам iframe */
.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    background: #000 !important;
}

/* End */
/* /bitrix/templates/uralradio/components/bitrix/news.list/video_list/style.css?17803211374156 */
