/* Page */
html, body {
  margin: 0;
  background: #0b0b0b;
  color: #eaeaea;
}

/* Floating control panel */
.ui {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;

  background: #0f0f0fee;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Group boxes */
.group {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;

  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed #2a2a2a;
  background: #111111aa;
}

.title {
  font-weight: 700;
  color: #bbb;
  margin-right: 6px;
}

/* Keep items on one line (Speed row) */
.nowrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Form elements */
.ui select,
.ui input,
.ui button {
  background: #141414;
  color: #eaeaea;
  border: 1px solid #2c2c2c;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.ui button:hover { border-color: #3a3a3a; }
.ui button:active { transform: translateY(1px); }

/* Horizontal sliders */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: #2c2c2c;
  outline: none;
  flex: 0 0 auto;
}

/* WebKit */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eaeaea;
  cursor: pointer;
  border: 1px solid #777;
}
/* Firefox */
.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eaeaea;
  cursor: pointer;
  border: 1px solid #777;
}

/* Larger Play/Pause button in its own group */
.group.playctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed #2a2a2a;
  background: #111111aa;
}

.play-btn {
  font-size: 20px;      /* ~1.5× typical control text */
  padding: 6px 12px;
  border-radius: 8px;
}
