/* src/styles/debug-controls.css */

#debug-controls {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}

#progress-container {
  display: flex !important;
  flex-direction: column;
  background: rgba(30, 30, 30, 0.9);
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
}

#time-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #cccccc;
  font-family: "Ubuntu Mono", monospace;
  font-size: 12px;
}

#current-time,
#total-time {
  min-width: 40px;
  text-align: center;
  font-weight: 500;
}

#current-time {
  color: #2fd2a4;
}

#total-time {
  color: #888888;
}

#controls {
  display: flex !important;
  gap: 8px;
  background: rgba(30, 30, 30, 0.9);
  padding: 8px;
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
}

#song-slider {
  flex: 1;
  margin: 0 12px;
  appearance: none;
  height: 6px;
  background: #333333;
  border-radius: 3px;
  outline: none;
}

#song-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2fd2a4;
  cursor: pointer;
  border: 2px solid #000000;
}

#song-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2fd2a4;
  cursor: pointer;
  border: 2px solid #000000;
}

button {
  background: #2a2a2a;
  color: var(--fg);
  border: 1px solid #444444;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Ubuntu Mono", monospace;
  font-size: 13px;
  transition: all 0.2s ease;
}

button:hover {
  background: #333333;
  border-color: #555555;
}

button:active {
  background: #3a3a3a;
  transform: translateY(1px);
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #2a2a2a;
  border: 1px solid #444444;
  font-size: 12px;
  color: #cccccc;
}

.debug-visible #debug-controls {
  display: flex;
}

@media (max-width: 768px) {
  #debug-controls {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  #progress-container {
    padding: 8px;
    gap: 6px;
  }

  #time-display {
    font-size: 11px;
  }

  #current-time,
  #total-time {
    min-width: 35px;
  }

  #song-slider {
    margin: 0 8px;
  }

  #controls {
    padding: 6px;
    gap: 4px;
  }

  #controls button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .pill {
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  #debug-controls {
    bottom: 5px;
    gap: 4px;
  }

  #progress-container {
    padding: 6px;
    gap: 4px;
  }

  #time-display {
    font-size: 10px;
  }

  #current-time,
  #total-time {
    min-width: 30px;
  }

  #song-slider {
    margin: 0 6px;
  }

  #controls {
    padding: 4px;
    gap: 3px;
  }

  #controls button {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 40px;
  }

  .pill {
    padding: 6px 10px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  #controls {
    justify-content: space-around;
  }

  #controls button {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-size: 10px;
  }
}
