/* =============================================
   Hero Video — shared styles
   Used by: homepage hero, text-formatter "See it in action" section
   ============================================= */
.hero-video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    aspect-ratio: 16 / 9;
}
.hero-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shared base for the floating mute / play-pause buttons. */
.hero-video-control-btn {
    position: absolute;
    bottom: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, background 0.2s ease, transform 0.2s ease;
}
.hero-video-control-btn.visible {
    opacity: 0.75;
    pointer-events: auto;
}
.hero-video-control-btn.visible:hover,
.hero-video-control-btn.visible:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.08);
    outline: none;
}
.hero-video-control-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.6);
}

.hero-video-mute-btn { right: 10px; }
.hero-video-playpause-btn { left: 10px; }

.hero-video-mute-btn .icon-unmuted { display: none; }
.hero-video-mute-btn[data-muted="false"] .icon-muted { display: none; }
.hero-video-mute-btn[data-muted="false"] .icon-unmuted { display: block; }

.hero-video-playpause-btn .icon-play { display: none; }
.hero-video-playpause-btn[data-paused="true"] .icon-pause { display: none; }
.hero-video-playpause-btn[data-paused="true"] .icon-play { display: block; }
