/* Home page reels slider ("Trending now") — see template-parts/reels.php */

.bc-reels {
    padding: 20px 0;
}

.bc-reels__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.bc-reels__heading {
    font-family: 'Spectral', serif;
    color: #E3A63A;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -1px;
    text-align: center;
    margin: 0 0 20px;
}

.bc-reels__wrap {
    position: relative;
}

.bc-reel {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.bc-reel__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-reel__open {
    position: absolute;
    inset: 0;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-reel__play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.bc-reel__open:hover .bc-reel__play {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.5);
}

.bc-reel__info {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
}

.bc-reel__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bc-reel__title {
    font-family: 'Spectral', serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-reel__price {
    font-size: 12px;
    opacity: 0.9;
}

.bc-reel__price del {
    opacity: 0.7;
    margin-right: 4px;
}

.bc-reel__price ins {
    text-decoration: none;
}

.bc-reel__arrow {
    font-size: 12px;
    flex-shrink: 0;
}

.bc-reels__nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #254343;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-reels__prev {
    left: -15px;
}

.bc-reels__next {
    right: -15px;
}

.bc-reels__nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

.bc-reels__nav.swiper-button-lock {
    display: none;
}

@media (min-width: 640px) {
    .bc-reels {
        padding: 40px 0;
    }

    .bc-reels__inner {
        padding: 0 40px;
    }

    .bc-reels__heading {
        font-size: 40px;
        letter-spacing: -2px;
        margin-bottom: 32px;
    }

    .bc-reel__title {
        font-size: 16px;
    }

    .bc-reel__price {
        font-size: 14px;
    }

    .bc-reels__nav {
        width: 40px;
        height: 40px;
    }

    .bc-reels__prev {
        left: -20px;
    }

    .bc-reels__next {
        right: -20px;
    }
}

/* ---------- Popup (plays with sound) ---------- */

html.bc-reel-modal-open {
    overflow: hidden;
}

.bc-reel-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.bc-reel-modal[hidden] {
    display: none;
}

.bc-reel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.bc-reel-modal__box {
    position: relative;
    height: min(90vh, 780px);
    aspect-ratio: 9 / 16;
    max-width: calc(100vw - 32px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.bc-reel-modal__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.bc-reel-modal__paused {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    padding-left: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.bc-reel-modal.is-paused .bc-reel-modal__paused {
    display: flex;
}

.bc-reel-modal__close,
.bc-reel-modal__mute {
    position: absolute;
    top: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-reel-modal__close {
    right: 12px;
}

.bc-reel-modal__mute {
    left: 12px;
}

.bc-reel-modal__info .bc-reel__info {
    left: 12px;
    right: 12px;
    bottom: 12px;
}

.bc-reel-modal__nav {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #254343;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Phones: video fills the screen, arrows sit on top of it. */
@media (max-width: 639px) {
    .bc-reel-modal {
        gap: 0;
    }

    .bc-reel-modal__box {
        height: 100%;
        max-width: 100%;
        width: 100%;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .bc-reel-modal__video {
        object-fit: contain;
    }

    .bc-reel-modal__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.85);
    }

    .bc-reel-modal__prev {
        left: 8px;
    }

    .bc-reel-modal__next {
        right: 8px;
    }
}
