/**
 * Video Slider - Frontend styles
 */

.videoslider-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #000;
}

.videoslider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.videoslider-videos {
    position: relative;
    width: 100%;
    height: 100%;
}

.videoslider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 0;
}

.videoslider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.videoslider-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.videoslider-video-wrapper iframe,
.videoslider-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.videoslider-video-wrapper iframe {
    pointer-events: none;
}

.videoslider-slide.active .videoslider-video-wrapper iframe {
    pointer-events: auto;
}

/* Button - bottom center */
.videoslider-button {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.videoslider-button:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation buttons */
.videoslider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videoslider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.videoslider-prev {
    left: 12px;
}

.videoslider-next {
    right: 12px;
}

.videoslider-nav svg {
    width: 24px;
    height: 24px;
}

/* Progress bar */
.videoslider-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.6);
}

.videoslider-progress-bar {
    flex: 1;
}

.videoslider-progress-track {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.videoslider-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.videoslider-dots {
    display: flex;
    gap: 6px;
}

.videoslider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.videoslider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.videoslider-dot.active {
    background: #fff;
}
