#timeline-container {
    margin-top: 1.5rem;
}

.timeline-wrapper {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 1rem;
}

.timeline-canvas {
    width: 100%;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
    display: block;
}

.timeline-canvas:hover {
    border-color: var(--primary-color);
}

.timeline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-zoom {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.zoom-btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timeline-legend {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.legend-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legend-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.playhead {
    background: #e74c3c;
}

.legend-color.segment {
    background: rgba(74, 144, 226, 0.6);
}

.legend-color.preview {
    background: rgba(255, 193, 7, 0.6);
}
