@ginhotaru282/reader 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/.dockerignore +5 -0
  2. package/.gitattributes +2 -0
  3. package/Dockerfile +26 -0
  4. package/README.md +36 -0
  5. package/eslint.config.mjs +18 -0
  6. package/next.config.ts +8 -0
  7. package/package.json +31 -0
  8. package/postcss.config.mjs +7 -0
  9. package/public/file.svg +1 -0
  10. package/public/globe.svg +1 -0
  11. package/public/window.svg +1 -0
  12. package/scripts/obfuscate-build.mjs +77 -0
  13. package/src/app/(reader)/[id]/page.tsx +40 -0
  14. package/src/app/(reader)/layout.tsx +38 -0
  15. package/src/app/api/bookmark/[id]/toggle/route.ts +41 -0
  16. package/src/app/api/chapter/[id]/audio/route.ts +37 -0
  17. package/src/app/api/chapter/[id]/audio-status/route.ts +36 -0
  18. package/src/app/api/chapter/[id]/unlock/route.ts +49 -0
  19. package/src/app/api/comment/story/[id]/route.ts +48 -0
  20. package/src/app/api/reading-progress/[storyId]/route.ts +26 -0
  21. package/src/app/api/reading-progress/sync/route.ts +38 -0
  22. package/src/app/api/story/[id]/combo-unlock/route.ts +47 -0
  23. package/src/app/globals.css +26 -0
  24. package/src/app/icon.png +0 -0
  25. package/src/app/layout.tsx +35 -0
  26. package/src/app/page.tsx +3 -0
  27. package/src/assets/fonts/Lora-Variable.ttf +0 -0
  28. package/src/assets/fonts/PlusJakartaSans-Variable.ttf +0 -0
  29. package/src/components/ssr/Skeleton/index.module.css +22 -0
  30. package/src/components/ssr/Skeleton/index.tsx +38 -0
  31. package/src/modules/reader/ReaderView.tsx +48 -0
  32. package/src/modules/reader/api/backend-data.ts +231 -0
  33. package/src/modules/reader/api/client-audio-api.ts +33 -0
  34. package/src/modules/reader/api/client-bookmark-api.ts +21 -0
  35. package/src/modules/reader/api/client-comment-api.ts +31 -0
  36. package/src/modules/reader/api/client-progress-api.ts +36 -0
  37. package/src/modules/reader/api/client-purchase-api.ts +64 -0
  38. package/src/modules/reader/api/get-reader-page-data.ts +48 -0
  39. package/src/modules/reader/api/types.ts +47 -0
  40. package/src/modules/reader/components/AudioPlayerBar.tsx +299 -0
  41. package/src/modules/reader/components/AutoScrollDrawer.tsx +58 -0
  42. package/src/modules/reader/components/ChapterBottomNav.tsx +16 -0
  43. package/src/modules/reader/components/ChapterContent.tsx +43 -0
  44. package/src/modules/reader/components/ChapterListDrawer.tsx +84 -0
  45. package/src/modules/reader/components/ChapterNav.tsx +20 -0
  46. package/src/modules/reader/components/ChapterSelect.tsx +24 -0
  47. package/src/modules/reader/components/ChapterWatermark.tsx +53 -0
  48. package/src/modules/reader/components/CommentSection.tsx +156 -0
  49. package/src/modules/reader/components/LockedChapterGate.tsx +37 -0
  50. package/src/modules/reader/components/MobileDock.tsx +62 -0
  51. package/src/modules/reader/components/NavButton.tsx +22 -0
  52. package/src/modules/reader/components/ReaderBreadcrumbs.tsx +20 -0
  53. package/src/modules/reader/components/ReaderChrome.tsx +206 -0
  54. package/src/modules/reader/components/ReaderToolbar.tsx +52 -0
  55. package/src/modules/reader/components/ReaderTopbar.tsx +31 -0
  56. package/src/modules/reader/components/SettingsPanel.tsx +158 -0
  57. package/src/modules/reader/components/Toast.tsx +15 -0
  58. package/src/modules/reader/constants/index.ts +22 -0
  59. package/src/modules/reader/hooks/useAudioPlayer.ts +633 -0
  60. package/src/modules/reader/hooks/useAutoScroll.ts +31 -0
  61. package/src/modules/reader/hooks/useBookmark.ts +32 -0
  62. package/src/modules/reader/hooks/useComments.ts +86 -0
  63. package/src/modules/reader/hooks/useContentProtection.ts +81 -0
  64. package/src/modules/reader/hooks/useDrawers.ts +27 -0
  65. package/src/modules/reader/hooks/useFullscreen.ts +24 -0
  66. package/src/modules/reader/hooks/usePrefs.ts +66 -0
  67. package/src/modules/reader/hooks/useReaderView.ts +190 -0
  68. package/src/modules/reader/hooks/useReadingProgress.ts +95 -0
  69. package/src/modules/reader/hooks/useScrollVisibility.ts +44 -0
  70. package/src/modules/reader/hooks/useToast.ts +19 -0
  71. package/src/modules/reader/hooks/useUnlock.ts +59 -0
  72. package/src/modules/reader/styles/reader.module.css +1986 -0
  73. package/src/modules/reader/types.ts +145 -0
  74. package/src/modules/reader/utils/affiliate.ts +43 -0
  75. package/src/modules/reader/utils/chapter-label.ts +8 -0
  76. package/src/modules/reader/utils/format-date.ts +10 -0
  77. package/src/modules/reader/utils/obfuscate-content.ts +70 -0
  78. package/src/modules/reader/utils/silent-wav.ts +33 -0
  79. package/src/modules/reader/utils/tiktok-tts.ts +251 -0
  80. package/src/modules/reader/utils/word-svg.ts +132 -0
  81. package/tsconfig.json +34 -0
