.live-stream-hero {
    position: relative;
    width: 100%;
    background: #000;
}

.live-stream-hero__media {
    --live-stream-aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
    aspect-ratio: var(--live-stream-aspect-ratio);
    overflow: hidden;
    background: #000;
}

.live-stream-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.live-stream-hero__badge {
    position: absolute;
    z-index: 2;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(185, 25, 25, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-stream-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: live-stream-pulse 1.4s infinite;
}

.live-stream-hero__status {
    position: absolute;
    inset: auto 20px 20px;
    z-index: 2;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
}

.live-stream-hero.is-playing .live-stream-hero__status {
    display: none;
}

.live-stream-hero.has-error .live-stream-hero__status {
    display: block;
}

.live-stream-hero__content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}

.live-stream-hero__heading {
    margin: 0 0 16px;
}

.live-stream-hero__introduction {
    margin: 0;
}

@keyframes live-stream-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

@media (max-width: 767.98px) {
    .live-stream-hero__media {
        aspect-ratio: 4 / 3;
    }

    .live-stream-hero__badge {
        top: 12px;
        left: 12px;
    }

    .live-stream-hero__status {
        inset: auto 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-stream-hero__badge-dot {
        animation: none;
    }
}


/* Style adjustments to crop the black areas at the top and bottom of the stream */

.live-stream-hero__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* Desktop */
    height: min(73vh, 600px);
}

.live-stream-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 73%;
}

/* Large desktop: 1600px and above */
@media (min-width: 1600px) and (max-width: 1899px) {

    .live-stream-hero__media {
        height: min(73vh, 600px);
    }

    .live-stream-hero__video {
        position: absolute;
        top: -242px;
        left: 0;
        width: 100%;
        height: calc(100% + 350px);
        object-fit: fill;
        object-position: top center;
    }
}

/* Smaller desktop: 1200px�1599px */
@media (min-width: 1200px) and (max-width: 1599px) {

    .live-stream-hero__media {
        height: min(68vh, 520px);
    }

    .live-stream-hero__video {
        position: absolute;
        top: -211px;
        left: 0;
        width: 100%;
        height: calc(100% + 305px);
        object-fit: fill;
        object-position: top center;
    }
}


/* Tablet and small desktop: 768px�1199px */
@media (min-width: 768px) and (max-width: 1199px) {

    .live-stream-hero__media {
        height: clamp(300px, 42vw, 420px);
    }

    .live-stream-hero__video {
        position: absolute;
        top: -170px;
        left: 0;
        width: 100%;
        height: calc(100% + 247px);
        object-fit: fill;
        object-position: top center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .live-stream-hero__media {
        height: 220px;
    }

    .live-stream-hero__video {
        position: absolute;
        top: -99px;
        left: 0;
        width: 100%;
        height: calc(100% + 140px);
        object-fit: fill;
        object-position: top center;
    }
}

/* Reduce the dark overlay behind native video controls */
.live-stream-hero__video::-webkit-media-controls-enclosure {
    background: rgba(0, 0, 0, 0.15);
}

.live-stream-hero__video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.15);
}