.yt-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.yt-card img {
    width: 100%;
    display: block;
    border-radius: inherit;
}

/* dark overlay */
.yt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* play icon (triangle) */
.yt-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 24px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

/* hover effects */
.yt-card:hover {
    transform: scale(1.03);
}

.yt-card:hover::before {
    opacity: 1;
}

.yt-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
