.btn-close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.btn-close-video:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video {
    position: relative;
    display: none;
}

.video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-links {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    flex-wrap: nowrap;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-links.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease forwards;
}

.video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.video-links.show .video-link {
    animation: fadeInScale 0.4s ease forwards;
}

.video-links.show .video-link:nth-child(1) {
    animation-delay: 0.1s;
}

.video-links.show .video-link:nth-child(2) {
    animation-delay: 0.2s;
}

.video-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-link-youtube {
    border: 1px solid #FF0000;
}

.icon-youtube {
    background-image: url(//oss.snappdown.com/prod/datatool/img/main/icons/youtube.svg);
    background-size: 26px 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-bilibili {
    background-image: url(//oss.snappdown.com/prod/datatool/img/main/icons/bilibili.jpg);
    background-size: 26px 26px;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
    .video-links {
        flex-direction: row;
        gap: 12px;
    }

    .video-link {
        width: 32px;
        height: 32px;
    }
}
