/**
 * Vislun Video System — base visual comum
 *
 * PLAYER-MODELOS — MIGRAÇÃO CSS/JS — ZIP 2/3.
 * Regras movidas das autoridades antigas; não são cópias.
 */

.vislun-video-wrapper {
    box-sizing: border-box;
}

.vislun-video-frame {
    position: relative;
    overflow: hidden;
}

.vislun-video-frame iframe,
.vislun-video-frame video {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vislun-video-cover {
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;

    width: 100% !important;
    height: 100% !important;

    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;

    display: block !important;
    cursor: pointer;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #000 !important;

    appearance: none;
    -webkit-appearance: none;

    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.vislun-video-cover:hover,
.vislun-video-cover:focus,
.vislun-video-cover:active {
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    background-size: cover !important;
    background-position: center center !important;
    box-shadow: none !important;
    outline: none !important;
}

.vislun-video-cover-shade {
    position: absolute;
    inset: 0;
    z-index: 21;

    background: rgba(0, 0, 0, 0.18);

    pointer-events: none;
}

.vislun-video-cover-logo {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 23;

    display: block;

    padding: 0;
    margin: 0;

    pointer-events: none;
}

.vislun-video-cover-logo img {
    display: block;

    width: auto;
    height: 18px;

    opacity: 1;
}

.vislun-video-cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 22;

    width: 82px;
    height: 56px;

    transform: translate(-50%, -50%) !important;

    border-radius: 7px;
    background: #eebe0d;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: none !important;

    pointer-events: none;
}

.vislun-video-cover-play span {
    display: block;

    width: 0;
    height: 0;

    margin-left: 5px;

    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #ffffff;
}

.vislun-video-cover:hover .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.18);
}

.vislun-video-cover:hover .vislun-video-cover-play {
    background: #eebe0d;

    box-shadow: none !important;
}

@media (max-width: 768px) {
    
    .vislun-video-cover-logo {
        top: 12px;
        right: 12px;
    }

    .vislun-video-cover-logo img {
        height: 18px;
        opacity: 1;
    }
    
    .vislun-video-cover-play {
        width: 72px;
        height: 50px;
        border-radius: 7px;
    }

    .vislun-video-cover-play span {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }
}

.vislun-video-cover.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.vislun-video-wrapper.vislun-video-custom-player {
    
    --vislun-player-accent: #eebe0d;
    --vislun-player-accent-hover: #ffd42a;
    --vislun-player-white: #ffffff;
    --vislun-player-black: #000000;

    
    --vislun-player-track: rgba(255, 255, 255, 0.34);
    --vislun-player-track-loaded: rgba(255, 255, 255, 0.52);
    --vislun-player-surface: rgba(0, 0, 0, 0.56);
    --vislun-player-surface-strong: rgba(0, 0, 0, 0.78);

    
    --vislun-player-controls-gradient:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.16) 28%,
            rgba(0, 0, 0, 0.62) 72%,
            rgba(0, 0, 0, 0.82) 100%
        );

    
    --vislun-player-control-height: 36px;
    --vislun-player-control-gap: 6px;
    --vislun-player-control-padding-x: 12px;
    --vislun-player-control-padding-bottom: 8px;

    
    --vislun-player-progress-height: 2px;
    --vislun-player-progress-height-active: 3px;
    --vislun-player-progress-hit-area: 18px;
    --vislun-player-progress-thumb: 12px;

    
    --vislun-player-center-play-width: 82px;
    --vislun-player-center-play-height: 56px;
    --vislun-player-center-play-radius: 6px;

    
    --vislun-player-icon-size: 20px;
    --vislun-player-time-size: 12px;
    
    
    --vislun-player-volume-level: 100%;

    
    --vislun-player-transition-fast: 160ms ease;
    --vislun-player-transition-normal: 240ms ease;
}

