.yt-grid-container-474744c9 {
    width: 100%;
}

.yt-grid-474744c9 {
    display: grid;
    grid-gap: 24px;
}

.yt-grid-item-474744c9 {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.yt-thumb-474744c9 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yt-grid-item-474744c9::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.yt-grid-item-474744c9:hover::after {
    opacity: 0.8;
}

.yt-grid-item-474744c9:hover .yt-thumb-474744c9 {
    transform: scale(1.05);
}

.yt-play-btn-474744c9 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.yt-grid-item-474744c9:hover .yt-play-btn-474744c9 {
    background: #FF0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox Styles */
.yt-lightbox-474744c9 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.admin-bar .yt-lightbox-474744c9 {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .yt-lightbox-474744c9 {
        top: 46px;
    }
}

.yt-lightbox-474744c9.active {
    opacity: 1;
    pointer-events: auto;
}

.yt-lightbox-content-474744c9 {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
}

.yt-lightbox-content-474744c9 iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.yt-lightbox-close-474744c9 {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.yt-error-474744c9 {
    color: #ff0000;
    padding: 20px;
    border: 1px solid #ff0000;
    border-radius: 4px;
    text-align: center;
}
