
:root {
  --bg-channel: #222630;
  --accent-color: #00e5ff;
  --accent-hover: #00b3cc;
  --text-main: #f0f0f0;
  --text-muted: #8b92a5;
}

.icon-btn {
  background: var(--bg-channel);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--accent-color);
  color: var(--bg-dark);
  border-color: var(--accent-color);
}

/* Playlist */
.playlist-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.song-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.song-item {
  padding: 0.8rem 1rem;
  background-color: var(--bg-channel);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}

.song-item:hover {
  background-color: #2a2f3a;
  transform: translateX(5px);
}

.song-item.active {
  border-color: var(--accent-color);
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--accent-color);
}

/* Mixer Section */
.now-playing {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

#currentSongTitle {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  font-weight: 800;
  color: #fff;
}

.time-display {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-channel);
  border-radius: 3px;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent-color);
  transition: width 0.1s linear;
}

.transport-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.transport-btn {
  background: var(--bg-channel);
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.transport-btn:hover {
  background: #2a2f3a;
  color: var(--accent-color);
  transform: scale(1.05);
}

.transport-btn.play-btn {
  background: var(--accent-color);
  color: var(--bg-dark);
  width: 50px;
  height: 50px;
}

.transport-btn.play-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.mixer-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.channel {
  background-color: var(--bg-channel);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border-color);
}

.channel-header {
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.3rem;
}

.channel-header h3 {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Custom Range Sliders */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 10px;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #3a4152;
  border-radius: 2px;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]:hover::-webkit-slider-thumb {
  background: var(--accent-color);
}

.channel-actions {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.toggle-btn {
  background: var(--bg-dark);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.toggle-btn.active {
  background: rgba(46, 213, 115, 0.1);
  color: var(--success);
  border-color: var(--success);
}

.toggle-btn.vocal-toggle.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.toggle-btn:not(.active) {
  background: rgba(255, 71, 87, 0.1);
  color: var(--danger);
  border-color: var(--danger);
  opacity: 0.8;
}

.master-control {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.master-control h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.master-control input[type=range] {
    box-sizing: border-box;
    max-width: 100%;
  width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent; 
}
::-webkit-scrollbar-thumb {
  background: #3a4152; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a5265; 
}

@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}
