/**
 * Vislun Video System — menus, configurações e compartilhamento
 *
 * 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-settings-menu {
    position: absolute;
    right: 18px;
    bottom: calc(
        var(--vislun-player-control-height)
        + var(--vislun-player-progress-hit-area)
        + 8px
    );

    z-index: 3;

    min-width: 124px;
    max-width: 124px;

    padding: 4px;

    border: 0;
    border-radius: 5px;

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

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

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    overflow: hidden;

    box-sizing: border-box;

    pointer-events: none;
}

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

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-settings-title {
    padding: 5px 8px 6px;

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

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-settings-menu button {
    width: 100%;
    min-height: 24px;

    display: flex;
    align-items: center;

    padding: 3px 8px;

    border: 0;
    border-radius: 4px;

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

    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    text-transform: none !important;
    white-space: nowrap;

    box-sizing: border-box;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-settings-menu button.is-selected {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;

    background: var(--vislun-player-accent);
    background-clip: padding-box;

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

    font-weight: 600;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-settings-menu {
    bottom: calc(
        var(--vislun-player-control-height)
        + var(--vislun-player-progress-hit-area)
        + 8px
    );

    min-width: 156px;
    max-width: none;

    padding: 4px;

    border-radius: 6px;

    overflow: visible;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-settings-title {
    padding: 5px 8px 6px;

    font-size: 10px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-settings-menu button {
    padding: 3px 8px;

    font-size: 12px;
    line-height: 1.2;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-toggle {
    position: absolute;
    top: 12px;
    right: 12px;

    z-index: 3;

    overflow: visible;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-toggle::before {
    content: "";

    position: absolute;
    top: -12px;
    right: -12px;

    z-index: 0;

    width: 92px;
    height: 72px;

    background:
        radial-gradient(
            ellipse at top right,
            rgba(0, 0, 0, 0.76) 0%,
            rgba(0, 0, 0, 0.48) 34%,
            rgba(0, 0, 0, 0.20) 58%,
            rgba(0, 0, 0, 0) 78%
        );

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-toggle > span {
    z-index: 1;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-video-frame:is(:fullscreen, :-webkit-full-screen)
.vislun-player-share-toggle {
    top: 20px;
    right: 20px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-active.is-interactive
.vislun-player-share-toggle {
    pointer-events: auto;
    cursor: pointer;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-panel {
    position: absolute;
    inset: 0;

    z-index: 6;

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

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

    box-sizing: border-box;

    pointer-events: none;
}

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

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-active.is-interactive
.vislun-player-share-panel:not([hidden]) {
    pointer-events: auto;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-ui-gradient,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-header,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-share-toggle,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-progress-area,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-center-toggle,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-controls-row,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-ui.is-share-open
> .vislun-player-settings-menu {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-close {
    position: absolute;
    top: 10px;
    right: 10px;

    z-index: 2;

    width: 40px;
    height: 40px;

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

    pointer-events: auto;
    cursor: pointer;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-close > span {
    width: 24px;
    height: 24px;

    background-color: currentColor;

    --vislun-player-share-close-icon:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20960%20960'%3E%3Cpath%20fill='white'%20d='M480,536L284,732Q273,743%20256,743Q239,743%20228,732Q217,721%20217,704Q217,687%20228,676L424,480L228,284Q217,273%20217,256Q217,239%20228,228Q239,217%20256,217Q273,217%20284,228L480,424L676,228Q687,217%20704,217Q721,217%20732,228Q743,239%20743,256Q743,273%20732,284L536,480L732,676Q743,687%20743,704Q743,721%20732,732Q721,743%20704,743Q687,743%20676,732L480,536Z'/%3E%3C/svg%3E");

    -webkit-mask-image:
        var(--vislun-player-share-close-icon);

    mask-image:
        var(--vislun-player-share-close-icon);

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-options {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 46px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-action {
    width: 54px;
    height: 54px;

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

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: rgba(255, 255, 255, 0.86);

    appearance: none;
    -webkit-appearance: none;

    transition:
        color var(--vislun-player-transition-fast),
        background var(--vislun-player-transition-fast),
        transform var(--vislun-player-transition-fast);

    pointer-events: auto;
    cursor: pointer;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-action > span {
    display: block;

    width: 34px;
    height: 34px;

    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    pointer-events: none;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-facebook > span {
    --vislun-player-share-facebook-icon:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='white'%20d='M22%2012c0-5.52-4.48-10-10-10S2%206.48%202%2012c0%204.84%203.44%208.87%208%209.8V15H8v-3h2V9.5C10%207.57%2011.57%206%2013.5%206H16v3h-2c-.55%200-1%20.45-1%201v2h3v3h-3v6.95c5.05-.5%209-4.76%209-9.95z'/%3E%3C/svg%3E");

    -webkit-mask-image:
        var(--vislun-player-share-facebook-icon);

    mask-image:
        var(--vislun-player-share-facebook-icon);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-whatsapp > span {
    --vislun-player-share-whatsapp-icon:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='white'%20d='M16.75%2013.96c.25.13.41.2.46.3.06.11.04.61-.21%201.18-.2.56-1.24%201.1-1.7%201.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15%200%20.36-.06.55.45l.69%201.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62%201.09%201.32%201.78.91.88%201.71%201.17%201.95%201.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12%202a10%2010%200%200%201%2010%2010%2010%2010%200%200%201-10%2010c-1.97%200-3.8-.57-5.35-1.55L2%2022l1.55-4.65A9.969%209.969%200%200%201%202%2012%2010%2010%200%200%201%2012%202m0%202a8%208%200%200%200-8%208c0%201.72.54%203.31%201.46%204.61L4.5%2019.5l2.89-.96A7.95%207.95%200%200%200%2012%2020a8%208%200%200%200%208-8%208%208%200%200%200-8-8z'/%3E%3C/svg%3E");

    -webkit-mask-image:
        var(--vislun-player-share-whatsapp-icon);

    mask-image:
        var(--vislun-player-share-whatsapp-icon);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-copy > span,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-feedback-icon {
    --vislun-player-share-link-icon:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20960%20960'%3E%3Cpath%20fill='white'%20d='M318,840Q236,840%20178,782Q120,724%20120,642Q120,602%20135,566Q150,530%20178,502L283,397Q295,385%20311.5,385Q328,385%20340,397Q352,409%20352,425Q352,441%20340,453L234,559Q217,576%20208.5,597.5Q200,619%20200,642Q200,691%20234.5,725.5Q269,760%20318,760Q341,760%20363,751.5Q385,743%20402,726L507,620Q519,609%20535,609Q551,609%20563,621Q575,633%20575,649Q575,665%20563,677L458,782Q430,810%20394,825Q358,840%20318,840ZM368,592Q356,580%20356,563.5Q356,547%20368,535L535,368Q547,356%20563.5,356Q580,356%20592,368Q604,380%20604,396.5Q604,413%20592,425L425,592Q413,604%20396.5,604Q380,604%20368,592ZM620,563Q608,551%20608,535Q608,519%20620,507L726,402Q743,385%20751,364Q759,343%20759,320Q759,270%20725,235Q691,200%20641,200Q618,200%20596.5,208.5Q575,217%20558,234L453,340Q441,352%20425,352Q409,352%20397,340Q385,328%20385,311.5Q385,295%20397,283L502,178Q530,150%20566,135Q602,120%20642,120Q724,120%20781.5,178Q839,236%20839,319Q839,358%20824.5,394Q810,430%20782,458L677,563Q665,575%20648.5,575Q632,575%20620,563Z'/%3E%3C/svg%3E");

    -webkit-mask-image:
        var(--vislun-player-share-link-icon);

    mask-image:
        var(--vislun-player-share-link-icon);
}

@media (hover: hover) and (pointer: fine) {
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-action:hover,
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-close:hover {
        color: var(--vislun-player-accent);

        background: rgba(255, 255, 255, 0.08);
    }
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-action:focus-visible,
.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-close:focus-visible {
    outline: 2px solid var(--vislun-player-accent);
    outline-offset: 2px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-action:active {
    transform: scale(0.92);
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-feedback {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    max-width: calc(100% - 80px);

    color: rgba(255, 255, 255, 0.92);
}

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

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-feedback-icon {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-feedback-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-feedback-message {
    color: var(--vislun-player-white);

    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-feedback-url {
    display: block;

    max-width: 420px;

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

    font-size: 11px;
    line-height: 1.3;

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

.vislun-video-wrapper.vislun-video-custom-player
.vislun-player-share-panel.is-feedback-visible
.vislun-player-share-options {
    display: none;
}

@media (max-width: 520px) {
    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-toggle {
        top: 6px;
        right: 6px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-options {
        gap: 26px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-action {
        width: 48px;
        height: 48px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-action > span {
        width: 30px;
        height: 30px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-close {
        top: 6px;
        right: 6px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-feedback {
        max-width: calc(100% - 48px);
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-feedback-icon {
        width: 36px;
        height: 36px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-feedback-message {
        font-size: 14px;
    }

    .vislun-video-wrapper.vislun-video-custom-player
    .vislun-player-share-feedback-url {
        max-width: 210px;

        font-size: 10px;
    }
}
