*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { display: flex; flex-direction: column; }
#scene { display: block; width: 100%; flex: 1; min-height: 0; }

/* ── Player bar ─────────────────────────────────────────────────────── */
#player {
  height: 3.2rem;
  background: rgba(12, 8, 25, 0.92);
  border-top: 1px solid rgba(200, 168, 106, 0.3);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.8rem;
  flex-shrink: 0;
}

#playBtn {
  background: none;
  border: 1px solid rgba(200, 168, 106, 0.45);
  color: #c8a86a;
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: sans-serif;
  line-height: 1;
}
#playBtn:hover {
  border-color: rgba(200, 168, 106, 0.75);
  background: rgba(28, 18, 52, 0.5);
}
#playBtn.playing {
  color: #e8c87a;
  border-color: #e8c87a;
  box-shadow: 0 0 8px rgba(200, 160, 80, 0.2);
}

#barCount {
  color: #c8a86a;
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  min-width: 5.5rem;
  text-align: center;
}

#progWrap {
  flex: 1;
  height: 3px;
  background: rgba(200, 168, 106, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

#progBar {
  height: 100%;
  width: 0;
  background: rgba(200, 168, 106, 0.6);
  border-radius: 2px;
  transition: width 0.15s linear;
}

#viz {
  width: 8rem;
  height: 2rem;
  flex-shrink: 0;
  opacity: 0.75;
}

#wcControls {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  z-index: 10;
}

#wcBtn {
  background: rgba(12,8,25,0.82);
  color: #c8a86a;
  border: 1px solid rgba(200,168,106,0.45);
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  font-family: sans-serif;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
#wcBtn:hover {
  background: rgba(28,18,52,0.92);
  border-color: rgba(200,168,106,0.75);
}
#wcBtn.active {
  background: rgba(55,32,8,0.45);
  border-color: #e8c87a;
  color: #e8c87a;
  box-shadow: 0 0 10px rgba(200,160,80,0.28), inset 0 0 6px rgba(200,140,40,0.12);
}

#wcSliderWrap {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  background: rgba(12,8,25,0.82);
  border: 1px solid rgba(200,168,106,0.35);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
}
#wcSliderWrap.visible {
  display: flex;
}

#wcSliderLabel {
  color: #c8a86a;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: sans-serif;
}

#wcSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 9rem;
  height: 3px;
  background: rgba(200,168,106,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#wcSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8c87a;
  box-shadow: 0 0 6px rgba(200,160,80,0.55);
  cursor: pointer;
}
#wcSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8c87a;
  box-shadow: 0 0 6px rgba(200,160,80,0.55);
  cursor: pointer;
  border: none;
}

#wcBlurLabel {
  color: #c8a86a;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: sans-serif;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(200,168,106,0.2);
  width: 100%;
  text-align: right;
}

#wcBlurSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 9rem;
  height: 3px;
  background: rgba(200,168,106,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#wcBlurSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8c87a;
  box-shadow: 0 0 6px rgba(200,160,80,0.55);
  cursor: pointer;
}
#wcBlurSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8c87a;
  box-shadow: 0 0 6px rgba(200,160,80,0.55);
  cursor: pointer;
  border: none;
}
