/* YouTube-like Video Preview Styles for Retina Testimonials */
.testi-card__video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    border-radius: 8px;
}

.testi-card__play-btn-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
    pointer-events: auto;
}

.testi-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.testi-card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.2s ease;
    width: 80px;
    height: 80px;
    pointer-events: auto;
}

.testi-card__preview-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.testi-card__video-wrap:hover .testi-card__preview-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.testi-card__video-wrap.is-loaded .testi-card__play-btn-bg,
.testi-card__video-wrap.is-loaded .testi-card__play-btn,
.testi-card__video-wrap.is-loaded .testi-card__preview-controls,
.testi-card__video-wrap.is-loaded .testi-card__overlay {
    display: none;
}

.testi-card__video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testi-card__play-btn {
        width: 60px;
        height: 60px;
    }

    .testi-card__preview-controls {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
        padding: 12px;
        gap: 8px;
        flex-wrap: wrap;
        pointer-events: auto;
    }
}