/* ===== Hover-to-Preview Thumbnails CSS ===== */

/* Thumbnail zoom on hover */
.video-wrapper .video-thumb {
    overflow: hidden;
    position: relative;
}
.video-wrapper .video-thumb img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.video-wrapper:hover .video-thumb img {
    transform: scale(1.06);
}

/* Animated play button overlay on hover */
.video-wrapper .video-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 5;
    /* Play triangle via clip-path */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8,5.14V19.14L19,12.14L8,5.14Z'/%3E%3C/svg%3E");
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: 55% center;
}
.video-wrapper:hover .video-thumb::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Duration badge enhancement on hover */
.video-wrapper .vid-duration {
    transition: background 0.3s ease, transform 0.3s ease;
}
.video-wrapper:hover .vid-duration {
    background: rgba(0,0,0,0.85) !important;
    transform: scale(1.05);
}

/* Title highlight on hover */
.video-wrapper .video-title a {
    transition: color 0.2s ease;
}
.video-wrapper:hover .video-title a {
    color: #e91e63 !important;
}

/* Subtle shadow lift on card hover */
.video-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-wrapper:hover {
    transform: translateY(-3px);
}

/* Shorts thumbnails on homepage */
.video-wrapper.short .video-thumb img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-wrapper.short:hover .video-thumb img {
    transform: scale(1.06);
}
