.video {
    position: relative;
    min-height: 52rem;
    display: flex;
    flex-direction: column;
}

.video::before,
.video::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    height: 0.25rem;

    background-image: linear-gradient(100deg, #7a5a1e 0%, #d4af37 20%, #fff3c4 40%, #d4af37 60%, #7a5a1e 80%, #d4af37 100%);
    background-size: 250% auto;
    box-shadow: 0 0 0.25rem rgba(212, 175, 55, 0.6);

    animation: video-gold-shimmer 8s ease-in-out infinite alternate;
}

.video::before {
    top: -0.25rem;
}

.video::after {
    bottom: 0;
}

.video__media {
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    width: 100%;
}

@supports (object-fit: cover) and (object-position: center center) {
    .video__media {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

.video__colorize {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background-color: rgba(38, 70, 77, 0.5);
}

.video__container {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 1rem;
}

.video__reveal {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    padding-left: 0;
}

.video__card {
    width: 100%;
    padding: 1.5rem 1.75rem;
    border-radius: 0.9rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.35);

    background-color: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(0.5rem) saturate(130%);
    backdrop-filter: blur(0.5rem) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);

    opacity: 0;
    transform: translateY(0.75rem);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.video__card p {
    margin: 0;
}

.video__card-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.video__card-list li {
    padding-left: 0.3rem;
}

.video__card-meta {
    margin-top: 0.85rem;
    line-height: 1.7;
}

.video__card--1 {
    max-width: 44rem;
    transition-delay: 0ms;
}

.video__card--2 {
    max-width: 35.2rem;
    transition-delay: 33ms;
}

.video__card--3 {
    max-width: 28.16rem;
    transition-delay: 66ms;
}

.video__container.is-open .video__card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video__toggle {
    position: relative;
    align-self: center;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.7rem;
    margin-top: 0.5rem;
    padding: 0 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(0.6rem) saturate(140%);
    backdrop-filter: blur(0.6rem) saturate(140%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.25);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s ease,
        border-radius 0.35s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.video__toggle-label {
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.video__toggle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    color: #ff3b3b;
    opacity: 0;
    transform: scale(0.4);
    filter: drop-shadow(0 0 0.5rem rgba(255, 59, 59, 0.9)) drop-shadow(0 0 1rem rgba(255, 59, 59, 0.5));
    pointer-events: none;
    transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
}

.video__container.is-open .video__toggle {
    width: 2.7rem;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(10, 10, 10, 0.45);
    border-color: rgba(255, 59, 59, 0.6);
}

.video__container.is-open .video__toggle-label {
    opacity: 0;
    pointer-events: none;
}

.video__container.is-open .video__toggle-icon {
    opacity: 1;
    transform: scale(1);
}

.video__heading {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 1.75rem clamp(0.75rem, 4vw, 1.5rem);

    background-color: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(0.75rem) saturate(140%);
    backdrop-filter: blur(0.75rem) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.video__footer {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 1.54rem clamp(0.6rem, 3.2vw, 1.2rem);

    background-color: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(0.75rem) saturate(140%);
    backdrop-filter: blur(0.75rem) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.video__footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 0.25rem;

    background-image: linear-gradient(100deg, #7a5a1e 0%, #d4af37 20%, #fff3c4 40%, #d4af37 60%, #7a5a1e 80%, #d4af37 100%);
    background-size: 250% auto;
    box-shadow: 0 0 0.25rem rgba(212, 175, 55, 0.6);

    animation: video-gold-shimmer 8s ease-in-out infinite alternate;
}

.video__footer-track {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    white-space: nowrap;
    transform: translateY(-50%);
    animation: video-footer-marquee 22s linear infinite;
}

.video__footer-text {
    display: flex;
    align-items: center;
    margin: 0;
    padding-right: 50vw;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.55);
    font-size: clamp(0.8rem, 2.2vw, 1.15rem);
}

.video__footer-emojis {
    display: inline-flex;
    gap: 0.9em;
    vertical-align: middle;
}

.video__footer-emojis--start {
    margin-right: 1.5em;
}

.video__footer-emojis--end {
    margin-left: 1.5em;
}

.video__footer-emoji {
    display: inline-block;
    animation: video-footer-emoji-bounce 1.1s ease-in-out infinite;
}

.video__footer-emoji:nth-child(2) {
    animation-delay: 0.15s;
}

.video__footer-emoji:nth-child(3) {
    animation-delay: 0.3s;
}

.video__footer-highlight {
    display: inline-block;
    margin: 0 0.75em;
    font-weight: 700;
    font-size: 1.15em;

    background-image: linear-gradient(100deg, #7a5a1e 0%, #d4af37 20%, #fff3c4 40%, #d4af37 60%, #7a5a1e 80%, #d4af37 100%);
    background-size: 250% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0.0625rem 0.125rem rgba(0, 0, 0, 0.45));

    animation: video-gold-shimmer 4s ease-in-out infinite alternate;
}

.video__footer-date {
    display: inline-block;
    margin: 0 0.75em;
    font-weight: 800;
    font-size: 1.15em;
    letter-spacing: 0.03em;

    background-image: linear-gradient(100deg, #7a5a1e 0%, #d4af37 20%, #fff3c4 40%, #d4af37 60%, #7a5a1e 80%, #d4af37 100%);
    background-size: 250% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0.0625rem 0.125rem rgba(0, 0, 0, 0.45));

    animation: video-gold-shimmer 4s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .video__footer-date {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video__footer-highlight {
        animation: none;
    }
}

@keyframes video-footer-marquee {
    from {
        transform: translateY(-50%) translateX(0);
    }
    to {
        transform: translateY(-50%) translateX(-50%);
    }
}

@keyframes video-footer-emoji-bounce {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-0.2em) rotate(8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .video__footer-track {
        animation: none;
        position: static;
        transform: none;
        display: block;
        white-space: normal;
        text-align: center;
    }

    .video__footer-text {
        white-space: normal;
    }

    .video__footer-text[aria-hidden="true"] {
        display: none;
    }

    .video__footer-emoji {
        animation: none;
    }
}

.video__heading-text {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: clamp(0.01em, 0.4vw, 0.1em);
    text-align: center;
    font-size: clamp(0.7rem, 3.9vw, 2rem);
    white-space: nowrap;

    background-image: linear-gradient(100deg, #7a5a1e 0%, #d4af37 20%, #fff3c4 40%, #d4af37 60%, #7a5a1e 80%, #d4af37 100%);
    background-size: 250% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0.0625rem 0.125rem rgba(0, 0, 0, 0.45));

    animation: video-gold-shimmer 4s ease-in-out infinite alternate;
}

@keyframes video-gold-shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 250% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video__heading-text {
        animation: none;
    }
}

@media (max-width: 48em) {
    .video {
        display: flex;
        flex-direction: column;
        min-height: 0;
        background-color: #26464d;
    }

    .video__heading {
        order: 1;
    }

    .video__media {
        order: 2;
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        display: block;
    }

    .video__container {
        order: 3;
        align-items: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .video__reveal {
        width: calc(100% - 3rem);
        max-height: 0;
        margin: 0;
        padding: 0 1.5rem;
        justify-content: flex-start;
        gap: 1rem;
        overflow: hidden;
        border-radius: 0.9rem;
        background-color: rgba(255, 255, 255, 0.12);
        -webkit-backdrop-filter: blur(0.85rem) saturate(140%);
        backdrop-filter: blur(0.85rem) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        scroll-margin-top: 6.5rem;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
    }

    .video__container.is-open .video__reveal {
        max-height: 78vh;
        margin-bottom: 1.25rem;
        padding: 1.5rem;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .video__card {
        max-width: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .video__toggle {
        margin-top: 0;
    }

    .video__footer {
        order: 4;
    }

    .video__colorize {
        display: none;
    }
}
