* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #0f0f14;
  color: #eaeaf0;
  margin: 0;
  padding: 40px 20px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

header h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.subtitle {
  color: #9a9aab;
  font-size: 14px;
  margin-top: 0;
}

.drop-zone {
  border: 2px dashed #3a3a4a;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: #6c6cff;
  background: #16162080;
}

.drop-zone p {
  margin: 0;
  color: #c5c5d5;
}

.status {
  margin-top: 16px;
  color: #8f8fbf;
  font-size: 14px;
  min-height: 20px;
}

.hidden {
  display: none;
}

#player-section {
  margin-top: 24px;
}

.track-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

audio {
  width: 100%;
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  display: flex;
  width: 100%;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a3a;
}

.segment {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border-right: 1px solid rgba(0,0,0,0.25);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s;
}

.segment:hover {
  filter: brightness(1.15);
}

.segment.active {
  filter: brightness(1.35);
  box-shadow: inset 0 0 0 2px #fff;
}

.playhead-wrap {
  position: relative;
  width: 100%;
}

.playhead {
  position: relative;
  height: 0;
}

.playhead-marker {
  position: absolute;
  top: -64px;
  width: 2px;
  height: 64px;
  background: #fff;
  pointer-events: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c5c5d5;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.section-list {
  margin-top: 20px;
  border-top: 1px solid #2a2a3a;
  padding-top: 12px;
}

.section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}

.section-row:hover {
  background: #1a1a24;
}

.section-row .time {
  color: #8f8fa8;
  width: 130px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.section-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-row .label {
  font-weight: 600;
}

.section-row .energy-bar {
  margin-left: auto;
  width: 80px;
  height: 6px;
  background: #23232f;
  border-radius: 3px;
  overflow: hidden;
}

.section-row .energy-fill {
  height: 100%;
  background: #6c6cff;
}
