Wahso commited on
Commit
ed635e1
·
verified ·
1 Parent(s): 0e33261

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +950 -18
style.css CHANGED
@@ -1,28 +1,960 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* CSS Variables */
2
+ :root {
3
+ --primary: #6366f1;
4
+ --primary-dark: #4f46e5;
5
+ --primary-light: #818cf8;
6
+ --secondary: #22d3ee;
7
+ --success: #22c55e;
8
+ --warning: #f59e0b;
9
+ --error: #ef4444;
10
+ --background: #0f172a;
11
+ --surface: #1e293b;
12
+ --surface-light: #334155;
13
+ --text-primary: #f8fafc;
14
+ --text-secondary: #94a3b8;
15
+ --border: #475569;
16
+ --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
17
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
18
+ --radius: 12px;
19
+ --radius-sm: 8px;
20
+ --transition: all 0.2s ease;
21
+ }
22
+
23
+ /* Reset & Base */
24
+ * {
25
+ margin: 0;
26
+ padding: 0;
27
+ box-sizing: border-box;
28
+ }
29
+
30
+ html {
31
+ font-size: 16px;
32
+ }
33
+
34
  body {
35
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
36
+ background: var(--background);
37
+ color: var(--text-primary);
38
+ line-height: 1.6;
39
+ min-height: 100vh;
40
+ }
41
+
42
+ /* App Container */
43
+ .app-container {
44
+ min-height: 100vh;
45
+ display: flex;
46
+ flex-direction: column;
47
+ }
48
+
49
+ /* Header */
50
+ .app-header {
51
+ background: var(--surface);
52
+ border-bottom: 1px solid var(--border);
53
+ padding: 1rem 2rem;
54
+ position: sticky;
55
+ top: 0;
56
+ z-index: 100;
57
+ }
58
+
59
+ .header-content {
60
+ max-width: 1400px;
61
+ margin: 0 auto;
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+ }
66
+
67
+ .logo {
68
+ display: flex;
69
+ align-items: center;
70
+ gap: 0.75rem;
71
+ }
72
+
73
+ .logo h1 {
74
+ font-size: 1.25rem;
75
+ font-weight: 600;
76
+ }
77
+
78
+ .anycoder-badge {
79
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
80
+ color: white;
81
+ padding: 0.5rem 1rem;
82
+ border-radius: 20px;
83
+ font-size: 0.875rem;
84
+ font-weight: 500;
85
+ text-decoration: none;
86
+ transition: var(--transition);
87
+ }
88
+
89
+ .anycoder-badge:hover {
90
+ transform: translateY(-2px);
91
+ box-shadow: var(--shadow-lg);
92
+ }
93
+
94
+ /* Main Content */
95
+ .main-content {
96
+ flex: 1;
97
+ max-width: 1400px;
98
+ margin: 0 auto;
99
+ padding: 2rem;
100
+ width: 100%;
101
+ }
102
+
103
+ /* Page Management */
104
+ .page {
105
+ display: none;
106
+ }
107
+
108
+ .page.active {
109
+ display: block;
110
+ }
111
+
112
+ /* Setup Container */
113
+ .setup-container {
114
+ display: flex;
115
+ flex-direction: column;
116
+ gap: 2rem;
117
+ }
118
+
119
+ /* Sections */
120
+ section {
121
+ background: var(--surface);
122
+ border-radius: var(--radius);
123
+ padding: 1.5rem;
124
+ border: 1px solid var(--border);
125
+ }
126
+
127
+ section h2 {
128
+ font-size: 1.125rem;
129
+ font-weight: 600;
130
+ margin-bottom: 1rem;
131
+ color: var(--text-primary);
132
+ }
133
+
134
+ /* Upload Section */
135
+ .upload-zone {
136
+ border: 2px dashed var(--border);
137
+ border-radius: var(--radius);
138
+ padding: 3rem;
139
+ text-align: center;
140
+ transition: var(--transition);
141
+ cursor: pointer;
142
+ }
143
+
144
+ .upload-zone:hover, .upload-zone.dragover {
145
+ border-color: var(--primary);
146
+ background: rgba(99, 102, 241, 0.05);
147
+ }
148
+
149
+ .upload-content {
150
+ display: flex;
151
+ flex-direction: column;
152
+ align-items: center;
153
+ gap: 1rem;
154
+ color: var(--text-secondary);
155
+ }
156
+
157
+ .upload-content svg {
158
+ color: var(--primary);
159
+ }
160
+
161
+ .browse {
162
+ color: var(--primary);
163
+ font-weight: 500;
164
+ cursor: pointer;
165
+ }
166
+
167
+ .upload-hint {
168
+ font-size: 0.875rem;
169
+ color: var(--text-secondary);
170
+ }
171
+
172
+ /* Video Preview Section */
173
+ .preview-section {
174
+ position: relative;
175
+ }
176
+
177
+ .video-wrapper {
178
+ position: relative;
179
+ display: inline-block;
180
+ max-width: 100%;
181
+ border-radius: var(--radius-sm);
182
+ overflow: hidden;
183
+ background: #000;
184
+ }
185
+
186
+ #video-preview, #result-video {
187
+ display: block;
188
+ max-width: 100%;
189
+ max-height: 500px;
190
+ }
191
+
192
+ .subtitle-overlay {
193
+ position: absolute;
194
+ top: 0;
195
+ left: 0;
196
+ pointer-events: none;
197
+ }
198
+
199
+ .subtitle-box {
200
+ position: absolute;
201
+ border: 2px solid var(--primary);
202
+ background: rgba(99, 102, 241, 0.1);
203
+ cursor: move;
204
+ min-width: 100px;
205
+ min-height: 30px;
206
+ }
207
+
208
+ .subtitle-box::before {
209
+ content: 'Subtitle Area';
210
+ position: absolute;
211
+ top: -24px;
212
+ left: 0;
213
+ background: var(--primary);
214
+ color: white;
215
+ padding: 2px 8px;
216
+ font-size: 0.75rem;
217
+ border-radius: 4px;
218
+ }
219
+
220
+ .resize-handle {
221
+ position: absolute;
222
+ width: 12px;
223
+ height: 12px;
224
+ background: var(--primary);
225
+ border: 2px solid white;
226
+ border-radius: 50%;
227
+ }
228
+
229
+ .resize-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
230
+ .resize-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
231
+ .resize-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
232
+ .resize-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }
233
+
234
+ /* Subtitle Controls */
235
+ .subtitle-controls {
236
+ display: grid;
237
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
238
+ gap: 1rem;
239
+ margin-top: 1rem;
240
+ }
241
+
242
+ .control-group {
243
+ display: flex;
244
+ flex-direction: column;
245
+ gap: 0.5rem;
246
+ }
247
+
248
+ .control-group label {
249
+ font-size: 0.875rem;
250
+ color: var(--text-secondary);
251
+ display: flex;
252
+ align-items: center;
253
+ gap: 0.5rem;
254
+ }
255
+
256
+ .control-group input[type="range"] {
257
+ width: 100%;
258
+ height: 6px;
259
+ -webkit-appearance: none;
260
+ background: var(--surface-light);
261
+ border-radius: 3px;
262
+ outline: none;
263
+ }
264
+
265
+ .control-group input[type="range"]::-webkit-slider-thumb {
266
+ -webkit-appearance: none;
267
+ width: 18px;
268
+ height: 18px;
269
+ background: var(--primary);
270
+ border-radius: 50%;
271
+ cursor: pointer;
272
+ transition: var(--transition);
273
+ }
274
+
275
+ .control-group input[type="range"]::-webkit-slider-thumb:hover {
276
+ transform: scale(1.1);
277
+ }
278
+
279
+ .control-group .value {
280
+ font-size: 0.875rem;
281
+ color: var(--primary);
282
+ font-weight: 500;
283
+ }
284
+
285
+ .control-group.checkbox {
286
+ flex-direction: row;
287
+ align-items: center;
288
+ }
289
+
290
+ .control-group.checkbox input {
291
+ width: 18px;
292
+ height: 18px;
293
+ accent-color: var(--primary);
294
+ }
295
+
296
+ .quick-actions {
297
+ display: flex;
298
+ gap: 0.75rem;
299
+ margin-top: 1rem;
300
+ }
301
+
302
+ /* Language Section */
303
+ .language-grid {
304
+ display: grid;
305
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
306
+ gap: 0.75rem;
307
+ }
308
+
309
+ .lang-btn {
310
+ padding: 0.875rem 1rem;
311
+ border: 1px solid var(--border);
312
+ background: var(--surface-light);
313
+ color: var(--text-primary);
314
+ border-radius: var(--radius-sm);
315
+ cursor: pointer;
316
+ transition: var(--transition);
317
+ font-size: 0.875rem;
318
+ }
319
+
320
+ .lang-btn:hover {
321
+ border-color: var(--primary);
322
+ }
323
+
324
+ .lang-btn.active {
325
+ background: var(--primary);
326
+ border-color: var(--primary);
327
+ }
328
+
329
+ /* Time Section */
330
+ .time-controls {
331
+ display: grid;
332
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
333
+ gap: 1.5rem;
334
+ margin-bottom: 1.5rem;
335
+ }
336
+
337
+ .time-input-group {
338
+ display: flex;
339
+ flex-direction: column;
340
+ gap: 0.75rem;
341
+ }
342
+
343
+ .time-input-group label {
344
+ font-size: 0.875rem;
345
+ color: var(--text-secondary);
346
+ }
347
+
348
+ .time-input {
349
+ display: flex;
350
+ align-items: center;
351
+ gap: 0.25rem;
352
+ background: var(--surface-light);
353
+ padding: 0.5rem;
354
+ border-radius: var(--radius-sm);
355
+ }
356
+
357
+ .time-input input {
358
+ width: 50px;
359
+ text-align: center;
360
+ background: transparent;
361
+ border: none;
362
+ color: var(--text-primary);
363
+ font-size: 1rem;
364
+ font-family: monospace;
365
+ }
366
+
367
+ .time-input input::-webkit-inner-spin-button,
368
+ .time-input input::-webkit-outer-spin-button {
369
+ -webkit-appearance: none;
370
+ }
371
+
372
+ .time-input span {
373
+ color: var(--text-secondary);
374
+ }
375
+
376
+ .btn-small {
377
+ padding: 0.5rem 0.875rem;
378
+ font-size: 0.875rem;
379
+ }
380
+
381
+ /* Time Range Slider */
382
+ .time-slider-container {
383
+ padding: 1rem 0;
384
+ }
385
+
386
+ .range-slider {
387
+ position: relative;
388
+ height: 40px;
389
+ margin: 0 10px;
390
+ }
391
+
392
+ .range-track {
393
+ position: absolute;
394
+ top: 50%;
395
+ transform: translateY(-50%);
396
+ width: 100%;
397
+ height: 6px;
398
+ background: var(--surface-light);
399
+ border-radius: 3px;
400
+ }
401
+
402
+ .range-fill {
403
+ position: absolute;
404
+ top: 50%;
405
+ transform: translateY(-50%);
406
+ height: 6px;
407
+ background: var(--primary);
408
+ border-radius: 3px;
409
+ left: 0%;
410
+ right: 0%;
411
+ }
412
+
413
+ .range-thumb {
414
+ position: absolute;
415
+ top: 50%;
416
+ transform: translate(-50%, -50%);
417
+ width: 20px;
418
+ height: 20px;
419
+ background: var(--primary);
420
+ border: 3px solid white;
421
+ border-radius: 50%;
422
+ cursor: grab;
423
+ box-shadow: var(--shadow);
424
+ z-index: 2;
425
+ }
426
+
427
+ .range-thumb:active {
428
+ cursor: grabbing;
429
+ }
430
+
431
+ .range-thumb.start { left: 0%; }
432
+ .range-thumb.end { left: 100%; }
433
+
434
+ .time-labels {
435
+ display: flex;
436
+ justify-content: space-between;
437
+ margin-top: 0.5rem;
438
+ font-size: 0.875rem;
439
+ color: var(--text-secondary);
440
+ font-family: monospace;
441
+ }
442
+
443
+ /* Process Section */
444
+ .process-section {
445
+ text-align: center;
446
+ padding: 2rem;
447
+ }
448
+
449
+ .btn-large {
450
+ padding: 1rem 2rem;
451
+ font-size: 1.125rem;
452
+ }
453
+
454
+ .process-hint {
455
+ margin-top: 1rem;
456
+ color: var(--text-secondary);
457
+ font-size: 0.875rem;
458
  }
