#video-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: auto;
    z-index: 9999;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition for transform and opacity */
    cursor: pointer;
}

#video-container.expanded {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0;
    cursor: default;
    max-width: 100%;
}

#video {
    width: 100%;
    height: auto;
    display: block;
}

#video-container.expanded #video {
    height: 100%;
}

#close-lightbox {
    position: absolute;
    top: 3px;
    right: 3px;
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#close-lightbox.hidden {
    display: none;
}

#close-lightbox svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #video-container {
        width: 150px;
        bottom: 10px;
        right: 10px;
    }

    #close-lightbox {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 400px) {
    #video-container {
        width: 100px;
        padding: 0;
    }

    #close-lightbox {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }
}