.stbd-vlb,
.stbd-vlb * {
    box-sizing: border-box;
}

.stbd-vlb {
    --stbd-primary: #003b5c;
    --stbd-primary-dark: #062943;
    --stbd-accent: #08a9c4;
    --stbd-text: #173047;
    --stbd-muted: #5c6f7d;
    --stbd-card: #ffffff;
    --stbd-shadow: 0 18px 45px rgba(0, 59, 92, 0.16);
    font-family: inherit;
}

.stbd-vlb__section {
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
    align-items: center;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(0, 169, 196, 0.12), rgba(0, 59, 92, 0.08));
    box-shadow: var(--stbd-shadow);
    overflow: hidden;
}

.stbd-vlb__media {
    min-width: 0;
}

.stbd-vlb__thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #0b2438;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.stbd-vlb__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.stbd-vlb__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 59, 92, 0.28), rgba(8, 169, 196, 0.08));
}

.stbd-vlb__thumb:hover img,
.stbd-vlb__thumb:focus-visible img {
    transform: scale(1.04);
    opacity: 0.95;
}

.stbd-vlb__play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    background: linear-gradient(135deg, var(--stbd-accent), var(--stbd-primary));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.stbd-vlb__content h2 {
    margin: 0 0 14px;
    color: var(--stbd-primary-dark);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 800;
}

.stbd-vlb__content p {
    margin: 0 0 22px;
    color: var(--stbd-muted);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
}

.stbd-vlb__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: var(--stbd-primary-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 22px rgba(0, 59, 92, 0.18);
}

.stbd-vlb__button:hover,
.stbd-vlb__button:focus-visible {
    background: var(--stbd-primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 59, 92, 0.24);
}

.stbd-vlb--button {
    display: flex;
    margin: 18px 0;
}

.stbd-vlb-align--center.stbd-vlb--button {
    justify-content: center;
}

.stbd-vlb-align--left.stbd-vlb--button {
    justify-content: flex-start;
}

.stbd-vlb-align--right.stbd-vlb--button {
    justify-content: flex-end;
}

.stbd-vlb-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 18, 31, 0.86);
    backdrop-filter: blur(7px);
}

.stbd-vlb-modal.is-active {
    display: flex;
}

.stbd-vlb-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    animation: stbdVlbZoom 0.25s ease both;
}

.stbd-vlb-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.stbd-vlb-modal__close:hover,
.stbd-vlb-modal__close:focus-visible {
    background: rgba(255,255,255,0.18);
}

.stbd-vlb-modal__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.stbd-vlb-modal__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.stbd-vlb-lock {
    overflow: hidden;
}

@keyframes stbdVlbZoom {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 900px) {
    .stbd-vlb__section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
        margin: 36px auto;
    }

    .stbd-vlb__content {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .stbd-vlb__section {
        width: min(100% - 24px, 1120px);
        padding: 16px;
        border-radius: 20px;
        margin: 28px auto;
    }

    .stbd-vlb__thumb {
        border-radius: 16px;
    }

    .stbd-vlb__play {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .stbd-vlb__button {
        width: 100%;
        min-height: 46px;
        padding: 13px 18px;
        font-size: 14px;
    }

    .stbd-vlb-modal {
        padding: 14px;
    }

    .stbd-vlb-modal__close {
        top: -44px;
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .stbd-vlb-modal__video {
        border-radius: 14px;
    }
}

/* Optional themes selected from the admin settings page */
.stbd-vlb--dark {
    --stbd-primary: #14213d;
    --stbd-primary-dark: #0b1324;
    --stbd-accent: #2ec4b6;
    --stbd-text: #f8fafc;
    --stbd-muted: #dbe7ef;
    --stbd-card: #101b2f;
    --stbd-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.stbd-vlb--dark .stbd-vlb__section {
    background: linear-gradient(135deg, #101b2f, #14213d);
}

.stbd-vlb--dark .stbd-vlb__content h2,
.stbd-vlb--dark .stbd-vlb__content p {
    color: var(--stbd-text);
}

.stbd-vlb--dark .stbd-vlb__content p {
    color: var(--stbd-muted);
}

.stbd-vlb--light {
    --stbd-primary: #0f6f8f;
    --stbd-primary-dark: #173047;
    --stbd-accent: #08a9c4;
    --stbd-text: #173047;
    --stbd-muted: #5c6f7d;
    --stbd-card: #ffffff;
    --stbd-shadow: 0 14px 34px rgba(15, 111, 143, 0.12);
}

.stbd-vlb--light .stbd-vlb__section {
    background: #ffffff;
    border: 1px solid rgba(15, 111, 143, 0.12);
}
