-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayer.css
More file actions
183 lines (159 loc) · 3.32 KB
/
player.css
File metadata and controls
183 lines (159 loc) · 3.32 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
/* General Styles */
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(120deg, #efeeec, #71a3d2);
color: #fff;
padding: 50px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background: rgba(255, 255, 255, 0.2);
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
max-width: 700px;
width: 100%;
text-align: center;
backdrop-filter: blur(10px);
}
.player-header {
margin-bottom: 30px;
position: relative;
}
.player-header img {
width: 160px;
height: 230px;
object-fit: cover;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
margin-bottom: 20px;
transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.player-header img:hover {
transform: scale(1.1);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.player-header h2 {
font-size: 2rem;
color: #fff;
margin-top: 15px;
letter-spacing: 1.5px;
text-transform: uppercase;
}
/* Audio Player Styles */
.audio-player {
margin-top: 20px;
}
audio {
width: 100%;
background-color: #fff;
border-radius: 10px;
outline: none;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
margin-bottom: 20px;
}
audio::-webkit-media-controls-panel {
background-color: #3498db;
border-radius: 10px;
}
audio:focus {
outline: none;
}
/* Playback Controls */
.controls {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
gap: 20px;
}
.controls button {
padding: 14px 30px;
border: none;
border-radius: 10px;
background: linear-gradient(120deg, #36d1dc, #5b86e5);
color: white;
font-size: 1.1rem;
cursor: pointer;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s ease;
position: relative;
overflow: hidden;
z-index: 1;
}
.controls button:hover {
background-color: #1c8adb;
transform: translateY(-3px);
}
.controls button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 300%;
height: 300%;
background: rgba(255, 255, 255, 0.1);
transform: rotate(45deg);
transition: all 0.3s ease-in-out;
z-index: -1;
}
.controls button:hover::before {
left: 100%;
}
.controls label {
font-size: 1.2rem;
font-weight: 600;
color: #fff;
}
#speed {
padding: 10px;
border-radius: 8px;
font-size: 1.1rem;
border: none;
background-color: #fff;
color: #333;
cursor: pointer;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, transform 0.3s ease;
}
#speed:hover {
background-color: #eee;
transform: scale(1.1);
}
/* Hover Animations */
button:hover {
animation: pulse 0.4s infinite alternate;
}
@keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.05);
}
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.container {
padding: 25px;
}
.player-header img {
width: 130px;
height: 200px;
}
.player-header h2 {
font-size: 1.5rem;
}
.controls button {
font-size: 1rem;
padding: 10px 20px;
}
#speed {
padding: 8px;
font-size: 1rem;
}
}