Subham9126 commited on
Commit
d10f127
·
verified ·
1 Parent(s): dfc5823

Create style.css

Browse files
Files changed (1) hide show
  1. style.css +281 -18
style.css CHANGED
@@ -1,28 +1,291 @@
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
 
 
 
 
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Base Styles */
2
+ * {
3
+ margin: 0;
4
+ padding: 0;
5
+ box-sizing: border-box;
6
+ }
7
+
8
  body {
9
+ font-family: 'Roboto', Arial, sans-serif;
10
+ background-color: #f9f9f9;
11
+ color: #333;
12
+ }
13
+
14
+ header {
15
+ display: flex;
16
+ justify-content: space-between;
17
+ align-items: center;
18
+ padding: 1rem 2rem;
19
+ background-color: white;
20
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
21
+ position: sticky;
22
+ top: 0;
23
+ z-index: 100;
24
+ }
25
+
26
+ .logo {
27
+ font-size: 1.5rem;
28
+ font-weight: bold;
29
+ color: #ff0000;
30
+ }
31
+
32
+ .search input {
33
+ padding: 0.5rem 1rem;
34
+ border: 1px solid #ddd;
35
+ border-radius: 2px;
36
+ min-width: 300px;
37
+ }
38
+
39
+ .search button {
40
+ padding: 0.5rem 1rem;
41
+ background-color: #f8f8f8;
42
+ border: 1px solid #ddd;
43
+ border-radius: 2px;
44
+ cursor: pointer;
45
+ }
46
+
47
+ /* Gallery View */
48
+ .video-grid {
49
+ display: grid;
50
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
51
+ gap: 1.5rem;
52
+ padding: 2rem;
53
+ }
54
+
55
+ .video-card {
56
+ background: white;
57
+ border-radius: 8px;
58
+ overflow: hidden;
59
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
60
+ transition: transform 0.2s;
61
+ cursor: pointer;
62
+ }
63
+
64
+ .video-card:hover {
65
+ transform: translateY(-5px);
66
+ }
67
+
68
+ .thumbnail {
69
+ position: relative;
70
+ width: 100%;
71
+ padding-bottom: 56.25%; /* 16:9 aspect ratio */
72
+ overflow: hidden;
73
  }
74
 
75
+ .thumbnail img {
76
+ position: absolute;
77
+ top: 0;
78
+ left: 0;
79
+ width: 100%;
80
+ height: 100%;
81
+ object-fit: cover;
82
  }
83
 
84
+ .duration {
85
+ position: absolute;
86
+ bottom: 5px;
87
+ right: 5px;
88
+ background: rgba(0, 0, 0, 0.7);
89
+ color: white;
90
+ padding: 0.2rem 0.5rem;
91
+ border-radius: 3px;
92
+ font-size: 0.8rem;
93
  }
94
 
95
+ .video-info {
96
+ padding: 1rem;
 
 
 
 
97
  }
98
 
99
+ .video-info h3 {
100
+ margin-bottom: 0.5rem;
101
+ font-size: 1rem;
102
+ display: -webkit-box;
103
+ -webkit-line-clamp: 2;
104
+ -webkit-box-orient: vertical;
105
+ overflow: hidden;
106
  }
