myetv-player 1.0.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.
- package/.github/workflows/npm-publish.yml +30 -0
- package/LICENSE +21 -0
- package/README.md +866 -0
- package/build.js +189 -0
- package/css/README.md +1 -0
- package/css/myetv-player.css +13702 -0
- package/css/myetv-player.min.css +1 -0
- package/dist/README.md +1 -0
- package/dist/myetv-player.js +6408 -0
- package/dist/myetv-player.min.js +6183 -0
- package/package.json +27 -0
- package/plugins/README.md +1 -0
- package/plugins/google-analytics/README.md +1 -0
- package/plugins/google-analytics/myetv-player-g-analytics-plugin.js +548 -0
- package/plugins/youtube/README.md +1 -0
- package/plugins/youtube/myetv-player-youtube-plugin.js +418 -0
- package/scss/README.md +1 -0
- package/scss/_audio-player.scss +21 -0
- package/scss/_base.scss +131 -0
- package/scss/_controls.scss +30 -0
- package/scss/_loading.scss +111 -0
- package/scss/_menus.scss +4070 -0
- package/scss/_mixins.scss +112 -0
- package/scss/_poster.scss +8 -0
- package/scss/_progress-bar.scss +2203 -0
- package/scss/_resolution.scss +68 -0
- package/scss/_responsive.scss +1532 -0
- package/scss/_themes.scss +30 -0
- package/scss/_title-overlay.scss +2262 -0
- package/scss/_tooltips.scss +7 -0
- package/scss/_variables.scss +49 -0
- package/scss/_video.scss +2401 -0
- package/scss/_volume.scss +1981 -0
- package/scss/_watermark.scss +8 -0
- package/scss/myetv-player.scss +51 -0
- package/scss/package.json +16 -0
- package/src/README.md +1 -0
- package/src/chapters.js +521 -0
- package/src/controls.js +1005 -0
- package/src/core.js +1650 -0
- package/src/events.js +330 -0
- package/src/fullscreen.js +82 -0
- package/src/i18n.js +348 -0
- package/src/playlist.js +177 -0
- package/src/plugins.js +384 -0
- package/src/quality.js +921 -0
- package/src/streaming.js +346 -0
- package/src/subtitles.js +426 -0
- package/src/utils.js +51 -0
- package/src/watermark.js +195 -0
package/scss/_video.scss
ADDED
|
@@ -0,0 +1,2401 @@
|
|
|
1
|
+
// ===================================
|
|
2
|
+
// VIDEO PLAYER
|
|
3
|
+
// ===================================
|
|
4
|
+
|
|
5
|
+
@use 'mixins' as *;
|
|
6
|
+
|
|
7
|
+
/* SMART VIDEO HIDING */
|
|
8
|
+
.video-player {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: auto;
|
|
11
|
+
display: block;
|
|
12
|
+
min-height: 300px;
|
|
13
|
+
visibility: hidden;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
position: relative;
|
|
16
|
+
z-index: 1;
|
|
17
|
+
transition: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.video-wrapper.player-initialized .video-player {
|
|
21
|
+
visibility: visible;
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transition: opacity 0.3s ease;
|
|
24
|
+
pointer-events: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* NATIVE CONTROLS DISABLED */
|
|
28
|
+
.video-player::-webkit-media-controls-panel,
|
|
29
|
+
.video-player::-webkit-media-controls-play-button,
|
|
30
|
+
.video-player::-webkit-media-controls-start-playback-button,
|
|
31
|
+
.video-player::-webkit-media-controls-timeline,
|
|
32
|
+
.video-player::-webkit-media-controls-current-time-display,
|
|
33
|
+
.video-player::-webkit-media-controls-time-remaining-display,
|
|
34
|
+
.video-player::-webkit-media-controls-mute-button,
|
|
35
|
+
.video-player::-webkit-media-controls-toggle-closed-captions-button,
|
|
36
|
+
.video-player::-webkit-media-controls-volume-slider,
|
|
37
|
+
.video-player::-webkit-media-controls-fullscreen-button,
|
|
38
|
+
.video-player::-webkit-media-controls-seek-back-button,
|
|
39
|
+
.video-player::-webkit-media-controls-seek-forward-button,
|
|
40
|
+
.video-player::-webkit-media-controls-rewind-button,
|
|
41
|
+
.video-player::-webkit-media-controls-return-to-realtime-button,
|
|
42
|
+
.video-player::-webkit-media-controls-overlay-play-button {
|
|
43
|
+
display: none !important;
|
|
44
|
+
visibility: hidden !important;
|
|
45
|
+
opacity: 0 !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.video-player::-moz-media-controls {
|
|
49
|
+
display: none !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/* NATIVE CONTROLS DISABLED */
|
|
55
|
+
.video-player::-webkit-media-controls-panel,
|
|
56
|
+
.video-player::-webkit-media-controls-play-button,
|
|
57
|
+
.video-player::-webkit-media-controls-start-playback-button,
|
|
58
|
+
.video-player::-webkit-media-controls-timeline,
|
|
59
|
+
.video-player::-webkit-media-controls-current-time-display,
|
|
60
|
+
.video-player::-webkit-media-controls-time-remaining-display,
|
|
61
|
+
.video-player::-webkit-media-controls-mute-button,
|
|
62
|
+
.video-player::-webkit-media-controls-toggle-closed-captions-button,
|
|
63
|
+
.video-player::-webkit-media-controls-volume-slider,
|
|
64
|
+
.video-player::-webkit-media-controls-fullscreen-button,
|
|
65
|
+
.video-player::-webkit-media-controls-seek-back-button,
|
|
66
|
+
.video-player::-webkit-media-controls-seek-forward-button,
|
|
67
|
+
.video-player::-webkit-media-controls-rewind-button,
|
|
68
|
+
.video-player::-webkit-media-controls-return-to-realtime-button,
|
|
69
|
+
.video-player::-webkit-media-controls-overlay-play-button {
|
|
70
|
+
display: none !important;
|
|
71
|
+
visibility: hidden !important;
|
|
72
|
+
opacity: 0 !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.video-player::-moz-media-controls {
|
|
76
|
+
display: none !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* INITIAL LOADING */
|
|
80
|
+
.initial-loading {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
background: var(--player-bg-primary);
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
z-index: 20;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.video-wrapper.player-initialized .initial-loading {
|
|
94
|
+
opacity: 0;
|
|
95
|
+
visibility: hidden;
|
|
96
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
97
|
+
transition-delay: 0.2s;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.video-wrapper.player-initialized .initial-loading {
|
|
101
|
+
display: none;
|
|
102
|
+
transition-delay: 0.5s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.loading-overlay {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 0;
|
|
108
|
+
left: 0;
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: 100%;
|
|
111
|
+
background: var(--player-bg-loading);
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
opacity: 0;
|
|
116
|
+
visibility: hidden;
|
|
117
|
+
transition: opacity var(--player-transition-normal);
|
|
118
|
+
z-index: 15;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.loading-overlay.active {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
visibility: visible;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.loading-spinner {
|
|
127
|
+
width: 50px;
|
|
128
|
+
height: 50px;
|
|
129
|
+
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
130
|
+
border-top: 3px solid var(--player-primary-color);
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
animation: spin 1s linear infinite;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@keyframes spin {
|
|
136
|
+
0% {
|
|
137
|
+
transform: rotate(0deg);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
100% {
|
|
141
|
+
transform: rotate(360deg);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* TITLE OVERLAY - WITH AUTO-HIDE */
|
|
146
|
+
.title-overlay {
|
|
147
|
+
position: absolute;
|
|
148
|
+
top: 0;
|
|
149
|
+
left: 0;
|
|
150
|
+
right: 0;
|
|
151
|
+
background: var(--player-bg-title-overlay);
|
|
152
|
+
padding: var(--player-title-overlay-padding);
|
|
153
|
+
opacity: 0;
|
|
154
|
+
transform: translateY(-100%);
|
|
155
|
+
transition: all var(--player-transition-normal);
|
|
156
|
+
z-index: 15;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.title-overlay.show {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
transform: translateY(0);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.title-overlay.show.persistent {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
transform: translateY(0);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.title-text {
|
|
171
|
+
color: var(--player-text-color);
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
line-height: 1.3;
|
|
175
|
+
margin: 0;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
|
|
180
|
+
-webkit-font-smoothing: antialiased;
|
|
181
|
+
-moz-osx-font-smoothing: grayscale;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* CONTROLS - IMPROVED RESPONSIVE DESIGN */
|
|
185
|
+
.controls {
|
|
186
|
+
position: absolute;
|
|
187
|
+
bottom: 0;
|
|
188
|
+
left: 0;
|
|
189
|
+
right: 0;
|
|
190
|
+
background: var(--player-bg-controls);
|
|
191
|
+
padding: var(--player-controls-padding);
|
|
192
|
+
opacity: 0;
|
|
193
|
+
transform: translateY(100%);
|
|
194
|
+
transition: all var(--player-transition-normal);
|
|
195
|
+
z-index: 10;
|
|
196
|
+
min-height: 70px !important;
|
|
197
|
+
box-sizing: border-box;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.controls.show {
|
|
201
|
+
opacity: 1;
|
|
202
|
+
transform: translateY(0);
|
|
203
|
+
position: absolute !important;
|
|
204
|
+
bottom: 0 !important;
|
|
205
|
+
z-index: 20 !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* PROGRESS BAR */
|
|
209
|
+
.progress-container {
|
|
210
|
+
width: 100%;
|
|
211
|
+
height: var(--player-progress-height);
|
|
212
|
+
background: var(--player-progress-bg);
|
|
213
|
+
border-radius: calc(var(--player-progress-height) / 2);
|
|
214
|
+
margin-bottom: 15px;
|
|
215
|
+
position: relative;
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.progress-bar {
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: 100%;
|
|
222
|
+
position: relative;
|
|
223
|
+
border-radius: calc(var(--player-progress-height) / 2);
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.progress-buffer {
|
|
228
|
+
height: 100%;
|
|
229
|
+
background: var(--player-progress-buffer);
|
|
230
|
+
width: 0%;
|
|
231
|
+
border-radius: calc(var(--player-progress-height) / 2);
|
|
232
|
+
transition: width var(--player-transition-fast);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.progress-filled {
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 0;
|
|
238
|
+
left: 0;
|
|
239
|
+
height: 100%;
|
|
240
|
+
background: var(--player-primary-color);
|
|
241
|
+
width: 0%;
|
|
242
|
+
border-radius: calc(var(--player-progress-height) / 2);
|
|
243
|
+
transition: width 0.1s ease;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.progress-handle {
|
|
247
|
+
position: absolute;
|
|
248
|
+
top: 50%;
|
|
249
|
+
transform: translate(-50%, -50%);
|
|
250
|
+
width: var(--player-progress-handle-size);
|
|
251
|
+
height: var(--player-progress-handle-size);
|
|
252
|
+
background: var(--player-primary-color);
|
|
253
|
+
border-radius: 50%;
|
|
254
|
+
opacity: 0;
|
|
255
|
+
transition: opacity var(--player-transition-fast);
|
|
256
|
+
z-index: 2;
|
|
257
|
+
left: 0%;
|
|
258
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.progress-container:hover .progress-handle {
|
|
262
|
+
opacity: 1;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.progress-container:hover .progress-filled {
|
|
266
|
+
background: var(--player-primary-hover);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* TOOLTIP SEEK BAR */
|
|
270
|
+
.seek-tooltip {
|
|
271
|
+
position: absolute;
|
|
272
|
+
bottom: 100%;
|
|
273
|
+
left: 0;
|
|
274
|
+
background: rgba(0, 0, 0, 0.9);
|
|
275
|
+
color: white;
|
|
276
|
+
padding: 6px 10px;
|
|
277
|
+
border-radius: 6px;
|
|
278
|
+
font-size: 12px;
|
|
279
|
+
font-weight: 500;
|
|
280
|
+
white-space: nowrap;
|
|
281
|
+
opacity: 0;
|
|
282
|
+
visibility: hidden;
|
|
283
|
+
transform: translateX(-50%) translateY(-8px);
|
|
284
|
+
transition: all 0.15s ease;
|
|
285
|
+
z-index: 1000;
|
|
286
|
+
box-shadow: var(--player-shadow-tooltip);
|
|
287
|
+
font-variant-numeric: tabular-nums;
|
|
288
|
+
backdrop-filter: blur(8px);
|
|
289
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.seek-tooltip::after {
|
|
293
|
+
content: '';
|
|
294
|
+
position: absolute;
|
|
295
|
+
top: 100%;
|
|
296
|
+
left: 50%;
|
|
297
|
+
transform: translateX(-50%);
|
|
298
|
+
width: 0;
|
|
299
|
+
height: 0;
|
|
300
|
+
border-left: 5px solid transparent;
|
|
301
|
+
border-right: 5px solid transparent;
|
|
302
|
+
border-top: 5px solid rgba(0, 0, 0, 0.9);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.seek-tooltip.visible {
|
|
306
|
+
opacity: 1;
|
|
307
|
+
visibility: visible;
|
|
308
|
+
transform: translateX(-50%) translateY(-4px);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* MAIN CONTROLS - IMPROVED RESPONSIVE LAYOUT */
|
|
312
|
+
.controls-main {
|
|
313
|
+
display: flex;
|
|
314
|
+
justify-content: space-between;
|
|
315
|
+
align-items: center;
|
|
316
|
+
width: 100%;
|
|
317
|
+
min-height: 44px !important;
|
|
318
|
+
flex-shrink: 0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.controls-left,
|
|
322
|
+
.controls-right {
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
gap: 10px;
|
|
326
|
+
/* IMPROVED: Allow shrinking */
|
|
327
|
+
flex-shrink: 1;
|
|
328
|
+
min-width: 0;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* BUTTONS - IMPROVED RESPONSIVE BEHAVIOR */
|
|
332
|
+
.control-btn {
|
|
333
|
+
background: none;
|
|
334
|
+
border: none;
|
|
335
|
+
color: var(--player-button-color);
|
|
336
|
+
cursor: pointer;
|
|
337
|
+
padding: var(--player-button-padding);
|
|
338
|
+
border-radius: 6px;
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
gap: 5px;
|
|
342
|
+
transition: all var(--player-transition-fast);
|
|
343
|
+
font-size: 14px;
|
|
344
|
+
font-weight: 500;
|
|
345
|
+
position: relative;
|
|
346
|
+
/* IMPROVED: Allow buttons to shrink when necessary */
|
|
347
|
+
flex-shrink: 1;
|
|
348
|
+
min-width: 0;
|
|
349
|
+
white-space: nowrap;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.control-btn:hover {
|
|
353
|
+
background: var(--player-button-hover);
|
|
354
|
+
transform: scale(1.05);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.control-btn:active {
|
|
358
|
+
transform: scale(0.95);
|
|
359
|
+
background: var(--player-button-active);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* SPECIFIC SUBTITLES BUTTON */
|
|
363
|
+
.subtitles-btn {
|
|
364
|
+
position: relative;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.subtitles-btn.active {
|
|
368
|
+
background: var(--player-button-active);
|
|
369
|
+
color: var(--player-primary-color);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.subtitles-btn.active::after {
|
|
373
|
+
content: '';
|
|
374
|
+
position: absolute;
|
|
375
|
+
bottom: 2px;
|
|
376
|
+
left: 50%;
|
|
377
|
+
transform: translateX(-50%);
|
|
378
|
+
width: 20px;
|
|
379
|
+
height: 2px;
|
|
380
|
+
background: var(--player-primary-color);
|
|
381
|
+
border-radius: 1px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* QUALITY BUTTON WITH DUAL DISPLAY */
|
|
385
|
+
.quality-btn {
|
|
386
|
+
min-height: 36px;
|
|
387
|
+
padding: 6px 8px;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.quality-btn-text {
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
align-items: center;
|
|
394
|
+
line-height: 1;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.selected-quality {
|
|
398
|
+
font-size: 14px;
|
|
399
|
+
font-weight: 500;
|
|
400
|
+
color: var(--player-button-color);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.current-quality {
|
|
404
|
+
font-size: 10px;
|
|
405
|
+
font-weight: 400;
|
|
406
|
+
color: var(--player-text-secondary);
|
|
407
|
+
opacity: 0.8;
|
|
408
|
+
margin-top: 2px;
|
|
409
|
+
line-height: 1;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* ICONS */
|
|
413
|
+
.icon {
|
|
414
|
+
width: var(--player-icon-size);
|
|
415
|
+
height: var(--player-icon-size);
|
|
416
|
+
display: flex;
|
|
417
|
+
align-items: center;
|
|
418
|
+
justify-content: center;
|
|
419
|
+
font-size: 16px;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.hidden {
|
|
423
|
+
display: none !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* VOLUME CONTROLS - IMPROVED RESPONSIVE */
|
|
427
|
+
.volume-container {
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
gap: 8px;
|
|
431
|
+
position: relative;
|
|
432
|
+
/* Allow volume container to shrink gradually */
|
|
433
|
+
flex-shrink: 2;
|
|
434
|
+
min-width: 0;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.volume-slider {
|
|
438
|
+
width: 60px;
|
|
439
|
+
height: var(--player-volume-height);
|
|
440
|
+
background: var(--player-volume-bg);
|
|
441
|
+
border-radius: calc(var(--player-volume-height) / 2);
|
|
442
|
+
outline: none;
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
-webkit-appearance: none;
|
|
445
|
+
transition: all var(--player-transition-fast);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.volume-tooltip {
|
|
449
|
+
position: absolute;
|
|
450
|
+
bottom: 210%;
|
|
451
|
+
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
452
|
+
left: 0;
|
|
453
|
+
transform: translateX(-50%);
|
|
454
|
+
background: rgba(0, 0, 0, 0.9);
|
|
455
|
+
color: white;
|
|
456
|
+
padding: 6px 10px;
|
|
457
|
+
border-radius: 6px;
|
|
458
|
+
font-size: 12px;
|
|
459
|
+
font-weight: 500;
|
|
460
|
+
white-space: nowrap;
|
|
461
|
+
opacity: 0;
|
|
462
|
+
visibility: hidden;
|
|
463
|
+
z-index: 1000;
|
|
464
|
+
box-shadow: var(--player-shadow-tooltip);
|
|
465
|
+
pointer-events: none;
|
|
466
|
+
backdrop-filter: blur(8px);
|
|
467
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.volume-tooltip::after {
|
|
471
|
+
content: '';
|
|
472
|
+
position: absolute;
|
|
473
|
+
top: 100%;
|
|
474
|
+
left: 50%;
|
|
475
|
+
transform: translateX(-50%);
|
|
476
|
+
width: 0;
|
|
477
|
+
height: 0;
|
|
478
|
+
border-left: 6px solid transparent;
|
|
479
|
+
border-right: 6px solid transparent;
|
|
480
|
+
border-top: 6px solid rgba(0, 0, 0, 0.9);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.volume-container:hover .volume-tooltip,
|
|
484
|
+
.volume-tooltip.visible {
|
|
485
|
+
opacity: 1;
|
|
486
|
+
visibility: visible;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.volume-slider::-webkit-slider-thumb {
|
|
490
|
+
-webkit-appearance: none;
|
|
491
|
+
width: var(--player-volume-handle-size);
|
|
492
|
+
height: var(--player-volume-handle-size);
|
|
493
|
+
border-radius: 50%;
|
|
494
|
+
background: var(--player-primary-dark);
|
|
495
|
+
cursor: pointer;
|
|
496
|
+
transition: all var(--player-transition-fast);
|
|
497
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
498
|
+
margin-top: calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2);
|
|
499
|
+
transform: translateY(0);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.volume-slider::-webkit-slider-thumb:hover {
|
|
503
|
+
transform: translateY(0) scale(1.2);
|
|
504
|
+
background: var(--player-primary-color);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.volume-slider::-moz-range-thumb {
|
|
508
|
+
width: var(--player-volume-handle-size);
|
|
509
|
+
height: var(--player-volume-handle-size);
|
|
510
|
+
border-radius: 50%;
|
|
511
|
+
background: var(--player-primary-dark);
|
|
512
|
+
cursor: pointer;
|
|
513
|
+
border: none;
|
|
514
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
|
515
|
+
transition: all var(--player-transition-fast);
|
|
516
|
+
margin-top: 0;
|
|
517
|
+
transform: translateY(calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2));
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.volume-slider::-moz-range-thumb:hover {
|
|
521
|
+
background: var(--player-primary-color);
|
|
522
|
+
transform: translateY(calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2)) scale(1.1);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.volume-slider::-webkit-slider-runnable-track {
|
|
526
|
+
height: var(--player-volume-height);
|
|
527
|
+
background: linear-gradient(to right, var(--player-primary-dark) 0%, var(--player-primary-dark) var(--player-volume-fill), var(--player-volume-bg) var(--player-volume-fill), var(--player-volume-bg) 100%);
|
|
528
|
+
border-radius: calc(var(--player-volume-height) / 2);
|
|
529
|
+
transition: background var(--player-transition-fast);
|
|
530
|
+
margin: 0;
|
|
531
|
+
border: none;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.volume-slider::-moz-range-track {
|
|
535
|
+
height: var(--player-volume-height);
|
|
536
|
+
background: linear-gradient(to right, var(--player-primary-dark) 0%, var(--player-primary-dark) var(--player-volume-fill), var(--player-volume-bg) var(--player-volume-fill), var(--player-volume-bg) 100%);
|
|
537
|
+
border-radius: calc(var(--player-volume-height) / 2);
|
|
538
|
+
border: none;
|
|
539
|
+
transition: background var(--player-transition-fast);
|
|
540
|
+
margin: 0;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/* TIME DISPLAY - RESPONSIVE */
|
|
544
|
+
.time-display {
|
|
545
|
+
color: var(--player-text-color);
|
|
546
|
+
font-size: 14px;
|
|
547
|
+
font-weight: 500;
|
|
548
|
+
display: flex;
|
|
549
|
+
align-items: center;
|
|
550
|
+
gap: 5px;
|
|
551
|
+
font-variant-numeric: tabular-nums;
|
|
552
|
+
/* Allow time display to shrink on very small screens */
|
|
553
|
+
flex-shrink: 2;
|
|
554
|
+
min-width: 0;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/* CONTROL MENUS */
|
|
558
|
+
.speed-control,
|
|
559
|
+
.quality-control,
|
|
560
|
+
.subtitles-control {
|
|
561
|
+
position: relative;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.speed-menu,
|
|
565
|
+
.quality-menu,
|
|
566
|
+
.subtitles-menu {
|
|
567
|
+
position: absolute;
|
|
568
|
+
bottom: 100%;
|
|
569
|
+
right: 0;
|
|
570
|
+
background: var(--player-bg-menu);
|
|
571
|
+
backdrop-filter: blur(10px);
|
|
572
|
+
border-radius: 8px;
|
|
573
|
+
padding: 8px 0;
|
|
574
|
+
margin-bottom: 10px;
|
|
575
|
+
opacity: 0;
|
|
576
|
+
visibility: hidden;
|
|
577
|
+
transition: all var(--player-transition-fast);
|
|
578
|
+
min-width: 140px;
|
|
579
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
580
|
+
z-index: 100;
|
|
581
|
+
box-shadow: var(--player-shadow-menu);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.speed-control:hover .speed-menu,
|
|
585
|
+
.speed-menu:hover,
|
|
586
|
+
.quality-control:hover .quality-menu,
|
|
587
|
+
.quality-menu:hover,
|
|
588
|
+
.subtitles-control:hover .subtitles-menu,
|
|
589
|
+
.subtitles-menu:hover {
|
|
590
|
+
opacity: 1;
|
|
591
|
+
visibility: visible;
|
|
592
|
+
transform: translateY(-4px);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.speed-option,
|
|
596
|
+
.quality-option,
|
|
597
|
+
.subtitles-option {
|
|
598
|
+
padding: 8px 16px;
|
|
599
|
+
color: var(--player-text-color);
|
|
600
|
+
cursor: pointer;
|
|
601
|
+
transition: all var(--player-transition-fast);
|
|
602
|
+
font-size: 14px;
|
|
603
|
+
display: flex;
|
|
604
|
+
align-items: center;
|
|
605
|
+
justify-content: space-between;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.speed-option:hover,
|
|
609
|
+
.quality-option:hover,
|
|
610
|
+
.subtitles-option:hover {
|
|
611
|
+
background: rgba(255, 255, 255, 0.1);
|
|
612
|
+
color: var(--player-primary-color);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.speed-option.active,
|
|
616
|
+
.quality-option.active,
|
|
617
|
+
.subtitles-option.active {
|
|
618
|
+
color: var(--player-primary-color);
|
|
619
|
+
font-weight: 600;
|
|
620
|
+
background: rgba(255, 255, 255, 0.05);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/* DUAL QUALITY INDICATORS */
|
|
624
|
+
.quality-option.selected {
|
|
625
|
+
color: var(--player-primary-color);
|
|
626
|
+
font-weight: 600;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.quality-option.selected::after {
|
|
630
|
+
content: 'Selected';
|
|
631
|
+
font-size: 12px;
|
|
632
|
+
color: var(--player-primary-color);
|
|
633
|
+
font-weight: 400;
|
|
634
|
+
margin-left: 8px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.quality-option.playing {
|
|
638
|
+
background: rgba(255, 255, 255, 0.05);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.quality-option.playing::after {
|
|
642
|
+
content: 'Playing';
|
|
643
|
+
font-size: 12px;
|
|
644
|
+
color: #4CAF50; /* Green for playing */
|
|
645
|
+
font-weight: 400;
|
|
646
|
+
margin-left: 8px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.quality-option.selected.playing::after {
|
|
650
|
+
content: 'Active';
|
|
651
|
+
font-size: 12px;
|
|
652
|
+
color: var(--player-primary-color);
|
|
653
|
+
font-weight: 500;
|
|
654
|
+
margin-left: 8px;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.subtitles-option.active::after {
|
|
658
|
+
content: '✓';
|
|
659
|
+
font-size: 12px;
|
|
660
|
+
color: var(--player-primary-color);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/* CUSTOM SUBTITLES STYLING */
|
|
666
|
+
.video-player::cue {
|
|
667
|
+
background: rgba(0, 0, 0, 0.8);
|
|
668
|
+
color: white;
|
|
669
|
+
font-size: 18px;
|
|
670
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
671
|
+
font-weight: 500;
|
|
672
|
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
|
|
673
|
+
padding: 8px 12px;
|
|
674
|
+
border-radius: 6px;
|
|
675
|
+
line-height: 1.4;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.video-player::cue(.highlight) {
|
|
679
|
+
background: var(--player-primary-color);
|
|
680
|
+
color: black;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.video-player::cue(b) {
|
|
684
|
+
font-weight: 700;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.video-player::cue(i) {
|
|
688
|
+
font-style: italic;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* BRAND LOGO RESPONSIVE */
|
|
692
|
+
.controls-right .brand-logo {
|
|
693
|
+
height: 44px; /* recommended height for control bar logos */
|
|
694
|
+
max-width: 120px; /* maintain aspect ratio */
|
|
695
|
+
object-fit: contain; /* prevent distortion */
|
|
696
|
+
margin-right: 10px; /* spacing from buttons to the right */
|
|
697
|
+
pointer-events: auto; /* allow clicks for links */
|
|
698
|
+
opacity: 0.8; /* slightly transparent */
|
|
699
|
+
transition: opacity var(--player-transition-fast);
|
|
700
|
+
order: -1; /* force logo to appear first */
|
|
701
|
+
flex-shrink: 1; /* Allow brand logo to shrink */
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.controls-right .brand-logo:hover {
|
|
705
|
+
opacity: 1; /* opaque on hover */
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.controls-right .brand-logo-link {
|
|
709
|
+
order: -1; /* force link container to appear first */
|
|
710
|
+
margin-right: 10px; /* spacing from buttons */
|
|
711
|
+
display: inline-block;
|
|
712
|
+
text-decoration: none;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.controls-right .brand-logo-link .brand-logo {
|
|
716
|
+
margin-right: 0; /* remove margin when inside link */
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/* SETTINGS DROPDOWN MENU - NUOVO SISTEMA PER SCHERMI PICCOLI */
|
|
720
|
+
.settings-control {
|
|
721
|
+
position: relative;
|
|
722
|
+
display: none; /* Hidden by default, shown only on small screens */
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.settings-btn {
|
|
726
|
+
background: none;
|
|
727
|
+
border: none;
|
|
728
|
+
color: var(--player-button-color);
|
|
729
|
+
cursor: pointer;
|
|
730
|
+
padding: var(--player-button-padding);
|
|
731
|
+
border-radius: 6px;
|
|
732
|
+
display: flex;
|
|
733
|
+
align-items: center;
|
|
734
|
+
gap: 5px;
|
|
735
|
+
transition: all var(--player-transition-fast);
|
|
736
|
+
font-size: 14px;
|
|
737
|
+
font-weight: 500;
|
|
738
|
+
position: relative;
|
|
739
|
+
flex-shrink: 0;
|
|
740
|
+
min-width: 0;
|
|
741
|
+
white-space: nowrap;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.settings-btn:hover {
|
|
745
|
+
background: var(--player-button-hover);
|
|
746
|
+
transform: scale(1.05);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.settings-btn:active {
|
|
750
|
+
transform: scale(0.95);
|
|
751
|
+
background: var(--player-button-active);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.settings-btn .icon::before {
|
|
755
|
+
content: '⚙️'; /* Settings gear emoji */
|
|
756
|
+
font-size: 16px;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.settings-menu {
|
|
760
|
+
position: absolute;
|
|
761
|
+
bottom: 100%;
|
|
762
|
+
right: 0;
|
|
763
|
+
background: var(--player-bg-menu);
|
|
764
|
+
backdrop-filter: blur(10px);
|
|
765
|
+
border-radius: 8px;
|
|
766
|
+
padding: 8px 0;
|
|
767
|
+
margin-bottom: 10px;
|
|
768
|
+
opacity: 0;
|
|
769
|
+
visibility: hidden;
|
|
770
|
+
transition: all var(--player-transition-fast);
|
|
771
|
+
min-width: 180px;
|
|
772
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
773
|
+
z-index: 100;
|
|
774
|
+
box-shadow: var(--player-shadow-menu);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.settings-control:hover .settings-menu,
|
|
778
|
+
.settings-menu:hover {
|
|
779
|
+
opacity: 1;
|
|
780
|
+
visibility: visible;
|
|
781
|
+
transform: translateY(-4px);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.settings-option {
|
|
785
|
+
padding: 8px 16px;
|
|
786
|
+
color: var(--player-text-color);
|
|
787
|
+
cursor: pointer;
|
|
788
|
+
transition: all var(--player-transition-fast);
|
|
789
|
+
font-size: 14px;
|
|
790
|
+
display: flex;
|
|
791
|
+
align-items: center;
|
|
792
|
+
justify-content: space-between;
|
|
793
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.settings-option:last-child {
|
|
797
|
+
border-bottom: none;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.settings-option:hover {
|
|
801
|
+
background: rgba(255, 255, 255, 0.1);
|
|
802
|
+
color: var(--player-primary-color);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.settings-option-label {
|
|
806
|
+
display: flex;
|
|
807
|
+
align-items: center;
|
|
808
|
+
gap: 8px;
|
|
809
|
+
flex: 1;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.settings-option-value {
|
|
813
|
+
font-size: 12px;
|
|
814
|
+
color: var(--player-text-secondary);
|
|
815
|
+
opacity: 0.8;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.settings-option.active .settings-option-value {
|
|
819
|
+
color: var(--player-primary-color);
|
|
820
|
+
opacity: 1;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/* Submenu styling for settings */
|
|
824
|
+
.settings-submenu {
|
|
825
|
+
position: absolute;
|
|
826
|
+
bottom: 0;
|
|
827
|
+
right: 100%;
|
|
828
|
+
background: var(--player-bg-menu);
|
|
829
|
+
backdrop-filter: blur(10px);
|
|
830
|
+
border-radius: 8px;
|
|
831
|
+
padding: 8px 0;
|
|
832
|
+
margin-right: 5px;
|
|
833
|
+
opacity: 0;
|
|
834
|
+
visibility: hidden;
|
|
835
|
+
transition: all var(--player-transition-fast);
|
|
836
|
+
min-width: 150px;
|
|
837
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
838
|
+
z-index: 101;
|
|
839
|
+
box-shadow: var(--player-shadow-menu);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.settings-option:hover .settings-submenu {
|
|
843
|
+
opacity: 1;
|
|
844
|
+
visibility: visible;
|
|
845
|
+
transform: translateX(-2px);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.settings-suboption {
|
|
849
|
+
padding: 8px 16px;
|
|
850
|
+
color: var(--player-text-color);
|
|
851
|
+
cursor: pointer;
|
|
852
|
+
transition: all var(--player-transition-fast);
|
|
853
|
+
font-size: 13px;
|
|
854
|
+
display: flex;
|
|
855
|
+
align-items: center;
|
|
856
|
+
justify-content: space-between;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.settings-suboption:hover {
|
|
860
|
+
background: rgba(255, 255, 255, 0.1);
|
|
861
|
+
color: var(--player-primary-color);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.settings-suboption.active {
|
|
865
|
+
color: var(--player-primary-color);
|
|
866
|
+
font-weight: 600;
|
|
867
|
+
background: rgba(255, 255, 255, 0.05);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.settings-suboption.active::after {
|
|
871
|
+
content: '✓';
|
|
872
|
+
font-size: 12px;
|
|
873
|
+
color: var(--player-primary-color);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/* RESPONSIVE DESIGN - PROGRESSIVE DEGRADATION CON MENU A TENDINA */
|
|
877
|
+
|
|
878
|
+
/* Large tablets and small desktops */
|
|
879
|
+
@media (max-width: 768px) {
|
|
880
|
+
.controls-left,
|
|
881
|
+
.controls-right {
|
|
882
|
+
gap: 8px;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.volume-slider {
|
|
886
|
+
width: 50px; /* Reduce volume slider width */
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.time-display {
|
|
890
|
+
font-size: 12px;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.icon {
|
|
894
|
+
font-size: 14px;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.control-btn {
|
|
898
|
+
padding: 6px;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.quality-btn {
|
|
902
|
+
min-height: 32px;
|
|
903
|
+
padding: 4px 6px;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.selected-quality {
|
|
907
|
+
font-size: 12px;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.current-quality {
|
|
911
|
+
font-size: 9px;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.seek-tooltip {
|
|
915
|
+
font-size: 11px;
|
|
916
|
+
padding: 4px 8px;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.title-overlay {
|
|
920
|
+
padding: 12px 15px 20px;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.title-text {
|
|
924
|
+
font-size: 16px;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.video-player::cue {
|
|
928
|
+
font-size: 16px;
|
|
929
|
+
padding: 6px 10px;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.controls-right .brand-logo {
|
|
933
|
+
height: 36px;
|
|
934
|
+
max-width: 100px;
|
|
935
|
+
margin-right: 8px;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/* Mobile phones */
|
|
940
|
+
@media (max-width: 480px) {
|
|
941
|
+
.controls-left,
|
|
942
|
+
.controls-right {
|
|
943
|
+
gap: 6px;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.volume-container {
|
|
947
|
+
/* Reduce volume slider width further instead of hiding */
|
|
948
|
+
flex-shrink: 3;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.volume-slider {
|
|
952
|
+
width: 35px; /* Further reduce volume slider */
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.time-display span:nth-child(2) {
|
|
956
|
+
display: none; /* Hide the separator "/" */
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.quality-btn {
|
|
960
|
+
min-height: 28px;
|
|
961
|
+
padding: 3px 5px;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.selected-quality {
|
|
965
|
+
font-size: 11px;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.current-quality {
|
|
969
|
+
font-size: 8px;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.seek-tooltip {
|
|
973
|
+
font-size: 10px;
|
|
974
|
+
padding: 3px 6px;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.title-overlay {
|
|
978
|
+
padding: 10px 12px 18px;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.title-text {
|
|
982
|
+
font-size: 14px;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.video-player::cue {
|
|
986
|
+
font-size: 14px;
|
|
987
|
+
padding: 4px 8px;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.controls-right .brand-logo {
|
|
991
|
+
height: 28px;
|
|
992
|
+
max-width: 80px;
|
|
993
|
+
margin-right: 5px;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/* SCHERMI MOLTO PICCOLI - ATTIVA MENU SETTINGS DROPDOWN */
|
|
998
|
+
@media (max-width: 350px) {
|
|
999
|
+
/* Mostra il menu Settings solo su schermi molto piccoli */
|
|
1000
|
+
.settings-control {
|
|
1001
|
+
display: block !important;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/* Nascondi i controlli individuali e spostali nel menu */
|
|
1005
|
+
.pip-btn,
|
|
1006
|
+
.speed-control,
|
|
1007
|
+
.subtitles-control {
|
|
1008
|
+
display: none !important;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/* Riduci ulteriormente gli spazi */
|
|
1012
|
+
.controls-left,
|
|
1013
|
+
.controls-right {
|
|
1014
|
+
gap: 4px;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.control-btn {
|
|
1018
|
+
padding: 4px;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.icon {
|
|
1022
|
+
font-size: 12px;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.quality-btn {
|
|
1026
|
+
min-height: 24px;
|
|
1027
|
+
padding: 2px 4px;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.selected-quality {
|
|
1031
|
+
font-size: 10px;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.current-quality {
|
|
1035
|
+
font-size: 7px;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.controls-right .brand-logo {
|
|
1039
|
+
height: 22px;
|
|
1040
|
+
max-width: 50px;
|
|
1041
|
+
margin-right: 3px;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.volume-slider {
|
|
1045
|
+
width: 30px; /* Volume slider ancora più piccolo */
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/* Riduci il menu settings per schermi ultra-piccoli */
|
|
1049
|
+
.settings-menu {
|
|
1050
|
+
min-width: 160px;
|
|
1051
|
+
font-size: 12px;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.settings-option {
|
|
1055
|
+
padding: 6px 12px;
|
|
1056
|
+
font-size: 12px;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.settings-submenu {
|
|
1060
|
+
min-width: 130px;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.settings-suboption {
|
|
1064
|
+
padding: 6px 12px;
|
|
1065
|
+
font-size: 11px;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/* Very small screens - ultra mobile */
|
|
1070
|
+
@media (max-width: 280px) {
|
|
1071
|
+
.controls-left,
|
|
1072
|
+
.controls-right {
|
|
1073
|
+
gap: 3px;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.control-btn {
|
|
1077
|
+
padding: 3px;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.icon {
|
|
1081
|
+
font-size: 10px;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.quality-btn {
|
|
1085
|
+
min-height: 20px;
|
|
1086
|
+
padding: 1px 3px;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.selected-quality {
|
|
1090
|
+
font-size: 9px;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.current-quality {
|
|
1094
|
+
font-size: 6px;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
.controls-right .brand-logo {
|
|
1098
|
+
height: 18px;
|
|
1099
|
+
max-width: 40px;
|
|
1100
|
+
margin-right: 2px;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.volume-slider {
|
|
1104
|
+
width: 25px;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/* Menu settings ultra-compatto */
|
|
1108
|
+
.settings-menu {
|
|
1109
|
+
min-width: 140px;
|
|
1110
|
+
font-size: 11px;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.settings-option {
|
|
1114
|
+
padding: 5px 10px;
|
|
1115
|
+
font-size: 11px;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.settings-submenu {
|
|
1119
|
+
min-width: 120px;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.settings-suboption {
|
|
1123
|
+
padding: 5px 10px;
|
|
1124
|
+
font-size: 10px;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/* OVERFLOW HANDLING - CRITICAL FIX */
|
|
1129
|
+
@media (max-width: 600px) {
|
|
1130
|
+
.controls-main {
|
|
1131
|
+
/* Allow horizontal scrolling if absolutely necessary */
|
|
1132
|
+
overflow-x: auto;
|
|
1133
|
+
scrollbar-width: none; /* Firefox */
|
|
1134
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
.controls-main::-webkit-scrollbar {
|
|
1138
|
+
display: none; /* Safari and Chrome */
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.controls-left,
|
|
1142
|
+
.controls-right {
|
|
1143
|
+
/* Ensure buttons stay in a single line */
|
|
1144
|
+
flex-wrap: nowrap;
|
|
1145
|
+
white-space: nowrap;
|
|
1146
|
+
/* Allow further shrinking */
|
|
1147
|
+
flex-shrink: 1;
|
|
1148
|
+
min-width: fit-content;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/* PLAYLIST CONTROLS */
|
|
1153
|
+
.controls-right .playlist-prev-btn,
|
|
1154
|
+
.controls-right .playlist-next-btn {
|
|
1155
|
+
display: none; /* Hidden by default, shown only when playlist is detected */
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.controls-right .playlist-prev-btn.playlist-active,
|
|
1159
|
+
.controls-right .playlist-next-btn.playlist-active {
|
|
1160
|
+
display: flex;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/* Playlist button styles */
|
|
1164
|
+
.playlist-prev-btn .icon::before {
|
|
1165
|
+
content: '⏮';
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.playlist-next-btn .icon::before {
|
|
1169
|
+
content: '⏭';
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/* Disabled state for playlist buttons */
|
|
1173
|
+
.playlist-prev-btn:disabled,
|
|
1174
|
+
.playlist-next-btn:disabled {
|
|
1175
|
+
opacity: 0.4;
|
|
1176
|
+
cursor: not-allowed;
|
|
1177
|
+
pointer-events: none;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.playlist-prev-btn:disabled .icon,
|
|
1181
|
+
.playlist-next-btn:disabled .icon {
|
|
1182
|
+
opacity: 0.5;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/* Responsive playlist buttons */
|
|
1186
|
+
@media (max-width: 768px) {
|
|
1187
|
+
.playlist-prev-btn .icon::before,
|
|
1188
|
+
.playlist-next-btn .icon::before {
|
|
1189
|
+
font-size: 16px;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
@media (max-width: 480px) {
|
|
1194
|
+
.playlist-prev-btn .icon::before,
|
|
1195
|
+
.playlist-next-btn .icon::before {
|
|
1196
|
+
font-size: 14px;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/* FULLSCREEN */
|
|
1201
|
+
.video-container:fullscreen,
|
|
1202
|
+
.video-container:-webkit-full-screen,
|
|
1203
|
+
.video-container:-moz-full-screen {
|
|
1204
|
+
width: 100vw;
|
|
1205
|
+
height: 100vh;
|
|
1206
|
+
border-radius: 0;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/* ANIMATIONS */
|
|
1210
|
+
@keyframes qualityChange {
|
|
1211
|
+
0% {
|
|
1212
|
+
opacity: 0.7;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
50% {
|
|
1216
|
+
opacity: 0.3;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
100% {
|
|
1220
|
+
opacity: 1;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.quality-changing {
|
|
1225
|
+
animation: qualityChange 0.5s ease-in-out;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/* FOCUS ACCESSIBILITY */
|
|
1229
|
+
.control-btn:focus {
|
|
1230
|
+
outline: 2px solid var(--player-primary-color);
|
|
1231
|
+
outline-offset: 2px;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
.volume-slider:focus {
|
|
1235
|
+
outline: 2px solid var(--player-primary-color);
|
|
1236
|
+
outline-offset: 2px;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/* THEME UTILITIES */
|
|
1240
|
+
.player-large-controls {
|
|
1241
|
+
--player-icon-size: 24px;
|
|
1242
|
+
--player-button-padding: 12px;
|
|
1243
|
+
--player-progress-height: 8px;
|
|
1244
|
+
--player-progress-handle-size: 20px;
|
|
1245
|
+
--player-title-overlay-padding: 18px 24px 30px;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.player-compact-controls {
|
|
1249
|
+
--player-icon-size: 16px;
|
|
1250
|
+
--player-button-padding: 4px;
|
|
1251
|
+
--player-controls-padding: 15px 10px 10px;
|
|
1252
|
+
--player-title-overlay-padding: 12px 16px 20px;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/* FIREFOX-SPECIFIC VOLUME SLIDER FIX */
|
|
1256
|
+
@-moz-document url-prefix() {
|
|
1257
|
+
.volume-slider::-moz-range-thumb {
|
|
1258
|
+
/* Additional Firefox alignment correction */
|
|
1259
|
+
transform: translateY(calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2 - 2px));
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.volume-slider::-moz-range-thumb:hover {
|
|
1263
|
+
transform: translateY(calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2 - 2px)) scale(1.1);
|
|
1264
|
+
}
|
|
1265
|
+
/* Ensure the track alignment is also correct */
|
|
1266
|
+
.volume-slider::-moz-range-track {
|
|
1267
|
+
height: var(--player-volume-height);
|
|
1268
|
+
background: linear-gradient(to right, var(--player-primary-dark) 0%, var(--player-primary-dark) var(--player-volume-fill), var(--player-volume-bg) var(--player-volume-fill), var(--player-volume-bg) 100%);
|
|
1269
|
+
border-radius: calc(var(--player-volume-height) / 2);
|
|
1270
|
+
border: none;
|
|
1271
|
+
transition: background var(--player-transition-fast);
|
|
1272
|
+
margin: 0;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/* Alternative approach - using Firefox-specific selector */
|
|
1277
|
+
@supports (-moz-appearance: none) {
|
|
1278
|
+
.volume-slider {
|
|
1279
|
+
/* Slight vertical adjustment for Firefox only */
|
|
1280
|
+
margin-top: -1px;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.volume-slider::-moz-range-thumb {
|
|
1284
|
+
transform: translateY(calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2 - 1.5px));
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
.volume-slider::-moz-range-thumb:hover {
|
|
1288
|
+
transform: translateY(calc((var(--player-volume-height) - var(--player-volume-handle-size)) / 2 - 1.5px)) scale(1.1);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/* FIREFOX VOLUME CONTAINER POSITION FIX */
|
|
1293
|
+
@-moz-document url-prefix() {
|
|
1294
|
+
.volume-container {
|
|
1295
|
+
position: relative;
|
|
1296
|
+
top: 2px !important;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
.volume-slider::-moz-range-thumb {
|
|
1300
|
+
margin-top: -6px !important;
|
|
1301
|
+
transform: translateY(-2px) !important;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.volume-slider::-moz-range-thumb:hover {
|
|
1305
|
+
transform: translateY(-2px) scale(1.1) !important;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/* RESOLUTION CONTROL SYSTEM - Video resolution modes management */
|
|
1310
|
+
|
|
1311
|
+
/* Base styles for resolution control */
|
|
1312
|
+
.video-player {
|
|
1313
|
+
object-position: center center;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/* Normal (default) - maintain original aspect ratio */
|
|
1317
|
+
.resolution-normal .video-player {
|
|
1318
|
+
object-fit: contain;
|
|
1319
|
+
object-position: center center;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/* 4:3 - Force 4:3 format */
|
|
1323
|
+
.resolution-4-3 .video-player {
|
|
1324
|
+
object-fit: fill;
|
|
1325
|
+
aspect-ratio: 4/3;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.resolution-4-3 .video-wrapper {
|
|
1329
|
+
aspect-ratio: 4/3;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/* 16:9 - Force 16:9 format */
|
|
1333
|
+
.resolution-16-9 .video-player {
|
|
1334
|
+
object-fit: fill;
|
|
1335
|
+
aspect-ratio: 16/9;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.resolution-16-9 .video-wrapper {
|
|
1339
|
+
aspect-ratio: 16/9;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/* Stretched - Stretch video to fill container completely */
|
|
1343
|
+
.resolution-stretched .video-player {
|
|
1344
|
+
object-fit: fill;
|
|
1345
|
+
width: 100%;
|
|
1346
|
+
height: 100%;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.resolution-stretched .video-wrapper {
|
|
1350
|
+
height: auto;
|
|
1351
|
+
min-height: 300px;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
/* Fit to Screen - Adapt to screen without deforming, may crop parts */
|
|
1355
|
+
.resolution-fit-to-screen .video-player {
|
|
1356
|
+
object-fit: cover;
|
|
1357
|
+
object-position: center center;
|
|
1358
|
+
width: 100%;
|
|
1359
|
+
height: 100%;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.resolution-fit-to-screen .video-wrapper {
|
|
1363
|
+
height: 100vh;
|
|
1364
|
+
max-height: 100vh;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
/* Scale to Fit - PERFECT for smartphone videos! Scales to maximum size without distortion or cropping */
|
|
1368
|
+
.resolution-scale-to-fit .video-player {
|
|
1369
|
+
object-fit: contain;
|
|
1370
|
+
object-position: center center;
|
|
1371
|
+
width: 100%;
|
|
1372
|
+
height: 100%;
|
|
1373
|
+
max-width: 100vw;
|
|
1374
|
+
max-height: 100vh;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.resolution-scale-to-fit .video-wrapper {
|
|
1378
|
+
display: flex;
|
|
1379
|
+
align-items: center;
|
|
1380
|
+
justify-content: center;
|
|
1381
|
+
height: 70vh;
|
|
1382
|
+
min-height: 400px;
|
|
1383
|
+
background: var(--player-bg-primary, #000);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/* Enhanced scale-to-fit for different viewport orientations */
|
|
1387
|
+
@media (orientation: portrait) {
|
|
1388
|
+
.resolution-scale-to-fit .video-wrapper {
|
|
1389
|
+
height: 50vh;
|
|
1390
|
+
min-height: 350px;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
@media (orientation: landscape) {
|
|
1395
|
+
.resolution-scale-to-fit .video-wrapper {
|
|
1396
|
+
height: 80vh;
|
|
1397
|
+
min-height: 450px;
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/* Responsive adjustments for resolution modes */
|
|
1402
|
+
@media (max-width: 768px) {
|
|
1403
|
+
/* On mobile, some modes might need adjustments */
|
|
1404
|
+
.resolution-fit-to-screen .video-wrapper {
|
|
1405
|
+
height: 50vh;
|
|
1406
|
+
min-height: 250px;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
.resolution-4-3 .video-wrapper,
|
|
1410
|
+
.resolution-16-9 .video-wrapper {
|
|
1411
|
+
min-height: 200px;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.resolution-scale-to-fit .video-wrapper {
|
|
1415
|
+
height: 45vh;
|
|
1416
|
+
min-height: 300px;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
@media (max-width: 480px) {
|
|
1421
|
+
.resolution-fit-to-screen .video-wrapper {
|
|
1422
|
+
height: 40vh;
|
|
1423
|
+
min-height: 200px;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
.resolution-4-3 .video-wrapper,
|
|
1427
|
+
.resolution-16-9 .video-wrapper {
|
|
1428
|
+
min-height: 180px;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.resolution-scale-to-fit .video-wrapper {
|
|
1432
|
+
height: 40vh;
|
|
1433
|
+
min-height: 250px;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/* Transitions for smooth changes */
|
|
1438
|
+
.video-player {
|
|
1439
|
+
transition: object-fit 0.3s ease, aspect-ratio 0.3s ease;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
.video-wrapper {
|
|
1443
|
+
transition: aspect-ratio 0.3s ease, height 0.3s ease;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/* Fallback for browsers that don't support aspect-ratio */
|
|
1447
|
+
@supports not (aspect-ratio: 1) {
|
|
1448
|
+
.resolution-4-3 .video-wrapper {
|
|
1449
|
+
padding-bottom: 75%; /* 4:3 ratio fallback */
|
|
1450
|
+
height: 0;
|
|
1451
|
+
position: relative;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
.resolution-4-3 .video-player {
|
|
1455
|
+
position: absolute;
|
|
1456
|
+
top: 0;
|
|
1457
|
+
left: 0;
|
|
1458
|
+
width: 100%;
|
|
1459
|
+
height: 100%;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.resolution-16-9 .video-wrapper {
|
|
1463
|
+
padding-bottom: 56.25%; /* 16:9 ratio fallback */
|
|
1464
|
+
height: 0;
|
|
1465
|
+
position: relative;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
.resolution-16-9 .video-player {
|
|
1469
|
+
position: absolute;
|
|
1470
|
+
top: 0;
|
|
1471
|
+
left: 0;
|
|
1472
|
+
width: 100%;
|
|
1473
|
+
height: 100%;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
/* Quality changing state - show loading during quality change */
|
|
1478
|
+
.quality-changing .video-player {
|
|
1479
|
+
filter: brightness(0.7);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/* Utility classes for debugging */
|
|
1483
|
+
.resolution-debug .video-wrapper::before {
|
|
1484
|
+
content: 'Resolution: ' attr(data-resolution);
|
|
1485
|
+
position: absolute;
|
|
1486
|
+
top: 10px;
|
|
1487
|
+
left: 10px;
|
|
1488
|
+
background: rgba(0, 0, 0, 0.7);
|
|
1489
|
+
color: white;
|
|
1490
|
+
padding: 5px 10px;
|
|
1491
|
+
border-radius: 4px;
|
|
1492
|
+
font-size: 12px;
|
|
1493
|
+
z-index: 1000;
|
|
1494
|
+
pointer-events: none;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/* CRITICAL: Ensure all control containers can handle overflow gracefully */
|
|
1498
|
+
.controls,
|
|
1499
|
+
.controls-main,
|
|
1500
|
+
.controls-left,
|
|
1501
|
+
.controls-right {
|
|
1502
|
+
overflow: visible !important;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
/* Force buttons to stay in one line and allow flexible sizing */
|
|
1506
|
+
.controls-left,
|
|
1507
|
+
.controls-right {
|
|
1508
|
+
flex-wrap: nowrap !important;
|
|
1509
|
+
white-space: nowrap !important;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/* Allow buttons to shrink below their natural content size when absolutely necessary */
|
|
1513
|
+
.control-btn {
|
|
1514
|
+
min-width: 0 !important;
|
|
1515
|
+
white-space: nowrap !important;
|
|
1516
|
+
}
|
|
1517
|
+
/* CSS for subtitles SRT */
|
|
1518
|
+
video::cue {
|
|
1519
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
1520
|
+
color: white;
|
|
1521
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
1522
|
+
font-size: 18px;
|
|
1523
|
+
font-weight: normal;
|
|
1524
|
+
line-height: 1.2;
|
|
1525
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
|
|
1526
|
+
padding: 4px 8px;
|
|
1527
|
+
border-radius: 4px;
|
|
1528
|
+
white-space: pre-line;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
/* Fix for browser WebKit (Chrome, Safari, Edge) */
|
|
1532
|
+
video::-webkit-media-text-track-display {
|
|
1533
|
+
color: white;
|
|
1534
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
1535
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
1536
|
+
border-radius: 4px;
|
|
1537
|
+
padding: 4px 8px;
|
|
1538
|
+
font-size: 18px;
|
|
1539
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
|
|
1540
|
+
}
|
|
1541
|
+
/* Custom subtitle overlay responsive styles */
|
|
1542
|
+
.custom-subtitle-overlay {
|
|
1543
|
+
font-size: clamp(12px, 4vw, 18px);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
/* Tablet responsiveness */
|
|
1547
|
+
@media (max-width: 768px) {
|
|
1548
|
+
.custom-subtitle-overlay {
|
|
1549
|
+
font-size: 16px !important;
|
|
1550
|
+
bottom: 70px !important;
|
|
1551
|
+
max-width: 85% !important;
|
|
1552
|
+
padding: 6px 12px !important;
|
|
1553
|
+
line-height: 1.2 !important;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
/* Mobile phone responsiveness */
|
|
1558
|
+
@media (max-width: 480px) {
|
|
1559
|
+
.custom-subtitle-overlay {
|
|
1560
|
+
font-size: 14px !important;
|
|
1561
|
+
bottom: 60px !important;
|
|
1562
|
+
max-width: 90% !important;
|
|
1563
|
+
padding: 5px 10px !important;
|
|
1564
|
+
line-height: 1.15 !important;
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/* Very small screens */
|
|
1569
|
+
@media (max-width: 360px) {
|
|
1570
|
+
.custom-subtitle-overlay {
|
|
1571
|
+
font-size: 12px !important;
|
|
1572
|
+
bottom: 50px !important;
|
|
1573
|
+
max-width: 95% !important;
|
|
1574
|
+
padding: 4px 8px !important;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
/* Landscape mobile optimization */
|
|
1579
|
+
@media (max-height: 500px) and (orientation: landscape) {
|
|
1580
|
+
.custom-subtitle-overlay {
|
|
1581
|
+
font-size: 13px !important;
|
|
1582
|
+
bottom: 45px !important;
|
|
1583
|
+
max-width: 85% !important;
|
|
1584
|
+
padding: 4px 10px !important;
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
/* Scrollable dropdown menus for small player heights */
|
|
1589
|
+
.speed-menu,
|
|
1590
|
+
.quality-menu,
|
|
1591
|
+
.subtitles-menu {
|
|
1592
|
+
max-height: 200px;
|
|
1593
|
+
overflow-y: auto;
|
|
1594
|
+
scrollbar-width: thin;
|
|
1595
|
+
scrollbar-color: var(--player-primary-color) rgba(255, 255, 255, 0.1);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
/* Custom scrollbar for WebKit browsers */
|
|
1599
|
+
.speed-menu::-webkit-scrollbar,
|
|
1600
|
+
.quality-menu::-webkit-scrollbar,
|
|
1601
|
+
.subtitles-menu::-webkit-scrollbar {
|
|
1602
|
+
width: 6px;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.speed-menu::-webkit-scrollbar-track,
|
|
1606
|
+
.quality-menu::-webkit-scrollbar-track,
|
|
1607
|
+
.subtitles-menu::-webkit-scrollbar-track {
|
|
1608
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1609
|
+
border-radius: 3px;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
.speed-menu::-webkit-scrollbar-thumb,
|
|
1613
|
+
.quality-menu::-webkit-scrollbar-thumb,
|
|
1614
|
+
.subtitles-menu::-webkit-scrollbar-thumb {
|
|
1615
|
+
background: var(--player-primary-color);
|
|
1616
|
+
border-radius: 3px;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
.speed-menu::-webkit-scrollbar-thumb:hover,
|
|
1620
|
+
.quality-menu::-webkit-scrollbar-thumb:hover,
|
|
1621
|
+
.subtitles-menu::-webkit-scrollbar-thumb:hover {
|
|
1622
|
+
background: var(--player-primary-hover);
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/* Responsive max-height for very small players */
|
|
1626
|
+
@media (max-height: 400px) {
|
|
1627
|
+
.speed-menu,
|
|
1628
|
+
.quality-menu,
|
|
1629
|
+
.subtitles-menu {
|
|
1630
|
+
max-height: 150px;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
@media (max-height: 300px) {
|
|
1635
|
+
.speed-menu,
|
|
1636
|
+
.quality-menu,
|
|
1637
|
+
.subtitles-menu {
|
|
1638
|
+
max-height: 120px;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/* Scrollbar for settings submenus on small screens */
|
|
1643
|
+
.settings-submenu {
|
|
1644
|
+
max-height: 180px;
|
|
1645
|
+
overflow-y: auto;
|
|
1646
|
+
scrollbar-width: thin;
|
|
1647
|
+
scrollbar-color: var(--player-primary-color) rgba(255, 255, 255, 0.1);
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
/* Custom scrollbar for settings submenu in WebKit browsers */
|
|
1651
|
+
.settings-submenu::-webkit-scrollbar {
|
|
1652
|
+
width: 6px;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
.settings-submenu::-webkit-scrollbar-track {
|
|
1656
|
+
background: rgba(255, 255, 255, 0.1);
|
|
1657
|
+
border-radius: 3px;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
.settings-submenu::-webkit-scrollbar-thumb {
|
|
1661
|
+
background: var(--player-primary-color);
|
|
1662
|
+
border-radius: 3px;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.settings-submenu::-webkit-scrollbar-thumb:hover {
|
|
1666
|
+
background: var(--player-primary-hover);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
/* Responsive adjustments for settings submenu on very small screens */
|
|
1670
|
+
@media (max-width: 350px) {
|
|
1671
|
+
.settings-submenu {
|
|
1672
|
+
max-height: 140px;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
@media (max-height: 400px) {
|
|
1677
|
+
.settings-submenu {
|
|
1678
|
+
max-height: 120px;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
/* Volume Slider Configuration - Base styles */
|
|
1683
|
+
.volume-container {
|
|
1684
|
+
position: relative;
|
|
1685
|
+
display: flex;
|
|
1686
|
+
align-items: center;
|
|
1687
|
+
gap: var(--player-controls-gap);
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/* Horizontal Volume Slider (default) - Base width reduced */
|
|
1691
|
+
.volume-container[data-orientation="horizontal"] .volume-slider {
|
|
1692
|
+
width: 80px; /* Ridotto da var(--player-volume-width) a 80px fissi */
|
|
1693
|
+
height: var(--player-volume-height);
|
|
1694
|
+
background: var(--player-volume-bg);
|
|
1695
|
+
border-radius: calc(var(--player-volume-height) / 2);
|
|
1696
|
+
transition: all 0.3s ease;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
/* Responsive width reduction for horizontal slider */
|
|
1700
|
+
@media (max-width: 1200px) {
|
|
1701
|
+
.volume-container[data-orientation="horizontal"] .volume-slider {
|
|
1702
|
+
width: 70px;
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
@media (max-width: 900px) {
|
|
1707
|
+
.volume-container[data-orientation="horizontal"] .volume-slider {
|
|
1708
|
+
width: 60px;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
@media (max-width: 768px) {
|
|
1713
|
+
.volume-container[data-orientation="horizontal"] .volume-slider {
|
|
1714
|
+
width: 50px;
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
@media (max-width: 600px) {
|
|
1719
|
+
.volume-container[data-orientation="horizontal"] .volume-slider {
|
|
1720
|
+
width: 40px;
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
/* Vertical Volume Slider (always visible) */
|
|
1725
|
+
.volume-container[data-orientation="vertical"] {
|
|
1726
|
+
flex-direction: column;
|
|
1727
|
+
height: 80px;
|
|
1728
|
+
justify-content: center;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.volume-container[data-orientation="vertical"] .volume-slider {
|
|
1732
|
+
width: 4px;
|
|
1733
|
+
height: 60px;
|
|
1734
|
+
writing-mode: bt-lr; /* IE */
|
|
1735
|
+
-webkit-appearance: slider-vertical; /* WebKit */
|
|
1736
|
+
background: var(--player-volume-bg);
|
|
1737
|
+
border-radius: 2px;
|
|
1738
|
+
transform: rotate(0deg);
|
|
1739
|
+
transition: all 0.3s ease;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/* Responsive: Force vertical behavior for horizontal sliders under 550px */
|
|
1743
|
+
@media (max-width: 550px) {
|
|
1744
|
+
/* Hide horizontal slider by default on mobile */
|
|
1745
|
+
.volume-container[data-orientation="horizontal"] .volume-slider {
|
|
1746
|
+
position: absolute;
|
|
1747
|
+
opacity: 0;
|
|
1748
|
+
visibility: hidden;
|
|
1749
|
+
pointer-events: none;
|
|
1750
|
+
width: 0;
|
|
1751
|
+
height: 0;
|
|
1752
|
+
transform: translateX(-50%) rotate(-90deg);
|
|
1753
|
+
transform-origin: center center;
|
|
1754
|
+
transition: opacity 0.1s ease, visibility 0.1s ease;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/* Show vertical slider on hover for horizontal mode */
|
|
1758
|
+
.mute-btn:hover + .volume-container[data-orientation="horizontal"] .volume-slider,
|
|
1759
|
+
.volume-container[data-orientation="horizontal"]:hover .volume-slider {
|
|
1760
|
+
position: absolute;
|
|
1761
|
+
opacity: 1;
|
|
1762
|
+
visibility: visible;
|
|
1763
|
+
pointer-events: auto;
|
|
1764
|
+
width: 60px;
|
|
1765
|
+
height: 4px;
|
|
1766
|
+
bottom: 45px;
|
|
1767
|
+
left: -20px;
|
|
1768
|
+
transform: translateX(-50%) translateY(0%) rotate(-90deg);
|
|
1769
|
+
transform-origin: center center;
|
|
1770
|
+
z-index: 1000;
|
|
1771
|
+
background: rgba(0, 0, 0, 0.9);
|
|
1772
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
1773
|
+
border-radius: 6px;
|
|
1774
|
+
padding: 4px;
|
|
1775
|
+
backdrop-filter: blur(10px);
|
|
1776
|
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
|
|
1777
|
+
transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
/* Extend hover area of mute button for horizontal mode */
|
|
1781
|
+
.volume-container[data-orientation="horizontal"] + .mute-btn,
|
|
1782
|
+
.mute-btn + .volume-container[data-orientation="horizontal"] .mute-btn {
|
|
1783
|
+
padding: 15px;
|
|
1784
|
+
margin: -7px;
|
|
1785
|
+
position: relative;
|
|
1786
|
+
z-index: 1001;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/* Keep hover active when moving from button to slider */
|
|
1790
|
+
.mute-btn:hover + .volume-container[data-orientation="horizontal"]::before,
|
|
1791
|
+
.volume-container[data-orientation="horizontal"]::before {
|
|
1792
|
+
content: '';
|
|
1793
|
+
position: absolute;
|
|
1794
|
+
top: -50px;
|
|
1795
|
+
left: -40px;
|
|
1796
|
+
right: -20px;
|
|
1797
|
+
bottom: -10px;
|
|
1798
|
+
background: transparent;
|
|
1799
|
+
z-index: 999;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/* Hide thumb by default for horizontal mode on mobile */
|
|
1803
|
+
.volume-container[data-orientation="horizontal"] .volume-slider::-webkit-slider-thumb {
|
|
1804
|
+
opacity: 0;
|
|
1805
|
+
visibility: hidden;
|
|
1806
|
+
transition: none !important;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
.volume-container[data-orientation="horizontal"] .volume-slider::-moz-range-thumb {
|
|
1810
|
+
opacity: 0;
|
|
1811
|
+
visibility: hidden;
|
|
1812
|
+
transition: none !important;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/* Show thumb only when in hover for horizontal mode */
|
|
1816
|
+
.volume-container[data-orientation="horizontal"]:hover .volume-slider::-webkit-slider-thumb,
|
|
1817
|
+
.mute-btn:hover + .volume-container[data-orientation="horizontal"] .volume-slider::-webkit-slider-thumb {
|
|
1818
|
+
opacity: 1;
|
|
1819
|
+
visibility: visible;
|
|
1820
|
+
-webkit-appearance: none;
|
|
1821
|
+
width: var(--player-volume-handle-size);
|
|
1822
|
+
height: var(--player-volume-handle-size);
|
|
1823
|
+
border-radius: 50%;
|
|
1824
|
+
background: var(--player-primary-color);
|
|
1825
|
+
cursor: pointer;
|
|
1826
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
1827
|
+
transition: none !important;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
.volume-container[data-orientation="horizontal"]:hover .volume-slider::-moz-range-thumb,
|
|
1831
|
+
.mute-btn:hover + .volume-container[data-orientation="horizontal"] .volume-slider::-moz-range-thumb {
|
|
1832
|
+
opacity: 1;
|
|
1833
|
+
visibility: visible;
|
|
1834
|
+
width: var(--player-volume-handle-size);
|
|
1835
|
+
height: var(--player-volume-handle-size);
|
|
1836
|
+
border-radius: 50%;
|
|
1837
|
+
background: var(--player-primary-color);
|
|
1838
|
+
cursor: pointer;
|
|
1839
|
+
border: none;
|
|
1840
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
1841
|
+
transition: none !important;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/* Vertical sliders remain unchanged on mobile */
|
|
1845
|
+
.volume-container[data-orientation="vertical"] {
|
|
1846
|
+
/* Keep original vertical styling */
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
/* CHAPTER MARKERS SYSTEM */
|
|
1851
|
+
|
|
1852
|
+
/* Container for all chapter markers */
|
|
1853
|
+
.chapter-markers-container {
|
|
1854
|
+
position: absolute;
|
|
1855
|
+
top: 0;
|
|
1856
|
+
left: 0;
|
|
1857
|
+
width: 100%;
|
|
1858
|
+
height: 100%;
|
|
1859
|
+
pointer-events: none;
|
|
1860
|
+
z-index: 3;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/* Individual chapter marker */
|
|
1864
|
+
.chapter-marker {
|
|
1865
|
+
position: absolute;
|
|
1866
|
+
top: 0;
|
|
1867
|
+
height: 100%;
|
|
1868
|
+
width: 3px;
|
|
1869
|
+
background: var(--player-primary-color);
|
|
1870
|
+
opacity: 0.7;
|
|
1871
|
+
cursor: pointer;
|
|
1872
|
+
pointer-events: auto;
|
|
1873
|
+
transition: all var(--player-transition-fast);
|
|
1874
|
+
border-radius: 2px;
|
|
1875
|
+
transform: translateX(-50%);
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
/* Hover state for chapter marker */
|
|
1879
|
+
.chapter-marker:hover {
|
|
1880
|
+
opacity: 1;
|
|
1881
|
+
width: 4px;
|
|
1882
|
+
height: 120%;
|
|
1883
|
+
top: -10%;
|
|
1884
|
+
box-shadow: 0 0 8px var(--player-primary-color);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
/* Active chapter marker (currently playing) */
|
|
1888
|
+
.chapter-marker.active {
|
|
1889
|
+
background: var(--player-primary-hover);
|
|
1890
|
+
opacity: 1;
|
|
1891
|
+
width: 4px;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/* Chapter tooltip */
|
|
1895
|
+
.chapter-tooltip {
|
|
1896
|
+
position: absolute;
|
|
1897
|
+
bottom: 100%;
|
|
1898
|
+
left: 0;
|
|
1899
|
+
background: rgba(0, 0, 0, 0.95);
|
|
1900
|
+
backdrop-filter: blur(10px);
|
|
1901
|
+
border-radius: 8px;
|
|
1902
|
+
padding: 0;
|
|
1903
|
+
margin-bottom: 12px;
|
|
1904
|
+
opacity: 0;
|
|
1905
|
+
visibility: hidden;
|
|
1906
|
+
transition: all 0.2s ease;
|
|
1907
|
+
transform: translateX(-50%) translateY(-8px);
|
|
1908
|
+
z-index: 1000;
|
|
1909
|
+
box-shadow: var(--player-shadow-tooltip);
|
|
1910
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
1911
|
+
min-width: 200px;
|
|
1912
|
+
max-width: 300px;
|
|
1913
|
+
overflow: hidden;
|
|
1914
|
+
pointer-events: none;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
/* Tooltip arrow */
|
|
1918
|
+
.chapter-tooltip::after {
|
|
1919
|
+
content: '';
|
|
1920
|
+
position: absolute;
|
|
1921
|
+
top: 100%;
|
|
1922
|
+
left: 50%;
|
|
1923
|
+
transform: translateX(-50%);
|
|
1924
|
+
width: 0;
|
|
1925
|
+
height: 0;
|
|
1926
|
+
border-left: 6px solid transparent;
|
|
1927
|
+
border-right: 6px solid transparent;
|
|
1928
|
+
border-top: 6px solid rgba(0, 0, 0, 0.95);
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/* Chapter tooltip image */
|
|
1932
|
+
.chapter-tooltip-image {
|
|
1933
|
+
width: 100%;
|
|
1934
|
+
height: 150px;
|
|
1935
|
+
background-size: cover;
|
|
1936
|
+
background-position: center;
|
|
1937
|
+
background-repeat: no-repeat;
|
|
1938
|
+
display: none;
|
|
1939
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
/* Chapter tooltip title */
|
|
1943
|
+
.chapter-tooltip-title {
|
|
1944
|
+
padding: 10px 12px 6px;
|
|
1945
|
+
color: var(--player-text-color);
|
|
1946
|
+
font-size: 14px;
|
|
1947
|
+
font-weight: 600;
|
|
1948
|
+
line-height: 1.3;
|
|
1949
|
+
word-wrap: break-word;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/* Chapter tooltip time */
|
|
1953
|
+
.chapter-tooltip-time {
|
|
1954
|
+
padding: 0 12px 10px;
|
|
1955
|
+
color: var(--player-text-secondary);
|
|
1956
|
+
font-size: 12px;
|
|
1957
|
+
font-weight: 400;
|
|
1958
|
+
font-variant-numeric: tabular-nums;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
/* RESPONSIVE ADJUSTMENTS FOR CHAPTERS */
|
|
1962
|
+
@media (max-width: 480px) {
|
|
1963
|
+
.chapter-marker {
|
|
1964
|
+
width: 2px;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
.chapter-marker:hover {
|
|
1968
|
+
width: 3px;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.chapter-tooltip {
|
|
1972
|
+
min-width: 160px;
|
|
1973
|
+
max-width: 250px;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
.chapter-tooltip-image {
|
|
1977
|
+
height: 100px;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
/* VIDEO POSTER OVERLAY - THEMED VERSION */
|
|
1981
|
+
|
|
1982
|
+
/* Custom poster overlay to prevent disappearing */
|
|
1983
|
+
.video-poster-overlay {
|
|
1984
|
+
position: absolute;
|
|
1985
|
+
top: 0;
|
|
1986
|
+
left: 0;
|
|
1987
|
+
width: 100%;
|
|
1988
|
+
height: 100%;
|
|
1989
|
+
background-size: cover;
|
|
1990
|
+
background-position: center;
|
|
1991
|
+
background-repeat: no-repeat;
|
|
1992
|
+
z-index: 1;
|
|
1993
|
+
cursor: pointer;
|
|
1994
|
+
opacity: 0;
|
|
1995
|
+
visibility: hidden;
|
|
1996
|
+
transition: opacity 0.3s ease, visibility 0.3s ease;
|
|
1997
|
+
pointer-events: none;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
/* Visible state */
|
|
2001
|
+
.video-poster-overlay.visible {
|
|
2002
|
+
opacity: 1;
|
|
2003
|
+
visibility: visible;
|
|
2004
|
+
pointer-events: auto;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
/* Hidden state */
|
|
2008
|
+
.video-poster-overlay.hidden {
|
|
2009
|
+
opacity: 0;
|
|
2010
|
+
visibility: hidden;
|
|
2011
|
+
pointer-events: none;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/* Hover effect on poster */
|
|
2015
|
+
.video-poster-overlay.visible:hover {
|
|
2016
|
+
opacity: 0.95;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/* Play button overlay on poster - THEMED COLORS 🎨 */
|
|
2020
|
+
.video-poster-overlay::after {
|
|
2021
|
+
content: '';
|
|
2022
|
+
position: absolute;
|
|
2023
|
+
top: 50%;
|
|
2024
|
+
left: 50%;
|
|
2025
|
+
transform: translate(-50%, -50%);
|
|
2026
|
+
width: 80px;
|
|
2027
|
+
height: 80px;
|
|
2028
|
+
background: rgba(0, 0, 0, 0.7);
|
|
2029
|
+
border-radius: 50%;
|
|
2030
|
+
border: 3px solid var(--player-primary-color); /* THEMED BORDER ✨ */
|
|
2031
|
+
opacity: 0;
|
|
2032
|
+
transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
|
|
2033
|
+
pointer-events: none;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/* Show play button on hover with animation and themed glow */
|
|
2037
|
+
.video-poster-overlay.visible:hover::after {
|
|
2038
|
+
opacity: 1;
|
|
2039
|
+
transform: translate(-50%, -50%) scale(1.1);
|
|
2040
|
+
border-color: var(--player-primary-hover); /* THEMED HOVER COLOR 🌟 */
|
|
2041
|
+
box-shadow: 0 0 20px var(--player-primary-color); /* THEMED GLOW 💫 */
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
/* Play icon triangle - THEMED COLOR 🎨 */
|
|
2045
|
+
.video-poster-overlay::before {
|
|
2046
|
+
content: '';
|
|
2047
|
+
position: absolute;
|
|
2048
|
+
top: 50%;
|
|
2049
|
+
left: 50%;
|
|
2050
|
+
transform: translate(-40%, -50%);
|
|
2051
|
+
width: 0;
|
|
2052
|
+
height: 0;
|
|
2053
|
+
border-style: solid;
|
|
2054
|
+
border-width: 15px 0 15px 25px;
|
|
2055
|
+
border-color: transparent transparent transparent var(--player-primary-color); /* THEMED TRIANGLE ✨ */
|
|
2056
|
+
z-index: 2;
|
|
2057
|
+
opacity: 0;
|
|
2058
|
+
transition: opacity 0.3s ease, border-color 0.3s ease;
|
|
2059
|
+
pointer-events: none;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
/* Show play icon on hover with themed color */
|
|
2063
|
+
.video-poster-overlay.visible:hover::before {
|
|
2064
|
+
opacity: 1;
|
|
2065
|
+
border-color: transparent transparent transparent var(--player-primary-hover); /* THEMED HOVER 🌟 */
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
/* Responsive adjustments */
|
|
2069
|
+
@media (max-width: 768px) {
|
|
2070
|
+
.video-poster-overlay::after {
|
|
2071
|
+
width: 60px;
|
|
2072
|
+
height: 60px;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
.video-poster-overlay::before {
|
|
2076
|
+
border-width: 12px 0 12px 20px;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
@media (max-width: 480px) {
|
|
2081
|
+
.video-poster-overlay::after {
|
|
2082
|
+
width: 50px;
|
|
2083
|
+
height: 50px;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
.video-poster-overlay::before {
|
|
2087
|
+
border-width: 10px 0 10px 16px;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
/* Ensure smooth transition when poster hides */
|
|
2092
|
+
.video-poster-overlay.hidden {
|
|
2093
|
+
transition: opacity 0.5s ease, visibility 0s ease 0.5s;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
/* THEME-SPECIFIC OVERRIDES (optional fine-tuning) */
|
|
2097
|
+
|
|
2098
|
+
/* Blue theme 💙 */
|
|
2099
|
+
.player-theme-blue .video-poster-overlay::after {
|
|
2100
|
+
border-color: #2196F3;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
.player-theme-blue .video-poster-overlay.visible:hover::after {
|
|
2104
|
+
border-color: #1976D2;
|
|
2105
|
+
box-shadow: 0 0 20px #2196F3;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
.player-theme-blue .video-poster-overlay::before {
|
|
2109
|
+
border-color: transparent transparent transparent #2196F3;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.player-theme-blue .video-poster-overlay.visible:hover::before {
|
|
2113
|
+
border-color: transparent transparent transparent #1976D2;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
/* Green theme 💚 */
|
|
2117
|
+
.player-theme-green .video-poster-overlay::after {
|
|
2118
|
+
border-color: #4CAF50;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
.player-theme-green .video-poster-overlay.visible:hover::after {
|
|
2122
|
+
border-color: #45a049;
|
|
2123
|
+
box-shadow: 0 0 20px #4CAF50;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
.player-theme-green .video-poster-overlay::before {
|
|
2127
|
+
border-color: transparent transparent transparent #4CAF50;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
.player-theme-green .video-poster-overlay.visible:hover::before {
|
|
2131
|
+
border-color: transparent transparent transparent #45a049;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
/* Red theme ❤️ */
|
|
2135
|
+
.player-theme-red .video-poster-overlay::after {
|
|
2136
|
+
border-color: #f44336;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
.player-theme-red .video-poster-overlay.visible:hover::after {
|
|
2140
|
+
border-color: #d32f2f;
|
|
2141
|
+
box-shadow: 0 0 20px #f44336;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
.player-theme-red .video-poster-overlay::before {
|
|
2145
|
+
border-color: transparent transparent transparent #f44336;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
.player-theme-red .video-poster-overlay.visible:hover::before {
|
|
2149
|
+
border-color: transparent transparent transparent #d32f2f;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
/* Dark theme 🖤 (uses default goldenrod) */
|
|
2153
|
+
.player-theme-dark .video-poster-overlay::after {
|
|
2154
|
+
background: rgba(0, 0, 0, 0.85); /* Slightly darker background for dark theme */
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/* screen height adjust */
|
|
2158
|
+
@media (max-height: 400px) {
|
|
2159
|
+
.video-player {
|
|
2160
|
+
min-height: 200px;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
.controls {
|
|
2164
|
+
min-height: 50px !important;
|
|
2165
|
+
padding: 10px 10px 8px !important;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
.progress-container {
|
|
2169
|
+
margin-bottom: 8px;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
.controls-main {
|
|
2173
|
+
min-height: 32px !important;
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
@media (max-height: 330px) {
|
|
2178
|
+
.video-player {
|
|
2179
|
+
min-height: 150px;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
.controls {
|
|
2183
|
+
min-height: 45px !important;
|
|
2184
|
+
padding: 8px 8px 6px !important;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
.progress-container {
|
|
2188
|
+
margin-bottom: 6px;
|
|
2189
|
+
height: 4px;
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
.controls-main {
|
|
2193
|
+
min-height: 28px !important;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
.control-btn {
|
|
2197
|
+
padding: 4px !important;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
.icon {
|
|
2201
|
+
font-size: 14px !important;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
.time-display {
|
|
2205
|
+
font-size: 11px !important;
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
@media (max-height: 250px) {
|
|
2210
|
+
.video-player {
|
|
2211
|
+
min-height: 120px;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.controls {
|
|
2215
|
+
min-height: 40px !important;
|
|
2216
|
+
padding: 6px 8px 5px !important;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
.progress-container {
|
|
2220
|
+
margin-bottom: 4px;
|
|
2221
|
+
height: 3px;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
.controls-main {
|
|
2225
|
+
min-height: 24px !important;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
.control-btn {
|
|
2229
|
+
padding: 2px !important;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
.icon {
|
|
2233
|
+
font-size: 12px !important;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
.time-display {
|
|
2237
|
+
font-size: 10px !important;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.quality-btn {
|
|
2241
|
+
min-height: 20px !important;
|
|
2242
|
+
padding: 2px 4px !important;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
.selected-quality {
|
|
2246
|
+
font-size: 9px !important;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.current-quality {
|
|
2250
|
+
display: none;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
.volume-slider {
|
|
2254
|
+
width: 40px !important;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
.video-container,
|
|
2259
|
+
.video-wrapper {
|
|
2260
|
+
overflow: visible !important;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
.controls.show {
|
|
2264
|
+
position: absolute !important;
|
|
2265
|
+
bottom: 0 !important;
|
|
2266
|
+
overflow: visible !important;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
/* ===================================
|
|
2270
|
+
WATERMARK OVERLAY
|
|
2271
|
+
=================================== */
|
|
2272
|
+
|
|
2273
|
+
.video-watermark {
|
|
2274
|
+
position: absolute;
|
|
2275
|
+
z-index: 15; /* Above video (10), below controls (100) */
|
|
2276
|
+
pointer-events: auto;
|
|
2277
|
+
opacity: 0.7;
|
|
2278
|
+
transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
/* Watermark visible by default */
|
|
2282
|
+
.video-watermark {
|
|
2283
|
+
visibility: visible;
|
|
2284
|
+
opacity: 0.7;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
/* Hide watermark when it has hide-on-autohide class AND controls are hidden */
|
|
2288
|
+
.video-wrapper:not(.has-controls) .video-watermark.hide-on-autohide {
|
|
2289
|
+
visibility: hidden;
|
|
2290
|
+
opacity: 0;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
/* Show watermark when controls are shown */
|
|
2294
|
+
.video-wrapper.has-controls .video-watermark {
|
|
2295
|
+
visibility: visible;
|
|
2296
|
+
opacity: 0.7;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
.video-watermark:hover {
|
|
2300
|
+
opacity: 1;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
.video-watermark img {
|
|
2304
|
+
display: block;
|
|
2305
|
+
max-width: 150px;
|
|
2306
|
+
max-height: 80px;
|
|
2307
|
+
width: auto;
|
|
2308
|
+
height: auto;
|
|
2309
|
+
object-fit: contain;
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
/* Watermark positions - Top positions unchanged */
|
|
2313
|
+
.video-watermark.watermark-topleft {
|
|
2314
|
+
top: 15px;
|
|
2315
|
+
left: 15px;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
.video-watermark.watermark-topright {
|
|
2319
|
+
top: 15px;
|
|
2320
|
+
right: 15px;
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
/* Bottom positions - Increased spacing from controlbar (was 70px, now 90px) */
|
|
2324
|
+
.video-watermark.watermark-bottomleft {
|
|
2325
|
+
bottom: 90px; /* Increased spacing */
|
|
2326
|
+
left: 15px;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
.video-watermark.watermark-bottomright {
|
|
2330
|
+
bottom: 90px; /* Increased spacing */
|
|
2331
|
+
right: 15px;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
/* DYNAMIC POSITIONING: Always visible watermark moves down when controls are hidden */
|
|
2335
|
+
/* This applies ONLY to watermarks without hide-on-autohide class (always visible) */
|
|
2336
|
+
.video-wrapper:not(.has-controls) .video-watermark.watermark-bottomleft:not(.hide-on-autohide) {
|
|
2337
|
+
bottom: 15px; /* Move to bottom corner when controls hidden */
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
.video-wrapper:not(.has-controls) .video-watermark.watermark-bottomright:not(.hide-on-autohide) {
|
|
2341
|
+
bottom: 15px; /* Move to bottom corner when controls hidden */
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/* When controls are shown, bottom watermark stays above controlbar */
|
|
2345
|
+
.video-wrapper.has-controls .video-watermark.watermark-bottomleft,
|
|
2346
|
+
.video-wrapper.has-controls .video-watermark.watermark-bottomright {
|
|
2347
|
+
bottom: 90px; /* Stay above controlbar */
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
/* Responsive adjustments for mobile */
|
|
2351
|
+
@media (max-width: 768px) {
|
|
2352
|
+
.video-watermark img {
|
|
2353
|
+
max-width: 100px;
|
|
2354
|
+
max-height: 50px;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
.video-watermark.watermark-topleft,
|
|
2358
|
+
.video-watermark.watermark-topright {
|
|
2359
|
+
top: 10px;
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
.video-watermark.watermark-topleft,
|
|
2363
|
+
.video-watermark.watermark-bottomleft {
|
|
2364
|
+
left: 10px;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
.video-watermark.watermark-topright,
|
|
2368
|
+
.video-watermark.watermark-bottomright {
|
|
2369
|
+
right: 10px;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
/* Bottom spacing adjusted for mobile */
|
|
2373
|
+
.video-watermark.watermark-bottomleft,
|
|
2374
|
+
.video-watermark.watermark-bottomright {
|
|
2375
|
+
bottom: 75px; /* Above controlbar on mobile */
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/* Always visible watermark on mobile - moves down when controls hidden */
|
|
2379
|
+
.video-wrapper:not(.has-controls) .video-watermark.watermark-bottomleft:not(.hide-on-autohide),
|
|
2380
|
+
.video-wrapper:not(.has-controls) .video-watermark.watermark-bottomright:not(.hide-on-autohide) {
|
|
2381
|
+
bottom: 10px; /* Move to corner on mobile */
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
/* Extra small screens */
|
|
2386
|
+
@media (max-width: 480px) {
|
|
2387
|
+
.video-watermark.watermark-bottomleft,
|
|
2388
|
+
.video-watermark.watermark-bottomright {
|
|
2389
|
+
bottom: 65px;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
.video-wrapper:not(.has-controls) .video-watermark.watermark-bottomleft:not(.hide-on-autohide),
|
|
2393
|
+
.video-wrapper:not(.has-controls) .video-watermark.watermark-bottomright:not(.hide-on-autohide) {
|
|
2394
|
+
bottom: 8px;
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
/* Clickable watermark cursor */
|
|
2399
|
+
.video-watermark[style*="cursor: pointer"] {
|
|
2400
|
+
cursor: pointer !important;
|
|
2401
|
+
}
|