﻿/* *********************************** Estrutura */

.bv-header-establishment-videos-fragment {
    min-width: 0;
}

.bv-header-establishment-videos__stream {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.bv-header-establishment-videos__heading {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 8px 0 3px;
}

    .bv-header-establishment-videos__heading > span {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: var(--bv-header-primary-soft);
        color: var(--bv-header-primary);
    }

    .bv-header-establishment-videos__heading h3,
    .bv-header-establishment-videos__heading p {
        margin: 0;
    }

    .bv-header-establishment-videos__heading h3 {
        color: var(--bv-header-text);
        font-size: .84rem;
        font-weight: 950;
    }

    .bv-header-establishment-videos__heading p,
    .bv-header-establishment-videos__heading small {
        color: var(--bv-header-muted);
        font-size: .63rem;
    }

    .bv-header-establishment-videos__heading p {
        margin-top: 3px;
    }

/* *********************************** Card */

.bv-header-establishment-video {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bv-header-border);
    border-radius: 20px;
    background: var(--bv-header-surface);
    box-shadow: 0 6px 18px rgba(22, 30, 48, .06);
}

    .bv-header-establishment-video.is-highlight {
        border-color: rgba(255, 183, 0, .3);
        box-shadow: 0 7px 22px rgba(184, 132, 0, .08);
    }

.bv-header-establishment-video__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--bv-header-surface-2);
    cursor: pointer;
}

    .bv-header-establishment-video__media > img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 220ms ease;
    }

.bv-header-establishment-video:hover
.bv-header-establishment-video__media > img {
    transform: scale(1.035);
}

.bv-header-establishment-video__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--bv-header-muted);
    font-size: 1.7rem;
}

.bv-header-establishment-video__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, .04), rgba(0, 0, 0, .72));
}

.bv-header-establishment-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .84);
    border-radius: 50%;
    background: rgba(255, 46, 147, .93);
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, background 180ms ease;
}

.bv-header-establishment-video:hover
.bv-header-establishment-video__play {
    background: var(--bv-header-primary);
    transform: translate(-50%, -50%) scale(1.08);
}

.bv-header-establishment-video__highlight {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(226, 164, 0, .94);
    color: #fff;
    font-size: .58rem;
    font-weight: 900;
}

.bv-header-establishment-video__duration {
    position: absolute;
    right: 10px;
    bottom: 37px;
    z-index: 2;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 7px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .55rem;
    font-weight: 900;
}

.bv-header-establishment-video__engagement {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: .62rem;
    font-weight: 850;
}

    .bv-header-establishment-video__engagement span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.bv-header-establishment-video__content {
    padding: 12px;
}

.bv-header-establishment-video__title {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bv-header-text);
    font-size: .8rem;
    font-weight: 950;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.bv-header-establishment-video__content > p {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--bv-header-text-soft);
    font-size: .65rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bv-header-establishment-video__content footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 11px;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid var(--bv-header-border);
}

    .bv-header-establishment-video__content footer span,
    .bv-header-establishment-video__content footer a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--bv-header-muted);
        font-size: .57rem;
        font-weight: 750;
    }

    .bv-header-establishment-video__content footer a {
        margin-left: auto;
        color: var(--bv-header-primary-dark);
        font-weight: 900;
    }

/* *********************************** Barra de filtro */

.bv-header-establishment-videos-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding: 11px 12px;
    border: 1px solid var(--bv-header-border);
    border-radius: 18px;
    background: var(--bv-header-surface-2);
}

    .bv-header-establishment-videos-filterbar > div {
        min-width: 0;
    }

    .bv-header-establishment-videos-filterbar strong,
    .bv-header-establishment-videos-filterbar span {
        display: block;
    }

    .bv-header-establishment-videos-filterbar strong {
        color: var(--bv-header-text);
        font-size: .79rem;
        font-weight: 930;
    }

    .bv-header-establishment-videos-filterbar > div > span {
        margin-top: 3px;
        color: var(--bv-header-muted);
        font-size: .64rem;
    }

