/* Additions for the comparison page (style.css is shared with lyrics-aligner). */
:root { --slot-a: #2563eb; --slot-b: #c2410c; --res: #7c3aed; --official: #0d9488; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --slot-a: #60a5fa; --slot-b: #fb923c; --res: #a78bfa; --official: #2dd4bf; } }
:root[data-theme="dark"] { --slot-a: #60a5fa; --slot-b: #fb923c; --res: #a78bfa; --official: #2dd4bf; }

.drop {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  border: 2px dashed var(--line); border-radius: 12px; padding: 28px 16px; margin-bottom: 16px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-title { font-weight: 600; font-size: 16px; }
.file-name { font-size: 14px; color: var(--accent); word-break: break-all; }
.slot-a { color: var(--slot-a); }
.slot-b { color: var(--slot-b); }
.field.narrow { flex: 0 1 140px; }
.tracks { display: grid; gap: 10px; margin: 12px 0 20px; }
.track { border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; padding: 8px 12px; }
.track audio { margin: 6px 0 0; }
.track-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.track-head .link { margin-left: auto; }
.slot-a-border { border-left-color: var(--slot-a); }
.slot-b-border { border-left-color: var(--slot-b); }
.residual-border { border-left-color: var(--res); }
.spec-title { margin-top: 8px; }
.spec { display: flex; gap: 6px; margin-top: 4px; }
.spec-axis { position: relative; width: 44px; flex: 0 0 44px; height: 256px; font-size: 11px; color: var(--muted); }
.spec-axis span { position: absolute; right: 2px; transform: translateY(50%); white-space: nowrap; }
.spec-scroll { overflow-x: auto; flex: 1 1 auto; min-width: 0; }
.spec-inner { position: relative; height: 256px; }
.spec-inner canvas { display: block; width: 100%; height: 256px; image-rendering: auto; cursor: pointer; border-radius: 4px; background: #000; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 2px #000; pointer-events: none; left: 0; }
.time-axis { position: relative; height: 18px; font-size: 11px; color: var(--muted); }
.time-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.colorbar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 8px 0 4px 50px; }
.colorbar .cb { height: 10px; flex: 0 1 240px; border-radius: 3px; }

.dyn { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; margin-bottom: 16px; }
.dyn .row { align-items: center; }
.dyn-params .field.narrow { flex: 0 1 120px; }
.dyn-table td, .dyn-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dyn-table .better { color: #16a34a; font-weight: 600; }
.lufs { display: flex; gap: 6px; margin-top: 4px; }
.lufs-axis { position: relative; width: 44px; flex: 0 0 44px; height: 200px; font-size: 11px; color: var(--muted); }
.lufs-axis span { position: absolute; right: 2px; transform: translateY(50%); white-space: nowrap; }
.lufs-plot { position: relative; flex: 1 1 auto; min-width: 0; }
.lufs-plot canvas { display: block; width: 100%; height: 200px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.drop-small { padding: 14px 16px; }
.official-border { border-left-color: var(--official); }
.freq-axis { position: relative; height: 18px; font-size: 11px; color: var(--muted); }
.freq-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dyn-table .vs-official { display: none; }
.dyn-table.has-official .vs-official { display: table-cell; }
