.tuner-pro {
  max-width: 680px;
  margin: 24px auto;
  padding: 10px;
}

.tuner-panel {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 28px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(70, 70, 70, 0.28), transparent 34%),
    linear-gradient(180deg, #1a1a1b, #080808 70%, #050505);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.tuner-title {
  font-size: 13px;
  letter-spacing: 7px;
  font-weight: 700;
  opacity: 0.55;
  margin-bottom: 8px;
}

.tuner-note {
  font-size: 82px;
  line-height: 0.95;
  font-weight: 900;
  color: #f5f5f5;
  text-shadow: 0 0 18px rgba(255,255,255,0.18);
}

.tuner-frequency {
  margin-top: 2px;
  font-size: 18px;
  opacity: 0.82;
}

.tuner-cents {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 95px;
  min-height: 32px;
  margin-top: 6px;
  padding: 3px 18px;
  border-radius: 22px;
  border: 2px solid rgba(40, 214, 83, 0.55);
  color: #55ff68;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(40, 214, 83, 0.18);
}

.tuner-gauge {
  margin: -2px auto 0;
  max-width: 620px;
}

.tuner-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.tuner-arc-main {
  fill: none;
  stroke: url(#tunerGradient);
  stroke-width: 13;
  stroke-linecap: butt;
  filter: drop-shadow(0 0 8px rgba(40,214,83,0.15));
}

.tuner-ticks line {
  stroke: rgba(255,255,255,0.72);
  stroke-width: 3;
  stroke-linecap: round;
}

.tuner-ticks .zero-tick {
  stroke: #55ff68;
  stroke-width: 6;
  filter: drop-shadow(0 0 8px rgba(85,255,104,0.8));
}

.tuner-labels text {
  fill: rgba(255,255,255,0.82);
  font-size: 26px;
  font-weight: 700;
  text-anchor: middle;
}

.tuner-labels .zero-label {
  fill: #55ff68;
  font-size: 34px;
  filter: drop-shadow(0 0 8px rgba(85,255,104,0.8));
}

.tuner-ball {
  fill: url(#tunerBallGradient);
  stroke: rgba(255,255,255,0.75);
  stroke-width: 2;
  filter:
    drop-shadow(0 0 7px rgba(85,255,104,0.95))
    drop-shadow(0 0 16px rgba(85,255,104,0.45));
  transition: cx 0.06s linear, cy 0.06s linear, r 0.12s ease;
}

.tuner-pro.in-tune .tuner-ball {
  r: 13;
  filter:
    drop-shadow(0 0 10px rgba(85,255,104,1))
    drop-shadow(0 0 24px rgba(85,255,104,0.75));
}

.tuner-strings {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -6px 0 16px;
  flex-wrap: wrap;
}

.tuner-strings span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  background: radial-gradient(circle at 50% 30%, #2a2a2a, #101010);
  color: #e7e7e7;
  font-size: 21px;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 8px 18px rgba(0,0,0,0.35);
  transition: all 0.15s ease;
}

.tuner-strings span.active {
  color: #55ff68;
  border-color: #28d653;
  box-shadow:
    0 0 22px rgba(40,214,83,0.75),
    inset 0 0 14px rgba(40,214,83,0.18);
  transform: scale(1.08);
}

.tuner-start {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background:
    radial-gradient(circle at 50% 30%, #ff4b4b, #c71922);
  cursor: pointer;
  box-shadow:
    0 0 28px rgba(216,35,42,0.55),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.tuner-start span {
  display: block;
  width: 18px;
  height: 28px;
  margin: 12px auto 0;
  border-radius: 15px;
  border: 3px solid #fff;
  border-top-width: 7px;
  position: relative;
}

.tuner-start span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 3px;
  height: 11px;
  background: #fff;
  transform: translateX(-50%);
}

.tuner-start span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 18px;
  height: 3px;
  border-radius: 4px;
  background: #fff;
  transform: translateX(-50%);
}

.tuner-pro.in-tune .tuner-note,
.tuner-pro.in-tune .tuner-cents {
  color: #55ff68;
  text-shadow: 0 0 18px rgba(85,255,104,0.75);
}

.tuner-pro.too-low .tuner-note,
.tuner-pro.too-low .tuner-cents,
.tuner-pro.too-high .tuner-note,
.tuner-pro.too-high .tuner-cents {
  color: #ffd447;
}

@media (max-width: 700px) {
  .tuner-pro {
    max-width: 100%;
    padding: 8px;
    margin: 15px auto;
  }

  .tuner-panel {
    padding: 22px 10px 28px;
    border-radius: 24px;
  }

  .tuner-note {
    font-size: 76px;
  }

  .tuner-gauge {
    max-width: 100%;
  }

  .tuner-labels text {
    font-size: 23px;
  }

  .tuner-labels .zero-label {
    font-size: 31px;
  }

  .tuner-strings span {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}
.akordi-tuner.in-tune .tuner-ball {
  filter: drop-shadow(0 0 8px #39ff5a)
          drop-shadow(0 0 18px #39ff5a);
  animation: tunerBallPulse 0.9s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes tunerBallPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}
.akordi-tuner-strings-diagram {
  width: 86%;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tuner-string-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.string-note {
  width: 34px;
  height: 26px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 7px;
  color: #dcdcdc;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  transition: 0.18s ease;
}

.string-line {
  position: relative;
  flex: 1;
  height: 12px;
}

.string-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: rgba(230,230,230,0.45);
  box-shadow: 0 0 5px rgba(255,255,255,0.15);
}

.string-line span {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(230,230,230,0.45);
  box-shadow:
    -170px 0 0 rgba(230,230,230,0.35),
    -85px 0 0 rgba(230,230,230,0.35),
    85px 0 0 rgba(230,230,230,0.35),
    170px 0 0 rgba(230,230,230,0.35);
}

.tuner-string-row.active .string-note {
  color: #38ff4f;
  border-color: rgba(56,255,79,0.85);
  box-shadow: 0 0 8px rgba(56,255,79,0.65);
}

.tuner-string-row.active .string-line::before {
  background: #38ff4f;
  box-shadow:
    0 0 8px rgba(56,255,79,0.8),
    0 0 18px rgba(56,255,79,0.55);
}

.tuner-string-row.active .string-line span {
  background: #38ff4f;
  box-shadow:
    0 0 8px rgba(56,255,79,0.9),
    -170px 0 0 rgba(56,255,79,0.75),
    -85px 0 0 rgba(56,255,79,0.75),
    85px 0 0 rgba(56,255,79,0.75),
    170px 0 0 rgba(56,255,79,0.75);
}
/* Različita debljina gitarskih žica */
.tuner-string-row[data-note="E"] .string-line::before {
  height: 4px;
  top: 4px;
}

.tuner-string-row[data-note="A"] .string-line::before {
  height: 3.4px;
  top: 4.3px;
}

.tuner-string-row[data-note="D"] .string-line::before {
  height: 2.8px;
  top: 4.6px;
}

.tuner-string-row[data-note="G"] .string-line::before {
  height: 2.2px;
  top: 4.9px;
}

.tuner-string-row[data-note="H"] .string-line::before {
  height: 1.6px;
  top: 5.2px;
}

.tuner-string-row[data-note="e"] .string-line::before {
  height: 1.2px;
  top: 5.4px;
}
/* Animacija vibracije aktivne žice */
.tuner-string-row.active .string-line {
  animation: tunerStringVibration 0.12s linear infinite;
}

@keyframes tunerStringVibration {
  0% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-1px);
  }

  50% {
    transform: translateY(0);
  }

  75% {
    transform: translateY(1px);
  }

  100% {
    transform: translateY(0);
  }
}
/* Glow cijelog reda kada je žica aktivna */
.tuner-string-row {
  position: relative;
  border-radius: 8px;
  padding: 2px 6px;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.tuner-string-row.active {
  background: rgba(56,255,79,0.08);

  box-shadow:
      inset 0 0 12px rgba(56,255,79,0.20),
      0 0 10px rgba(56,255,79,0.15);

  border-radius: 8px;
}
/* Kratki bljesak kada je ton pogođen */

.tuner-string-row.perfect {

    animation: tunerPerfectFlash .35s ease-out;

}

@keyframes tunerPerfectFlash {

    0% {

        transform: scale(1);

        background: rgba(56,255,79,.05);

    }

    40% {

        transform: scale(1.02);

        background: rgba(56,255,79,.20);

        box-shadow:
            0 0 10px rgba(56,255,79,.8),
            0 0 25px rgba(56,255,79,.45);

    }

    100% {

        transform: scale(1);

        background: rgba(56,255,79,.05);

    }

}