/* Global Variables & Base Resets */
:root {
  --color-bg: #090a15;
  --color-surface: rgba(18, 20, 38, 0.65);
  --color-surface-hover: rgba(26, 29, 54, 0.85);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-active: rgba(0, 242, 254, 0.3);
  --color-text: #e1e4f3;
  --color-text-dim: #8c92b3;
  
  --neon-blue: #00f2fe;
  --neon-purple: #9b51e0;
  --neon-emerald: #05c46b;
  --neon-pink: #ff007f;
  
  --shadow-neon-blue: 0 0 15px rgba(0, 242, 254, 0.45);
  --shadow-neon-purple: 0 0 15px rgba(155, 81, 224, 0.45);
  --shadow-neon-emerald: 0 0 15px rgba(5, 196, 107, 0.45);
  --shadow-neon-pink: 0 0 15px rgba(255, 0, 127, 0.45);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Orbitron', monospace;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient glow backgrounds */
.glow-bg {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}
.bg-left {
  background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}
.bg-right {
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* App Container and Grid Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  font-size: 28px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-logo h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
}
.header-logo h1 span {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-badge {
  font-size: 13px;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green {
  background-color: var(--neon-emerald);
  box-shadow: 0 0 8px var(--neon-emerald);
}
.status-dot.red {
  background-color: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

.header-btn {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(155, 81, 224, 0.2) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.header-btn:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-neon-blue);
  transform: translateY(-1px);
}
.header-btn:active {
  transform: translateY(0);
}

/* DJ Workspace Section (Decks & Mixer) */
.dj-workspace {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  gap: 16px;
  flex-grow: 1;
  min-height: 480px;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .app-container {
    height: auto;
    overflow-y: auto;
  }
  .dj-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .dj-deck {
    min-height: 380px;
  }
}

/* DJ Deck Styles */
.dj-deck {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dj-deck.active-deck-a {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.08);
}
.dj-deck.active-deck-b {
  border-color: rgba(155, 81, 224, 0.4);
  box-shadow: inset 0 0 15px rgba(155, 81, 224, 0.08);
}

.deck-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.deck-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1.5px;
}
.badge-a {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.badge-b {
  background: rgba(155, 81, 224, 0.15);
  color: var(--neon-purple);
  border: 1px solid rgba(155, 81, 224, 0.3);
}

.track-info {
  flex-grow: 1;
  overflow: hidden;
}
.track-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 13px;
  color: var(--color-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-body {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-grow: 1;
  padding: 10px 0;
}

/* Vinyl Turntable representation */
.vinyl-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #222 15%, #050505 40%, #1a1a1a 60%, #000 80%);
  border: 8px solid #111;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 0 10px #000;
  position: relative;
  cursor: pointer;
  transition: transform 0.1s linear;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent, transparent 3px, rgba(255, 255, 255, 0.03) 4px, transparent 5px);
  pointer-events: none;
}

.vinyl-label {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 4px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 60%);
}
.deck-a .vinyl-label {
  border-color: rgba(0, 242, 254, 0.4);
}
.deck-b .vinyl-label {
  border-color: rgba(155, 81, 224, 0.4);
}

.vinyl-center {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #000;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5);
  border: 2px solid #555;
}

/* Spin animation for vinyl when playing */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.vinyl.playing {
  animation: spin 2.5s linear infinite;
}

/* Tonearm needle representation */
.needle {
  position: absolute;
  top: -10px;
  right: -5px;
  width: 80px;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120'%3E%3Cpath d='M70,10 L70,80 L40,110 L30,110 L32,100 L60,75 L60,10 Z' fill='%23666'/%3E%3Crect x='25' y='105' width='12' height='12' rx='2' fill='%23222'/%3E%3Ccircle cx='70' cy='10' r='8' fill='%23444'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: 70px 10px;
  transform: rotate(-15deg);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 2;
}
.vinyl.playing ~ .needle {
  transform: rotate(15deg);
}

/* Sliders global classes */
.slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 24px;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease;
}
.deck-a .slider::-webkit-slider-thumb {
  background: var(--neon-blue);
  box-shadow: var(--shadow-neon-blue);
}
.deck-b .slider::-webkit-slider-thumb {
  background: var(--neon-purple);
  box-shadow: var(--shadow-neon-purple);
}

/* Vertical slider settings */
.vertical-slider {
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical; /* Webkit */
  appearance: slider-vertical;
  width: 10px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
}

/* Pitch controls container */
.pitch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pitch-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--color-text-dim);
  letter-spacing: 1px;
}
.pitch-slider {
  height: 140px;
  width: 12px;
}
.pitch-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
}
.deck-a .pitch-val { color: var(--neon-blue); }
.deck-b .pitch-val { color: var(--neon-purple); }

