/* SavvyGreat Snapic Global/Friends single-media viewer
   20260815-snapic-voting-single-viewer-1 */

.sgsnapic-voting-single-viewer {
    width: min(940px, calc(100vw - 28px));
    max-width: 940px;
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #111318;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.46);
}

.sgsnapic-voting-single-viewer::backdrop {
    background: rgba(8,10,14,.76);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sgsnapic-voting-single-viewer[open] {
    display: block;
}

.sgsnapic-voting-single-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    max-height: calc(100dvh - 28px);
    min-height: min(640px, calc(100dvh - 28px));
}

.sgsnapic-voting-single-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(20,22,28,.96);
}

.sgsnapic-voting-single-head > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sgsnapic-voting-single-head span {
    color: #b9c2d0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sgsnapic-voting-single-head strong {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgsnapic-voting-single-close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
}

.sgsnapic-voting-single-close:hover,
.sgsnapic-voting-single-close:focus-visible {
    background: rgba(255,255,255,.16);
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 2px;
}

.sgsnapic-voting-single-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.sgsnapic-voting-single-stage {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #050608;
}

.sgsnapic-voting-single-stage img,
.sgsnapic-voting-single-stage video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - 180px);
    object-fit: contain;
    object-position: center;
    background: #050608;
}

.sgsnapic-voting-single-stage img[hidden],
.sgsnapic-voting-single-stage video[hidden] {
    display: none !important;
}

.sgsnapic-voting-single-info {
    display: grid;
    gap: 6px;
    padding: 13px 18px 16px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(20,22,28,.98);
}

.sgsnapic-voting-single-info time {
    color: #aeb8c8;
    font-size: 12px;
    font-weight: 700;
}

.sgsnapic-voting-single-info p {
    max-height: 84px;
    margin: 0;
    overflow: auto;
    color: #eef2f7;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .sgsnapic-voting-single-viewer {
        width: 100vw;
        max-width: none;
        max-height: 100dvh;
        border-radius: 0;
    }

    .sgsnapic-voting-single-shell {
        min-height: 100dvh;
        max-height: 100dvh;
    }

    .sgsnapic-voting-single-head {
        min-height: calc(58px + env(safe-area-inset-top));
        padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    }

    .sgsnapic-voting-single-stage img,
    .sgsnapic-voting-single-stage video {
        max-height: none;
    }

    .sgsnapic-voting-single-info {
        padding: 11px 14px calc(13px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgsnapic-voting-single-viewer,
    .sgsnapic-voting-single-viewer * {
        scroll-behavior: auto !important;
    }
}
