:root { --accent: #0ff; }

  body {
    margin: 0;
    background: #050505;
    color: #eee;
    font-family: 'Segoe UI', system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #header {
    background: rgba(8,8,12,0.98);
    backdrop-filter: blur(12px);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    gap: 16px;
  }

  #title {
    margin: 0;
    white-space: nowrap;
  }

  #now-playing {
    flex: 1;
    text-align: center;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #main {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  #playlist {
    width: 320px;
    background: #111;
    overflow-y: auto;
    border-right: 1px solid #222;
  }

  #playlist h3 {
    padding: 16px 20px;
    margin: 0;
    background: #1a1a1a;
  }

  .track {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #222;
  }

  .track:hover,
  .track.playing {
    background: rgba(0, 255, 255, 0.12);
    color: var(--accent);
  }

  canvas {
    flex: 1;
    background: #000;
    cursor: pointer;
  }

  #controls {
    background: #111;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #222;
  }

  button,
  select {
    background: #1f1f1f;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
  }

  button:hover:not(:disabled) {
    background: #2a2a2a;
  }

  button:disabled,
  input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
  }

  .slider-group label {
    font-size: 0.8rem;
    color: #aaa;
  }

  input[type="range"] {
    accent-color: var(--accent);
    width: 110px;
  }

  #progress-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  #progress {
    width: 100%;
    accent-color: var(--accent);
  }

  .time-label {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    justify-content: space-between;
  }

  #captureBtn {
    font-weight: bold;
  }

  .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
  }

  .capturing {
    background: #ff4d4d;
	color: #fff;
  }

  #bpm-display {
    font-size: 0.85rem;
    color: var(--accent);
    min-width: 95px;
    text-align: right;
    white-space: nowrap;
  }
  
  .audio-dialog {
  background: #101014;
  color: #eee;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 0 40px rgba(0,255,255,0.22);
}

.audio-dialog::backdrop {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(5px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-header h3 {
  margin: 0;
  color: var(--accent);
}

.dialog-close {
  padding: 4px 10px;
}

.eq-grid {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: center;
}

.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #aaa;
  font-size: 0.85rem;
}

.eq-slider {
  writing-mode: bt-lr;
  appearance: slider-vertical;
  width: 32px;
  height: 190px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #ddd;
}

.compressor-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.compressor-band {
  min-width: 210px;
  background: #17171d;
  border: 1px solid #2a2a33;
  border-radius: 10px;
  padding: 14px;
}

.compressor-band h4 {
  margin: 0 0 12px;
  color: var(--accent);
}

.compressor-band label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #aaa;
}

.capture-text {
  color: #ff4d4d;
  font-weight: 600;
  animation: capturePulse 1.5s infinite;
}

@keyframes capturePulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.65; }
  100% { opacity: 1; }
}

.compressor-band input[type="range"] {
  width: 100%;
}

.capture-active {
  color: #ff4d4d !important;
  border-color: #ff4d4d !important;
  box-shadow: 0 0 14px rgba(255, 77, 77, 0.45);
}

.capture-active:hover {
  background: rgba(255, 77, 77, 0.12);
}
  
 #footer {
  min-height: 36px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #0b0b0b;
  border-top: 1px solid #222;
}

.privacy-note {
  color: #999;
  font-size: 0.82rem;
  text-align: center;
}

.footer-divider {
  color: #555;
}

#footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

#footer a:hover {
  text-decoration: underline;
}