.long-march-volume {
  --lm-volume-fill: 58%;
  position: fixed;
  z-index: 2147483000;
  top: max(9px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px 4px 7px;
  color: rgba(247, 239, 215, .92);
  background: rgba(18, 17, 14, .48);
  border: 1px solid rgba(231, 211, 158, .24);
  border-radius: 999px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(9px) saturate(.85);
  backdrop-filter: blur(9px) saturate(.85);
  opacity: .66;
  transform: translateX(-50%);
  transition: opacity .25s ease, background-color .25s ease, border-color .25s ease;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1;
}

.long-march-volume:hover,
.long-march-volume:focus-within {
  opacity: .96;
  background: rgba(18, 17, 14, .7);
  border-color: rgba(231, 211, 158, .42);
}

.long-march-volume--suspended {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.long-march-volume__toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
}

.long-march-volume__toggle:hover,
.long-march-volume__toggle:focus-visible {
  color: #f6d884;
  background: rgba(255, 255, 255, .08);
  outline: 1px solid rgba(246, 216, 132, .45);
  outline-offset: 1px;
}

.long-march-volume__icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.long-march-volume__label {
  white-space: nowrap;
  color: rgba(247, 239, 215, .82);
  font-size: 11px;
  letter-spacing: .12em;
}

.long-march-volume__slider {
  width: 100px;
  height: 16px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  accent-color: #d2ad58;
}

.long-march-volume__slider::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, #d2ad58 var(--lm-volume-fill), rgba(255, 255, 255, .23) var(--lm-volume-fill));
  border-radius: 99px;
}

.long-march-volume__slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  background: #f0dfad;
  border: 1px solid rgba(64, 47, 20, .8);
  border-radius: 50%;
  -webkit-appearance: none;
}

.long-march-volume__slider::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, .23);
  border-radius: 99px;
}

.long-march-volume__slider::-moz-range-progress {
  height: 3px;
  background: #d2ad58;
  border-radius: 99px;
}

.long-march-volume__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #f0dfad;
  border: 1px solid rgba(64, 47, 20, .8);
  border-radius: 50%;
}

.long-march-volume__value {
  min-width: 30px;
  color: rgba(247, 239, 215, .68);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 520px) {
  .long-march-volume {
    top: max(80px, calc(env(safe-area-inset-top) + 72px));
    gap: 6px;
    min-height: 29px;
    padding: 3px 8px 3px 5px;
  }

  .long-march-volume__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .long-march-volume__slider {
    width: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .long-march-volume { transition: none; }
}
