/* Tutti gli stili componenti sono consolidati in main.css */
/* Questo file contiene override e nuovi componenti */

/* ===== TIMELINE EDITOR ===== */
.tl-editor { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
.tl-editor-header { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.tl-editor-title { display: flex; align-items: center; gap: 10px; }
.tl-editor-title span:first-child { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.tl-editor-meta { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.tl-editor-actions { display: flex; gap: 8px; }

/* Card tracce */
.tl-cards-wrap { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 12px 16px; overflow-x: auto; }
.tl-cards { display: flex; gap: 8px; min-width: max-content; }
.tl-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; width: 160px; cursor: pointer; transition: all 150ms; flex-shrink: 0; }
.tl-card:hover { border-color: var(--border-bright); }
.tl-card.active { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 12px var(--accent-glow); }
.tl-card-num { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 4px; }
.tl-card-title { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.tl-card-artist { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.tl-card-meta { display: flex; gap: 4px; align-items: center; }
.tl-card-bpm { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(124,108,255,0.2); border-radius: 20px; padding: 1px 6px; font-family: var(--font-mono); }
.tl-card-effect { font-size: 10px; color: var(--pink); background: var(--pink-dim); border: 1px solid rgba(232,121,160,0.2); border-radius: 20px; padding: 1px 6px; }

/* Timeline canvas */
.tl-timeline-wrap { background: var(--bg-base); padding: 8px 16px 0; }
.tl-ruler { height: 20px; position: relative; margin-bottom: 4px; font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }
.tl-ruler-tick { position: absolute; transform: translateX(-50%); }
.tl-canvas-wrap { position: relative; height: 120px; cursor: pointer; }
#tlCanvas { width: 100%; height: 120px; display: block; }
.tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pink); pointer-events: none; left: 0; box-shadow: 0 0 6px var(--pink); }

/* Pannello editor transizione */
.tl-transition-editor { background: var(--bg-elevated); border-top: 1px solid var(--border); animation: fade-in-up 200ms ease; }
.tl-te-header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.tl-te-title { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.tl-te-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0; margin-left: auto; }
.tl-te-close:hover { color: var(--text-primary); }
.tl-te-body { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.tl-te-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.tl-te-actions { display: flex; gap: 8px; align-items: center; padding: 0 20px 16px; }
.tl-te-log { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 6px; }

/* Tab sistema nel pannello editor */
.tl-te-tabs { display: flex; gap: 4px; flex: 1; }
.tl-te-tab { background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-muted); padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 150ms; font-family: var(--font); text-transform: uppercase; letter-spacing: 0.5px; }
.tl-te-tab:hover { border-color: var(--border-bright); color: var(--text-secondary); }
.tl-te-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.tl-te-panel { display: none; padding: 14px 20px; }
.tl-te-panel.active { display: block; }

/* Volume controls */
.tl-te-volumes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tl-te-vol-row { display: flex; align-items: center; gap: 12px; }
.tl-te-vol-ctrl { display: flex; align-items: center; gap: 8px; flex: 1; }
.tl-te-vol-label { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); min-width: 36px; text-align: right; }

/* EQ tab */
.tl-te-eq-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.tl-te-eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.tl-te-eq-col { display: flex; flex-direction: column; gap: 10px; }
.tl-te-eq-title { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.tl-te-eq-presets { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }

/* Mid FX tab */
.tl-te-fx-preview { margin-top: 10px; padding: 8px 10px; background: var(--bg-card); border-radius: var(--r-sm); border: 1px solid var(--border); }

/* Arrange tab */
.tl-arrange-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 200px; overflow-y: auto; }
.tl-arrange-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; display: flex; align-items: center; gap: 10px; cursor: grab; font-size: 12px; color: var(--text-secondary); transition: all 150ms; }
.tl-arrange-item:hover { border-color: var(--border-bright); color: var(--text-primary); }
.tl-arrange-item.dragging { opacity: 0.5; border-color: var(--accent); }
.tl-arrange-handle { color: var(--text-muted); font-size: 14px; cursor: grab; }
.tl-arrange-num { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); min-width: 20px; }
.tl-arrange-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-arrange-bpm { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }

/* Player */
.tl-player { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.tl-play-btn { background: var(--accent); border: none; border-radius: 50%; width: 36px; height: 36px; color: white; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 150ms; }
.tl-play-btn:hover { filter: brightness(1.15); box-shadow: 0 0 12px var(--accent-glow); }
.tl-progress-wrap { flex: 1; }
.tl-progress { height: 4px; background: var(--bg-elevated); border-radius: 2px; cursor: pointer; position: relative; transition: height 150ms; }
.tl-progress:hover { height: 6px; }
.tl-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); border-radius: 2px; pointer-events: none; }
.tl-time { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }
.tl-vol { width: 80px; accent-color: var(--accent); }