.bv-header-establishment-videos-filterbar__button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--bv-header-border);
    border-radius: 999px;
    background: var(--bv-header-surface);
    color: var(--bv-header-text-soft);
    font: inherit;
    font-size: .68rem;
    font-weight: 900;
    cursor: pointer;
}

    .bv-header-establishment-videos-filterbar__button.is-active {
        border-color: rgba(255, 46, 147, .3);
        background: var(--bv-header-primary-soft);
        color: var(--bv-header-primary-dark);
    }

    .bv-header-establishment-videos-filterbar__button small {
        min-width: 20px;
        height: 20px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: var(--bv-header-primary);
        color: #fff;
    }

/* *********************************** Chips */

.bv-header-establishment-videos-filterchips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

    .bv-header-establishment-videos-filterchips > span,
    .bv-header-establishment-videos-filterchips > button {
        min-height: 31px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        border: 0;
        border-radius: 999px;
        font: inherit;
        font-size: .61rem;
        font-weight: 850;
    }

    .bv-header-establishment-videos-filterchips > span {
        background: var(--bv-header-primary-soft);
        color: var(--bv-header-primary-dark);
    }

    .bv-header-establishment-videos-filterchips > button {
        background: var(--bv-header-surface-2);
        color: var(--bv-header-muted);
        cursor: pointer;
    }

/* *********************************** Modal de filtro */

.bv-header-establishment-videos-filter {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    transition: opacity 180ms ease;
}

    .bv-header-establishment-videos-filter[hidden] {
        display: none !important;
    }

    .bv-header-establishment-videos-filter.is-open {
        opacity: 1;
    }

.bv-header-establishment-videos-filter__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(4px);
}

.bv-header-establishment-videos-filter__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: 90dvh;
    margin: 0 auto;
    overflow: auto;
    border-radius: 28px 28px 0 0;
    background: var(--bv-header-surface);
    box-shadow: 0 -20px 60px rgba(15, 23, 42, .25);
    transform: translateY(24px);
    transition: transform 180ms ease;
}

.bv-header-establishment-videos-filter.is-open
.bv-header-establishment-videos-filter__panel {
    transform: translateY(0);
}

.bv-header-establishment-videos-filter__header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--bv-header-border);
    background: var(--bv-header-surface);
}

    .bv-header-establishment-videos-filter__header h3,
    .bv-header-establishment-videos-filter__header p {
        margin: 0;
    }

    .bv-header-establishment-videos-filter__header h3 {
        color: var(--bv-header-text);
        font-size: .95rem;
        font-weight: 950;
    }

    .bv-header-establishment-videos-filter__header p {
        margin-top: 4px;
        color: var(--bv-header-muted);
        font-size: .64rem;
    }

    .bv-header-establishment-videos-filter__header button {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 13px;
        background: var(--bv-header-surface-2);
        cursor: pointer;
    }

.bv-header-establishment-videos-filter__group {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 17px 18px;
    border: 0;
    border-bottom: 1px solid var(--bv-header-border);
}

    .bv-header-establishment-videos-filter__group legend {
        margin-bottom: 8px;
        color: var(--bv-header-text);
        font-size: .71rem;
        font-weight: 930;
    }

    .bv-header-establishment-videos-filter__group > label {
        cursor: pointer;
    }

    .bv-header-establishment-videos-filter__group
    input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .bv-header-establishment-videos-filter__group
    label > span {
        min-height: 49px;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        padding: 9px 12px;
        border: 1px solid var(--bv-header-border);
        border-radius: 15px;
    }

        .bv-header-establishment-videos-filter__group
        label > span > span {
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }

        .bv-header-establishment-videos-filter__group
        label > span strong,
        .bv-header-establishment-videos-filter__group
        label > span small {
            display: block;
            margin: 0;
        }

        .bv-header-establishment-videos-filter__group
        label > span strong {
            color: var(--bv-header-text);
            font-size: .68rem;
            line-height: 1.2;
        }

        .bv-header-establishment-videos-filter__group
        label > span small {
            color: var(--bv-header-muted);
            font-size: .58rem;
            line-height: 1.35;
        }

    .bv-header-establishment-videos-filter__group
    input[type="radio"]:checked + span {
        border-color: rgba(255, 46, 147, .35);
        background: var(--bv-header-primary-soft);
        color: var(--bv-header-primary-dark);
    }

