@layer components {
/* Pause/play control for looping demo videos (js/video-autoplay.js, Shared/_VideoControls.cshtml).
   Same dark glass pill as the Experience Center clip toggle, as a 40px round icon button. */
.video-toggle-host {
    position: relative;
}

.video-toggle {
    position: absolute;
    z-index: 3;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(8, 15, 29, 0.72);
    color: #f1f5f9;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.video-toggle[hidden] {
    display: none;
}

.video-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(8, 15, 29, 0.92);
}

.video-toggle:focus-visible {
    outline: 2px solid #9bd9ff;
    outline-offset: 2px;
}

.video-toggle__icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.video-toggle[data-state="playing"] .video-toggle__icon--play,
.video-toggle:not([data-state="playing"]) .video-toggle__icon--pause {
    display: none;
}
}
