/* Video thumbnail với nút play overlay */
.video_thumbnail {
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 16px;
}

.video_thumbnail:hover {
    opacity: 0.9;
}

.video-slider {
    margin-left: 0;
}

.video-button img {
    width: 48px;
    height: 48px;
}

.video-button {
    gap: 24px;
}

.avatar img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

/* Nút play overlay */
.video_thumbnail::after {
    content: url('../../../../img/icons/play.svg');
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Hover effect */
.video_thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video_thumbnail:hover::before {
    transform: translate(-40%, -50%) scale(1.1);
}

/* Popup YouTube */
.youtube-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-popup.active {
    display: flex;
    opacity: 1;
}

.youtube-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s ease;
}

.youtube-popup-close:hover {
    opacity: 0.7;
}

.video-card-wrapper {
    flex: 1;
}

.video-slider .swiper-slide {
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .video_thumbnail::after {
        width: 60px;
        height: 60px;
    }

    .video_thumbnail::before {
        border-left: 15px solid white;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
    }

    .youtube-popup-content {
        width: 95%;
    }
}