.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 14px;
  margin-right: 4px;
}

.bar {
  width: 1px;
  height: 100%;
  background-color: var(--barline-main);
  transform-origin: bottom;
  will-change: transform, opacity;
  animation: sound 1s linear infinite alternate;
  animation-duration: calc(var(--base-duration) + var(--i) * var(--duration-step));
}

.bar:first-child {
  background-color: var(--barline-secondary);
}

@keyframes sound {
  from {
    opacity: 0.35;
    transform: scaleY(0.1);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.bars--muted .bar,
.reduce-motion .bar {
  animation: none;
}

.bars--muted .bar {
  opacity: 0.35;
  transform: scaleY(0.1);
}

.reduce-motion .bars:not(.bars--muted) .bar {
  transform: scaleY(0.6);
}
