-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1618 lines (1502 loc) Β· 101 KB
/
index.html
File metadata and controls
1618 lines (1502 loc) Β· 101 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>CornHub β The World's Leading Corn Site</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg-primary: #0d0d0d;
--bg-secondary: #1b1b1b;
--bg-card: #252525;
--bg-card-hover: #2e2e2e;
--orange: #ff9000;
--orange-hover: #ffab3d;
--orange-dark: #cc7300;
--text-primary: #ffffff;
--text-secondary: #999999;
--text-muted: #666666;
--border: #333333;
--green: #4caf50;
--red: #f44336;
}
html { scroll-behavior: smooth; }
body {
background: var(--bg-primary);
color: var(--text-primary);
font-family: 'Inter', Arial, sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ββββββββββββββ TOP BAR ββββββββββββββ */
.top-bar {
background: #000;
padding: 6px 20px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 16px;
font-size: 12px;
color: var(--text-muted);
border-bottom: 1px solid #1a1a1a;
}
.top-bar a { color: var(--text-muted); text-decoration: none; cursor: pointer; }
.top-bar a:hover { color: var(--text-primary); }
/* ββββββββββββββ HEADER ββββββββββββββ */
header {
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
padding: 0 20px;
position: sticky;
top: 0;
z-index: 100;
}
.header-inner {
max-width: 1300px;
margin: 0 auto;
display: flex;
align-items: center;
height: 56px;
gap: 16px;
}
.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; flex-shrink: 0; cursor: pointer; }
.logo-corn { font-size: 22px; font-weight: 900; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-hub { background: var(--orange); color: #000; font-size: 22px; font-weight: 900; padding: 1px 7px; border-radius: 5px; letter-spacing: -0.5px; }
.search-bar { flex: 1; max-width: 500px; display: flex; }
.search-bar input {
width: 100%; padding: 8px 14px; background: #0d0d0d; border: 1px solid #444;
border-radius: 4px 0 0 4px; color: #fff; font-size: 14px; outline: none; font-family: inherit;
}
.search-bar input:focus { border-color: var(--orange); }
.search-bar button {
background: var(--orange); border: none; color: #000; padding: 0 16px;
border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 700; font-size: 16px;
}
.search-bar button:hover { background: var(--orange-hover); }
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.btn-upload {
background: var(--orange); color: #000; border: none; padding: 8px 16px; border-radius: 4px;
font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.btn-upload:hover { background: var(--orange-hover); }
.btn-icon {
background: none; border: none; color: var(--text-secondary); font-size: 20px;
cursor: pointer; padding: 6px; border-radius: 4px; position: relative;
}
.btn-icon:hover { color: var(--text-primary); background: #333; }
.notif-dot {
position: absolute; top: 2px; right: 2px; width: 8px; height: 8px;
background: var(--red); border-radius: 50%;
}
.avatar {
width: 34px; height: 34px; background: var(--orange); border-radius: 50%;
display: flex; align-items: center; justify-content: center; font-weight: 700;
color: #000; font-size: 14px; cursor: pointer;
}
/* ββββββββββββββ DROPDOWNS ββββββββββββββ */
.dropdown-wrap { position: relative; }
.dropdown {
display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px;
min-width: 280px; box-shadow: 0 10px 40px rgba(0,0,0,.6); z-index: 200;
overflow: hidden;
}
.dropdown.active { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.dropdown-item {
padding: 10px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer;
font-size: 13px; color: var(--text-secondary); transition: .15s;
}
.dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.dropdown-item .di-icon { font-size: 18px; width: 24px; text-align: center; }
.dropdown-item .di-text { flex: 1; }
.dropdown-item .di-meta { font-size: 11px; color: var(--text-muted); }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.notif-time { font-size: 11px; color: var(--orange); }
/* ββββββββββββββ CAT NAV ββββββββββββββ */
.cat-nav {
background: var(--bg-primary); border-bottom: 1px solid var(--border);
overflow-x: auto; scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner {
max-width: 1300px; margin: 0 auto; display: flex; padding: 0 20px; gap: 0;
}
.cat-nav a {
color: var(--text-secondary); text-decoration: none; padding: 12px 16px;
font-size: 13px; font-weight: 600; white-space: nowrap;
border-bottom: 2px solid transparent; transition: .2s; cursor: pointer;
}
.cat-nav a:hover, .cat-nav a.active { color: var(--orange); border-bottom-color: var(--orange); text-decoration: none; }
/* ββββββββββββββ MAIN ββββββββββββββ */
main {
max-width: 1300px; margin: 0 auto; padding: 0 20px 40px; min-height: 60vh;
}
/* ββββββββββββββ PREMIUM BANNER ββββββββββββββ */
.premium-banner {
background: linear-gradient(135deg, #1a1000, #2a1800, #1a1000);
border: 1px solid #3a2800; border-radius: 8px;
max-width: 1300px; margin: 16px auto; padding: 16px 24px;
display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.premium-banner .text { display: flex; align-items: center; gap: 12px; }
.premium-banner .corn-icon { font-size: 32px; }
.premium-banner h3 { font-size: 15px; color: var(--orange); margin-bottom: 2px; }
.premium-banner p { font-size: 12px; color: var(--text-secondary); }
.btn-premium {
background: var(--orange); color: #000; border: none; padding: 10px 24px;
border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.btn-premium:hover { background: var(--orange-hover); }
/* ββββββββββββββ SECTION HEADERS ββββββββββββββ */
.section-header {
display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px;
}
.section-header h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-header a { color: var(--text-muted); font-size: 13px; text-decoration: none; cursor: pointer; }
.section-header a:hover { color: var(--orange); }
/* ββββββββββββββ VIDEO GRID ββββββββββββββ */
.video-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px;
}
.video-card { cursor: pointer; transition: transform .15s; }
.video-card:hover { transform: translateY(-3px); }
.thumb-wrap {
position: relative; border-radius: 6px; overflow: hidden;
aspect-ratio: 16/9; background: var(--bg-card);
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duration {
position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.85);
color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
}
.hd-badge {
position: absolute; top: 6px; right: 6px; background: var(--orange);
color: #000; font-size: 9px; font-weight: 900; padding: 2px 5px;
border-radius: 3px; letter-spacing: .5px;
}
.premium-badge {
position: absolute; top: 6px; left: 6px; background: #000;
color: var(--orange); font-size: 9px; font-weight: 900; padding: 2px 5px;
border-radius: 3px; letter-spacing: .5px; border: 1px solid var(--orange);
}
.preview-bar {
position: absolute; bottom: 0; left: 0; height: 3px;
background: var(--orange); width: 0%; transition: width .3s;
}
.video-card:hover .preview-bar { width: 65%; }
.video-info { padding: 8px 2px; }
.video-title {
font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card:hover .video-title { color: var(--orange); }
.video-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.channel-name { color: var(--text-secondary); font-weight: 600; cursor: pointer; }
.channel-name:hover { color: var(--orange); }
.verified { display: inline-flex; align-items: center; gap: 3px; }
.verified::after {
content: 'β'; background: var(--orange); color: #000; font-size: 8px;
width: 14px; height: 14px; border-radius: 50%; display: inline-flex;
align-items: center; justify-content: center; font-weight: 900;
}
.meta-dot { color: var(--text-muted); }
.rating { color: #4caf50; font-weight: 600; }
/* ββββββββββββββ TAGS ββββββββββββββ */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.tag {
background: var(--bg-card); color: var(--text-secondary); padding: 6px 14px;
border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
border: 1px solid var(--border); transition: .2s;
}
.tag:hover, .tag.active { border-color: var(--orange); color: var(--orange); }
/* ββββββββββββββ CHANNELS ROW ββββββββββββββ */
.channels-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.channels-row::-webkit-scrollbar { display: none; }
.channel-card { flex-shrink: 0; text-align: center; cursor: pointer; width: 100px; }
.channel-card:hover .channel-avatar { border-color: var(--orange); }
.channel-avatar {
width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px;
display: flex; align-items: center; justify-content: center; font-size: 32px;
background: var(--bg-card); border: 2px solid var(--border); transition: .2s;
}
.channel-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
/* ββββββββββββββ MODAL ββββββββββββββ */
.modal-overlay {
display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92);
z-index: 999; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
background: var(--bg-secondary); border-radius: 10px; max-width: 850px;
width: 100%; overflow: hidden; animation: modalIn .25s ease; position: relative;
max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-video {
aspect-ratio: 16/9; background: #000; display: flex;
align-items: center; justify-content: center; font-size: 80px; position: relative;
}
.play-btn {
position: absolute; width: 70px; height: 70px; background: rgba(255,144,0,.9);
border-radius: 50%; display: flex; align-items: center; justify-content: center;
cursor: pointer; transition: .2s;
}
.play-btn:hover { transform: scale(1.1); background: var(--orange); }
.play-btn::after { content: ''; border: 16px solid transparent; border-left: 24px solid #000; margin-left: 6px; }
.modal-body { padding: 16px 20px; }
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modal-channel { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.modal-channel span { color: var(--orange); cursor: pointer; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.modal-btn {
background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
padding: 8px 16px; border-radius: 20px; font-size: 13px; cursor: pointer;
display: flex; align-items: center; gap: 6px; font-family: inherit; transition: .15s;
}
.modal-btn:hover { border-color: var(--orange); color: var(--orange); }
.modal-btn.liked { background: var(--green); border-color: var(--green); color: #fff; }
.modal-btn.disliked { background: var(--red); border-color: var(--red); color: #fff; }
.modal-stats { display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary); margin-top: 12px; }
.modal-stats span { display: flex; align-items: center; gap: 4px; }
.modal-desc {
margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.close-modal {
position: absolute; top: 10px; right: 14px; background: rgba(0,0,0,.7);
color: #fff; border: none; font-size: 24px; cursor: pointer;
width: 36px; height: 36px; border-radius: 50%; display: flex;
align-items: center; justify-content: center; z-index: 10;
}
.close-modal:hover { background: var(--orange); color: #000; }
/* ββββββββββββββ UPLOAD MODAL ββββββββββββββ */
.upload-modal .modal { max-width: 550px; }
.upload-zone {
border: 2px dashed var(--border); border-radius: 10px; padding: 50px 30px;
text-align: center; margin: 20px; cursor: pointer; transition: .2s;
}
.upload-zone:hover { border-color: var(--orange); background: rgba(255,144,0,.03); }
.upload-zone .uz-icon { font-size: 48px; margin-bottom: 12px; }
.upload-zone h3 { font-size: 16px; margin-bottom: 6px; }
.upload-zone p { font-size: 12px; color: var(--text-muted); }
.upload-progress { display: none; margin: 20px; }
.progress-bar-bg { background: var(--bg-card); border-radius: 6px; height: 8px; overflow: hidden; }
.progress-bar-fill { background: var(--orange); height: 100%; width: 0%; border-radius: 6px; transition: width .3s; }
.progress-text { text-align: center; margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.upload-success { display: none; text-align: center; padding: 30px; }
.upload-success .us-icon { font-size: 56px; margin-bottom: 12px; }
.upload-success h3 { color: var(--green); margin-bottom: 6px; }
/* ββββββββββββββ PAGE STYLES ββββββββββββββ */
.page-hero {
background: linear-gradient(135deg, #1a1000, #2a1800, #0d0d0d);
border-radius: 10px; padding: 40px; margin: 20px 0; text-align: center;
border: 1px solid #3a2800;
}
.page-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.page-hero h1 .hl { color: var(--orange); }
.page-hero p { font-size: 15px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.content-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
padding: 30px; margin: 20px 0; line-height: 1.8; font-size: 14px; color: var(--text-secondary);
}
.content-card h2 {
font-size: 20px; color: var(--text-primary); margin: 24px 0 12px; font-weight: 700;
display: flex; align-items: center; gap: 8px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { font-size: 16px; color: var(--text-primary); margin: 20px 0 8px; font-weight: 600; }
.content-card p { margin-bottom: 12px; }
.content-card ul { margin: 8px 0 16px 24px; }
.content-card li { margin-bottom: 6px; }
.content-card a { color: var(--orange); }
.content-card .updated { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 20px 0; }
.blog-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
overflow: hidden; cursor: pointer; transition: .2s;
}
.blog-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.blog-thumb {
aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
font-size: 48px; background: linear-gradient(135deg, #1a1000, #2a1800);
}
.blog-body { padding: 16px; }
.blog-tag { font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.blog-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.blog-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.blog-date { font-size: 11px; color: var(--text-muted); }
/* Career cards */
.careers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0; }
.career-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
padding: 20px; transition: .2s; cursor: pointer;
}
.career-card:hover { border-color: var(--orange); }
.career-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.career-card .dept { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.career-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.career-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.career-tags span {
background: var(--bg-card); padding: 3px 10px; border-radius: 12px;
font-size: 11px; color: var(--text-muted); border: 1px solid var(--border);
}
/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 20px 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
width: 100%; padding: 10px 14px; background: var(--bg-primary); border: 1px solid var(--border);
border-radius: 6px; color: var(--text-primary); font-size: 14px; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-primary); }
.btn-submit {
background: var(--orange); color: #000; border: none; padding: 12px 30px;
border-radius: 6px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
.btn-submit:hover { background: var(--orange-hover); }
.contact-info-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 24px;
}
.contact-info-card h3 { font-size: 16px; margin-bottom: 16px; }
.ci-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--text-secondary); }
.ci-item .ci-icon { font-size: 20px; width: 28px; text-align: center; }
.ci-item strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
padding: 20px; text-align: center;
}
.stat-card .stat-num { font-size: 28px; font-weight: 900; color: var(--orange); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
/* Advertise tiers */
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.tier-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px;
padding: 24px; text-align: center; transition: .2s; position: relative; overflow: hidden;
}
.tier-card:hover { border-color: var(--orange); }
.tier-card.featured { border-color: var(--orange); }
.tier-card.featured::before {
content: 'π MOST POPULAR'; position: absolute; top: 0; left: 0; right: 0;
background: var(--orange); color: #000; font-size: 10px; font-weight: 900;
padding: 4px; letter-spacing: 1px;
}
.tier-card.featured { padding-top: 40px; }
.tier-card h3 { font-size: 18px; margin-bottom: 4px; }
.tier-price { font-size: 32px; font-weight: 900; color: var(--orange); margin: 12px 0; }
.tier-price span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.tier-features { list-style: none; text-align: left; margin: 16px 0; font-size: 13px; color: var(--text-secondary); }
.tier-features li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.tier-features li::before { content: 'β
'; }
.btn-tier {
background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.btn-tier:hover, .tier-card.featured .btn-tier { background: var(--orange); color: #000; border-color: var(--orange); }
/* Accessibility features */
.a11y-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 20px 0; }
.a11y-card {
background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 10px; padding: 20px;
}
.a11y-card .a11y-icon { font-size: 28px; margin-bottom: 10px; }
.a11y-card h3 { font-size: 15px; margin-bottom: 6px; }
.a11y-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
/* Channel Page */
.channel-hero {
background: linear-gradient(135deg, #1a1000, #2a1800); border-radius: 10px;
padding: 30px; margin: 20px 0; display: flex; align-items: center; gap: 20px;
border: 1px solid #3a2800;
}
.channel-hero-avatar {
width: 100px; height: 100px; border-radius: 50%; display: flex;
align-items: center; justify-content: center; font-size: 48px;
background: var(--bg-card); border: 3px solid var(--orange); flex-shrink: 0;
}
.channel-hero h1 { font-size: 24px; margin-bottom: 4px; }
.channel-hero .ch-stats { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; margin-top: 6px; }
.btn-subscribe {
background: var(--orange); color: #000; border: none; padding: 8px 20px;
border-radius: 4px; font-weight: 700; font-size: 13px; cursor: pointer; margin-top: 10px; font-family: inherit;
}
.btn-subscribe.subscribed { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
/* Toast */
.toast {
position: fixed; bottom: 20px; right: 20px; background: var(--bg-secondary);
border: 1px solid var(--orange); border-radius: 8px; padding: 12px 20px;
font-size: 13px; color: var(--text-primary); z-index: 1000; transform: translateY(100px);
opacity: 0; transition: .3s; display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateY(0); opacity: 1; }
/* ββββββββββββββ FOOTER ββββββββββββββ */
footer {
background: var(--bg-secondary); border-top: 1px solid var(--border);
padding: 30px 20px; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; cursor: pointer; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { color: var(--text-muted); font-size: 11px; }
.footer-socials { display: flex; justify-content: center; gap: 14px; margin: 14px 0; }
.footer-socials a {
width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card);
display: flex; align-items: center; justify-content: center; font-size: 16px;
border: 1px solid var(--border); transition: .15s; text-decoration: none;
}
.footer-socials a:hover { border-color: var(--orange); background: var(--orange); }
/* ββββββββββββββ SEARCH RESULTS ββββββββββββββ */
.search-results-header { margin: 20px 0 10px; font-size: 14px; color: var(--text-muted); }
.search-results-header span { color: var(--orange); font-weight: 700; }
/* ββββββββββββββ RESPONSIVE ββββββββββββββ */
@media (max-width: 768px) {
.header-inner { gap: 10px; }
.search-bar { max-width: 200px; }
.premium-banner { flex-direction: column; text-align: center; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.header-actions .btn-upload span.ul-text { display: none; }
.contact-grid { grid-template-columns: 1fr; }
.page-hero { padding: 24px; }
.page-hero h1 { font-size: 24px; }
.channel-hero { flex-direction: column; text-align: center; }
}
</style>
</head>
<body>
<!-- TOP BAR -->
<div class="top-bar">
<a onclick="nav('home')">π EN</a>
<a onclick="nav('about')">Help</a>
<a onclick="nav('safety')">Corn Safety</a>
</div>
<!-- HEADER -->
<header>
<div class="header-inner">
<a class="logo" onclick="nav('home')">
<span class="logo-corn">Corn</span><span class="logo-hub">Hub</span>
</a>
<div class="search-bar">
<input type="text" placeholder="Search 6,942,069 ears of corn..." id="searchInput" onkeyup="handleSearch(event)">
<button onclick="performSearch()">π</button>
</div>
<div class="header-actions">
<button class="btn-upload" onclick="openUploadModal()">
<span>β¬</span> <span class="ul-text">Upload</span>
</button>
<div class="dropdown-wrap">
<button class="btn-icon" onclick="toggleDropdown('notifDrop')">π<span class="notif-dot"></span></button>
<div class="dropdown" id="notifDrop">
<div class="dropdown-header">π Notifications</div>
<div class="dropdown-item"><div class="di-icon">π½</div><div class="di-text"><strong>BigCornFarmer</strong> uploaded a new video<br><span class="notif-time">2 minutes ago</span></div></div>
<div class="dropdown-item"><div class="di-icon">π</div><div class="di-text"><strong>Your corn got 1K likes!</strong><br><span class="notif-time">15 minutes ago</span></div></div>
<div class="dropdown-item"><div class="di-icon">π¬</div><div class="di-text"><strong>PopCornKing</strong> commented on your video<br><span class="notif-time">1 hour ago</span></div></div>
<div class="dropdown-item"><div class="di-icon">π</div><div class="di-text"><strong>You earned Corn Connoisseur badge!</strong><br><span class="notif-time">3 hours ago</span></div></div>
<div class="dropdown-divider"></div>
<div class="dropdown-item" style="justify-content:center;color:var(--orange);font-weight:600;">View All Notifications</div>
</div>
</div>
<div class="dropdown-wrap">
<button class="btn-icon" onclick="toggleDropdown('msgDrop')">βοΈ</button>
<div class="dropdown" id="msgDrop">
<div class="dropdown-header">βοΈ Messages</div>
<div class="dropdown-item"><div class="di-icon">π¨βπΎ</div><div class="di-text"><strong>BigCornFarmer</strong><br><span class="di-meta">Hey, want to collab on a shucking video?</span></div></div>
<div class="dropdown-item"><div class="di-icon">πΏ</div><div class="di-text"><strong>PopCornKing</strong><br><span class="di-meta">That popping technique was amazing π€―</span></div></div>
<div class="dropdown-item"><div class="di-icon">π</div><div class="di-text"><strong>RainbowHarvest</strong><br><span class="di-meta">Check out our new multicolored batch!</span></div></div>
<div class="dropdown-divider"></div>
<div class="dropdown-item" style="justify-content:center;color:var(--orange);font-weight:600;">View All Messages</div>
</div>
</div>
<div class="dropdown-wrap">
<div class="avatar" onclick="toggleDropdown('profileDrop')">π½</div>
<div class="dropdown" id="profileDrop">
<div class="dropdown-header" style="display:flex;align-items:center;gap:10px;">
<span style="font-size:24px;">π½</span>
<div><strong>CornLover42</strong><br><span style="font-size:11px;color:var(--text-muted);">Premium Member</span></div>
</div>
<div class="dropdown-item" onclick="nav('profile')"><div class="di-icon">π€</div><div class="di-text">My Profile</div></div>
<div class="dropdown-item"><div class="di-icon">π¬</div><div class="di-text">My Videos</div></div>
<div class="dropdown-item"><div class="di-icon">β€οΈ</div><div class="di-text">Favorites</div></div>
<div class="dropdown-item"><div class="di-icon">π</div><div class="di-text">History</div></div>
<div class="dropdown-item" onclick="nav('premium')"><div class="di-icon">π</div><div class="di-text">CornHub Premium</div></div>
<div class="dropdown-divider"></div>
<div class="dropdown-item"><div class="di-icon">βοΈ</div><div class="di-text">Settings</div></div>
<div class="dropdown-item"><div class="di-icon">πͺ</div><div class="di-text">Sign Out</div></div>
</div>
</div>
</div>
</div>
</header>
<!-- CAT NAV -->
<nav class="cat-nav">
<div class="cat-nav-inner" id="catNav">
<a onclick="nav('home')" data-page="home" class="active">π Home</a>
<a onclick="nav('trending')" data-page="trending">π₯ Trending</a>
<a onclick="nav('mostviewed')" data-page="mostviewed">β Most Viewed</a>
<a onclick="nav('toprated')" data-page="toprated">π Top Rated</a>
<a onclick="nav('newest')" data-page="newest">π Newest</a>
<a onclick="nav('channels')" data-page="channels">π¬ Channels</a>
<a onclick="nav('categories')" data-page="categories">π· Categories</a>
<a onclick="nav('premium')" data-page="premium">π½ Premium</a>
<a onclick="nav('cornstars')" data-page="cornstars">πΈ Cornstars</a>
<a onclick="nav('community')" data-page="community">πͺ Community</a>
</div>
</nav>
<!-- MAIN CONTENT -->
<main id="mainContent"></main>
<!-- FOOTER -->
<footer>
<div class="footer-links">
<a onclick="nav('about')">About</a>
<a onclick="nav('blog')">Blog</a>
<a onclick="nav('safety')">Corn Safety</a>
<a onclick="nav('content-policy')">Content Policy</a>
<a onclick="nav('privacy')">Privacy</a>
<a onclick="nav('terms')">Terms</a>
<a onclick="nav('accessibility')">Accessibility</a>
<a onclick="nav('advertise')">Advertise</a>
<a onclick="nav('contact')">Contact</a>
<a onclick="nav('careers')">Careers (We're Planting!)</a>
</div>
<div class="footer-socials">
<a href="#" title="Twitter">π¦</a>
<a href="#" title="Instagram">π·</a>
<a href="#" title="TikTok">π΅</a>
<a href="#" title="Reddit">π€</a>
<a href="#" title="YouTube">πΊ</a>
</div>
<p class="footer-copy">Β© 2026 CornHub. All rights reserved. π½ Made with love for corn.</p>
<p style="font-size:10px;color:var(--text-muted);margin-top:6px;">A project by <a href="https://liveupx.com" target="_blank" style="color:var(--orange);">Liveupx.com</a> Β· Hosted on <a href="https://xhost.live" target="_blank" style="color:var(--orange);">xHost</a></p>
</footer>
<!-- VIDEO MODAL -->
<div class="modal-overlay" id="videoModal" onclick="if(event.target===this)closeVideoModal()">
<div class="modal">
<button class="close-modal" onclick="closeVideoModal()">Γ</button>
<div class="modal-video" id="modalVideo">
<div class="play-btn" id="playBtn"></div>
<div id="playingState" style="display:none;flex-direction:column;align-items:center;gap:8px;">
<span style="font-size:60px;" id="playEmoji">π½</span>
<span style="font-size:14px;color:var(--orange);font-weight:700;">Now Playing...</span>
</div>
</div>
<div class="modal-body">
<div class="modal-title" id="modalTitle"></div>
<div class="modal-channel" id="modalChannelInfo"></div>
<div class="modal-actions" id="modalActions"></div>
<div class="modal-stats" id="modalStats"></div>
<div class="modal-desc" id="modalDesc"></div>
</div>
</div>
</div>
<!-- UPLOAD MODAL -->
<div class="modal-overlay upload-modal" id="uploadModal" onclick="if(event.target===this)closeUploadModal()">
<div class="modal">
<button class="close-modal" onclick="closeUploadModal()">Γ</button>
<div class="dropdown-header" style="font-size:16px;">β¬ Upload Your Corn</div>
<div class="upload-zone" id="uploadZone" onclick="simulateUpload()">
<div class="uz-icon">π½</div>
<h3>Drag & drop your corn here</h3>
<p>or click to browse your harvest (MP4, MOV, AVI Β· Max 4.2GB)</p>
</div>
<div class="upload-progress" id="uploadProgress">
<p style="text-align:center;margin-bottom:12px;font-weight:600;">π½ Uploading: amazing_corn_footage.mp4</p>
<div class="progress-bar-bg"><div class="progress-bar-fill" id="progressFill"></div></div>
<p class="progress-text" id="progressText">0%</p>
</div>
<div class="upload-success" id="uploadSuccess">
<div class="us-icon">β
</div>
<h3>Upload Complete!</h3>
<p style="color:var(--text-muted);font-size:13px;margin-top:6px;">Your corn is now being processed and will be available shortly.</p>
<button class="btn-premium" style="margin-top:16px;" onclick="closeUploadModal()">Done</button>
</div>
</div>
</div>
<!-- TOAST -->
<div class="toast" id="toast"></div>
<script>
// ββββββββββββββββ DATA ββββββββββββββββ
const videos = [
{ id:0, title:"Farmer Gets Caught With Massive Ear β You Won't Believe the Size π³", views:"14.2M", viewsNum:14200000, likes:"98K", rating:"97%", ratingNum:97, duration:"12:34", emoji:"π½", channel:"BigCornFarmer", hd:true, desc:"Watch as Farmer Jenkins reveals the biggest ear of corn ever grown in Nebraska. This absolute unit measures over 18 inches and weighs nearly 3 pounds. Agricultural experts are stunned.", date:"2 days ago" },
{ id:1, title:"Hot Buttered Corn on the Cob β Slow and Sensual Technique", views:"8.7M", viewsNum:8700000, likes:"72K", rating:"95%", ratingNum:95, duration:"8:21", emoji:"π§", channel:"ButterLover69", hd:true, desc:"The ultimate guide to perfectly buttering your corn. Learn the slow-roll technique that chefs don't want you to know about. Real Wisconsin butter only.", date:"5 days ago" },
{ id:2, title:"First Time Shucking β She Had No Idea What She Was Doing", views:"21.3M", viewsNum:21300000, likes:"142K", rating:"98%", ratingNum:98, duration:"15:07", emoji:"π€", channel:"CornVirgin", hd:true, desc:"City girl visits a farm for the first time and attempts to shuck corn. Hilarity ensues as she struggles with the silk. By the end, she's a natural.", date:"1 week ago" },
{ id:3, title:"ASMR: Aggressive Corn Eating β NO TALKING π€«", views:"5.1M", viewsNum:5100000, likes:"38K", rating:"91%", ratingNum:91, duration:"22:15", emoji:"π§", channel:"ASMRFarm", hd:false, desc:"Pure corn eating sounds for relaxation. No talking, no music β just the satisfying crunch of perfectly roasted corn. Put on headphones for the full experience.", date:"3 days ago" },
{ id:4, title:"Naughty Cornfield Adventures β Caught Between the Rows", views:"11.8M", viewsNum:11800000, likes:"89K", rating:"96%", ratingNum:96, duration:"10:45", emoji:"πΎ", channel:"FieldTrips", hd:true, desc:"Two adventurous friends get completely lost in the world's largest corn maze. 400 acres of pure cornfield chaos. Will they make it out before sunset?", date:"4 days ago" },
{ id:5, title:"Thick, Juicy Corn Chowder β Step by Step Instructions", views:"3.4M", viewsNum:3400000, likes:"28K", rating:"94%", ratingNum:94, duration:"18:33", emoji:"π²", channel:"ChowderDaddy", hd:false, desc:"Grandma's secret corn chowder recipe revealed for the first time. Heavy cream, fresh sweet corn, bacon bits, and a secret ingredient that will blow your mind.", date:"1 week ago" },
{ id:6, title:"POV: You're a Corn Kernel Going Through the Popper πΏ", views:"45.2M", viewsNum:45200000, likes:"312K", rating:"99%", ratingNum:99, duration:"3:14", emoji:"πΏ", channel:"PopCornKing", hd:true, desc:"GoPro strapped to a single kernel as it goes from bag to popper to bowl. The most intense 3 minutes of your life. You'll never look at popcorn the same way.", date:"3 days ago" },
{ id:7, title:"Two Farmers One Cornfield β Things Get Intense at Harvest", views:"7.6M", viewsNum:7600000, likes:"56K", rating:"93%", ratingNum:93, duration:"14:28", emoji:"π¨βπΎ", channel:"DualHarvest", hd:false, desc:"Rival farmers race to harvest the same 200-acre cornfield. Only one combine harvester. Who will claim the golden bounty? Drama guaranteed.", date:"6 days ago" },
{ id:8, title:"Step-Farmer Teaches Step-Son How to Properly Husk π½", views:"32.1M", viewsNum:32100000, likes:"201K", rating:"97%", ratingNum:97, duration:"11:52", emoji:"π¨βπ¦", channel:"FamilyFarm", hd:true, desc:"Wholesome family bonding as a new step-father teaches his step-son the art of corn husking. Bring tissues β the ending will make you cry happy tears.", date:"2 days ago" },
{ id:9, title:"Barely Legal β This Corn Was Picked ONE Day Before Regulations", views:"18.9M", viewsNum:18900000, likes:"134K", rating:"96%", ratingNum:96, duration:"7:38", emoji:"βοΈ", channel:"LegalCorn", hd:false, desc:"New USDA regulations required all corn to be picked after 90 days. This batch was harvested at exactly 89 days. Was it too young? Experts weigh in.", date:"5 days ago" },
{ id:10, title:"Behind the Scenes at a REAL Corn Processing Plant π±", views:"6.3M", viewsNum:6300000, likes:"47K", rating:"92%", ratingNum:92, duration:"25:11", emoji:"π", channel:"IndustrialCorn", hd:false, desc:"Exclusive factory tour showing how your corn goes from field to can. Over 2 million ears processed daily. The machinery is absolutely mesmerizing.", date:"1 week ago" },
{ id:11, title:"Exotic Multicolored Corn β Nature's Most Beautiful Creation", views:"9.2M", viewsNum:9200000, likes:"81K", rating:"98%", ratingNum:98, duration:"6:49", emoji:"π", channel:"RainbowHarvest", hd:true, desc:"Glass Gem corn in all its glory. Every kernel is a different color β ruby red, deep purple, ocean blue, emerald green. This is nature's stained glass window.", date:"4 days ago" },
{ id:12, title:"GONE WRONG: Electric Corn Husker Strips Everything Off π±", views:"28.4M", viewsNum:28400000, likes:"195K", rating:"95%", ratingNum:95, duration:"4:20", emoji:"β‘", channel:"MachineFarm", hd:true, desc:"Testing the new Turbo Shuck 3000 industrial corn husker. It was supposed to just remove the husk, but things escalated quickly. Safety goggles required.", date:"1 day ago" },
{ id:13, title:"Corn Oil Massage β Full Body Glazing Tutorial", views:"4.8M", viewsNum:4800000, likes:"35K", rating:"90%", ratingNum:90, duration:"19:55", emoji:"π", channel:"GlazeQueen", hd:false, desc:"Discover the ancient art of corn oil aromatherapy massage. Rich in vitamin E and antioxidants, corn oil is the ultimate natural moisturizer. Full tutorial.", date:"3 days ago" },
{ id:14, title:"The Forbidden Corn Maze β Nobody Makes It to the End", views:"15.7M", viewsNum:15700000, likes:"112K", rating:"97%", ratingNum:97, duration:"13:22", emoji:"π", channel:"MazeRunner", hd:true, desc:"The legendary Richardson Corn Maze in Spring Grove, IL β 28 acres, 11 miles of paths, and a 0.3% completion rate. We attempted the impossible.", date:"6 days ago" },
{ id:15, title:"Amateur Farmer's FIRST Harvest β Raw & Unfiltered", views:"2.9M", viewsNum:2900000, likes:"21K", rating:"89%", ratingNum:89, duration:"28:40", emoji:"π°", channel:"NewbieFarmer", hd:false, desc:"I quit my tech job to become a corn farmer. This is the unfiltered footage of my very first harvest. Spoiler: I cried three times.", date:"2 weeks ago" },
{ id:16, title:"Dirty Talk About Soil pH Levels β Gets Really Deep π¦", views:"7.1M", viewsNum:7100000, likes:"53K", rating:"94%", ratingNum:94, duration:"16:18", emoji:"π±", channel:"SoilScience", hd:true, desc:"Dr. Amanda Green gets down and dirty with soil chemistry. Optimal pH ranges, nitrogen cycles, and why your corn isn't reaching its full potential.", date:"5 days ago" },
{ id:17, title:"Compilation: Best Corn Pops of 2025 β Ultimate Satisfaction", views:"41.6M", viewsNum:41600000, likes:"287K", rating:"99%", ratingNum:99, duration:"32:00", emoji:"π¬", channel:"BestOfCorn", hd:true, desc:"The top 100 most satisfying corn popping clips of the year, all in one place. Slow motion, 4K, and some pops so good they should be illegal.", date:"1 day ago" },
{ id:18, title:"Corn Dogs: A Forbidden Love Story Between Corn and Hot Dog", views:"12.4M", viewsNum:12400000, likes:"91K", rating:"95%", ratingNum:95, duration:"9:15", emoji:"π", channel:"StreetFood", hd:true, desc:"The romantic tale of how cornmeal batter met the humble hot dog at a Texas state fair in 1942. A love story for the ages. Warning: you will get hungry.", date:"3 days ago" },
{ id:19, title:"Extreme Cornhole Championship 2025 β Grand Finals", views:"16.8M", viewsNum:16800000, likes:"118K", rating:"96%", ratingNum:96, duration:"45:20", emoji:"π―", channel:"CornSports", hd:true, desc:"The world's best cornhole players battle it out for the $100,000 grand prize. Incredible throws, dramatic misses, and the most intense beanbag action ever filmed.", date:"4 days ago" },
{ id:20, title:"Whispering Sweet Nothings To My Corn Plants β Growth Hack", views:"3.8M", viewsNum:3800000, likes:"32K", rating:"91%", ratingNum:91, duration:"11:30", emoji:"π£οΈ", channel:"CornWhisperer", hd:false, desc:"Scientific experiment: does talking to your corn make it grow faster? After 90 days of daily affirmations, the results are absolutely unbelievable.", date:"1 week ago" },
{ id:21, title:"Japanese Street Corn β The Yakitori Master's Secret Technique", views:"19.5M", viewsNum:19500000, likes:"156K", rating:"98%", ratingNum:98, duration:"7:42", emoji:"π―π΅", channel:"TokyoGrill", hd:true, desc:"Master Tanaka has been grilling corn on the streets of Osaka for 47 years. His miso butter glaze recipe is finally revealed. Your taste buds will thank you.", date:"2 days ago" },
{ id:22, title:"I Filled My Entire Swimming Pool With Popcorn π", views:"67.3M", viewsNum:67300000, likes:"421K", rating:"97%", ratingNum:97, duration:"18:44", emoji:"π", channel:"CrazyFarmer", hd:true, desc:"It took 14,000 pounds of popcorn to fill a standard swimming pool. Then we jumped in. Then the neighbors called the cops. Worth it.", date:"1 day ago" },
{ id:23, title:"Drone Footage of Corn Fields at Golden Hour β 4K Relaxation", views:"8.1M", viewsNum:8100000, likes:"67K", rating:"96%", ratingNum:96, duration:"60:00", emoji:"π", channel:"AerialFarm", hd:true, desc:"One hour of breathtaking aerial footage over Iowa's finest cornfields during golden hour. Perfect for meditation, sleep, or just appreciating nature's beauty.", date:"6 days ago" },
];
const channels = [
{ name:"BigCornFarmer", emoji:"π¨βπΎ", subs:"2.4M", videos:342, desc:"The internet's most famous corn farmer. Nebraska born, corn bred." },
{ name:"ButterLover69", emoji:"π§", subs:"1.8M", videos:215, desc:"Everything tastes better with butter. Especially corn." },
{ name:"PopCornKing", emoji:"πΏ", subs:"5.1M", videos:127, desc:"Popping corn in ways you never thought possible." },
{ name:"FamilyFarm", emoji:"π‘", subs:"3.2M", videos:89, desc:"Wholesome family farming content for the whole family." },
{ name:"RainbowHarvest", emoji:"π", subs:"980K", videos:156, desc:"Exotic and colorful corn varieties from around the world." },
{ name:"MazeRunner", emoji:"π", subs:"1.5M", videos:78, desc:"We conquer the world's most impossible corn mazes." },
{ name:"SoilScience", emoji:"π±", subs:"670K", videos:203, desc:"Dr. Amanda Green makes soil chemistry actually interesting." },
{ name:"ChowderDaddy", emoji:"π²", subs:"2.1M", videos:312, desc:"Corn-based recipes that'll make your grandma jealous." },
{ name:"BestOfCorn", emoji:"π", subs:"4.7M", videos:56, desc:"Curated compilations of the best corn content on the internet." },
{ name:"CornVirgin", emoji:"πΎ", subs:"1.2M", videos:34, desc:"City folks experiencing farm life for the first time." },
{ name:"MachineFarm", emoji:"β‘", subs:"3.8M", videos:189, desc:"Heavy machinery meets corn. What could go wrong?" },
{ name:"GlazeQueen", emoji:"π", subs:"890K", videos:145, desc:"Corn oil beauty treatments and wellness content." },
{ name:"StreetFood", emoji:"π", subs:"2.6M", videos:267, desc:"The best corn-based street food from every continent." },
{ name:"CornSports", emoji:"π―", subs:"1.9M", videos:98, desc:"Professional cornhole tournaments and corn-based athletics." },
{ name:"CrazyFarmer", emoji:"π€ͺ", subs:"8.2M", videos:45, desc:"Extreme corn stunts. Don't try this at home (or on your farm)." },
{ name:"TokyoGrill", emoji:"π―π΅", subs:"3.4M", videos:178, desc:"Japanese corn cuisine from the streets of Osaka and Tokyo." },
{ name:"ASMRFarm", emoji:"π§", subs:"1.1M", videos:234, desc:"Relaxing corn sounds for sleep, study, and stress relief." },
{ name:"AerialFarm", emoji:"π", subs:"750K", videos:67, desc:"Stunning drone footage of the world's most beautiful farms." },
];
const categories = [
{ name:"Sweet Corn", emoji:"π½", count:"420K" },
{ name:"Popcorn", emoji:"πΏ", count:"380K" },
{ name:"Grilled Corn", emoji:"π₯", count:"290K" },
{ name:"Corn Maze", emoji:"π", count:"175K" },
{ name:"ASMR", emoji:"π§", count:"210K" },
{ name:"Recipes", emoji:"π²", count:"345K" },
{ name:"Farming", emoji:"π", count:"520K" },
{ name:"Cornhole", emoji:"π―", count:"145K" },
{ name:"Baby Corn", emoji:"π₯’", count:"89K" },
{ name:"Elote", emoji:"π²π½", count:"265K" },
{ name:"Kettle Corn", emoji:"πͺ", count:"125K" },
{ name:"Cornbread", emoji:"π", count:"198K" },
{ name:"Industrial", emoji:"π", count:"156K" },
{ name:"Organic", emoji:"πΏ", count:"234K" },
{ name:"Multicolored", emoji:"π", count:"178K" },
{ name:"Butter Techniques", emoji:"π§", count:"302K" },
{ name:"Corn Dogs", emoji:"π", count:"167K" },
{ name:"Science", emoji:"π¬", count:"98K" },
{ name:"Drone Footage", emoji:"π", count:"112K" },
{ name:"Challenges", emoji:"π", count:"445K" },
];
const tags = ["Sweet Corn","Butter","Popcorn","ASMR","Harvest","Organic","GMO-Free","Cornfield","Shucking","Grilled","Maze","Elote","Creamed","Husking","Baby Corn","Kettle Corn","Cornbread","Multicolored","Farm Fresh","Chowder"];
const gradients = [
'linear-gradient(135deg,#2d1b00,#4a3000,#1a1200)',
'linear-gradient(135deg,#1b2d00,#304a00,#121a00)',
'linear-gradient(135deg,#2d2400,#4a3d00,#1a1700)',
'linear-gradient(135deg,#002d1b,#004a30,#001a12)',
'linear-gradient(135deg,#2d0024,#4a003d,#1a0017)',
'linear-gradient(135deg,#00172d,#00274a,#00101a)',
];
// ββββββββββββββββ HELPERS ββββββββββββββββ
function getGrad(i) { return gradients[i % gradients.length]; }
function shuffle(arr) { return [...arr].sort(() => Math.random() - 0.5); }
function videoCardHTML(v) {
return `<div class="video-card" onclick="openVideoModal(${v.id})">
<div class="thumb-wrap">
<div style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:56px;background:${getGrad(v.id)};">${v.emoji}</div>
<span class="duration">${v.duration}</span>
${v.hd ? '<span class="hd-badge">4K</span>' : ''}
<div class="preview-bar"></div>
</div>
<div class="video-info">
<div class="video-title">${v.title}</div>
<div class="video-meta">
<span class="channel-name verified" onclick="event.stopPropagation();nav('channel',{name:'${v.channel}'})">${v.channel}</span>
<span class="meta-dot">Β·</span><span>${v.views} views</span>
<span class="meta-dot">Β·</span><span>${v.date}</span>
<span class="meta-dot">Β·</span><span class="rating">π ${v.rating}</span>
</div>
</div>
</div>`;
}
function videoGridHTML(vids) { return `<div class="video-grid">${vids.map(videoCardHTML).join('')}</div>`; }
function showToast(msg) {
const t = document.getElementById('toast');
t.innerHTML = msg;
t.classList.add('show');
setTimeout(() => t.classList.remove('show'), 2500);
}
// ββββββββββββββββ NAVIGATION ββββββββββββββββ
let currentPage = 'home';
function nav(page, data) {
currentPage = page;
closeAllDropdowns();
window.scrollTo({ top: 0, behavior: 'smooth' });
// Update cat nav active state
document.querySelectorAll('.cat-nav a').forEach(a => {
a.classList.toggle('active', a.dataset.page === page);
});
const main = document.getElementById('mainContent');
const pages = {
home: renderHome,
trending: () => renderVideoPage('π₯ Trending Right Now', videos.slice().sort((a,b) => b.viewsNum - a.viewsNum)),
mostviewed: () => renderVideoPage('β Most Viewed of All Time', videos.slice().sort((a,b) => b.viewsNum - a.viewsNum)),
toprated: () => renderVideoPage('π Top Rated Corn', videos.slice().sort((a,b) => b.ratingNum - a.ratingNum)),
newest: () => renderVideoPage('π Newest Uploads', shuffle(videos)),
channels: renderChannelsPage,
categories: renderCategoriesPage,
premium: renderPremiumPage,
cornstars: renderCornstarsPage,
community: renderCommunityPage,
about: renderAboutPage,
blog: renderBlogPage,
safety: renderSafetyPage,
'content-policy': renderContentPolicyPage,
privacy: renderPrivacyPage,
terms: renderTermsPage,
accessibility: renderAccessibilityPage,
advertise: renderAdvertisePage,
contact: renderContactPage,
careers: renderCareersPage,
channel: () => renderChannelDetail(data),
search: () => renderSearchResults(data),
profile: renderProfilePage,
};
(pages[page] || renderHome)();
}
// ββββββββββββββββ HOME ββββββββββββββββ
function renderHome() {
const main = document.getElementById('mainContent');
const s1 = shuffle(videos).slice(0,6);
const s2 = shuffle(videos).slice(0,6);
const s3 = shuffle(videos).slice(0,6);
main.innerHTML = `
<div class="premium-banner">
<div class="text"><div class="corn-icon">π½</div><div>
<h3>π₯ Try CornHub Premium β No Ads, Unlimited Buttering</h3>
<p>Get exclusive 4K corn content, early harvest access, and ad-free shucking. Start your free 7-day trial!</p>
</div></div>
<button class="btn-premium" onclick="nav('premium')">GO PREMIUM</button>
</div>
<div class="section-header"><h2>πΎ Popular Channels</h2><a onclick="nav('channels')">See all β</a></div>
<div class="channels-row">${channels.slice(0,12).map(c => `
<div class="channel-card" onclick="nav('channel',{name:'${c.name}'})">
<div class="channel-avatar">${c.emoji}</div>
<div class="channel-label">${c.name}</div>
</div>`).join('')}
</div>
<div class="tags-row">${tags.map(t => `<span class="tag" onclick="performSearchFor('${t}')">${t}</span>`).join('')}</div>
<div class="section-header"><h2>π₯ Trending in Your Country</h2><a onclick="nav('trending')">See all β</a></div>
${videoGridHTML(s1)}
<div class="section-header"><h2>π Recommended For You</h2><a onclick="nav('mostviewed')">See all β</a></div>
${videoGridHTML(s2)}
<div class="section-header"><h2>β Recently Featured</h2><a onclick="nav('newest')">See all β</a></div>
${videoGridHTML(s3)}
`;
}
// ββββββββββββββββ VIDEO LIST PAGES ββββββββββββββββ
function renderVideoPage(title, vids) {
document.getElementById('mainContent').innerHTML = `
<div class="section-header"><h2>${title}</h2></div>
<div class="tags-row">${tags.map(t => `<span class="tag" onclick="performSearchFor('${t}')">${t}</span>`).join('')}</div>
${videoGridHTML(vids)}
`;
}
// ββββββββββββββββ CHANNELS PAGE ββββββββββββββββ
function renderChannelsPage() {
document.getElementById('mainContent').innerHTML = `
<div class="page-hero"><h1>π¬ All <span class="hl">Channels</span></h1><p>Browse the finest corn content creators on the internet.</p></div>
<div class="video-grid">${channels.map(c => `
<div class="video-card" onclick="nav('channel',{name:'${c.name}'})">
<div class="thumb-wrap" style="display:flex;align-items:center;justify-content:center;font-size:64px;background:${getGrad(channels.indexOf(c))};">
${c.emoji}
</div>
<div class="video-info">
<div class="video-title">${c.name}</div>
<div class="video-meta"><span>${c.subs} subscribers</span><span class="meta-dot">Β·</span><span>${c.videos} videos</span></div>
<div style="font-size:12px;color:var(--text-muted);margin-top:4px;">${c.desc}</div>
</div>
</div>`).join('')}
</div>
`;
}
// ββββββββββββββββ CHANNEL DETAIL ββββββββββββββββ
function renderChannelDetail(data) {
const ch = channels.find(c => c.name === data?.name) || channels[0];
const chVids = videos.filter(v => v.channel === ch.name);
const otherVids = chVids.length < 3 ? shuffle(videos).slice(0,6) : chVids;
document.getElementById('mainContent').innerHTML = `
<div class="channel-hero">
<div class="channel-hero-avatar">${ch.emoji}</div>
<div>
<h1 class="verified">${ch.name}</h1>
<p style="color:var(--text-secondary);font-size:13px;margin-top:4px;">${ch.desc}</p>
<div class="ch-stats"><span>${ch.subs} subscribers</span><span>${ch.videos} videos</span><span>Joined 2019</span></div>
<button class="btn-subscribe" onclick="this.classList.toggle('subscribed');this.textContent=this.classList.contains('subscribed')?'β Subscribed':'Subscribe';showToast(this.classList.contains('subscribed')?'π½ Subscribed to ${ch.name}!':'Unsubscribed')">Subscribe</button>
</div>
</div>
<div class="section-header"><h2>πΉ Videos</h2></div>
${videoGridHTML(otherVids)}
`;
}
// ββββββββββββββββ CATEGORIES ββββββββββββββββ
function renderCategoriesPage() {
document.getElementById('mainContent').innerHTML = `
<div class="page-hero"><h1>π· <span class="hl">Categories</span></h1><p>Find your favorite type of corn content.</p></div>
<div class="video-grid">${categories.map((c,i) => `
<div class="video-card" onclick="performSearchFor('${c.name}')">
<div class="thumb-wrap" style="display:flex;align-items:center;justify-content:center;font-size:56px;background:${getGrad(i)};">
${c.emoji}
</div>
<div class="video-info">
<div class="video-title">${c.name}</div>
<div class="video-meta"><span>${c.count} videos</span></div>
</div>
</div>`).join('')}
</div>
`;
}
// ββββββββββββββββ PREMIUM ββββββββββββββββ
function renderPremiumPage() {
document.getElementById('mainContent').innerHTML = `
<div class="page-hero">
<h1>π CornHub <span class="hl">Premium</span></h1>
<p>Unlock the ultimate corn experience. No ads. No limits. Just pure, uninterrupted corn.</p>
</div>
<div class="stats-row">
<div class="stat-card"><div class="stat-num">4K</div><div class="stat-label">Ultra HD Corn</div></div>
<div class="stat-card"><div class="stat-num">0</div><div class="stat-label">Advertisements</div></div>
<div class="stat-card"><div class="stat-num">β</div><div class="stat-label">Downloads</div></div>
<div class="stat-card"><div class="stat-num">24/7</div><div class="stat-label">Early Access</div></div>
</div>
<div class="tiers-grid">
<div class="tier-card">
<h3>π½ Kernel</h3><p style="color:var(--text-muted);font-size:12px;">For casual corn fans</p>
<div class="tier-price">$4.99<span>/mo</span></div>
<ul class="tier-features"><li>Ad-free browsing</li><li>720p streaming</li><li>5 downloads/month</li><li>Basic corn analytics</li></ul>
<button class="btn-tier" onclick="showToast('π½ Welcome to Kernel tier!')">Get Kernel</button>
</div>
<div class="tier-card featured">
<h3>π½π½ Full Cob</h3><p style="color:var(--text-muted);font-size:12px;">For serious enthusiasts</p>
<div class="tier-price">$9.99<span>/mo</span></div>
<ul class="tier-features"><li>Everything in Kernel</li><li>4K Ultra HD streaming</li><li>Unlimited downloads</li><li>Early harvest access</li><li>Exclusive cornstar content</li></ul>
<button class="btn-tier" onclick="showToast('π½π½ Welcome to Full Cob!')">Get Full Cob</button>
</div>
<div class="tier-card">
<h3>π½π½π½ Bushel</h3><p style="color:var(--text-muted);font-size:12px;">For professionals</p>
<div class="tier-price">$19.99<span>/mo</span></div>
<ul class="tier-features"><li>Everything in Full Cob</li><li>8K streaming (where available)</li><li>Creator analytics dashboard</li><li>Priority customer support</li><li>Annual corn convention tickets</li><li>Custom corn emoji pack</li></ul>
<button class="btn-tier" onclick="showToast('π½π½π½ Welcome to Bushel tier!')">Get Bushel</button>
</div>
</div>
`;
}
// ββββββββββββββββ CORNSTARS ββββββββββββββββ
function renderCornstarsPage() {
document.getElementById('mainContent').innerHTML = `
<div class="page-hero"><h1>πΈ <span class="hl">Cornstars</span></h1><p>The most famous corn personalities on the internet.</p></div>
<div class="video-grid">${channels.slice(0,12).map((c,i) => `
<div class="video-card" onclick="nav('channel',{name:'${c.name}'})">
<div class="thumb-wrap" style="display:flex;align-items:center;justify-content:center;font-size:64px;background:${getGrad(i)};">
${c.emoji}
</div>
<div class="video-info">
<div class="video-title verified">${c.name}</div>
<div class="video-meta"><span>${c.subs} subscribers</span><span class="meta-dot">Β·</span><span>${c.videos} videos</span></div>
<div style="font-size:12px;color:var(--text-muted);margin-top:4px;">${c.desc}</div>
</div>
</div>`).join('')}
</div>
`;
}
// ββββββββββββββββ COMMUNITY ββββββββββββββββ
function renderCommunityPage() {
const posts = [
{ user:"CornLover42", emoji:"π½", text:"Just harvested my first batch of Silver Queen! Any tips for next season?", likes:234, comments:45, time:"2h ago" },
{ user:"PopCornKing", emoji:"πΏ", text:"HOT TAKE: Microwave popcorn is valid and I'm tired of pretending it's not π€β¬οΈ", likes:1892, comments:312, time:"4h ago" },
{ user:"FarmerJane", emoji:"π©βπΎ", text:"My corn grew 7 feet tall this year! Photo dump incoming πΈ", likes:567, comments:89, time:"6h ago" },
{ user:"ButterLover69", emoji:"π§", text:"Unpopular opinion: Margarine on corn is a crime against humanity", likes:3421, comments:567, time:"8h ago" },
{ user:"MazeRunner", emoji:"π", text:"We're building the world's largest corn maze. Looking for volunteers to get lost!", likes:892, comments:134, time:"12h ago" },
{ user:"SoilScience", emoji:"π±", text:"PSA: If your corn leaves are turning yellow, check your nitrogen levels FIRST", likes:445, comments:67, time:"1d ago" },
];
document.getElementById('mainContent').innerHTML = `
<div class="page-hero"><h1>πͺ <span class="hl">Community</span></h1><p>Join the conversation with millions of corn enthusiasts worldwide.</p></div>
<div class="stats-row">
<div class="stat-card"><div class="stat-num">4.2M</div><div class="stat-label">Members</div></div>
<div class="stat-card"><div class="stat-num">12K</div><div class="stat-label">Posts Today</div></div>
<div class="stat-card"><div class="stat-num">890</div><div class="stat-label">Online Now</div></div>
<div class="stat-card"><div class="stat-num">156</div><div class="stat-label">Countries</div></div>
</div>
${posts.map(p => `
<div class="content-card" style="margin:12px 0;padding:16px 20px;">
<div style="display:flex;align-items:center;gap:10px;margin-bottom:10px;">
<div style="width:36px;height:36px;border-radius:50%;background:var(--bg-card);display:flex;align-items:center;justify-content:center;font-size:18px;">${p.emoji}</div>
<div><strong>${p.user}</strong><br><span style="font-size:11px;color:var(--text-muted);">${p.time}</span></div>
</div>
<p style="font-size:14px;color:var(--text-primary);margin-bottom:12px;">${p.text}</p>
<div style="display:flex;gap:16px;font-size:12px;color:var(--text-muted);">
<span style="cursor:pointer;" onclick="this.style.color='var(--orange)';this.textContent='π '+(${p.likes}+1)">π ${p.likes}</span>
<span>π¬ ${p.comments}</span>