.hoo-video {
    color: white;

    &[open] {
        .hoo-thumbnail {
            display: none;
        }
    }
}

.hoo-video-duration {
    position: absolute;
    bottom: 0;
    left: 0;

    margin: 1rem;
    padding: 0.0625rem 0.5rem 0.125rem;

    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, .75);
}

.hoo-thumbnail-overlay {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-content: center;
    justify-content: space-around;

    color: white;
    background-image: linear-gradient(1turn, transparent, rgba( 0, 0, 0, .6) );

    mix-blend-mode: hard-light;
    filter: saturate(2);
    filter: saturate(10);

    .hoo-icon-svg {
        width: 3rem;
        height: 3rem;

        fill: currentColor;
    }
}

.hoo-video-player {
    width: 100%;
    max-width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    &>* {
        width: 100% !important;
        height: 100% !important;

        aspect-ratio: inherit;
    }
}

.hoo-thumbnail {
    position: relative;

    overflow: hidden;

    max-width: 100%;

    list-style: none;
    list-style-type: none;

    border-radius: 0.5rem;
}

.hoo-thumbnail-figure {
    position: relative;

    overflow: hidden;

    margin: 0;

    object-fit: fit-content;
}

.hoo-thumbnail-cap {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;

    overflow: hidden;

    max-width: 100%;
    height: 1lh;
    padding: 0.5rem 1rem;

    text-wrap: nowrap;
    text-overflow: ellipsis;

    white-space-collapse: collapse;

    a {
        text-decoration: underline;

        color: currentColor;

        text-decoration-color: currentColor;

        &:visited,
        &:hover {
            text-decoration-line: overline underline currentColor;
        }
    }
}

.hoo-thumbnail-img {
    display: block;

    width: auto;
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0;

    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.pl-js-pattern-example {
    .hoo-thumbnail-overlay {
        position: static;

        min-height: 500px;
    }
}
