/* ---- Metronome ---- */
.tool-page:has(.met-dial) { max-width: 100%; }

/* Bell button — subtle active state (not bright blue) */
.met-bell-btn.active { background: #13151f; border-color: #2a2d3a; color: #aaa; }

/* Central dial — matches circle of fifths sizing */
.met-dial {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1a1d27, #12141c);
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  aspect-ratio: 1;
  width: 350px;
  height: 350px;
}

.met-arcs {
  position: absolute;
  top: -5px; left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  pointer-events: none;
  transform: rotate(-90deg);
}
.met-arc {
  fill: none;
  stroke: #2a2d3a;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke 0.06s;
}
.met-arc.active {
  stroke: #2a6cb0;
  stroke-width: 6;
}
.met-arc.accent.active {
  stroke: #c04040;
  stroke-width: 6;
}
.met-arc.sub-accent.active {
  stroke: #b09030;
  stroke-width: 6;
}

/* BPM value: centered between top and slider */
.met-bpm-display {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  cursor: default;
}
.met-bpm-label {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* BPM slider: dead vertical center */
.met-dial-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 70%;
  max-width: 300px;
}
.met-bpm-adj {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #2a2d3a;
  background: transparent;
  color: #666;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  flex-shrink: 0;
}
.met-bpm-adj:hover { border-color: #555; color: #fff; background: rgba(255,255,255,0.05); }
.met-bpm-adj:active { border-color: #555; color: #fff; }

/* Slider inside dial */
.met-slider-inline {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  border-radius: 10px;
  background: #2a2d3a;
  outline: none;
}
.met-slider-inline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2a6cb0;
  cursor: pointer;
  border: 2px solid #4a8cd0;
}
.met-slider-inline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2a6cb0;
  cursor: pointer;
  border: 2px solid #4a8cd0;
}

/* Action row: TAP + Play centered between slider and bottom */
.met-action-row {
  position: absolute;
  top: 74%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Play button */
.met-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2a6cb0;
  border: 2px solid #4a8cd0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.met-play-btn:hover { background: #3580cc; }
.met-play-btn:active { transform: scale(0.93); }
.met-play-btn svg { width: 22px; height: 22px; fill: #fff; }

/* Tap tempo circle */
.met-tap-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid #2a2d3a;
  background: transparent;
  color: #555;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.12s, border-color 0.15s, color 0.15s, transform 0.08s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.met-tap-btn:hover { border-color: #555; color: #aaa; }
.met-tap-btn:active { border-color: #555; color: #ccc; background: rgba(255,255,255,0.05); transform: scale(0.93); }
