/* Video Slider Uploader - Frontend Styles */

.vsu-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin: 0 auto;
}

.vsu-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.vsu-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.vsu-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.vsu-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.vsu-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    z-index: 3;
}

.vsu-sound-toggle {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    z-index: 6;
    white-space: nowrap;
    transition: background 0.3s ease;
}

/* Position variants - controlled by the sound_position shortcode attribute */
.vsu-pos-bottom-left {
    left: 14px;
    bottom: 14px;
}

.vsu-pos-bottom-right {
    right: 14px;
    bottom: 14px;
}

.vsu-pos-left-center {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.vsu-pos-right-center {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.vsu-sound-toggle:hover {
    background: rgba(0,0,0,0.8);
}

.vsu-sound-toggle.vsu-is-muted {
    animation: vsu-pulse 1.6s infinite;
}

.vsu-sound-icon {
    font-size: 14px;
    line-height: 1;
}

@keyframes vsu-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .vsu-slider-wrap {
        aspect-ratio: 9 / 12;
        border-radius: 0;
    }

    .vsu-sound-toggle {
        font-size: 12px;
        padding: 6px 12px;
    }

    .vsu-caption {
        font-size: 14px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .vsu-slider-wrap {
        aspect-ratio: 9 / 14;
    }
}
