/* cybelong.com/tools/vocal-effects/ · Developer: Cybelong · https://cybelong.com · © 2026 Cybelong */
.vx { --vx-accent: var(--accent); --vx-ink: var(--ink); --vx-wave: color-mix(in srgb, var(--muted) 55%, var(--line)); --r: 8px; }
.vx button { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); min-height: 44px; padding: 0 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.vx button:hover { border-color: color-mix(in srgb, var(--muted) 70%, var(--line)); }
.vx button:focus-visible, .vx select:focus-visible, .vx input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vx button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vx select, .vx input[type=number] { width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.vx input[type=range] { width: 100%; accent-color: var(--ink); min-height: 28px; }
.vx-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vx-f > span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vx-f > span b { color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.vx-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .92rem; color: var(--ink); cursor: pointer; }
.vx-chk input { width: 18px; height: 18px; accent-color: var(--accent); }

.vx-src { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 16px; }
.vx-drop { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 88px; border: 2px dashed var(--line); border-radius: 12px; padding: 16px; cursor: pointer; transition: border-color .15s; }
.vx-drop:hover, .vx-drop.over { border-color: var(--accent); }
.vx-drop input { display: none; }
.vx-drop b { color: var(--ink); font-weight: 600; }
.vx-drop span { color: var(--muted); font-size: .88rem; }
.vx-srcbtns { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.vx-rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.vx-rec i { width: 12px; height: 12px; border-radius: 50%; background: #E5484D; }
.vx .vx-rec.on { background: #E5484D; border-color: #E5484D; color: #fff; }
.vx-rec.on i { background: #fff; animation: vx-blink 1s steps(2) infinite; }
@keyframes vx-blink { 50% { opacity: .2; } }

.vx-player { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; padding: 12px 16px 16px; margin-bottom: 24px; }
.vx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.vx .vx-play { min-width: 112px; min-height: 52px; font-weight: 700; font-size: 1.05rem; background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 12px; }
.vx .vx-play.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vx-file { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vx-pitch { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: .92rem; }
#vx-wave { display: block; width: 100%; height: 96px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.vx:not(.has) #vx-wave { cursor: default; }
.vx-meter { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.vx-meter i { display: block; height: 100%; width: 0; background: #30A46C; transition: width .06s linear; }
.vx-meter i.hot { background: #E5484D; }

.vx-presets { margin-bottom: 24px; }
.vx-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vx-ph h2 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.vx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-chips button { border-radius: 999px; font-weight: 500; }
.vx .vx-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.vx-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.vx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.vx-card header { display: flex; align-items: center; gap: 8px; }
.vx-card h3 { margin: 0; font-size: 1rem; color: var(--ink); font-weight: 600; flex: 1; }
.vx-card.off .vx-body { opacity: .45; }
.vx-body { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.vx-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vx.shift .vx-auto { display: none; }
.vx.shift .vx-f:has([data-k="tune.speed"]) { display: none; }
.vx-seg { display: flex; }
.vx-seg button { flex: 1; border-radius: 0; margin-left: -1px; padding: 0 8px; font-size: .9rem; }
.vx-seg button:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.vx-seg button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.vx-seg.vx-wrap { flex-wrap: wrap; gap: 4px; }
.vx-seg.vx-wrap button { flex: 1 1 auto; margin: 0; border-radius: var(--r); white-space: nowrap; }
/* on/off switch */
.vx-sw { position: relative; width: 44px; height: 26px; flex: 0 0 auto; cursor: pointer; }
.vx-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vx-sw i { position: absolute; inset: 0; border-radius: 13px; background: var(--line); transition: background .15s; pointer-events: none; }
.vx-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.vx-sw input:checked + i { background: var(--accent); }
.vx-sw input:checked + i::after { transform: translateX(18px); }
.vx-sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.vx-export { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.vx-export > .vx-f { flex: 1 1 200px; }
.vx .vx-main { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; min-width: 120px; }
.vx-msg { flex: 1 1 100%; min-height: 1.2em; font-size: .88rem; }
@media (max-width: 640px) {
  .vx-src { grid-template-columns: 1fr; padding: 12px; }
  .vx-srcbtns { flex-direction: row; flex-wrap: wrap; }
  .vx-player { padding: 12px; }
  .vx-pitch { margin-left: 0; flex: 1 1 100%; }
  .vx .vx-play { flex: 1 1 auto; }
  .vx-rack { grid-template-columns: 1fr; }
}
