/* Wrapper */
.nt-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    perspective: 1200px; /* Enable 3D space */
}

/* Swiper container */
.nt-video-swiper {
    overflow: hidden;
    padding: 40px 0 60px;
}

.nt-video-swiper .swiper-wrapper {
    align-items: center;
    transform-style: preserve-3d;
}

/* Slide - Default state (Sides) */
.nt-video-swiper .swiper-slide {
    width: 60%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
    opacity: var(--nt-video-side-opacity, 0.5) !important;
    filter: brightness(0.8);
    transform: scale(var(--nt-video-side-scale, 0.85)); /* Scale down by default */
    z-index: 1;
    transform-style: preserve-3d;
}

/* Active slide - Highlighted in front */
.nt-video-swiper .swiper-slide-active {
    opacity: 1 !important;
    filter: brightness(1);
    transform: scale(1) !important; /* Full size */
    z-index: 10; /* Bring to front */
}

/* Tucking effect for side slides */
.nt-video-swiper .swiper-slide-prev {
    transform: translateX(18%) scale(var(--nt-video-side-scale, 0.85)) !important;
}

.nt-video-swiper .swiper-slide-next {
    transform: translateX(-18%) scale(var(--nt-video-side-scale, 0.85)) !important;
}

/* Hide other slides */
.nt-video-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    opacity: 0 !important;
    pointer-events: none;
}

/* Video Card */
.nt-video-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    z-index: 2;
}
.nt-video-card__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.nt-video-card__video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.nt-video-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.nt-video-card__placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

/* Play button */
.nt-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.nt-video-card__play svg {
    width: 28px;
    height: 28px;
    fill: rgba(0, 0, 0, 0.3);
    margin-left: 4px;
    transition: fill 0.3s ease;
}

.nt-video-card__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--nt-primary, #e91010);
}

.nt-video-card__play:hover svg {
    fill: #fff;
}

/* Hide play button on non-active slides */
.nt-video-swiper .swiper-slide:not(.swiper-slide-active) .nt-video-card__play {
    opacity: 0;
    pointer-events: none;
}

/* Iframe container */
.nt-video-card__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nt-video-card__iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.nt-video-card.is-playing .nt-video-card__iframe {
    opacity: 1;
    pointer-events: auto;
}

.nt-video-card.is-playing .nt-video-card__play,
.nt-video-card.is-playing img {
    opacity: 0;
    pointer-events: none;
}

/* Navigation arrows */
.nt-video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nt-video-nav:hover {
    background: var(--nt-primary, #e91010);
    transform: translateY(-50%) scale(1.1);
}

.nt-video-nav i {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.nt-video-nav:hover i {
    color: #fff;
}

.nt-video-nav--prev {
    left: 20px;
}

.nt-video-nav--next {
    right: 20px;
}

.nt-video-nav.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Pagination dots */
.nt-video-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.nt-video-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.nt-video-pagination .swiper-pagination-bullet-active {
    background: var(--nt-primary, #e91010);
    transform: scale(1.2);
}

/* Responsive Tweaks */
@media (max-width: 849px) {
    .nt-video-card__play {
        width: 60px;
        height: 60px;
    }
    .nt-video-card__play svg {
        width: 22px;
        height: 22px;
    }
    .nt-video-nav {
        width: 40px;
        height: 40px;
    }
    .nt-video-nav svg {
        width: 14px;
        height: 14px;
    }
    .nt-video-nav--prev {
        left: 10px;
    }
    .nt-video-nav--next {
        right: 10px;
    }
}

@media (max-width: 549px) {
    .nt-video-swiper {
        padding: 20px 0 40px;
    }
    .nt-video-card__play {
        width: 50px;
        height: 50px;
    }
    .nt-video-card__play svg {
        width: 18px;
        height: 18px;
        margin-left: 3px;
    }
    .nt-video-nav {
        display: none;
    }
}
