-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
250 lines (198 loc) · 8.52 KB
/
style.css
File metadata and controls
250 lines (198 loc) · 8.52 KB
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Fira+Code&family=Roboto:wght@400;700&display=swap');
:root {
--background-color: #0d0221;
--player-bg: #1d1135;
--text-color: #f0f0f0;
--highlight-color: #00BFFF;
--glow-color: rgba(0, 191, 255, .7);
--accent-color: #FF00FF;
--dominant-rgb: 13, 2, 33;
--danger-color: #ff4500;
}
@keyframes colorWave {
0%, 100% { background-position: 50% 50%; }
25% { background-position: 50% 0%; }
50% { background-position: 100% 50%; }
75% { background-position: 50% 100%; }
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
body {
background-color: var(--background-color);
font-family: 'Fira Code', monospace;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
color: var(--text-color);
overflow: hidden;
}
body::before {
content: '';
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: radial-gradient(circle at 50% 50%, rgba(var(--dominant-rgb), 0.8) 0%, var(--background-color) 70%);
background-size: 200% 200%;
animation: colorWave 20s ease-in-out infinite;
transition: all 2s ease-in-out;
z-index: -1;
}
.container {
display: flex;
gap: 20px;
width: 95vw;
max-width: 1550px;
height: 80vh;
max-height: 700px;
background-color: rgba(29, 17, 53, 0.8);
backdrop-filter: blur(10px);
border-radius: 20px;
border: 1px solid var(--highlight-color);
box-shadow: 0 0 25px var(--glow-color);
padding: 20px;
box-sizing: border-box;
transition: all 0.3s ease-in-out;
}
.playlist-container, .lyrics-container, .player-container {
display: flex;
flex-direction: column;
min-width: 0;
}
.playlist-container { flex: 0 0 350px; border-right: 1px solid var(--highlight-color); padding-right: 20px; position: relative; }
.player-container { flex: 1; align-items: center; justify-content: center; position: relative; }
.lyrics-container { flex: 0 0 350px; border-left: 1px solid var(--highlight-color); padding-left: 20px; }
.playlist-container.drag-over { border: 2px dashed var(--accent-color); }
.playlist-container h2, .lyrics-container h2 { margin-top: 0; text-align: center; color: var(--accent-color); }
.playlist, #lyrics-content {
flex-grow: 1;
overflow-y: auto;
list-style: none;
padding: 0;
margin: 10px 0;
}
/* Styles for playlist, buttons, player controls etc. */
/* (The following are mostly from the original file, with minor tweaks) */
.playlist li { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 5px; cursor: pointer; transition: background-color .2s; gap: 10px; }
.song-name { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist li:hover { background-color: rgba(255, 255, 255, .1); }
.playlist li.active { background-color: var(--highlight-color); color: var(--player-bg); font-weight: 700; }
.delete-track-btn { background: none; border: none; color: var(--danger-color); cursor: pointer; padding: 0; opacity: 0.3; transition: opacity 0.2s; flex-shrink: 0; }
.playlist li:hover .delete-track-btn { opacity: 1; }
.delete-track-btn svg { width: 20px; height: 20px; fill: currentColor; }
.playlist-buttons { display: flex; gap: 10px; margin-top: 10px; }
.btn { flex-grow: 1; background-color: var(--accent-color); border: none; border-radius: 5px; padding: 12px; color: #fff; font-family: 'Fira Code', monospace; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; }
.btn.clear { background-color: #555; }
.btn:hover { opacity: 0.8; }
#library-stats { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #ccc; text-align: center; }
#library-stats span { color: var(--highlight-color); font-weight: bold; }
#lyrics-content p { font-family: 'Roboto', sans-serif; font-size: 1.1rem; line-height: 1.9; color: #ddd; white-space: pre-wrap; }
.album-art { width: 200px; height: 200px; background-color: #000; border-radius: 50%; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--highlight-color); overflow: hidden; border: 3px solid var(--player-bg); flex-shrink: 0; animation: spin 30s linear infinite; animation-play-state: paused; }
.album-art.playing { animation-play-state: running; }
.album-art img { width: 100%; height: 100%; object-fit: cover; }
.song-info { text-align: center; margin-bottom: 15px; }
.progress-container { width: 100%; max-width: 400px; height: 5px; background-color: rgba(255, 255, 255, .2); border-radius: 5px; cursor: pointer; margin-bottom: 10px; }
.progress { width: 0%; height: 100%; background-color: var(--highlight-color); border-radius: 5px; box-shadow: 0 0 5px var(--glow-color); }
.time-stamps { width: 100%; max-width: 400px; display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 15px; }
.controls { display: flex; align-items: center; gap: 15px; }
.controls button { background: 0 0; border: none; cursor: pointer; color: var(--text-color); position: relative; }
.controls button.active { color: var(--accent-color); }
.controls button svg { width: 30px; height: 30px; fill: currentColor; }
.controls button#play-pause-btn { width: 60px; height: 60px; border: 2px solid var(--highlight-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.controls button#play-pause-btn svg { width: 28px; height: 28px; }
.volume-container { display: flex; align-items: center; position: relative; }
.volume-container #volume-slider { position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%) rotate(-90deg); transform-origin: center; background: var(--player-bg); padding: 10px; border-radius: 10px; visibility: hidden; opacity: 0; transition: all .3s ease; }
.volume-container:hover #volume-slider { visibility: visible; opacity: 1; }
input[type=range] { -webkit-appearance: none; width: 80px; background: 0 0; }
input[type=range]:focus { outline: 0; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 5px; cursor: pointer; background: rgba(255, 255, 255, .2); border-radius: 5px; }
input[type=range]::-webkit-slider-thumb { height: 15px; width: 15px; border-radius: 50%; background: var(--highlight-color); cursor: pointer; -webkit-appearance: none; margin-top: -5px; }
/* ================================== */
/* ====== MEDIA QUERIES START ====== */
/* ================================== */
/* --- For Tablets (e.g., iPad) --- */
@media (max-width: 1024px) {
.container {
flex-direction: column;
height: auto;
max-height: none;
width: 95vw;
gap: 0;
padding: 10px;
}
.playlist-container, .lyrics-container {
border: none;
padding: 0;
}
.playlist-container {
flex: 1 1 40%; /* Let it take some space */
border-bottom: 1px solid var(--highlight-color);
padding-bottom: 15px;
margin-bottom: 15px;
}
.player-container {
padding: 15px 0;
}
.lyrics-container {
display: none; /* Hide lyrics on tablets to save space */
}
.album-art {
width: 150px;
height: 150px;
}
}
/* --- For Mobile Phones --- */
@media (max-width: 600px) {
body {
/* Allow scrolling on mobile */
overflow: auto;
}
.container {
width: 100vw;
height: auto;
min-height: 100vh;
border-radius: 0;
border: none;
padding: 10px;
}
.playlist-container {
flex: 1 1 50%; /* Make playlist taller */
padding-bottom: 10px;
margin-bottom: 10px;
}
.player-container {
gap: 10px;
}
.album-art {
width: 120px;
height: 120px;
margin-bottom: 10px;
}
.song-info h3 {
font-size: 1rem;
}
.controls {
gap: 5px;
}
.controls button svg {
width: 24px;
height: 24px;
}
.controls button#play-pause-btn {
width: 50px;
height: 50px;
}
.controls button#play-pause-btn svg {
width: 22px;
height: 22px;
}
}
/* --- Drag Over Visual Feedback --- */
.playlist-container.drag-over {
/* لما تسحب ملف فوق المنطقة، هيظهر خط متقطع بلون مختلف */
border-right-color: var(--accent-color);
box-shadow: inset 0 0 25px var(--glow-color);
background-color: rgba(29,17,53,1);
}