/* The Lazy Creator Co. — ambient audio console (volume slider + level meter) */

.sound-console-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Homepage: adopt the hero pill's absolute placement */
.sound-console-wrap:not(.global) {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 34px;
  z-index: 3;
}
.sound-console-wrap:not(.global) .sound-toggle { position: static; }

/* Inner pages: floating pill placement */
.sound-console-wrap.global {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}
.sound-console-wrap.global .sound-toggle-global { position: static; }

/* Volume cluster */
.sound-vol {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 35px;
  padding: 0 14px;
  background: rgba(13, 20, 36, 0.55);
  border: 1px solid rgba(94, 162, 255, 0.25);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.4s var(--ease-out, ease-out);
}
.sound-vol:hover { border-color: rgba(94, 162, 255, 0.6); }

.sound-vol-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint, #8ea2c0);
}

/* Live level meter */
.sound-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  width: 18px;
}
.sound-meter i {
  flex: 1;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(to top, rgba(247, 151, 63, 0.95), rgba(94, 162, 255, 0.9));
  transform-origin: bottom;
  transform: scaleY(0.12);
  transition: transform 0.14s linear;
}

/* Slider */
.sound-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 74px;
  height: 14px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.sound-vol input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(94, 162, 255, 0.35);
}
.sound-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #F7973F;
  box-shadow: 0 0 8px rgba(247, 151, 63, 0.7);
}
.sound-vol input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(94, 162, 255, 0.35);
}
.sound-vol input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: #F7973F;
  box-shadow: 0 0 8px rgba(247, 151, 63, 0.7);
}

@media (max-width: 640px) {
  .sound-console-wrap { gap: 8px; }
  .sound-vol { height: 32px; padding: 0 11px; gap: 7px; }
  .sound-vol input[type="range"] { width: 54px; }
}
