/* library.css — 좌측 곡 라이브러리 + 드래그앤드롭 오버레이 */

.library .panel-head .head-actions {
  display: flex;
  gap: 4px;
}
.library .panel-head .icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  padding: 0;
}
.library .panel-body {
  padding: 6px;
}

.lib-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
  height: 100%;
}
.lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.lib-item .ico {
  flex-shrink: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lib-item.active .ico { color: var(--accent); }
.lib-item:last-child { border-bottom: 0; }
.lib-item:hover { background: var(--hover); }
.lib-item.active {
  background: rgba(108,224,182,0.10);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.lib-item .name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-item .info {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.lib-empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.lib-empty .hint { color: var(--dim); font-size: 11px; margin-top: 4px; }

/* 드래그 호버 상태 */
.library.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: -3px;
  background: rgba(108, 224, 182, 0.06);
}
.library.drag-over .lib-list,
.library.drag-over .lib-empty { pointer-events: none; }

.drop-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(108, 224, 182, 0.06);
  border: 3px dashed var(--accent);
  border-radius: 12px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.drop-overlay.show { display: flex; }
