File size: 56,765 Bytes
4a311a2
 
 
 
 
 
 
 
 
5da9fba
 
 
 
 
 
 
 
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5da9fba
4a311a2
 
5da9fba
 
4a311a2
5da9fba
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
edf0f5b
4a311a2
 
 
 
 
5da9fba
 
 
 
 
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5da9fba
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5da9fba
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5da9fba
4a311a2
 
 
 
 
 
 
 
 
 
 
edf0f5b
5da9fba
 
 
 
 
 
 
 
edf0f5b
 
4a311a2
5da9fba
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
edf0f5b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4a311a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Call of Duty Manager</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @font-face {
            font-family: 'Military';
            src: url('https://fonts.cdnfonts.com/css/agency-fb') format('woff2');
        }
        .font-military {
            font-family: 'Military', sans-serif;
            letter-spacing: 1px;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .animate-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        .team-logo {
            transition: all 0.3s ease;
        }
        .team-logo:hover {
            transform: scale(1.1);
            filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
        }
        .player-card {
            transition: all 0.2s ease;
        }
        .player-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        }
        .match-animation {
            background: linear-gradient(90deg, rgba(255,0,0,0.1), rgba(255,255,255,0.5), rgba(255,0,0,0.1));
            background-size: 200% 100%;
            animation: shimmer 2s infinite linear;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }
        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        @keyframes fade-in {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fade-out {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(-20px); }
        }
        .animate-fade-in {
            animation: fade-in 0.3s ease-out forwards;
        }
        .animate-fade-out {
            animation: fade-out 0.3s ease-in forwards;
        }
    </style>
</head>
<body class="bg-gray-900 text-white font-sans">
    <!-- Header -->
    <header class="bg-black py-4 px-6 border-b border-gray-800 sticky top-0 z-50 bg-opacity-90 bg-[url('https://www.transparenttextures.com/patterns/black-paper.png')]">
        <div class="container mx-auto flex justify-between items-center">
            <div class="flex items-center space-x-4">
                <div class="bg-black w-10 h-10 rounded flex items-center justify-center border border-gray-600">
                    <i class="fas fa-skull text-yellow-500 text-xl"></i>
                </div>
                <h1 class="text-2xl font-bold bg-gradient-to-r from-yellow-500 to-gray-300 bg-clip-text text-transparent font-military tracking-wider">CALL OF DUTY TEAM COMMANDER</h1>
            </div>
            <div class="flex items-center space-x-6">
                <div class="hidden md:flex items-center space-x-2 bg-gray-800 px-4 py-2 rounded-lg">
                    <i class="fas fa-coins text-yellow-400"></i>
                    <span id="money" class="font-bold">$1,250,000</span>
                </div>
                <div class="hidden md:flex items-center space-x-2 bg-gray-800 px-4 py-2 rounded-lg">
                    <i class="fas fa-trophy text-yellow-400"></i>
                    <span id="reputation" class="font-bold">75</span>
                </div>
                <div class="relative group">
                    <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-10 h-10 rounded-full cursor-pointer border-2 border-red-600">
                    <div class="absolute right-0 mt-2 w-48 bg-gray-800 rounded-md shadow-lg py-1 z-50 hidden group-hover:block">
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700">Profile</a>
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700">Settings</a>
                        <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700">Logout</a>
                    </div>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-6">
        <!-- Team Overview -->
