.lw-product-video-wrap[hidden],
.lw-product-video[hidden] {
    display: none !important;
}

.lw-product-video-wrap {
    margin-top: 24px;
}

.lw-video-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.lw-video-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.lw-video-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f5f7;
    box-shadow: 0 12px 30px rgba(18, 27, 42, .12);
}

.lw-video-card__poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.lw-video-card:hover .lw-video-card__poster {
    transform: scale(1.035);
}

.lw-video-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), transparent 34%),
        linear-gradient(135deg, #f1f5f9, #d8e1ea 55%, #cbd5df);
}

.lw-video-card__placeholder-label {
    position: relative;
    z-index: 1;
    max-width: calc(100% - 24px);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: #273142;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.lw-video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0,0,0,.68);
    box-shadow: 0 16px 35px rgba(0,0,0,.3);
}

.lw-video-card__play::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
}

.lw-video-card__badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.lw-video-card__title {
    display: block;
    margin-top: 8px;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.lw-video-popup-open {
    overflow: hidden;
}

.lw-video-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.lw-video-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(8px);
}

.lw-video-popup__dialog {
    position: relative;
    z-index: 2;
    width: min(1040px, calc(100vw - 28px));
    margin: 5vh auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 80px rgba(0,0,0,.45);
}

.lw-video-popup__player {
    display: block;
    width: 100%;
    max-height: 84vh;
    background: #000;
}

.lw-video-popup__loading {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #111;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.lw-video-popup__caption {
    padding: 12px 18px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.lw-video-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #111;
    font-size: 30px;
    line-height: 42px;
    cursor: pointer;
}

.lw-video-popup__nav {
    position: absolute;
    left: 50%;
    bottom: 54px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.lw-video-popup__dot {
    min-width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    cursor: pointer;
}

.lw-video-popup__dot.is-active {
    background: #fff;
    font-weight: 700;
}

@media (max-width: 600px) {
    .lw-video-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lw-video-card__media {
        border-radius: 12px;
    }

    .lw-video-card__play {
        width: 46px;
        height: 46px;
    }

    .lw-video-card__play::before {
        left: 20px;
        top: 15px;
    }

    .lw-video-popup__dialog {
        width: calc(100vw - 16px);
        margin: 8vh auto;
        border-radius: 14px;
    }
}