/* Video Slider Pro - Frontend Styles */
/* Video Button */
.vsp-video-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255 255 255 / 10%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    background-color: rgb(240 240 255 / 10%) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.vsp-video-button:hover {
    background: white;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.vsp-video-button:active {
    transform: translateX(-50%) translateY(-1px);
}

.vsp-slider-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.vsp-video-swiper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: visible;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.vsp-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    transform: scale(0.85);
}

.swiper-slide-active.vsp-slide {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}


.swiper-slide-prev.vsp-slide::after,
.swiper-slide-next.vsp-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(240, 240, 255, 0.12);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	z-index: 2;
	pointer-events: none;
	border-radius: 16px;
}
.swiper-slide-prev.vsp-slide,
.swiper-slide-next.vsp-slide {
    opacity: 0.8;
    transform: scale(0.92);
}

.vsp-video-container {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 16;
    max-height: 650px;
}

.vsp-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Styles */
.vsp-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Title Overlay */
.vsp-video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 18px;
    font-weight: 600;
    z-index: 5;
    text-align: center;
}

/* Custom Video Controls */
.vsp-video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}

.vsp-video-wrapper:hover .vsp-video-controls {
    opacity: 1;
}

.vsp-play-pause-btn,
.vsp-mute-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    border-radius: 50%;
}

.vsp-play-pause-btn:hover,
.vsp-mute-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.vsp-play-pause-btn:active,
.vsp-mute-btn:active {
    transform: scale(0.95);
}

/* YouTube/Vimeo Thumbnail Styles */
.vsp-video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background-color: #000;
}

.vsp-play-button {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.vsp-video-thumbnail:hover .vsp-play-button {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.85);
}

.vsp-play-button svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Navigation Buttons */
.vsp-nav-btn {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.vsp-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.vsp-nav-btn::after {
    font-size: 20px !important;
    font-weight: bold;
    color: #333;
}

.swiper-button-prev.vsp-nav-btn {
    left: 20px;
}

.swiper-button-next.vsp-nav-btn {
    right: 20px;
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swiper-button-disabled:hover {
    transform: scale(1);
}

/* Pagination */
.swiper-pagination {
    bottom: -5px !important;
    position: relative;
    margin-top: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Dynamic Bullets */
.swiper-pagination-bullet-active-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vsp-video-container {
        max-height: 550px;
    }
    
    .vsp-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .vsp-nav-btn::after {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .vsp-slider-wrapper {
        padding: 30px 15px;
    }
    
    .vsp-video-container {
        max-height: 500px;
        border-radius: 15px;
    }
    
    .vsp-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .vsp-nav-btn::after {
        font-size: 16px;
    }
    
    .swiper-button-prev.vsp-nav-btn {
        left: 10px;
    }
    
    .swiper-button-next.vsp-nav-btn {
        right: 10px;
    }
    
    .vsp-video-title {
        font-size: 16px;
        padding: 20px 15px 15px;
    }
    
    .vsp-play-button {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .vsp-slider-wrapper {
        padding: 20px 10px;
    }
    
    .vsp-video-container {
        max-height: 450px;
        border-radius: 12px;
    }
    
    .vsp-slide {
        transform: scale(0.9);
    }
    
    .swiper-slide-active.vsp-slide {
        transform: scale(1);
    }
    
    .vsp-video-title {
        font-size: 14px;
    }
    
    .vsp-video-controls {
        bottom: 15px;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .vsp-play-pause-btn,
    .vsp-mute-btn {
        padding: 6px;
    }
    
    .vsp-play-pause-btn svg,
    .vsp-mute-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Loading State */
.vsp-video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vsp-spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.vsp-video-wrapper.loading::before {
    opacity: 1;
}

@keyframes vsp-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

.vsp-slide * {
    user-select: none;
    -webkit-user-select: none;
}

/* Custom scrollbar for webkit browsers (optional) */
.vsp-slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* Ensure proper aspect ratio is maintained */
@supports (aspect-ratio: 9 / 16) {
    .vsp-video-container {
        aspect-ratio: 9 / 16;
    }
}

@supports not (aspect-ratio: 9 / 16) {
    .vsp-video-container::before {
        content: '';
        display: block;
        padding-top: 177.78%; /* 16:9 ratio */
    }
    
    .vsp-video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}