.bv-header-establishment-videos-filter__footer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 13px 18px max(13px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--bv-header-border);
    background: var(--bv-header-surface);
}

/* *********************************** Player */

.bv-header-establishment-video-player {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    transition: opacity 180ms ease;
}

    .bv-header-establishment-video-player[hidden] {
        display: none !important;
    }

    .bv-header-establishment-video-player.is-open {
        opacity: 1;
    }

.bv-header-establishment-video-player__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 18, .87);
    backdrop-filter: blur(6px);
}

.bv-header-establishment-video-player__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: 92dvh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: #121722;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
    transform: scale(.97);
    transition: transform 180ms ease;
}

.bv-header-establishment-video-player.is-open
.bv-header-establishment-video-player__panel {
    transform: scale(1);
}

.bv-header-establishment-video-player__panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: #fff;
}

    .bv-header-establishment-video-player__panel > header span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #ff5fa9;
        font-size: .66rem;
        font-weight: 900;
    }

    .bv-header-establishment-video-player__panel > header h3 {
        margin: 5px 0 0;
        font-size: .95rem;
        font-weight: 950;
    }

    .bv-header-establishment-video-player__panel > header button {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, .1);
        color: #fff;
        cursor: pointer;
    }

.bv-header-establishment-video-player__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

    .bv-header-establishment-video-player__frame iframe {
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
    }

.bv-header-establishment-video-player__content {
    padding: 14px 16px 17px;
}

    .bv-header-establishment-video-player__content p {
        margin: 0;
        color: rgba(255, 255, 255, .76);
        font-size: .72rem;
        line-height: 1.55;
        white-space: pre-line;
    }

    .bv-header-establishment-video-player__content a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin-top: 13px;
        padding: 0 12px;
        border-radius: 999px;
        background: #ff2e93;
        color: #fff;
        font-size: .68rem;
        font-weight: 900;
        text-decoration: none;
    }

html.bv-header-establishment-video-lock,
html.bv-header-establishment-video-lock body {
    overflow: hidden !important;
}

/* *********************************** Estados */

.bv-header-establishment-videos-fragment [hidden] {
    display: none !important;
}

/* *********************************** Responsivo */

@media (min-width: 680px) {
    .bv-header-establishment-videos__stream {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bv-header-establishment-videos-filter {
        align-items: center;
        padding: 24px;
    }

    .bv-header-establishment-videos-filter__panel {
        border-radius: 28px;
    }
}

@media (min-width: 1000px) {
    .bv-header-establishment-videos__stream {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .bv-header-establishment-videos-filterbar > div > span,
    .bv-header-establishment-videos-filterbar__button > span {
        display: none;
    }

    .bv-header-establishment-video-player {
        align-items: end;
        padding: 0;
    }

    .bv-header-establishment-video-player__panel {
        width: 100%;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;
    }

    .bv-header-establishment-videos__heading {
        grid-template-columns: 40px minmax(0, 1fr);
    }

        .bv-header-establishment-videos__heading > small {
            grid-column: 2;
        }
}

@media (prefers-reduced-motion: reduce) {
    .bv-header-establishment-videos-fragment *,
    .bv-header-establishment-videos-fragment *::before,
    .bv-header-establishment-videos-fragment *::after {
        transition: none !important;
    }
}
