.grubhub-video-player {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-5xl, 2.25rem);
    background: transparent;
    aspect-ratio: 16 / 9;
}

.grubhub-video-player__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Avoid Chromium video edge artifacts at fractional pixel sizes. */
    -webkit-mask-image: linear-gradient(#000, #000);
    mask-image: linear-gradient(#000, #000);
}

.grubhub-video-player__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #241b0b;
    cursor: pointer;
}

/* The button covers the video; only its centered play icon has a background. */
.grubhub-video-player__play::before {
    content: '';
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #f3e3cb;
}

.grubhub-video-player__play svg { position: relative; }
.grubhub-video-player__play:hover::before { background: #f8f4f1; }
.grubhub-video-player__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.grubhub-video-player__duration {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: #241b0b;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    pointer-events: none;
}

/* Native controls remain available without JavaScript and in editor previews. */
.grubhub-video-player:not(.is-enhanced) .grubhub-video-player__duration { bottom: 3.5rem; }
.grubhub-video-player [hidden] { display: none; }

@media (max-width: 991px) {
    .grubhub-video-player { border-radius: var(--radius-3xl, 1.5rem); }
    .grubhub-video-player__play::before { width: 3.5rem; height: 3.5rem; }
    .grubhub-video-player__duration { right: 0.75rem; bottom: 0.75rem; }
}
