
/* --- 8. Animation Sliders --- */
.anim-sliders-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 5px 0;
}
.anim-slider-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 5px 10px;
    padding: 8px 10px;
    position: relative;
    transition: border-color 0.15s;
    --slider-acc: var(--accent);
}
.anim-slider-item:hover { border-color: var(--border-light); }
.anim-slider-item.active-slider {
    border-color: var(--slider-acc);
    box-shadow: 0 0 6px color-mix(in srgb, var(--slider-acc) 30%, transparent);
}
.anim-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 4px;
}
.anim-slider-name {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 4px;
    border-radius: 3px;
}
.anim-slider-name:hover { background: var(--bg-hover); }
.anim-slider-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    flex-shrink: 0;
    background: var(--slider-acc);
}
.anim-slider-color-dot input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}
.anim-slider-controls {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}
.anim-slider-controls button {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-dim);
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.anim-slider-controls button:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
    border-color: var(--border-light);
}
.anim-slider-controls button.rec-active {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
    animation: recBlink 0.8s infinite;
}
.anim-slider-controls .anim-slider-local-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    padding: 0 4px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: #a78bfa;
    border-radius: 3px;
    cursor: pointer;
    font-size: 9px;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.anim-slider-controls .anim-slider-local-toggle input {
    width: 11px;
    height: 11px;
    accent-color: #a78bfa;
    cursor: pointer;
    margin: 0;
}
.anim-slider-controls .anim-slider-local-toggle:hover {
    background: var(--bg-hover);
    color: #c4b5fd;
    border-color: var(--border-light);
}
.anim-slider-controls .anim-slider-local-toggle:has(input:checked) {
    background: rgba(167, 139, 250, 0.12);
    border-color: #a78bfa;
}
@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.anim-slider-range-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.anim-slider-range {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-hover);
    border-radius: 3px;
    cursor: pointer;
}
.anim-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    background: var(--slider-acc);
}
.anim-slider-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    background: var(--slider-acc);
}

.anim-slider-val {
    font-size: 10px;
    color: var(--text-main);
    min-width: 32px;
    text-align: center;
    background: var(--bg-panel-alt);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}
.anim-slider-keyframes-bar {
    position: relative;
    height: 12px;
    margin-top: 5px;
    background: var(--bg-panel-alt);
    border-radius: 3px;
    overflow: visible;
}
.anim-kf-marker {
    position: absolute;
    top: 2px;
    width: 8px;
    height: 8px;
    background: #d4a017;
    border-radius: 2px;
    cursor: pointer;
    transform: translateX(50%);
    transition: background 0.1s, transform 0.1s;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.3);
}
.anim-kf-marker:hover {
    background: #eab308;
    transform: translateX(50%) scale(1.25);
    z-index: 3;
}
.anim-kf-marker.active-kf {
    background: #fff;
    border-color: var(--slider-acc);
}
.anim-kf-marker.local-kf {
    background: #a78bfa;
    border-radius: 2px;
    transform: translateX(50%) rotate(45deg) scale(0.9);
    border-color: #8b5cf6;
}
.anim-kf-marker.local-kf:hover {
    transform: translateX(50%) rotate(45deg) scale(1.15);
}
.anim-kf-marker.local-kf.active-kf {
    background: #fff;
    box-shadow: 0 0 0 3px #a78bfa66;
}
.anim-slider-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9px;
    color: var(--text-dim);
}
.anim-slider-bottom-row input[type="number"] {
    width: 45px;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 9px;
}
.anim-slider-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 20px 10px;
    font-size: 11px;
}
