.slidecontainer {
  width: 100%;
}
.tempo-slider{
  background: #cab2b2;
  outline:none;
}
.slider {
  -webkit-appearance: none;
  background: black;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #09d7ee;
  cursor: pointer;
  border:1px solid #000;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #09d7ee;
  cursor: pointer;
  border:1px solid #000;
}
.playing {
  fill: red !important;
}
.note {
  fill: black;
  stroke: white;
  stroke-width: 0.2;
  transition: fill 60ms linear
}
.note.active {
  fill: var(--note-active-color, var(--active-voice-color, #ffd166));
}
input[type="range"] {
  width: 200px;
  height: 5px;
}

#sliderBank {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.create-controls-box,
.player-controls-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.section-title {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #f2f2f2;
}

.v-slider-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 74px;
  padding: 6px 8px 8px;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  background: linear-gradient(180deg, #5d5d5d 0%, #3e3e3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.slider-title {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #f2f2f2;
}

.slider-value {
  min-width: 34px;
  text-align: center;
  font-size: 10px;
  color: #111;
  background: #d9d9d9;
  border: 1px solid #202020;
  border-radius: 3px;
  padding: 1px 4px;
}

.shift-control-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px 8px;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  background: linear-gradient(180deg, #5d5d5d 0%, #3e3e3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  margin: 0 auto;
}

.player-controls-box {
  width: max-content;
  margin: 0 auto;
}

.include-settings-box {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  background: linear-gradient(180deg, #5d5d5d 0%, #3e3e3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.include-settings-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f2f2f2;
}

.include-settings-label .w3-check {
  margin-top: 0;
}

.player-instrument-row,
.player-option-row {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px;
  border: 1px solid #2f2f2f;
  border-radius: 6px;
  background: linear-gradient(180deg, #5d5d5d 0%, #3e3e3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.35);
}

.player-option-row {
  flex-direction: row;
  justify-content: center;
  gap: 5px;
}

.player-select {
  width: 220px;
  max-width: 220px;
  background: #d9d9d9 !important;
  color: #111 !important;
  border: 1px solid #202020 !important;
  border-radius: 4px !important;
  padding: 4px 6px !important;
}

.shift-control-box #shiftAmount {
  width: 68px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #202020;
  border-radius: 4px;
  background: #d9d9d9;
  color: #111;
  padding: 2px 4px;
}

.v-slidecontainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 140px;
}

.vertical-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 8px !important;
  height: 120px !important;
  margin: 0;
  background: transparent;
  accent-color: transparent;
}

.vertical-slider::-webkit-slider-runnable-track {
  width: 8px;
  background: black;
  border-radius: 4px;
}

.vertical-slider::-moz-range-track {
  width: 8px;
  background: black;
  border-radius: 4px;
}

/* Keep large thumb centered over narrow vertical track in WebKit (Safari/Brave/Chromium). */
.vertical-slider::-webkit-slider-thumb {
  margin-left: -8.5px;
  -webkit-appearance: none;
  appearance: none;
}

/* Keep track consistent in Firefox vertical sliders. */
.vertical-slider::-moz-range-thumb {
  border-radius: 0;
}

.v-ticks {
  display: none;
}

.v-ticks option {
  padding: 0;
}

.v-tick-rail {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: flex-start;
  height: 120px;
  min-width: 24px;
}

.v-tick-rail span {
  position: relative;
  display: block;
  padding-left: 10px;
  font-size: 10px;
  line-height: 1;
  color: #f2f2f2;
}

.v-tick-rail span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  border-top: 1px solid #cbd4e3;
  transform: translateY(-50%);
}

/* iOS Safari: hide cosmetic custom tick rails to keep slider layout clean. */
@supports (-webkit-touch-callout: none) {
  .v-tick-rail {
    display: none;
  }
}
