.yt-lazy {
    max-width: 100%;
    margin: 1.5rem auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

/* Thumbnail image styling */
.yt-lazy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Hover effect for thumbnail */
.yt-lazy:hover img {
    opacity: 0.85;
}

/* Play button styling */
.yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    background: #ff0000;
    border-radius: 14px;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hover effect for play button */
.yt-lazy:hover .yt-play {
    background: #cc0000;
}

/* Play icon inside button */
.yt-play::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 15px;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent white;
}

/* Ensures iframe fills the player container properly */
.yt-lazy iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
