/* ============================================================
   Rickyedit Games — Volume Control Styles (Slim v5)
   ============================================================ */
.rlb-volume-wrapper {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 40px;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
  overflow: visible;
}
.rlb-volume-wrapper:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.32);
}

/* ── Button: icon only ─────────────────────────────────── */
.rlb-volume-btn {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  box-sizing: border-box;
}
.rlb-volume-btn img {
  width: 20px !important;
  height: 20px !important;
  display: block;
  pointer-events: none;
}
.rlb-volume-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ── Slider container: hidden, slides in on hover ──────── */
.rlb-volume-slider-wrap {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.rlb-volume-wrapper:hover .rlb-volume-slider-wrap,
.rlb-volume-wrapper.rlb-vol-active .rlb-volume-slider-wrap {
  width: 80px;
  opacity: 1;
  margin-left: 4px;
  pointer-events: auto;
}

/* ── Slider input ──────────────────────────────────────── */
.rlb-volume-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 80px;
  height: 20px !important;
  background: transparent !important;
  outline: none !important;
  border: none !important;
  cursor: pointer;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
}
.rlb-volume-slider:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.rlb-volume-slider:focus::-webkit-slider-thumb {
  outline: none !important;
  box-shadow: 0 0 8px rgba(255, 51, 204, 0.6), 0 0 0 3px rgba(255, 51, 204, 0.12) !important;
}

/* ── Chrome/Edge: Track ────────────────────────────────── */
.rlb-volume-slider::-webkit-slider-runnable-track {
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Chrome/Edge: Thumb (circle) ───────────────────────── */
.rlb-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff !important;
  border: 2px solid #ff33cc !important;
  box-shadow: 0 0 8px rgba(255, 51, 204, 0.6), 0 0 0 3px rgba(255, 51, 204, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rlb-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 51, 204, 0.9), 0 0 0 5px rgba(255, 51, 204, 0.2);
}

/* ── Firefox: Track ────────────────────────────────────── */
.rlb-volume-slider::-moz-range-track {
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ── Firefox: Filled portion ───────────────────────────── */
.rlb-volume-slider::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: #ff33cc !important;
}

/* ── Firefox: Thumb (circle) ───────────────────────────── */
.rlb-volume-slider::-moz-range-thumb {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50%;
  background: #fff !important;
  border: 2px solid #ff33cc !important;
  box-shadow: 0 0 8px rgba(255, 51, 204, 0.6), 0 0 0 3px rgba(255, 51, 204, 0.12);
  cursor: pointer;
}
.rlb-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 51, 204, 0.9), 0 0 0 5px rgba(255, 51, 204, 0.2);
}
