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

body {
  background: #050404;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

canvas {
  display: block;
  cursor: none;
}

/* ── Drop zone ───────────────────────────────────────────── */
#dropzone {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: rgba(5, 4, 4, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#dropzone.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#dropInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(248, 215, 148, 0.35);
  border-radius: 20px;
  padding: 52px 72px;
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  pointer-events: none;
}

#dropzone.dragover #dropInner {
  border-color: rgba(248, 215, 148, 0.85);
  background: rgba(248, 215, 148, 0.06);
  color: #F8D794;
}

#dropInner svg {
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

#dropzone.dragover #dropInner svg {
  opacity: 1;
  transform: translateY(-4px);
}

#dropLabel {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dropSub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

#dropzone.dragover #dropSub { display: none; }

#status {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  min-height: 14px;
}

/* ── Hover trigger zone (top-left corner) ───────────────── */
#hoverZone {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  z-index: 30;
  pointer-events: all;
}

/* ── Playback controls — top-left glass pill ─────────────── */
#controls {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 31;

  /* glass */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);

  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* shown when a file is loaded AND (paused OR hovered) */
#controls.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

/* row: play/pause + track name */
.ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#playPauseBtn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}

#playPauseBtn:hover {
  background: rgba(248, 215, 148, 0.18);
  border-color: rgba(248, 215, 148, 0.5);
}

#trackName {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#reloadBtn {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0 0 2px;
  transition: color 0.2s;
  text-align: left;
}

#reloadBtn:hover {
  color: rgba(248, 215, 148, 0.8);
}
