.hgh-video-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: var(--hgh-video-height, auto);
    min-height: var(--hgh-video-height, auto);
    overflow: hidden;
    background: #000;
}

.hgh-video-wrap.is-hero,
.hgh-video-wrap.is-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: var(--hgh-video-height, 100vh);
    min-height: var(--hgh-video-height, 100vh);
    pointer-events: none;
}

.hgh-video-wrap.is-fixed {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    pointer-events: none;
}

.hgh-video-player {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: var(--hgh-video-fit, cover);
    background: #000;
    border: 0;
    outline: 0;
}

.hgh-video-wrap:not(.is-hero):not(.is-background):not(.is-fixed) .hgh-video-player {
    height: var(--hgh-video-height, auto);
}

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

.hgh-video-debug {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 9999;
    max-width: min(92vw, 760px);
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font: 12px/1.45 monospace;
    pointer-events: auto;
}

.hgh-video-debug a {
    color: #fff;
    text-decoration: underline;
}


.hgh-video-wrap.has-video-ready .hgh-video-loading,
.hgh-video-wrap.is-video-ready .hgh-video-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hgh-video-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: inherit;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.06), transparent 34%),
        linear-gradient(135deg, #232D2B 0%, #111816 100%);
    color: #fff;
    transition: opacity .45s ease, visibility .45s ease;
}

.hgh-video-loading-mark {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.28);
    border-top-color: rgba(255,255,255,.88);
    border-radius: 999px;
    animation: hghVideoSpin 1s linear infinite;
}

.hgh-video-loading-text {
    color: rgba(255,255,255,.86);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.hgh-video-loading-bar {
    position: relative;
    display: block;
    width: min(180px, 42vw);
    height: 1px;
    overflow: hidden;
    background: rgba(255,255,255,.22);
}

.hgh-video-loading-bar span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 45%;
    background: rgba(255,255,255,.9);
    animation: hghVideoLoadingBar 1.35s ease-in-out infinite;
}

@keyframes hghVideoSpin {
    to { transform: rotate(360deg); }
}

@keyframes hghVideoLoadingBar {
    0% { left: -45%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hgh-video-loading-mark,
    .hgh-video-loading-bar span {
        animation: none;
    }
}
