/* 더빙 에디터 전용 스타일 — 공통은 editor/common/editor.css */

#dubbing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---------- 상단: 비디오 + 사이드 패널 ---------- */
#player-row {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
#video {
  width: 480px;
  max-height: 280px;
  background: #000;
  border-radius: 6px;
  cursor: pointer;
}
#side-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
#transport { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.transport-opt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

#clip-info {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  min-height: 84px;
}
.clip-info-head { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.clip-info-origin { color: var(--muted); margin-bottom: 2px; }
.clip-info-display { font-weight: 600; }

/* ---------- 타임라인 ---------- */
#timeline-section { flex: 1; min-height: 0; display: flex; }
#timeline-scroll {
  position: relative;
  flex: 1;
  overflow: auto;
  background: var(--bg);
}

#ruler {
  position: sticky;
  top: 0;
  height: 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  z-index: 3;
}
.ruler-tick {
  position: absolute;
  top: 0;
  height: 22px;
  border-left: 1px solid var(--border);
  padding: 3px 0 0 4px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.track-row { display: flex; height: 56px; border-bottom: 1px solid var(--border); }
.track-head {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 200px;
  min-width: 200px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.track-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-controls { display: flex; align-items: center; gap: 6px; }
.track-controls input[type="range"] { flex: 1; height: 14px; }
.btn.tiny {
  padding: 1px 7px;
  font-size: 11px;
  line-height: 1.5;
}
.btn.tiny.active { background: #2f6fed; color: #fff; border-color: #2f6fed; }

.track-lane { position: relative; flex-shrink: 0; }

.clip {
  position: absolute;
  top: 5px;
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(47, 111, 237, 0.45);
  background: rgba(47, 111, 237, 0.12);
}
.clip.role-ORIGINAL, .clip.role-BACKGROUND {
  border-color: rgba(120, 120, 120, 0.5);
  background: rgba(120, 120, 120, 0.12);
}
.clip.selected { outline: 2px solid #2f6fed; outline-offset: -1px; }
.clip-wave { position: absolute; top: 0; left: 0; pointer-events: none; }
.clip-label {
  position: absolute;
  left: 4px;
  bottom: 2px;
  right: 4px;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

#playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px solid #e0432f;
  z-index: 4;
  pointer-events: none;
}
