/* Custom High-Quality Video Thumbnails */
.case-simple-video {
    position: relative !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
    background: var(--neutral-900) !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    cursor: pointer;
}

/* High-quality thumbnail image */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

/* Play button overlay */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* SVG Play Icon */
.video-play-btn svg {
    width: 40px;
    height: 40px;
    color: var(--primary-600);
    margin-left: 4px; /* Center the play icon visually */
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

/* When video is loaded (iframe replaces thumbnail) */
.case-simple-video iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
}

/* Hide thumbnail and play button when iframe is loaded */
.case-simple-video.video-loaded .video-thumbnail,
.case-simple-video.video-loaded .video-play-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .video-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .video-play-btn i {
        font-size: 1.5rem;
    }
}