=======

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-6">
        <!-- Team Overview -->
        <section class="mb-8">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-xl font-bold">TEAM OVERVIEW</h2>
                <div class="flex space-x-2">
                    <button class="bg-gray-800 hover:bg-gray-700 px-4 py-2 rounded-lg flex items-center space-x-2" onclick="handleSignPlayer()">
                        <i class="fas fa-plus"></i>
                        <span>Sign Player</span>
                    </button>
                    <button class="bg-gray-800 hover:bg-gray-700 px-4 py-2 rounded-lg flex items-center space-x-2" onclick="handleSponsors()">
                        <i class="fas fa-bullhorn"></i>
                        <span>Sponsors</span>
                    </button>
                </div>
            </div>
            
            <div class="bg-gray-800 rounded-xl p-6">
                <div class="flex flex-col md:flex-row items-center md:items-start md:justify-between">
                    <div class="flex flex-col items-center mb-6 md:mb-0">
                        <div class="team-logo bg-gradient-to-br from-red-600 to-black w-32 h-32 rounded-full flex items-center justify-center border-4 border-gray-700 mb-4">
                            <span class="text-4xl font-bold bg-gradient-to-r from-red-600 to-yellow-500 bg-clip-text text-transparent">CDM</span>
                        </div>
                        <h3 class="text-2xl font-bold">Dominance Esports</h3>
                        <p class="text-gray-400">Rank: #12 | League: Challengers</p>
                    </div>
                    
                    <div class="grid grid-cols-2 md:grid-cols-4 gap-4 w-full md:w-auto">
                        <div class="bg-gray-700 p-4 rounded-lg text-center">
                            <div class="text-3xl font-bold text-red-500">4</div>
                            <div class="text-gray-400">Players</div>
                        </div>
                        <div class="bg-gray-700 p-4 rounded-lg text-center">
                            <div class="text-3xl font-bold text-blue-500">2</div>
                            <div class="text-gray-400">Staff</div>
                        </div>
                        <div class="bg-gray-700 p-4 rounded-lg text-center">
                            <div class="text-3xl font-bold text-green-500">3</div>
                            <div class="text-gray-400">Sponsors</div>
                        </div>
                        <div class="bg-gray-700 p-4 rounded-lg text-center">
                            <div class="text-3xl font-bold text-yellow-500">12-4</div>
                            <div class="text-gray-400">Record</div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Players Section -->
        <section class="mb-8">
            <h2 class="text-xl font-bold mb-4">PLAYERS</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
                <!-- Player 1 -->
                <div class="player-card bg-gray-800 rounded-sm overflow-hidden border-l-4 border-yellow-500 bg-opacity-90 bg-[url('https://www.transparenttextures.com/patterns/camo.png')]">
                    <div class="p-4">
                        <div class="flex justify-between items-start mb-3">
                            <div>
                                <h3 class="font-bold text-lg">Alex "Domin8r" Carter</h3>
                                <p class="text-gray-400 text-sm">Slayer | AR</p>
                            </div>
                            <div class="bg-red-600 text-white px-2 py-1 rounded text-xs font-bold">CAPTAIN</div>
                        </div>
                        <div class="flex items-center mb-3">
                            <div class="w-16 h-16 rounded-full overflow-hidden mr-3">
                                <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Player" class="w-full h-full object-cover">
                            </div>
                            <div class="flex-1">
                                <div class="flex justify-between text-sm mb-1">
                                    <span>K/D Ratio</span>
                                    <span class="font-bold">1.32</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full mb-1">
                                    <div class="bg-red-600 h-2 rounded-full" style="width: 75%"></div>
                                </div>
                                <div class="flex justify-between text-sm mb-1">
                                    <span>Consistency</span>
                                    <span class="font-bold">82%</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full">
                                    <div class="bg-yellow-500 h-2 rounded-full" style="width: 82%"></div>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-between text-sm">
                            <div>
                                <span class="text-gray-400">Contract:</span>
                                <span class="font-bold">2 years</span>
                            </div>
                            <div>
                                <span class="text-gray-400">Salary:</span>
                                <span class="font-bold">$12k/mo</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-700 px-4 py-2 flex justify-between">
                        <button class="text-blue-400 hover:text-blue-300 text-sm" onclick="handleTrainPlayer('Alex \"Domin8r\" Carter')">
                            <i class="fas fa-chart-line mr-1"></i> Train
                        </button>
                        <button class="text-green-400 hover:text-green-300 text-sm" onclick="handleTalkToPlayer('Alex \"Domin8r\" Carter')">
                            <i class="fas fa-comment mr-1"></i> Talk
                        </button>
                        <button class="text-yellow-400 hover:text-yellow-300 text-sm" onclick="handleContractExtension('Alex \"Domin8r\" Carter')">
                            <i class="fas fa-file-contract mr-1"></i> Extend
                        </button>
                    </div>
                </div>
                
                <!-- Player 2 -->
                <div class="player-card bg-gray-800 rounded-xl overflow-hidden border-l-4 border-blue-600">
                    <div class="p-4">
                        <div class="flex justify-between items-start mb-3">
                            <div>
                                <h3 class="font-bold text-lg">Jamie "Anch0r" Lin</h3>
                                <p class="text-gray-400 text-sm">Anchor | SMG</p>
                            </div>
                            <div class="bg-blue-600 text-white px-2 py-1 rounded text-xs font-bold">ICON</div>
                        </div>
                        <div class="flex items-center mb-3">
                            <div class="w-16 h-16 rounded-full overflow-hidden mr-3">
                                <img src="https://randomuser.me/api/portraits/women/33.jpg" alt="Player" class="w-full h-full object-cover">
                            </div>
                            <div class="flex-1">
                                <div class="flex justify-between text-sm mb-1">
                                    <span>K/D Ratio</span>
                                    <span class="font-bold">1.18</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full mb-1">
                                    <div class="bg-blue-600 h-2 rounded-full" style="width: 68%"></div>
                                </div>
                                <div class="flex justify-between text-sm mb-1">
                                    <span>Consistency</span>
                                    <span class="font-bold">79%</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full">
                                    <div class="bg-yellow-500 h-2 rounded-full" style="width: 79%"></div>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-between text-sm">
                            <div>
                                <span class="text-gray-400">Contract:</span>
                                <span class="font-bold">1.5 years</span>
                            </div>
                            <div>
                                <span class="text-gray-400">Salary:</span>
                                <span class="font-bold">$10k/mo</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-700 px-4 py-2 flex justify-between">
                        <button class="text-blue-400 hover:text-blue-300 text-sm">
                            <i class="fas fa-chart-line mr-1"></i> Train
                        </button>
                        <button class="text-green-400 hover:text-green-300 text-sm">
                            <i class="fas fa-comment mr-1"></i> Talk
                        </button>
                        <button class="text-yellow-400 hover:text-yellow-300 text-sm">
                            <i class="fas fa-file-contract mr-1"></i> Extend
                        </button>
                    </div>
                </div>
                
                <!-- Player 3 -->
                <div class="player-card bg-gray-800 rounded-xl overflow-hidden border-l-4 border-green-600">
                    <div class="p-4">
                        <div class="flex justify-between items-start mb-3">
                            <div>
                                <h3 class="font-bold text-lg">Marcus "Clutch" Donovan</h3>
                                <p class="text-gray-400 text-sm">Support | Flex</p>
                            </div>
                            <div class="bg-green-600 text-white px-2 py-1 rounded text-xs font-bold">ROOKIE</div>
                        </div>
                        <div class="flex items-center mb-3">
                            <div class="w-16 h-16 rounded-full overflow-hidden mr-3">
                                <img src="https://randomuser.me/api/portraits/men/22.jpg" alt="Player" class="w-full h-full object-cover">
                            </div>
                            <div class="flex-1">
                                <div class="flex justify-between text-sm mb-1">
                                    <span>K/D Ratio</span>
                                    <span class="font-bold">1.05</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full mb-1">
                                    <div class="bg-green-600 h-2 rounded-full" style="width: 60%"></div>
                                </div>
                                <div class="flex justify-between text-sm mb-1">
                                    <span>Consistency</span>
                                    <span class="font-bold">71%</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full">
                                    <div class="bg-yellow-500 h-2 rounded-full" style="width: 71%"></div>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-between text-sm">
                            <div>
                                <span class="text-gray-400">Contract:</span>
                                <span class="font-bold">1 year</span>
                            </div>
                            <div>
                                <span class="text-gray-400">Salary:</span>
                                <span class="font-bold">$8k/mo</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-700 px-4 py-2 flex justify-between">
                        <button class="text-blue-400 hover:text-blue-300 text-sm">
                            <i class="fas fa-chart-line mr-1"></i> Train
                        </button>
                        <button class="text-green-400 hover:text-green-300 text-sm">
                            <i class="fas fa-comment mr-1"></i> Talk
                        </button>
                        <button class="text-yellow-400 hover:text-yellow-300 text-sm">
                            <i class="fas fa-file-contract mr-1"></i> Extend
                        </button>
                    </div>
                </div>
                
                <!-- Player 4 -->
                <div class="player-card bg-gray-800 rounded-xl overflow-hidden border-l-4 border-purple-600">
                    <div class="p-4">
                        <div class="flex justify-between items-start mb-3">
                            <div>
                                <h3 class="font-bold text-lg">Tyler "Obj3ct" Wright</h3>
                                <p class="text-gray-400 text-sm">Objective | SMG</p>
                            </div>
                            <div class="bg-purple-600 text-white px-2 py-1 rounded text-xs font-bold">VETERAN</div>
                        </div>
                        <div class="flex items-center mb-3">
                            <div class="w-16 h-16 rounded-full overflow-hidden mr-3">
                                <img src="https://randomuser.me/api/portraits/men/45.jpg" alt="Player" class="w-full h-full object-cover">
                            </div>
                            <div class="flex-1">
                                <div class="flex justify-between text-sm mb-1">
                                    <span>K/D Ratio</span>
                                    <span class="font-bold">0.92</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full mb-1">
                                    <div class="bg-purple-600 h-2 rounded-full" style="width: 55%"></div>
                                </div>
                                <div class="flex justify-between text-sm mb-1">
                                    <span>Consistency</span>
                                    <span class="font-bold">88%</span>
                                </div>
                                <div class="w-full bg-gray-700 h-2 rounded-full">
                                    <div class="bg-yellow-500 h-2 rounded-full" style="width: 88%"></div>
                                </div>
                            </div>
                        </div>
                        <div class="flex justify-between text-sm">
                            <div>
                                <span class="text-gray-400">Contract:</span>
                                <span class="font-bold">6 months</span>
                            </div>
                            <div>
                                <span class="text-gray-400">Salary:</span>
                                <span class="font-bold">$15k/mo</span>
                            </div>
                        </div>
                    </div>
                    <div class="bg-gray-700 px-4 py-2 flex justify-between">
                        <button class="text-blue-400 hover:text-blue-300 text-sm">
                            <i class="fas fa-chart-line mr-1"></i> Train
                        </button>
                        <button class="text-green-400 hover:text-green-300 text-sm">
                            <i class="fas fa-comment mr-1"></i> Talk
                        </button>
                        <button class="text-yellow-400 hover:text-yellow-300 text-sm">
                            <i class="fas fa-file-contract mr-1"></i> Extend
                        </button>
                    </div>
                </div>
            </div>
        </section>

        <!-- Upcoming Match -->
        <section class="mb-8">
            <h2 class="text-xl font-bold mb-4">UPCOMING MATCH</h2>
            
            <div class="bg-gray-800 rounded-xl p-6">
                <div class="flex flex-col md:flex-row justify-between items-center mb-6">
                    <div class="flex items-center mb-4 md:mb-0">
                        <div class="w-16 h-16 rounded-full bg-red-600 flex items-center justify-center mr-4">
                            <span class="text-xl font-bold">CDM</span>
                        </div>
                        <div>
                            <h3 class="text-xl font-bold">Dominance Esports</h3>
                            <p class="text-gray-400">12-4 | #12 Rank</p>
                        </div>
                    </div>
                    
                    <div class="bg-gray-700 px-6 py-2 rounded-full mb-4 md:mb-0">
                        <div class="text-center">
                            <div class="text-sm text-gray-400">CDL Challengers</div>
                            <div class="font-bold">Best of 5 Series</div>
                            <div class="text-sm">Tomorrow - 7:00 PM EST</div>
                        </div>
                    </div>
                    
                    <div class="flex items-center">
                        <div>
                            <h3 class="text-xl font-bold text-right">Titan Gaming</h3>
                            <p class="text-gray-400 text-right">14-2 | #8 Rank</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-blue-600 flex items-center justify-center ml-4">
                            <span class="text-xl font-bold">TGN</span>
                        </div>
                    </div>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h4 class="font-bold mb-2 flex items-center">
                            <i class="fas fa-map-marked-alt mr-2 text-yellow-500"></i> <span class="font-military">MAP STRATEGY</span>
                        </h4>
                        <select class="w-full bg-gray-800 border border-gray-600 rounded px-3 py-2 mb-3">
                            <option>Select Map</option>
                            <option>Hardpoint - Raid</option>
                            <option>Search & Destroy - Standoff</option>
                            <option>Control - Gavutu</option>
                        </select>
                        <textarea class="w-full bg-gray-800 border border-gray-600 rounded px-3 py-2 h-24" placeholder="Enter your strategy..."></textarea>
                    </div>
                    
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h4 class="font-bold mb-2 flex items-center">
                            <i class="fas fa-users mr-2 text-blue-500"></i> Lineup Decision
                        </h4>
                        <div class="mb-3">
                            <label class="block text-gray-400 text-sm mb-1">Starting Roster</label>
                            <select class="w-full bg-gray-800 border border-gray-600 rounded px-3 py-2 mb-2">
                                <option>Current Best 4 (65% Win Rate)</option>
                                <option>Experimental Lineup (42% Win Rate)</option>
                                <option>Counter Pick (58% vs Titan)</option>
                            </select>
                            <div class="text-xs text-gray-400">Predicted Impact: <span class="text-yellow-500">+3% Win Chance</span></div>
                        </div>
                        <div>
                            <label class="block text-gray-400 text-sm mb-1">Substitution Plan</label>
                            <select class="w-full bg-gray-800 border border-gray-600 rounded px-3 py-2 mb-2">
                                <option>No Subs (Current: 52% Map 3 Win)</option>
                                <option>Map 3 Sub (Boost to 58%)</option>
                                <option>If Losing 0-2 (Moral Boost +5%)</option>
                            </select>
                            <div class="text-xs text-gray-400">Predicted Impact: <span class="text-blue-400">+2% Series Win</span></div>
                        </div>
                    </div>
                    
                    <div class="bg-gray-700 p-4 rounded-lg">
                        <h4 class="font-bold mb-2 flex items-center">
                            <i class="fas fa-trophy mr-2 text-yellow-500"></i> Match Prediction
                        </h4>
                        <div class="flex justify-between items-center mb-3">
                            <span>Dominance Win</span>
                            <span class="font-bold">42%</span>
                        </div>
                        <div class="w-full bg-gray-800 h-3 rounded-full mb-4">
                            <div class="bg-red-600 h-3 rounded-full" style="width: 42%"></div>
                        </div>
                        <div class="flex justify-between items-center mb-3">
                            <span>Titan Win</span>
                            <span class="font-bold">58%</span>
                        </div>
                        <div class="w-full bg-gray-800 h-3 rounded-full mb-4">
                            <div class="bg-blue-600 h-3 rounded-full" style="width: 58%"></div>
                        </div>
                        <button class="w-full bg-black hover:bg-gray-900 py-2 rounded-sm font-bold flex items-center justify-center border border-yellow-500 text-yellow-500 font-military tracking-wider">
                            <i class="fas fa-play mr-2"></i> Simulate Match
                        </button>
                    </div>
                </div>
            </div>
        </section>

        <!-- Recent Results -->
        <section class="mb-8">
            <h2 class="text-xl font-bold mb-4">RECENT RESULTS</h2>
            
            <div class="relative">
                <div class="flex items-center">
                    <button class="absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-gray-800 hover:bg-gray-700 w-8 h-8 rounded-full flex items-center justify-center text-xl">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-gray-800 hover:bg-gray-700 w-8 h-8 rounded-full flex items-center justify-center text-xl">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
                <div class="overflow-x-auto scrollbar-hide scroll-smooth" id="resultsContainer">
                    <div class="flex space-x-4" style="min-width: max-content;">
                    <!-- Match 1 -->
                    <div class="bg-gray-800 rounded-sm p-4 min-w-64 border border-gray-700 bg-opacity-90 bg-[url('https://www.transparenttextures.com/patterns/black-paper.png')]">
                        <div class="flex justify-between items-center mb-3">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-red-600 flex items-center justify-center mr-2">
                                    <span class="text-xs font-bold">CDM</span>
                                </div>
                                <span class="font-bold">Dominance</span>
                            </div>
                            <div class="bg-green-600 text-white px-2 py-1 rounded text-xs font-bold">W 3-1</div>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-green-500">250-210</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>S&D</span>
                            <span class="font-bold text-red-500">4-6</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Control</span>
                            <span class="font-bold text-green-500">3-1</span>
                        </div>
                        <div class="flex justify-between items-center text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-green-500">250-195</span>
                        </div>
                    </div>
                    
                    <!-- Match 2 -->
                    <div class="bg-gray-800 rounded-xl p-4 min-w-64">
                        <div class="flex justify-between items-center mb-3">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-red-600 flex items-center justify-center mr-2">
                                    <span class="text-xs font-bold">CDM</span>
                                </div>
                                <span class="font-bold">Dominance</span>
                            </div>
                            <div class="bg-red-600 text-white px-2 py-1 rounded text-xs font-bold">L 2-3</div>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-green-500">250-230</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>S&D</span>
                            <span class="font-bold text-red-500">3-6</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Control</span>
                            <span class="font-bold text-green-500">3-2</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-red-500">230-250</span>
                        </div>
                        <div class="flex justify-between items-center text-sm">
                            <span>S&D</span>
                            <span class="font-bold text-red-500">5-6</span>
                        </div>
                    </div>
                    
                    <!-- Match 3 -->
                    <div class="bg-gray-800 rounded-xl p-4 min-w-64">
                        <div class="flex justify-between items-center mb-3">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-red-600 flex items-center justify-center mr-2">
                                    <span class="text-xs font-bold">CDM</span>
                                </div>
                                <span class="font-bold">Dominance</span>
                            </div>
                            <div class="bg-green-600 text-white px-2 py-1 rounded text-xs font-bold">W 3-0</div>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-green-500">250-180</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>S&D</span>
                            <span class="font-bold text-green-500">6-4</span>
                        </div>
                        <div class="flex justify-between items-center text-sm">
                            <span>Control</span>
                            <span class="font-bold text-green-500">3-1</span>
                        </div>
                    </div>
                    
                    <!-- Match 4 -->
                    <div class="bg-gray-800 rounded-xl p-4 min-w-64">
                        <div class="flex justify-between items-center mb-3">
                            <div class="flex items-center">
                                <div class="w-8 h-8 rounded-full bg-red-600 flex items-center justify-center mr-2">
                                    <span class="text-xs font-bold">CDM</span>
                                </div>
                                <span class="font-bold">Dominance</span>
                            </div>
                            <div class="bg-green-600 text-white px-2 py-1 rounded text-xs font-bold">W 3-2</div>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-red-500">240-250</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>S&D</span>
                            <span class="font-bold text-green-500">6-5</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Control</span>
                            <span class="font-bold text-red-500">2-3</span>
                        </div>
                        <div class="flex justify-between items-center mb-1 text-sm">
                            <span>Hardpoint</span>
                            <span class="font-bold text-green-500">250-210</span>
                        </div>
                        <div class="flex justify-between items-center text-sm">
                            <span>S&D</span>
                            <span class="font-bold text-green-500">6-3</span>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Team Facilities -->
        <section>
            <h2 class="text-xl font-bold mb-4">TEAM FACILITIES</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                <div class="bg-gray-800 rounded-xl p-6">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="font-bold text-lg flex items-center">
                            <i class="fas fa-gamepad mr-2 text-purple-500"></i> Gaming House
                        </h3>
                        <div class="bg-gray-700 px-2 py-1 rounded text-xs">Level 2</div>
                    </div>
                    <div class="mb-4">
                        <div class="flex justify-between text-sm mb-1">
                            <span>Quality</span>
                            <span>65/100</span>
                        </div>
                        <div class="w-full bg-gray-700 h-2 rounded-full">
                            <div class="bg-purple-600 h-2 rounded-full" style="width: 65%"></div>
                        </div>
                    </div>
                    <p class="text-gray-400 text-sm mb-4">Improves player morale and recovery. Higher levels attract better talent.</p>
                    <button class="w-full bg-gray-700 hover:bg-gray-600 py-2 rounded-lg text-sm flex items-center justify-center" onclick="handleFacilityUpgrade('Gaming House', 75000)">
                        <i class="fas fa-arrow-up mr-2"></i> Upgrade ($75,000)
                    </button>
                </div>
                
                <div class="bg-gray-800 rounded-xl p-6">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="font-bold text-lg flex items-center">
                            <i class="fas fa-desktop mr-2 text-blue-500"></i> Scrim Setup
                        </h3>
                        <div class="bg-gray-700 px-2 py-1 rounded text-xs">Level 1</div>
                    </div>
                    <div class="mb-4">
                        <div class="flex justify-between text-sm mb-1">
                            <span>Quality</span>
                            <span>40/100</span>
                        </div>
                        <div class="w-full bg-gray-700 h-2 rounded-full">
                            <div class="bg-blue-600 h-2 rounded-full" style="width: 40%"></div>
                        </div>
                    </div>
                    <p class="text-gray-400 text-sm mb-4">Better equipment improves practice efficiency and strategy development.</p>
                    <button class="w-full bg-gray-700 hover:bg-gray-600 py-2 rounded-lg text-sm flex items-center justify-center">
                        <i class="fas fa-arrow-up mr-2"></i> Upgrade ($50,000)
                    </button>
                </div>
                
                <div class="bg-gray-800 rounded-xl p-6">
                    <div class="flex justify-between items-start mb-4">
                        <h3 class="font-bold text-lg flex items-center">
                            <i class="fas fa-users mr-2 text-green-500"></i> Coaching Staff
                        </h3>
                        <div class="bg-gray-700 px-2 py-1 rounded text-xs">Level 1</div>
                    </div>
                    <div class="mb-4">
                        <div class="flex justify-between text-sm mb-1">
                            <span>Quality</span>
                            <span>35/100</span>
                        </div>
                        <div class="w-full bg-gray-700 h-2 rounded-full">
                            <div class="bg-green-600 h-2 rounded-full" style="width: 35%"></div>
                        </div>
                    </div>
                    <p class="text-gray-400 text-sm mb-4">Better coaches improve player development and in-game adjustments.</p>
                    <button class="w-full bg-gray-700 hover:bg-gray-600 py-2 rounded-lg text-sm flex items-center justify-center">
                        <i class="fas fa-arrow-up mr-2"></i> Upgrade ($60,000)
                    </button>
                </div>
            </div>
        </section>

        <!-- Statistics Dashboard -->
        <section class="mb-8">
            <h2 class="text-xl font-bold mb-4">TEAM ANALYTICS</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                <div class="bg-gray-800 rounded-xl p-6">
                    <h3 class="font-bold text-lg mb-4 flex items-center">
                        <i class="fas fa-chart-line mr-2 text-blue-500"></i> Performance Metrics
                    </h3>
                    <div class="grid grid-cols-2 gap-4">
                        <div class="bg-gray-700 p-3 rounded-lg">
                            <div class="text-sm text-gray-400 mb-1">Avg. K/D Ratio</div>
                            <div class="text-2xl font-bold">1.12</div>
                        </div>
                        <div class="bg-gray-700 p-3 rounded-lg">
                            <div class="text-sm text-gray-400 mb-1">Objective Time</div>
                            <div class="text-2xl font-bold">72%</div>
                        </div>
                        <div class="bg-gray-700 p-3 rounded-lg">
                            <div class="text-sm text-gray-400 mb-1">First Blood %</div>
                            <div class="text-2xl font-bold">58%</div>
                        </div>
                        <div class="bg-gray-700 p-3 rounded-lg">
                            <div class="text-sm text-gray-400 mb-1">Clutch Rate</div>
                            <div class="text-2xl font-bold">34%</div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-gray-800 rounded-xl p-6">
                    <h3 class="font-bold text-lg mb-4 flex items-center">
                        <i class="fas fa-map-marked-alt mr-2 text-green-500"></i> Map Performance
                    </h3>
                    <div class="space-y-3">
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span>Hardpoint</span>
                                <span class="font-bold">65% Win</span>
                            </div>
                            <div class="w-full bg-gray-700 h-2 rounded-full">
                                <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span>Search & Destroy</span>
                                <span class="font-bold">52% Win</span>
                            </div>
                            <div class="w-full bg-gray-700 h-2 rounded-full">
                                <div class="bg-green-600 h-2 rounded-full" style="width: 52%"></div>
                            </div>
                        </div>
                        <div>
                            <div class="flex justify-between text-sm mb-1">
                                <span>Control</span>
                                <span class="font-bold">48% Win</span>
                            </div>
                            <div class="w-full bg-gray-700 h-2 rounded-full">
                                <div class="bg-yellow-500 h-2 rounded-full" style="width: 48%"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- Bottom Navigation (Mobile) -->
    <nav class="md:hidden fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-800 z-50">
        <div class="flex justify-around">
            <a href="#" class="flex flex-col items-center py-3 px-4 text-red-500">
                <i class="fas fa-home text-xl"></i>
                <span class="text-xs mt-1">Home</span>
            </a>
            <a href="#" class="flex flex-col items-center py-3 px-4 text-gray-400 hover:text-white">
                <i class="fas fa-users text-xl"></i>
                <span class="text-xs mt-1">Team</span>
            </a>
            <a href="#" class="flex flex-col items-center py-3 px-4 text-gray-400 hover:text-white">
                <i class="fas fa-trophy text-xl"></i>
                <span class="text-xs mt-1">Matches</span>
            </a>
            <a href="#" class="flex flex-col items-center py-3 px-4 text-gray-400 hover:text-white">
                <i class="fas fa-cog text-xl"></i>
                <span class="text-xs mt-1">Settings</span>
            </a>
        </div>
    </nav>

    <!-- Match Simulation Modal -->
    <div id="simulationModal" class="fixed inset-0 bg-black bg-opacity-90 flex items-center justify-center z-50 hidden">
        <div class="bg-gray-800 rounded-xl w-full max-w-2xl mx-4 overflow-hidden">
            <div class="bg-gray-900 px-6 py-4 border-b border-gray-700 flex justify-between items-center">
                <h3 class="text-xl font-bold">MATCH SIMULATION</h3>
                <button id="closeSimulation" class="text-gray-400 hover:text-white">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            
            <div class="p-6">
                <div class="flex justify-between items-center mb-6">
                    <div class="text-center">
                        <div class="w-16 h-16 rounded-full bg-red-600 flex items-center justify-center mx-auto mb-2">
                            <span class="text-xl font-bold">CDM</span>
                        </div>
                        <div class="font-bold">Dominance</div>
                    </div>
                    
                    <div class="text-center">
                        <div class="text-4xl font-bold match-animation px-6 py-2 rounded-lg">VS</div>
                    </div>
                    
                    <div class="text-center">
                        <div class="w-16 h-16 rounded-full bg-blue-600 flex items-center justify-center mx-auto mb-2">
                            <span class="text-xl font-bold">TGN</span>
                        </div>
                        <div class="font-bold">Titan</div>
                    </div>
                </div>
                
                <div class="bg-gray-700 rounded-lg p-4 mb-6">
                    <div class="flex justify-between items-center mb-2">
                        <span class="font-bold">Map 1: Hardpoint - Raid</span>
                        <span class="text-sm text-gray-400">In Progress</span>
                    </div>
                    <div class="w-full bg-gray-800 h-2 rounded-full mb-2">
                        <div class="bg-red-600 h-2 rounded-full animate-pulse" style="width: 50%"></div>
                    </div>
                    <div class="flex justify-between text-sm mb-3">
                        <span>Dominance</span>
                        <span>Titan</span>
                    </div>
                    <div class="grid grid-cols-3 gap-2 text-xs text-center mb-2">
                        <div class="bg-gray-800 p-1 rounded">Kills: 12</div>
                        <div class="bg-gray-800 p-1 rounded">Deaths: 9</div>
                        <div class="bg-gray-800 p-1 rounded">Score: 125</div>
                    </div>
                    <div class="grid grid-cols-3 gap-2 text-xs text-center">
                        <div class="bg-gray-800 p-1 rounded">Kills: 15</div>
                        <div class="bg-gray-800 p-1 rounded">Deaths: 8</div>
                        <div class="bg-gray-800 p-1 rounded">Score: 140</div>
                    </div>
                </div>
                
                <div class="grid grid-cols-2 gap-4">
                    <button class="bg-gray-700 hover:bg-gray-600 py-3 rounded-lg flex flex-col items-center justify-center">
                        <i class="fas fa-pause text-yellow-500 text-xl mb-1"></i>
                        <span>Timeout</span>
                    </button>
                    <button class="bg-gray-700 hover:bg-gray-600 py-3 rounded-lg flex flex-col items-center justify-center">
                        <i class="fas fa-user-edit text-blue-500 text-xl mb-1"></i>
                        <span>Adjust</span>
                    </button>
                    <button class="bg-gray-700 hover:bg-gray-600 py-3 rounded-lg flex flex-col items-center justify-center">
                        <i class="fas fa-exchange-alt text-green-500 text-xl mb-1"></i>
                        <span>Substitute</span>
                    </button>
                    <button class="bg-gray-700 hover:bg-gray-600 py-3 rounded-lg flex flex-col items-center justify-center">
                        <i class="fas fa-bullhorn text-purple-500 text-xl mb-1"></i>
                        <span>Motivate</span>
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Fonctions pour les actions des boutons
        function showNotification(message, type = 'info') {
            const colors = {
                info: 'bg-blue-600',
                success: 'bg-green-600',
                warning: 'bg-yellow-600',
                error: 'bg-red-600'
            };
            const notification = document.createElement('div');
            notification.className = `fixed top-4 right-4 ${colors[type]} text-white px-4 py-2 rounded-lg shadow-lg z-50 animate-fade-in`;
            notification.textContent = message;
            document.body.appendChild(notification);
            setTimeout(() => {
                notification.classList.add('animate-fade-out');
                setTimeout(() => notification.remove(), 500);
            }, 3000);
        }

        function handleTrainPlayer(playerName) {
            showNotification(`Training ${playerName}...`, 'info');
            // Simulation d'amélioration aléatoire
            setTimeout(() => {
                const improvement = (Math.random() * 0.2 + 0.1).toFixed(2);
                showNotification(`${playerName} improved by +${improvement} K/D!`, 'success');
            }, 1500);
        }

        function handleTalkToPlayer(playerName) {
            showNotification(`Talking to ${playerName}...`, 'info');
            // Simulation d'effet sur le moral
            setTimeout(() => {
                const moraleChange = Math.random() > 0.3 ? 'increased' : 'decreased';
                showNotification(`${playerName}'s morale ${moraleChange}`, moraleChange === 'increased' ? 'success' : 'warning');
            }, 1500);
        }

        function handleContractExtension(playerName) {
            showNotification(`Negotiating with ${playerName}...`, 'info');
            // Simulation de négociation
            setTimeout(() => {
                const success = Math.random() > 0.2;
                if (success) {
                    showNotification(`${playerName} accepted contract extension!`, 'success');
                } else {
                    showNotification(`${playerName} wants better terms`, 'warning');
                }
            }, 2000);
        }

        function handleSignPlayer() {
            showNotification('Searching for available players...', 'info');
            setTimeout(() => {
                showNotification('Player transfer window opens next week', 'warning');
            }, 1500);
        }

        function handleSponsors() {
            showNotification('Contacting potential sponsors...', 'info');
            setTimeout(() => {
                showNotification('3 sponsorship offers received', 'success');
            }, 1500);
        }

        function handleFacilityUpgrade(facilityName, cost) {
            if (confirm(`Upgrade ${facilityName} for ${cost.toLocaleString()}?`)) {
                showNotification(`Upgrading ${facilityName}...`, 'info');
                setTimeout(() => {
                    showNotification(`${facilityName} upgraded successfully!`, 'success');
                }, 2000);
            }
        }

        // Toggle simulation modal
        document.querySelectorAll('button').forEach(button => {
            if (button.textContent.includes('Simulate Match')) {
                button.addEventListener('click', () => {
                    document.getElementById('simulationModal').classList.remove('hidden');
                });
            }
        });
        
        document.getElementById('closeSimulation').addEventListener('click', () => {
            document.getElementById('simulationModal').classList.add('hidden');
        });
        
        // Simulate changing money and reputation values
        setInterval(() => {
            const moneyElement = document.getElementById('money');
            const reputationElement = document.getElementById('reputation');
            
            // Random small fluctuations
            const moneyChange = Math.floor(Math.random() * 5000) - 2500;
            const repChange = Math.floor(Math.random() * 3) - 1;
            
            let currentMoney = parseInt(moneyElement.textContent.replace(/\D/g, ''));
            let currentRep = parseInt(reputationElement.textContent);
            
            // Ensure values stay within reasonable bounds
            currentMoney = Math.max(1000000, currentMoney + moneyChange);
            currentRep = Math.min(100, Math.max(50, currentRep + repChange));
            
            moneyElement.textContent = '$' + currentMoney.toLocaleString();
            reputationElement.textContent = currentRep;
        }, 5000);
        
        // Recent results navigation
        const resultsContainer = document.getElementById('resultsContainer');
        const scrollAmount = 300; // Adjust this value as needed
        
        document.querySelectorAll('[class*="fa-chevron"]').forEach(button => {
            button.addEventListener('click', () => {
                if (button.classList.contains('fa-chevron-left')) {
                    resultsContainer.scrollBy({ left: -scrollAmount, behavior: 'smooth' });
                } else {
                    resultsContainer.scrollBy({ left: scrollAmount, behavior: 'smooth' });
                }
            });
        });

        // Touch support for mobile
        let touchStartX = 0;
        let touchEndX = 0;
        
        resultsContainer.addEventListener('touchstart', e => {
            touchStartX = e.changedTouches[0].screenX;
        }, {passive: true});
        
        resultsContainer.addEventListener('touchend', e => {
            touchEndX = e.changedTouches[0].screenX;
            handleSwipe();
        }, {passive: true});
        
        function handleSwipe() {
            if (touchEndX < touchStartX) {
                resultsContainer.scrollBy({ left: scrollAmount, behavior: 'smooth' });
            }
            if (touchEndX > touchStartX) {
                resultsContainer.scrollBy({ left: -scrollAmount, behavior: 'smooth' });
            }
        }

        // Animate match simulation progress bars
        const progressBars = document.querySelectorAll('.w-full.bg-gray-700.h-2.rounded-full div');
        progressBars.forEach(bar => {
            setInterval(() => {
                const currentWidth = parseInt(bar.style.width);
                const change = Math.floor(Math.random() * 10) - 3; // Random small change
                const newWidth = Math.min(100, Math.max(0, currentWidth + change));
                bar.style.width = newWidth + '%';
                
                // Change color based on performance
                if (newWidth > 70) {
                    bar.classList.remove('bg-red-600', 'bg-yellow-500');
                    bar.classList.add('bg-green-500');
                } else if (newWidth > 40) {
                    bar.classList.remove('bg-red-600', 'bg-green-500');
                    bar.classList.add('bg-yellow-500');
                } else {
                    bar.classList.remove('bg-green-500', 'bg-yellow-500');
                    bar.classList.add('bg-red-600');
                }
            }, 1000);
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Joykoeur75/cod-manager-test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>