/* =============================================
   Laiko juosta
   ============================================= */

#timeline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: rgba(30, 24, 16, 0.95);
    backdrop-filter: blur(8px);
    z-index: 80;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
}

#timeline-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    height: 36px;
}

.tl-btn {
    background: rgba(100, 80, 50, 0.3);
    color: #c4a35a;
    border: 1px solid rgba(196, 163, 90, 0.25);
    width: 30px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tl-btn:hover {
    background: rgba(140, 110, 60, 0.4);
}

#tl-current-date {
    color: #e8dcc0;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    min-width: 80px;
}

#tl-speed {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

#tl-speed label {
    color: #a89878;
    font-size: 11px;
}

#tl-speed-input {
    width: 80px;
    accent-color: #c4a35a;
}

/* -- Pagrindinis timeline canvas ---------------- */

#timeline {
    position: relative;
    height: 50px;
    margin: 0 16px;
    cursor: pointer;
}

#timeline-canvas {
    width: 100%;
    height: 100%;
}

#timeline-cursor {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #c4a35a;
    border-radius: 2px;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(196, 163, 90, 0.5);
    transition: left 0.1s ease-out;
}

/* -- Sub-laiko juosta -------------------------- */

#sub-timeline-container {
    border-top: 1px solid rgba(196, 163, 90, 0.15);
    background: rgba(40, 32, 20, 0.6);
}

#sub-timeline-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    height: 28px;
}

#sub-tl-label {
    color: #c4a35a;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

#sub-timeline {
    position: relative;
    height: 36px;
    margin: 0 16px 4px;
    cursor: pointer;
}

#sub-timeline-canvas {
    width: 100%;
    height: 100%;
}

#sub-timeline-cursor {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: #e67e22;
    border-radius: 2px;
    pointer-events: none;
}
