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

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-scene-preview {
    position: absolute;
    left: var(--vislun-scene-preview-left, 50%);
    bottom: calc(100% + 8px);

    z-index: 4;

    width: 150px;
    max-width: calc(100% - 24px);

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border: 0;
    border-radius: 3px;

    background:
        linear-gradient(
            to bottom,
            rgba(42, 42, 42, 0.72) 0%,
            rgba(14, 14, 14, 0.58) 100%
        );

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.30);

    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;

    transform:
        translate3d(-50%, 4px, 0);

    transition:
        opacity var(--vislun-player-transition-fast),
        visibility var(--vislun-player-transition-fast),
        transform var(--vislun-player-transition-fast);

    pointer-events: none;
}

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

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-scene-preview.is-visible:not([hidden]) {
    opacity: 1;
    visibility: visible;

    transform:
        translate3d(-50%, 0, 0);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-scene-preview-media {
    position: absolute;
    inset: 0;

    z-index: 1;

    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-scene-preview::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;

    height: 36%;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.48) 100%
        );

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-scene-preview-time {
    position: absolute;
    bottom: 0;
    left: 50%;

    z-index: 3;

    width: max-content;
    max-width: calc(100% - 12px);

    padding: 4px 8px;

    border-radius: 3px 3px 0 0;

    background:
        linear-gradient(
            to bottom,
            rgba(46, 46, 46, 0.66) 0%,
            rgba(16, 16, 16, 0.54) 100%
        );

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

    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    white-space: nowrap;

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

    transform: translateX(-50%);

    box-sizing: border-box;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-scene-preview {
    width: 240px;
}

@media (max-width: 520px) {
    
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-scene-preview {
        bottom: calc(100% + 8px);

        width: 42vw;
        min-width: 132px;
        max-width: 160px;

        border-radius: 3px;

        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.30);
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-scene-preview-time {
        bottom: 0;

        width: max-content;
        min-width: 0;

        padding: 3px 7px;

        font-size: 12px;
    }

    
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
    .vislun-player-scene-preview {
        width: 42vw;
        min-width: 136px;
        max-width: 170px;
    }
}

@media (
    max-height: 520px
) and (
    orientation: landscape
) {
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
    .vislun-player-scene-preview {
        bottom: calc(100% + 7px);

        width: 20vw;
        min-width: 142px;
        max-width: 180px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
    .vislun-player-scene-preview-time {
        padding: 3px 7px;

        font-size: 12px;
    }
}
