
.ns-slider-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 22, 30, 0.55);
    backdrop-filter: blur(5px);
    touch-action: none;
    overscroll-behavior: none;
}
.ns-slider-overlay.show { display: flex; }

html.ns-captcha-open,
html.ns-captcha-open body {
    overflow: hidden;
    overscroll-behavior: none;
    overscroll-behavior-x: none;
}

.ns-slider-panel {
    position: relative;
    width: min(340px, 100%);
    padding: 18px 16px 14px;
    border-radius: 12px;
    background: #fbfbfc;
    border: 1px solid rgba(18, 22, 30, 0.1);
    box-shadow: 0 18px 48px rgba(18, 22, 30, 0.28);
    color: #1a1d24;
}

.ns-slider-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
}

.ns-slider-brand {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 650;
}

.ns-slider-desc {
    margin: 0 0 12px;
    font-size: 14px;
    color: #1a1d24;
    font-weight: 600;
}

.ns-slider-stage {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #1c2028;
    border: 1px solid rgba(18, 22, 30, 0.12);
    user-select: none;
    touch-action: none;
    line-height: 0;
}

.ns-slider-bg {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.ns-slider-piece {
    position: absolute;
    left: 0;
    top: 0;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    will-change: left;
}

.ns-slider-track-wrap {
    position: relative;
    margin-top: 12px;
}

.ns-slider-track {
    position: relative;
    height: 40px;
    border-radius: 8px;
    background: #e8eaee;
    border: 1px solid rgba(18, 22, 30, 0.1);
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.ns-slider-track-tip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6b7280;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.ns-slider-track.is-active .ns-slider-track-tip {
    opacity: 0;
}

.ns-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(28, 32, 40, 0.14);
}

.ns-slider-knob {
    position: absolute;
    top: 3px;
    left: 0;
    width: 34px;
    height: 34px;
    margin-left: 0;
    border-radius: 8px;
    background: #1c2028;
    border: 1px solid #10141a;
    box-shadow: 0 3px 10px rgba(18, 22, 30, 0.28);
    cursor: grab;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.ns-slider-knob::after {
    content: '››';
    letter-spacing: -2px;
    opacity: 0.85;
    font-weight: 700;
}

.ns-slider-knob:active { cursor: grabbing; }

.ns-slider-status {
    min-height: 20px;
    margin: 10px 0 8px;
    font-size: 13px;
    color: #5c6370;
}

.ns-slider-status.is-err { color: #b42318; }
.ns-slider-status.is-ok { color: #1c2028; font-weight: 650; }

.ns-slider-refresh {
    border: 1px solid rgba(18, 22, 30, 0.14);
    background: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1d24;
    font-weight: 600;
}

.ns-slider-refresh:hover {
    background: #f3f4f6;
}

.ns-slider-noise,
.ns-slider-marks {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .ns-slider-track-tip,
    .ns-slider-piece {
        transition: none;
    }
}
