#yt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#yt-lightbox.yt-open {
    opacity: 1;
    pointer-events: auto;
}

.yt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.yt-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90vw, 960px);
    aspect-ratio: 16/9;
    transform: translate(-50%, -50%) scale(0.96);
    transition: transform 0.25s ease;
    background: #000;
}

#yt-lightbox.yt-open .yt-modal {
    transform: translate(-50%, -50%) scale(1);
}

.yt-video {
    width: 100%;
    height: 100%;
}

.yt-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.yt-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 28px;
    background: none;
    color: white;
    border: 0;
    cursor: pointer;
}

.yt-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    pointer-events: none;
}

.yt-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.0rem;
    background: #ffffff;
    color: #000;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
    font: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background-color 0.15s ease;
}

.yt-wrapper:hover .yt-play-btn {
    background: #c6c6c6;
}

.yt-wrapper:active .yt-play-btn {
    background: #dcdcdc;
}

.yt-play-icon {
    width: 0;
    height: 0;
    border-left: 10px solid #000;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}