/* ---- Global player layout: horizontal alignment ---- */
.global-player-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  margin-left: 10px; /* adjust as needed */
  margin-bottom: 10px;
  min-width: 280px;
}

/* Ensure immediate parent row uses flex and center alignment */
.midi-library-wrapper > div,
.midi-library-wrapper .global-player-wrapper,
.midi-library-wrapper .custom-audio-global {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Global play button */
.global-player-wrapper .play-btn {
  width: 50px;
  height: 30px;
  padding: 0;
  border: none;
  background: #343538;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.global-player-wrapper .play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Progress + time in a single horizontal row */
.global-player-wrapper .progress-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 160px;
}

/* Horizontal progress bar */
.global-player-wrapper .progress {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #343538;
  -webkit-appearance: none;
  appearance: none;
}
.global-player-wrapper .progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #348094;
  border: none;
}
.global-player-wrapper .time {
  white-space: nowrap;
  font-size: 12px;
  color: #343538;
  min-width: 70px;
  text-align: right;
}

/* Volume slider: gradient line, no thumb */
.global-player-wrapper .vol input[type="range"] {
  -webkit-appearance: none;
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #348094 80%, #fff 80%);
  cursor: pointer;
}
.global-player-wrapper .vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
}

/* Table play button */
.play-track-btn {
  width: 50px;
  height: 30px;
  padding: 0;
  border: none;
  background: #343538;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.play-track-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hover effect */
.play-track-btn:hover,
.global-player-wrapper .play-btn:hover {
  background-color: #348094;
}

/* Small-screen fallback */
@media (max-width: 720px) {
  .midi-library-wrapper > div {
    flex-wrap: wrap;
    gap: 8px;
  }
  .global-player-wrapper { width: 100%; }
  .global-player-wrapper .progress { width: 100%; }
}
