* {
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.08), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(217, 70, 239, 0.05), transparent 50%),
                #020617;
}

/* Скроллбар таймлайна */
#timeline-container::-webkit-scrollbar {
    height: 8px;
}
#timeline-container::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}
#timeline-container::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
#timeline-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Превьюшки */
.timeline-preview {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-right: 1px solid #1e293b;
    user-select: none;
    -webkit-user-drag: none;
}

/* Сегмент */
.segment {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.4), rgba(217, 70, 239, 0.4));
    border: 2px solid rgba(139, 92, 246, 0.9);
    border-radius: 6px;
    pointer-events: auto;
    cursor: grab;
    transition: background 0.15s, border-color 0.15s;
    min-width: 40px;
}
.segment:hover {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.55), rgba(217, 70, 239, 0.55));
}
.segment.dragging {
    cursor: grabbing;
    border-color: #f0