/**
 * YouTube Lazy Load Styling
 */

.youtube-lazy-load {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.youtube-lazy-load img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.youtube-lazy-load:hover img {
    opacity: 0.8;
}

.youtube-lazy-load::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    z-index: 2;
    transition: background 0.3s ease;
}

.youtube-lazy-load:hover::before {
    background: rgba(255, 0, 0, 1);
}

.youtube-lazy-load::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    z-index: 3;
}

.youtube-lazy-load iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}