459
 
460
+ /* Buttons */
461
+ .btn-primary, .btn-secondary {
462
+ display: inline-flex;
463
+ align-items: center;
464
+ justify-content: center;
465
+ gap: 0.5rem;
466
+ padding: 0.75rem 1.5rem;
467
+ border-radius: var(--radius-sm);
468
+ font-size: 0.9375rem;
469
+ font-weight: 500;
470
+ cursor: pointer;
471
+ transition: var(--transition);
472
+ border: none;
473
  }
474
 
475
+ .btn-primary {
476
+ background: var(--primary);
477
+ color: white;
 
 
478
  }
479
 
480
+ .btn-primary:hover {
481
+ background: var(--primary-dark);
482
+ transform: translateY(-2px);
483
+ box-shadow: var(--shadow-lg);
 
 
484
  }
485
 
486
+ .btn-secondary {
487
+ background: var(--surface-light);
488
+ color: var(--text-primary);
489
+ border: 1px solid var(--border);
490
  }
491
+
492
+ .btn-secondary:hover {
493
+ background: var(--border);
494
+ }
495
+
496
+ .btn-icon {
497
+ width: 44px;
498
+ height: 44px;
499
+ display: flex;
500
+ align-items: center;
501
+ justify-content: center;
502
+ background: var(--surface-light);
503
+ border: 1px solid var(--border);
504
+ border-radius: var(--radius-sm);
505
+ color: var(--text-primary);
506
+ cursor: pointer;
507
+ transition: var(--transition);
508
+ }
509
+
510
+ .btn-icon:hover {
511
+ background: var(--primary);
512
+ border-color: var(--primary);
513
+ }
514
+
515
+ /* Processing Page */
516
+ .processing-container {
517
+ max-width: 600px;
518
+ margin: 0 auto;
519
+ text-align: center;
520
+ padding: 3rem;
521
+ }
522
+
523
+ .processing-animation {
524
+ position: relative;
525
+ width: 200px;
526
+ height: 200px;
527
+ margin: 0 auto 2rem;
528
+ }
529
+
530
+ .spinner {
531
+ width: 100%;
532
+ height: 100%;
533
+ border: 4px solid var(--surface-light);
534
+ border-top-color: var(--primary);
535
+ border-radius: 50%;
536
+ animation: spin 1s linear infinite;
537
+ }
538
+
539
+ @keyframes spin {
540
+ to { transform: rotate(360deg); }
541
+ }
542
+
543
+ .processing-video {
544
+ position: absolute;
545
+ top: 50%;
546
+ left: 50%;
547
+ transform: translate(-50%, -50%);
548
+ width: 120px;
549
+ height: 80px;
550
+ background: var(--surface);
551
+ border-radius: var(--radius-sm);
552
+ display: flex;
553
+ align-items: center;
554
+ justify-content: center;
555
+ }
556
+
557
+ .processing-video::before {
558
+ content: '🎬';
559
+ font-size: 2rem;
560
+ }
561
+
562
+ .progress-container {
563
+ margin: 2rem 0;
564
+ }
565
+
566
+ .progress-bar {
567
+ height: 8px;
568
+ background: var(--surface-light);
569
+ border-radius: 4px;
570
+ overflow: hidden;
571
+ }
572
+
573
+ .progress-fill {
574
+ height: 100%;
575
+ width: 0%;
576
+ background: linear-gradient(90deg, var(--primary), var(--secondary));
577
+ border-radius: 4px;
578
+ transition: width 0.3s ease;
579
+ }
580
+
581
+ .progress-info {
582
+ display: flex;
583
+ justify-content: space-between;
584
+ margin-top: 0.75rem;
585
+ font-size: 0.875rem;
586
+ }
587
+
588
+ .progress-info span:first-child {
589
+ color: var(--text-secondary);
590
+ }
591
+
592
+ #progress-percent {
593
+ color: var(--primary);
594
+ font-weight: 600;
595
+ }
596
+
597
+ .processing-stats {
598
+ display: grid;
599
+ grid-template-columns: repeat(3, 1fr);
600
+ gap: 1rem;
601
+ margin: 2rem 0;
602
+ }
603
+
604
+ .stat {
605
+ background: var(--surface-light);
606
+ padding: 1rem;
607
+ border-radius: var(--radius-sm);
608
+ }
609
+
610
+ .stat-label {
611
+ display: block;
612
+ font-size: 0.75rem;
613
+ color: var(--text-secondary);
614
+ text-transform: uppercase;
615
+ letter-spacing: 0.05em;
616
+ }
617
+
618
+ .stat-value {
619
+ display: block;
620
+ font-size: 1.5rem;
621
+ font-weight: 600;
622
+ color: var(--primary);
623
+ margin-top: 0.25rem;
624
+ }
625
+
626
+ /* Results Page */
627
+ .results-container {
628
+ display: flex;
629
+ flex-direction: column;
630
+ gap: 2rem;
631
+ }
632
+
633
+ .result-video-wrapper {
634
+ margin: 0 auto;
635
+ }
636
+
637
+ .active-subtitle-display {
638
+ position: absolute;
639
+ bottom: 10%;
640
+ left: 50%;
641
+ transform: translateX(-50%);
642
+ background: rgba(0, 0, 0, 0.8);
643
+ color: white;
644
+ padding: 0.75rem 1.5rem;
645
+ border-radius: var(--radius-sm);
646
+ font-size: 1.125rem;
647
+ text-align: center;
648
+ max-width: 90%;
649
+ opacity: 0;
650
+ transition: opacity 0.2s;
651
+ pointer-events: none;
652
+ }
653
+
654
+ .active-subtitle-display.visible {
655
+ opacity: 1;
656
+ }
657
+
658
+ .active-subtitle-display.highlighted {
659
+ box-shadow: 0 0 20px var(--primary), 0 0 40px var(--secondary);
660
+ border: 2px solid var(--primary);
661
+ }
662
+
663
+ .playback-controls {
664
+ display: flex;
665
+ justify-content: center;
666
+ gap: 1rem;
667
+ margin-top: 1rem;
668
+ }
669
+
670
+ /* Subtitle List */
671
+ .section-header {
672
+ display: flex;
673
+ justify-content: space-between;
674
+ align-items: center;
675
+ margin-bottom: 1rem;
676
+ }
677
+
678
+ .view-toggle {
679
+ display: flex;
680
+ gap: 0.25rem;
681
+ background: var(--surface-light);
682
+ padding: 0.25rem;
683
+ border-radius: var(--radius-sm);
684
+ }
685
+
686
+ .toggle-btn {
687
+ padding: 0.5rem 1rem;
688
+ border: none;
689
+ background: transparent;
690
+ color: var(--text-secondary);
691
+ cursor: pointer;
692
+ border-radius: 6px;
693
+ font-size: 0.875rem;
694
+ transition: var(--transition);
695
+ }
696
+
697
+ .toggle-btn.active {
698
+ background: var(--primary);
699
+ color: white;
700
+ }
701
+
702
+ .subtitle-list {
703
+ background: var(--surface-light);
704
+ border-radius: var(--radius-sm);
705
+ overflow: hidden;
706
+ }
707
+
708
+ .list-header {
709
+ display: grid;
710
+ grid-template-columns: 60px 120px 1fr 100px;
711
+ gap: 1rem;
712
+ padding: 0.875rem 1rem;
713
+ background: var(--surface);
714
+ font-size: 0.75rem;
715
+ font-weight: 600;
716
+ text-transform: uppercase;
717
+ letter-spacing: 0.05em;
718
+ color: var(--text-secondary);
719
+ }
720
+
721
+ .subtitles-container {
722
+ max-height: 400px;
723
+ overflow-y: auto;
724
+ }
725
+
726
+ .subtitle-item {
727
+ display: grid;
728
+ grid-template-columns: 60px 120px 1fr 100px;
729
+ gap: 1rem;
730
+ padding: 0.875rem 1rem;
731
+ border-bottom: 1px solid var(--border);
732
+ font-size: 0.875rem;
733
+ transition: var(--transition);
734
+ cursor: pointer;
735
+ }
736
+
737
+ .subtitle-item:hover {
738
+ background: rgba(99, 102, 241, 0.05);
739
+ }
740
+
741
+ .subtitle-item.active {
742
+ background: rgba(99, 102, 241, 0.15);
743
+ border-left: 3px solid var(--primary);
744
+ }
745
+
746
+ .subtitle-item .index {
747
+ color: var(--text-secondary);
748
+ font-family: monospace;
749
+ }
750
+
751
+ .subtitle-item .time {
752
+ color: var(--secondary);
753
+ font-family: monospace;
754
+ font-size: 0.8125rem;
755
+ }
756
+
757
+ .subtitle-item .text {
758
+ color: var(--text-primary);
759
+ overflow: hidden;
760
+ text-overflow: ellipsis;
761
+ white-space: nowrap;
762
+ }
763
+
764
+ .subtitle-item .status {
765
+ display: flex;
766
+ align-items: center;
767
+ gap: 0.5rem;
768
+ font-size: 0.75rem;
769
+ }
770
+
771
+ .status-dot {
772
+ width: 8px;
773
+ height: 8px;
774
+ border-radius: 50%;
775
+ }
776
+
777
+ .status-dot.entered { background: var(--warning); }
778
+ .status-dot.active { background: var(--success); animation: pulse 1s infinite; }
779
+ .status-dot.exited { background: var(--text-secondary); }
780
+
781
+ @keyframes pulse {
782
+ 0%, 100% { opacity: 1; }
783
+ 50% { opacity: 0.5; }
784
+ }
785
+
786
+ /* JSON View */
787
+ .json-view {
788
+ background: var(--surface-light);
789
+ border-radius: var(--radius-sm);
790
+ padding: 1rem;
791
+ }
792
+
793
+ .json-view pre {
794
+ max-height: 400px;
795
+ overflow: auto;
796
+ font-size: 0.8125rem;
797
+ line-height: 1.6;
798
+ color: var(--text-secondary);
799
+ }
800
+
801
+ /* Export Section */
802
+ .export-buttons {
803
+ display: flex;
804
+ flex-wrap: wrap;
805
+ gap: 0.75rem;
806
+ }
807
+
808
+ .export-buttons button {
809
+ flex: 1;
810
+ min-width: 140px;
811
+ }
812
+
813
+ /* Loading Overlay */
814
+ .loading-overlay {
815
+ position: fixed;
816
+ inset: 0;
817
+ background: rgba(15, 23, 42, 0.95);
818
+ display: none;
819
+ align-items: center;
820
+ justify-content: center;
821
+ z-index: 1000;
822
+ }
823
+
824
+ .loading-overlay.active {
825
+ display: flex;
826
+ }
827
+
828
+ .loading-content {
829
+ text-align: center;
830
+ }
831
+
832
+ .loading-content .spinner {
833
+ width: 60px;
834
+ height: 60px;
835
+ margin: 0 auto 1.5rem;
836
+ border-width: 4px;
837
+ }
838
+
839
+ .loading-content p {
840
+ color: var(--text-secondary);
841
+ margin-bottom: 1.5rem;
842
+ }
843
+
844
+ .model-progress {
845
+ width: 300px;
846
+ height: 4px;
847
+ background: var(--surface-light);
848
+ border-radius: 2px;
849
+ overflow: hidden;
850
+ }
851
+
852
+ .model-progress-bar {
853
+ height: 100%;
854
+ width: 0%;
855
+ background: var(--primary);
856
+ transition: width 0.3s ease;
857
+ }
858
+
859
+ /* Error Toast */
860
+ .error-toast {
861
+ position: fixed;
862
+ bottom: 2rem;
863
+ right: 2rem;
864
+ background: var(--error);
865
+ color: white;
866
+ padding: 1rem 1.5rem;
867
+ border-radius: var(--radius-sm);
868
+ display: none;
869
+ align-items: center;
870
+ gap: 1rem;
871
+ box-shadow: var(--shadow-lg);
872
+ z-index: 1001;
873
+ animation: slideIn 0.3s ease;
874
+ }
875
+
876
+ .error-toast.active {
877
+ display: flex;
878
+ }
879
+
880
+ @keyframes slideIn {
881
+ from {
882
+ transform: translateX(100%);
883
+ opacity: 0;
884
+ }
885
+ to {
886
+ transform: translateX(0);
887
+ opacity: 1;
888
+ }
889
+ }
890
+
891
+ .error-toast button {
892
+ background: none;
893
+ border: none;
894
+ color: white;
895
+ font-size: 1.25rem;
896
+ cursor: pointer;
897
+ opacity: 0.8;
898
+ }
899
+
900
+ .error-toast button:hover {
901
+ opacity: 1;
902
+ }
903
+
904
+ /* Scrollbar */
905
+ ::-webkit-scrollbar {
906
+ width: 8px;
907
+ height: 8px;
908
+ }
909
+
910
+ ::-webkit-scrollbar-track {
911
+ background: var(--surface);
912
+ }
913
+
914
+ ::-webkit-scrollbar-thumb {
915
+ background: var(--border);
916
+ border-radius: 4px;
917
+ }
918
+
919
+ ::-webkit-scrollbar-thumb:hover {
920
+ background: var(--text-secondary);
921
+ }
922
+
923
+ /* Responsive */
924
+ @media (max-width: 768px) {
925
+ .main-content {
926
+ padding: 1rem;
927
+ }
928
+
929
+ .header-content {
930
+ flex-direction: column;
931
+ gap: 1rem;
932
+ text-align: center;
933
+ }
934
+
935
+ .subtitle-controls {
936
+ grid-template-columns: 1fr;
937
+ }
938
+
939
+ .time-controls {
940
+ grid-template-columns: 1fr;
941
+ }
942
+
943
+ .processing-stats {
944
+ grid-template-columns: 1fr;
945
+ }
946
+
947
+ .list-header, .subtitle-item {
948
+ grid-template-columns: 40px 80px 1fr 80px;
949
+ gap: 0.5rem;
950
+ font-size: 0.75rem;
951
+ }
952
+
953
+ .export-buttons {
954
+ flex-direction: column;
955
+ }
956
+
957
+ .export-buttons button {
958
+ width: 100%;
959
+ }
960
+ }