.msb-landing-video-v2 {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.msb-landing-video-v2__video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 10;
}

/* ── YouTube iframe – fill container, user can interact ── */
.msb-landing-video-v2__yt-wrap {
    position: absolute;
    inset: 0;
}

.msb-landing-video-v2__yt-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── MP4 video – cover, native controls visible ── */
.msb-landing-video-v2__mp4 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── Overlay ── */
.msb-landing-video-v2__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ── Sound button (top-right, above YouTube controls) ── */
.msb-landing-video-v2__sound-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.msb-landing-video-v2__sound-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: #fff;
}

.msb-landing-video-v2__sound-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.msb-landing-video-v2__sound-btn .icon-unmuted { display: none; }
.msb-landing-video-v2__sound-btn .icon-muted   { display: block; }

.msb-landing-video-v2__sound-btn.is-unmuted .icon-muted   { display: none; }
.msb-landing-video-v2__sound-btn.is-unmuted .icon-unmuted { display: block; }

/* ── UX Builder placeholder ── */
.msb-landing-video-v2__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    opacity: 0.6;
}

/* ── Play Button in Center ── */
.msb-landing-video-v2__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 21; /* higher than sound button which is 20 */
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.msb-landing-video-v2__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.msb-landing-video-v2__play-btn .icon-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.msb-landing-video-v2__play-btn .icon-play:before {
    content: no-open-quote;
}

/* Default SVG styling when no custom image is loaded */
.msb-landing-video-v2__play-btn svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.msb-landing-video-v2__play-btn .icon-play:not(:has(img)) {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 2px solid #fff;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Adjust SVG alignment specifically for play icon to look centered */
.msb-landing-video-v2__play-btn .icon-play svg {
    transform: translateX(2px);
}

.msb-landing-video-v2__play-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Play state toggling */
.msb-landing-video-v2.is-playing .msb-landing-video-v2__play-btn {
    opacity: 0;
    pointer-events: none;
}

/* ── Poster overlay styling ── */
.msb-landing-video-v2__poster {
    position: absolute;
    inset: 0;
    z-index: 15;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.msb-landing-video-v2.is-playing .msb-landing-video-v2__poster,
.msb-landing-video-v2.has-played .msb-landing-video-v2__poster {
    opacity: 0;
}
