/* ==========================================
   VIDEO THUMBNAIL STYLES - CINEMATIC CARD STYLE
   Wide 16:9 aspect ratio with badges
   ========================================== */

/* Video Thumbnail - Cinematic Wide Style */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 20px;
    /* Rounded corners as per design */
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.portfolio-card:hover .video-thumbnail {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .video-thumbnail img {
    transform: scale(1.08);
    /* Slight zoom on hover */
}

/* Badges */
.badge-youtube {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-duration {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Video Overlay - Gradient only, no play button by default */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            transparent 50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.portfolio-card:hover .video-overlay {
    opacity: 0.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-thumbnail {
        border-radius: 16px;
    }

    .badge-youtube,
    .badge-duration {
        top: 12px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .badge-youtube {
        left: 12px;
    }

    .badge-duration {
        right: 12px;
    }
}