/* ==============================
   LFB Vimeo Carousel — Frontend
   ============================== */

*, *::before, *::after { box-sizing: border-box; }

.lfb-cv-wrap {
    width: 100%;
    padding: 2rem 0;
}

.lfb-cv-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.lfb-cv-track {
    display: flex;
    gap: 30px;
    will-change: transform;
}

.lfb-cv-track.lfb-animated {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Slide --- */
.lfb-cv-slide {
    flex: 0 0 auto;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #111;
}

.lfb-cv-iframe-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lfb-cv-iframe-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    transition: transform 0.5s ease;
    border: none;
    pointer-events: none;
}

.lfb-cv-slide:hover .lfb-cv-iframe-wrap iframe {
    transform: translate(-50%, -50%) scale(1.07);
}

.lfb-cv-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
}

/* --- Play button --- */
.lfb-cv-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.lfb-cv-slide:hover .lfb-cv-play {
    opacity: 1;
}

.lfb-cv-play-btn {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lfb-cv-play-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 4px;
}

/* --- Arrows --- */
.lfb-cv-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 1.5rem;
}

.lfb-cv-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.25);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    color: #111;
    padding: 0;
}

.lfb-cv-arrow:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.4);
}

.lfb-cv-arrow:active {
    transform: scale(0.95);
}

.lfb-cv-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Modal --- */
.lfb-cv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.lfb-cv-modal.lfb-open {
    display: flex;
}

.lfb-cv-modal-inner {
    position: relative;
    width: min(90vw, 1200px);
    height: min(calc(90vw * 864 / 1200), calc(100vh - 80px));
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.lfb-cv-modal-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#lfbCvModalFrame {
    width: 100%;
    height: 100%;
    position: relative;
}

.lfb-cv-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.lfb-cv-close svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .lfb-cv-slide {
        border-radius: 20px;
    }
    .lfb-cv-wrap {
        padding: 1rem 0;
    }
    .lfb-cv-modal-inner {
        border-radius: 12px;
        width: 95vw;
        height: calc(95vw * 864 / 1200);
    }
}
