/* 8. Elektro gitar */

/* ---------- manyetikler ---------- */
.stage .mg-fill { flex: none; height: clamp(330px, 50vh, 440px); }
.mg-note { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .stage .mg-fill { height: 640px; } }

/* ---------- pedallar ---------- */
.pd-presets { gap: 8px 10px; }
.pd-board {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 16px; padding: 4px 14px 20px 22px;
}
.pd-cables { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.pd-cable { fill: none; stroke: var(--wood-2); stroke-width: 5; stroke-linecap: round; opacity: .85; }
.pd-cable-hi { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.4; stroke-linecap: round; transform: translateY(-1px); }

.pd-pedal {
  --pt: #fff;
  position: relative; z-index: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 7px 9px; border-radius: 9px 9px 12px 12px;
  background-color: var(--pc);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .12));
  box-shadow: 0 10px 18px rgba(36, 21, 15, .24), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
  color: var(--pt); user-select: none; -webkit-user-select: none;
  transition: filter .25s, box-shadow .2s;
}
.pd-pedal[data-id="delay"], .pd-pedal[data-id="reverb"] { --pt: var(--wood-2); }
/* giriş ve çıkış soketleri */
.pd-pedal::before, .pd-pedal::after {
  content: ""; position: absolute; top: 18px; width: 6px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, var(--nickel-hi), var(--nickel));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.pd-pedal::before { left: -6px; }
.pd-pedal::after { right: -6px; }
.pd-pedal.off { filter: saturate(.5) brightness(.93); }
.pd-pedal.drag { z-index: 6; box-shadow: 0 24px 36px rgba(36, 21, 15, .34); transition: none; }
.pd-pedal.drag .pd-grip { cursor: grabbing; }
.pd-grip {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 2px 5px; cursor: grab; touch-action: none;
  border-bottom: 1px solid color-mix(in srgb, var(--pt) 22%, transparent);
}
.pd-name {
  font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-size: .98rem; line-height: 1.1;
  letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.pd-led { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); transition: background .15s, box-shadow .15s; }
.pd-pedal:not(.off) .pd-led { background: var(--seventh); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 9px 2px rgba(200, 67, 79, .75); }
.pd-knobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 4px 2px; justify-items: center; }
.pd-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.pd-foot {
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; flex: none;
  background: radial-gradient(circle at 38% 32%, var(--nickel-hi), var(--nickel) 62%);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(0, 0, 0, .12), inset 0 -4px 6px rgba(0, 0, 0, .18);
  transition: transform .06s, box-shadow .06s;
}
.pd-foot:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(0, 0, 0, .12); }
.pd-mv {
  width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, .16); color: var(--pt); font-size: 1.05rem; font-weight: 700; line-height: 1;
}
.pd-mv:hover:not(:disabled) { background: rgba(0, 0, 0, .28); }
.pd-mv:disabled { opacity: .25; cursor: default; }

/* döner düğme */
.kn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; max-width: 100%; cursor: ns-resize; touch-action: none; border-radius: 8px; }
.kn:focus-visible { outline: 2px solid var(--pt, var(--accent)); outline-offset: 1px; }
.kn svg { width: 36px; height: 36px; overflow: visible; display: block; }
.kn-track { fill: none; stroke: rgba(0, 0, 0, .2); stroke-width: 2.6; stroke-dasharray: 80.1 106.8; transform: rotate(135deg); }
.kn-arc { fill: none; stroke: var(--pt); stroke-width: 2.6; stroke-linecap: round; opacity: .9; }
.kn-body { fill: var(--wood-2); stroke: rgba(0, 0, 0, .3); stroke-width: 1; }
.kn-ptr { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.kn-lab { font-size: .64rem; font-weight: 650; line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; opacity: .92; font-variant-numeric: tabular-nums; }
.kn.on .kn-lab { opacity: 1; }

/* amfi */
.pd-amp { position: relative; border-radius: 12px; overflow: hidden; background: var(--wood-2); box-shadow: 0 14px 24px rgba(36, 21, 15, .26); flex: none; }
.pd-amp-panel {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 9px 14px;
  background: linear-gradient(180deg, var(--wood-3), var(--wood)); color: var(--bone);
  border-bottom: 2px solid var(--nickel);
}
.pd-amp-name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; font-stretch: 76%; letter-spacing: .03em; text-transform: uppercase; }
.pd-jewel { width: 12px; height: 12px; border-radius: 50%; background: rgba(232, 178, 61, .25); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); transition: background .2s, box-shadow .2s; }
.pd-live .pd-jewel { background: var(--root); box-shadow: 0 0 10px 2px rgba(232, 178, 61, .65); }
.pd-amp-knobs { display: flex; gap: 10px; }
.kn.amp { --pt: var(--bone); }
.kn.amp .kn-body { fill: var(--bone); stroke: rgba(0, 0, 0, .35); }
.kn.amp .kn-ptr { stroke: var(--wood-2); }
.kn.amp .kn-arc { stroke: var(--root); }
.kn.amp .kn-track { stroke: rgba(239, 231, 214, .2); }
.pd-amp-scope { position: relative; flex: 1 1 140px; min-width: 120px; height: 46px; border-radius: 6px; background: rgba(0, 0, 0, .32); }
.pd-amp-scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-amp-scope small { position: absolute; left: 7px; top: 2px; font-size: .62rem; color: rgba(239, 231, 214, .55); font-weight: 600; }
.pd-jack { order: 9; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--wood-2) 0 35%, var(--nickel) 40% 70%, var(--nickel-hi) 75%); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.pd-grill {
  height: 30px;
  background:
    repeating-linear-gradient(45deg, rgba(239, 231, 214, .07) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(239, 231, 214, .07) 0 2px, transparent 2px 5px),
    var(--wood-2);
}
.pd-chain { margin: 0; font-size: .8rem; color: var(--muted); }
.stage .pd-fb { flex: none; }

@media (max-width: 1250px) {
  .pd-board { gap: 16px 14px; }
  .pd-name { font-size: .9rem; }
}
@media (max-width: 860px) {
  .pd-board { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 18px; padding-right: 10px; }
}
@media (max-width: 400px) {
  .pd-board { gap: 16px 12px; }
  .kn svg { width: 32px; height: 32px; }
}
