* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.player-container {
  background: linear-gradient(145deg, #d1d5db, #e5e7eb);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 1000px;
  border-top: 3px solid #9ca3af;
  border-left: 3px solid #9ca3af;
}

.player-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 80px;
  gap: 24px;
}

/* Display Section */
.display-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 2px solid #9ca3af;
  padding-right: 16px;
}

.display {
  background: linear-gradient(135deg, #c7e6c7, #a3b8a3);
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #2f4f4f;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Orbitron', monospace;
  color: #1e3b1e;
  font-size: 12px;
  margin-bottom: 8px;
}

.display-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.track-number {
  font-family: 'Orbitron', monospace;
  font-size: 72px;
  color: #1e3b1e;
  font-weight: 700;
  line-height: 1;
}

.time-info {
  text-align: right;
}

.time-display {
  font-family: 'Roboto Mono';
  font-size: 32px;
  color: #1e3b1e;
  font-weight: 500;
  letter-spacing: -2px; /* Adjust this value as needed */

}

.track-title {
  font-size: 11px;
  color: #2f4f4f;
  margin-top: 4px;
}

.waveform-container {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: 12px;
}

.waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 10;
  transition: left 0.05s linear;
}

.cue-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fbbf24;
  z-index: 5;
  display: none;
}

.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
  margin-left: 8px;
}

.led-on {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Transport Controls */
.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center; /* ADD THIS LINE */
}

.control-label {
  text-align: center;
  font-size: 11px;
  color: #4b5563;
  font-weight: 600;
}


.button-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
/* Add this to your <style> block */
.button-center-wrapper {
  display: flex;
  justify-content: center; /* This centers the button horizontally */
  width: 100%; /* Ensure it spans the full width of the grid cell */
}

button {
  background: linear-gradient(145deg, #9ca3af, #6b7280);
  border: none;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.15s;
  color: #1f2937;
  font-weight: 600;
}

button:hover {
  background: linear-gradient(145deg, #6b7280, #4b5563);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.btn-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 11px;
}

.search-group {
  grid-column: 1 / -1;
}

/* Main Control Buttons */
.main-controls {
  display: flex;
  gap: 16px;
}

.main-btn-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-cue {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: white;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
}

.btn-cue:hover {
  background: linear-gradient(145deg, #dc2626, #b91c1c);
}

.btn-play {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
}

.btn-play:hover {
  background: linear-gradient(145deg, #16a34a, #15803d);
}

/* Middle Section */
.middle-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.album-art {
  width: 100%;
  background: linear-gradient(145deg, #9ca3af, #6b7280);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.album-art .material-icons {
  font-size: 64px;
  color: #374151;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-load {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  padding: 12px;
  font-weight: 700;
}

.btn-load:hover {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
}

.pitch-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-pitch {
  padding: 12px;
}

.btn-pitch.active {
  background: linear-gradient(145deg,  #2563eb, #1d4ed8);
  color: white;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.pitch-bend-row {
  display: flex;
  gap: 8px;
}

/* Pitch Slider */
.pitch-slider-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  border-left: 2px solid #9ca3af;
  position: relative;
}

.pitch-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 300px;
}

.pitch-track {
  position: relative;
  width: 2px;
  height: 100%;
  background: #6b7280;
  margin-right: 8px;
}

.pitch-mark {
  position: absolute;
  height: 1px;
  background: #4b5563;
  left: -6px;
  width: 14px;
}

.pitch-mark.major {
  width: 18px;
  left: -8px;
}

.pitch-indicator {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  left: -3px;
  transition: top 0.1s;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.pitch-slider {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: bt-lr;
  width: 40px;
  height: 100%;
  background: transparent;
  cursor: pointer;
}

.pitch-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 36px;
  background: #4b5563;
  cursor: pointer;
  border-radius: 2px;
}

.pitch-slider::-moz-range-thumb {
  width: 14px;
  height: 36px;
  background: #4b5563;
  cursor: pointer;
  border-radius: 2px;
  border: none;
}

.pitch-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin-left: 8px;
  font-size: 11px;
  color: #4b5563;
  font-weight: 600;
}

.pitch-value {
  font-size: 13px;
  font-family: 'Orbitron', monospace;
}

.material-icons {
  font-size: 24px;
}

@media (max-width: 768px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
  
  .display-section {
    border-right: none;
    padding-right: 0;
    border-bottom: 2px solid #9ca3af;
    padding-bottom: 16px;
  }
  
  .pitch-slider-section {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid #9ca3af;
    padding-top: 16px;
  }
  
  .pitch-slider-container {
    height: 200px;
  }
}