-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
575 lines (537 loc) · 36.5 KB
/
Copy pathindex.html
File metadata and controls
575 lines (537 loc) · 36.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="SoundMax - Soundboard profissional para gamers e streamers. Toque sons no mic em tempo real.">
<title>SoundMax</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="app">
<!-- ═══ SIDEBAR ═══ -->
<aside id="sidebar" class="sidebar">
<div class="sidebar-header">
<div class="logo">
<div class="logo-icon">
<svg width="32" height="32" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" style="border-radius:6px;display:block">
<defs>
<linearGradient id="lgBg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0d0d1a"/><stop offset="100%" stop-color="#1a0a2e"/></linearGradient>
<linearGradient id="lgAcc" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#7c3aed"/><stop offset="100%" stop-color="#a855f7"/></linearGradient>
</defs>
<rect width="512" height="512" rx="96" fill="url(#lgBg)"/>
<rect x="72" y="236" width="36" height="88" rx="18" fill="url(#lgAcc)" opacity="0.6"/>
<rect x="122" y="196" width="36" height="168" rx="18" fill="url(#lgAcc)" opacity="0.75"/>
<rect x="172" y="156" width="36" height="248" rx="18" fill="url(#lgAcc)"/>
<rect x="222" y="128" width="36" height="304" rx="18" fill="url(#lgAcc)"/>
<rect x="272" y="148" width="36" height="264" rx="18" fill="url(#lgAcc)"/>
<rect x="322" y="188" width="36" height="184" rx="18" fill="url(#lgAcc)" opacity="0.8"/>
<rect x="372" y="220" width="36" height="120" rx="18" fill="url(#lgAcc)" opacity="0.65"/>
<rect x="422" y="248" width="36" height="64" rx="18" fill="url(#lgAcc)" opacity="0.5"/>
</svg>
</div>
<div class="logo-text">
<h1>SoundMax</h1>
</div>
</div>
</div>
<!-- Audio Engine Controls -->
<div class="sidebar-section">
<div class="section-label">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/></svg>
Microfone
</div>
<select id="micInput" class="device-select">
<!-- populated by js -->
</select>
<div class="level-meter" title="Volume do Microfone capturado pelo app">
<div class="level-fill" id="micLevel"></div>
</div>
<div class="device-hint">Apenas sua voz</div>
</div>
<div class="sidebar-section">
<div class="section-label">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12h4l3-9 5 18 3-9h5"/></svg>
SAÍDA (VB-CABLE)
</div>
<select id="audioOutput" class="device-select">
<!-- populated by js -->
</select>
<div class="level-meter" title="Volume Final (Voz + Áudios) enviado para a Saída">
<div class="level-fill" id="outLevel"></div>
</div>
<div class="device-hint">Selecione VB-Cable Input para enviar pelo mic</div>
</div>
<div class="sidebar-section">
<div class="engine-control">
<div id="engineIndicator" class="engine-indicator" title="Engine parada"></div>
<button id="engineToggle" class="btn-engine">▶ Iniciar</button>
</div>
<div id="loadingStatus" class="loading-status hidden"></div>
</div>
<!-- Volume Áudios + Microfone -->
<div class="sidebar-section">
<div class="section-label">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>
Vol. Áudios
</div>
<div class="volume-control">
<input type="range" id="masterVolume" class="volume-slider" min="0" max="100" value="80">
<span id="masterVolumeLabel" class="volume-label">80%</span>
</div>
<div class="section-label" style="margin-top:10px">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/></svg>
Vol. Microfone
</div>
<div class="volume-control">
<input type="range" id="micVolume" class="volume-slider" min="0" max="200" value="100">
<span id="micVolumeLabel" class="volume-label">100%</span>
</div>
</div>
<!-- Categories -->
<div class="sidebar-section">
<div class="section-label">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>
Categorias
<button id="addCategoryBtn" class="btn-icon-sm" title="Nova categoria">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</button>
</div>
<nav id="categoryList" class="category-list">
<!-- Categories populated by JS -->
</nav>
</div>
<!-- Stats -->
<div class="sidebar-footer">
<div class="stats">
<div class="stat-item">
<span class="stat-value" id="totalSounds">0</span>
<span class="stat-label">Sons</span>
</div>
<div class="stat-item">
<span class="stat-value" id="totalCategories">0</span>
<span class="stat-label">Categorias</span>
</div>
</div>
</div>
</aside>
<!-- ═══ MAIN CONTENT ═══ -->
<main id="mainContent" class="main-content">
<!-- Top Bar -->
<header class="topbar">
<div class="topbar-left">
<button id="sidebarToggle" class="btn-icon" title="Toggle sidebar">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
</button>
<!-- Tab Navigation -->
<nav class="tab-nav" role="tablist">
<button id="tabSoundboard" class="tab-btn active" role="tab" aria-selected="true" data-tab="soundboard">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>
Soundboard
</button>
<button id="tabVoiceChanger" class="tab-btn" role="tab" aria-selected="false" data-tab="voice-changer">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/><line x1="8" y1="23" x2="16" y2="23"/></svg>
Voice Changer
<span class="tab-badge">NEW</span>
</button>
</nav>
<div class="search-container" id="searchWrapper">
<svg class="search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
<input type="text" id="searchInput" class="search-input" placeholder="Buscar sons..." autocomplete="off">
<kbd class="search-kbd">Ctrl+K</kbd>
</div>
</div>
<div class="topbar-right">
<button id="tutorialBtn" class="btn-icon" title="Como Usar o App" style="margin-right: 8px;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
</button>
<button id="stopAllBtn" class="btn-stop-all" title="Parar tudo (Esc)">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="6" width="12" height="12" rx="2"></rect></svg>
<span>Stop All</span>
</button>
<button id="refreshBtn" class="btn-icon" title="Atualizar sons da pasta interna" style="margin-right: 8px;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg>
</button>
<button id="addSoundBtn" class="btn-primary" title="Adicionar sons">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
<span>Adicionar</span>
</button>
<input type="file" id="fileInput" accept="audio/*" multiple hidden>
</div>
</header>
<!-- Active Category Header -->
<div class="content-header">
<h2 id="activeCategoryTitle" class="category-title">Todos os Sons</h2>
<div class="view-controls">
<button id="viewGrid" class="btn-view active" title="Grid view">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>
</button>
<button id="viewList" class="btn-view" title="List view">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>
</button>
</div>
</div>
<!-- Sound Grid / Drop Zone -->
<div id="dropZone" class="drop-zone">
<div id="soundGrid" class="sound-grid">
<!-- Sound cards populated by JS -->
</div>
<!-- Empty State -->
<div id="emptyState" class="empty-state">
<div class="empty-icon">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 18V5l12-2v13"></path>
<circle cx="6" cy="18" r="3"></circle>
<circle cx="18" cy="16" r="3"></circle>
</svg>
</div>
<h3>Nenhum som adicionado</h3>
<p>Arraste arquivos de áudio aqui ou clique em <strong>Adicionar</strong></p>
<p class="empty-formats">MP3, WAV, OGG, FLAC, AAC, M4A, WEBM</p>
</div>
<!-- Drop Overlay -->
<div id="dropOverlay" class="drop-overlay">
<div class="drop-overlay-content">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
<span>Solte os arquivos aqui!</span>
</div>
</div>
</div>
<!-- ═══ VOICE CHANGER PANEL ═══ -->
<div id="voiceChangerPanel" class="vc-panel hidden">
<!-- Status Bar -->
<div class="vc-status-bar">
<div class="vc-status-left">
<div id="vcIndicator" class="vc-indicator off" title="Voice Changer inativo"></div>
<span id="vcStatusText" class="vc-status-text">Inativo — clique em Iniciar</span>
</div>
<div class="vc-status-right">
<label class="toggle-label" title="Monitorar sua voz processada no fone">
<input type="checkbox" id="vcMonitor" class="toggle-input">
<span class="toggle-switch"></span>
Monitor
</label>
<button id="vcToggleBtn" class="btn-vc-toggle">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>
Iniciar
</button>
<kbd class="search-kbd" style="margin-left:6px" title="Hotkey global">Ctrl+Shift+V</kbd>
</div>
</div>
<!-- Waveform Visualizer -->
<div class="vc-visualizer-wrap">
<canvas id="vcCanvas" class="vc-canvas" width="900" height="80"></canvas>
<div id="vcVisualizerLabel" class="vc-visualizer-label">Aguardando microfone...</div>
</div>
<!-- Effect Grid -->
<div class="vc-section-title">Efeitos de Voz</div>
<div class="vc-effects-grid" id="vcEffectsGrid">
<button class="vc-effect-card active" data-effect="none" id="vcEffect-none" title="Voz original sem efeito">
<span class="vc-keybind-btn" data-effect="none" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">🎙️</div>
<div class="vc-effect-name">Original</div>
<div class="vc-effect-desc">Passthrough</div>
</button>
<button class="vc-effect-card" data-effect="robot" id="vcEffect-robot" title="Voz robótica via ring modulation">
<span class="vc-keybind-btn" data-effect="robot" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">🤖</div>
<div class="vc-effect-name">Robô</div>
<div class="vc-effect-desc">Ring Modulation</div>
</button>
<button class="vc-effect-card" data-effect="deep" id="vcEffect-deep" title="Voz grave profunda">
<span class="vc-keybind-btn" data-effect="deep" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">👾</div>
<div class="vc-effect-name">Voz Grave</div>
<div class="vc-effect-desc">Bass Boost + EQ</div>
</button>
<button class="vc-effect-card" data-effect="demon" id="vcEffect-demon" title="Voz demoníaca super grave com tremolo">
<span class="vc-keybind-btn" data-effect="demon" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">😈</div>
<div class="vc-effect-name">Demônio</div>
<div class="vc-effect-desc">Sub-bass + RingMod</div>
</button>
<button class="vc-effect-card" data-effect="chipmunk" id="vcEffect-chipmunk" title="Voz aguda estilo esquilo">
<span class="vc-keybind-btn" data-effect="chipmunk" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">🐿️</div>
<div class="vc-effect-name">Chipmunk</div>
<div class="vc-effect-desc">High Boost + EQ</div>
</button>
<button class="vc-effect-card" data-effect="alien" id="vcEffect-alien" title="Voz alienígena robótica espacial">
<span class="vc-keybind-btn" data-effect="alien" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">👽</div>
<div class="vc-effect-name">Alienígena</div>
<div class="vc-effect-desc">Metallic Chorus</div>
</button>
<button class="vc-effect-card" data-effect="radio" id="vcEffect-radio" title="Voz de rádio ou walkie-talkie">
<span class="vc-keybind-btn" data-effect="radio" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">📻</div>
<div class="vc-effect-name">Rádio</div>
<div class="vc-effect-desc">Bandpass + Crunch</div>
</button>
<button class="vc-effect-card" data-effect="astronaut" id="vcEffect-astronaut" title="Rádio de astronauta com ruído de fundo">
<span class="vc-keybind-btn" data-effect="astronaut" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">👨🚀</div>
<div class="vc-effect-name">Astronauta</div>
<div class="vc-effect-desc">Bandpass + Noise</div>
</button>
<button class="vc-effect-card" data-effect="reverb" id="vcEffect-reverb" title="Eco e reverberação">
<span class="vc-keybind-btn" data-effect="reverb" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">👻</div>
<div class="vc-effect-name">Reverb</div>
<div class="vc-effect-desc">Echo + Delay</div>
</button>
<button class="vc-effect-card" data-effect="megaphone" id="vcEffect-megaphone" title="Voz de megafone/alto-falante">
<span class="vc-keybind-btn" data-effect="megaphone" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">📢</div>
<div class="vc-effect-name">Megafone</div>
<div class="vc-effect-desc">Distortion + EQ</div>
</button>
<button class="vc-effect-card" data-effect="custom" id="vcEffect-custom" title="Efeitos personalizados com sliders">
<span class="vc-keybind-btn" data-effect="custom" title="Clique direito para definir tecla"></span>
<div class="vc-effect-icon">🎛️</div>
<div class="vc-effect-name">Custom</div>
<div class="vc-effect-desc">Controle total</div>
</button>
</div>
<div class="vc-keybind-hint">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="M6 8h.01M10 8h.01M14 8h.01M18 8h.01M8 12h.01M12 12h.01M16 12h.01M7 16h10"/></svg>
<strong>Clique direito</strong> no card do efeito para atribuir uma tecla personalizada. Pressione a tecla para ativar/desativar. <strong>Delete</strong> remove a tecla.
</div>
<!-- Custom Effect Sliders (hidden unless custom is active) -->
<div id="vcCustomSliders" class="vc-custom-sliders hidden">
<div class="vc-slider-row">
<label class="vc-slider-label">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/></svg>
Pitch
</label>
<input type="range" id="vcPitchSlider" class="vc-slider" min="-12" max="12" value="0" step="1">
<span id="vcPitchVal" class="vc-slider-val">0 st</span>
</div>
<div class="vc-slider-row">
<label class="vc-slider-label">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 18v-6a9 9 0 0 1 18 0v6"/><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3z"/></svg>
Reverb
</label>
<input type="range" id="vcReverbSlider" class="vc-slider" min="0" max="100" value="30">
<span id="vcReverbVal" class="vc-slider-val">30%</span>
</div>
<div class="vc-slider-row">
<label class="vc-slider-label">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
Distorção
</label>
<input type="range" id="vcDistSlider" class="vc-slider" min="0" max="100" value="20">
<span id="vcDistVal" class="vc-slider-val">20%</span>
</div>
</div>
<!-- Robot frequency slider (only for robot effect) -->
<div id="vcRobotSlider" class="vc-custom-sliders hidden">
<div class="vc-slider-row">
<label class="vc-slider-label">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/></svg>
Freq. Modulação
</label>
<input type="range" id="vcRingFreqSlider" class="vc-slider" min="10" max="200" value="40">
<span id="vcRingFreqVal" class="vc-slider-val">40 Hz</span>
</div>
</div>
<!-- Info footer -->
<div class="vc-footer">
<div class="vc-footer-info">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
O áudio processado é enviado para a saída selecionada no painel. Configure o Discord para usar <strong>CABLE Output</strong> como microfone.
</div>
</div>
</div>
<!-- Now Playing Bar -->
<div id="nowPlaying" class="now-playing hidden">
<div class="now-playing-info">
<div class="now-playing-indicator">
<span class="bar"></span><span class="bar"></span><span class="bar"></span><span class="bar"></span>
</div>
<span id="nowPlayingName" class="now-playing-name">—</span>
</div>
<div class="now-playing-controls">
<div id="nowPlayingProgress" class="progress-bar">
<div id="nowPlayingProgressFill" class="progress-fill"></div>
</div>
<span id="nowPlayingTime" class="now-playing-time">0:00 / 0:00</span>
</div>
</div>
</main>
</div>
<!-- ═══ MODALS ═══ -->
<!-- Sound Settings Modal -->
<div id="soundModal" class="modal-overlay hidden">
<div class="modal">
<div class="modal-header">
<h3>Configurações do Som</h3>
<button class="btn-icon modal-close" data-modal="soundModal">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="soundName">Nome</label>
<input type="text" id="soundName" class="form-input" placeholder="Nome do som">
</div>
<div class="form-group">
<label for="soundCategory">Categoria</label>
<select id="soundCategory" class="form-input"></select>
</div>
<div class="form-group">
<label for="soundVolume">Volume Individual</label>
<div class="volume-control">
<input type="range" id="soundVolume" class="volume-slider" min="0" max="100" value="100">
<span id="soundVolumeLabel" class="volume-label">100%</span>
</div>
</div>
<div class="form-group">
<label>Cor do Botão</label>
<div id="colorPicker" class="color-picker">
<button class="color-swatch" data-color="#7C3AED" style="background:#7C3AED"></button>
<button class="color-swatch" data-color="#06D6A0" style="background:#06D6A0"></button>
<button class="color-swatch" data-color="#3B82F6" style="background:#3B82F6"></button>
<button class="color-swatch" data-color="#F59E0B" style="background:#F59E0B"></button>
<button class="color-swatch" data-color="#EF4444" style="background:#EF4444"></button>
<button class="color-swatch" data-color="#EC4899" style="background:#EC4899"></button>
<button class="color-swatch" data-color="#14B8A6" style="background:#14B8A6"></button>
<button class="color-swatch" data-color="#F97316" style="background:#F97316"></button>
<button class="color-swatch" data-color="#8B5CF6" style="background:#8B5CF6"></button>
<button class="color-swatch" data-color="#64748B" style="background:#64748B"></button>
</div>
</div>
<div class="form-group">
<label for="soundHotkey">Hotkey (Soundpad)</label>
<input type="text" id="soundHotkey" class="form-input hotkey-input" placeholder="Pressione uma tecla..." readonly>
<div class="form-hint">Suporta F1–F12, Numpad, letras e números · Duplo clique para limpar</div>
</div>
<div class="form-group form-row">
<label class="toggle-label">
<input type="checkbox" id="soundLoop" class="toggle-input">
<span class="toggle-switch"></span>
Loop
</label>
<label class="toggle-label">
<input type="checkbox" id="soundFavorite" class="toggle-input">
<span class="toggle-switch"></span>
Favorito ⭐
</label>
</div>
</div>
<div class="modal-footer">
<button id="deleteSoundBtn" class="btn-danger">Excluir</button>
<button id="saveSoundBtn" class="btn-primary">Salvar</button>
</div>
</div>
</div>
<!-- Category Modal -->
<div id="categoryModal" class="modal-overlay hidden">
<div class="modal modal-sm">
<div class="modal-header">
<h3 id="categoryModalTitle">Nova Categoria</h3>
<button class="btn-icon modal-close" data-modal="categoryModal">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="categoryName">Nome da Categoria</label>
<input type="text" id="categoryName" class="form-input" placeholder="Ex: Memes, Música, Efeitos...">
</div>
<div class="form-group">
<label>Ícone</label>
<div id="emojiPicker" class="emoji-picker">
<button class="emoji-btn" data-emoji="🎵">🎵</button>
<button class="emoji-btn" data-emoji="🎮">🎮</button>
<button class="emoji-btn" data-emoji="😂">😂</button>
<button class="emoji-btn" data-emoji="🔥">🔥</button>
<button class="emoji-btn" data-emoji="⚡">⚡</button>
<button class="emoji-btn" data-emoji="🎤">🎤</button>
<button class="emoji-btn" data-emoji="💀">💀</button>
<button class="emoji-btn" data-emoji="🎶">🎶</button>
<button class="emoji-btn" data-emoji="🗣️">🗣️</button>
<button class="emoji-btn" data-emoji="🎧">🎧</button>
<button class="emoji-btn" data-emoji="📢">📢</button>
<button class="emoji-btn" data-emoji="🔔">🔔</button>
</div>
</div>
</div>
<div class="modal-footer">
<button id="deleteCategoryBtn" class="btn-danger hidden">Excluir</button>
<button id="saveCategoryBtn" class="btn-primary">Criar</button>
</div>
</div>
</div>
<!-- Tutorial Modal -->
<div id="tutorialModal" class="modal-overlay hidden">
<div class="modal">
<div class="modal-header">
<h3>🚀 Como Usar o SoundMax</h3>
<button class="btn-icon modal-close" data-modal="tutorialModal">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
<div class="modal-body tutorial-body">
<div class="tutorial-step">
<div class="step-number">1</div>
<div class="step-content">
<h4>Instale o Driver Virtual (Obrigatório)</h4>
<p>O app precisa do <strong>VB-Audio Virtual Cable</strong> para funcionar. Se ainda não tem, baixe gratuitamente no site oficial (vb-audio.com/Cable) e instale.</p>
</div>
</div>
<div class="tutorial-step">
<div class="step-number">2</div>
<div class="step-content">
<h4>Configure o App</h4>
<p>No menu lateral esquerdo do SoundMax:<br>
• Em <strong>Microfone</strong>: Selecione o seu microfone de verdade.<br>
• Em <strong>Saída (VB-Cable)</strong>: Selecione <em>"CABLE Input"</em>.</p>
</div>
</div>
<div class="tutorial-step">
<div class="step-number">3</div>
<div class="step-content">
<h4>Ligue o Motor (Engine)</h4>
<p>Clique no botão <strong>▶ Iniciar</strong> no canto esquerdo. O indicador vai ficar verde e pulsando. Isso significa que o app está misturando a sua voz com os sons ativamente.</p>
</div>
</div>
<div class="tutorial-step">
<div class="step-number">4</div>
<div class="step-content">
<h4>Configure o Discord / Jogo</h4>
<p>Vá nas configurações de voz do Discord (ou do seu jogo preferido) e altere o seu <strong>Dispositivo de Entrada (Microfone)</strong> para <em>"CABLE Output (VB-Audio Virtual Cable)"</em>.</p>
</div>
</div>
<div class="tutorial-step">
<div class="step-number">5</div>
<div class="step-content">
<h4>Toque os Memes! 🎵</h4>
<p>Pronto! Ao clicar em qualquer som no grid central, você vai escutá-lo e os seus amigos também vão ouvir junto com a sua voz.</p>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn-primary modal-close" data-modal="tutorialModal">Entendi! Fechar</button>
</div>
</div>
</div>
<!-- Toast Container -->
<div id="toastContainer" class="toast-container"></div>
<script src="voice-changer.js"></script>
<script src="js/state.js"></script>
<script src="js/audio-engine.js"></script>
<script src="js/sound-manager.js"></script>
<script src="js/ui.js"></script>
<script src="js/events.js"></script>
<script src="js/vc-controller.js"></script>
<script src="js/app.js"></script>
</body>
</html>