/* ================================================================
   Manshi Video Carousel v2.0.0 — style.css
   Accent default: #C0392B
================================================================ */

/* ── Wrapper ── */
.mvc2-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* ── Swiper ── */
.mvc2-swiper {
    width: 100%;
    overflow: hidden !important;
    padding-bottom: 44px !important;
    box-sizing: border-box;
}

/* ── Slide inner ── */
.mvc2-inner {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #161616;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    transition: transform .3s ease, box-shadow .3s ease;
}
.mvc2-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(192,57,43,.25);
}

/* ── Placeholder ── */
.mvc2-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f4f4f4;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: default;
}
.mvc2-ph-icon { font-size: 38px; margin-bottom: 8px; line-height: 1; }
.mvc2-ph p    { font-size: 13px; color: #999; text-align: center; margin: 0; line-height: 1.5; }

/* ── Video / Poster ── */
.mvc2-video, .mvc2-poster {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
    pointer-events: none;
}

/* ── Hover overlay ── */
.mvc2-overlay {
    position: absolute;
    inset: 0; z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background .3s;
}
.mvc2-inner:hover .mvc2-overlay { background: rgba(0,0,0,.42); }

/* ── Play button ── */
.mvc2-play {
    width: 58px; height: 58px;
    border-radius: 50%;
    border: 2.5px solid #C0392B;
    background: rgba(255,255,255,.92);
    color: #C0392B;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.72);
    transition: opacity .3s, transform .3s;
    box-shadow: 0 4px 18px rgba(192,57,43,.4);
    pointer-events: none;
}
.mvc2-play svg { margin-left: 3px; }
.mvc2-inner:hover .mvc2-play { opacity: 1; transform: scale(1); }
@media (hover: none) { .mvc2-play { opacity: .85; transform: scale(1); } }

/* ── Caption ── */
.mvc2-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.72));
    color: #fff;
    font-size: 13px; font-weight: 500;
    text-align: center;
}

/* ── Arrows ── */
.mvc2-arrow {
    position: absolute;
    top: 44%; transform: translateY(-50%);
    z-index: 10;
    width: 42px; height: 42px;
    border-radius: 50%; border: none;
    background: #fff;
    color: #C0392B;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    transition: background .2s, color .2s, transform .2s;
    padding: 0; outline: none;
}
.mvc2-prev { left: -4px; }
.mvc2-next { right: -4px; }
.mvc2-arrow:hover { background: #C0392B; color: #fff; transform: translateY(-50%) scale(1.1); }
.mvc2-arrow.swiper-button-disabled { opacity: .35; cursor: default; }

/* ── Dots ── */
.mvc2-dots { bottom: 6px !important; }
.mvc2-dots .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: #C0392B; opacity: .3;
    transition: opacity .2s, transform .2s;
}
.mvc2-dots .swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.35);
    background: #C0392B !important;
}

/* ================================================================
   POPUP MODAL
================================================================ */
.mvc2-modal {
    position: fixed; inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 5vh, 70px) 16px 16px;
    pointer-events: none;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility .3s;
}
.mvc2-modal.mvc2-open {
    pointer-events: all;
    visibility: visible; opacity: 1;
}

/* Overlay bg */
.mvc2-ov-bg {
    position: absolute; inset: 0;
    background: var(--ov, rgba(0,0,0,.88));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Modal box */
.mvc2-box {
    position: relative; z-index: 1;
    width: 100%; max-width: var(--pw, 900px);
    background: #0d0d0d;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(192,57,43,.18);
}

/* Animations */
.mvc2-box.mvc2-anim-zoom  { transform: scale(.8); opacity: 0; transition: transform .38s cubic-bezier(.175,.885,.32,1.275), opacity .3s; }
.mvc2-modal.mvc2-open .mvc2-box.mvc2-anim-zoom  { transform: scale(1); opacity: 1; }

.mvc2-box.mvc2-anim-fade  { opacity: 0; transition: opacity .38s; }
.mvc2-modal.mvc2-open .mvc2-box.mvc2-anim-fade  { opacity: 1; }

.mvc2-box.mvc2-anim-slide { transform: translateY(-60px); opacity: 0; transition: transform .38s ease, opacity .3s; }
.mvc2-modal.mvc2-open .mvc2-box.mvc2-anim-slide { transform: translateY(0); opacity: 1; }

/* Close btn */
.mvc2-close {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,.5);
    border: 1.5px solid rgba(255,255,255,.22);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .25s;
    padding: 0; outline: none;
}
.mvc2-close:hover { background: #C0392B; border-color: #C0392B; transform: rotate(90deg); }
.mvc2-close svg { fill: currentColor; }

/* 16:9 video */
.mvc2-vid-wrap {
    position: relative; width: 100%;
    padding-top: 56.25%; background: #000;
}
.mvc2-modal-vid {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; background: #000; display: block;
}

/* Caption */
.mvc2-modal-cap {
    margin: 0; padding: 10px 18px;
    font-size: 13px; color: rgba(255,255,255,.7);
    text-align: center;
}
.mvc2-modal-cap:empty { display: none; }

/* Responsive */
@media (max-width: 767px) {
    .mvc2-prev { left: 0; }
    .mvc2-next { right: 0; }
    .mvc2-modal { align-items: center; padding-top: 16px; }
}
