File size: 3,977 Bytes
d0c3311
25dca33
 
2a108da
 
 
25dca33
 
 
 
 
 
 
 
2a108da
 
 
25dca33
 
2a108da
25dca33
 
2a108da
25dca33
 
 
 
 
 
 
 
 
 
 
 
 
2a108da
25dca33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ded211a
25dca33
 
ded211a
25dca33
 
 
 
ded211a
25dca33
ded211a
 
2a108da
25dca33
 
 
ded211a
 
 
 
 
 
 
 
 
 
 
 
25dca33
 
 
 
 
2a108da
 
25dca33
 
 
 
 
2a108da
 
ded211a
 
 
25dca33
 
2a108da
25dca33
2a108da
25dca33
 
 
 
 
 
 
ded211a
25dca33
 
 
ded211a
25dca33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ded211a
2a108da
831e55c
 
 
2a108da
ded211a
831e55c
ded211a
831e55c
 
 
 
 
 
 
 
2a108da
831e55c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a108da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
.video-player-container {
  position: relative;
  max-width: 100dvw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
}

.video-title {
  color: #d5d6d7;
  display: flex;
  align-items: center;
  text-align: left;
  padding-bottom: 50px;
  padding: 20px;
  font-size: 1.5em;
  font-weight: bold;
  background-image: linear-gradient(#0e0f19cb 50%, transparent 100%);
}

.video-element {
  width: 100%;
  height: auto;
  display: block;
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.5s;
  z-index: 100;
}

.player-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.player-overlay.show {
  opacity: 1;
}

.player-controls-top {
  display: flex;
  flex-direction: row;
  width: 95dvw;
  justify-content: center;
  align-items: center;
}

.player-controls-down {
  display: flex;
  flex-direction: row;
  width: 90dvw;
  justify-content: center;
  align-items: center;
}

.player-controls-left {
  width: 100%;
  display: flex;
  justify-content: left;
}

.player-controls-right {
  width: 100%;
  display: flex;
  justify-content: right;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  padding-top: 50px;
  background-image: linear-gradient(transparent 5%, #0e0f19cb 60%);
  bottom: 0;
  position: relative;
  flex-direction: column;
}

.current-time,
.duration {
  color: white;
}

.play-pause-btn,
.control-btn {
  color: #4237b8;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.play-pause-btn:hover,
.control-btn:hover {
  color: #5f6293;
}

.control-btn:disabled {
  color: #232435;
  cursor: not-allowed;
}

.progress-bar,
.volume-control {
  margin: 0 5px;
}

.progress-bar {
  width: 85%;
  cursor: pointer;
}

.volume-control {
  width: 100px;
  cursor: pointer;
}

.download-btn {
  color: white;
}

.buffering-indicator {
  color: white;
  background-color: #00000069;
  position: fixed;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buffering-indicator .position-fix {
  transform: translate(-50%, -50%);
}

.context-menu {
  position: absolute;
  color: white;
  background: rgb(29, 31, 57);
  border: 1px solid #3640f7;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 10px;
}

.context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu li {
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.context-menu li:hover {
  background-color: #5755a2;
}

/********** Range Input Styles **********/
/*Range Reset*/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/***** Chrome, Safari, Opera and Edge Chromium styles *****/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #403f4f;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -6px; /* Centers thumb on the track */
  /*custom styles*/
  background-color: #4237b8;
  height: 1.2rem;
  width: 0.8rem;
  border-radius: 10px;
}

/******** Firefox styles ********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #403f4f;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  border: none; /*Removes extra border that FF applies*/
  /*custom styles*/
  background-color: #4237b8;
  height: 1.2rem;
  width: 0.8rem;
  border-radius: 10px;
}