.wr_video {
    width: 100%;
}

.wr_video_frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.wr_video_frame iframe,
.wr_video_frame video,
.wr_video_frame .wr_video_player,
.wr_video_frame .wr_video_poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wr_video_frame video {
    object-fit: contain;
    background: #000000;
}

.wr_section_img .wr_video_frame .wr_video_poster {
    object-fit: cover;
    z-index: 2;
}

.wr_video_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.wr_video_overlay_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(8, 22, 78, 0.85);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.wr_video_overlay_icon .wr_icon {
    width: 40px;
    height: 40px;
}

.wr_video_overlay:hover .wr_video_overlay_icon {
    background: #08164E;
}

.wr_video.is-started .wr_video_poster,
.wr_video.is-started .wr_video_overlay {
    display: none;
}

.wr_video_controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.wr_video_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 18px;
    border: 2px solid #08164E;
    border-radius: 4px;
    background: #ffffff;
    color: #08164E;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.wr_video_btn:hover {
    background: #08164E;
    color: #ffffff;
}

.wr_video_btn:focus-visible,
.wr_banner_toggle:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #ffffff;
}

.wr_icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.wr_video_btn .wr_icon_pause,
.wr_video_btn .wr_icon_muted,
.wr_video.is-playing .wr_video_btn .wr_icon_play,
.wr_video.is-muted .wr_video_btn .wr_icon_sound,
.wr_video_overlay .wr_icon_pause,
.wr_banner_toggle .wr_icon_pause,
.wr_banner_toggle.is-playing .wr_icon_play {
    display: none;
}

.wr_video.is-playing .wr_video_btn .wr_icon_pause,
.wr_video.is-muted .wr_video_btn .wr_icon_muted,
.wr_banner_toggle.is-playing .wr_icon_pause {
    display: block;
}

.main_banner .carousel-item .wr_banner_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main_banner .carousel-item .wr_banner_video.is-ready {
    opacity: 1;
}

.wr_banner_toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(8, 22, 78, 0.85);
    color: #ffffff;
    cursor: pointer;
}

.wr_banner_toggle:hover {
    background: #08164E;
}

@media (prefers-reduced-motion: reduce) {
    .main_banner .carousel-item .wr_banner_video {
        transition: none;
    }
}
