/**
 * Vislun Video System — progresso e tempo
 *
 * 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-progress-area {
    position: relative;

    width: 100%;
    height: var(--vislun-player-progress-hit-area);

    display: flex;
    align-items: center;

    margin-bottom: 2px;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress {
    position: relative;

    width: 100%;
    height: var(--vislun-player-progress-hit-area);

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    appearance: none;
    -webkit-appearance: none;

    touch-action: none;
    -ms-touch-action: none;

    -webkit-tap-highlight-color: transparent;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-track {
    position: relative;

    display: block;

    width: 100%;
    height: var(--vislun-player-progress-height);

    overflow: visible;

    border-radius: 999px;

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

    transition:
        height var(--vislun-player-transition-fast);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-buffer,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-played {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 0;

    border-radius: inherit;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-buffer {
    background: var(--vislun-player-track-loaded);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-played {
    background: var(--vislun-player-accent);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;

    width: var(--vislun-player-progress-thumb);
    height: var(--vislun-player-progress-thumb);

    border-radius: 50%;

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

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.42);

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

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 3px);

    min-width: 42px;

    padding: 5px 9px;

    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            rgba(54, 54, 54, 0.78) 0%,
            rgba(20, 20, 20, 0.60) 100%
        );

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

    font-size: 12px;
    line-height: 1;
    text-align: center;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.24);

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%);

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-time {
    flex: 0 0 auto;

    min-width: 76px;
    height: var(--vislun-player-control-height);

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

    margin: 0;
    padding: 0 3px;

    border: 0;

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

    font-size: var(--vislun-player-time-size);
    font-variant-numeric: tabular-nums;
    line-height: 1;

    appearance: none;
    -webkit-appearance: none;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress:hover
.vislun-player-progress-thumb,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-progress:focus-visible
.vislun-player-progress-thumb,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-seeking
.vislun-player-progress-thumb {
    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.42),
        0 0 0 3px rgba(255, 255, 255, 0.30);
}