107
+
108
+ .video-info p {
109
+ font-size: 0.9rem;
110
+ color: #666;
111
+ display: -webkit-box;
112
+ -webkit-line-clamp: 2;
113
+ -webkit-box-orient: vertical;
114
+ overflow: hidden;
115
+ }
116
+
117
+ /* Player View */
118
+ .player-container {
119
+ display: flex;
120
+ max-width: 1600px;
121
+ margin: 0 auto;
122
+ padding: 1.5rem;
123
+ gap: 1.5rem;
124
+ }
125
+
126
+ .player-main {
127
+ flex: 1;
128
+ }
129
+
130
+ .video-container {
131
+ position: relative;
132
+ width: 100%;
133
+ background: black;
134
+ margin-bottom: 1rem;
135
+ }
136
+
137
+ video {
138
+ width: 100%;
139
+ display: block;
140
+ }
141
+
142
+ .custom-controls {
143
+ background: rgba(0, 0, 0, 0.7);
144
+ color: white;
145
+ padding: 0.5rem;
146
+ position: absolute;
147
+ bottom: 0;
148
+ left: 0;
149
+ right: 0;
150
+ display: flex;
151
+ flex-direction: column;
152
+ opacity: 0;
153
+ transition: opacity 0.3s;
154
+ }
155
+
156
+ .video-container:hover .custom-controls {
157
+ opacity: 1;
158
+ }
159
+
160
+ .progress-container {
161
+ width: 100%;
162
+ margin-bottom: 0.5rem;
163
+ }
164
+
165
+ progress {
166
+ width: 100%;
167
+ height: 5px;
168
+ cursor: pointer;
169
+ }
170
+
171
+ .controls-bar {
172
+ display: flex;
173
+ align-items: center;
174
+ gap: 0.5rem;
175
+ }
176
+
177
+ .controls-bar button {
178
+ background: none;
179
+ border: none;
180
+ color: white;
181
+ cursor: pointer;
182
+ font-size: 1rem;
183
+ }
184
+
185
+ .controls-bar input[type="range"] {
186
+ width: 80px;
187
+ }
188
+
189
+ #timeDisplay {
190
+ font-size: 0.9rem;
191
+ margin: 0 0.5rem;
192
+ }
193
+
194
+ .video-info {
195
+ background: white;
196
+ padding: 1rem;
197
+ border-radius: 8px;
198
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
199
+ }
200
+
201
+ .video-info h1 {
202
+ font-size: 1.5rem;
203
+ margin-bottom: 1rem;
204
+ }
205
+
206
+ .video-info p {
207
+ line-height: 1.5;
208
+ color: #555;
209
+ }
210
+
211
+ /* Suggestions */
212
+ .suggestions {
213
+ width: 400px;
214
+ }
215
+
216
+ .suggestions h2 {
217
+ font-size: 1.2rem;
218
+ margin-bottom: 1rem;
219
+ }
220
+
221
+ .suggestion-card {
222
+ display: flex;
223
+ margin-bottom: 1rem;
224
+ cursor: pointer;
225
+ }
226
+
227
+ .suggestion-thumbnail {
228
+ width: 160px;
229
+ height: 90px;
230
+ margin-right: 0.5rem;
231
+ position: relative;
232
+ }
233
+
234
+ .suggestion-thumbnail img {
235
+ width: 100%;
236
+ height: 100%;
237
+ object-fit: cover;
238
+ }
239
+
240
+ .suggestion-info h3 {
241
+ font-size: 0.9rem;
242
+ margin-bottom: 0.3rem;
243
+ }
244
+
245
+ .suggestion-info p {
246
+ font-size: 0.8rem;
247
+ color: #666;
248
+ }
249
+
250
+ /* Responsive Design */
251
+ @media (max-width: 1200px) {
252
+ .player-container {
253
+ flex-direction: column;
254
+ }
255
+
256
+ .suggestions {
257
+ width: 100%;
258
+ }
259
+ }
260
+
261
+ @media (max-width: 768px) {
262
+ header {
263
+ flex-direction: column;
264
+ gap: 1rem;
265
+ padding: 1rem;
266
+ }
267
+
268
+ .search input {
269
+ min-width: 200px;
270
+ width: 100%;
271
+ }
272
+
273
+ .video-grid {
274
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
275
+ padding: 1rem;
276
+ }
277
+
278
+ .player-container {
279
+ padding: 1rem;
280
+ }
281
+
282
+ .optional {
283
+ display: none;
284
+ }
285
+ }
286
+
287
+ @media (max-width: 480px) {
288
+ .video-grid {
289
+ grid-template-columns: 1fr;
290
+ }
291
+ }