@ox-content/vite-plugin 2.90.0 → 3.0.0-alpha.10

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.
@@ -0,0 +1,452 @@
1
+ /*
2
+ * Opt-in full-card chrome for Twitter/X embeds.
3
+ * Loaded only when a page has .ox-tweet--full.
4
+ *
5
+ * Visual tokens and control icons follow the theme contract of:
6
+ *
7
+ * react-tweet — https://github.com/vercel/react-tweet
8
+ * Copyright (c) 2023 Luis Alvarez
9
+ *
10
+ * sveltweet — https://github.com/ryoppippi/sveltweet
11
+ * Copyright (c) 2024 ryoppippi
12
+ *
13
+ * Both are MIT-licensed. The permission notice is included because this
14
+ * stylesheet is a substantial portion of that visual contract. Ox Content
15
+ * does not vendor their JavaScript, React, or Svelte components.
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining a
18
+ * copy of this software and associated documentation files (the
19
+ * "Software"), to deal in the Software without restriction, including
20
+ * without limitation the rights to use, copy, modify, merge, publish,
21
+ * distribute, sublicense, and/or sell copies of the Software, and to
22
+ * permit persons to whom the Software is furnished to do so, subject to
23
+ * the following conditions:
24
+ *
25
+ * The above copyright notice and this permission notice shall be included
26
+ * in all copies or substantial portions of the Software.
27
+ *
28
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
31
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
32
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
33
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
34
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+ *
36
+ * X, Twitter, and related marks are trademarks of their respective owners.
37
+ */
38
+
39
+ .ox-tweet--full {
40
+ --ox-tweet-container-margin: 1.5rem 0;
41
+ --ox-tweet-header-font-size: 0.9375rem;
42
+ --ox-tweet-body-font-size: 1.25rem;
43
+ --ox-tweet-body-line-height: 1.5rem;
44
+ --ox-tweet-quoted-body-font-size: 0.938rem;
45
+ --ox-tweet-info-font-size: 0.9375rem;
46
+ --ox-tweet-actions-font-size: 0.875rem;
47
+ --ox-tweet-icon-size: 1.25em;
48
+ --ox-tweet-border: 1px solid rgb(207, 217, 222);
49
+ --ox-tweet-font-color: rgb(15, 20, 25);
50
+ --ox-tweet-font-color-secondary: rgb(83, 100, 113);
51
+ --ox-tweet-bg: #fff;
52
+ --ox-tweet-bg-hover: rgb(247, 249, 249);
53
+ --ox-tweet-quote-hover: rgba(0, 0, 0, 0.03);
54
+ --ox-tweet-color-blue: rgb(29, 155, 240);
55
+ --ox-tweet-color-blue-text: rgb(0, 111, 214);
56
+ --ox-tweet-color-blue-hover: rgba(0, 111, 214, 0.1);
57
+ --ox-tweet-color-red: rgb(249, 24, 128);
58
+ --ox-tweet-color-red-hover: rgba(249, 24, 128, 0.1);
59
+ --ox-tweet-color-green: rgb(0, 186, 124);
60
+ --ox-tweet-color-green-hover: rgba(0, 186, 124, 0.1);
61
+ --ox-tweet-verified-blue: var(--ox-tweet-color-blue);
62
+ --ox-tweet-verified-gold: rgb(226, 179, 64);
63
+ --ox-tweet-verified-gray: rgb(130, 154, 171);
64
+ --ox-tweet-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.727-8.83L1.254 2.25H8.08l4.257 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
65
+ --ox-tweet-icon-like: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12z'/%3E%3C/svg%3E");
66
+ --ox-tweet-icon-reply: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01zm8.005-6c-3.317 0-6.005 2.69-6.005 6 0 3.37 2.77 6.08 6.138 6.01l.351-.01h1.761v2.3l5.087-2.81C17.04 14.42 18.25 12.37 18.25 10.14c0-3.39-2.744-6.13-6.129-6.13H9.756z'/%3E%3C/svg%3E");
67
+ --ox-tweet-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 7.75A2.75 2.75 0 0 1 9.75 5h8.5A2.75 2.75 0 0 1 21 7.75v8.5A2.75 2.75 0 0 1 18.25 19h-8.5A2.75 2.75 0 0 1 7 16.25v-8.5zM9.75 7A.75.75 0 0 0 9 7.75v8.5c0 .41.34.75.75.75h8.5c.41 0 .75-.34.75-.75v-8.5a.75.75 0 0 0-.75-.75h-8.5zM3 4.75A2.75 2.75 0 0 1 5.75 2h8.5a1 1 0 1 1 0 2h-8.5a.75.75 0 0 0-.75.75v8.5a1 1 0 1 1-2 0v-8.5z'/%3E%3C/svg%3E");
68
+ --ox-tweet-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z'/%3E%3C/svg%3E");
69
+ --ox-tweet-icon-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.34 2.19c-1.4-.46-2.91-.2-3.91.81s-1.27 2.52-.81 3.91c-1.31.67-2.19 1.91-2.19 3.34s.88 2.67 2.19 3.34c-.46 1.39-.2 2.9.81 3.91s2.52 1.27 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.67-.88 3.34-2.19c1.4.46 2.91.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z'/%3E%3C/svg%3E");
70
+ box-sizing: border-box;
71
+ width: 100%;
72
+ max-width: 550px;
73
+ min-width: 0;
74
+ margin: var(--ox-tweet-container-margin);
75
+ padding: 0.75rem 1rem;
76
+ overflow: hidden;
77
+ color: var(--ox-tweet-font-color);
78
+ border: var(--ox-tweet-border);
79
+ border-radius: 12px;
80
+ background: var(--ox-tweet-bg);
81
+ }
82
+
83
+ [data-theme="dark"] .ox-tweet--full {
84
+ --ox-tweet-border: 1px solid rgb(66, 83, 100);
85
+ --ox-tweet-font-color: rgb(247, 249, 249);
86
+ --ox-tweet-font-color-secondary: rgb(139, 152, 165);
87
+ --ox-tweet-bg: rgb(21, 32, 43);
88
+ --ox-tweet-bg-hover: rgb(30, 39, 50);
89
+ --ox-tweet-quote-hover: rgba(255, 255, 255, 0.03);
90
+ --ox-tweet-color-blue-text: rgb(107, 201, 251);
91
+ --ox-tweet-color-blue-hover: rgba(107, 201, 251, 0.1);
92
+ --ox-tweet-verified-blue: #fff;
93
+ }
94
+
95
+ @media (prefers-color-scheme: dark) {
96
+ :root:not([data-theme="light"]) .ox-tweet--full {
97
+ --ox-tweet-border: 1px solid rgb(66, 83, 100);
98
+ --ox-tweet-font-color: rgb(247, 249, 249);
99
+ --ox-tweet-font-color-secondary: rgb(139, 152, 165);
100
+ --ox-tweet-bg: rgb(21, 32, 43);
101
+ --ox-tweet-bg-hover: rgb(30, 39, 50);
102
+ --ox-tweet-quote-hover: rgba(255, 255, 255, 0.03);
103
+ --ox-tweet-color-blue-text: rgb(107, 201, 251);
104
+ --ox-tweet-color-blue-hover: rgba(107, 201, 251, 0.1);
105
+ --ox-tweet-verified-blue: #fff;
106
+ }
107
+ }
108
+
109
+ .ox-tweet--full .ox-tweet__header {
110
+ display: flex;
111
+ align-items: center;
112
+ gap: 0;
113
+ margin: 0 0 0.75rem;
114
+ overflow: hidden;
115
+ font-size: var(--ox-tweet-header-font-size);
116
+ line-height: 1.25rem;
117
+ white-space: nowrap;
118
+ }
119
+
120
+ .ox-tweet--full .ox-tweet__avatar-link {
121
+ flex: 0 0 48px;
122
+ }
123
+
124
+ .ox-tweet--full .ox-tweet__avatar {
125
+ width: 48px;
126
+ height: 48px;
127
+ }
128
+
129
+ .ox-tweet--full .ox-tweet__author {
130
+ min-width: 0;
131
+ margin: 0 0.5rem;
132
+ }
133
+
134
+ .ox-tweet--full .ox-tweet__author-name,
135
+ .ox-tweet--full .ox-tweet__author-handle,
136
+ .ox-tweet--full .ox-tweet__follow {
137
+ text-decoration: none;
138
+ }
139
+
140
+ .ox-tweet--full .ox-tweet__author-name {
141
+ display: flex;
142
+ align-items: center;
143
+ gap: 0.2rem;
144
+ overflow: hidden;
145
+ font-weight: 700;
146
+ color: inherit;
147
+ text-overflow: ellipsis;
148
+ }
149
+
150
+ .ox-tweet--full .ox-tweet__author-name:hover,
151
+ .ox-tweet--full .ox-tweet__follow:hover {
152
+ text-decoration: underline;
153
+ }
154
+
155
+ .ox-tweet--full .ox-tweet__author-meta {
156
+ display: flex;
157
+ min-width: 0;
158
+ }
159
+
160
+ .ox-tweet--full .ox-tweet__author-handle {
161
+ overflow: hidden;
162
+ color: var(--ox-tweet-font-color-secondary);
163
+ text-overflow: ellipsis;
164
+ }
165
+
166
+ .ox-tweet--full .ox-tweet__sep {
167
+ padding: 0 0.25rem;
168
+ color: var(--ox-tweet-font-color-secondary);
169
+ }
170
+
171
+ .ox-tweet--full .ox-tweet__follow {
172
+ font-weight: 700;
173
+ color: var(--ox-tweet-color-blue-text);
174
+ }
175
+
176
+ .ox-tweet--full .ox-tweet__brand {
177
+ margin-inline-start: auto;
178
+ color: inherit;
179
+ }
180
+
181
+ .ox-tweet--full .ox-tweet__badge,
182
+ .ox-tweet--full .ox-tweet__icon {
183
+ display: inline-block;
184
+ flex: 0 0 auto;
185
+ width: 1.125em;
186
+ height: 1.125em;
187
+ background: currentColor;
188
+ -webkit-mask: var(--ox-tweet-icon-badge) center / contain no-repeat;
189
+ mask: var(--ox-tweet-icon-badge) center / contain no-repeat;
190
+ }
191
+
192
+ .ox-tweet--full .ox-tweet__icon {
193
+ width: var(--ox-tweet-icon-size);
194
+ height: var(--ox-tweet-icon-size);
195
+ }
196
+
197
+ .ox-tweet--full .ox-tweet__badge--blue {
198
+ color: var(--ox-tweet-verified-blue);
199
+ }
200
+
201
+ .ox-tweet--full .ox-tweet__badge--gold {
202
+ color: var(--ox-tweet-verified-gold);
203
+ }
204
+
205
+ .ox-tweet--full .ox-tweet__badge--gray {
206
+ color: var(--ox-tweet-verified-gray);
207
+ }
208
+
209
+ .ox-tweet--full .ox-tweet__icon--x {
210
+ -webkit-mask-image: var(--ox-tweet-icon-x);
211
+ mask-image: var(--ox-tweet-icon-x);
212
+ }
213
+
214
+ .ox-tweet--full .ox-tweet__icon--like {
215
+ color: var(--ox-tweet-color-red);
216
+ -webkit-mask-image: var(--ox-tweet-icon-like);
217
+ mask-image: var(--ox-tweet-icon-like);
218
+ }
219
+
220
+ .ox-tweet--full .ox-tweet__icon--reply {
221
+ color: var(--ox-tweet-color-blue);
222
+ -webkit-mask-image: var(--ox-tweet-icon-reply);
223
+ mask-image: var(--ox-tweet-icon-reply);
224
+ }
225
+
226
+ .ox-tweet--full .ox-tweet__icon--copy {
227
+ -webkit-mask-image: var(--ox-tweet-icon-copy);
228
+ mask-image: var(--ox-tweet-icon-copy);
229
+ }
230
+
231
+ .ox-tweet--full .ox-tweet__icon--info {
232
+ -webkit-mask-image: var(--ox-tweet-icon-info);
233
+ mask-image: var(--ox-tweet-icon-info);
234
+ }
235
+
236
+ .ox-tweet--full .ox-tweet__reply {
237
+ margin: 0 0 0.25rem;
238
+ font-size: var(--ox-tweet-header-font-size);
239
+ line-height: 1.25rem;
240
+ }
241
+
242
+ .ox-tweet--full .ox-tweet__body {
243
+ margin: 0;
244
+ font-size: var(--ox-tweet-body-font-size);
245
+ font-weight: 400;
246
+ line-height: var(--ox-tweet-body-line-height);
247
+ overflow-wrap: break-word;
248
+ }
249
+
250
+ .ox-tweet--full .ox-tweet__body a,
251
+ .ox-tweet--full .ox-tweet__quote-body a {
252
+ color: var(--ox-tweet-color-blue-text);
253
+ text-decoration: none;
254
+ }
255
+ .ox-tweet--full .ox-tweet__media {
256
+ display: grid;
257
+ grid-template-columns: 1fr;
258
+ gap: 2px;
259
+ margin: 0.75rem 0 0;
260
+ overflow: hidden;
261
+ border: var(--ox-tweet-border);
262
+ border-radius: 12px;
263
+ }
264
+
265
+ .ox-tweet--full .ox-tweet__media[data-count="2"],
266
+ .ox-tweet--full .ox-tweet__media[data-count="3"],
267
+ .ox-tweet--full .ox-tweet__media[data-count="4"] {
268
+ grid-template-columns: 1fr 1fr;
269
+ aspect-ratio: 16 / 9;
270
+ }
271
+
272
+ .ox-tweet--full .ox-tweet__media[data-count="3"],
273
+ .ox-tweet--full .ox-tweet__media[data-count="4"] {
274
+ grid-template-rows: 1fr 1fr;
275
+ }
276
+
277
+ .ox-tweet--full .ox-tweet__media[data-count="3"] > :first-child {
278
+ grid-row: span 2;
279
+ }
280
+
281
+ .ox-tweet--full .ox-tweet__media-item {
282
+ width: 100%;
283
+ height: auto;
284
+ border: 0;
285
+ border-radius: 0;
286
+ }
287
+
288
+ .ox-tweet--full .ox-tweet__media[data-count="2"] .ox-tweet__media-item,
289
+ .ox-tweet--full .ox-tweet__media[data-count="3"] .ox-tweet__media-item,
290
+ .ox-tweet--full .ox-tweet__media[data-count="4"] .ox-tweet__media-item {
291
+ height: 100%;
292
+ object-fit: cover;
293
+ }
294
+
295
+ .ox-tweet--full .ox-tweet__media-fallback {
296
+ position: relative;
297
+ }
298
+
299
+ .ox-tweet--full .ox-tweet__watch {
300
+ margin-top: 0.375rem;
301
+ font-size: 0.8125rem;
302
+ }
303
+
304
+ .ox-tweet--full .ox-tweet__quote {
305
+ margin: 0.75rem 0 0;
306
+ padding: 0.75rem;
307
+ overflow: hidden;
308
+ border: var(--ox-tweet-border);
309
+ border-radius: 12px;
310
+ }
311
+
312
+ .ox-tweet--full .ox-tweet__quote-header {
313
+ margin: 0;
314
+ }
315
+
316
+ .ox-tweet--full .ox-tweet__quote .ox-tweet__avatar {
317
+ width: 20px;
318
+ height: 20px;
319
+ }
320
+
321
+ .ox-tweet--full .ox-tweet__quote-body {
322
+ margin: 0.25rem 0 0;
323
+ font-size: var(--ox-tweet-quoted-body-font-size);
324
+ line-height: 1.25rem;
325
+ }
326
+
327
+ .ox-tweet--full .ox-tweet__quote .ox-tweet__media {
328
+ margin-top: 0.75rem;
329
+ }
330
+
331
+ .ox-tweet--full .ox-tweet__info,
332
+ .ox-tweet--full .ox-tweet__metrics,
333
+ .ox-tweet--full .ox-tweet__actions {
334
+ display: flex;
335
+ align-items: center;
336
+ margin-top: 0.125rem;
337
+ overflow: hidden;
338
+ color: var(--ox-tweet-font-color-secondary);
339
+ white-space: nowrap;
340
+ text-overflow: ellipsis;
341
+ }
342
+
343
+ .ox-tweet--full .ox-tweet__actions {
344
+ padding-top: 0.25rem;
345
+ margin-top: 0.25rem;
346
+ border-top: var(--ox-tweet-border);
347
+ }
348
+
349
+ .ox-tweet--full .ox-tweet__metrics {
350
+ gap: 0.75rem;
351
+ font-size: var(--ox-tweet-actions-font-size);
352
+ }
353
+
354
+ .ox-tweet--full .ox-tweet__permalink,
355
+ .ox-tweet--full .ox-tweet__info-help,
356
+ .ox-tweet--full .ox-tweet__action,
357
+ .ox-tweet--full .ox-tweet__replies-link {
358
+ color: inherit;
359
+ text-decoration: none;
360
+ }
361
+
362
+ .ox-tweet--full .ox-tweet__permalink {
363
+ font-size: var(--ox-tweet-info-font-size);
364
+ line-height: 1.25rem;
365
+ }
366
+
367
+ .ox-tweet--full .ox-tweet__permalink:hover {
368
+ text-decoration: underline;
369
+ }
370
+
371
+ .ox-tweet--full .ox-tweet__info-help {
372
+ display: flex;
373
+ align-items: center;
374
+ justify-content: center;
375
+ width: 2em;
376
+ height: 2em;
377
+ margin-left: auto;
378
+ border-radius: 9999px;
379
+ }
380
+
381
+ .ox-tweet--full .ox-tweet__action {
382
+ display: flex;
383
+ align-items: center;
384
+ margin-right: 1.25rem;
385
+ font-size: var(--ox-tweet-actions-font-size);
386
+ font-weight: 700;
387
+ line-height: 1rem;
388
+ }
389
+
390
+ .ox-tweet--full .ox-tweet__action .ox-tweet__icon {
391
+ margin-right: 0.25rem;
392
+ }
393
+
394
+ .ox-tweet--full .ox-tweet__action--like:hover {
395
+ color: var(--ox-tweet-color-red);
396
+ }
397
+
398
+ .ox-tweet--full .ox-tweet__action--reply:hover {
399
+ color: var(--ox-tweet-color-blue-text);
400
+ }
401
+
402
+ .ox-tweet--full .ox-tweet__action--copy:hover,
403
+ .ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] {
404
+ color: var(--ox-tweet-color-green);
405
+ }
406
+
407
+ .ox-tweet--full .ox-tweet__copied-text {
408
+ display: none;
409
+ }
410
+
411
+ .ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__copy-text {
412
+ display: none;
413
+ }
414
+
415
+ .ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__copied-text {
416
+ display: inline;
417
+ }
418
+
419
+ .ox-tweet--full .ox-tweet__replies {
420
+ padding: 0.25rem 0;
421
+ margin: 0.5rem 0 0;
422
+ }
423
+
424
+ .ox-tweet--full .ox-tweet__replies-link {
425
+ box-sizing: border-box;
426
+ display: flex;
427
+ align-items: center;
428
+ justify-content: center;
429
+ width: 100%;
430
+ min-height: 32px;
431
+ padding: 0 1rem;
432
+ font-size: 0.875rem;
433
+ font-weight: 700;
434
+ color: var(--ox-tweet-color-blue-text);
435
+ border: var(--ox-tweet-border);
436
+ border-radius: 9999px;
437
+ }
438
+
439
+ .ox-tweet--full .ox-tweet__replies-link:hover {
440
+ background-color: var(--ox-tweet-color-blue-hover);
441
+ }
442
+
443
+ @media (max-width: 400px) {
444
+ .ox-tweet--full {
445
+ padding: 0.625rem 0.75rem;
446
+ }
447
+
448
+ .ox-tweet--full .ox-tweet__follow,
449
+ .ox-tweet--full .ox-tweet__sep {
450
+ display: none;
451
+ }
452
+ }
@@ -0,0 +1,77 @@
1
+ /* ox-content YouTube Plugin - iframe styles */
2
+
3
+ .ox-youtube {
4
+ margin: 1.5rem 0;
5
+ position: relative;
6
+ width: 100%;
7
+ aspect-ratio: 16 / 9;
8
+ border-radius: 4px;
9
+ overflow: hidden;
10
+ background: var(--octc-color-bg-alt);
11
+ }
12
+
13
+ .ox-youtube iframe {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ border: none;
20
+ }
21
+
22
+ /* Placeholder when iframe hasn't loaded */
23
+ .ox-youtube::before {
24
+ content: "";
25
+ position: absolute;
26
+ inset: 0;
27
+ background: linear-gradient(135deg, var(--octc-color-bg-alt) 0%, var(--octc-color-border) 100%);
28
+ z-index: -1;
29
+ }
30
+
31
+ /* Play button placeholder */
32
+ .ox-youtube-placeholder {
33
+ position: absolute;
34
+ inset: 0;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ cursor: pointer;
39
+ background-size: cover;
40
+ background-position: center;
41
+ }
42
+
43
+ .ox-youtube-placeholder::after {
44
+ content: "";
45
+ width: 68px;
46
+ height: 48px;
47
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23f00' d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z'/%3E%3Cpath fill='%23fff' d='M45 24L27 14v20'/%3E%3C/svg%3E")
48
+ center/contain no-repeat;
49
+ transition: transform 0.2s ease;
50
+ }
51
+
52
+ .ox-youtube-placeholder:hover::after {
53
+ transform: scale(1.1);
54
+ }
55
+
56
+ /* Title overlay */
57
+ .ox-youtube-title {
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ right: 0;
62
+ padding: 1rem;
63
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
64
+ color: #fff;
65
+ font-size: 0.875rem;
66
+ font-weight: 500;
67
+ }
68
+
69
+ /* Responsive adjustments */
70
+ @media (max-width: 640px) {
71
+ .ox-youtube {
72
+ margin-left: -0.75rem;
73
+ margin-right: -0.75rem;
74
+ border-radius: 0;
75
+ width: calc(100% + 1.5rem);
76
+ }
77
+ }