.tl-timeline {
    width: 100%;
    padding: 6px 0;
}

.tl-track {
    position: relative;
    height: 20px;
    background: var(--timeline-track);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.tl-selection {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--timeline-selection);
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    pointer-events: none;
}

.tl-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 24px;
    background: var(--handle-color);
    border-radius: 3px;
    cursor: ew-resize;
    z-index: 2;
}

.tl-handle:hover {
    background: var(--accent-hover);
    width: 12px;
}

.tl-handle-in::after,
.tl-handle-out::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.tl-handle-in::after {
    left: 100%;
    margin-left: 2px;
    border-left: 5px solid var(--handle-color);
}

.tl-handle-out::after {
    right: 100%;
    margin-right: 2px;
    border-right: 5px solid var(--handle-color);
}

.tl-playhead {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 28px;
    background: #fff;
    border-radius: 2px;
    cursor: ew-resize;
    z-index: 3;
    pointer-events: all;
}

.tl-playhead::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
}
