.yfv-container-j316 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.yfv-video {
    width: 270px;
    height: 100%;
    margin: auto;
}

.yfv-thumb-contain {
    width: 270px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 150px;
    border-radius: 5px;
}

.yfv-thumb {
    width: 100%;
    position: absolute;
    top: -26px;
}

.yfv-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.yfv-link {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.yfv-link:hover .yfv-play-button {
    transition: opacity 2s ease;
    opacity: 1 !important;    
}

.yfv-title {
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

.yfv-date {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-style: italic;
}

.yfv-failed {
    text-align: center;
    padding: 10px;
    background: white;
    border-left: solid 4px red;
}

@media (min-width: 768px) {
    .yfv-container-j316 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .yfv-container-j316 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.yfv-lightbox {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.yfv-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.yfv-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.yfv-lightbox iframe {
    width: 100%;
    height: 100%;
}

.yfv-close {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}