[data-mixer-track-template] {
  display: none;
}

.tm4-knob-visual,
.tm4-dial {
  --turn: 0.5;
}

.tm4-fader-visual,
.tm4-fader-wrap,
.tm4-master-strip {
  --fader-position: 0.7;
}

.tm4-fader,
.tm4-master-fader-input,
.tm4-fader-visual input,
.tm4-knob-visual input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tm4-knob-pointer {
  transition: transform 90ms ease-out;
}

[data-mixer-play-light],
[data-mixer-stop-light] {
  border-radius: 999px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

[data-mixer-play-light][data-active] {
  background:
    radial-gradient(circle at 35% 30%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.45) 14%,
      rgba(110, 255, 110, 0.95) 28%,
      var(--play-green) 55%,
      color-mix(in srgb, var(--play-green) 72%, black) 100%);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--play-green) 60%, transparent),
    0 0 18px color-mix(in srgb, var(--play-green) 30%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}

[data-mixer-stop-light][data-active] {
  background:
    radial-gradient(circle at 35% 30%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.45) 14%,
      rgba(255, 150, 150, 0.95) 28%,
      var(--stopp-red) 55%,
      color-mix(in srgb, var(--stopp-red) 72%, black) 100%);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--stopp-red) 60%, transparent),
    0 0 18px color-mix(in srgb, var(--stopp-red) 30%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}

.tm4-cassette {
  position: relative;
}

.cassette {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.cassette__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cassette__tape {
  transform-box: fill-box;
  transform-origin: center;
  animation: tm4-reel-spin linear infinite;
  animation-duration: calc(1.1s / var(--pitch-rate, 1));
  animation-play-state: paused;
}

.cassette.is-playing .cassette__tape {
  animation-play-state: running;
}

.cassette__tape--right {
  animation-direction: reverse;
}

.cassette__pack {
  transform-box: fill-box;
  transform-origin: center;
}

.cassette__pack--left {
  transform: scale(var(--left-reel-scale, 1));
}

.cassette__pack--right {
  transform: scale(var(--right-reel-scale, 0.72));
}

.tm4-cassette-counter,
.tm4-hidden-lists {
  display: none;
}

[data-album-mixer] .tm4-meter-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  padding: 8px 5px;
  border: 1px solid #57544b;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #6f6b62 0%, #49453e 9%, #2b2824 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-album-mixer] .tm4-meter-stack {
  display: grid;
  grid-template-rows: repeat(12, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  height: 108px;
}

[data-album-mixer] .tm4-meter-segment {
  display: block;
  width: 100%;
  min-height: 5px;
  border-radius: 1px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  background: #141614;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  transition:
    background-color 70ms linear,
    box-shadow 70ms linear,
    border-color 70ms linear;
}

[data-album-mixer] .tm4-meter-segment.inactive {
  background: #171917;
}

[data-album-mixer] .tm4-meter-segment.is-on {
  background: #5fa64d;
  border-color: rgba(70, 109, 55, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 3px rgba(95, 166, 77, 0.18);
}

[data-album-mixer] .tm4-meter-segment.is-warn {
  background: #c0ab52;
  border-color: rgba(122, 104, 40, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 3px rgba(192, 171, 82, 0.16);
}

[data-album-mixer] .tm4-meter-segment.is-peak {
  background: #a85d49;
  border-color: rgba(110, 56, 46, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 2px rgba(168, 93, 73, 0.14);
}

@keyframes tm4-reel-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
