playwright-director 0.5.0 → 0.6.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 (88) hide show
  1. package/README.md +74 -10
  2. package/dist/Tutorial.d.ts.map +1 -1
  3. package/dist/Tutorial.js +1 -1
  4. package/dist/Tutorial.js.map +1 -1
  5. package/dist/init.js +11 -1
  6. package/dist/init.js.map +1 -1
  7. package/dist/site/build-site.d.ts +6 -0
  8. package/dist/site/build-site.d.ts.map +1 -1
  9. package/dist/site/build-site.js +13 -2
  10. package/dist/site/build-site.js.map +1 -1
  11. package/dist/site/embed.d.ts +9 -0
  12. package/dist/site/embed.d.ts.map +1 -1
  13. package/dist/site/embed.js +7 -3
  14. package/dist/site/embed.js.map +1 -1
  15. package/dist/site/generate-manifest.d.ts +2 -0
  16. package/dist/site/generate-manifest.d.ts.map +1 -1
  17. package/dist/site/generate-manifest.js +57 -16
  18. package/dist/site/generate-manifest.js.map +1 -1
  19. package/dist/site/scaffold.d.ts +6 -0
  20. package/dist/site/scaffold.d.ts.map +1 -1
  21. package/dist/site/scaffold.js +54 -8
  22. package/dist/site/scaffold.js.map +1 -1
  23. package/dist/site/scan-tutorials.d.ts +2 -0
  24. package/dist/site/scan-tutorials.d.ts.map +1 -1
  25. package/dist/site/scan-tutorials.js +3 -1
  26. package/dist/site/scan-tutorials.js.map +1 -1
  27. package/dist/site/seo.d.ts +22 -0
  28. package/dist/site/seo.d.ts.map +1 -0
  29. package/dist/site/seo.js +91 -0
  30. package/dist/site/seo.js.map +1 -0
  31. package/dist/site/strings.d.ts +19 -0
  32. package/dist/site/strings.d.ts.map +1 -1
  33. package/dist/site/strings.js +57 -3
  34. package/dist/site/strings.js.map +1 -1
  35. package/dist/site/tokens.d.ts +28 -0
  36. package/dist/site/tokens.d.ts.map +1 -0
  37. package/dist/site/tokens.js +38 -0
  38. package/dist/site/tokens.js.map +1 -0
  39. package/dist/site/types.d.ts +57 -12
  40. package/dist/site/types.d.ts.map +1 -1
  41. package/dist/timeline.d.ts +7 -1
  42. package/dist/timeline.d.ts.map +1 -1
  43. package/dist/timeline.js +5 -1
  44. package/dist/timeline.js.map +1 -1
  45. package/dist/types.d.ts +8 -0
  46. package/dist/types.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/schemas/embed-v1.schema.json +5 -0
  49. package/skills/tutorialize/SKILL.md +7 -2
  50. package/skills/tutorialize/agent.md +4 -0
  51. package/skills/tutorialize/references/api.md +1 -0
  52. package/skills/tutorialize/references/site.md +158 -0
  53. package/templates/site/public/widget.js +16 -11
  54. package/templates/site/src/components/Emphasis.astro +8 -0
  55. package/templates/site/src/components/HomeLangs.astro +20 -0
  56. package/templates/site/src/components/LangSwitch.astro +20 -0
  57. package/templates/site/src/components/Lightbox.astro +50 -0
  58. package/templates/site/src/components/PrevNext.astro +40 -0
  59. package/templates/site/src/components/Seo.astro +42 -0
  60. package/templates/site/src/components/StepGuide.astro +115 -0
  61. package/templates/site/src/components/StepStrip.astro +33 -0
  62. package/templates/site/src/components/ThemeSwitcher.astro +22 -0
  63. package/templates/site/src/components/VariantFilter.astro +36 -0
  64. package/templates/site/src/components/VideoCard.astro +1 -103
  65. package/templates/site/src/components/VideoLinks.astro +19 -0
  66. package/templates/site/src/components/VideoModal.astro +66 -153
  67. package/templates/site/src/components/VideoPlayer.astro +43 -0
  68. package/templates/site/src/i18n.ts +8 -3
  69. package/templates/site/src/layouts/Shell.astro +46 -0
  70. package/templates/site/src/lib/filter.ts +24 -0
  71. package/templates/site/src/lib/site.ts +127 -0
  72. package/templates/site/src/pages/[lang]/index.astro +6 -6
  73. package/templates/site/src/pages/[slug].astro +5 -850
  74. package/templates/site/src/pages/index.astro +2 -2
  75. package/templates/site/src/styles/components.css +919 -0
  76. package/templates/site/src/styles/user.css +1 -0
  77. package/templates/themes/academy/CourseNav.astro +56 -0
  78. package/templates/themes/academy/Home.astro +139 -0
  79. package/templates/themes/academy/Layout.astro +48 -0
  80. package/templates/themes/academy/VideoPage.astro +75 -0
  81. package/templates/themes/academy/theme.css +979 -0
  82. package/templates/themes/classic/Home.astro +58 -0
  83. package/templates/themes/classic/Layout.astro +46 -0
  84. package/templates/themes/classic/VideoPage.astro +47 -0
  85. package/templates/themes/classic/theme.css +289 -0
  86. package/templates/site/src/components/TutorialsHome.astro +0 -169
  87. package/templates/site/src/layouts/Base.astro +0 -61
  88. package/templates/site/src/styles/tutorials.css +0 -303
