-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
3339 lines (3051 loc) · 180 KB
/
Copy pathindex.html
File metadata and controls
3339 lines (3051 loc) · 180 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, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="apple-mobile-web-app-title" content="NoSuggest"/>
<meta name="theme-color" content="#0a0a0a"/>
<title>NoSuggest – Watch YouTube Without Recommendations or Distractions</title>
<meta name="description" content="NoSuggest is a free, privacy-first way to watch YouTube — just the channels you choose, no algorithm, no Shorts, no autoplay, no sign-in required."/>
<link rel="canonical" href="https://www.nosuggest.com/" />
<link rel="me" href="https://mastodon.social/@varun_m"/>
<!-- Open Graph -->
<meta property="og:title" content="NoSuggest – Watch YouTube Without Recommendations or Distractions"/>
<meta property="og:description" content="A free, privacy-first PWA that removes YouTube's algorithm — no recommendations, no Shorts, no autoplay, no sign-in."/>
<meta property="og:url" content="https://www.nosuggest.com/"/>
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="NoSuggest"/>
<meta property="og:image" content="https://www.nosuggest.com/og-image.png"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="NoSuggest – Watch YouTube Without Recommendations or Distractions"/>
<meta name="twitter:description" content="A free, privacy-first PWA that removes YouTube's algorithm — no recommendations, no Shorts, no autoplay, no sign-in."/>
<meta name="twitter:image" content="https://www.nosuggest.com/og-image.png"/>
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "NoSuggest",
"url": "https://www.nosuggest.com/",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "Any (PWA)",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"description": "A free, privacy-first PWA that removes YouTube's algorithmic recommendations, Shorts, autoplay, and sign-in requirements."
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is NoSuggest?",
"acceptedAnswer": {
"@type": "Answer",
"text": "NoSuggest is a free, distraction-free YouTube client. You follow only the channels you care about and see just their latest videos — no recommendations, no Shorts, no auto-play, no trending feed, no sign-in required. Videos play inside the official YouTube player, so content creators receive all their credits and analytics exactly as they normally would. NoSuggest does not store, download, or host any videos. YouTube ads placed by the official player are not blocked — creators earn from them as usual. NoSuggest itself will never show ads and will remain free forever. The only source of revenue is voluntary donations from users who wish to support the project. NoSuggest collects no personal data, runs no ad trackers, and builds no user profiles. We use Cloudflare's cookie-less Web Analytics for aggregate visit counts only, which can't identify individuals or track anyone across sites. Fonts are loaded from Google Fonts, and video playback uses YouTube's official player — both are Google's own services and follow Google's own data practices, the same as they would on any site."
}
},
{
"@type": "Question",
"name": "How does Kids Mode work?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Kids Mode limits NoSuggest to a safe, distraction-free experience for children. When enabled, the Search tab and Add Channels feature are hidden so kids can only watch videos from channels a parent has already approved. To prevent accidental taps, the donation banner and donation link in Settings are also hidden — we don't want a child triggering an unintended donation on a parent's device. A 6-digit PIN is required to enable or disable Kids Mode, so children cannot change these restrictions themselves. The PIN is set by the parent when turning Kids Mode on every time."
}
},
{
"@type": "Question",
"name": "How can teachers, schools and students use NoSuggest?",
"acceptedAnswer": {
"@type": "Answer",
"text": "NoSuggest is ready for classroom use without any new features or IT setup. A teacher adds only the YouTube channels relevant to their subject — educational channels, and save documentaries, lesson videos — and exports the entire setup as a backup code from Settings. That code is shared with students via Google Classroom, WhatsApp, email, or any messaging platform. Students open nosuggest.com, go to Settings, tap Import, paste the code, and their feed instantly shows only the teacher-approved channels and saved videos. No accounts, no logins, and no personal data collected by NoSuggest. The 6-digit PIN lock helps stop students from casually changing the channel list. Works on phones, tablets, Chromebooks, and laptops — no installation required."
}
},
{
"@type": "Question",
"name": "Can schools or organizations contribute financially?",
"acceptedAnswer": {
"@type": "Answer",
"text": "NoSuggest will always be free for individuals and families. If an institution like a school district, a university, a company, finds it valuable enough to support at scale, a voluntary contribution toward operation and maintenance are genuinely welcome. The one thing I would ask: if that contribution ever traces back to a fee that makes education less affordable for a student, please don't send it. Keeping this free and accessible matters more than any donation."
}
},
{
"@type": "Question",
"name": "How do I move my channels and saved videos to another device?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Go to Settings and tap Export Backup. NoSuggest generates a backup code containing all your channels and saved videos. Copy that code and paste it into Settings → Import Backup on your new device. Everything transfers instantly. There is no login or account by design — NoSuggest intentionally does not ask for your name, email, or any personal information. The export and import approach keeps your data entirely on your own devices."
}
},
{
"@type": "Question",
"name": "What is Create a Pack?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Create a Pack turns your current list of channels into a single shareable link — useful when a teacher, channel owner, or friend wants to hand someone a ready-made feed. Go to Settings → Create a Pack to generate the link, then share it however you like. Anyone who opens the link sees exactly which channels are in it and can add them all with one tap. It only adds channels — it never replaces or removes anything already on their device, and channels they already have are simply skipped. If adding would take someone past the 25-channel limit, NoSuggest adds as many as it can and tells them how many were skipped. A pack only carries channel names and IDs — nothing personal, no saved videos, no account data of any kind."
}
},
{
"@type": "Question",
"name": "Tapping the YouTube logo opens YouTube with recommendations. How do I block it?",
"acceptedAnswer": {
"@type": "Answer",
"text": "This happens because the video plays inside the official YouTube player, which includes a YouTube logo and title link. NoSuggest cannot modify what is inside that player. To prevent YouTube from opening on the device: iPhone (Safari & Chrome): Settings → Screen Time → Content & Privacy Restrictions → Content Restrictions → Web Content → Limit Adult Websites. Under Never Allow, tap Add Website and enter youtube.com. This applies across all browsers on the device. Android & laptops: Install the BlockSite app, grant the required permissions, and add youtube.com to your block list."
}
},
{
"@type": "Question",
"name": "Can I reorder channels so my favourite appears first?",
"acceptedAnswer": {
"@type": "Answer",
"text": "The feed intentionally does not follow a fixed channel order. When you open the app, NoSuggest fetches all your channels simultaneously rather than one by one — this is what makes the feed load so quickly. Videos appear as each channel responds, so the order varies slightly each time based on response speed. A drag-to-reorder feature would not change this behaviour since feed order is determined by network response times, not by how channels are arranged in your list. The speed trade-off is intentional — it keeps the app fast on all devices and connections."
}
},
{
"@type": "Question",
"name": "Is NoSuggest available on the App Store or Google Play?",
"acceptedAnswer": {
"@type": "Answer",
"text": "NoSuggest is not listed on the App Store or Google Play Store. It is a Progressive Web App (PWA), which means it installs directly from the browser with no app store needed. iPhone / iPad: Open nosuggest.com in Safari → tap the Share button → Add to Home Screen. Android: Open nosuggest.com in Chrome → tap Install App. It will appear and behave like a native app on your home screen."
}
},
{
"@type": "Question",
"name": "Is there a free app to watch YouTube without recommendations?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. NoSuggest is completely free, with no ads and no premium tier, and works on iPhone, iPad, Android, and desktop through any browser. It's a Progressive Web App rather than an App Store or Play Store download, so there's nothing to install from a store — just add it to your home screen and it behaves like a native app. See \"Is NoSuggest available on the App Store or Google Play?\" above for exact install steps on each device."
}
}
]
}
</script>
<link rel="manifest" href="/manifest.json"/>
<link rel="apple-touch-icon" href="/nosuggest-logo-v2-512.png"/>
<link rel="icon" href="/favicon.ico" sizes="any"/>
<link rel="icon" href="/favicon-32.png" type="image/png" sizes="32x32"/>
<link rel="icon" href="/favicon-16.png" type="image/png" sizes="16x16"/>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fraunces:ital,wght@0,500;0,700;1,500&family=DM+Mono:wght@400;500&display=swap" onload="this.onload=null;this.rel='stylesheet'"/>
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fraunces:ital,wght@0,500;0,700;1,500&family=DM+Mono:wght@400;500&display=swap"/></noscript>
<script async src="https://www.youtube.com/iframe_api"></script>
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "13373b3fce114bcc9f4126115c9932ea"}'></script>
<style>
/* ═══════════════════════════════════════
RESET & ROOT
═══════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{height:100%;overflow:hidden;background:var(--bg);}
/* ↑ iOS PWA: html background fills the physical canvas (incl. safe-area zones)
so any gap between the layout viewport and the physical screen bottom shows
the app's own dark colour rather than the system UI background. */
:root{
--bg:#0a0a0a; --bg2:#111111; --bg3:#1a1a1a;
--border:rgba(255,255,255,0.08); --border2:rgba(255,255,255,0.15);
--text:#f0f0ee; --muted:#888884; --faint:#87877f;
--accent:#e8ff5a; --accent2:#ff6b35; --danger:#ff4444;
--radius:16px; --radius-sm:10px;
--safe-top:env(safe-area-inset-top,0px); --safe-bot:env(safe-area-inset-bottom,0px);
}
body{background:var(--bg);color:var(--text);font-family:'Outfit',sans-serif;height:100%;overflow:hidden;-webkit-font-smoothing:antialiased;}
/* Visible keyboard-focus indicator for the div-based interactive rows
(Settings, FAQ, video cards, channel suggestions, Saved cards). Uses
:focus-visible so it only appears for keyboard/switch navigation, not
mouse or touch taps — it doesn't change how the app looks or feels
for normal use.
Drawn as an INSET box-shadow rather than an outward outline: several
containers (e.g. .settings-card) use overflow:hidden to clip their
rounded corners, which was cutting off an outward outline along the
edges of every row. An inset shadow is drawn inside the element's own
box, so it can never be clipped by a parent's overflow, regardless of
where the row sits inside its container. */
[role="button"]:focus-visible,
.settings-row-link:focus-visible{
box-shadow: inset 0 0 0 2px var(--accent);
outline: none;
}
/* Respect OS-level "reduce motion" setting. Screen transitions, modal
fades, the install-sheet pulse animation, and the loading spinner all
still function — they just happen near-instantly instead of animating,
which avoids triggering discomfort for people with vestibular
disorders. Standard, widely-supported media query (Safari 10.1+,
Chrome 74+, Firefox 63+); on browsers without support, nothing
changes — everything just animates as it does today. */
@media (prefers-reduced-motion: reduce){
*, *::before, *::after{
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
}
/* Suppress focus ring on headings/containers that are focused
programmatically (via tabindex="-1") for screen-reader announcements.
These elements are never reachable by keyboard Tab, so hiding the
outline here doesn't remove any visible affordance for keyboard users.
Elements with a natural or positive tabindex are unaffected. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible{outline:none;box-shadow:none;}
/* ═══════════════════════════════════════
APP SHELL
═══════════════════════════════════════ */
#app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;position:relative;}
/* iOS PWA fix — overflow:clip clips content without creating a stacking context
or a new containing block, so position:fixed children (nav, strips, overlays)
are always positioned relative to the true viewport rather than #app.
overflow:hidden can cause iOS WebKit to reposition fixed children relative to
the overflow container instead of the viewport in standalone PWA mode.
Falls back to overflow:hidden on browsers that don't support clip (iOS <15.4). */
@supports(overflow:clip){#app{overflow:clip;}}
.screen{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;opacity:0;pointer-events:none;transform:translate3d(0,12px,0);transition:opacity 0.25s ease,transform 0.25s ease;backface-visibility:hidden;will-change:transform;}
.screen.active{opacity:1;pointer-events:auto;transform:translate3d(0,0,0);}
/* ═══════════════════════════════════════
KIDS MODE
═══════════════════════════════════════ */
.kids-mode-banner{display:none;align-items:center;gap:8px;background:#e8ff5a;color:#0a0a0a;font-size:12px;font-weight:600;padding:6px 1rem;letter-spacing:0.04em;text-transform:uppercase;}
.kids-mode-banner.show{display:flex;}
.pin-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.85);display:none;align-items:center;justify-content:center;z-index:9999;padding:2rem;}
.pin-overlay.show{display:flex;}
.pin-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:2rem 1.5rem;width:100%;max-width:320px;text-align:center;display:flex;flex-direction:column;gap:1.25rem;}
.pin-box h3{font-size:1rem;font-weight:600;color:var(--text);}
.pin-box p{font-size:13px;color:var(--muted);margin-top:-0.5rem;}
.pin-dots{display:flex;justify-content:center;gap:12px;}
.pin-dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--border);background:transparent;transition:background 0.15s,border-color 0.15s;}
.pin-dot.filled{background:var(--accent);border-color:var(--accent);}
.pin-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.pin-key{background:var(--bg3);border:1px solid var(--border);border-radius:10px;font-size:1.2rem;font-weight:500;color:var(--text);padding:0.9rem 0;cursor:pointer;transition:background 0.15s;font-family:'DM Mono',monospace;}
.pin-key:active{background:var(--accent);color:#0a0a0a;}
.pin-error{font-size:12px;color:#ff4444;min-height:16px;}
.pin-cancel{font-size:12px;color:var(--muted);cursor:pointer;text-decoration:underline;background:none;border:none;padding:0;}
/* ═══════════════════════════════════════
SCROLLABLE SCREEN BODY
═══════════════════════════════════════ */
.screen-body{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:calc(80px + var(--safe-bot));}
.screen-body::-webkit-scrollbar{display:none;}
.screen-body{scrollbar-width:none;}
@media(max-width:768px){.screen-body{padding-bottom:calc(120px + var(--safe-bot));}}
/* Extra bottom padding when install strip is visible */
body.show-install-strip .screen-body{padding-bottom:calc(116px + var(--safe-bot));}
@media(max-width:768px){body.show-install-strip .screen-body{padding-bottom:calc(156px + var(--safe-bot));}}
/* ═══════════════════════════════════════
NAV BAR
═══════════════════════════════════════ */
.nav{position:fixed;bottom:0;left:0;right:0;height:calc(64px + var(--safe-bot));padding-bottom:var(--safe-bot);background:rgba(10,10,10,0.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-around;z-index:100;}
.nav-btn{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:none;border:none;cursor:pointer;color:#fff;transition:color 0.15s;padding-bottom:4px;}
.nav-btn.active{color:var(--accent);}
.nav-btn svg{width:20px;height:20px;}
.nav-btn span{font-size:9px;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;}
/* ── Nav install strip ── */
#nav-install-strip{position:fixed;bottom:calc(64px + var(--safe-bot));left:0;right:0;z-index:99;display:none;align-items:center;justify-content:center;gap:8px;padding:7px 1rem;background:linear-gradient(135deg,rgba(232,255,90,0.08),rgba(232,255,90,0.04));border-top:1px solid rgba(232,255,90,0.2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;}
#nav-install-strip.show{display:flex;}
#nav-install-strip span{font-size:12px;font-weight:600;color:var(--accent);letter-spacing:0.02em;}
#nav-install-strip .strip-dismiss{margin-left:auto;background:none;border:none;color:var(--faint);font-size:16px;cursor:pointer;padding:0 2px;line-height:1;}
/* ── Nav strips: share banner + LinkedIn banner, alternate every 5th session ── */
#nav-donate-strip,#nav-linkedin-strip{position:fixed;bottom:calc(64px + var(--safe-bot));left:0;right:0;z-index:98;display:none;align-items:center;justify-content:center;gap:8px;padding:7px 1rem;background:#1a0a00;border-top:1px solid rgba(255,107,53,0.6);cursor:pointer;text-decoration:none;}
#nav-donate-strip.show,#nav-linkedin-strip.show{display:flex;}
#nav-donate-strip span,#nav-linkedin-strip span{font-size:12px;font-weight:600;color:var(--text);letter-spacing:0.02em;}
#nav-donate-strip .strip-dismiss,#nav-linkedin-strip .strip-dismiss{margin-left:auto;background:none;border:none;color:var(--faint);font-size:16px;cursor:pointer;padding:0 2px;line-height:1;}
/* When donate banner shows, push install strip up further */
body.show-donate-strip #nav-install-strip{bottom:calc(64px + var(--safe-bot) + 36px);}
body.show-donate-strip .screen-body{padding-bottom:calc(116px + var(--safe-bot));}
@media(max-width:768px){body.show-donate-strip .screen-body{padding-bottom:calc(156px + var(--safe-bot));}}
/* ── iOS install bottom sheet ── */
#ios-sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:450;display:none;opacity:0;transition:opacity 0.25s;}
#ios-sheet-backdrop.show{display:block;opacity:1;}
#ios-sheet{position:fixed;bottom:0;left:0;right:0;z-index:451;background:var(--bg2);border-radius:20px 20px 0 0;border-top:1px solid var(--border2);padding:0 1.25rem calc(var(--safe-bot) + 1.5rem);transform:translateY(100%);transition:transform 0.32s cubic-bezier(0.32,0.72,0,1);}
#ios-sheet.show{transform:translateY(0);}
.ios-sheet-handle{width:36px;height:4px;background:var(--border2);border-radius:2px;margin:12px auto 20px;}
.ios-sheet-title{font-family:'Fraunces',serif;font-size:1.2rem;font-weight:500;color:var(--text);margin-bottom:4px;}
.ios-sheet-sub{font-size:13px;color:var(--muted);margin-bottom:1.5rem;line-height:1.5;}
/* Animated steps */
.ios-steps{display:flex;flex-direction:column;gap:0;}
.ios-step{display:flex;align-items:center;gap:14px;padding:0.9rem 0;border-bottom:1px solid var(--border);}
.ios-step:last-child{border-bottom:none;}
.ios-step-num{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#0a0a0a;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ios-step-text{flex:1;}
.ios-step-label{font-size:13px;font-weight:600;color:var(--text);margin-bottom:2px;}
.ios-step-sub{font-size:12px;color:var(--muted);line-height:1.4;}
.ios-step-icon{flex-shrink:0;width:36px;height:36px;background:var(--bg3);border-radius:8px;display:flex;align-items:center;justify-content:center;}
/* Pulse animation on the share icon to draw attention */
@keyframes ios-pulse{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.18);opacity:0.8;}}
.ios-step-icon.pulse svg{animation:ios-pulse 1.6s ease-in-out infinite;}
.ios-sheet-close{width:100%;margin-top:1.25rem;padding:0.85rem;background:var(--bg3);border:1px solid var(--border2);border-radius:var(--radius);color:var(--text);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;}
/* ═══════════════════════════════════════
SCREEN: SETUP / WELCOME
═══════════════════════════════════════ */
#screen-setup{background:var(--bg);justify-content:flex-start;padding:2rem;gap:0;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#screen-setup::-webkit-scrollbar{display:none;}
.setup-logo{text-align:center;margin-bottom:3rem;}
.setup-logo .logo-icon{width:72px;height:72px;background:var(--accent);border-radius:20px;display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem;}
.setup-logo .logo-icon svg{width:36px;height:36px;fill:var(--bg);}
.setup-logo h1{font-family:'Fraunces',serif;font-size:2.2rem;font-weight:700;letter-spacing:-0.03em;color:var(--text);line-height:1;margin-bottom:0.4rem;}
.setup-logo p{font-size:14px;color:var(--muted);font-weight:300;}
.setup-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1rem;}
.btn{width:100%;padding:0.9rem;background:var(--accent);color:var(--bg);border:none;border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:15px;font-weight:600;cursor:pointer;transition:opacity 0.15s,transform 0.1s;margin-top:1rem;letter-spacing:0.01em;}
.btn:active{transform:scale(0.98);opacity:0.9;}
.btn-ghost{background:transparent;color:var(--muted);border:1.5px solid var(--border2);}
.error-msg{color:var(--danger);font-size:12px;margin-top:0.5rem;display:none;font-family:'DM Mono',monospace;}
/* ═══════════════════════════════════════
SCREEN: FEED
═══════════════════════════════════════ */
.feed-header{padding:calc(var(--safe-top) + 1.2rem) 1.25rem 1rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:10;}
.feed-logo{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:700;letter-spacing:-0.03em;display:flex;align-items:center;gap:8px;}
.feed-logo .dot{width:8px;height:8px;background:var(--accent);border-radius:50%;display:inline-block;}
.feed-actions{display:flex;gap:8px;}
.icon-btn{width:36px;height:36px;background:var(--bg2);border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--accent);transition:border-color 0.15s,color 0.15s;}
.icon-btn:hover{border-color:var(--border2);color:var(--text);}
.icon-btn svg{width:16px;height:16px;}
.channel-section{padding:1.25rem 1.25rem 0.5rem;animation:fadeUp 0.35s ease both;}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.channel-label{display:flex;align-items:center;gap:8px;margin-bottom:0.9rem;}
/* Per-channel "skip" link for keyboard users. A channel can have 10
videos, each with its own bookmark button (20 tab stops) — this lets
someone jump straight past all of them to the next channel in one
Tab + Enter instead. Standard skip-link pattern: invisible and out of
the visual flow by default, only appears when it actually receives
keyboard focus, so it changes nothing for mouse/touch use. */
.skip-channel-link{
position:absolute;
left:-9999px;
top:auto;
width:1px;height:1px;
overflow:hidden;
background:var(--accent);
color:var(--bg);
padding:0.5rem 0.9rem;
border:none;
border-radius:var(--radius-sm);
font-family:'Outfit',sans-serif;
font-size:12px;
font-weight:600;
cursor:pointer;
z-index:10;
}
.skip-channel-link:focus{
position:static;
width:auto;height:auto;
overflow:visible;
display:inline-block;
margin-bottom:0.6rem;
}
/* General "skip to main content" link — first focusable element on the
page. Same hidden-until-focused pattern as the per-channel skip link:
invisible and out of the visual flow for mouse/touch use, appears
only when it actually receives keyboard focus. */
.skip-to-content-link{
position:absolute;
left:-9999px;
top:auto;
width:1px;height:1px;
overflow:hidden;
background:var(--accent);
color:var(--bg);
padding:0.6rem 1rem;
border:none;
border-radius:var(--radius-sm);
font-family:'Outfit',sans-serif;
font-size:13px;
font-weight:600;
cursor:pointer;
z-index:1000;
}
.skip-to-content-link:focus{
position:fixed;
left:12px;
top:calc(12px + var(--safe-top));
width:auto;height:auto;
overflow:visible;
}
.ch-avatar{width:28px;height:28px;background:var(--bg3);border-radius:50%;overflow:hidden;flex-shrink:0;border:1px solid var(--border);}
.ch-avatar img{width:100%;height:100%;object-fit:cover;}
.ch-name{font-size:13px;font-weight:600;color:var(--text);letter-spacing:0.01em;}
.videos-scroll{display:flex;gap:10px;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;transform:translateZ(0);will-change:transform;backface-visibility:hidden;}
.videos-scroll::-webkit-scrollbar{display:none;}
.video-thumb{flex-shrink:0;width:200px;scroll-snap-align:start;cursor:pointer;border-radius:var(--radius-sm);overflow:hidden;background:var(--bg2);border:1px solid var(--border);transition:border-color 0.15s,transform 0.15s;transform:translateZ(0);backface-visibility:hidden;will-change:transform;}
.video-thumb:active{transform:scale(0.97);}
.video-thumb:hover{border-color:var(--border2);}
/* This card combines overflow:hidden, border-radius, and a GPU compositing
layer (transform + will-change, used for smoother horizontal scrolling)
— that specific combination can make an inset box-shadow render only
partially (a known browser quirk). Reusing the border-color technique
already used for :hover sidesteps it entirely, since it's just
recoloring an existing border rather than painting a new layered shadow. */
.video-thumb:focus-visible{
border-color: var(--accent);
box-shadow: none;
outline: none;
}
.thumb-img-wrap{position:relative;padding-bottom:56.25%;background:#111;}
.thumb-img-wrap img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:translateZ(0);backface-visibility:hidden;}
.thumb-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;background:rgba(0,0,0,0.4);transition:opacity 0.15s;}
.video-thumb:hover .thumb-play{opacity:1;}
.thumb-play svg{width:36px;height:36px;fill:white;filter:drop-shadow(0 2px 8px rgba(0,0,0,0.5));}
.thumb-info{padding:0.6rem 0.65rem 0.7rem;}
.thumb-title{font-size:12px;font-weight:500;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:0.3rem;}
.thumb-meta{font-size:10px;color:var(--faint);font-family:'DM Mono',monospace;}
.section-divider{height:1px;background:var(--border);margin:1rem 1.25rem 0;}
.empty-feed{display:flex;flex-direction:column;align-items:center;justify-content:center;height:60vh;gap:1rem;padding:2rem;text-align:center;}
.empty-feed .big-icon{font-size:4rem;opacity:0.3;}
.empty-feed h3{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:500;color:var(--muted);}
.empty-feed p{font-size:13.5px;color:var(--faint);line-height:1.6;}
.empty-feed .btn{width:auto;padding:0.75rem 1.75rem;}
.feed-save-btn{background:none;border:none;cursor:pointer;padding:2px;border-radius:3px;display:flex;align-items:center;transition:opacity 0.15s;flex-shrink:0;}
.feed-save-btn:hover{opacity:0.7;}
/* ═══════════════════════════════════════
SCREEN: MY CHANNELS
═══════════════════════════════════════ */
.channels-header{padding:calc(var(--safe-top) + 1.2rem) 1.25rem 1rem;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;}
.channels-header h2{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:500;letter-spacing:-0.02em;}
.channel-list-item{display:flex;align-items:center;gap:12px;padding:0.9rem 1.25rem;border-bottom:1px solid var(--border);animation:fadeUp 0.3s ease both;}
.cli-avatar{width:40px;height:40px;border-radius:50%;background:var(--bg3);border:1px solid var(--border);overflow:hidden;flex-shrink:0;}
.cli-avatar img{width:100%;height:100%;object-fit:cover;}
.cli-info{flex:1;min-width:0;}
.cli-name{font-size:14px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cli-handle{font-size:11px;color:var(--faint);font-family:'DM Mono',monospace;margin-top:1px;}
.cli-remove{width:32px;height:32px;background:none;border:none;color:var(--accent);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background 0.15s,color 0.15s;}
.cli-remove:hover{background:rgba(255,68,68,0.1);color:var(--danger);}
.cli-remove svg{width:16px;height:16px;}
.no-channels{padding:3rem 2rem;text-align:center;color:var(--faint);font-size:14px;line-height:1.7;}
.add-channel-fab{position:fixed;bottom:120px;right:1.25rem;width:52px;height:52px;background:var(--accent);border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 20px rgba(232,255,90,0.3);transition:transform 0.15s,box-shadow 0.15s;z-index:50;}
.add-channel-fab:active{transform:scale(0.92);}
.add-channel-fab svg{width:24px;height:24px;fill:var(--bg);}
/* ═══════════════════════════════════════
SCREEN: ADD CHANNEL
═══════════════════════════════════════ */
.add-header{padding:calc(var(--safe-top) + 1rem) 1.25rem 1rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;background:var(--bg);position:sticky;top:0;z-index:10;}
.back-btn{width:36px;height:36px;background:var(--bg2);border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--muted);flex-shrink:0;}
.back-btn svg{width:18px;height:18px;}
.add-header h2{font-family:'Fraunces',serif;font-size:1.3rem;font-weight:500;letter-spacing:-0.02em;}
.add-body{padding:1.5rem 1.25rem;}
.field-label{font-size:12px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted);margin-bottom:0.5rem;font-family:'DM Mono',monospace;}
.text-input{width:100%;padding:0.85rem 1rem;background:var(--bg2);border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-family:'Outfit',sans-serif;font-size:16px;outline:none;transition:border-color 0.15s;-webkit-appearance:none;}
.text-input:focus{border-color:var(--accent);}
.text-input::placeholder{color:var(--faint);}
.input-hint{font-size:12px;color:var(--faint);margin-top:0.4rem;font-family:'DM Mono',monospace;}
.preview-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;margin-top:1.25rem;display:none;animation:fadeUp 0.25s ease;}
.preview-card.show{display:flex;gap:12px;align-items:center;}
.preview-avatar{width:52px;height:52px;border-radius:50%;background:var(--bg3);border:1px solid var(--border);overflow:hidden;flex-shrink:0;}
.preview-avatar img{width:100%;height:100%;object-fit:cover;}
.preview-info{flex:1;}
.preview-name{font-size:15px;font-weight:500;color:var(--text);}
.preview-subs{font-size:12px;color:var(--muted);margin-top:2px;font-family:'DM Mono',monospace;}
.preview-check{width:28px;height:28px;background:var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.preview-check svg{width:14px;height:14px;fill:var(--bg);}
.searching-state{padding:1.5rem;text-align:center;color:var(--muted);font-size:13px;}
.channel-suggestions{margin-top:0.75rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;display:none;animation:fadeUp 0.2s ease;}
.channel-suggestion-item{display:flex;align-items:center;gap:12px;padding:0.85rem 1rem;cursor:pointer;background:var(--bg2);border-bottom:1px solid var(--border);transition:background 0.15s;}
.channel-suggestion-item:last-child{border-bottom:none;}
.channel-suggestion-item:active{background:var(--bg3);}
.suggestion-avatar{width:38px;height:38px;border-radius:50%;background:var(--bg3);overflow:hidden;flex-shrink:0;border:1px solid var(--border);}
.suggestion-avatar img{width:100%;height:100%;object-fit:cover;}
.suggestion-info{flex:1;min-width:0;}
.suggestion-name{font-size:14px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.suggestion-subs{font-size:11px;color:var(--muted);margin-top:1px;font-family:'DM Mono',monospace;}
/* Manual URL fallback section */
.fallback-divider{display:flex;align-items:center;gap:10px;margin:1.5rem 0 1rem;}
.fallback-divider::before,.fallback-divider::after{content:'';flex:1;height:1px;background:var(--border);}
.fallback-divider span{font-size:11px;color:var(--faint);font-family:'DM Mono',monospace;white-space:nowrap;}
.fallback-card{background:var(--bg2);border:1.5px dashed var(--border2);border-radius:var(--radius-sm);padding:1rem;margin-bottom:0.5rem;}
.fallback-card p{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:0.75rem;font-family:'DM Mono',monospace;}
.fallback-card p code{color:var(--accent);background:rgba(232,255,90,0.08);padding:1px 4px;border-radius:3px;}
.fallback-row{display:flex;gap:8px;}
.fallback-input{flex:1;padding:0.7rem 0.9rem;background:var(--bg3);border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-family:'DM Mono',monospace;font-size:16px;outline:none;transition:border-color 0.15s;-webkit-appearance:none;}
.fallback-input:focus{border-color:var(--accent);}
.fallback-input::placeholder{color:var(--faint);}
.fallback-go-btn{flex-shrink:0;padding:0 1rem;height:42px;background:var(--bg3);border:1.5px solid var(--border2);border-radius:var(--radius-sm);color:var(--accent);font-family:'Outfit',sans-serif;font-size:13px;font-weight:600;cursor:pointer;transition:background 0.15s,border-color 0.15s;white-space:nowrap;}
.fallback-go-btn:hover{background:var(--bg2);border-color:var(--accent);}
.fallback-go-btn:active{transform:scale(0.97);}
.fallback-go-btn:disabled{opacity:0.5;cursor:default;}
/* ═══════════════════════════════════════
VIDEO PLAYER OVERLAY
═══════════════════════════════════════ */
#player-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.97);z-index:200;display:none;flex-direction:column;opacity:0;pointer-events:none;transition:opacity 0.2s;}
#player-overlay.open{display:flex;opacity:1;pointer-events:all;}
.player-top{padding:calc(var(--safe-top) + 0.75rem) 1rem 0.75rem;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
.player-channel{font-size:13px;color:var(--muted);font-family:'DM Mono',monospace;letter-spacing:0.04em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin-right:0.5rem;}
.close-player{width:36px;height:36px;background:var(--bg2);border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--muted);}
.close-player svg{width:18px;height:18px;}
.player-video-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:0 0 1rem;}
.player-video-wrap iframe{width:100%;aspect-ratio:16/9;border:none;max-height:60vh;}
.player-info{padding:0 1.25rem calc(var(--safe-bot) + 1rem);flex-shrink:0;}
.player-title{font-family:'Fraunces',serif;font-size:1.1rem;font-weight:500;line-height:1.4;color:var(--text);margin-bottom:0.5rem;word-break:break-word;overflow-wrap:break-word;max-width:100%;}
.player-meta{font-size:12px;color:var(--muted);font-family:'DM Mono',monospace;}
.player-embed-blocked{display:none;flex-direction:column;align-items:center;justify-content:center;gap:1rem;text-align:center;padding:2rem;flex:1;}
.player-embed-blocked.show{display:flex;}
.player-embed-blocked p{font-size:13px;color:var(--muted);line-height:1.6;max-width:260px;}
.player-embed-blocked a{display:inline-block;padding:0.65rem 1.4rem;background:var(--accent);color:var(--bg);border-radius:var(--radius-sm);font-size:14px;font-weight:600;text-decoration:none;}
/* ═══════════════════════════════════════
FAQ
═══════════════════════════════════════ */
.faq-list{display:flex;flex-direction:column;gap:2px;}
.faq-item{background:var(--bg2);border:1px solid var(--border);border-radius:10px;overflow:hidden;transition:border-color 0.15s;}
.faq-item.open{border-color:var(--border2);}
.faq-q{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;cursor:pointer;font-size:13px;font-weight:600;color:var(--text);line-height:1.4;font-family:'Outfit',sans-serif;}
.faq-q span{flex:1;}
.faq-chevron{width:16px;height:16px;flex-shrink:0;color:var(--faint);transition:transform 0.2s;}
.faq-item.open .faq-chevron{transform:rotate(180deg);color:var(--accent);}
.faq-a{display:none;padding:0 14px 13px;font-size:12.5px;color:var(--muted);line-height:1.7;font-family:'Outfit',sans-serif;border-top:1px solid var(--border);}
.faq-item.open .faq-a{display:block;}
.faq-a strong{color:var(--text);font-weight:600;}
/* ═══════════════════════════════════════
SETTINGS SCREEN
═══════════════════════════════════════ */
.settings-header{padding:calc(var(--safe-top) + 1.2rem) 1.25rem 1rem;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:10;}
.settings-header h2{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:500;letter-spacing:-0.02em;}
.settings-section{padding:1.25rem;}
.settings-label{font-size:11px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);font-family:'DM Mono',monospace;margin-bottom:0.75rem;}
.settings-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;}
.settings-row{display:flex;align-items:center;padding:0.9rem 1.1rem;gap:12px;border-bottom:1px solid var(--border);}
.settings-row:last-child{border-bottom:none;}
/* Match the card's own rounded corners on its first/last row — without
this, a focused first/last row's box-shadow (a sharp rectangle) gets
clipped by the card's rounded overflow:hidden mask right at the
corners, making the keyboard-focus highlight look cut off/incomplete
instead of a clean full box. */
.settings-row:first-child{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius);}
.settings-row:last-child{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius);}
.settings-row-link{display:block;text-decoration:none;}
.settings-row-link:first-child{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius);}
.settings-row-link:last-child{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius);}
/* ── Site footer (matches kids-mode / classroom / creators pages) ── */
.site-footer{padding:2rem 1.25rem 1.25rem;border-top:1px solid var(--border);margin-top:0.5rem;}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.75rem;text-align:left;padding-bottom:1.75rem;}
.footer-col-title{font-size:11px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--accent);margin-bottom:0.75rem;}
.footer-col a{display:block;font-size:13px;color:var(--muted);text-decoration:none;margin-bottom:0.6rem;transition:color 0.15s;}
.footer-col a:hover{color:var(--accent);}
.footer-bottom{padding-top:1.25rem;border-top:1px solid var(--border);text-align:center;}
.footer-bottom p{font-size:12px;color:var(--faint);}
@media(max-width:420px){.footer-grid{grid-template-columns:1fr 1fr;gap:1.5rem;}}
.settings-row-icon{width:32px;height:32px;background:var(--bg3);border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted);}
.settings-row-icon svg{width:16px;height:16px;}
.settings-row-text{flex:1;}
.settings-row-label{font-size:14px;font-weight:500;color:var(--text);}
.settings-row-sub{font-size:12px;color:var(--muted);font-family:'DM Mono',monospace;margin-top:1px;}
.settings-row-action{font-size:12px;color:var(--muted);font-family:'DM Mono',monospace;}
.btn-danger{background:rgba(255,68,68,0.1);color:var(--danger);border:1.5px solid rgba(255,68,68,0.2);}
/* ═══════════════════════════════════════
SCREEN: SEARCH
═══════════════════════════════════════ */
.search-header{padding:calc(var(--safe-top) + 1.2rem) 1.25rem 1rem;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:10;}
.search-header h2{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:500;letter-spacing:-0.02em;margin-bottom:0.9rem;}
.search-row{display:flex;gap:8px;align-items:center;}
.search-trigger-btn{
flex-shrink:0;width:44px;height:44px;
background:var(--accent);color:var(--bg);
border:none;border-radius:var(--radius-sm);
display:flex;align-items:center;justify-content:center;
cursor:pointer;transition:opacity 0.15s;
}
.search-trigger-btn:active{opacity:0.85;}
.search-trigger-btn svg{width:20px;height:20px;}
.search-row .text-input{flex:1;font-size:16px;padding:0.7rem 0.9rem;}
.search-go-btn{flex-shrink:0;height:42px;padding:0 1.1rem;background:var(--accent);color:var(--bg);border:none;border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:opacity 0.15s,transform 0.1s;white-space:nowrap;}
.search-go-btn:active{transform:scale(0.97);opacity:0.9;}
.search-go-btn:disabled{opacity:0.5;cursor:default;}
#search-input::-webkit-search-cancel-button{-webkit-appearance:none;width:14px;height:14px;background:var(--accent);clip-path:polygon(20% 0%,0% 20%,30% 50%,0% 80%,20% 100%,50% 70%,80% 100%,100% 80%,70% 50%,100% 20%,80% 0%,50% 30%);cursor:pointer;}
.search-results{padding:1.25rem;box-sizing:border-box;overflow-x:hidden;}
.search-results-label{font-size:11px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--faint);font-family:'DM Mono',monospace;margin-bottom:0.85rem;}
.search-video-card{display:flex;gap:12px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:10px;cursor:pointer;transition:border-color 0.15s,transform 0.12s;width:100%;box-sizing:border-box;}
.search-video-card:active{transform:scale(0.98);}
.search-video-card:hover{border-color:var(--border2);}
.search-thumb-wrap{position:relative;flex-shrink:0;width:130px;}
.search-thumb-wrap img{width:130px;height:73px;object-fit:cover;display:block;}
.search-save-btn{position:absolute;top:4px;right:4px;width:26px;height:26px;background:rgba(0,0,0,0.7);border:1px solid rgba(255,255,255,0.15);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 0.15s;}
.search-save-btn:hover{background:rgba(232,255,90,0.25);}
.search-save-btn svg{width:13px;height:13px;stroke:var(--accent);fill:none;stroke-width:2;}
.search-save-btn.saved svg{fill:var(--accent);}
.search-card-info{flex:1;padding:0.65rem 0.75rem 0.65rem 0;display:flex;flex-direction:column;justify-content:space-between;min-width:0;}
.search-card-title{font-size:12.5px;font-weight:500;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:0.3rem;max-width:100%;word-break:break-word;}
.search-card-meta{font-size:10.5px;color:var(--faint);font-family:'DM Mono',monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.search-views-badge{display:inline-block;font-size:9.5px;background:rgba(232,255,90,0.12);color:var(--accent);border-radius:3px;padding:1px 5px;font-family:'DM Mono',monospace;margin-top:3px;}
.search-empty-state{text-align:center;padding:3.5rem 2rem;color:var(--faint);font-size:14px;line-height:1.7;}
.search-empty-state .big-icon{font-size:3.5rem;opacity:0.3;margin-bottom:0.75rem;}
.search-choice-btn{display:flex;align-items:center;gap:14px;width:100%;padding:1.1rem 1rem;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;text-align:left;transition:border-color 0.15s,background 0.15s;}
.search-choice-btn:active{background:var(--bg3);}
.search-choice-icon{font-size:1.6rem;flex-shrink:0;line-height:1;}
.search-choice-text{flex:1;}
.search-choice-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:2px;}
.search-choice-sub{font-size:12px;color:var(--muted);line-height:1.4;}
/* ═══════════════════════════════════════
SCREEN: SAVED VIDEOS
═══════════════════════════════════════ */
.saved-header{padding:calc(var(--safe-top) + 1.2rem) 1.25rem 1rem;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;}
.saved-header h2{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:500;letter-spacing:-0.02em;}
.saved-count{font-size:12px;color:var(--faint);font-family:'DM Mono',monospace;}
.saved-video-card{display:flex;gap:12px;padding:0.85rem 1.25rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background 0.12s;align-items:flex-start;}
.saved-video-card:hover{background:var(--bg2);}
.saved-thumb-wrap{position:relative;flex-shrink:0;width:120px;}
.saved-thumb-wrap img{width:120px;height:67px;object-fit:cover;display:block;border-radius:6px;}
.saved-card-info{flex:1;min-width:0;}
.saved-card-title{font-size:13px;font-weight:500;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:0.3rem;}
.saved-card-meta{font-size:11px;color:var(--faint);font-family:'DM Mono',monospace;}
.saved-remove-btn{flex-shrink:0;width:28px;height:28px;background:none;border:none;color:var(--accent);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background 0.15s,color 0.15s;align-self:center;}
.saved-remove-btn:hover{background:rgba(255,68,68,0.1);color:var(--danger);}
.saved-remove-btn svg{width:15px;height:15px;}
.saved-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:60vh;gap:1rem;padding:2rem;text-align:center;}
.saved-empty-state .big-icon{font-size:4rem;opacity:0.3;}
.saved-empty-state h3{font-family:'Fraunces',serif;font-size:1.4rem;font-weight:500;color:var(--muted);}
.saved-empty-state p{font-size:13.5px;color:var(--faint);line-height:1.6;}
/* ═══════════════════════════════════════
SPINNER / TOAST / iOS BANNER
═══════════════════════════════════════ */
.spin{width:20px;height:20px;border:2px solid var(--border2);border-top-color:var(--accent);border-radius:50%;animation:spin 0.7s linear infinite;display:inline-block;}
@keyframes spin{to{transform:rotate(360deg)}}
#toast{position:fixed;bottom:calc(80px + var(--safe-bot) + 12px);left:50%;transform:translateX(-50%) translateY(20px);background:var(--bg3);border:1px solid var(--border2);color:var(--text);padding:0.6rem 1.2rem;border-radius:20px;font-size:13px;font-weight:500;opacity:0;transition:opacity 0.2s,transform 0.2s;z-index:300;white-space:nowrap;pointer-events:none;}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
/* ── Export confirmation modal ── */
#export-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.7);z-index:500;display:none;align-items:center;justify-content:center;padding:1.5rem;}
#export-modal-backdrop.show{display:flex;}
#export-modal{background:var(--bg2);border:1px solid var(--border2);border-radius:var(--radius);padding:1.75rem 1.5rem 1.5rem;width:100%;max-width:360px;display:flex;flex-direction:column;gap:1rem;}
#export-modal .em-icon{width:48px;height:48px;background:rgba(232,255,90,0.12);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:0.25rem;}
#export-modal .em-icon svg{width:24px;height:24px;stroke:var(--accent);}
#export-modal .em-title{font-size:16px;font-weight:600;color:var(--text);}
#export-modal .em-body{font-size:13px;color:var(--muted);font-family:'DM Mono',monospace;line-height:1.6;}
#export-modal .em-code{background:var(--bg3);border:1px solid var(--border2);border-radius:var(--radius-sm);padding:0.75rem 1rem;font-family:'DM Mono',monospace;font-size:11px;color:var(--accent);word-break:break-all;line-height:1.5;max-height:80px;overflow-y:auto;user-select:all;-webkit-user-select:all;}
#export-modal .em-hint{font-size:11px;color:var(--faint);font-family:'DM Mono',monospace;}
#export-modal .em-actions{display:flex;gap:8px;margin-top:0.25rem;}
#export-modal .em-btn-copy{flex:1;padding:0.75rem;background:var(--accent);color:var(--bg);border:none;border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:opacity 0.15s;}
#export-modal .em-btn-copy:active{opacity:0.85;}
#export-modal .em-btn-close{padding:0.75rem 1.1rem;background:var(--bg3);color:var(--muted);border:1.5px solid var(--border);border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;}
/* ── Channel Pack modals (create + incoming confirm) — mirrors export-modal ── */
#pack-modal-backdrop,#pack-confirm-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.7);z-index:500;display:none;align-items:center;justify-content:center;padding:1.5rem;}
#pack-modal-backdrop.show,#pack-confirm-backdrop.show{display:flex;}
#pack-modal,#pack-confirm-modal{background:var(--bg2);border:1px solid var(--border2);border-radius:var(--radius);padding:1.75rem 1.5rem 1.5rem;width:100%;max-width:360px;display:flex;flex-direction:column;gap:1rem;max-height:85vh;overflow-y:auto;}
#pack-modal .em-icon,#pack-confirm-modal .em-icon{width:48px;height:48px;background:rgba(232,255,90,0.12);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:0.25rem;}
#pack-modal .em-icon svg,#pack-confirm-modal .em-icon svg{width:24px;height:24px;stroke:var(--accent);}
#pack-modal .em-title,#pack-confirm-modal .em-title{font-size:16px;font-weight:600;color:var(--text);}
#pack-modal .em-body,#pack-confirm-modal .em-body{font-size:13px;color:var(--muted);font-family:'DM Mono',monospace;line-height:1.6;}
#pack-modal .em-code{background:var(--bg3);border:1px solid var(--border2);border-radius:var(--radius-sm);padding:0.75rem 1rem;font-family:'DM Mono',monospace;font-size:11px;color:var(--accent);word-break:break-all;line-height:1.5;max-height:80px;overflow-y:auto;user-select:all;-webkit-user-select:all;}
#pack-modal .em-hint,#pack-confirm-modal .em-hint{font-size:11px;color:var(--faint);font-family:'DM Mono',monospace;}
#pack-modal .em-actions,#pack-confirm-modal .em-actions{display:flex;gap:8px;margin-top:0.25rem;}
.pack-btn-primary{flex:1;padding:0.75rem;background:var(--accent);color:var(--bg);border:none;border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:opacity 0.15s;}
.pack-btn-primary:active{opacity:0.85;}
.pack-btn-secondary{padding:0.75rem 1.1rem;background:var(--bg3);color:var(--muted);border:1.5px solid var(--border);border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;}
.pack-channel-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto;background:var(--bg3);border:1px solid var(--border2);border-radius:var(--radius-sm);padding:0.6rem 0.75rem;}
.pack-channel-item{font-size:13px;color:var(--text);font-family:'Outfit',sans-serif;display:flex;align-items:center;gap:6px;}
.pack-channel-item::before{content:'✓';color:var(--accent);font-weight:700;flex-shrink:0;}
.pack-note{font-size:12px;color:var(--muted);font-family:'DM Mono',monospace;line-height:1.5;}
.pack-note.warn{color:#e8a53b;}
</style>
</head>
<body>
<button type="button" class="skip-to-content-link" onclick="skipToMainContent()">Skip to main content</button>
<div id="app" role="main">
<!-- KIDS MODE BANNER -->
<div class="kids-mode-banner" id="kids-banner">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
Kids Mode
</div>
<!-- PIN OVERLAY -->
<div class="pin-overlay" id="pin-overlay">
<div class="pin-box">
<h3 id="pin-title">Enter Parental PIN</h3>
<p id="pin-subtitle">Enter your 6-digit PIN to continue</p>
<div class="pin-dots">
<div class="pin-dot" id="pd0"></div>
<div class="pin-dot" id="pd1"></div>
<div class="pin-dot" id="pd2"></div>
<div class="pin-dot" id="pd3"></div>
<div class="pin-dot" id="pd4"></div>
<div class="pin-dot" id="pd5"></div>
</div>
<div class="pin-error" id="pin-error"></div>
<div class="pin-keypad">
<button class="pin-key" onclick="pinKey('1')">1</button>
<button class="pin-key" onclick="pinKey('2')">2</button>
<button class="pin-key" onclick="pinKey('3')">3</button>
<button class="pin-key" onclick="pinKey('4')">4</button>
<button class="pin-key" onclick="pinKey('5')">5</button>
<button class="pin-key" onclick="pinKey('6')">6</button>
<button class="pin-key" onclick="pinKey('7')">7</button>
<button class="pin-key" onclick="pinKey('8')">8</button>
<button class="pin-key" onclick="pinKey('9')">9</button>
<button class="pin-key" onclick="pinKey('back')" style="font-size:0.9rem">⌫</button>
<button class="pin-key" onclick="pinKey('0')">0</button>
<button class="pin-key pin-cancel" onclick="pinCancel()">Cancel</button>
</div>
</div>
</div>
<!-- SCREEN: SETUP / WELCOME -->
<div class="screen" id="screen-setup">
<div class="setup-logo" style="margin-top:calc(var(--safe-top) + 1rem)">
<div class="logo-icon" style="background:var(--bg)">
<svg viewBox="0 0 512 512" width="36" height="36" style="color:var(--accent)">
<rect x="130" y="148" width="58" height="216" rx="12" fill="currentColor"/>
<rect x="324" y="148" width="58" height="216" rx="12" fill="currentColor"/>
<polygon points="130,148 188,148 382,364 324,364" fill="currentColor"/>
</svg>
</div>
<h1>NoSuggest</h1>
<p>Your YouTube channels. Your schedule. No suggestions, no autoplay, no notifications.</p>
</div>
<button id="android-install-btn" onclick="triggerInstallPrompt()"
style="display:none;align-items:center;justify-content:center;gap:10px;width:100%;padding:0.85rem;margin-bottom:1rem;background:var(--bg2);border:1.5px solid var(--border2);border-radius:var(--radius);color:var(--text);font-size:15px;font-weight:600;font-family:'Outfit',sans-serif;cursor:pointer">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v13M8 11l4 4 4-4"/><path d="M3 17v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2"/></svg>
Install NoSuggest App
</button>
<div class="setup-card">
<p style="font-size:13.5px;color:var(--muted);line-height:1.65;margin-bottom:1.25rem">
<strong style="color:var(--text)">YouTube channels you add here stay on this device.</strong><br/>
Your phone, laptop and your kids iPad can each have their own list, you choose what each one is for.<br/>
Come when you feel like it. Watch what you chose. Close it and move on.
</p>
<button class="btn" onclick="getStarted()" style="margin-top:0">Get Started →</button>
</div>
<div style="text-align:center;padding:0.75rem 1rem 0">
<p style="font-size:12px;color:var(--muted);line-height:1.8">
No notifications · No autoplay · No recommendations<br/>
Free to use · No credit card ever needed
</p>
</div>
<div style="text-align:center;margin-top:2rem;padding-bottom:1rem">
<p style="font-size:11px;color:var(--muted);line-height:2">
<a href="https://nosuggest.com/privacy" target="_blank" rel="noopener" style="color:var(--muted);text-decoration:underline">Privacy Policy</a>
·
<a href="https://nosuggest.com/terms" target="_blank" rel="noopener" style="color:var(--muted);text-decoration:underline">Terms of Service</a>
·
<a href="https://nosuggest.com/accessibility" target="_blank" rel="noopener" style="color:var(--muted);text-decoration:underline">Accessibility</a>
·
<a href="https://nosuggest.com/contact" target="_blank" rel="noopener" style="color:var(--muted);text-decoration:underline">Contact</a>
</p>
</div>
</div>
<!-- SCREEN: FEED -->
<div class="screen" id="screen-feed">
<div class="feed-header">
<h2 class="feed-logo"><span class="dot"></span> Feed <span style="font-size:0.75rem;font-weight:400;color:var(--muted);letter-spacing:0;font-family:'Outfit',sans-serif;margin-left:2px">Latest 10 videos/channel</span></h2>
<div class="feed-actions">
<button class="icon-btn" id="feed-refresh-btn" title="Refresh">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 4v6h-6M1 20v-6h6"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>
</button>
</div>
</div>
<div class="screen-body" id="feed-body">
<div class="empty-feed" id="feed-empty" style="display:none">
<div class="big-icon">📺</div>
<h3>No channels yet</h3>
<p>Add some YouTube channels to start watching without distractions</p>
<button class="btn" style="width:auto;padding:0.75rem 1.75rem" onclick="showScreen('channels')">Add Channels</button>
</div>
</div>
</div>
<!-- SCREEN: MY CHANNELS -->
<div class="screen" id="screen-channels">
<div class="channels-header">
<h2 id="ch-heading">My Channels</h2>
<button class="icon-btn" onclick="localStorage.setItem('ns_add_return_tab','channels');showScreen('add')" title="Add channel">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" style="width:20px;height:20px;"><path d="M12 5v14M5 12h14"/></svg>
</button>
</div>
<div class="screen-body" id="channels-body">
<div class="no-channels" id="no-channels">No channels added yet.<br/>Tap + to add your first channel.</div>
</div>
</div>
<!-- SCREEN: ADD CHANNEL -->
<div class="screen" id="screen-add">
<div class="add-header">
<button class="back-btn" onclick="showScreen('channels')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
</button>
<h2>Add Channel</h2>
</div>
<div class="screen-body">
<div class="add-body">
<!-- PRIMARY: Search by name -->
<div class="field-label">Search by channel name</div>
<div class="search-row">
<input class="text-input" id="channel-input" type="text"
placeholder="Channel Name or @handle"
aria-label="Search by channel name or handle"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<button class="search-trigger-btn" onclick="triggerChannelSearch()" aria-label="Search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>
</button>
</div>
<div class="input-hint">Type a name or handle, then press Enter or tap Search</div>
<div id="channel-suggestions" class="channel-suggestions"></div>
<div id="channel-searching" class="searching-state" style="display:none">
<div class="spin"></div>
<p style="margin-top:0.5rem">Searching...</p>
</div>
<div class="preview-card" id="channel-preview">
<div class="preview-avatar"><img id="preview-img" src="" alt=""/></div>
<div class="preview-info">
<div class="preview-name" id="preview-name"></div>
<div class="preview-subs" id="preview-subs"></div>
</div>
<div class="preview-check">
<svg viewBox="0 0 24 24"><path d="M20 6L9 17l-5-5"/></svg>
</div>
</div>
<div class="error-msg" id="add-error" role="alert" style="margin-top:0.75rem"></div>
<button class="btn" id="add-btn" style="display:none">Add Channel</button>
<!-- FALLBACK: Paste URL directly -->
<div class="fallback-divider"><span>can't find it? paste the link instead</span></div>
<div class="fallback-card">
<p>Paste a YouTube channel URL directly, search sometimes misses niche or newly renamed channels.<br/>
Examples: <code>youtube.com/@creator</code> or <code>youtube.com/channel/UCxxxxxxx</code></p>
<div class="error-msg" id="fallback-error" role="alert" style="margin-top:0.5rem"></div>
</div>
</div>
</div>
</div>
<!-- SCREEN: SETTINGS -->
<div class="screen" id="screen-settings">
<div class="settings-header"><h2>Settings</h2></div>
<div class="screen-body">
<div class="settings-section">
<div class="settings-label">Family</div>
<div class="settings-card">
<div class="settings-row" style="cursor:pointer" onclick="toggleKidsMode()" role="button" tabindex="0">
<div class="settings-row-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Kids Mode</div>
<div class="settings-row-sub">Hides Search and Channels tabs. Requires PIN to disable.</div>
</div>
<div class="settings-row-action" id="kids-mode-status" style="font-size:12px;font-weight:600;color:var(--muted)">Off</div>
</div>
</div>
</div>
<div class="settings-section" style="padding-top:0">
<div class="settings-label">Backup & Restore</div>
<div class="settings-card">
<div class="settings-row" style="cursor:pointer" onclick="doExportBackup()" role="button" tabindex="0">
<div class="settings-row-icon" style="color:var(--accent)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Export Data</div>
<div class="settings-row-sub">Copies a backup code to your clipboard. Includes channels and saved videos.</div>
</div>
<div class="settings-row-action" style="color:var(--accent);font-size:12px;font-weight:500">Copy ↗</div>
</div>
<div class="settings-row" style="cursor:pointer" onclick="showImportPanel()" role="button" tabindex="0">
<div class="settings-row-icon" style="color:var(--accent)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Import Data</div>
<div class="settings-row-sub">Paste a backup code to fully restore channels and saved videos. Replaces current data.</div>
</div>
<div class="settings-row-action" style="color:var(--accent);font-size:12px;font-weight:500">Paste ↙</div>
</div>
</div>
<!-- Import panel — hidden until triggered -->
<div id="import-panel" style="display:none;margin-top:0.75rem">
<div id="import-paste-area" onclick="pasteFromClipboard()" style="width:100%;box-sizing:border-box;padding:0.85rem 1rem;background:var(--bg2);border:1.5px dashed var(--border);border-radius:var(--radius-sm);color:var(--muted);font-family:'DM Mono',monospace;font-size:12px;line-height:1.5;min-height:60px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;transition:border-color 0.15s;" onmouseover="this.style.borderColor='var(--accent)'" onmouseout="this.style.borderColor='var(--border)'" role="button" tabindex="0">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><rect x="8" y="2" width="8" height="4" rx="1" ry="1"/></svg>
<span id="import-paste-label">Tap to paste backup code from clipboard</span>
</div>
<textarea id="import-textarea" style="display:none" readonly></textarea>
<div id="import-error" style="display:none;color:var(--danger);font-size:12px;margin-top:0.4rem;font-family:'DM Mono',monospace;"></div>
<div style="display:flex;gap:8px;margin-top:0.6rem">
<button onclick="doImportBackup()" style="flex:1;padding:0.75rem;background:var(--accent);color:var(--bg);border:none;border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;">Restore</button>
<button onclick="hideImportPanel()" style="padding:0.75rem 1.1rem;background:var(--bg2);color:var(--muted);border:1.5px solid var(--border);border-radius:var(--radius-sm);font-family:'Outfit',sans-serif;font-size:14px;font-weight:600;cursor:pointer;">Cancel</button>
</div>
</div>
</div>
<!-- ── Channel Pack: share a curated channel list via link ── -->
<div class="settings-section" style="padding-top:0">
<div class="settings-label">Channel Pack</div>
<div class="settings-card">
<div class="settings-row" style="cursor:pointer" onclick="doCreatePack()" role="button" tabindex="0">
<div class="settings-row-icon" style="color:var(--accent)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Create a Pack</div>
<div class="settings-row-sub">Turn your current channel list into a shareable link. Only channels, nothing personal. Anyone who opens the link can add them to their own feed.</div>
</div>
<div class="settings-row-action" style="color:var(--accent);font-size:12px;font-weight:500">Share ↗</div>
</div>
</div>
</div>
<div class="settings-section" style="padding-top:0">
<div class="settings-label">About</div>
<div class="settings-card">
<div class="settings-row">
<div class="settings-row-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">NoSuggest</div>
<div class="settings-row-sub">A quiet act of resistance. Add only the channels you choose, watch what you came for, and close it. No algorithm deciding what's next. No recommendations. No Shorts loop. No doom scroll. Just the videos you wanted.</div>
</div>
</div>
<div class="settings-row">
<div class="settings-row-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 20V10M12 20V4M6 20v-6"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Per device</div>
<div class="settings-row-sub"><strong style="color:var(--text)">Channels you add here stay on this device.</strong><br/>Your phone, laptop and your kids iPad can each have their own list.</div>
</div>
</div>
<div class="settings-row" id="settings-install-row" style="display:none;cursor:pointer" onclick="triggerInstallFromSettings()" role="button" tabindex="0">
<div class="settings-row-icon" style="color:var(--accent)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v13M8 11l4 4 4-4"/><path d="M3 17v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Install NoSuggest</div>
<div class="settings-row-sub">Add to your home screen for the full app experience</div>
</div>
<div class="settings-row-action" style="color:var(--accent);font-size:12px;font-weight:500">Install ↓</div>
</div>
<div class="settings-row" style="cursor:pointer" onclick="shareNoSuggest()" id="settings-share-row" role="button" tabindex="0">
<div class="settings-row-icon" style="color:var(--accent)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"/><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Share NoSuggest</div>
<div class="settings-row-sub">Know someone tired of the algorithm? Share NoSuggest with them.</div>
</div>
<div class="settings-row-action" style="color:var(--accent);font-size:12px;font-weight:500">Share ↗</div>
</div>
<a href="https://donate.stripe.com/14A9AS1zneyudtH0eYak000" target="_blank" rel="noopener" class="settings-row-link" id="settings-support-row">
<div class="settings-row" style="cursor:pointer">
<div class="settings-row-icon" style="color:#ff4444">
<svg viewBox="0 0 24 24" fill="#ff4444" stroke="#ff4444" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
</div>
<div class="settings-row-text">
<div class="settings-row-label">Support NoSuggest</div>
<div class="settings-row-sub">NoSuggest is free and always will be. If it's useful, a voluntary contribution helps keep it running.</div>
</div>
<div class="settings-row-action" style="color:var(--accent);font-size:12px;font-weight:500">Fund ↗</div>
</div>
</a>
</div>
</div>
<!-- ── FAQ ── -->
<div class="settings-section" style="padding-top:0" id="settings-faq-section">
<div class="settings-label">FAQs</div>
<div class="faq-list">
<div class="faq-item" onclick="toggleFaq(this)" role="button" tabindex="0">
<div class="faq-q">
<span>What is NoSuggest?</span>
<svg class="faq-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>
</div>
<div class="faq-a">NoSuggest is a free, distraction-free YouTube client. You follow only the channels you care about and see just their latest videos — no recommendations, no Shorts, no auto-play, no trending feed, no sign-in required.<br><br>Videos play inside the official YouTube player, so content creators receive all their credits and analytics exactly as they normally would. NoSuggest does not store, download, or host any videos. YouTube ads placed by the official player are not blocked — creators earn from them as usual.<br><br>NoSuggest itself will never show ads and will remain free forever. The only source of revenue is voluntary donations from users who wish to support the project.<br><br>NoSuggest collects no personal data, runs no ad trackers, and builds no user profiles. We use Cloudflare's cookie-less Web Analytics for aggregate visit counts only, which can't identify individuals or track anyone across sites. Fonts are loaded from Google Fonts, and video playback uses YouTube's official player — both are Google's own services and follow Google's own data practices, the same as they would on any site.</div>
</div>
<div class="faq-item" onclick="toggleFaq(this)" role="button" tabindex="0">
<div class="faq-q">
<span>How does Kids Mode work?</span>
<svg class="faq-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>
</div>
<div class="faq-a">Kids Mode limits NoSuggest to a safe, distraction-free experience for children. When enabled, the Search tab and Add Channels feature are hidden so kids can only watch videos from channels a parent has already approved.<br><br>To prevent accidental taps, the donation banner and donation link in Settings are also hidden — we don't want a child triggering an unintended donation on a parent's device.<br><br>A 6-digit PIN is required to enable or disable Kids Mode, so children cannot change these restrictions themselves. The PIN is set by the parent when turning Kids Mode on every time.</div>