.gh-video-player {
    position: relative;
    width: 100%;
    height: clamp(320px, 56vw, 620px);
    overflow: hidden;
    background: #050806;
    color: #fff;
    isolation: isolate;
}

.gh-video-player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #050806;
    cursor: pointer;
}

.gh-video-player__center-play {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: grid;
    width: 90px;
    height: 90px;
    padding: 0 0 0 6px;
    transform: translate(-50%, -50%);
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(7, 12, 9, .28);
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 36px rgba(0, 0, 0, .34);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.gh-video-player__center-play:hover,
.gh-video-player__center-play:focus-visible {
    background: rgba(7, 12, 9, .48);
    transform: translate(-50%, -50%) scale(1.06);
}

.gh-video-player__center-play:focus-visible,
.gh-video-player__control:focus-visible,
.gh-video-player__progress:focus-visible {
    outline: 3px solid #d7e6c4;
    outline-offset: 3px;
}

.gh-video-player.is-playing .gh-video-player__center-play {
    opacity: 0;
    pointer-events: none;
}

.gh-video-player__controls {
    position: absolute;
    z-index: 6;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    grid-template-columns: 44px minmax(80px, 1fr) auto 44px;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(5, 9, 7, .76);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gh-video-player__control {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    font: inherit;
    font-size: 19px;
    cursor: pointer;
}

.gh-video-player__control:hover {
    background: rgba(255, 255, 255, .17);
}

.gh-video-player__progress {
    width: 100%;
    min-width: 0;
    height: 6px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    cursor: pointer;
    accent-color: #d7e6c4;
}

.gh-video-player__time {
    min-width: 92px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.gh-video-player__error {
    position: absolute;
    z-index: 8;
    top: 16px;
    right: 16px;
    left: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 190, 190, .45);
    border-radius: 12px;
    background: rgba(77, 15, 15, .9);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

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

.ob-work-example--video .ob-work-example__caption {
    bottom: 82px;
}

.ob-work-example--video.is-video-playing .ob-work-example__caption,
.ob-work-example--video:has(.gh-video-player.is-playing) .ob-work-example__caption {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

@media (max-width: 760px) {
    .gh-video-player {
        height: 360px;
    }

    .gh-video-player__center-play {
        width: 72px;
        height: 72px;
        padding-left: 5px;
        font-size: 31px;
    }

    .gh-video-player__controls {
        right: 8px;
        bottom: 8px;
        left: 8px;
        grid-template-columns: 40px minmax(60px, 1fr) auto 40px;
        gap: 7px;
        min-height: 50px;
        padding: 6px 7px;
        border-radius: 14px;
    }

    .gh-video-player__control {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .gh-video-player__time {
        min-width: 74px;
        font-size: 11px;
    }

    .ob-work-example--video .ob-work-example__caption {
        right: 10px;
        bottom: 68px;
        left: 10px;
    }
}
