-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2646 lines (2436 loc) · 192 KB
/
Copy pathindex.html
File metadata and controls
2646 lines (2436 loc) · 192 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>STFFL — Adam & Matt 2026</title>
<style>
:root {
--bg: #0f1117;
--surface: #1a1d27;
--surface2: #22263a;
--border: #2e3350;
--accent: #4f8ef7;
--accent2: #7c5cfc;
--green: #22c55e;
--yellow: #f59e0b;
--red: #ef4444;
--orange: #fb923c;
--text: #e8eaf6;
--muted: #8892b0;
--gold: #f7c948;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px; min-height: 100vh; }
/* ═══════════════════════════════════
GLOBAL HEADER
═══════════════════════════════════ */
.app-header {
background: linear-gradient(135deg, #1a1d27 0%, #0f1320 100%);
border-bottom: 1px solid var(--border);
padding: 16px 28px 0;
}
.app-header-top {
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
padding-bottom: 14px;
}
.app-title { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.app-title span { color: var(--accent); }
.app-subtitle { color: var(--muted); font-size: 12px; margin-top: 3px; }
.header-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hbadge { font-size: 11px; font-weight: 600; padding: 3px 11px; border-radius: 20px; letter-spacing: 0.4px; }
.hb-blue { background: rgba(79,142,247,0.15); color: var(--accent); border: 1px solid rgba(79,142,247,0.3); }
.hb-green { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.hb-red { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.hb-gold { background: rgba(247,201,72,0.15); color: var(--gold); border: 1px solid rgba(247,201,72,0.3); }
/* ═══════════════════════════════════
TAB NAV
═══════════════════════════════════ */
.tab-nav { display: flex; gap: 2px; }
.tab-btn {
padding: 10px 20px; background: transparent; border: none; border-bottom: 3px solid transparent;
color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn .tab-icon { margin-right: 6px; }
.tab-btn .tab-badge {
display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-left: 6px;
background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3);
}
/* ═══════════════════════════════════
TAB PANELS
═══════════════════════════════════ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* ═══════════════════════════════════
SHARED COMPONENTS
═══════════════════════════════════ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-header { padding: 14px 18px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pill { font-size: 11px; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.pill-blue { background: rgba(79,142,247,0.15); color: var(--accent); border: 1px solid rgba(79,142,247,0.3); }
.pill-green { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.pill-yellow { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }
.pill-red { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.pos-badge { display: inline-block; width: 32px; text-align: center; padding: 2px 0; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.pos-QB { background: rgba(79,142,247,0.2); color: #6fa8f7; }
.pos-RB { background: rgba(34,197,94,0.2); color: #5dd680; }
.pos-WR { background: rgba(245,158,11,0.2); color: #f7c948; }
.pos-TE { background: rgba(239,68,68,0.2); color: #f87171; }
.pos-K { background: rgba(148,163,184,0.2); color: #94a3b8; }
.pos-DST { background: rgba(124,92,252,0.2); color: #a78bfa; }
/* ═══════════════════════════════════
TAB 1 — KEEPER CALCULATOR
═══════════════════════════════════ */
.kc-main { display: grid; grid-template-columns: 1fr 380px; gap: 20px; padding: 20px 28px; max-width: 1400px; }
.kc-left { display: flex; flex-direction: column; gap: 16px; }
.kc-right { display: flex; flex-direction: column; gap: 16px; }
/* Cap bar */
.cap-section { padding: 18px; }
.cap-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cap-label span { font-size: 12px; color: var(--muted); }
.cap-label strong { font-size: 15px; font-weight: 700; }
.cap-bar-bg { height: 10px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.cap-bar-fill { height: 100%; border-radius: 6px; transition: width 0.4s ease, background 0.3s; }
.cap-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.cap-stat { background: var(--surface2); border-radius: 8px; padding: 10px 12px; text-align: center; }
.cap-stat .val { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.cap-stat .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.val-green { color: var(--green); }
.val-blue { color: var(--accent); }
.val-gold { color: var(--gold); }
.col-gold { color: var(--gold); }
/* Roster table */
.roster-table { width: 100%; border-collapse: collapse; }
.roster-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); padding: 8px 14px; text-align: left; background: rgba(255,255,255,0.02); }
.roster-table td { padding: 9px 14px; border-top: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
.roster-table tr:hover td { background: rgba(255,255,255,0.03); }
.player-name { font-weight: 600; color: var(--text); }
.nfl-team { color: var(--muted); font-size: 11px; }
.salary-val { font-weight: 700; }
.keeper-cost { font-weight: 700; }
.row-keep td:first-child { border-left: 3px solid var(--green); }
.row-cut td:first-child { border-left: 3px solid rgba(239,68,68,0.3); }
.row-monitor td:first-child { border-left: 3px solid var(--yellow); }
.row-keep { background: rgba(34,197,94,0.03); }
.row-cut { opacity: 0.55; }
.yr1 { color: var(--green); font-size: 11px; font-weight: 600; }
.yr2 { color: var(--yellow); font-size: 11px; font-weight: 600; }
.yr3 { color: var(--red); font-size: 11px; font-weight: 600; }
/* Status buttons */
.status-btn { padding: 4px 12px; border-radius: 20px; border: none; cursor: pointer; font-size: 11px; font-weight: 600; transition: all 0.15s; }
.status-keep { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.status-keep:hover { background: rgba(34,197,94,0.3); }
.status-cut { background: rgba(239,68,68,0.1); color: #ef4444aa; border: 1px solid rgba(239,68,68,0.15); }
.status-cut:hover { background: rgba(239,68,68,0.2); color: var(--red); }
.status-monitor { background: rgba(245,158,11,0.1); color: #f59e0baa; border: 1px solid rgba(245,158,11,0.15); }
.status-monitor:hover { background: rgba(245,158,11,0.25); color: var(--yellow); }
/* Keeper slots */
.keeper-selector { padding: 16px 18px; }
.keeper-slots { display: flex; gap: 10px; margin-bottom: 16px; }
.keeper-slot { flex: 1; border: 2px dashed var(--border); border-radius: 10px; padding: 12px; min-height: 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: all 0.15s; position: relative; }
.keeper-slot.active { border-color: var(--green); border-style: solid; background: rgba(34,197,94,0.06); }
.keeper-slot .slot-pos { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }
.keeper-slot .slot-name { font-size: 13px; font-weight: 700; }
.keeper-slot .slot-cost { font-size: 18px; font-weight: 800; color: var(--green); }
.keeper-slot .remove-btn { position: absolute; top: 5px; right: 7px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px; }
.keeper-slot .remove-btn:hover { color: var(--red); }
/* Combos */
.combos-list { padding: 0 18px 16px; }
.combo-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.combo-item:hover { border-color: var(--accent); background: rgba(79,142,247,0.05); }
.combo-item.recommended { border-color: var(--green); background: rgba(34,197,94,0.05); }
.combo-item.selected { border-color: var(--accent); background: rgba(79,142,247,0.08); }
.combo-names { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.combo-sub { font-size: 11px; color: var(--muted); }
.combo-right { text-align: right; }
.combo-cost { font-size: 17px; font-weight: 800; color: var(--gold); }
.combo-budget { font-size: 11px; color: var(--green); }
.rec-tag { font-size: 10px; background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); border-radius: 4px; padding: 1px 6px; font-weight: 700; display: inline-block; margin-bottom: 4px; }
/* Rec bullets */
.rec-card { padding: 16px 18px; }
.rec-bullets { list-style: none; }
.rec-bullets li { font-size: 12px; color: var(--muted); padding: 4px 0 4px 16px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.04); }
.rec-bullets li:before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.rec-bullets li:last-child { border-bottom: none; }
.rec-bullets li strong { color: var(--text); }
/* Tier table */
.tier-table { padding: 0 18px 14px; }
.tier-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; margin-bottom: 3px; }
.tier-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.tier-range { font-size: 12px; color: var(--muted); }
.tier-mult { font-size: 12px; font-weight: 700; color: var(--accent); }
/* Alert */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 12px; margin: 0 18px 12px; }
.alert-warn { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: var(--yellow); }
.alert-ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: var(--green); }
.alert-info { background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.25); color: var(--accent); }
/* ═══════════════════════════════════
TAB 2 — ROSTER TRACKER
═══════════════════════════════════ */
.rt-summary-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--border); }
.sum-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.sum-icon { font-size: 22px; }
.sum-val { font-size: 22px; font-weight: 800; line-height: 1; }
.sum-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.col-red { color: var(--red); }
.col-yellow { color: var(--yellow); }
.col-green { color: var(--green); }
.col-blue { color: var(--accent); }
.rt-filters { padding: 14px 28px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.05); }
.filter-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; }
.filter-btn { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.filter-btn:hover, .filter-btn.active { background: var(--surface2); color: var(--text); border-color: var(--accent); }
.filter-btn.f-critical.active { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.08); }
.filter-btn.f-monitor.active { border-color: var(--yellow); color: var(--yellow); background: rgba(245,158,11,0.08); }
.filter-btn.f-stable.active { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.08); }
.search-box { margin-left: auto; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 12px; outline: none; min-width: 180px; }
.search-box::placeholder { color: var(--muted); }
.rt-main { display: grid; grid-template-columns: 1fr 320px; gap: 0; min-height: 600px; }
.player-list-rt { padding: 16px 28px; }
.section-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 8px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.player-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.15s; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.player-card:hover { border-color: var(--accent); background: rgba(79,142,247,0.04); }
.player-card.selected { border-color: var(--accent); background: rgba(79,142,247,0.07); }
.card-left { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-critical { background: var(--red); box-shadow: 0 0 6px var(--red); }
.dot-monitor { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.dot-stable { background: var(--green); box-shadow: 0 0 6px var(--green); }
.card-mid { display: flex; flex-direction: column; gap: 4px; }
.pc-name { font-size: 15px; font-weight: 700; color: var(--text); }
.pc-team { font-size: 11px; color: var(--muted); }
.latest-news { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.news-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-right: 5px; }
.tag-critical { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.tag-monitor { background: rgba(245,158,11,0.15); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }
.tag-stable { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.tag-info { background: rgba(79,142,247,0.12); color: var(--accent); border: 1px solid rgba(79,142,247,0.2); }
.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.salary-stack { text-align: right; }
.sal-25 { font-size: 12px; color: var(--muted); }
.sal-26 { font-size: 16px; font-weight: 800; }
.sal-lbl { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.keep-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.keep-yes { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.keep-cut { background: rgba(239,68,68,0.1); color: #f87171aa; border: 1px solid rgba(239,68,68,0.15); }
.keep-monitor { background: rgba(245,158,11,0.1); color: #f59e0baa; border: 1px solid rgba(245,158,11,0.15); }
/* Detail panel */
.detail-panel { border-left: 1px solid var(--border); background: var(--surface); padding: 20px; overflow-y: auto; max-height: 85vh; position: sticky; top: 0; }
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; color: var(--muted); font-size: 13px; text-align: center; gap: 8px; }
.detail-empty .icon { font-size: 32px; opacity: 0.3; }
.detail-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.detail-sub { font-size: 12px; color: var(--muted); }
.detail-status-bar { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: 8px; }
.dsb-critical { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); }
.dsb-monitor { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); }
.dsb-stable { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }
.dsb-icon { font-size: 18px; }
.dsb-text { font-size: 13px; font-weight: 600; }
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-item { background: var(--surface2); border-radius: 8px; padding: 8px 10px; }
.stat-val { font-size: 17px; font-weight: 800; }
.stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.news-feed { display: flex; flex-direction: column; gap: 8px; }
.news-item { padding: 10px 12px; border-radius: 8px; background: var(--surface2); border-left: 3px solid; font-size: 12px; line-height: 1.5; }
.ni-critical { border-color: var(--red); }
.ni-monitor { border-color: var(--yellow); }
.ni-stable { border-color: var(--green); }
.ni-info { border-color: var(--accent); }
.ni-date { font-size: 10px; color: var(--muted); margin-top: 4px; }
.action-box { background: var(--surface2); border-radius: 10px; padding: 12px 14px; border: 1px solid var(--border); }
.action-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.action-text { font-size: 13px; line-height: 1.6; }
/* Alert banner */
.alert-banner { margin: 12px 28px 0; padding: 10px 16px; border-radius: 8px; font-size: 12px; display: flex; align-items: flex-start; gap: 10px; }
.ab-critical { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.ab-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ab-body strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
/* ═══════════════════════════════════
FOOTER
═══════════════════════════════════ */
.app-footer { padding: 12px 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; margin-top: 20px; }
/* ═══════════════════════════════════
TAB 3 — SCORING PROJECTIONS
═══════════════════════════════════ */
.sp-layout { display: grid; grid-template-columns: 1fr 340px; gap: 0; min-height: 700px; }
.sp-left { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--border); overflow-y: auto; }
.sp-right { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 90vh; position: sticky; top: 0; }
/* Top control bar */
.sp-controls { padding: 12px 24px; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); }
.sp-controls .filter-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
/* League comparison bar */
.league-bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: background 0.12s; }
.league-bar-row:hover { background: rgba(255,255,255,0.04); }
.league-bar-row.is-us { background: rgba(79,142,247,0.07); border: 1px solid rgba(79,142,247,0.2); }
.lb-rank { font-size: 13px; font-weight: 800; width: 22px; text-align: center; flex-shrink: 0; }
.lb-name { font-size: 12px; font-weight: 600; width: 130px; flex-shrink: 0; }
.lb-bar-bg { flex: 1; height: 14px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.lb-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.lb-pts { font-size: 13px; font-weight: 800; width: 52px; text-align: right; flex-shrink: 0; }
.lb-diff { font-size: 11px; width: 52px; text-align: right; flex-shrink: 0; color: var(--muted); }
/* Player projection table */
.proj-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.proj-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); padding: 7px 10px; text-align: left; background: rgba(255,255,255,0.02); position: sticky; top: 0; z-index: 1; }
.proj-table th.sort-asc::after { content: ' ↑'; color: var(--accent); }
.proj-table th.sort-desc::after { content: ' ↓'; color: var(--accent); }
.proj-table th[data-sort] { cursor: pointer; user-select: none; }
.proj-table th[data-sort]:hover { color: var(--text); }
.proj-table td { padding: 8px 10px; border-top: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.proj-table tr:hover td { background: rgba(255,255,255,0.025); cursor: pointer; }
.proj-table tr.selected td { background: rgba(79,142,247,0.08); }
.proj-table tr.is-us td:first-child { border-left: 3px solid var(--accent); }
.eff-bar { height: 6px; border-radius: 3px; background: var(--green); display: inline-block; vertical-align: middle; }
/* AI panel */
.ai-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; color: var(--muted); font-size: 13px; }
.ai-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-content { font-size: 13px; line-height: 1.7; color: var(--text); }
.ai-content strong { color: var(--accent); }
.ai-section { margin-bottom: 14px; }
.ai-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
/* Summary stat boxes */
.sp-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.sp-stat { background: var(--surface2); border-radius: 8px; padding: 10px 12px; text-align: center; border: 1px solid var(--border); }
.sp-stat .v { font-size: 20px; font-weight: 800; }
.sp-stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }
/* ═══════════════════════════════════
TAB 4 — AUCTION PREP
═══════════════════════════════════ */
.ap-budget-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ap-bstat { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; text-align: center; }
.ap-bstat .v { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.ap-bstat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.ap-budget-track { padding: 0 28px 10px; background: var(--surface); }
.ap-budget-track-bg { height: 6px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.ap-budget-track-fill { height: 100%; border-radius: 4px; transition: width 0.4s, background 0.3s; }
.ap-main { display: grid; grid-template-columns: 1fr 300px 270px; min-height: 700px; }
.ap-left { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--border); overflow-y: auto; }
.ap-center { padding: 20px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--border); }
.ap-right { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 88vh; position: sticky; top: 0; }
.ap-targets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-target-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all 0.15s; }
.ap-target-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.ap-target-card.tier-priority { border-left: 3px solid var(--accent); }
.ap-target-card.tier-value { border-left: 3px solid var(--green); }
.ap-target-card.tier-lottery { border-left: 3px solid var(--gold); }
.ap-target-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.ap-target-name { font-size: 13px; font-weight: 700; }
.ap-target-bid { font-size: 14px; font-weight: 800; color: var(--gold); }
.ap-target-reason { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.ap-tier-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-bottom: 5px; display: inline-block; }
.badge-priority { background: rgba(79,142,247,0.15); color: var(--accent); border: 1px solid rgba(79,142,247,0.3); }
.badge-value { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.badge-lottery { background: rgba(247,201,72,0.12); color: var(--gold); border: 1px solid rgba(247,201,72,0.25); }
.ap-nom-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; border-left: 3px solid var(--red); }
.ap-nom-target { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--red); margin-bottom: 3px; }
.ap-nom-who { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.ap-nom-reason { font-size: 11px; color: var(--muted); line-height: 1.4; }
.ap-log-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 6px; }
.ap-rival-row { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ap-rival-row:last-child { border-bottom: none; }
.ap-rival-row.is-us { background: rgba(79,142,247,0.05); border-radius: 8px; padding: 10px 8px; margin: 0 -8px; }
.ap-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface2); border-radius: 10px; border: 1px solid var(--border); }
.ap-input { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 13px; outline: none; width: 100%; }
.ap-input:focus { border-color: var(--accent); }
.ap-btn { background: var(--accent); color: #fff; border: none; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s; width: 100%; }
.ap-btn:hover { background: #3d7ef0; }
.ap-reset-btn { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.ap-reset-btn:hover { background: rgba(239,68,68,0.25); }
/* ═══════════════════════════════════
TAB 5 — RIVAL KEEPER TRACKER
═══════════════════════════════════ */
.rkt-main { display: grid; grid-template-columns: 1fr 300px; gap: 0; min-height: 700px; }
.rkt-left { padding: 20px 28px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--border); }
.rkt-sidebar { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 88vh; position: sticky; top: 0; }
.rkt-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.rkt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--border); }
.rkt-card.threat-high { border-left-color: var(--red); }
.rkt-card.threat-medium { border-left-color: var(--yellow); }
.rkt-card.threat-low { border-left-color: var(--green); }
.rkt-card.is-us { border-left-color: var(--accent); }
.rkt-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.rkt-team-name { font-size: 14px; font-weight: 700; }
.rkt-division { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.rkt-budget-display { text-align: right; }
.rkt-budget-val { font-size: 22px; font-weight: 800; line-height: 1; }
.rkt-budget-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.rkt-budget-bar-bg { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.rkt-budget-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s; }
.rkt-keeper-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; background: var(--surface2); border-radius: 6px; margin-bottom: 4px; }
.rkt-keeper-name { font-size: 12px; font-weight: 600; }
.rkt-keeper-cost { font-size: 12px; font-weight: 700; color: var(--gold); }
.rkt-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.rkt-tag-flush { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.rkt-tag-tight { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.25); }
.rkt-tag-mid { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }
.rkt-callout { font-size: 11px; color: var(--muted); padding: 7px 10px; border-radius: 6px; margin-top: 6px; line-height: 1.5; }
.rkt-callout-opp { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); }
.rkt-callout-danger { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); }
.rkt-rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; margin-bottom: 3px; }
.rkt-rank-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.rkt-rank-num { font-size: 12px; font-weight: 800; width: 18px; text-align: center; color: var(--muted); }
.rkt-rank-name { font-size: 12px; font-weight: 600; flex: 1; }
.rkt-rank-bud { font-size: 13px; font-weight: 800; width: 42px; text-align: right; }
.rkt-fa-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--surface2); border-radius: 6px; margin-bottom: 4px; border-left: 3px solid var(--accent); }
.rkt-filters { padding: 12px 28px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.05); }
/* ═══════════════════════════════════
RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1000px) {
.kc-main { grid-template-columns: 1fr; }
.rt-main { grid-template-columns: 1fr; }
.detail-panel { position: static; max-height: none; border-left: none; border-top: 1px solid var(--border); }
.rt-summary-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
.app-header { padding: 14px 16px 0; }
.kc-main, .player-list-rt { padding: 12px 16px; }
.rt-summary-bar, .rt-filters { padding: 12px 16px; }
.tab-btn { padding: 8px 12px; font-size: 12px; }
}
</style>
</head>
<body>
<!-- ═══════════════════════════════════════════
GLOBAL APP HEADER
════════════════════════════════════════════ -->
<div class="app-header">
<div class="app-header-top">
<div>
<div class="app-title">STFFL <span>Command Centre</span></div>
<div class="app-subtitle">Adam & Matt · Pantioras Division · Season 15 → 16 · 2026 Offseason</div>
</div>
<div class="header-badges">
<span class="hbadge hb-red">🚨 2 Critical Alerts</span>
<span class="hbadge hb-gold">2026 Offseason</span>
<span class="hbadge hb-blue">Phase 1 — Build</span>
<span class="hbadge hb-green">$200 Cap · 2 Keepers Max</span>
</div>
</div>
<div class="tab-nav">
<button class="tab-btn active" onclick="switchTab('keeper', this)">
<span class="tab-icon">🔒</span>Keeper Calculator
</button>
<button class="tab-btn" onclick="switchTab('roster', this)">
<span class="tab-icon">📡</span>Live Roster Tracker
<span class="tab-badge">2 !</span>
</button>
<!-- Future tabs added here -->
<button class="tab-btn" onclick="switchTab('scoring', this)">
<span class="tab-icon">📊</span>Scoring Projections
</button>
<button class="tab-btn" onclick="switchTab('auction', this)">
<span class="tab-icon">⚖️</span>Auction Prep
</button>
<button class="tab-btn" onclick="switchTab('rival', this)">
<span class="tab-icon">🕵️</span>Rival Keepers
</button>
</div>
</div>
<!-- ═══════════════════════════════════════════
TAB 1: KEEPER CALCULATOR
════════════════════════════════════════════ -->
<div class="tab-panel active" id="tab-keeper">
<div class="kc-main">
<!-- LEFT -->
<div class="kc-left">
<!-- CAP STATUS -->
<div class="card">
<div class="card-header">
<h2>Salary Cap Status</h2>
<span class="pill pill-blue" id="cap-pill">$200 Base Cap</span>
</div>
<div class="cap-section">
<div class="cap-label">
<span>Keeper cost locked in</span>
<strong id="cap-locked-label">$0 locked</strong>
</div>
<div class="cap-bar-bg">
<div class="cap-bar-fill" id="cap-bar" style="width:0%; background: var(--green);"></div>
</div>
<div class="cap-stats">
<div class="cap-stat"><div class="val val-gold" id="stat-locked">$0</div><div class="lbl">Keepers Locked</div></div>
<div class="cap-stat"><div class="val val-blue" id="stat-budget">$200</div><div class="lbl">Auction Budget</div></div>
<div class="cap-stat"><div class="val val-green" id="stat-avg">$11.11</div><div class="lbl">Avg Per Spot</div></div>
</div>
</div>
</div>
<!-- ROSTER TABLE -->
<div class="card">
<div class="card-header">
<h2>Full Roster — Click to Toggle Status</h2>
<span class="pill pill-blue">18 Players · $186 Spent</span>
</div>
<table class="roster-table" id="roster-table">
<thead>
<tr>
<th>Pos</th><th>Player</th><th>NFL Team</th>
<th>2025 $</th><th>2026 Cost</th><th>Yr</th><th>Status</th><th>Notes</th>
</tr>
</thead>
<tbody id="roster-tbody"></tbody>
</table>
</div>
</div><!-- /kc-left -->
<!-- RIGHT -->
<div class="kc-right">
<!-- KEEPER SLOTS -->
<div class="card">
<div class="card-header">
<h2>My 2026 Keepers</h2>
<span class="pill pill-green">Max 2 · §2.3</span>
</div>
<div class="keeper-selector">
<div class="keeper-slots">
<div class="keeper-slot" id="slot-0">
<div class="slot-pos">Keeper 1</div>
<div style="color:var(--muted);font-size:12px;">Click KEEP on a player</div>
</div>
<div class="keeper-slot" id="slot-1">
<div class="slot-pos">Keeper 2</div>
<div style="color:var(--muted);font-size:12px;">Click KEEP on a player</div>
</div>
</div>
<div id="kc-alert-area"></div>
</div>
</div>
<!-- COMBOS -->
<div class="card">
<div class="card-header">
<h2>Recommended Combos</h2>
<span class="pill pill-yellow">§5.4 Tiers Applied</span>
</div>
<div class="combos-list" id="combos-list"></div>
</div>
<!-- WHY COOK + NJOKU -->
<div class="card">
<div class="card-header">
<h2>Why Cook + Njoku</h2>
<span class="pill pill-green">★ Recommended</span>
</div>
<div class="rec-card">
<ul class="rec-bullets">
<li><strong>James Cook</strong> — Josh Allen 6yr/$330M. Elite BUF offense, no RB1 competition. Anchor piece.</li>
<li><strong>David Njoku</strong> — $6 last season → only $11 to keep. TE of his calibre costs $15–25 at auction. Best value play.</li>
<li><strong>$139 remaining</strong> for 18 spots = $7.72 avg. Most flexible budget of all combos.</li>
<li><strong>Locks in</strong> elite RB1 + elite TE. Build balanced roster around them.</li>
<li><strong>Both Year 1</strong> of 3-season max. No contract pressure until 2028.</li>
</ul>
</div>
</div>
<!-- SALARY TIERS -->
<div class="card">
<div class="card-header">
<h2>Salary Escalation Tiers</h2>
<span class="pill pill-blue">Constitution §5.4</span>
</div>
<div class="tier-table">
<div class="tier-row"><span class="tier-range">$1 – $5</span><span class="tier-mult">× 2.00</span></div>
<div class="tier-row"><span class="tier-range">$6 – $10</span><span class="tier-mult">× 1.80</span></div>
<div class="tier-row"><span class="tier-range">$11 – $15</span><span class="tier-mult">× 1.55</span></div>
<div class="tier-row"><span class="tier-range">$16 – $20</span><span class="tier-mult">× 1.50</span></div>
<div class="tier-row"><span class="tier-range">$21 – $25</span><span class="tier-mult">× 1.40</span></div>
<div class="tier-row"><span class="tier-range">$26 – $30</span><span class="tier-mult">× 1.33</span></div>
<div class="tier-row"><span class="tier-range">$31 – $40</span><span class="tier-mult">× 1.30</span></div>
<div class="tier-row"><span class="tier-range">$41 – $50</span><span class="tier-mult">× 1.25</span></div>
<div class="tier-row"><span class="tier-range">$51 – $60</span><span class="tier-mult">× 1.22</span></div>
<div class="tier-row"><span class="tier-range">$61+</span><span class="tier-mult">× 1.20</span></div>
<div style="padding:8px 10px; font-size:11px; color:var(--muted);">All salaries rounded up to nearest whole dollar.</div>
</div>
</div>
</div><!-- /kc-right -->
</div>
</div>
<!-- ═══════════════════════════════════════════
TAB 2: LIVE ROSTER TRACKER
════════════════════════════════════════════ -->
<div class="tab-panel" id="tab-roster">
<!-- ALERT BANNER -->
<div class="alert-banner ab-critical">
<span class="ab-icon">🚨</span>
<div class="ab-body">
<strong>KEEPER DECISION ALERT — David Njoku (TE, CLE) left Cleveland as a free agent</strong>
Visited Baltimore Ravens Mar 18 — would be TE2 behind Mark Andrews. Jerry Jeudy trade risk: Browns linked to WR Round 1 draft pick. Review your keeper combo before locking in.
</div>
</div>
<!-- TEAM SELECTOR -->
<div style="padding:14px 28px 0; border-bottom:1px solid var(--border); background:var(--surface);">
<div style="font-size:11px; text-transform:uppercase; letter-spacing:0.8px; color:var(--muted); margin-bottom:10px;">View Team Roster</div>
<div id="team-selector" style="display:flex; flex-wrap:wrap; gap:6px; padding-bottom:14px;"></div>
</div>
<!-- TEAM HEADER BAR -->
<div id="team-header-bar" style="padding:14px 28px; background:var(--surface2); border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;">
<div>
<div id="team-header-name" style="font-size:18px; font-weight:800;"></div>
<div id="team-header-sub" style="font-size:12px; color:var(--muted); margin-top:2px;"></div>
</div>
<div id="team-header-stats" style="display:flex; gap:12px; flex-wrap:wrap;"></div>
</div>
<!-- SUMMARY BAR -->
<div class="rt-summary-bar" id="rt-summary-bar">
<div class="sum-card"><div class="sum-icon">💰</div><div><div class="sum-val col-gold" id="sum-cap">$0</div><div class="sum-lbl">Cap Spent</div></div></div>
<div class="sum-card"><div class="sum-icon">🔒</div><div><div class="sum-val col-green" id="sum-keepers">0</div><div class="sum-lbl">Likely Keepers</div></div></div>
<div class="sum-card"><div class="sum-icon">⚠️</div><div><div class="sum-val col-red" id="sum-risks">0</div><div class="sum-lbl">Risk Players</div></div></div>
<div class="sum-card"><div class="sum-icon">📋</div><div><div class="sum-val col-blue" id="sum-players">0</div><div class="sum-lbl">Roster Size</div></div></div>
</div>
<!-- FILTERS -->
<div class="rt-filters">
<span class="filter-label">Filter:</span>
<button class="filter-btn f-all active" onclick="rtSetFilter('all',this)">All</button>
<button class="filter-btn f-keep" onclick="rtSetFilter('keep',this)" style="border-color:rgba(34,197,94,0.4); color:var(--green);">Keep</button>
<button class="filter-btn f-monitor" onclick="rtSetFilter('monitor',this)">Monitor</button>
<button class="filter-btn f-cut" onclick="rtSetFilter('cut',this)" style="border-color:rgba(239,68,68,0.4); color:var(--red);">Cut</button>
<button class="filter-btn" onclick="rtSetFilter('QB',this)">QB</button>
<button class="filter-btn" onclick="rtSetFilter('RB',this)">RB</button>
<button class="filter-btn" onclick="rtSetFilter('WR',this)">WR</button>
<button class="filter-btn" onclick="rtSetFilter('TE',this)">TE</button>
<input class="search-box" type="text" placeholder="Search any player across all teams..." oninput="rtDoSearch(this.value)">
</div>
<!-- MAIN: LIST + DETAIL -->
<div class="rt-main">
<div class="player-list-rt" id="rt-player-list"></div>
<div class="detail-panel" id="rt-detail-panel">
<div class="detail-empty">
<div class="icon">👈</div>
<div>Click any player card<br>to see full analysis</div>
</div>
</div>
</div>
<!-- AUCTION TARGETS SECTION -->
<div style="padding:20px 28px; border-top:2px solid var(--border);">
<div style="font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:14px;">🎯 2026 Auction Targets — Players to Buy</div>
<div id="auction-targets-grid" style="display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px;"></div>
</div>
</div>
<!-- ═══════════════════════════════════════════
TAB 3: SCORING PROJECTIONS
════════════════════════════════════════════ -->
<div class="tab-panel" id="tab-scoring">
<!-- CONTROLS -->
<div class="sp-controls">
<span class="filter-label">Team:</span>
<select id="sp-team-select" onchange="spSetTeam(this.value)" style="background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:5px 10px;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;outline:none;">
<option value="ADAM">⭐ Adam & Matt</option>
<option value="BEN">Ben</option>
<option value="DARREN">Darren</option>
<option value="DARYL & MICHAEL">Daryl & Michael</option>
<option value="DAVE & SIMON">Dave & Simon</option>
<option value="HANLEY">Hanley</option>
<option value="JOSH M.">Josh M.</option>
<option value="JOSH T.">Josh T.</option>
<option value="RICK">Rick</option>
<option value="SADIQ">Sadiq</option>
<option value="SIMON H.">Simon H.</option>
<option value="TED">Ted</option>
</select>
<span class="filter-label" style="margin-left:14px;">Sort by:</span>
<button class="filter-btn active" id="sp-sort-pts" onclick="spSetSort('pts',this)">STFFL Pts</button>
<button class="filter-btn" id="sp-sort-eff" onclick="spSetSort('eff',this)">$ Efficiency</button>
<button class="filter-btn" id="sp-sort-sal" onclick="spSetSort('sal',this)">Salary</button>
<button class="filter-btn" id="sp-sort-pos" onclick="spSetSort('pos',this)">Position</button>
<span class="filter-label" style="margin-left:14px;">Filter:</span>
<button class="filter-btn active" id="spf-all" onclick="spSetPos('all',this)">All</button>
<button class="filter-btn" onclick="spSetPos('QB',this)">QB</button>
<button class="filter-btn" onclick="spSetPos('RB',this)">RB</button>
<button class="filter-btn" onclick="spSetPos('WR',this)">WR</button>
<button class="filter-btn" onclick="spSetPos('TE',this)">TE</button>
<button class="filter-btn" onclick="spSetPos('K',this)">K</button>
<button class="filter-btn" onclick="spSetPos('DST',this)">DST</button>
<label style="margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);cursor:pointer;">
<input type="checkbox" id="sp-starters-only" onchange="spRenderTable()" style="accent-color:var(--accent);"> Starters only
</label>
</div>
<!-- SUMMARY STATS -->
<div style="padding:14px 24px 0;" id="sp-stat-row-wrap">
<div class="sp-stat-row" id="sp-stat-row"></div>
</div>
<!-- MAIN LAYOUT -->
<div class="sp-layout">
<!-- LEFT: LEAGUE BAR + PLAYER TABLE -->
<div class="sp-left">
<!-- LEAGUE COMPARISON -->
<div class="card">
<div class="card-header">
<h2>2026 League Projected Rankings</h2>
<span class="pill pill-blue">All 12 Teams · STFFL Scoring</span>
</div>
<div style="padding:14px 16px;" id="sp-league-bars"></div>
</div>
<!-- PLAYER TABLE -->
<div class="card">
<div class="card-header">
<h2 id="sp-table-title">Adam & Matt — Player Projections</h2>
<span class="pill pill-yellow" id="sp-table-pill">§6.2/6.3 Rules Applied</span>
</div>
<div style="overflow-x:auto;">
<table class="proj-table" id="sp-proj-table">
<thead>
<tr>
<th data-sort="pos" onclick="spColSort(this)">Pos</th>
<th data-sort="name" onclick="spColSort(this)">Player</th>
<th>NFL</th>
<th data-sort="sal" onclick="spColSort(this)">2025 $</th>
<th data-sort="pts" onclick="spColSort(this)">Proj Pts</th>
<th data-sort="eff" onclick="spColSort(this)">Pts/$</th>
<th>Efficiency</th>
<th>Role</th>
</tr>
</thead>
<tbody id="sp-proj-tbody"></tbody>
</table>
</div>
<div style="padding:10px 14px;font-size:11px;color:var(--muted);border-top:1px solid var(--border);">
Projections based on 2025 NFL season stats converted to STFFL scoring rules. Click any row for AI analysis.
</div>
</div>
</div><!-- /sp-left -->
<!-- RIGHT: AI ANALYSIS PANEL -->
<div class="sp-right">
<!-- STFFL SCORING CHEAT SHEET -->
<div class="card">
<div class="card-header"><h2>STFFL Scoring vs ESPN</h2><span class="pill pill-blue">§6.2/6.3</span></div>
<div style="padding:10px 14px;">
<div style="display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:11px;">
<div style="background:rgba(239,68,68,0.08);border-radius:6px;padding:8px;border:1px solid rgba(239,68,68,0.15);">
<div style="color:var(--red);font-weight:700;margin-bottom:4px;">⬇ Lower Than ESPN</div>
<div style="color:var(--muted);">Pass TD: <strong style="color:var(--text);">3 pts</strong> (not 6)</div>
<div style="color:var(--muted);">No partial pts</div>
</div>
<div style="background:rgba(34,197,94,0.06);border-radius:6px;padding:8px;border:1px solid rgba(34,197,94,0.15);">
<div style="color:var(--green);font-weight:700;margin-bottom:4px;">⬆ Higher Impact</div>
<div style="color:var(--muted);">Rush/Rec TD: <strong style="color:var(--text);">6 pts</strong></div>
<div style="color:var(--muted);">Return TD: <strong style="color:var(--text);">6 pts</strong></div>
</div>
<div style="background:rgba(79,142,247,0.06);border-radius:6px;padding:8px;border:1px solid rgba(79,142,247,0.15);grid-column:1/-1;">
<div style="color:var(--accent);font-weight:700;margin-bottom:4px;">Yardage (same rate)</div>
<div style="color:var(--muted);">0.5 per 10 pass yds | 0.5 per 5 rush yds | 0.5 per 5 rec yds</div>
</div>
</div>
</div>
</div>
<!-- AI PLAYER ANALYSIS -->
<div class="card" style="flex:1;">
<div class="card-header">
<h2>AI Player Analysis</h2>
<span class="pill pill-blue" id="ai-model-badge">Claude Sonnet</span>
</div>
<div id="sp-ai-panel" style="padding:16px;">
<div class="detail-empty">
<div class="icon">📊</div>
<div>Click any player row<br>for live AI analysis</div>
</div>
</div>
</div>
</div><!-- /sp-right -->
</div><!-- /sp-layout -->
</div>
<!-- ═══════════════════════════════════════════
TAB 4: AUCTION DRAFT PREP
════════════════════════════════════════════ -->
<div class="tab-panel" id="tab-auction">
<!-- BUDGET STATUS BAR -->
<div class="ap-budget-bar">
<div class="ap-bstat">
<div class="v val-green" id="ap-stat-budget">$139</div>
<div class="l">Auction Budget</div>
</div>
<div class="ap-bstat">
<div class="v val-blue" id="ap-stat-spots">18</div>
<div class="l">Open Spots</div>
</div>
<div class="ap-bstat">
<div class="v val-gold" id="ap-stat-avg">$7.72</div>
<div class="l">Avg Per Spot</div>
</div>
<div class="ap-bstat">
<div class="v col-red" id="ap-stat-maxbid">$122</div>
<div class="l">Max Next Bid (§3.6)</div>
</div>
</div>
<div class="ap-budget-track">
<div class="ap-budget-track-bg">
<div class="ap-budget-track-fill" id="ap-budget-bar-fill" style="width:0%;background:var(--green);"></div>
</div>
</div>
<!-- MAIN 3-COLUMN LAYOUT -->
<div class="ap-main">
<!-- LEFT: PRIORITY TARGETS + NOMINATION STRATEGY -->
<div class="ap-left">
<div class="card">
<div class="card-header">
<h2>🎯 2026 Priority Auction Targets</h2>
<span class="pill pill-blue">§6.2 Scoring Applied</span>
</div>
<div style="padding:14px 16px;">
<div id="ap-targets-grid" class="ap-targets-grid"></div>
<div style="margin-top:10px;font-size:11px;color:var(--muted);">Click any card to pre-fill the auction tracker with that player's name.</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h2>📣 Nomination Strategy</h2>
<span class="pill pill-red">Drain Their Budgets</span>
</div>
<div style="padding:14px 16px;display:flex;flex-direction:column;gap:8px;" id="ap-nominations"></div>
<div style="padding:0 16px 14px;font-size:11px;color:var(--muted);">Nominate rivals' targets early. Cap-constrained teams can't respond — you win the real prizes cheap.</div>
</div>
</div><!-- /ap-left -->
<!-- CENTER: LIVE AUCTION TRACKER -->
<div class="ap-center">
<div class="card">
<div class="card-header">
<h2>🏆 Live Auction Tracker</h2>
<span class="pill pill-green" id="ap-won-count">0 won</span>
</div>
<div class="ap-form" style="margin:14px 14px 0;">
<input class="ap-input" type="text" id="ap-add-name" placeholder="Player name..." autocomplete="off" onkeydown="if(event.key==='Enter') document.getElementById('ap-add-bid').focus()">
<input class="ap-input" type="number" id="ap-add-bid" placeholder="Winning bid ($)" min="1" onkeydown="if(event.key==='Enter') apAddPlayer()">
<button class="ap-btn" onclick="apAddPlayer()">+ Won This Player</button>
</div>
<div style="padding:10px 14px 4px;font-size:10px;color:var(--muted);">⚖️ §3.6 enforced — max bid = budget − remaining spots (must keep $1/spot in reserve)</div>
<div style="padding:0 14px 14px;" id="ap-log">
<div style="padding:20px;text-align:center;color:var(--muted);font-size:12px;">No players won yet.<br>Add players as you win bids at the auction.</div>
</div>
<div style="padding:0 14px 14px;display:flex;justify-content:flex-end;">
<button class="ap-reset-btn" onclick="apResetTracker()">↺ Reset Tracker</button>
</div>
</div>
<div class="card">
<div class="card-header">
<h2>📋 Auction Tactics</h2>
<span class="pill pill-yellow">§3.6 / §4.4</span>
</div>
<div style="padding:12px 16px;">
<ul class="rec-bullets">
<li><strong>§3.6 Reserve:</strong> Max bid = remaining budget − (open spots − 1). App enforces this automatically.</li>
<li><strong>RB Premium:</strong> In STFFL, RBs score more reliably. Fill 2 FLEX spots with RBs, not WRs.</li>
<li><strong>QB Rule:</strong> 3pt pass TDs cap QB ceiling. Only pay $25+ for rushing QBs (Lamar, Daniels, Allen, Hurts). Stream at $5–10 otherwise.</li>
<li><strong>DSTs at $1 each:</strong> Draft 2 at $1. Never stream via waivers — preserve 7 FA moves (§4.4) for RB injuries and WR upgrades.</li>
<li><strong>Best value window:</strong> $5–20 range. Let rivals overpay for the $50+ names while you clean up mid-tier.</li>
</ul>
</div>
</div>
</div><!-- /ap-center -->
<!-- RIGHT: RIVAL BUDGET TRACKER -->
<div class="ap-right">
<div class="card" style="flex:1;">
<div class="card-header">
<h2>💰 Rival Auction Budgets</h2>
<span class="pill pill-blue">Est. After Keepers</span>
</div>
<div style="padding:6px 14px 4px;font-size:10px;color:var(--muted);">
<span style="color:var(--red);font-weight:700;">⚠ FLUSH</span> = big budget, danger | <span style="color:var(--green);font-weight:700;">✓ TIGHT</span> = cap constrained, opportunity
</div>
<div style="padding:10px 16px;" id="ap-rival-budgets"></div>
</div>
</div><!-- /ap-right -->
</div><!-- /ap-main -->
</div>
<!-- ═══════════════════════════════════════════
TAB 5: RIVAL KEEPER TRACKER
════════════════════════════════════════════ -->
<div class="tab-panel" id="tab-rival">
<!-- SUMMARY BAR -->
<div class="rt-summary-bar" id="rkt-summary-bar">
<div class="sum-card"><div class="sum-icon">🔒</div><div><div class="sum-val col-gold" id="rkt-sum-locked">$0</div><div class="sum-lbl">Total Cap Locked</div></div></div>
<div class="sum-card"><div class="sum-icon">💰</div><div><div class="sum-val col-blue" id="rkt-sum-avg">$0</div><div class="sum-lbl">Avg Rival Budget</div></div></div>
<div class="sum-card"><div class="sum-icon">⚠️</div><div><div class="sum-val col-red" id="rkt-sum-danger">—</div><div class="sum-lbl">Most Dangerous</div></div></div>
<div class="sum-card"><div class="sum-icon">✅</div><div><div class="sum-val col-green" id="rkt-sum-opp">—</div><div class="sum-lbl">Best Opportunity</div></div></div>
</div>
<!-- FILTERS -->
<div class="rkt-filters">
<span class="filter-label">Sort:</span>
<button class="filter-btn active" onclick="rktSetSort('budget',this)">Budget ↓</button>
<button class="filter-btn" onclick="rktSetSort('threat',this)">Threat</button>
<button class="filter-btn" onclick="rktSetSort('division',this)">Division</button>
<span class="filter-label" style="margin-left:14px;">Filter:</span>
<button class="filter-btn active" onclick="rktSetFilter('all',this)">All</button>
<button class="filter-btn" onclick="rktSetFilter('flush',this)" style="border-color:rgba(239,68,68,0.4);color:var(--red);">⚠ Flush >$130</button>
<button class="filter-btn" onclick="rktSetFilter('tight',this)" style="border-color:rgba(34,197,94,0.4);color:var(--green);">✓ Tight <$90</button>
</div>
<!-- MAIN 2-COL -->
<div class="rkt-main">
<div class="rkt-left">
<div id="rkt-cards" class="rkt-cards-grid"></div>
</div>
<div class="rkt-sidebar">
<div id="rkt-sidebar"></div>
</div>
</div>
</div>
<!-- FOOTER -->
<div class="app-footer">
<span>STFFL Command Centre · Season 15→16 · Constitution v8 · Phase 1 in progress · Last updated March 22, 2026</span>
<span>Adam & Matt — Pantioras Division</span>
</div>
<!-- ═══════════════════════════════════════════
SCRIPTS
════════════════════════════════════════════ -->
<script>
// ──────────────────────────────────────────────
// TAB SWITCHING
// ──────────────────────────────────────────────
function switchTab(name, btn) {
if (btn.disabled) return;
document.querySelectorAll('.tab-panel').forEach(p => p.classList.remove('active'));
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
document.getElementById('tab-' + name).classList.add('active');
btn.classList.add('active');
}
// ══════════════════════════════════════════════
// ║ KEEPER CALCULATOR DATA & LOGIC
// ══════════════════════════════════════════════
const ROSTER = [
{ pos:'QB', name:'C.J. Stroud', nfl:'HOU', sal:5, cost:10, yr:1, status:'keep', note:'Year 1 of 3. Young QB in good offense.' },
{ pos:'QB', name:'Kyler Murray', nfl:'MIN', sal:8, cost:15, yr:1, status:'cut', note:'Released ARI → MIN. Lower ceiling. $15 too much.' },
{ pos:'QB', name:'Michael Penix Jr.', nfl:'ATL', sal:3, cost:6, yr:1, status:'cut', note:'ACL injury. Tua bridge. Do not pay $6.' },
{ pos:'RB', name:'James Cook', nfl:'BUF', sal:40, cost:50, yr:1, status:'keep', note:'Josh Allen 6yr/$330M. Elite environment. Anchor.' },
{ pos:'RB', name:'Breece Hall', nfl:'NYJ', sal:19, cost:29, yr:1, status:'monitor', note:'Franchise tagged. NYJ rebuild. Watch QB situation.' },
{ pos:'RB', name:'Braelon Allen', nfl:'NYJ', sal:2, cost:4, yr:1, status:'cut', note:'NYJ rebuild. Let go; re-acquire at auction if needed.' },
{ pos:'RB', name:'Tyrone Tracy Jr.', nfl:'NYG', sal:13, cost:21, yr:1, status:'keep', note:'Emerging Giants back. Good value at $21.' },
{ pos:'RB', name:'Jordan Mason', nfl:'MIN', sal:10, cost:18, yr:1, status:'cut', note:'Overcrowded MIN backfield. Let go.' },
{ pos:'WR', name:'Drake London', nfl:'ATL', sal:34, cost:45, yr:1, status:'cut', note:'Penix ACL + Tua bridge = uncertainty. $45 too high.' },
{ pos:'WR', name:'Xavier Worthy', nfl:'KC', sal:18, cost:27, yr:1, status:'monitor', note:'Mahomes ACL Dec 2025. Justin Fields at KC. Monitor.' },
{ pos:'WR', name:'Jerry Jeudy', nfl:'CLE', sal:12, cost:19, yr:1, status:'keep', note:'Stable CLE situation. Solid WR2/3 value.' },
{ pos:'WR', name:'Keenan Allen', nfl:'LAC', sal:3, cost:6, yr:1, status:'cut', note:'Age and declining target share. $6 not justified.' },
{ pos:'WR', name:'Isaac TeSlaa', nfl:'DET', sal:2, cost:4, yr:1, status:'cut', note:'Let go. Re-acquire at $1 if needed.' },
{ pos:'TE', name:'David Njoku', nfl:'CLE', sal:6, cost:11, yr:1, status:'keep', note:'Best value on roster. Keep every year.' },