/* sampler.css — sample loading module: track selector, waveform + trim. */

.sampler {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.05)),
    var(--panel-3);
  border: 1px solid #050B10;
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sampler select.sampler-track {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
}
.sampler select.sampler-track:focus { outline: 1px solid var(--accent-bright); }

.sampler-wave {
  position: relative;
  width: 300px;
  height: 64px;
  border: 1px solid #050B10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.sampler-wave canvas { display: block; }

.sampler-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent-bright);
  cursor: ew-resize;
  box-shadow: 0 0 6px rgba(217, 155, 127, 0.7);
  z-index: 3;
}
.sampler-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0A1218;
  border: 1px solid var(--accent-bright);
}
.sampler-handle-start { border-radius: 0 0 0 3px; }
.sampler-handle-end { border-radius: 0 3px 0 0; }

.sampler-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sampler-meta .hw-readout {
  width: 100%;
  justify-content: flex-start;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sampler-file.error { color: #E8A89A; text-shadow: 0 0 6px rgba(176, 88, 78, 0.7); }

.sampler-actions { display: flex; gap: 8px; }
