#video-modal [data-modal-body] {
    width: min(92vw, 760px, calc((100dvh - 230px) * 16 / 9));
    min-width: min(92vw, 280px);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    background: transparent;
}

#video-modal [data-modal-close] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
}

#video-modal-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

#video-modal-recommendations {
    padding: 16px 0 0;
    background: transparent;
    color: #fff;
}

#video-modal-more-heading {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

#video-modal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 170px));
    gap: 16px;
}

.animation-video-option {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.animation-video-option img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.animation-video-option span {
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
}

.animation-video-option:hover {
    border-color: #0b5edd;
}

.animation-video-option:focus-visible {
    outline: 3px solid #3fa9f5;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    #video-modal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #video-modal-recommendations {
        padding: 14px 0 0;
    }
}