@@ -0,0 +1,1986 @@
1
+ /* Design tokens for the /reader route only. Ported 1:1 from
2
+ frontend/src/index.css :root (main site dark theme). */
3
+ :global(:root) {
4
+ --c-primary: #ff3d88;
5
+ --c-primary-hover: #d93474;
6
+ --c-primary-glow: rgba(255, 61, 136, 0.45);
7
+ --c-primary-light: rgba(255, 61, 136, 0.12);
8
+ --c-primary-dim: rgba(255, 61, 136, 0.08);
9
+ --c-primary-rgb: 255, 61, 136;
10
+
11
+ --c-gold: #f0b429;
12
+
13
+ --c-surface-1: #030520;
14
+ --c-surface-2: #060934;
15
+ --c-surface-3: #101455;
16
+ --c-surface-4: #1b1f6e;
17
+
18
+ --c-on-surface: #d5d3f8;
19
+ --c-on-surface-2: #8080bc;
20
+ --c-on-surface-3: #52528c;
21
+
22
+ --c-outline: rgba(122, 122, 182, 0.08);
23
+ --c-outline-strong: rgba(122, 122, 182, 0.16);
24
+
25
+ --r-xs: 4px;
26
+ --r-sm: 8px;
27
+ --r-md: 12px;
28
+ --r-lg: 18px;
29
+ --r-xl: 26px;
30
+ --r-2xl: 36px;
31
+ --r-full: 9999px;
32
+
33
+ --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
34
+ --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.8);
35
+ --shadow-pink: 0 6px 30px rgba(79, 2, 165, 0.45);
36
+
37
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
38
+ }
39
+
40
+ /* ══════════════════════════════════════
41
+ READER THEME TOKENS (scoped to root container, not <body>)
42
+ ══════════════════════════════════════ */
43
+ .readerContainer {
44
+ width: 100%;
45
+ min-height: 100vh;
46
+ display: flex;
47
+ flex-direction: column;
48
+ -webkit-text-size-adjust: 100%;
49
+ text-size-adjust: 100%;
50
+ -webkit-user-select: none;
51
+ -moz-user-select: none;
52
+ user-select: none;
53
+
54
+ --reader-bg: #00010e;
55
+ --reader-bar: #00010e;
56
+ --reader-text: #f5f1fe;
57
+ --reader-muted: #d5cde9;
58
+ --reader-surface: #090521;
59
+ --reader-chapter-color: #ffe0a2;
60
+ --skeleton-base: rgba(var(--c-primary-rgb), 0.1);
61
+ --skeleton-shine: rgba(var(--c-primary-rgb), 0.2);
62
+
63
+ /* Declared here (not :root) because --font-reader-sans/-serif are only set
64
+ on the (reader)/layout.tsx wrapper div, a descendant of :root — a var()
65
+ reference is substituted at its point of declaration, so declaring these
66
+ at :root would resolve to invalid before that wrapper div is reached. */
67
+ --font-display: var(--font-reader-serif), Georgia, serif;
68
+ --font-body: var(--font-reader-serif), Georgia, serif;
69
+ --font-serif: var(--font-reader-serif), Georgia, serif;
70
+ --font-sans: var(--font-reader-sans), "Segoe UI", sans-serif;
71
+
72
+ background: var(--reader-bg);
73
+ color: var(--reader-text);
74
+ }
75
+
76
+ @media (prefers-color-scheme: light) {
77
+ /* CSS fallback for when no explicit .light/.sepia/.dark class is present
78
+ yet (e.g. the loading skeleton, rendered before prefs hydrate from
79
+ localStorage) — honor the OS preference instead of always defaulting
80
+ to dark. Explicit theme classes below always win (higher specificity). */
81
+ .readerContainer {
82
+ --reader-bg: #fafaf8;
83
+ --reader-bar: #fafaf8;
84
+ --reader-text: #1a1a2e;
85
+ --reader-muted: #4a4a5a;
86
+ --reader-surface: #f0f0ed;
87
+ --reader-chapter-color: var(--c-primary);
88
+ --skeleton-base: rgba(var(--c-primary-rgb), 0.08);
89
+ --skeleton-shine: rgba(var(--c-primary-rgb), 0.03);
90
+ }
91
+ }
92
+
93
+ .readerContainer.light {
94
+ --reader-bg: #fafaf8;
95
+ --reader-bar: #fafaf8;
96
+ --reader-text: #1a1a2e;
97
+ --reader-muted: #4a4a5a;
98
+ --reader-surface: #f0f0ed;
99
+ --reader-chapter-color: var(--c-primary);
100
+ --skeleton-base: rgba(var(--c-primary-rgb), 0.08);
101
+ --skeleton-shine: rgba(var(--c-primary-rgb), 0.03);
102
+ }
103
+
104
+ .readerContainer.sepia {
105
+ --reader-bg: #f6edd8;
106
+ --reader-bar: #f6edd8;
107
+ --reader-text: #3d2b1f;
108
+ --reader-muted: #8b7355;
109
+ --reader-surface: #ede0c4;
110
+ --reader-chapter-color: #a0522d;
111
+ --skeleton-base: rgba(var(--c-primary-rgb), 0.08);
112
+ --skeleton-shine: rgba(var(--c-primary-rgb), 0.03);
113
+ }
114
+
115
+ .readerContainer.dark {
116
+ --reader-bg: #00010e;
117
+ --reader-bar: #00010e;
118
+ --reader-text: #f5f1fe;
119
+ --reader-muted: #d5cde9;
120
+ --skeleton-base: rgba(var(--c-primary-rgb), 0.1);
121
+ --skeleton-shine: rgba(var(--c-primary-rgb), 0.2);
122
+ --reader-surface: #090521;
123
+ --reader-chapter-color: #ffe0a2;
124
+ }
125
+
126
+ .obfWordLora,
127
+ .obfWordJakarta {
128
+ display: inline;
129
+ }
130
+
131
+ .readerContainer[data-reader-font="jakarta"] .obfWordLora {
132
+ display: none;
133
+ }
134
+
135
+ .readerContainer[data-reader-font="lora"] .obfWordJakarta {
136
+ display: none;
137
+ }
138
+
139
+ .readerContainer[data-reader-font="jakarta"] .content {
140
+ font-family: var(--font-sans);
141
+ }
142
+
143
+ .readerContainer[data-reader-font="lora"] .content {
144
+ font-family: var(--font-serif);
145
+ }
146
+
147
+ .readerContainer:fullscreen {
148
+ width: 100vw;
149
+ height: 100vh;
150
+ overflow-y: auto !important;
151
+ padding: 0 !important;
152
+ margin: 0 !important;
153
+ background: var(--reader-bg);
154
+ }
155
+
156
+ /* ══════════════════════════════════════
157
+ TOPBAR
158
+ ══════════════════════════════════════ */
159
+ .topbar {
160
+ position: fixed;
161
+ top: 0;
162
+ left: 0;
163
+ right: 0;
164
+ height: 52px;
165
+ background: var(--reader-bar);
166
+ border-bottom: 1px solid var(--c-outline);
167
+ z-index: 100;
168
+ display: flex;
169
+ align-items: center;
170
+ justify-content: space-between;
171
+ padding: 0 16px;
172
+ color: var(--reader-text);
173
+ transition: transform 0.3s var(--ease-out), background 0.3s;
174
+ }
175
+ .topbarHidden {
176
+ transform: translateY(-100%);
177
+ }
178
+ .topbarLeft {
179
+ display: flex;
180
+ align-items: center;
181
+ gap: 12px;
182
+ min-width: 0;
183
+ flex: 1;
184
+ }
185
+ .topbarRight {
186
+ display: flex;
187
+ align-items: center;
188
+ gap: 8px;
189
+ }
190
+
191
+ .iconBtn {
192
+ width: 36px;
193
+ height: 36px;
194
+ border-radius: var(--r-md);
195
+ display: flex;
196
+ align-items: center;
197
+ justify-content: center;
198
+ color: inherit;
199
+ transition: all 180ms var(--ease-out);
200
+ }
201
+ .iconBtn:hover {
202
+ background: rgba(120, 120, 120, 0.1);
203
+ transform: translateY(-1px);
204
+ }
205
+ .iconBtn:active {
206
+ transform: scale(0.94);
207
+ }
208
+
209
+ .storyInfo {
210
+ display: flex;
211
+ flex-direction: column;
212
+ min-width: 0;
213
+ }
214
+ .storyTitle {
215
+ font-size: 13px;
216
+ font-weight: 700;
217
+ color: var(--reader-text);
218
+ white-space: nowrap;
219
+ overflow: hidden;
220
+ text-overflow: ellipsis;
221
+ max-width: 280px;
222
+ }
223
+ .chapterLabel {
224
+ font-size: 12px;
225
+ color: var(--reader-chapter-color);
226
+ }
227
+
228
+ .main {
229
+ min-height: 100vh;
230
+ padding-top: 52px;
231
+ background: var(--reader-bg);
232
+ }
233
+ .wrap {
234
+ max-width: 720px;
235
+ margin: 0 auto;
236
+ padding: 32px 24px 64px;
237
+ }
238
+ .wrapFullscreen {
239
+ max-width: 100% !important;
240
+ padding: 40px 10% !important;
241
+ }
242
+
243
+ @media (max-width: 768px) {
244
+ .wrap {
245
+ padding: 24px 18px 100px;
246
+ }
247
+ .storyTitle {
248
+ max-width: 180px;
249
+ font-size: 13px;
250
+ }
251
+ .topbar {
252
+ padding: 0 12px;
253
+ }
254
+ .chapterTitle {
255
+ font-size: 20px;
256
+ margin-bottom: 24px;
257
+ font-weight: 800;
258
+ }
259
+ .content {
260
+ font-size: 17px;
261
+ line-height: 1.85;
262
+ }
263
+ .content p {
264
+ text-align: left !important;
265
+ margin-bottom: 1.15em;
266
+ }
267
+ .readerBreadcrumbs {
268
+ display: none !important;
269
+ }
270
+ .navTop {
271
+ display: none !important;
272
+ }
273
+ .readerToolbar {
274
+ display: none !important;
275
+ }
276
+ .optionBtn {
277
+ padding: 12px 14px;
278
+ font-size: 13px;
279
+ min-height: 44px;
280
+ }
281
+ .slider {
282
+ height: 8px !important;
283
+ }
284
+ .wrapFullscreen {
285
+ padding: 32px 16px !important;
286
+ }
287
+ }
288
+
289
+ @media (max-width: 480px) {
290
+ .wrap {
291
+ padding: 20px 16px 48px;
292
+ }
293
+ .settingsPanel {
294
+ width: 100%;
295
+ }
296
+ }
297
+
298
+ /* ══════════════════════════════════════
299
+ NAV & BUTTONS
300
+ ══════════════════════════════════════ */
301
+ .navTop,
302
+ .navBottom {
303
+ display: flex;
304
+ align-items: center;
305
+ justify-content: space-between;
306
+ }
307
+ .navTop {
308
+ padding: 16px 0;
309
+ border-bottom: 1px solid var(--c-outline);
310
+ margin-bottom: 32px;
311
+ }
312
+ .navBottom {
313
+ border-top: 1px solid var(--c-outline);
314
+ margin-top: 40px;
315
+ padding-top: 16px;
316
+ }
317
+
318
+ .btnGhost {
319
+ display: inline-flex;
320
+ align-items: center;
321
+ gap: 6px;
322
+ padding: 8px 20px;
323
+ border-radius: var(--r-full);
324
+ font-size: 13px;
325
+ font-weight: 700;
326
+ color: var(--reader-text);
327
+ border: 1px solid var(--c-outline-strong);
328
+ transition: all 200ms var(--ease-out);
329
+ background: transparent;
330
+ }
331
+ .btnGhost:hover:not([aria-disabled="true"]) {
332
+ background: rgba(120, 120, 120, 0.08);
333
+ transform: translateY(-2px);
334
+ border-color: var(--c-primary);
335
+ color: var(--c-primary);
336
+ }
337
+ .btnGhostDisabled {
338
+ opacity: 0.3;
339
+ pointer-events: none;
340
+ }
341
+
342
+ .btnPrimary {
343
+ display: inline-flex;
344
+ align-items: center;
345
+ gap: 6px;
346
+ padding: 10px 24px;
347
+ border-radius: var(--r-full);
348
+ font-size: 14px;
349
+ font-weight: 700;
350
+ color: #fff;
351
+ background: var(--c-primary);
352
+ box-shadow: 0 4px 14px var(--c-primary-glow);
353
+ transition: all 200ms var(--ease-out);
354
+ }
355
+ .btnPrimary:hover:not([aria-disabled="true"]) {
356
+ background: var(--c-primary-hover);
357
+ transform: translateY(-2px);
358
+ box-shadow: var(--shadow-pink);
359
+ }
360
+ .btnPrimaryDisabled {
361
+ opacity: 0.3;
362
+ pointer-events: none;
363
+ }
364
+
365
+ /* ══════════════════════════════════════
366
+ CHAPTER TITLE / CONTENT
367
+ ══════════════════════════════════════ */
368
+ .chapterTitle {
369
+ font-size: 22px;
370
+ font-weight: 800;
371
+ color: var(--reader-text);
372
+ margin-bottom: 32px;
373
+ line-height: 1.3;
374
+ }
375
+
376
+ .content {
377
+ font-family: var(--font-body);
378
+ font-size: var(--reader-font-size, 17px);
379
+ line-height: var(--reader-line-height, 1.85);
380
+ letter-spacing: 0.2px;
381
+ color: var(--reader-text);
382
+ overflow-wrap: normal;
383
+ word-break: normal;
384
+ hyphens: none;
385
+ text-rendering: optimizeLegibility;
386
+ font-kerning: normal;
387
+ }
388
+ .content p {
389
+ margin-bottom: 1.15em;
390
+ text-align: left;
391
+ }
392
+
393
+ .contentWrap {
394
+ position: relative;
395
+ }
396
+
397
+ .watermarkLayer {
398
+ position: absolute;
399
+ inset: 0;
400
+ z-index: 1;
401
+ pointer-events: none;
402
+ user-select: none;
403
+ background-repeat: repeat;
404
+ }
405
+
406
+ /* ══════════════════════════════════════
407
+ BREADCRUMBS & CHAPTER SELECT
408
+ ══════════════════════════════════════ */
409
+ .readerBreadcrumbs {
410
+ display: flex;
411
+ align-items: center;
412
+ gap: 8px;
413
+ font-family: var(--font-display);
414
+ font-size: 13px;
415
+ margin-bottom: 20px;
416
+ padding: 12px 18px;
417
+ background: var(--reader-surface);
418
+ border-radius: var(--r-md);
419
+ border: 1px solid var(--c-outline);
420
+ flex-wrap: wrap;
421
+ color: var(--reader-muted);
422
+ }
423
+ .breadcrumbLink {
424
+ font-weight: 700;
425
+ transition: color 0.15s;
426
+ color: var(--reader-text);
427
+ }
428
+ .breadcrumbLink:hover {
429
+ color: var(--c-primary);
430
+ }
431
+ .breadcrumbSep {
432
+ opacity: 0.4;
433
+ font-weight: 800;
434
+ }
435
+ .breadcrumbCurrent {
436
+ font-weight: 700;
437
+ color: var(--reader-chapter-color);
438
+ }
439
+
440
+ .chapterSelectWrap {
441
+ position: relative;
442
+ flex: 1;
443
+ max-width: 280px;
444
+ margin: 0 12px;
445
+ }
446
+ .chapterSelect {
447
+ width: 100%;
448
+ padding: 8px 16px;
449
+ font-family: var(--font-display);
450
+ font-size: 14px;
451
+ font-weight: 700;
452
+ border-radius: var(--r-full);
453
+ border: 1px solid var(--c-outline-strong);
454
+ appearance: none;
455
+ background-color: var(--reader-bg);
456
+ color: var(--reader-text);
457
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23787880'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
458
+ background-repeat: no-repeat;
459
+ background-position: right 14px center;
460
+ background-size: 18px;
461
+ padding-right: 36px;
462
+ cursor: pointer;
463
+ outline: none;
464
+ }
465
+ .chapterSelect:focus {
466
+ border-color: var(--c-primary);
467
+ box-shadow: 0 0 0 3px var(--c-primary-dim);
468
+ }
469
+
470
+ /* ══════════════════════════════════════
471
+ TOOLBAR
472
+ ══════════════════════════════════════ */
473
+ .readerToolbar {
474
+ display: flex;
475
+ align-items: center;
476
+ justify-content: space-between;
477
+ background: var(--reader-surface);
478
+ border-radius: var(--r-lg);
479
+ border: 1px solid var(--c-outline);
480
+ padding: 10px 16px;
481
+ margin-bottom: 32px;
482
+ gap: 16px;
483
+ flex-wrap: wrap;
484
+ }
485
+ .toolbarLeft,
486
+ .toolbarRight {
487
+ display: flex;
488
+ align-items: center;
489
+ gap: 8px;
490
+ }
491
+ .toolbarBtn {
492
+ width: 38px;
493
+ height: 38px;
494
+ border-radius: 50%;
495
+ display: flex;
496
+ align-items: center;
497
+ justify-content: center;
498
+ color: var(--reader-text);
499
+ border: 1px solid var(--c-outline);
500
+ background: transparent;
501
+ transition: all 180ms var(--ease-out);
502
+ }
503
+ .toolbarBtn:hover {
504
+ background: rgba(120, 120, 120, 0.12);
505
+ transform: translateY(-2px);
506
+ color: var(--c-primary);
507
+ border-color: rgba(79, 2, 165, 0.3);
508
+ }
509
+ .toolbarBtn:active {
510
+ transform: translateY(0) scale(0.92);
511
+ }
512
+ .toolbarBtnActive {
513
+ background: var(--c-primary-light) !important;
514
+ border-color: var(--c-primary) !important;
515
+ color: var(--c-primary) !important;
516
+ }
517
+ .toolbarBtnAudioDone {
518
+ background: rgba(16, 185, 129, 0.1) !important;
519
+ border-color: #10b981 !important;
520
+ color: #10b981 !important;
521
+ }
522
+
523
+ /* ══════════════════════════════════════
524
+ MODAL OVERLAY & DRAWERS
525
+ ══════════════════════════════════════ */
526
+ .overlay {
527
+ position: fixed;
528
+ inset: 0;
529
+ z-index: 200;
530
+ background: rgba(0, 0, 0, 0.45);
531
+ backdrop-filter: blur(4px);
532
+ opacity: 0;
533
+ pointer-events: none;
534
+ transition: opacity 0.3s var(--ease-out);
535
+ overscroll-behavior: contain;
536
+ }
537
+ .overlay.open {
538
+ opacity: 1;
539
+ pointer-events: auto;
540
+ }
541
+
542
+ .readerModalOverlay {
543
+ position: fixed;
544
+ inset: 0;
545
+ background: rgba(0, 0, 0, 0.65);
546
+ z-index: 1050;
547
+ display: flex;
548
+ align-items: center;
549
+ justify-content: center;
550
+ opacity: 0;
551
+ pointer-events: none;
552
+ transition: opacity 0.3s var(--ease-out);
553
+ overscroll-behavior: contain;
554
+ }
555
+ .readerModalOverlay.open {
556
+ opacity: 1;
557
+ pointer-events: auto;
558
+ }
559
+
560
+ .chapterDrawer,
561
+ .scrollDrawer {
562
+ background: #121214;
563
+ border: 1px solid rgba(255, 255, 255, 0.1);
564
+ border-radius: var(--r-xl);
565
+ padding: 24px;
566
+ box-shadow: var(--shadow-lg);
567
+ color: #f0ecfc;
568
+ transform: scale(0.95) translateY(24px);
569
+ opacity: 0;
570
+ transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
571
+ }
572
+ .readerModalOverlay.open .chapterDrawer,
573
+ .readerModalOverlay.open .scrollDrawer {
574
+ transform: scale(1) translateY(0);
575
+ opacity: 1;
576
+ }
577
+
578
+ .chapterDrawer {
579
+ width: 92%;
580
+ max-width: 580px;
581
+ max-height: 80vh;
582
+ display: flex;
583
+ flex-direction: column;
584
+ }
585
+
586
+ .drawerHeader {
587
+ display: flex;
588
+ align-items: center;
589
+ justify-content: space-between;
590
+ margin-bottom: 20px;
591
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
592
+ padding-bottom: 14px;
593
+ }
594
+ .drawerHeader h3 {
595
+ font-family: var(--font-display);
596
+ font-size: 18px;
597
+ font-weight: 800;
598
+ }
599
+ .drawerCloseBtn {
600
+ width: 32px;
601
+ height: 32px;
602
+ border-radius: 50%;
603
+ display: flex;
604
+ align-items: center;
605
+ justify-content: center;
606
+ color: rgba(255, 255, 255, 0.65);
607
+ transition: all 180ms var(--ease-out);
608
+ }
609
+ .drawerCloseBtn:hover {
610
+ background: rgba(255, 255, 255, 0.12);
611
+ color: #ffffff;
612
+ transform: scale(1.08) rotate(90deg);
613
+ }
614
+
615
+ .drawerBody {
616
+ display: flex;
617
+ flex-direction: column;
618
+ gap: 20px;
619
+ }
620
+ .drawerGrid {
621
+ display: grid;
622
+ grid-template-columns: 1fr;
623
+ gap: 12px;
624
+ overflow-y: auto;
625
+ padding-right: 4px;
626
+ max-height: 60vh;
627
+ }
628
+ .drawerChapterBtn {
629
+ display: flex;
630
+ align-items: center;
631
+ justify-content: space-between;
632
+ gap: 8px;
633
+ padding: 12px 16px;
634
+ border-radius: var(--r-md);
635
+ background: rgba(255, 255, 255, 0.03);
636
+ border: 1px solid rgba(255, 255, 255, 0.05);
637
+ color: rgba(255, 255, 255, 0.85);
638
+ font-weight: 700;
639
+ font-size: 13px;
640
+ text-align: left;
641
+ transition: all 180ms var(--ease-out);
642
+ white-space: nowrap;
643
+ overflow: hidden;
644
+ text-overflow: ellipsis;
645
+ }
646
+ .drawerChapterBtn:hover {
647
+ background: rgba(79, 2, 165, 0.1);
648
+ border-color: rgba(79, 2, 165, 0.25);
649
+ color: var(--c-highlight, #b656fd);
650
+ transform: translateY(-1px);
651
+ }
652
+ .drawerChapterActive {
653
+ background: var(--c-primary-light) !important;
654
+ border-color: var(--c-primary) !important;
655
+ color: #cbb1ff !important;
656
+ }
657
+
658
+ .drawerVipBadge {
659
+ display: inline-flex;
660
+ align-items: center;
661
+ justify-content: center;
662
+ padding: 2px 6px;
663
+ border-radius: 4px;
664
+ background: rgba(240, 180, 41, 0.15);
665
+ border: 1px solid rgba(240, 180, 41, 0.35);
666
+ font-size: 10px;
667
+ font-weight: 800;
668
+ color: #fbbf24;
669
+ line-height: 1;
670
+ }
671
+
672
+ .scrollDrawer {
673
+ width: 90%;
674
+ max-width: 400px;
675
+ display: flex;
676
+ flex-direction: column;
677
+ }
678
+ .scrollStatus {
679
+ display: inline-flex;
680
+ align-items: center;
681
+ gap: 8px;
682
+ padding: 6px 14px;
683
+ background: rgba(255, 255, 255, 0.04);
684
+ border: 1px solid rgba(255, 255, 255, 0.08);
685
+ border-radius: var(--r-full);
686
+ font-size: 13px;
687
+ font-weight: 700;
688
+ margin-bottom: 24px;
689
+ align-self: center;
690
+ }
691
+ .statusDot {
692
+ width: 8px;
693
+ height: 8px;
694
+ border-radius: 50%;
695
+ box-shadow: 0 0 8px currentColor;
696
+ }
697
+ .scrollSpeedControl {
698
+ margin-bottom: 24px;
699
+ display: flex;
700
+ flex-direction: column;
701
+ gap: 12px;
702
+ }
703
+ .scrollSpeedControl label {
704
+ font-size: 14px;
705
+ font-weight: 700;
706
+ color: rgba(255, 255, 255, 0.6);
707
+ }
708
+ .drawerSlider {
709
+ -webkit-appearance: none;
710
+ width: 100%;
711
+ height: 6px;
712
+ border-radius: var(--r-full);
713
+ background: rgba(255, 255, 255, 0.15);
714
+ outline: none;
715
+ }
716
+ .drawerSlider::-webkit-slider-thumb {
717
+ -webkit-appearance: none;
718
+ width: 20px;
719
+ height: 20px;
720
+ border-radius: 50%;
721
+ background: #ffffff;
722
+ cursor: pointer;
723
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
724
+ }
725
+ .sliderLabels {
726
+ display: flex;
727
+ justify-content: space-between;
728
+ font-size: 11px;
729
+ font-weight: 700;
730
+ color: rgba(255, 255, 255, 0.4);
731
+ text-transform: uppercase;
732
+ margin-top: 4px;
733
+ }
734
+ .drawerActions {
735
+ display: flex;
736
+ gap: 12px;
737
+ margin-top: 10px;
738
+ }
739
+ .btnStartScroll,
740
+ .btnStopScroll {
741
+ flex: 1;
742
+ display: flex;
743
+ align-items: center;
744
+ justify-content: center;
745
+ gap: 8px;
746
+ padding: 12px 18px;
747
+ border-radius: var(--r-full);
748
+ font-size: 14px;
749
+ font-weight: 700;
750
+ transition: all 200ms var(--ease-out);
751
+ border: none;
752
+ }
753
+ .btnStartScroll {
754
+ background: var(--c-primary);
755
+ color: #ffffff;
756
+ box-shadow: 0 4px 14px var(--c-primary-glow);
757
+ }
758
+ .btnStartScroll:hover:not(:disabled) {
759
+ background: var(--c-primary-hover);
760
+ transform: translateY(-2px);
761
+ }
762
+ .btnStartScroll:disabled {
763
+ background: var(--c-primary-dim);
764
+ color: rgba(255, 255, 255, 0.4);
765
+ cursor: not-allowed;
766
+ }
767
+ .btnStopScroll {
768
+ background: rgba(255, 255, 255, 0.05);
769
+ border: 1px solid rgba(255, 255, 255, 0.1);
770
+ color: #ffffff;
771
+ }
772
+ .btnStopScroll:hover:not(:disabled) {
773
+ background: rgba(255, 255, 255, 0.1);
774
+ }
775
+ .btnStopScroll:disabled {
776
+ opacity: 0.3;
777
+ cursor: not-allowed;
778
+ }
779
+
780
+ /* ══════════════════════════════════════
781
+ MOBILE DOCK
782
+ ══════════════════════════════════════ */
783
+ .mobileDockContainer {
784
+ display: none;
785
+ }
786
+ @media (max-width: 768px) {
787
+ .mobileDockContainer {
788
+ display: flex;
789
+ position: fixed;
790
+ bottom: 0;
791
+ left: 0;
792
+ right: 0;
793
+ padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
794
+ justify-content: center;
795
+ z-index: 999;
796
+ pointer-events: none;
797
+ transition: transform 0.6s var(--ease-out), opacity 0.5s;
798
+ }
799
+ .mobileDockContainerHidden {
800
+ transform: translateY(150%) scale(0.9);
801
+ opacity: 0;
802
+ pointer-events: none;
803
+ }
804
+ .mobileDock {
805
+ display: flex;
806
+ position: relative;
807
+ width: 92%;
808
+ max-width: 380px;
809
+ height: 56px;
810
+ background: #121018;
811
+ border: 1px solid rgba(255, 255, 255, 0.08);
812
+ border-radius: 28px;
813
+ align-items: center;
814
+ justify-content: space-around;
815
+ padding: 0 6px;
816
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
817
+ pointer-events: auto;
818
+ }
819
+ .dockItem {
820
+ display: flex;
821
+ flex-direction: column;
822
+ align-items: center;
823
+ justify-content: center;
824
+ gap: 2px;
825
+ color: rgba(255, 255, 255, 0.6);
826
+ width: 52px;
827
+ height: 100%;
828
+ transition: all 0.2s;
829
+ }
830
+ .dockItem:disabled {
831
+ opacity: 0.25;
832
+ }
833
+ .dockItem:active:not(:disabled) {
834
+ transform: scale(0.9);
835
+ }
836
+ .dockLabel {
837
+ font-size: 9px;
838
+ font-weight: 700;
839
+ text-transform: uppercase;
840
+ letter-spacing: 0.3px;
841
+ }
842
+ .dockActionFab {
843
+ width: 44px;
844
+ height: 44px;
845
+ border-radius: 50%;
846
+ background: rgba(255, 255, 255, 0.08);
847
+ border: 1px solid rgba(255, 255, 255, 0.12);
848
+ display: flex;
849
+ align-items: center;
850
+ justify-content: center;
851
+ color: #ffffff;
852
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 14px rgba(var(--c-primary-rgb), 0.28);
853
+ transition: all 0.2s var(--ease-out);
854
+ transform: translateY(-8px);
855
+ }
856
+ .dockActionFabActive {
857
+ background: linear-gradient(135deg, var(--c-primary) 0%, #6612e5 100%) !important;
858
+ border-color: var(--c-primary) !important;
859
+ }
860
+ .dockActionFab:active {
861
+ transform: translateY(-4px) scale(0.92);
862
+ }
863
+ }
864
+
865
+ .readerContainer.light .mobileDock {
866
+ background: #fafaf8;
867
+ border-color: rgba(0, 0, 0, 0.08);
868
+ }
869
+ .readerContainer.light .dockItem {
870
+ color: rgba(26, 26, 46, 0.6);
871
+ }
872
+ .readerContainer.light .dockActionFab:not(.dockActionFabActive) {
873
+ color: rgba(26, 26, 46, 0.7);
874
+ background: rgba(26, 26, 46, 0.06);
875
+ border-color: rgba(26, 26, 46, 0.1);
876
+ }
877
+ .readerContainer.sepia .mobileDock {
878
+ background: #f6edd8;
879
+ border-color: rgba(61, 43, 31, 0.08);
880
+ }
881
+ .readerContainer.sepia .dockItem {
882
+ color: rgba(61, 43, 31, 0.6);
883
+ }
884
+ .readerContainer.sepia .dockActionFab:not(.dockActionFabActive) {
885
+ color: rgba(61, 43, 31, 0.7);
886
+ background: rgba(61, 43, 31, 0.06);
887
+ border-color: rgba(61, 43, 31, 0.1);
888
+ }
889
+
890
+ /* ══════════════════════════════════════
891
+ SETTINGS PANEL
892
+ ══════════════════════════════════════ */
893
+ .settingsPanel {
894
+ position: fixed;
895
+ top: 52px;
896
+ right: 0;
897
+ bottom: 0;
898
+ width: 300px;
899
+ background: #121214;
900
+ border-left: 1px solid rgba(255, 255, 255, 0.1);
901
+ z-index: 201;
902
+ box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
903
+ transform: translateX(100%);
904
+ padding: 20px;
905
+ display: flex;
906
+ flex-direction: column;
907
+ gap: 20px;
908
+ overflow-y: auto;
909
+ color: #f2eeff;
910
+ transition: transform 0.35s var(--ease-out);
911
+ }
912
+ .settingsPanel.open {
913
+ transform: translateX(0);
914
+ }
915
+ .readerContainer.light .settingsPanel {
916
+ background: #fafaf8;
917
+ border-color: rgba(0, 0, 0, 0.08);
918
+ color: #1a1a2e;
919
+ }
920
+ .readerContainer.sepia .settingsPanel {
921
+ background: #f6edd8;
922
+ border-color: rgba(61, 43, 31, 0.08);
923
+ color: #3d2b1f;
924
+ }
925
+
926
+ .settingsHeader {
927
+ display: flex;
928
+ align-items: center;
929
+ justify-content: space-between;
930
+ }
931
+ .settingsTitle {
932
+ font-size: 15px;
933
+ font-weight: 700;
934
+ }
935
+ .settingsGroup {
936
+ display: flex;
937
+ flex-direction: column;
938
+ gap: 8px;
939
+ }
940
+ .settingsLabel {
941
+ font-size: 13px;
942
+ font-weight: 600;
943
+ opacity: 0.8;
944
+ }
945
+ .optionsGroup {
946
+ display: flex;
947
+ gap: 8px;
948
+ }
949
+ .optionBtn {
950
+ flex: 1;
951
+ padding: 8px 12px;
952
+ border: 1px solid var(--c-outline-strong);
953
+ border-radius: var(--r-md);
954
+ font-family: var(--font-display);
955
+ font-size: 12px;
956
+ font-weight: 700;
957
+ transition: all 200ms;
958
+ text-align: center;
959
+ color: inherit;
960
+ background: rgba(255, 255, 255, 0.04);
961
+ }
962
+ .activeOption {
963
+ border-color: var(--c-primary);
964
+ color: var(--c-primary);
965
+ background: var(--c-primary-light);
966
+ }
967
+
968
+ .settingsVoiceSelect {
969
+ width: 100%;
970
+ padding: 10px 16px;
971
+ background: var(--reader-surface);
972
+ border: 1px solid var(--c-outline-strong);
973
+ border-radius: var(--r-md);
974
+ font-size: 14px;
975
+ font-weight: 700;
976
+ color: var(--reader-text);
977
+ cursor: pointer;
978
+ outline: none;
979
+ appearance: none;
980
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23787880'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
981
+ background-repeat: no-repeat;
982
+ background-position: right 14px center;
983
+ background-size: 16px;
984
+ padding-right: 36px;
985
+ transition: all 0.2s;
986
+ }
987
+ .settingsVoiceSelect:focus {
988
+ border-color: var(--c-primary);
989
+ }
990
+
991
+ .continuousPlayRow {
992
+ display: flex;
993
+ align-items: center;
994
+ justify-content: space-between;
995
+ padding: 8px 0;
996
+ color: var(--reader-text);
997
+ font-size: 14px;
998
+ font-weight: 500;
999
+ }
1000
+
1001
+ .switch {
1002
+ position: relative;
1003
+ display: inline-block;
1004
+ width: 44px;
1005
+ height: 24px;
1006
+ flex-shrink: 0;
1007
+ }
1008
+ .switch input {
1009
+ opacity: 0;
1010
+ width: 0;
1011
+ height: 0;
1012
+ }
1013
+ .switchSlider {
1014
+ position: absolute;
1015
+ cursor: pointer;
1016
+ inset: 0;
1017
+ background-color: var(--c-outline-strong);
1018
+ transition: 0.3s var(--ease-out);
1019
+ border-radius: 24px;
1020
+ }
1021
+ .switchSlider::before {
1022
+ position: absolute;
1023
+ content: "";
1024
+ height: 18px;
1025
+ width: 18px;
1026
+ left: 3px;
1027
+ bottom: 3px;
1028
+ background-color: #ffffff;
1029
+ transition: 0.3s var(--ease-out);
1030
+ border-radius: 50%;
1031
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
1032
+ }
1033
+ .switch input:checked + .switchSlider {
1034
+ background-color: var(--c-primary);
1035
+ }
1036
+ .switch input:checked + .switchSlider::before {
1037
+ transform: translateX(20px);
1038
+ }
1039
+
1040
+ .slider {
1041
+ -webkit-appearance: none;
1042
+ width: 100%;
1043
+ height: 4px;
1044
+ border-radius: var(--r-full);
1045
+ background: var(--c-outline);
1046
+ outline: none;
1047
+ }
1048
+ .slider::-webkit-slider-thumb {
1049
+ -webkit-appearance: none;
1050
+ width: 18px;
1051
+ height: 18px;
1052
+ border-radius: 50%;
1053
+ background: var(--c-primary);
1054
+ cursor: pointer;
1055
+ box-shadow: 0 0 0 3px var(--c-primary-dim);
1056
+ }
1057
+
1058
+ .bottomSheetHandle {
1059
+ display: none;
1060
+ }
1061
+ @media (max-width: 768px) {
1062
+ .settingsPanel {
1063
+ position: fixed !important;
1064
+ top: auto !important;
1065
+ bottom: 0 !important;
1066
+ left: 0 !important;
1067
+ right: 0 !important;
1068
+ width: 100% !important;
1069
+ max-height: 85vh !important;
1070
+ border-radius: 24px 24px 0 0 !important;
1071
+ border-left: none !important;
1072
+ transform: translateY(100%);
1073
+ padding: 24px 20px 40px !important;
1074
+ z-index: 1100 !important;
1075
+ }
1076
+ .settingsPanel.open {
1077
+ transform: translateY(0);
1078
+ }
1079
+ .bottomSheetHandle {
1080
+ display: block;
1081
+ width: 42px;
1082
+ height: 4px;
1083
+ background: rgba(120, 120, 120, 0.3);
1084
+ border-radius: 2px;
1085
+ margin: -12px auto 20px;
1086
+ }
1087
+ }
1088
+
1089
+ .toolsGrid {
1090
+ display: grid;
1091
+ grid-template-columns: repeat(4, 1fr);
1092
+ gap: 8px;
1093
+ margin-top: 6px;
1094
+ }
1095
+ .toolCard {
1096
+ display: flex;
1097
+ flex-direction: column;
1098
+ align-items: center;
1099
+ justify-content: center;
1100
+ gap: 6px;
1101
+ padding: 10px 4px;
1102
+ background: rgba(255, 255, 255, 0.04);
1103
+ border: 1px solid rgba(255, 255, 255, 0.08);
1104
+ border-radius: var(--r-md);
1105
+ color: rgba(255, 255, 255, 0.8);
1106
+ transition: all 0.2s;
1107
+ }
1108
+ .toolCard span:first-child {
1109
+ font-size: 20px;
1110
+ }
1111
+ .toolCard span:last-child {
1112
+ font-size: 10px;
1113
+ font-weight: 700;
1114
+ text-align: center;
1115
+ white-space: nowrap;
1116
+ }
1117
+ .toolCard:hover {
1118
+ border-color: var(--c-primary);
1119
+ color: var(--c-primary);
1120
+ }
1121
+ .toolCardActive {
1122
+ background: var(--c-primary-light) !important;
1123
+ border-color: var(--c-primary) !important;
1124
+ color: var(--c-primary) !important;
1125
+ }
1126
+ .readerContainer.light .toolCard,
1127
+ .readerContainer.sepia .toolCard {
1128
+ background: rgba(0, 0, 0, 0.03);
1129
+ border-color: rgba(0, 0, 0, 0.08);
1130
+ color: inherit;
1131
+ }
1132
+
1133
+ /* ══════════════════════════════════════
1134
+ FULLSCREEN EXIT BUTTON
1135
+ ══════════════════════════════════════ */
1136
+ .exitFullscreenFloatBtn {
1137
+ position: fixed;
1138
+ top: 20px;
1139
+ right: 20px;
1140
+ width: 44px;
1141
+ height: 44px;
1142
+ border-radius: 50%;
1143
+ background: rgba(255, 255, 255, 0.08);
1144
+ border: 1px solid rgba(255, 255, 255, 0.12);
1145
+ color: rgba(255, 255, 255, 0.8);
1146
+ display: flex;
1147
+ align-items: center;
1148
+ justify-content: center;
1149
+ z-index: 1060;
1150
+ transition: all 0.2s var(--ease-out);
1151
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
1152
+ }
1153
+ .exitFullscreenFloatBtn:hover {
1154
+ background: rgba(255, 255, 255, 0.18);
1155
+ transform: scale(1.08) rotate(90deg);
1156
+ }
1157
+ @media (max-width: 768px) {
1158
+ .exitFullscreenFloatBtn {
1159
+ top: 12px;
1160
+ right: 12px;
1161
+ width: 38px;
1162
+ height: 38px;
1163
+ }
1164
+ }
1165
+
1166
+ /* ══════════════════════════════════════
1167
+ TOAST
1168
+ ══════════════════════════════════════ */
1169
+ .toast {
1170
+ position: fixed;
1171
+ bottom: 24px;
1172
+ right: 24px;
1173
+ display: flex;
1174
+ align-items: center;
1175
+ gap: 10px;
1176
+ background: #d5d3f8;
1177
+ color: #010012;
1178
+ padding: 12px 20px;
1179
+ border-radius: var(--r-lg);
1180
+ font-size: 14px;
1181
+ font-weight: 500;
1182
+ box-shadow: var(--shadow-lg);
1183
+ z-index: 2000;
1184
+ max-width: 360px;
1185
+ animation: toastIn 220ms var(--ease-out);
1186
+ }
1187
+ .toastIcon {
1188
+ font-size: 18px !important;
1189
+ flex-shrink: 0;
1190
+ }
1191
+ .toastSuccess {
1192
+ border-left: 3px solid var(--c-success, #22c55e);
1193
+ }
1194
+ .toastError {
1195
+ border-left: 3px solid var(--c-error, #ef4444);
1196
+ }
1197
+ .toastInfo {
1198
+ border-left: 3px solid var(--c-primary);
1199
+ }
1200
+ @keyframes toastIn {
1201
+ from {
1202
+ opacity: 0;
1203
+ transform: translateY(12px);
1204
+ }
1205
+ to {
1206
+ opacity: 1;
1207
+ transform: translateY(0);
1208
+ }
1209
+ }
1210
+
1211
+ /* ══════════════════════════════════════
1212
+ COMMENTS
1213
+ ══════════════════════════════════════ */
1214
+ .commentSection {
1215
+ margin-top: 48px;
1216
+ padding-top: 32px;
1217
+ border-top: 1px solid var(--c-outline);
1218
+ }
1219
+ .sectionHeader {
1220
+ display: flex;
1221
+ align-items: center;
1222
+ gap: 12px;
1223
+ margin-bottom: 24px;
1224
+ }
1225
+ .accentBar {
1226
+ width: 4px;
1227
+ height: 20px;
1228
+ background: var(--c-gold);
1229
+ border-radius: var(--r-full);
1230
+ box-shadow: 0 0 8px rgba(252, 192, 91, 0.4);
1231
+ }
1232
+ .sectionTitle {
1233
+ font-size: 18px;
1234
+ font-weight: 800;
1235
+ color: var(--reader-text);
1236
+ margin: 0;
1237
+ }
1238
+ .chapterWordHighlight {
1239
+ color: var(--reader-chapter-color);
1240
+ }
1241
+ .commentContainer {
1242
+ display: flex;
1243
+ flex-direction: column;
1244
+ gap: 24px;
1245
+ }
1246
+ .commentForm {
1247
+ background: var(--reader-surface);
1248
+ border-radius: var(--r-lg);
1249
+ padding: 20px;
1250
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
1251
+ }
1252
+ .formRow {
1253
+ display: flex;
1254
+ gap: 16px;
1255
+ }
1256
+ .userAvatarFallback {
1257
+ width: 40px;
1258
+ height: 40px;
1259
+ border-radius: 50%;
1260
+ background: var(--c-gold);
1261
+ color: #fff;
1262
+ display: flex;
1263
+ align-items: center;
1264
+ justify-content: center;
1265
+ font-weight: 700;
1266
+ font-size: 16px;
1267
+ flex-shrink: 0;
1268
+ }
1269
+ .formInputGroup {
1270
+ flex: 1;
1271
+ display: flex;
1272
+ flex-direction: column;
1273
+ gap: 12px;
1274
+ }
1275
+ .commentTextarea {
1276
+ width: 100%;
1277
+ background: var(--reader-bg);
1278
+ border: 1px solid var(--reader-muted);
1279
+ border-radius: var(--r-md);
1280
+ padding: 12px 16px;
1281
+ color: var(--reader-text);
1282
+ font-size: 14px;
1283
+ resize: vertical;
1284
+ outline: none;
1285
+ transition: border-color 200ms;
1286
+ -webkit-user-select: text;
1287
+ -moz-user-select: text;
1288
+ user-select: text;
1289
+ }
1290
+ .commentTextarea:focus {
1291
+ border-color: var(--c-gold);
1292
+ }
1293
+ .formActionRow {
1294
+ display: flex;
1295
+ justify-content: flex-end;
1296
+ }
1297
+ .btnSubmitComment {
1298
+ background: var(--c-gold);
1299
+ color: #fff;
1300
+ font-weight: 700;
1301
+ font-size: 13px;
1302
+ padding: 8px 20px;
1303
+ border-radius: var(--r-full);
1304
+ box-shadow: 0 4px 12px rgba(252, 192, 91, 0.3);
1305
+ transition: all 200ms;
1306
+ }
1307
+ .btnSubmitComment:hover:not(:disabled) {
1308
+ transform: translateY(-1px);
1309
+ }
1310
+ .btnSubmitComment:disabled {
1311
+ opacity: 0.5;
1312
+ cursor: not-allowed;
1313
+ }
1314
+ .commentList {
1315
+ display: flex;
1316
+ flex-direction: column;
1317
+ gap: 16px;
1318
+ }
1319
+ .commentCard {
1320
+ display: flex;
1321
+ gap: 16px;
1322
+ padding: 16px;
1323
+ background: var(--reader-surface);
1324
+ border-radius: var(--r-lg);
1325
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
1326
+ }
1327
+ .cmtAvatarFallback {
1328
+ width: 36px;
1329
+ height: 36px;
1330
+ border-radius: 50%;
1331
+ background: var(--reader-muted);
1332
+ color: var(--reader-bg);
1333
+ display: flex;
1334
+ align-items: center;
1335
+ justify-content: center;
1336
+ font-weight: 700;
1337
+ font-size: 14px;
1338
+ flex-shrink: 0;
1339
+ }
1340
+ .cmtBody {
1341
+ flex: 1;
1342
+ min-width: 0;
1343
+ }
1344
+ .cmtHeader {
1345
+ display: flex;
1346
+ justify-content: space-between;
1347
+ align-items: center;
1348
+ margin-bottom: 6px;
1349
+ }
1350
+ .cmtMeta {
1351
+ display: flex;
1352
+ align-items: center;
1353
+ gap: 8px;
1354
+ }
1355
+ .cmtAuthor {
1356
+ font-size: 14px;
1357
+ font-weight: 700;
1358
+ color: var(--reader-text);
1359
+ }
1360
+ .cmtTime {
1361
+ font-size: 11px;
1362
+ color: var(--reader-muted);
1363
+ }
1364
+ .cmtContent {
1365
+ font-size: 14px;
1366
+ line-height: 1.6;
1367
+ color: var(--reader-text);
1368
+ margin: 0;
1369
+ word-break: break-word;
1370
+ }
1371
+ .cmtReplyBtn {
1372
+ margin-top: 8px;
1373
+ font-size: 12.5px;
1374
+ font-weight: 700;
1375
+ color: var(--reader-text);
1376
+ opacity: 0.6;
1377
+ }
1378
+ .cmtReplyBtn:hover {
1379
+ opacity: 1;
1380
+ color: var(--c-primary);
1381
+ }
1382
+ .cmtReplyForm {
1383
+ margin-top: 10px;
1384
+ }
1385
+ .cmtReplies {
1386
+ margin-top: 12px;
1387
+ padding-left: 16px;
1388
+ border-left: 2px solid var(--c-outline);
1389
+ display: flex;
1390
+ flex-direction: column;
1391
+ gap: 12px;
1392
+ }
1393
+ .emptyComments {
1394
+ text-align: center;
1395
+ padding: 40px 20px;
1396
+ background: var(--reader-surface);
1397
+ border-radius: var(--r-lg);
1398
+ border: 1px dashed var(--reader-muted);
1399
+ }
1400
+ .emptyCommentsText {
1401
+ font-weight: 700;
1402
+ font-size: 14px;
1403
+ color: var(--reader-text);
1404
+ margin: 0 0 4px 0;
1405
+ }
1406
+
1407
+ /* ══════════════════════════════════════
1408
+ BOTTOM AUDIO PLAYER BAR (ported from
1409
+ frontend/src/pages/ReaderPage.module.css)
1410
+ ══════════════════════════════════════ */
1411
+ .bottomPlayerContainer {
1412
+ display: contents;
1413
+ }
1414
+ .bottomPlayerBar {
1415
+ position: fixed;
1416
+ bottom: 0;
1417
+ left: 0;
1418
+ right: 0;
1419
+ background: #0d0b12;
1420
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
1421
+ z-index: 1000;
1422
+ display: flex;
1423
+ flex-direction: column;
1424
+ padding: 0 24px;
1425
+ box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.6);
1426
+ color: #ffffff;
1427
+ transform: translateY(0);
1428
+ opacity: 1;
1429
+ pointer-events: auto;
1430
+ transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease-out);
1431
+ }
1432
+ .bottomPlayerBarHidden {
1433
+ transform: translateY(100%);
1434
+ opacity: 0;
1435
+ pointer-events: none !important;
1436
+ }
1437
+
1438
+ .playerRow1 {
1439
+ display: flex;
1440
+ align-items: center;
1441
+ justify-content: space-between;
1442
+ gap: 16px;
1443
+ width: 100%;
1444
+ padding: 10px 0 6px;
1445
+ }
1446
+
1447
+ .playerProgressRow {
1448
+ display: flex;
1449
+ align-items: center;
1450
+ gap: 10px;
1451
+ width: 100%;
1452
+ padding-bottom: 10px;
1453
+ }
1454
+
1455
+ .playerLeft {
1456
+ display: flex;
1457
+ align-items: center;
1458
+ gap: 14px;
1459
+ flex: 1;
1460
+ min-width: 0;
1461
+ }
1462
+
1463
+ .playerIconCircle {
1464
+ width: 44px;
1465
+ height: 44px;
1466
+ border-radius: 50%;
1467
+ background: linear-gradient(135deg, var(--c-primary) 0%, #c026a0 100%);
1468
+ display: flex;
1469
+ align-items: center;
1470
+ justify-content: center;
1471
+ color: #ffffff;
1472
+ box-shadow: 0 4px 14px rgba(var(--c-primary-rgb), 0.35);
1473
+ flex-shrink: 0;
1474
+ }
1475
+
1476
+ .playerInfoTexts {
1477
+ display: flex;
1478
+ flex-direction: column;
1479
+ min-width: 0;
1480
+ }
1481
+
1482
+ .playerChapTitle {
1483
+ font-family: var(--font-display);
1484
+ font-size: 14px;
1485
+ font-weight: 700;
1486
+ white-space: nowrap;
1487
+ overflow: hidden;
1488
+ text-overflow: ellipsis;
1489
+ }
1490
+
1491
+ .segmentIndicator {
1492
+ margin-left: 8px;
1493
+ font-size: 11px;
1494
+ opacity: 0.75;
1495
+ background: rgba(255, 255, 255, 0.1);
1496
+ padding: 2px 6px;
1497
+ border-radius: 4px;
1498
+ }
1499
+
1500
+ .playerSubtitle {
1501
+ font-size: 11px;
1502
+ color: rgba(255, 255, 255, 0.5);
1503
+ font-weight: 700;
1504
+ }
1505
+
1506
+ .playerControlsRow {
1507
+ display: flex;
1508
+ align-items: center;
1509
+ gap: 18px;
1510
+ }
1511
+
1512
+ .playerControlBtn {
1513
+ width: 32px;
1514
+ height: 32px;
1515
+ border-radius: 50%;
1516
+ display: flex;
1517
+ align-items: center;
1518
+ justify-content: center;
1519
+ color: rgba(255, 255, 255, 0.75);
1520
+ cursor: pointer;
1521
+ transition: all 0.2s;
1522
+ border: none;
1523
+ background: transparent;
1524
+ }
1525
+ .playerControlBtn:hover {
1526
+ color: #ffffff;
1527
+ background: rgba(255, 255, 255, 0.08);
1528
+ }
1529
+ .playerControlBtn:disabled {
1530
+ opacity: 0.4;
1531
+ cursor: not-allowed;
1532
+ }
1533
+
1534
+ .playerPlayBtn {
1535
+ width: 40px;
1536
+ height: 40px;
1537
+ border-radius: 50%;
1538
+ background: var(--c-primary);
1539
+ color: #ffffff;
1540
+ display: flex;
1541
+ align-items: center;
1542
+ justify-content: center;
1543
+ cursor: pointer;
1544
+ transition: all 0.2s;
1545
+ box-shadow: 0 4px 14px var(--c-primary-glow);
1546
+ border: none;
1547
+ }
1548
+ .playerPlayBtn:hover {
1549
+ transform: scale(1.08);
1550
+ background: var(--c-primary-hover);
1551
+ box-shadow: 0 4px 18px var(--c-primary-glow);
1552
+ }
1553
+ .playerPlayBtn:active {
1554
+ transform: scale(0.96);
1555
+ }
1556
+ .playerPlayBtn:disabled {
1557
+ opacity: 0.6;
1558
+ cursor: not-allowed;
1559
+ transform: none;
1560
+ }
1561
+
1562
+ .playerTime {
1563
+ font-size: 11px;
1564
+ font-weight: 700;
1565
+ color: rgba(255, 255, 255, 0.5);
1566
+ width: 36px;
1567
+ text-align: center;
1568
+ }
1569
+
1570
+ .playerSlider {
1571
+ -webkit-appearance: none;
1572
+ flex: 1;
1573
+ height: 4px;
1574
+ border-radius: var(--r-full);
1575
+ background: rgba(255, 255, 255, 0.18);
1576
+ outline: none;
1577
+ cursor: pointer;
1578
+ }
1579
+ .playerSlider::-webkit-slider-thumb {
1580
+ -webkit-appearance: none;
1581
+ width: 12px;
1582
+ height: 12px;
1583
+ border-radius: 50%;
1584
+ background: var(--c-primary);
1585
+ box-shadow: 0 0 6px var(--c-primary-glow);
1586
+ cursor: pointer;
1587
+ }
1588
+
1589
+ .playerRight {
1590
+ display: flex;
1591
+ align-items: center;
1592
+ justify-content: flex-end;
1593
+ gap: 16px;
1594
+ flex: 1;
1595
+ }
1596
+
1597
+ .playerVolumeWrap {
1598
+ display: flex;
1599
+ align-items: center;
1600
+ gap: 6px;
1601
+ }
1602
+
1603
+ .playerVolumeSlider {
1604
+ -webkit-appearance: none;
1605
+ width: 72px;
1606
+ height: 4px;
1607
+ border-radius: var(--r-full);
1608
+ background: rgba(255, 255, 255, 0.18);
1609
+ outline: none;
1610
+ cursor: pointer;
1611
+ }
1612
+ .playerVolumeSlider::-webkit-slider-thumb {
1613
+ -webkit-appearance: none;
1614
+ width: 10px;
1615
+ height: 10px;
1616
+ border-radius: 50%;
1617
+ background: #ffffff;
1618
+ cursor: pointer;
1619
+ }
1620
+
1621
+ .playerSpeedBtn {
1622
+ padding: 5px 12px;
1623
+ background: rgba(255, 255, 255, 0.06);
1624
+ border: 1px solid rgba(255, 255, 255, 0.12);
1625
+ border-radius: 6px;
1626
+ font-size: 12px;
1627
+ font-weight: 700;
1628
+ color: #ffffff;
1629
+ cursor: pointer;
1630
+ transition: all 0.2s;
1631
+ min-width: 48px;
1632
+ text-align: center;
1633
+ }
1634
+ .playerSpeedBtn:hover {
1635
+ background: rgba(255, 255, 255, 0.12);
1636
+ }
1637
+ .playerSpeedBtn:disabled {
1638
+ opacity: 0.5;
1639
+ cursor: not-allowed;
1640
+ }
1641
+
1642
+ .playerContinuousBtn {
1643
+ background: transparent;
1644
+ border: 1px solid rgba(255, 255, 255, 0.15);
1645
+ border-radius: 12px;
1646
+ padding: 6px 12px;
1647
+ color: rgba(255, 255, 255, 0.8);
1648
+ font-size: 13px;
1649
+ display: flex;
1650
+ align-items: center;
1651
+ gap: 6px;
1652
+ cursor: pointer;
1653
+ transition: all 0.2s ease;
1654
+ height: 32px;
1655
+ }
1656
+ .playerContinuousBtn:hover {
1657
+ background: rgba(255, 255, 255, 0.08);
1658
+ color: #fff;
1659
+ }
1660
+ .activeContinuous {
1661
+ background: rgba(var(--c-primary-rgb), 0.15) !important;
1662
+ border-color: var(--c-primary) !important;
1663
+ color: var(--c-primary) !important;
1664
+ }
1665
+ .continuousText {
1666
+ font-weight: 500;
1667
+ white-space: nowrap;
1668
+ overflow: hidden;
1669
+ text-overflow: ellipsis;
1670
+ max-width: 100px;
1671
+ }
1672
+ @media (max-width: 600px) {
1673
+ .continuousText {
1674
+ display: none;
1675
+ }
1676
+ }
1677
+
1678
+ .voiceSelect {
1679
+ padding: 5px 24px 5px 12px;
1680
+ background: rgba(255, 255, 255, 0.06);
1681
+ border: 1px solid rgba(255, 255, 255, 0.12);
1682
+ border-radius: 6px;
1683
+ font-size: 12px;
1684
+ font-weight: 700;
1685
+ color: #ffffff;
1686
+ cursor: pointer;
1687
+ transition: all 0.2s;
1688
+ outline: none;
1689
+ font-family: inherit;
1690
+ appearance: none;
1691
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
1692
+ background-repeat: no-repeat;
1693
+ background-position: right 8px center;
1694
+ background-size: 12px;
1695
+ }
1696
+ .voiceSelect:hover {
1697
+ background: rgba(255, 255, 255, 0.12);
1698
+ }
1699
+ .voiceSelect option {
1700
+ background: #0d0b12;
1701
+ color: #ffffff;
1702
+ }
1703
+
1704
+ .spin {
1705
+ animation: audioSpin 1s linear infinite;
1706
+ display: inline-block;
1707
+ }
1708
+ @keyframes audioSpin {
1709
+ from {
1710
+ transform: rotate(0deg);
1711
+ }
1712
+ to {
1713
+ transform: rotate(360deg);
1714
+ }
1715
+ }
1716
+
1717
+ @media (max-width: 768px) {
1718
+ .bottomPlayerContainer {
1719
+ display: flex;
1720
+ position: fixed;
1721
+ bottom: 0;
1722
+ left: 0;
1723
+ right: 0;
1724
+ width: 100%;
1725
+ padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
1726
+ justify-content: center;
1727
+ z-index: 1000;
1728
+ pointer-events: none;
1729
+ }
1730
+
1731
+ .bottomPlayerBar {
1732
+ position: relative;
1733
+ width: 92%;
1734
+ max-width: 380px;
1735
+ border-radius: var(--r-lg);
1736
+ padding: 8px 14px 10px;
1737
+ border: 1px solid rgba(255, 255, 255, 0.1);
1738
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
1739
+ background: rgba(18, 16, 24, 0.96);
1740
+ pointer-events: auto;
1741
+ gap: 0;
1742
+ }
1743
+
1744
+ .playerRow1 {
1745
+ padding: 6px 0 4px;
1746
+ gap: 8px;
1747
+ }
1748
+ .playerLeft {
1749
+ flex: 1;
1750
+ min-width: 0;
1751
+ gap: 8px;
1752
+ }
1753
+ .playerIconCircle {
1754
+ width: 32px;
1755
+ height: 32px;
1756
+ }
1757
+ .playerIconCircle .material-icons-round {
1758
+ font-size: 16px;
1759
+ }
1760
+ .playerInfoTexts {
1761
+ flex: 1;
1762
+ min-width: 0;
1763
+ }
1764
+ .playerChapTitle {
1765
+ font-size: 12px;
1766
+ }
1767
+ .playerSubtitle {
1768
+ font-size: 10px;
1769
+ }
1770
+ .playerControlsRow {
1771
+ gap: 8px;
1772
+ flex-shrink: 0;
1773
+ }
1774
+ .playerPlayBtn {
1775
+ width: 34px;
1776
+ height: 34px;
1777
+ }
1778
+ .playerControlBtn {
1779
+ width: 26px;
1780
+ height: 26px;
1781
+ }
1782
+ .playerControlBtn .material-icons-round,
1783
+ .playerPlayBtn .material-icons-round {
1784
+ font-size: 18px;
1785
+ }
1786
+ .playerRight {
1787
+ flex-shrink: 0;
1788
+ gap: 8px;
1789
+ }
1790
+ .playerVolumeWrap,
1791
+ .voiceSelect {
1792
+ display: none !important;
1793
+ }
1794
+ .playerSpeedBtn {
1795
+ font-size: 11px;
1796
+ padding: 4px 8px;
1797
+ min-width: 36px;
1798
+ }
1799
+ .playerContinuousBtn {
1800
+ padding: 4px 8px;
1801
+ height: 26px;
1802
+ }
1803
+ .playerProgressRow {
1804
+ padding-bottom: 6px;
1805
+ }
1806
+ .playerTime {
1807
+ font-size: 10px;
1808
+ width: 28px;
1809
+ }
1810
+ }
1811
+
1812
+ .readerContainer.light .bottomPlayerBar {
1813
+ border-color: rgba(0, 0, 0, 0.08);
1814
+ background: #fafaf8;
1815
+ box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.05);
1816
+ }
1817
+ .readerContainer.sepia .bottomPlayerBar {
1818
+ border-color: rgba(61, 43, 31, 0.08);
1819
+ background: #f6edd8;
1820
+ box-shadow: 0 -8px 32px rgba(61, 43, 31, 0.06);
1821
+ }
1822
+ .readerContainer.light .playerContinuousBtn {
1823
+ border-color: rgba(0, 0, 0, 0.12);
1824
+ color: rgba(0, 0, 0, 0.7);
1825
+ }
1826
+ .readerContainer.light .playerContinuousBtn:hover {
1827
+ background: rgba(0, 0, 0, 0.05);
1828
+ color: #000;
1829
+ }
1830
+ .readerContainer.sepia .playerContinuousBtn {
1831
+ border-color: rgba(61, 43, 31, 0.15);
1832
+ color: rgba(61, 43, 31, 0.8);
1833
+ }
1834
+ .readerContainer.sepia .playerContinuousBtn:hover {
1835
+ background: rgba(61, 43, 31, 0.05);
1836
+ color: #3d2b1f;
1837
+ }
1838
+
1839
+ .readerContainer.light .bottomPlayerBar {
1840
+ color: #1a1a2e;
1841
+ }
1842
+ .readerContainer.sepia .bottomPlayerBar {
1843
+ color: #3d2b1f;
1844
+ }
1845
+ .readerContainer.light .segmentIndicator {
1846
+ background: rgba(0, 0, 0, 0.08);
1847
+ }
1848
+ .readerContainer.sepia .segmentIndicator {
1849
+ background: rgba(61, 43, 31, 0.1);
1850
+ }
1851
+ .readerContainer.light .playerSubtitle,
1852
+ .readerContainer.light .playerTime {
1853
+ color: rgba(0, 0, 0, 0.5);
1854
+ }
1855
+ .readerContainer.sepia .playerSubtitle,
1856
+ .readerContainer.sepia .playerTime {
1857
+ color: rgba(61, 43, 31, 0.6);
1858
+ }
1859
+ .readerContainer.light .playerControlBtn {
1860
+ color: rgba(0, 0, 0, 0.6);
1861
+ }
1862
+ .readerContainer.light .playerControlBtn:hover {
1863
+ color: #000;
1864
+ background: rgba(0, 0, 0, 0.06);
1865
+ }
1866
+ .readerContainer.sepia .playerControlBtn {
1867
+ color: rgba(61, 43, 31, 0.65);
1868
+ }
1869
+ .readerContainer.sepia .playerControlBtn:hover {
1870
+ color: #3d2b1f;
1871
+ background: rgba(61, 43, 31, 0.06);
1872
+ }
1873
+ .readerContainer.light .playerSlider,
1874
+ .readerContainer.light .playerVolumeSlider {
1875
+ background: rgba(0, 0, 0, 0.12);
1876
+ }
1877
+ .readerContainer.sepia .playerSlider,
1878
+ .readerContainer.sepia .playerVolumeSlider {
1879
+ background: rgba(61, 43, 31, 0.15);
1880
+ }
1881
+ .readerContainer.light .playerVolumeSlider::-webkit-slider-thumb {
1882
+ background: #1a1a2e;
1883
+ }
1884
+ .readerContainer.sepia .playerVolumeSlider::-webkit-slider-thumb {
1885
+ background: #3d2b1f;
1886
+ }
1887
+ .readerContainer.light .playerSpeedBtn {
1888
+ background: rgba(0, 0, 0, 0.05);
1889
+ border-color: rgba(0, 0, 0, 0.12);
1890
+ color: #1a1a2e;
1891
+ }
1892
+ .readerContainer.light .playerSpeedBtn:hover {
1893
+ background: rgba(0, 0, 0, 0.09);
1894
+ }
1895
+ .readerContainer.sepia .playerSpeedBtn {
1896
+ background: rgba(61, 43, 31, 0.06);
1897
+ border-color: rgba(61, 43, 31, 0.15);
1898
+ color: #3d2b1f;
1899
+ }
1900
+ .readerContainer.sepia .playerSpeedBtn:hover {
1901
+ background: rgba(61, 43, 31, 0.1);
1902
+ }
1903
+ .readerContainer.light .voiceSelect {
1904
+ background-color: rgba(0, 0, 0, 0.05);
1905
+ border-color: rgba(0, 0, 0, 0.12);
1906
+ color: #1a1a2e;
1907
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a2e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
1908
+ }
1909
+ .readerContainer.light .voiceSelect:hover {
1910
+ background-color: rgba(0, 0, 0, 0.09);
1911
+ }
1912
+ .readerContainer.sepia .voiceSelect {
1913
+ background-color: rgba(61, 43, 31, 0.06);
1914
+ border-color: rgba(61, 43, 31, 0.15);
1915
+ color: #3d2b1f;
1916
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233d2b1f'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
1917
+ }
1918
+ .readerContainer.sepia .voiceSelect:hover {
1919
+ background-color: rgba(61, 43, 31, 0.1);
1920
+ }
1921
+
1922
+ /* ══════════════════════════════════════
1923
+ VIP CHAPTER LOCK GATE
1924
+ ══════════════════════════════════════ */
1925
+ .lockGate {
1926
+ display: flex;
1927
+ flex-direction: column;
1928
+ align-items: center;
1929
+ text-align: center;
1930
+ gap: 6px;
1931
+ padding: 56px 24px;
1932
+ border: 1px dashed var(--c-outline-strong);
1933
+ border-radius: 16px;
1934
+ margin: 24px 0;
1935
+ }
1936
+ .lockGateIcon {
1937
+ font-size: 34px;
1938
+ color: var(--c-primary);
1939
+ margin-bottom: 8px;
1940
+ }
1941
+ .lockGateTitle {
1942
+ font-size: 16px;
1943
+ font-weight: 700;
1944
+ color: var(--reader-text);
1945
+ }
1946
+ .lockGateSubtitle {
1947
+ font-size: 14px;
1948
+ color: var(--reader-text);
1949
+ opacity: 0.7;
1950
+ margin-bottom: 12px;
1951
+ }
1952
+ .lockGateMessage {
1953
+ font-size: 13px;
1954
+ color: var(--c-primary);
1955
+ margin-bottom: 4px;
1956
+ }
1957
+ .lockGateActions {
1958
+ display: flex;
1959
+ flex-wrap: wrap;
1960
+ align-items: center;
1961
+ justify-content: center;
1962
+ gap: 12px;
1963
+ margin-top: 8px;
1964
+ }
1965
+
1966
+ .highlightedParagraph {
1967
+ position: relative;
1968
+ background: rgba(var(--c-primary-rgb), 0.12);
1969
+ box-shadow: inset 4px 0 0 var(--c-primary), 0 4px 16px rgba(var(--c-primary-rgb), 0.06);
1970
+ border-radius: 0 var(--r-md) var(--r-md) 0;
1971
+ transition: background 0.2s ease;
1972
+ margin-left: -16px;
1973
+ padding-left: 16px;
1974
+ }
1975
+ .readerContainer.light .highlightedParagraph {
1976
+ background: rgba(var(--c-primary-rgb), 0.08);
1977
+ }
1978
+ .readerContainer.sepia .highlightedParagraph {
1979
+ background: rgba(var(--c-primary-rgb), 0.07);
1980
+ box-shadow: inset 4px 0 0 #d946ef, 0 4px 16px rgba(var(--c-primary-rgb), 0.06);
1981
+ }
1982
+ .readerContainer.dark .highlightedParagraph {
1983
+ background: rgba(var(--c-primary-rgb), 0.15);
1984
+ color: #ffffff;
1985
+ }
1986
+