.cyf-video-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.cyf-video-grid[data-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cyf-video-grid[data-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cyf-video-grid[data-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cyf-video {
    position: relative;
    overflow: hidden;
}

.cyf-video-thumbnail {
    position: relative;
    cursor: pointer;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.cyf-video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.cyf-video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    margin: 0;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyf-video-thumbnail:hover .cyf-video-title {
    opacity: 1;
}

.cyf-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
    background-size: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyf-video-thumbnail:hover .cyf-play-icon {
    opacity: 0.8;
}

.cyf-load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.cyf-load-more:hover {
    background: #005177;
}

.cyf-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cyf-lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.cyf-lightbox iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.cyf-lightbox-close {
    position: absolute;
    top: -30px;
    right: -30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}