/* Silent editorial loop videos: native controls stay hidden, with one discreet accessible toggle. */
.hit-ambient-video-shell {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    line-height: 0;
    isolation: isolate;
}

.hit-ambient-video-shell > .hit-ambient-video {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    box-shadow: none !important;
    background: #000;
    pointer-events: none !important;
}

.hit-ambient-video::-webkit-media-controls,
.hit-ambient-video::-webkit-media-controls-enclosure,
.hit-ambient-video::-webkit-media-controls-panel,
.hit-ambient-video::-webkit-media-controls-play-button,
.hit-ambient-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hit-ambient-video-toggle {
    position: absolute !important;
    inset-inline-start: 10px !important;
    bottom: 10px !important;
    z-index: 4 !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(212, 175, 55, .72) !important;
    border-radius: 50% !important;
    background: rgba(44, 28, 31, .74) !important;
    color: #fffaf3 !important;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .2) !important;
    opacity: .62;
    cursor: pointer !important;
    font: inherit !important;
    line-height: 1 !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity .16s ease, background-color .16s ease, color .16s ease, transform .16s ease !important;
}

.hit-ambient-video-toggle svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
    pointer-events: none;
}

.hit-ambient-video-shell:hover .hit-ambient-video-toggle,
.hit-ambient-video-shell:focus-within .hit-ambient-video-toggle,
.hit-ambient-video-shell.is-paused .hit-ambient-video-toggle,
.hit-ambient-video-shell.is-autoplay-blocked .hit-ambient-video-toggle {
    opacity: 1;
}

.hit-ambient-video-toggle:hover {
    background: rgba(76, 45, 51, .94) !important;
    color: #fff !important;
    transform: scale(1.04) !important;
}

.hit-ambient-video-toggle:focus-visible {
    opacity: 1;
    outline: 3px solid #d4af37 !important;
    outline-offset: 3px !important;
}

.hit-ambient-video-toggle[data-tooltip]::after {
    position: absolute;
    inset-inline-start: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(230px, 70vw);
    padding: 6px 9px;
    border: 1px solid rgba(212, 175, 55, .6);
    border-radius: 7px;
    background: #fffaf3;
    color: #4c2d33;
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.hit-ambient-video-toggle:hover::after,
.hit-ambient-video-toggle:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.hit-ambient-video-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .hit-ambient-video-toggle {
        inset-inline-start: 8px !important;
        bottom: 8px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
}

@media (hover: none) {
    .hit-ambient-video-toggle[data-tooltip]::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hit-ambient-video-toggle,
    .hit-ambient-video-toggle[data-tooltip]::after { transition: none !important; }
}

@media (forced-colors: active) {
    .hit-ambient-video-toggle {
        border: 2px solid ButtonText !important;
        background: ButtonFace !important;
        color: ButtonText !important;
        forced-color-adjust: auto;
    }
}

@media print {
    .hit-ambient-video-toggle { display: none !important; }
}
