/* Hover Video Player Styles */

.model-showcase-video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

/* Play icon overlay on thumbnail */
.video-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
}

.model-showcase-video:hover .video-play-indicator {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

.video-play-indicator svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

/* Ensure video container maintains aspect ratio */
.model-showcase-video::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-thumbnail,
.hover-video {
    position: absolute;
    top: 0;
    left: 0;
}

/* New homepage card hover video */
.hv-model-featured-media,
.hv-model-card-media {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hv-model-featured-media .hover-video,
.hv-model-card-media .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

.hv-model-featured-media .hv-model-thumb,
.hv-model-card-media .hv-model-thumb {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.5s ease;
    z-index: 2;
    position: relative;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-play-indicator {
        width: 50px;
        height: 50px;
    }
    
    .video-play-indicator svg {
        width: 20px;
        height: 20px;
    }
}