@@ -0,0 +1,919 @@
1
+ /* Shared components (src/components/*) — default look, driven by --pd-* tokens.
2
+ Themes restyle them in theme.css (loaded after this file). */
3
+
4
+ [hidden] {
5
+ display: none !important;
6
+ }
7
+
8
+ /* ← is not bidi-mirrored; the ‹ › of .nav-arrow already are (flipping them too would undo it) */
9
+ [dir='rtl'] .back-arrow {
10
+ display: inline-block;
11
+ transform: scaleX(-1);
12
+ }
13
+
14
+ /* ── App / docs links (video page) ────────────────────────────── */
15
+ .video-links {
16
+ display: flex;
17
+ flex-wrap: wrap;
18
+ gap: 0.5rem;
19
+ margin-block: 1rem;
20
+ }
21
+
22
+ .video-link {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ gap: 0.4rem;
26
+ min-height: 44px;
27
+ padding: 0.5rem 1rem;
28
+ border: 1px solid var(--pd-border);
29
+ border-radius: var(--pd-radius);
30
+ background: var(--pd-surface);
31
+ color: var(--pd-text);
32
+ font-weight: 600;
33
+ text-decoration: none;
34
+ }
35
+
36
+ .video-link-app {
37
+ background: var(--pd-primary);
38
+ border-color: var(--pd-primary);
39
+ color: var(--pd-on-primary);
40
+ }
41
+
42
+ .video-link:hover {
43
+ box-shadow: var(--pd-shadow);
44
+ }
45
+
46
+ /* ── Language switch (video page) ─────────────────────────────── */
47
+
48
+ .lang-switch {
49
+ display: flex;
50
+ flex-wrap: wrap;
51
+ gap: 0.5rem;
52
+ float: inline-end;
53
+ }
54
+
55
+ .lang-switch a {
56
+ display: inline-flex;
57
+ align-items: center;
58
+ min-height: 44px;
59
+ padding: 0 0.9rem;
60
+ border: 1px solid var(--pd-border);
61
+ border-radius: 999px;
62
+ color: var(--pd-muted);
63
+ text-decoration: none;
64
+ font-size: 0.9rem;
65
+ }
66
+
67
+ .lang-switch a[aria-current='page'] {
68
+ background: var(--pd-primary);
69
+ border-color: var(--pd-primary);
70
+ color: var(--pd-on-primary);
71
+ }
72
+
73
+ /* ── Language links + variant filter (home) ───────────────────── */
74
+
75
+ .variant-filter {
76
+ display: flex;
77
+ justify-content: center;
78
+ gap: 0.5rem;
79
+ margin: 0 0 1.5rem;
80
+ }
81
+
82
+ .variant-btn {
83
+ display: inline-flex;
84
+ align-items: center;
85
+ min-height: 44px;
86
+ padding: 0 1rem;
87
+ text-decoration: none;
88
+ border: 1px solid var(--pd-border);
89
+ border-radius: 999px;
90
+ background: transparent;
91
+ color: var(--pd-muted);
92
+ font-size: 0.9rem;
93
+ cursor: pointer;
94
+ transition: all 0.2s;
95
+ }
96
+
97
+ .variant-btn:hover {
98
+ border-color: var(--pd-primary);
99
+ color: var(--pd-primary);
100
+ }
101
+
102
+ .variant-btn.active {
103
+ background: var(--pd-primary);
104
+ border-color: var(--pd-primary);
105
+ color: var(--pd-on-primary);
106
+ }
107
+
108
+ /* ── Video player ─────────────────────────────────────────────── */
109
+
110
+ .video-player-wrap {
111
+ width: 100%;
112
+ border-radius: var(--pd-radius);
113
+ overflow: hidden;
114
+ background: #000;
115
+ box-shadow: var(--pd-shadow);
116
+ margin-bottom: 1.5rem;
117
+ }
118
+
119
+ .video-player {
120
+ width: 100%;
121
+ display: block;
122
+ max-height: 70vh;
123
+ }
124
+
125
+ .video-duration {
126
+ display: flex;
127
+ align-items: center;
128
+ gap: 0.25rem;
129
+ }
130
+
131
+ /* ── Steps: shared bits ───────────────────────────────────────── */
132
+
133
+ .step-number {
134
+ flex-shrink: 0;
135
+ width: 2rem;
136
+ height: 2rem;
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: center;
140
+ border-radius: 50%;
141
+ background: var(--pd-primary);
142
+ color: var(--pd-on-primary);
143
+ font-weight: 700;
144
+ font-size: 0.95rem;
145
+ }
146
+
147
+ .step-copy {
148
+ min-width: 0;
149
+ flex: 1;
150
+ }
151
+
152
+ .step-title {
153
+ display: block;
154
+ font-size: 1.1rem;
155
+ font-weight: 600;
156
+ line-height: 1.4;
157
+ margin: 0.2rem 0 0.35rem;
158
+ color: var(--pd-text);
159
+ }
160
+
161
+ .step-text {
162
+ display: block;
163
+ color: var(--pd-muted);
164
+ line-height: 1.6;
165
+ margin: 0;
166
+ font-size: 0.95rem;
167
+ }
168
+
169
+ .step-time {
170
+ flex-shrink: 0;
171
+ align-self: center;
172
+ min-height: 44px;
173
+ min-width: 44px;
174
+ padding: 0 0.75rem;
175
+ border: 1px solid var(--pd-border);
176
+ border-radius: 999px;
177
+ background: var(--pd-surface);
178
+ color: var(--pd-primary);
179
+ font: inherit;
180
+ font-size: 0.85rem;
181
+ font-variant-numeric: tabular-nums;
182
+ cursor: pointer;
183
+ }
184
+
185
+ .step-time:hover {
186
+ border-color: var(--pd-primary);
187
+ }
188
+
189
+ [aria-current='step'] {
190
+ border-color: var(--pd-primary) !important;
191
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--pd-primary) 25%, transparent);
192
+ }
193
+
194
+ .step-block[aria-current='step'] .step-number,
195
+ .step-row[aria-current='step'] .step-number,
196
+ .step-card[aria-current='step'] .step-number {
197
+ outline: 3px solid color-mix(in srgb, var(--pd-primary) 35%, transparent);
198
+ }
199
+
200
+ .step-row-top {
201
+ display: flex;
202
+ align-items: center;
203
+ padding-inline-end: 1rem;
204
+ }
205
+
206
+ .step-context {
207
+ color: var(--pd-muted);
208
+ font-style: italic;
209
+ line-height: 1.6;
210
+ border-inline-start: 3px solid var(--pd-primary);
211
+ padding-inline-start: 1rem;
212
+ margin: 0;
213
+ }
214
+
215
+ /* ── Strip ────────────────────────────────────────────────────── */
216
+
217
+ .steps-section {
218
+ margin-bottom: 2rem;
219
+ }
220
+
221
+ .step-strip {
222
+ display: flex;
223
+ gap: 0.75rem;
224
+ overflow-x: auto;
225
+ padding-bottom: 0.5rem;
226
+ }
227
+
228
+ .step-strip::-webkit-scrollbar {
229
+ height: 4px;
230
+ }
231
+
232
+ .step-strip::-webkit-scrollbar-track {
233
+ background: var(--pd-border);
234
+ border-radius: 2px;
235
+ }
236
+
237
+ .step-strip::-webkit-scrollbar-thumb {
238
+ background: var(--pd-muted);
239
+ border-radius: 2px;
240
+ }
241
+
242
+ .step-frame {
243
+ position: relative;
244
+ flex-shrink: 0;
245
+ width: 200px;
246
+ border-radius: 0.5rem;
247
+ overflow: hidden;
248
+ box-shadow: var(--pd-shadow);
249
+ padding: 0;
250
+ border: 0;
251
+ background: none;
252
+ cursor: zoom-in;
253
+ }
254
+
255
+ .step-frame img {
256
+ width: 100%;
257
+ height: 113px;
258
+ object-fit: cover;
259
+ display: block;
260
+ transition: transform 0.2s;
261
+ }
262
+
263
+ .step-frame:hover img {
264
+ transform: scale(1.04);
265
+ }
266
+
267
+ .step-num {
268
+ position: absolute;
269
+ top: 6px;
270
+ left: 6px;
271
+ background: rgba(0, 0, 0, 0.65);
272
+ color: white;
273
+ font-size: 0.7rem;
274
+ font-weight: 600;
275
+ padding: 0.1rem 0.4rem;
276
+ border-radius: 0.25rem;
277
+ }
278
+
279
+ /* ── Guide: full layout ───────────────────────────────────────── */
280
+
281
+ .steps-guide {
282
+ display: flex;
283
+ flex-direction: column;
284
+ gap: 2.5rem;
285
+ margin-bottom: 3rem;
286
+ }
287
+
288
+ .step-block {
289
+ display: flex;
290
+ flex-direction: column;
291
+ gap: 1rem;
292
+ }
293
+
294
+ .step-header {
295
+ display: flex;
296
+ align-items: flex-start;
297
+ gap: 1rem;
298
+ }
299
+
300
+ .step-shot {
301
+ width: 100%;
302
+ display: block;
303
+ border-radius: var(--pd-radius);
304
+ border: 1px solid var(--pd-border);
305
+ box-shadow: var(--pd-shadow);
306
+ }
307
+
308
+ /* ── Guide: cards layout ──────────────────────────────────────── */
309
+
310
+ .steps-cards {
311
+ display: flex;
312
+ flex-direction: column;
313
+ gap: 1rem;
314
+ margin-bottom: 3rem;
315
+ }
316
+
317
+ .step-card {
318
+ display: flex;
319
+ align-items: flex-start;
320
+ gap: 1rem;
321
+ padding: 1rem 1.25rem;
322
+ border: 1px solid var(--pd-border);
323
+ border-radius: var(--pd-radius);
324
+ background: var(--pd-surface);
325
+ box-shadow: var(--pd-shadow);
326
+ }
327
+
328
+ .step-thumb {
329
+ position: relative;
330
+ flex-shrink: 0;
331
+ width: 180px;
332
+ padding: 0;
333
+ border: 1px solid var(--pd-border);
334
+ border-radius: 0.5rem;
335
+ overflow: hidden;
336
+ cursor: zoom-in;
337
+ background: none;
338
+ display: block;
339
+ }
340
+
341
+ .step-thumb img {
342
+ width: 100%;
343
+ height: 102px;
344
+ object-fit: cover;
345
+ display: block;
346
+ transition: transform 0.2s;
347
+ }
348
+
349
+ .step-thumb:hover img {
350
+ transform: scale(1.04);
351
+ }
352
+
353
+ .step-zoom {
354
+ position: absolute;
355
+ right: 6px;
356
+ bottom: 6px;
357
+ background: rgba(0, 0, 0, 0.65);
358
+ color: #fff;
359
+ font-size: 0.8rem;
360
+ line-height: 1;
361
+ padding: 0.25rem 0.35rem;
362
+ border-radius: 0.3rem;
363
+ }
364
+
365
+ /* ── Guide: text layout ───────────────────────────────────────── */
366
+
367
+ .steps-text {
368
+ display: flex;
369
+ flex-direction: column;
370
+ gap: 0.75rem;
371
+ margin-bottom: 3rem;
372
+ }
373
+
374
+ .step-row {
375
+ border: 1px solid var(--pd-border);
376
+ border-radius: var(--pd-radius);
377
+ background: var(--pd-surface);
378
+ overflow: hidden;
379
+ }
380
+
381
+ .step-row-head {
382
+ display: flex;
383
+ align-items: flex-start;
384
+ gap: 1rem;
385
+ width: 100%;
386
+ padding: 1rem 1.25rem;
387
+ border: 0;
388
+ background: none;
389
+ text-align: inherit;
390
+ font: inherit;
391
+ color: inherit;
392
+ }
393
+
394
+ .step-row.has-shot .step-row-head {
395
+ cursor: pointer;
396
+ }
397
+
398
+ .step-row.has-shot .step-row-head:hover {
399
+ background: color-mix(in srgb, var(--pd-primary) 5%, transparent);
400
+ }
401
+
402
+ .step-chevron {
403
+ flex-shrink: 0;
404
+ align-self: center;
405
+ color: var(--pd-muted);
406
+ transition: transform 0.2s;
407
+ }
408
+
409
+ .step-row.open .step-chevron {
410
+ transform: rotate(180deg);
411
+ }
412
+
413
+ .step-reveal {
414
+ display: none;
415
+ padding: 0 1.25rem 1.25rem;
416
+ }
417
+
418
+ .step-row.open .step-reveal {
419
+ display: block;
420
+ }
421
+
422
+ .step-reveal img {
423
+ width: 100%;
424
+ display: block;
425
+ border-radius: 0.5rem;
426
+ border: 1px solid var(--pd-border);
427
+ }
428
+
429
+ /* ── Lightbox ─────────────────────────────────────────────────── */
430
+
431
+ .lightbox {
432
+ position: fixed;
433
+ inset: 0;
434
+ z-index: 100;
435
+ background: rgba(0, 0, 0, 0.85);
436
+ display: flex;
437
+ align-items: center;
438
+ justify-content: center;
439
+ padding: 2rem;
440
+ cursor: zoom-out;
441
+ }
442
+
443
+ .lightbox-figure {
444
+ max-width: min(1100px, 100%);
445
+ max-height: 100%;
446
+ margin: 0;
447
+ display: flex;
448
+ flex-direction: column;
449
+ gap: 0.9rem;
450
+ align-items: center;
451
+ }
452
+
453
+ .lightbox img {
454
+ max-width: 100%;
455
+ max-height: 75vh;
456
+ border-radius: 0.5rem;
457
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
458
+ }
459
+
460
+ .lightbox-caption {
461
+ display: flex;
462
+ align-items: flex-start;
463
+ gap: 0.75rem;
464
+ max-width: 700px;
465
+ color: #e2e8f0;
466
+ cursor: default;
467
+ }
468
+
469
+ .lightbox-num {
470
+ flex-shrink: 0;
471
+ width: 1.7rem;
472
+ height: 1.7rem;
473
+ display: flex;
474
+ align-items: center;
475
+ justify-content: center;
476
+ border-radius: 50%;
477
+ background: var(--pd-primary);
478
+ color: var(--pd-on-primary);
479
+ font-weight: 700;
480
+ font-size: 0.85rem;
481
+ }
482
+
483
+ .lightbox-num:empty {
484
+ display: none;
485
+ }
486
+
487
+ .lightbox-copy {
488
+ display: flex;
489
+ flex-direction: column;
490
+ gap: 0.2rem;
491
+ text-align: start;
492
+ }
493
+
494
+ .lightbox-title {
495
+ font-size: 1rem;
496
+ line-height: 1.4;
497
+ color: #fff;
498
+ }
499
+
500
+ .lightbox-text {
501
+ font-size: 0.9rem;
502
+ line-height: 1.55;
503
+ color: #cbd5e1;
504
+ }
505
+
506
+ /* ── Prev / next ──────────────────────────────────────────────── */
507
+
508
+ .video-nav-row {
509
+ display: flex;
510
+ justify-content: space-between;
511
+ align-items: stretch;
512
+ gap: 1rem;
513
+ padding-top: 2rem;
514
+ border-top: 1px solid var(--pd-border);
515
+ margin-top: 1rem;
516
+ }
517
+
518
+ .nav-prev,
519
+ .nav-next {
520
+ flex: 1;
521
+ }
522
+
523
+ .nav-next {
524
+ text-align: end;
525
+ }
526
+
527
+ .nav-link {
528
+ display: inline-flex;
529
+ align-items: center;
530
+ gap: 0.5rem;
531
+ text-decoration: none;
532
+ color: var(--pd-text);
533
+ padding: 0.75rem 1rem;
534
+ border-radius: var(--pd-radius);
535
+ border: 1px solid var(--pd-border);
536
+ background: var(--pd-surface);
537
+ transition: all 0.2s;
538
+ font-size: 0.9rem;
539
+ max-width: 100%;
540
+ }
541
+
542
+ .nav-link:hover {
543
+ border-color: var(--pd-primary);
544
+ color: var(--pd-primary);
545
+ box-shadow: var(--pd-shadow);
546
+ }
547
+
548
+ .nav-arrow {
549
+ font-size: 1.25rem;
550
+ line-height: 1;
551
+ flex-shrink: 0;
552
+ color: var(--pd-primary);
553
+ }
554
+
555
+ .nav-text {
556
+ display: flex;
557
+ flex-direction: column;
558
+ min-width: 0;
559
+ }
560
+
561
+ .nav-label {
562
+ font-size: 0.75rem;
563
+ text-transform: uppercase;
564
+ letter-spacing: 0.06em;
565
+ color: var(--pd-muted);
566
+ }
567
+
568
+ .nav-title {
569
+ overflow: hidden;
570
+ text-overflow: ellipsis;
571
+ white-space: nowrap;
572
+ }
573
+
574
+ /* ── Video card (home) ────────────────────────────────────────── */
575
+
576
+ .video-card {
577
+ background: var(--pd-surface);
578
+ border-radius: var(--pd-radius);
579
+ overflow: hidden;
580
+ box-shadow: var(--pd-shadow);
581
+ transition: all 0.3s ease;
582
+ cursor: pointer;
583
+ }
584
+
585
+ .video-card:hover {
586
+ transform: translateY(-4px);
587
+ box-shadow: var(--pd-shadow-hover);
588
+ }
589
+
590
+ .video-thumbnail {
591
+ position: relative;
592
+ aspect-ratio: 16 / 9;
593
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
594
+ display: flex;
595
+ align-items: center;
596
+ justify-content: center;
597
+ }
598
+
599
+ .video-thumbnail img {
600
+ width: 100%;
601
+ height: 100%;
602
+ object-fit: cover;
603
+ }
604
+
605
+ .play-button {
606
+ position: absolute;
607
+ width: 60px;
608
+ height: 60px;
609
+ background: rgba(255, 255, 255, 0.95);
610
+ border-radius: 50%;
611
+ display: flex;
612
+ align-items: center;
613
+ justify-content: center;
614
+ font-size: 1.5rem;
615
+ transition: transform 0.2s;
616
+ }
617
+
618
+ .video-card:hover .play-button {
619
+ transform: scale(1.1);
620
+ }
621
+
622
+ .video-info {
623
+ padding: 1rem;
624
+ }
625
+
626
+ .video-title {
627
+ font-weight: 600;
628
+ margin-bottom: 0.25rem;
629
+ font-size: 1rem;
630
+ }
631
+
632
+ .video-meta {
633
+ display: flex;
634
+ align-items: center;
635
+ gap: 0.75rem;
636
+ color: var(--pd-muted);
637
+ font-size: 0.875rem;
638
+ }
639
+
640
+ .video-variant {
641
+ font-size: 0.75rem;
642
+ color: var(--pd-muted);
643
+ border: 1px solid var(--pd-border);
644
+ border-radius: 999px;
645
+ padding: 0.1rem 0.5rem;
646
+ text-transform: capitalize;
647
+ }
648
+
649
+ .card-page-link {
650
+ margin-left: auto;
651
+ font-size: 0.9rem;
652
+ color: var(--pd-muted);
653
+ text-decoration: none;
654
+ transition: color 0.2s;
655
+ flex-shrink: 0;
656
+ }
657
+
658
+ .card-page-link:hover {
659
+ color: var(--pd-primary);
660
+ }
661
+
662
+ .placeholder-thumb {
663
+ width: 100%;
664
+ height: 100%;
665
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
666
+ }
667
+
668
+ .step-carousel {
669
+ position: absolute;
670
+ inset: 0;
671
+ }
672
+
673
+ .step-img {
674
+ position: absolute;
675
+ inset: 0;
676
+ width: 100%;
677
+ height: 100%;
678
+ object-fit: cover;
679
+ opacity: 0;
680
+ transition: opacity 0.3s;
681
+ }
682
+
683
+ .step-img.active {
684
+ opacity: 1;
685
+ }
686
+
687
+ .step-prev,
688
+ .step-next {
689
+ position: absolute;
690
+ top: 50%;
691
+ transform: translateY(-50%);
692
+ background: rgba(0, 0, 0, 0.5);
693
+ color: white;
694
+ border: none;
695
+ width: 28px;
696
+ height: 28px;
697
+ border-radius: 50%;
698
+ font-size: 1.2rem;
699
+ line-height: 1;
700
+ cursor: pointer;
701
+ display: flex;
702
+ align-items: center;
703
+ justify-content: center;
704
+ opacity: 0;
705
+ transition: opacity 0.2s;
706
+ z-index: 2;
707
+ }
708
+
709
+ .step-prev {
710
+ left: 6px;
711
+ }
712
+
713
+ .step-next {
714
+ right: 6px;
715
+ }
716
+
717
+ .video-card:hover .step-prev,
718
+ .video-card:hover .step-next {
719
+ opacity: 1;
720
+ }
721
+
722
+ .step-dots {
723
+ position: absolute;
724
+ bottom: 6px;
725
+ left: 50%;
726
+ transform: translateX(-50%);
727
+ display: flex;
728
+ gap: 4px;
729
+ z-index: 2;
730
+ }
731
+
732
+ .step-dot {
733
+ width: 5px;
734
+ height: 5px;
735
+ border-radius: 50%;
736
+ background: rgba(255, 255, 255, 0.4);
737
+ cursor: pointer;
738
+ transition: background 0.2s;
739
+ }
740
+
741
+ .step-dot.active {
742
+ background: white;
743
+ }
744
+
745
+ /* ── Video modal (home) ───────────────────────────────────────── */
746
+
747
+ .video-modal {
748
+ width: 100%;
749
+ height: 100%;
750
+ max-width: none;
751
+ max-height: none;
752
+ margin: 0;
753
+ border: 0;
754
+ color: #fff;
755
+ background: rgba(0, 0, 0, 0.95);
756
+ /* Video and title bar size: --pd-video-ratio is set from the loaded video */
757
+ --pd-video-max-h: calc(100dvh - 8rem);
758
+ --pd-video-w: min(100%, var(--pd-video-max-h) * var(--pd-video-ratio, 16 / 9));
759
+ --pd-video-arrows: 132px; /* 2 × (50px arrow + 16px gap) beside the video */
760
+ }
761
+
762
+ .video-modal::backdrop {
763
+ background: transparent;
764
+ }
765
+
766
+ .video-modal[open] {
767
+ display: flex;
768
+ flex-direction: column;
769
+ align-items: center;
770
+ justify-content: center;
771
+ z-index: 1000;
772
+ padding: 2rem;
773
+ }
774
+
775
+ /* As large as the screen allows, box = picture (no letterbox, controls fit the frame): full width, unless
776
+ the height (screen minus title bar) is the limit. */
777
+ .video-modal video {
778
+ aspect-ratio: var(--pd-video-ratio, 16 / 9);
779
+ width: var(--pd-video-w);
780
+ height: auto;
781
+ border-radius: var(--pd-radius);
782
+ }
783
+
784
+ .video-modal-close {
785
+ position: absolute;
786
+ top: 1rem;
787
+ right: 1rem;
788
+ background: white;
789
+ border: none;
790
+ width: 40px;
791
+ height: 40px;
792
+ border-radius: 50%;
793
+ font-size: 1.5rem;
794
+ cursor: pointer;
795
+ z-index: 10;
796
+ }
797
+
798
+ .video-modal-close:hover {
799
+ background: #f0f0f0;
800
+ }
801
+
802
+ .video-container {
803
+ display: flex;
804
+ align-items: center;
805
+ justify-content: center;
806
+ gap: 1rem;
807
+ width: 100%;
808
+ max-width: 1600px;
809
+ }
810
+
811
+ /* Shrinks between the arrows instead of pushing them off-screen */
812
+ .video-container video {
813
+ flex: 0 1 auto;
814
+ min-width: 0;
815
+ }
816
+
817
+ /* Phones: video edge to edge, arrows below it */
818
+ @media (max-width: 600px) {
819
+ .video-modal {
820
+ --pd-video-max-h: calc(100dvh - 11rem);
821
+ --pd-video-arrows: 0px;
822
+ }
823
+
824
+ .video-modal[open] {
825
+ padding: 3.5rem 0.5rem 1rem;
826
+ }
827
+
828
+ .video-modal video {
829
+ border-radius: calc(var(--pd-radius) / 2);
830
+ }
831
+
832
+ .video-container {
833
+ flex-wrap: wrap;
834
+ }
835
+
836
+ /* Basis 100% pushes the arrows to the next line; max-width keeps a tall video within the height */
837
+ .video-container video {
838
+ order: -1;
839
+ flex-basis: 100%;
840
+ max-width: var(--pd-video-w);
841
+ margin-inline: auto;
842
+ }
843
+ }
844
+
845
+ .video-nav {
846
+ background: rgba(255, 255, 255, 0.9);
847
+ border: none;
848
+ width: 50px;
849
+ height: 50px;
850
+ border-radius: 50%;
851
+ font-size: 2rem;
852
+ cursor: pointer;
853
+ transition: all 0.2s;
854
+ flex-shrink: 0;
855
+ display: flex;
856
+ align-items: center;
857
+ justify-content: center;
858
+ line-height: 1;
859
+ }
860
+
861
+ .video-nav:hover {
862
+ background: white;
863
+ transform: scale(1.1);
864
+ }
865
+
866
+ .video-nav:disabled {
867
+ opacity: 0.3;
868
+ cursor: not-allowed;
869
+ transform: none;
870
+ }
871
+
872
+ .video-title-bar {
873
+ display: flex;
874
+ justify-content: space-between;
875
+ align-items: center;
876
+ gap: 1rem;
877
+ width: var(--pd-video-w); /* aligned with the video */
878
+ max-width: calc(min(1600px, 100%) - var(--pd-video-arrows));
879
+ margin-top: 1rem;
880
+ color: white;
881
+ font-size: 0.9rem;
882
+ }
883
+
884
+ #video-title {
885
+ font-weight: 500;
886
+ color: inherit;
887
+ }
888
+
889
+ #video-counter {
890
+ opacity: 0.7;
891
+ }
892
+
893
+ @media (max-width: 600px) {
894
+ .step-frame {
895
+ width: 150px;
896
+ }
897
+
898
+ .step-frame img {
899
+ height: 85px;
900
+ }
901
+
902
+ .step-card {
903
+ flex-wrap: wrap;
904
+ }
905
+
906
+ .step-thumb {
907
+ width: 100%;
908
+ }
909
+
910
+ .step-thumb img {
911
+ height: auto;
912
+ }
913
+
914
+ .step-number {
915
+ width: 1.6rem;
916
+ height: 1.6rem;
917
+ font-size: 0.85rem;
918
+ }
919
+ }