/* Decks Footer display & visualizers */
.deck-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.visualizer-container {
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
.visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.deck-display {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.display-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
}
.time-elapsed {
  color: #fff;
}
.time-divider {
  color: var(--color-text-dim);
}
.time-remaining {
  color: var(--color-text-dim);
}

.waveform-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}
.deck-a .progress-bar-fill {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 5px rgba(0, 242, 254, 0.5);
}
.deck-b .progress-bar-fill {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  box-shadow: 0 0 5px rgba(155, 81, 224, 0.5);
}

/* Decks Action Buttons */
.deck-controls {
  display: flex;
  gap: 8px;
  width: 100%;
}

.ctrl-btn {
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  flex-grow: 2;
  height: 44px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.deck-a .play-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-neon-blue);
  text-shadow: 0 0 5px #fff;
}
.deck-b .play-btn:hover {
  background: rgba(155, 81, 224, 0.15);
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-neon-purple);
  text-shadow: 0 0 5px #fff;
}
.play-btn.playing {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.cue-btn, .stop-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
}
.cue-btn:hover, .stop-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}
.cue-btn:active, .stop-btn:active {
  transform: scale(0.95);
}

/* Center Mixer Column Styles */
.dj-mixer {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mixer-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--color-text-dim);
  border-bottom: 1px dashed var(--color-border);
  width: 100%;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.mixer-channels {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  width: 100%;
  flex-grow: 1;
}

.mixer-channel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

/* EQ Knobs Container */
.eq-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center;
  margin-bottom: 20px;
}

.knob-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  position: relative;
}
.knob-container label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}
.knob-val {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-dim);
}

/* Styling range inputs to look like tiny knobs/sliders */
.knob-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  height: 6px;
  border-radius: 3px;
  width: 70px;
  outline: none;
}
.knob-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}
.channel-a .knob-slider::-webkit-slider-thumb {
  background: var(--neon-blue);
  box-shadow: 0 0 5px rgba(0, 242, 254, 0.4);
}
.channel-b .knob-slider::-webkit-slider-thumb {
  background: var(--neon-purple);
  box-shadow: 0 0 5px rgba(155, 81, 224, 0.4);
}

/* Volume Slider Container inside Mixer */
.vol-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.vol-icon {
  font-size: 12px;
  color: var(--color-text-dim);
}
.channel-vol-slider {
  height: 110px;
  width: 8px;
}
.vol-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Master Column Mixer details */
.mixer-master {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 0 5px;
}

.master-vol-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.master-slider {
  height: 130px;
  width: 10px;
}
.master-slider::-webkit-slider-thumb {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.master-icon {
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Auto DJ Controls */
.autodj-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  width: 100%;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
}
.autodj-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  color: var(--color-text-dim);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.autodj-label i {
  color: var(--neon-emerald);
}

/* Toggle Switch Class */
.switch-container {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 20px;
}
.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  transition: .3s;
  border-radius: 20px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .switch-slider {
  background-color: rgba(5, 196, 107, 0.2);
  border-color: var(--neon-emerald);
}
input:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: var(--neon-emerald);
  box-shadow: var(--shadow-neon-emerald);
}

.autodj-settings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 4px;
}
.autodj-time-label {
  font-size: 8px;
  color: var(--color-text-dim);
}
.mini-slider {
  width: 60px;
  height: 4px;
}
.mini-slider::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-emerald);
}

/* Crossfader Section */
.crossfader-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
}
.crossfader-labels {
  display: flex;
  justify-content: space-between;
  width: 85%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--color-text-dim);
}
.crossfader-labels span:nth-child(1) { color: var(--neon-blue); }
.crossfader-labels span:nth-child(3) { color: var(--neon-purple); }

.crossfader {
  width: 180px;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.crossfader::-webkit-slider-thumb {
  width: 32px;
  height: 20px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Playlist / Queue Panel styling */
.playlist-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1.2;
}

.playlist-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  height: 480px;
}

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

.playlist-panel {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}
.panel-header h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.panel-header h3 span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-blue);
  margin-left: 5px;
}

/* Search bar styling */
.search-box {
  position: relative;
  width: 260px;
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-dim);
  font-size: 14px;
}
.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}
.search-box input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

/* Library Table */
.songs-table-container {
  overflow-y: auto;
  flex-grow: 1;
}

.songs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.songs-table th {
  padding: 10px 14px;
  color: var(--color-text-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #111222;
  z-index: 1;
}
.songs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.songs-table tbody tr {
  transition: background-color 0.1s ease;
  cursor: pointer;
}
.songs-table tbody tr:hover {
  background-color: var(--color-surface-hover);
}

.songs-table tr.active-playing {
  background-color: rgba(0, 242, 254, 0.04);
}
.songs-table tr.active-playing td {
  color: var(--neon-blue);
}

.no-tracks {
  text-align: center;
  padding: 30px !important;
  color: var(--color-text-dim);
  font-style: italic;
}

/* Queue actions & buttons */
.queue-actions {
  display: flex;
  gap: 8px;
}
.mini-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  font-weight: 600;
}
.mini-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.delete-btn:hover {
  background: rgba(255, 0, 127, 0.15);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

/* Playlist / Deck Loading Action buttons */
.load-btn-group {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.btn-load {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-display);
}
.btn-load-a:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 5px rgba(0, 242, 254, 0.2);
}
.btn-load-b:hover {
  background: rgba(155, 81, 224, 0.15);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 5px rgba(155, 81, 224, 0.2);
}

