/* Обертка секции */
.video-section-wrapper {
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

/* Заголовок, кнопка и Стрелки */
.video-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Группа: Заголовок + Кнопка Rutube */
.video-title-group {
    display: flex;
    align-items: center;
    gap: 16px; /* Отступ из фигмы */
    flex-wrap: wrap;
}

.video-section-title {
    color: #292A2A;
    font-size: 40px;
    font-weight: 600;
    margin: 0;
}

/* Блок-кнопка "Подписывайтесь на наш Rutube канал" */
.rutube-channel-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F3F4F5; /* var(--BG-Gray) */
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 22.40px;
    color: #292A2A; /* var(--Text-Dark) */
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.rutube-channel-btn:hover {
    background: #E7E9EB; /* немного темнее при наведении */
    text-decoration: none;
    color: #292A2A;
}

.rutube-channel-accent {
    color: #00B1BA; /* var(--Accent-Default) */
}

/* Стрелки */
.video-nav-arrows {
    display: flex;
    gap: 12px;
}

.video-arrow-btn {
    width: 48px;
    height: 48px;
    background: #F3F4F5;
    border-radius: 32px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    color: #00B1BA;
    font-size: 16px;
    flex-shrink: 0;
}

.video-arrow-btn:hover {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Контейнер слайдера */
.video-slider-container {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.video-slider-container::-webkit-scrollbar { 
    display: none; 
}

.video-slider-track {
    display: flex;
    gap: 20px;
}

/* Карточка видео */
.video-card {
    flex-shrink: 0;
    width: 325px;
    height: 580px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.video-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
    z-index: 1;
}

/* Кнопка Play */
.video-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.30);
    border: 1.38px solid rgba(255, 255, 255, 0.20);
    border-radius: 9999px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.3s;
}

.video-card:hover .video-play-circle {
    background: rgba(255, 255, 255, 0.50);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Треугольник внутри кнопки Play */
.play-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

/* Модальное окно */
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
}

/* === АДАПТИВ === */
@media (max-width: 1024px) {
    .video-card {
        width: 280px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .video-section-title {
        font-size: 28px;
    }
    
    .rutube-channel-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .video-arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .video-card {
        width: 240px;
        height: 420px;
    }
}

@media (max-width: 480px) {
    .video-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .video-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .rutube-channel-btn {
        width: 100%;
        justify-content: flex-start;
    }
    
    .video-nav-arrows {
        align-self: flex-end;
    }
    
    .video-card {
        width: 280px;
        height: 500px;
    }
}