.hpc-advanced-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    --hpc-video-play-size: 96px;
    --hpc-video-play-icon-size: 32px;
}

.hpc-advanced-video__frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #000;
}

.hpc-advanced-video__frame::before {
    content: '';
    display: block;
    padding-top: var(--hpc-video-aspect-ratio, 56.25%);
}

.hpc-advanced-video__inner,
.hpc-advanced-video__overlay {
    position: absolute;
    inset: 0;
}

.hpc-advanced-video__inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.hpc-advanced-video__iframe,
.hpc-advanced-video__video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background-color: #000;
}

.hpc-advanced-video__video {
    object-fit: cover;
}

.hpc-advanced-video__overlay {
    display: grid;
    place-items: center;
    background-color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1;
}

.hpc-advanced-video__overlay.is-passive {
    pointer-events: none;
}

.hpc-advanced-video__overlay.is-passive .hpc-advanced-video__play {
    pointer-events: auto;
}

.hpc-advanced-video.is-playing .hpc-advanced-video__overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hpc-advanced-video__overlay-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hpc-advanced-video__overlay-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hpc-advanced-video__play {
    position: relative;
    z-index: 1;
    width: var(--hpc-video-play-size, 96px);
    height: var(--hpc-video-play-size, 96px);
    border-radius: 50%;
    border: 0 solid transparent;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.hpc-advanced-video__play:hover,
.hpc-advanced-video__play:focus-visible {
    transform: scale(1.05);
}

.hpc-advanced-video__play:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.hpc-advanced-video__play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--hpc-video-play-icon-size, 32px);
    line-height: 1;
    color: currentColor;
}

.hpc-advanced-video__play-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.hpc-advanced-video__overlay-media + .hpc-advanced-video__play {
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}