.vislun-video-wrapper.vislun-video-vislun_padrao
.vislun-video-cover {
    background-color: var(--vislun-player-black) !important;
    color: var(--vislun-player-white);

    border: 0 !important;
    border-radius: 0 !important;

    -webkit-tap-highlight-color: transparent;
}

.vislun-video-wrapper.vislun-video-vislun_padrao
.vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.14);

    transition:
        background var(--vislun-player-transition-normal);
}

.vislun-video-wrapper.vislun-video-vislun_padrao
.vislun-video-cover-play {
    width: var(--vislun-player-center-play-width);
    height: var(--vislun-player-center-play-height);

    border: 0;
    border-radius: var(--vislun-player-center-play-radius);

    background: var(--vislun-player-accent);

    box-shadow: none !important;

    transition:
        background var(--vislun-player-transition-fast),
        box-shadow var(--vislun-player-transition-fast),
        transform var(--vislun-player-transition-fast);
}

.vislun-video-wrapper.vislun-video-vislun_padrao
.vislun-video-cover-play span {
    margin-left: 5px;

    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 18px;

    border-left-color: var(--vislun-player-white);
}

@media (hover: hover) and (pointer: fine) {
    .vislun-video-wrapper.vislun-video-vislun_padrao
    .vislun-video-cover:hover
    .vislun-video-cover-shade {
        background: rgba(0, 0, 0, 0.18);
    }

    .vislun-video-wrapper.vislun-video-vislun_padrao
    .vislun-video-cover:hover
    .vislun-video-cover-play {
        background: var(--vislun-player-accent-hover);

        box-shadow: none !important;
    }
}

.vislun-video-wrapper.vislun-video-vislun_padrao
.vislun-video-cover:focus-visible {
    outline:
        3px solid var(--vislun-player-accent) !important;

    outline-offset: -3px !important;
}

@media (max-width: 768px) {
    .vislun-video-wrapper.vislun-video-vislun_padrao {
        --vislun-player-center-play-width: 72px;
        --vislun-player-center-play-height: 50px;
        --vislun-player-center-play-radius: 6px;
    }

    .vislun-video-wrapper.vislun-video-vislun_padrao
    .vislun-video-cover-play span {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui {
    position: absolute;
    inset: 0;
    z-index: 70;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding:
        0
        var(--vislun-player-control-padding-x)
        var(--vislun-player-control-padding-bottom);

    color: var(--vislun-player-white);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    box-sizing: border-box;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui[hidden] {
    display: none !important;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame,
.vislun-video-wrapper.vislun-video-custom-player
video.vislun-html5-player {
    -webkit-touch-callout: none;
    -webkit-user-select: none;

    user-select: none;
}

.vislun-video-wrapper.vislun-video-custom-player
video.vislun-html5-player {
    -webkit-user-drag: none;

    user-drag: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui-gradient {
    position: absolute;
    inset: 68% 0 0;
    z-index: -1;

    background: var(--vislun-player-controls-gradient);

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    z-index: 2;

    min-height: 96px;

    display: flex;
    align-items: flex-start;

    padding:
        16px
        18px
        34px;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.46) 50%,
            rgba(0, 0, 0, 0) 100%
        );

    color: var(--vislun-player-white);

    box-sizing: border-box;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-header-text {
    width: 100%;
    max-width: calc(100% - 56px);

    min-width: 0;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-header-title {
    margin: 0;

    color: var(--vislun-player-white);

    font-size: 18px;
    font-weight: 400;
    line-height: 1.22;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.82);

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-header-subtitle {
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.82);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-header {
    min-height: 130px;

    padding:
        24px
        28px
        46px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-header-title {
    font-size: 24px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-header-subtitle {
    margin-top: 6px;

    font-size: 14px;
}

@media (max-width: 520px) {
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-header {
        min-height: 78px;

        padding:
            11px
            12px
            26px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-header-text {
        max-width: calc(100% - 44px);
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-header-title {
        font-size: 14px;
        line-height: 1.2;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-header-subtitle {
        margin-top: 3px;

        font-size: 11px;
    }
}
