/* 🎡 КАРУСЕЛЬ ВИДЕО - ПОЛНАЯ ШИРИНА ЭКРАНА */

.video-carousel-container {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
}

.video-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.video-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out;
    padding: 0 60px; /* Отступы для кнопок */
    will-change: transform;
}

.carousel-video-item {
    flex: 0 0 280px;
    width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-video-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.carousel-video-card {
    background: rgba(42, 42, 42, 0.95);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    height: 100%;
}

.carousel-video-item:hover .carousel-video-card {
    border-color: #e50914;
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.5);
}

.carousel-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #000;
}

.carousel-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-video-item:hover .carousel-video-thumbnail img {
    transform: scale(1.1);
}

.carousel-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.carousel-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-video-item:hover .carousel-video-play-overlay {
    opacity: 1;
}

.carousel-video-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.carousel-video-info {
    padding: 1rem;
}

.carousel-video-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.carousel-video-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #999;
}

.carousel-video-stats i {
    color: #e50914;
}

/* Кнопки навигации */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e50914 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .carousel-video-item {
        flex: 0 0 240px;
        width: 240px;
    }
}

@media (max-width: 768px) {
    .carousel-video-item {
        flex: 0 0 200px;
        width: 200px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .video-carousel {
        gap: 1rem;
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .carousel-video-item {
        flex: 0 0 160px;
        width: 160px;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}
