/**
 * ProductVideo Upload - Front CSS
 * Clean video player without branding
 */

.product-videos-upload {
    margin: 20px 0;
}

.product-videos-upload .video-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Video wrapper */
.product-videos-upload .video-item-wrap {
    display: none;
}

.product-videos-upload .video-item-wrap.active {
    display: block;
}

/* Clean video player */
.productvideo-wrapper.productvideo-clean {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.productvideo-player {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
}

/* Custom controls styling (when using controls attribute) */
.productvideo-player::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.productvideo-player::-webkit-media-controls-play-button,
.productvideo-player::-webkit-media-controls-mute-button,
.productvideo-player::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.2);
}

/* Video navigation */
.video-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.video-nav-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.video-nav-btn:hover {
    border-color: #333;
}

.video-nav-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Shortcode container */
.product-video-shortcode {
    margin: 20px 0;
}

.product-video-shortcode .video-item {
    margin-bottom: 20px;
}

.product-video-shortcode .video-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .video-nav {
        justify-content: center;
    }

    .video-nav-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .productvideo-player {
        max-height: 50vh;
    }
}