.btn-exclude-autodj {
  color: var(--neon-emerald);
  border-color: rgba(5, 196, 107, 0.25);
}
.btn-exclude-autodj:hover {
  background: rgba(5, 196, 107, 0.15);
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
  box-shadow: 0 0 5px rgba(5, 196, 107, 0.2);
}
.btn-exclude-autodj.excluded {
  color: var(--neon-pink);
  border-color: rgba(255, 0, 127, 0.25);
}
.btn-exclude-autodj.excluded:hover {
  background: rgba(255, 0, 127, 0.15);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 5px rgba(255, 0, 127, 0.2);
}

.songs-table tr.row-excluded-autodj {
  opacity: 0.5;
}
.songs-table tr.row-excluded-autodj:hover {
  opacity: 0.85;
}

/* Queue List layout */
.queue-list-container {
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 12px;
}
.queue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}
.queue-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.queue-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}
.queue-item-remove {
  background: transparent;
  border: none;
  color: var(--color-text-dim);
  cursor: pointer;
  font-size: 11px;
}
.queue-item-remove:hover {
  color: var(--neon-pink);
}
.empty-queue-msg {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-dim);
  padding: 20px;
  font-style: italic;
}

/* Drag and Drop Uploader */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
  position: relative;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--neon-blue);
  background: rgba(0, 242, 254, 0.03);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.upload-icon {
  font-size: 24px;
  color: var(--color-text-dim);
  transition: color 0.2s ease;
}
.upload-area:hover .upload-icon {
  color: var(--neon-blue);
}
.upload-content p {
  font-size: 12px;
  font-weight: 500;
}
.browse-link {
  color: var(--neon-blue);
  text-decoration: underline;
}
.upload-hint {
  font-size: 10px;
  color: var(--color-text-dim);
}

/* Progress bar for uploads */
.upload-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.upload-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.upload-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon-blue);
  box-shadow: var(--shadow-neon-blue);
  transition: width 0.1s linear;
}

/* YouTube Downloader Styles */
.youtube-downloader-area {
  margin-top: 12px;
  padding: 10px 0 2px 0;
  border-top: 1px dashed var(--color-border);
}
.yt-downloader-form {
  display: flex;
  gap: 8px;
  width: 100%;
}
.youtube-downloader-area input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}
.youtube-downloader-area input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.06);
}
.youtube-downloader-area button {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(155, 81, 224, 0.1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--neon-blue);
  width: 38px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}
.youtube-downloader-area button:hover {
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-neon-blue);
  color: #fff;
}
.youtube-downloader-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none !important;
  border-color: var(--color-border) !important;
}
.yt-status-msg {
  font-size: 11px;
  margin-top: 6px;
  color: var(--color-text-dim);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}
.yt-status-msg.success {
  color: var(--neon-emerald);
}
.yt-status-msg.error {
  color: var(--neon-pink);
}

/* Animation utilities for active actions */
.glow-text-blue {
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}
.glow-text-purple {
  text-shadow: 0 0 10px rgba(155, 81, 224, 0.5);
}

/* Mobile Responsive Layout Styles (< 768px) */
@media (max-width: 768px) {
  .app-container {
    height: auto;
    overflow-y: auto;
    padding: 10px;
  }
  
  .dj-workspace {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
  }
  
  /* Stack Decks first, then Mixer */
  .deck-a {
    order: 1;
    min-height: 380px;
  }
  .deck-b {
    order: 2;
    min-height: 380px;
  }
  .dj-mixer {
    order: 3;
    height: auto;
  }
  
  /* Stack Mixer channels for easier control on touch screens */
  .mixer-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
  }
  
  .mixer-channel {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
  }
  
  .eq-group {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-bottom: 0;
  }
  
  .knob-container {
    width: 60px;
  }
  
  .vol-slider-container {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  
  .channel-vol-slider {
    height: 100px;
    writing-mode: bt-lr;
    appearance: slider-vertical;
  }
  
  .mixer-master {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
  
  .master-vol-container {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  
  .master-slider {
    height: 100px;
  }
  
  .autodj-container {
    margin-top: 0;
    width: 140px;
  }
  
  .playlist-grid {
    height: auto;
    grid-template-columns: 1fr;
  }
  
  .playlist-panel {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .deck-body {
    gap: 15px;
  }
  
  .vinyl-wrapper {
    width: 170px;
    height: 170px;
  }
  
  .songs-table td {
    max-width: 160px;
  }
  
  .load-btn-group {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }
}
