medesign 1.2.0 → 1.6.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/README.md +223 -129
- package/bin/mebolder.js +4 -0
- package/bin/medesign.js +992 -200
- package/bin/melint.js +4 -0
- package/bin/mepolish.js +4 -0
- package/bin/mequiet.js +4 -0
- package/bin/mesearch.js +4 -0
- package/bin/mesnapshot.js +4 -0
- package/examples/cadastral-qaqc-slide.html +577 -0
- package/examples/executive-summary-report.html +597 -0
- package/examples/executive-summary-report.pdf +0 -0
- package/examples/geospatial-banner-1200x630.html +370 -0
- package/examples/geospatial-banner-1200x630.svg +149 -0
- package/examples/linear-issue-board.html +1273 -0
- package/examples/snapshots/cadastral-qaqc-slide-desktop-1440x900.png +0 -0
- package/examples/snapshots/cadastral-qaqc-slide-mobile-390x844.png +0 -0
- package/examples/snapshots/cadastral-qaqc-slide-tablet-820x1180.png +0 -0
- package/examples/snapshots/executive-summary-report-desktop-1440x900.png +0 -0
- package/examples/snapshots/executive-summary-report-mobile-390x844.png +0 -0
- package/examples/snapshots/executive-summary-report-tablet-820x1180.png +0 -0
- package/examples/snapshots/geospatial-banner-1200x630-og-banner-1200x630.png +0 -0
- package/examples/snapshots/linear-issue-board-desktop-1440x900.png +0 -0
- package/examples/snapshots/linear-issue-board-mobile-390x844.png +0 -0
- package/examples/snapshots/linear-issue-board-tablet-820x1180.png +0 -0
- package/examples/snapshots/spotify-web-player-desktop-1440x900.png +0 -0
- package/examples/snapshots/spotify-web-player-mobile-390x844.png +0 -0
- package/examples/snapshots/spotify-web-player-tablet-820x1180.png +0 -0
- package/examples/spotify-web-player.html +1446 -0
- package/package.json +21 -4
- package/presets/metha/guidelines.md +26 -17
- package/presets/metha/preset.json +16 -16
- package/references/ai-tells.md +9 -2
- package/references/brand-design-tokens.md +27 -28
- package/references/brief-intake.md +90 -0
- package/references/catalog.json +1024 -101
- package/references/cli-architecture.md +1 -1
- package/references/compositor-smoothness.md +161 -0
- package/references/design-core.md +11 -4
- package/references/executive-reports.md +234 -0
- package/references/image-mockup-direction.md +53 -53
- package/references/image-to-code.md +46 -46
- package/references/modern-craft-invariants.md +55 -9
- package/references/prompt-templates.md +49 -0
- package/references/quality-gate.md +42 -12
- package/references/typography-thai-latin.md +206 -0
- package/references/view-transitions-engine.md +89 -0
- package/references/web-retrofit-protocol.md +103 -0
- package/scripts/export-tokens.js +419 -403
- package/tests/browser-audit.js +463 -442
- package/tests/linter.js +457 -412
- package/tests/snapshot.js +263 -0
|
@@ -0,0 +1,1446 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Spotify Web Player Experience: ME-DESIGN World-Class Prototype</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
|
+
<link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
10
|
+
<style>
|
|
11
|
+
:root {
|
|
12
|
+
--color-bg-base: #09090b;
|
|
13
|
+
--color-surface-sidebar: #000000;
|
|
14
|
+
--color-surface-elevated: #121214;
|
|
15
|
+
--color-surface-card: #18181b;
|
|
16
|
+
--color-surface-card-hover: #222226;
|
|
17
|
+
--color-surface-highlight: #27272a;
|
|
18
|
+
--color-surface-glass: rgba(18, 18, 20, 0.76);
|
|
19
|
+
|
|
20
|
+
--color-accent: #1ed760;
|
|
21
|
+
--color-accent-hover: #22e668;
|
|
22
|
+
--color-accent-press: #169c46;
|
|
23
|
+
--color-accent-glow: rgba(30, 215, 96, 0.28);
|
|
24
|
+
|
|
25
|
+
--color-text-primary: #ffffff;
|
|
26
|
+
--color-text-secondary: #cbd5e1;
|
|
27
|
+
--color-text-muted: #94a3b8;
|
|
28
|
+
|
|
29
|
+
--color-border-subtle: rgba(255, 255, 255, 0.08);
|
|
30
|
+
--color-border-hover: rgba(255, 255, 255, 0.16);
|
|
31
|
+
--color-border-focus: #1ed760;
|
|
32
|
+
|
|
33
|
+
--radius-outer: 16px;
|
|
34
|
+
--radius-card: 12px;
|
|
35
|
+
--radius-inner: 8px;
|
|
36
|
+
--radius-full: 9999px;
|
|
37
|
+
--corner-r: max(0px, var(--radius-outer) - 4px);
|
|
38
|
+
|
|
39
|
+
--shadow-card: 0 10px 24px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
40
|
+
--shadow-hero: 0 20px 48px -8px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
|
41
|
+
--shadow-play-btn: 0 8px 24px rgba(30, 215, 96, 0.45);
|
|
42
|
+
|
|
43
|
+
--ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
|
|
44
|
+
--ease-fluid: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
45
|
+
--duration-micro: 120ms;
|
|
46
|
+
--duration-normal: 240ms;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
* {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
body {
|
|
56
|
+
background-color: var(--color-bg-base);
|
|
57
|
+
color: var(--color-text-primary);
|
|
58
|
+
font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
59
|
+
min-height: 100vh;
|
|
60
|
+
min-height: 100dvh;
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
overflow-x: hidden;
|
|
64
|
+
-webkit-font-smoothing: antialiased;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Accessibility Hard Invariants */
|
|
68
|
+
:focus-visible {
|
|
69
|
+
outline: 2px solid var(--color-border-focus) !important;
|
|
70
|
+
outline-offset: 2px !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (forced-colors: active) {
|
|
74
|
+
:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, [role="slider"]:focus-visible {
|
|
75
|
+
outline: 3px solid Highlight !important;
|
|
76
|
+
outline-offset: 2px !important;
|
|
77
|
+
}
|
|
78
|
+
.spotify-glass, .player-bar, .album-card, .sidebar, .waveform-card {
|
|
79
|
+
border: 1px solid CanvasText !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (prefers-reduced-motion: reduce) {
|
|
84
|
+
*, ::before, ::after {
|
|
85
|
+
animation-duration: 0.01ms !important;
|
|
86
|
+
animation-iteration-count: 1 !important;
|
|
87
|
+
transition-duration: 0.01ms !important;
|
|
88
|
+
scroll-behavior: auto !important;
|
|
89
|
+
}
|
|
90
|
+
.waveform-bar {
|
|
91
|
+
animation: none !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* App Container Layout */
|
|
96
|
+
.app-container {
|
|
97
|
+
display: grid;
|
|
98
|
+
grid-template-columns: 280px 1fr;
|
|
99
|
+
flex: 1;
|
|
100
|
+
height: calc(100vh - 90px);
|
|
101
|
+
height: calc(100dvh - 90px);
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Left Sidebar Navigation */
|
|
106
|
+
.sidebar {
|
|
107
|
+
background-color: var(--color-surface-sidebar);
|
|
108
|
+
padding: 20px 14px;
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
gap: 20px;
|
|
112
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
113
|
+
overflow-y: auto;
|
|
114
|
+
scrollbar-gutter: stable;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.brand-logo {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: 10px;
|
|
121
|
+
padding: 0 10px;
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
color: var(--color-text-primary);
|
|
124
|
+
min-height: 44px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.brand-logo svg {
|
|
128
|
+
width: 32px;
|
|
129
|
+
height: 32px;
|
|
130
|
+
fill: var(--color-accent);
|
|
131
|
+
filter: drop-shadow(0 2px 8px var(--color-accent-glow));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.brand-title {
|
|
135
|
+
font-size: 1.2rem;
|
|
136
|
+
font-weight: 800;
|
|
137
|
+
letter-spacing: -0.03em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.nav-group {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
gap: 4px;
|
|
144
|
+
background: var(--color-surface-elevated);
|
|
145
|
+
padding: 8px;
|
|
146
|
+
border-radius: var(--radius-card);
|
|
147
|
+
border: 1px solid var(--color-border-subtle);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.nav-item {
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
gap: 16px;
|
|
154
|
+
padding: 10px 14px;
|
|
155
|
+
border-radius: var(--radius-inner);
|
|
156
|
+
color: var(--color-text-secondary);
|
|
157
|
+
text-decoration: none;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
font-size: 0.92rem;
|
|
160
|
+
min-height: 44px;
|
|
161
|
+
transition: background-color var(--duration-micro) var(--ease-fluid), color var(--duration-micro) var(--ease-fluid);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.nav-item:hover {
|
|
165
|
+
background-color: var(--color-surface-highlight);
|
|
166
|
+
color: var(--color-text-primary);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.nav-item.active {
|
|
170
|
+
background-color: var(--color-surface-card-hover);
|
|
171
|
+
color: var(--color-text-primary);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nav-item svg {
|
|
175
|
+
width: 22px;
|
|
176
|
+
height: 22px;
|
|
177
|
+
fill: currentColor;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Library Section in Sidebar */
|
|
181
|
+
.library-section {
|
|
182
|
+
background: var(--color-surface-elevated);
|
|
183
|
+
padding: 14px;
|
|
184
|
+
border-radius: var(--radius-card);
|
|
185
|
+
border: 1px solid var(--color-border-subtle);
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
gap: 14px;
|
|
189
|
+
flex: 1;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.library-header {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
justify-content: space-between;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.library-title-btn {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: 12px;
|
|
203
|
+
background: none;
|
|
204
|
+
border: none;
|
|
205
|
+
color: var(--color-text-secondary);
|
|
206
|
+
font-weight: 700;
|
|
207
|
+
font-size: 0.95rem;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
min-height: 44px;
|
|
210
|
+
transition: color var(--duration-micro) var(--ease-fluid);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.library-title-btn:hover {
|
|
214
|
+
color: var(--color-text-primary);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.library-title-btn svg {
|
|
218
|
+
width: 20px;
|
|
219
|
+
height: 20px;
|
|
220
|
+
fill: currentColor;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.library-actions {
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
gap: 4px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.btn-icon-subtle {
|
|
230
|
+
background: none;
|
|
231
|
+
border: none;
|
|
232
|
+
color: var(--color-text-secondary);
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
width: 44px;
|
|
235
|
+
height: 44px;
|
|
236
|
+
border-radius: var(--radius-full);
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
justify-content: center;
|
|
240
|
+
transition: background-color var(--duration-micro) var(--ease-fluid), color var(--duration-micro) var(--ease-fluid);
|
|
241
|
+
min-height: 44px;
|
|
242
|
+
min-width: 44px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.btn-icon-subtle:hover {
|
|
246
|
+
background-color: var(--color-surface-highlight);
|
|
247
|
+
color: var(--color-text-primary);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.filter-chips {
|
|
251
|
+
display: flex;
|
|
252
|
+
gap: 8px;
|
|
253
|
+
overflow-x: auto;
|
|
254
|
+
padding-bottom: 4px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.chip-btn {
|
|
258
|
+
background-color: var(--color-surface-card);
|
|
259
|
+
border: 1px solid var(--color-border-subtle);
|
|
260
|
+
color: var(--color-text-primary);
|
|
261
|
+
font-size: 0.82rem;
|
|
262
|
+
font-weight: 600;
|
|
263
|
+
padding: 10px 18px;
|
|
264
|
+
border-radius: var(--radius-full);
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
white-space: nowrap;
|
|
267
|
+
transition: background-color var(--duration-micro) var(--ease-fluid);
|
|
268
|
+
min-height: 44px;
|
|
269
|
+
min-width: 44px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.chip-btn:hover {
|
|
273
|
+
background-color: var(--color-surface-highlight);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.chip-btn.active {
|
|
277
|
+
background-color: #ffffff;
|
|
278
|
+
color: #000000;
|
|
279
|
+
border-color: #ffffff;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.playlist-list {
|
|
283
|
+
display: flex;
|
|
284
|
+
flex-direction: column;
|
|
285
|
+
gap: 4px;
|
|
286
|
+
overflow-y: auto;
|
|
287
|
+
flex: 1;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.playlist-item {
|
|
291
|
+
display: flex;
|
|
292
|
+
align-items: center;
|
|
293
|
+
gap: 12px;
|
|
294
|
+
padding: 8px;
|
|
295
|
+
border-radius: var(--radius-inner);
|
|
296
|
+
text-decoration: none;
|
|
297
|
+
color: var(--color-text-primary);
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
transition: background-color var(--duration-micro) var(--ease-fluid);
|
|
300
|
+
min-height: 44px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.playlist-item:hover {
|
|
304
|
+
background-color: var(--color-surface-highlight);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.playlist-art {
|
|
308
|
+
width: 44px;
|
|
309
|
+
height: 44px;
|
|
310
|
+
border-radius: 6px;
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
flex-shrink: 0;
|
|
315
|
+
font-size: 1.1rem;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.playlist-meta {
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
gap: 2px;
|
|
322
|
+
overflow: hidden;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.playlist-name {
|
|
326
|
+
font-size: 0.88rem;
|
|
327
|
+
font-weight: 600;
|
|
328
|
+
white-space: nowrap;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
text-overflow: ellipsis;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.playlist-desc {
|
|
334
|
+
font-size: 0.76rem;
|
|
335
|
+
color: var(--color-text-muted);
|
|
336
|
+
display: flex;
|
|
337
|
+
align-items: center;
|
|
338
|
+
gap: 6px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Main Viewport */
|
|
342
|
+
.main-viewport {
|
|
343
|
+
background: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(30, 215, 96, 0.22) 0%, transparent 70%),
|
|
344
|
+
linear-gradient(180deg in oklab, #12281c 0%, #09090b 460px);
|
|
345
|
+
overflow-y: auto;
|
|
346
|
+
padding: 32px 36px 48px;
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
gap: 36px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* Hero Playlist Header */
|
|
353
|
+
.hero-header {
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: flex-end;
|
|
356
|
+
gap: 32px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.album-art-hero {
|
|
360
|
+
width: 220px;
|
|
361
|
+
height: 220px;
|
|
362
|
+
border-radius: var(--radius-outer);
|
|
363
|
+
box-shadow: var(--shadow-hero);
|
|
364
|
+
display: flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
justify-content: center;
|
|
367
|
+
flex-shrink: 0;
|
|
368
|
+
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
369
|
+
position: relative;
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
background: linear-gradient(135deg in oklch, #059669 0%, #022c22 100%);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.hero-art-glow {
|
|
375
|
+
position: absolute;
|
|
376
|
+
inset: 0;
|
|
377
|
+
background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
|
|
378
|
+
pointer-events: none;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.hero-info {
|
|
382
|
+
display: flex;
|
|
383
|
+
flex-direction: column;
|
|
384
|
+
gap: 10px;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.tag-badge {
|
|
388
|
+
display: inline-flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: 6px;
|
|
391
|
+
font-size: 0.76rem;
|
|
392
|
+
font-weight: 800;
|
|
393
|
+
letter-spacing: 0.08em;
|
|
394
|
+
text-transform: uppercase;
|
|
395
|
+
color: var(--color-accent);
|
|
396
|
+
background-color: rgba(30, 215, 96, 0.14);
|
|
397
|
+
padding: 5px 12px;
|
|
398
|
+
border-radius: var(--radius-full);
|
|
399
|
+
width: fit-content;
|
|
400
|
+
min-height: 28px;
|
|
401
|
+
border: 1px solid rgba(30, 215, 96, 0.25);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.tag-dot {
|
|
405
|
+
width: 6px;
|
|
406
|
+
height: 6px;
|
|
407
|
+
border-radius: 50%;
|
|
408
|
+
background-color: var(--color-accent);
|
|
409
|
+
box-shadow: 0 0 8px var(--color-accent);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.hero-title {
|
|
413
|
+
font-size: 3.25rem;
|
|
414
|
+
font-weight: 800;
|
|
415
|
+
letter-spacing: -0.04em;
|
|
416
|
+
line-height: 1.08;
|
|
417
|
+
color: #ffffff;
|
|
418
|
+
text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.hero-meta {
|
|
422
|
+
display: flex;
|
|
423
|
+
align-items: center;
|
|
424
|
+
gap: 10px;
|
|
425
|
+
color: var(--color-text-secondary);
|
|
426
|
+
font-size: 0.92rem;
|
|
427
|
+
font-weight: 500;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.hero-meta strong {
|
|
431
|
+
color: #ffffff;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.hero-actions {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
gap: 20px;
|
|
438
|
+
margin-top: 10px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.btn-play-hero {
|
|
442
|
+
width: 58px;
|
|
443
|
+
height: 58px;
|
|
444
|
+
border-radius: var(--radius-full);
|
|
445
|
+
background-color: var(--color-accent);
|
|
446
|
+
color: #000000;
|
|
447
|
+
border: none;
|
|
448
|
+
display: flex;
|
|
449
|
+
align-items: center;
|
|
450
|
+
justify-content: center;
|
|
451
|
+
cursor: pointer;
|
|
452
|
+
box-shadow: var(--shadow-play-btn);
|
|
453
|
+
transition: transform var(--duration-micro) var(--ease-spring), background-color var(--duration-micro) var(--ease-fluid);
|
|
454
|
+
min-height: 44px;
|
|
455
|
+
min-width: 44px;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.btn-play-hero:hover {
|
|
459
|
+
background-color: var(--color-accent-hover);
|
|
460
|
+
transform: scale(1.06);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.btn-play-hero:active {
|
|
464
|
+
background-color: var(--color-accent-press);
|
|
465
|
+
transform: scale(0.96);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.btn-play-hero svg {
|
|
469
|
+
width: 24px;
|
|
470
|
+
height: 24px;
|
|
471
|
+
fill: currentColor;
|
|
472
|
+
margin-left: 2px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.btn-action-circle {
|
|
476
|
+
width: 44px;
|
|
477
|
+
height: 44px;
|
|
478
|
+
border-radius: var(--radius-full);
|
|
479
|
+
background: none;
|
|
480
|
+
border: 1px solid var(--color-border-subtle);
|
|
481
|
+
color: var(--color-text-secondary);
|
|
482
|
+
display: flex;
|
|
483
|
+
align-items: center;
|
|
484
|
+
justify-content: center;
|
|
485
|
+
cursor: pointer;
|
|
486
|
+
transition: border-color var(--duration-micro) var(--ease-fluid), color var(--duration-micro) var(--ease-fluid), transform var(--duration-micro) var(--ease-spring);
|
|
487
|
+
min-height: 44px;
|
|
488
|
+
min-width: 44px;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.btn-action-circle:hover {
|
|
492
|
+
border-color: var(--color-text-primary);
|
|
493
|
+
color: var(--color-text-primary);
|
|
494
|
+
transform: scale(1.06);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.btn-action-circle.active {
|
|
498
|
+
color: var(--color-accent);
|
|
499
|
+
border-color: var(--color-accent);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* Waveform Spectrum Card (Spatial Glassmorphism) */
|
|
503
|
+
.waveform-card {
|
|
504
|
+
background: var(--color-surface-glass);
|
|
505
|
+
backdrop-filter: blur(24px);
|
|
506
|
+
-webkit-backdrop-filter: blur(24px);
|
|
507
|
+
border: 1px solid var(--color-border-subtle);
|
|
508
|
+
border-radius: var(--radius-card);
|
|
509
|
+
box-shadow: var(--shadow-card);
|
|
510
|
+
padding: 22px 28px;
|
|
511
|
+
display: flex;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
gap: 18px;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.waveform-header {
|
|
517
|
+
display: flex;
|
|
518
|
+
justify-content: space-between;
|
|
519
|
+
align-items: center;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.waveform-title {
|
|
523
|
+
font-size: 1.05rem;
|
|
524
|
+
font-weight: 700;
|
|
525
|
+
letter-spacing: -0.015em;
|
|
526
|
+
display: flex;
|
|
527
|
+
align-items: center;
|
|
528
|
+
gap: 12px;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.pulse-dot {
|
|
532
|
+
width: 8px;
|
|
533
|
+
height: 8px;
|
|
534
|
+
border-radius: 50%;
|
|
535
|
+
background-color: var(--color-accent);
|
|
536
|
+
box-shadow: 0 0 10px var(--color-accent);
|
|
537
|
+
animation: pulseGlow 1.8s infinite ease-in-out;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
@keyframes pulseGlow {
|
|
541
|
+
0%, 100% { transform: scale(1); opacity: 1; }
|
|
542
|
+
50% { transform: scale(1.3); opacity: 0.6; }
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.waveform-meta {
|
|
546
|
+
font-family: 'Geist Mono', monospace;
|
|
547
|
+
font-size: 0.8rem;
|
|
548
|
+
font-weight: 500;
|
|
549
|
+
color: var(--color-accent);
|
|
550
|
+
display: flex;
|
|
551
|
+
align-items: center;
|
|
552
|
+
gap: 8px;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* 36-bar Vertical Frequency Equalizer */
|
|
556
|
+
.waveform-spectrum {
|
|
557
|
+
display: flex;
|
|
558
|
+
align-items: flex-end;
|
|
559
|
+
justify-content: space-between;
|
|
560
|
+
height: 64px;
|
|
561
|
+
padding: 6px 0;
|
|
562
|
+
gap: 4px;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.spectrum-bar {
|
|
566
|
+
width: 4px;
|
|
567
|
+
border-radius: var(--radius-full);
|
|
568
|
+
background: linear-gradient(180deg in oklch, var(--color-accent-hover) 0%, rgba(30, 215, 96, 0.35) 100%);
|
|
569
|
+
transition: height 0.12s ease-out;
|
|
570
|
+
transform-origin: bottom center;
|
|
571
|
+
box-shadow: 0 0 8px rgba(30, 215, 96, 0.2);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/* Bento Grid: Featured Albums */
|
|
575
|
+
.bento-section {
|
|
576
|
+
display: flex;
|
|
577
|
+
flex-direction: column;
|
|
578
|
+
gap: 18px;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.section-title {
|
|
582
|
+
font-size: 1.45rem;
|
|
583
|
+
font-weight: 800;
|
|
584
|
+
letter-spacing: -0.025em;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.bento-grid {
|
|
588
|
+
display: grid;
|
|
589
|
+
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
|
|
590
|
+
gap: 22px;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.album-card {
|
|
594
|
+
background-color: var(--color-surface-card);
|
|
595
|
+
border-radius: var(--radius-card);
|
|
596
|
+
padding: 16px;
|
|
597
|
+
display: flex;
|
|
598
|
+
flex-direction: column;
|
|
599
|
+
gap: 14px;
|
|
600
|
+
border: 1px solid var(--color-border-subtle);
|
|
601
|
+
box-shadow: var(--shadow-card);
|
|
602
|
+
transition: background-color var(--duration-normal) var(--ease-fluid),
|
|
603
|
+
border-color var(--duration-normal) var(--ease-fluid),
|
|
604
|
+
transform var(--duration-normal) var(--ease-spring);
|
|
605
|
+
cursor: pointer;
|
|
606
|
+
position: relative;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.album-card:hover {
|
|
610
|
+
background-color: var(--color-surface-card-hover);
|
|
611
|
+
border-color: var(--color-border-hover);
|
|
612
|
+
transform: translateY(-5px);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.album-card:active {
|
|
616
|
+
transform: translateY(-2px);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.album-thumb-container {
|
|
620
|
+
position: relative;
|
|
621
|
+
width: 100%;
|
|
622
|
+
padding-top: 100%;
|
|
623
|
+
border-radius: var(--radius-inner);
|
|
624
|
+
overflow: hidden;
|
|
625
|
+
background: #111;
|
|
626
|
+
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.album-thumb-art {
|
|
630
|
+
position: absolute;
|
|
631
|
+
top: 0;
|
|
632
|
+
left: 0;
|
|
633
|
+
width: 100%;
|
|
634
|
+
height: 100%;
|
|
635
|
+
display: flex;
|
|
636
|
+
align-items: center;
|
|
637
|
+
justify-content: center;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.album-play-overlay {
|
|
641
|
+
position: absolute;
|
|
642
|
+
bottom: 10px;
|
|
643
|
+
right: 10px;
|
|
644
|
+
width: 50px;
|
|
645
|
+
height: 50px;
|
|
646
|
+
border-radius: var(--radius-full);
|
|
647
|
+
background-color: var(--color-accent);
|
|
648
|
+
color: #000;
|
|
649
|
+
display: flex;
|
|
650
|
+
align-items: center;
|
|
651
|
+
justify-content: center;
|
|
652
|
+
opacity: 0;
|
|
653
|
+
transform: translateY(8px);
|
|
654
|
+
transition: opacity var(--duration-micro) var(--ease-fluid), transform var(--duration-micro) var(--ease-spring);
|
|
655
|
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
|
|
656
|
+
border: none;
|
|
657
|
+
min-height: 44px;
|
|
658
|
+
min-width: 44px;
|
|
659
|
+
cursor: pointer;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.album-card:hover .album-play-overlay {
|
|
663
|
+
opacity: 1;
|
|
664
|
+
transform: translateY(0);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.album-play-overlay:hover {
|
|
668
|
+
background-color: var(--color-accent-hover);
|
|
669
|
+
transform: scale(1.08);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.album-info {
|
|
673
|
+
display: flex;
|
|
674
|
+
flex-direction: column;
|
|
675
|
+
gap: 4px;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.album-name {
|
|
679
|
+
font-weight: 700;
|
|
680
|
+
font-size: 0.96rem;
|
|
681
|
+
letter-spacing: -0.01em;
|
|
682
|
+
white-space: nowrap;
|
|
683
|
+
overflow: hidden;
|
|
684
|
+
text-overflow: ellipsis;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.album-artist {
|
|
688
|
+
color: var(--color-text-secondary);
|
|
689
|
+
font-size: 0.84rem;
|
|
690
|
+
font-weight: 500;
|
|
691
|
+
white-space: nowrap;
|
|
692
|
+
overflow: hidden;
|
|
693
|
+
text-overflow: ellipsis;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/* Persistent Glass Audio Player Bar */
|
|
697
|
+
.player-bar {
|
|
698
|
+
height: 90px;
|
|
699
|
+
background-color: rgba(9, 9, 11, 0.88);
|
|
700
|
+
backdrop-filter: blur(28px);
|
|
701
|
+
-webkit-backdrop-filter: blur(28px);
|
|
702
|
+
border-top: 1px solid var(--color-border-subtle);
|
|
703
|
+
display: grid;
|
|
704
|
+
grid-template-columns: 300px 1fr 300px;
|
|
705
|
+
align-items: center;
|
|
706
|
+
padding: 0 28px;
|
|
707
|
+
position: fixed;
|
|
708
|
+
bottom: 0;
|
|
709
|
+
left: 0;
|
|
710
|
+
right: 0;
|
|
711
|
+
z-index: 100;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.now-playing {
|
|
715
|
+
display: flex;
|
|
716
|
+
align-items: center;
|
|
717
|
+
gap: 14px;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.now-playing-thumb {
|
|
721
|
+
width: 54px;
|
|
722
|
+
height: 54px;
|
|
723
|
+
border-radius: var(--radius-inner);
|
|
724
|
+
display: flex;
|
|
725
|
+
align-items: center;
|
|
726
|
+
justify-content: center;
|
|
727
|
+
flex-shrink: 0;
|
|
728
|
+
border: 1px solid var(--color-border-subtle);
|
|
729
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
730
|
+
overflow: hidden;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.now-playing-meta {
|
|
734
|
+
display: flex;
|
|
735
|
+
flex-direction: column;
|
|
736
|
+
gap: 2px;
|
|
737
|
+
overflow: hidden;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.track-title {
|
|
741
|
+
font-weight: 700;
|
|
742
|
+
font-size: 0.92rem;
|
|
743
|
+
color: var(--color-text-primary);
|
|
744
|
+
white-space: nowrap;
|
|
745
|
+
overflow: hidden;
|
|
746
|
+
text-overflow: ellipsis;
|
|
747
|
+
cursor: pointer;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.track-title:hover {
|
|
751
|
+
text-decoration: underline;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.track-artist {
|
|
755
|
+
color: var(--color-text-secondary);
|
|
756
|
+
font-size: 0.8rem;
|
|
757
|
+
cursor: pointer;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.track-artist:hover {
|
|
761
|
+
text-decoration: underline;
|
|
762
|
+
color: var(--color-text-primary);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/* Center Playback Controls & Scrubber */
|
|
766
|
+
.player-controls {
|
|
767
|
+
display: flex;
|
|
768
|
+
flex-direction: column;
|
|
769
|
+
align-items: center;
|
|
770
|
+
gap: 6px;
|
|
771
|
+
max-width: 620px;
|
|
772
|
+
margin: 0 auto;
|
|
773
|
+
width: 100%;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.control-buttons {
|
|
777
|
+
display: flex;
|
|
778
|
+
align-items: center;
|
|
779
|
+
gap: 20px;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.btn-icon {
|
|
783
|
+
background: none;
|
|
784
|
+
border: none;
|
|
785
|
+
color: var(--color-text-secondary);
|
|
786
|
+
cursor: pointer;
|
|
787
|
+
display: flex;
|
|
788
|
+
align-items: center;
|
|
789
|
+
justify-content: center;
|
|
790
|
+
width: 44px;
|
|
791
|
+
height: 44px;
|
|
792
|
+
border-radius: var(--radius-full);
|
|
793
|
+
transition: color var(--duration-micro) var(--ease-fluid), transform var(--duration-micro) var(--ease-spring);
|
|
794
|
+
min-height: 44px;
|
|
795
|
+
min-width: 44px;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.btn-icon:hover {
|
|
799
|
+
color: var(--color-text-primary);
|
|
800
|
+
transform: scale(1.1);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.btn-icon:active {
|
|
804
|
+
transform: scale(0.96);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.btn-play-main {
|
|
808
|
+
width: 44px;
|
|
809
|
+
height: 44px;
|
|
810
|
+
border-radius: var(--radius-full);
|
|
811
|
+
background-color: #ffffff;
|
|
812
|
+
color: #000000;
|
|
813
|
+
border: none;
|
|
814
|
+
display: flex;
|
|
815
|
+
align-items: center;
|
|
816
|
+
justify-content: center;
|
|
817
|
+
cursor: pointer;
|
|
818
|
+
transition: transform var(--duration-micro) var(--ease-spring), background-color var(--duration-micro) var(--ease-fluid);
|
|
819
|
+
min-height: 44px;
|
|
820
|
+
min-width: 44px;
|
|
821
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.btn-play-main:hover {
|
|
825
|
+
transform: scale(1.08);
|
|
826
|
+
background-color: var(--color-accent-hover);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.btn-play-main:active {
|
|
830
|
+
transform: scale(0.96);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.playback-bar {
|
|
834
|
+
display: flex;
|
|
835
|
+
align-items: center;
|
|
836
|
+
gap: 12px;
|
|
837
|
+
width: 100%;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.time-stamp {
|
|
841
|
+
font-family: 'Geist Mono', monospace;
|
|
842
|
+
font-variant-numeric: tabular-nums;
|
|
843
|
+
font-size: 0.76rem;
|
|
844
|
+
color: var(--color-text-muted);
|
|
845
|
+
min-width: 40px;
|
|
846
|
+
text-align: center;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/* Isolated Hit-Target Area: Transparent Container with Center Track (Apple/Spotify Standard) */
|
|
850
|
+
.progress-slider {
|
|
851
|
+
flex: 1;
|
|
852
|
+
height: 16px;
|
|
853
|
+
min-height: 44px;
|
|
854
|
+
background: transparent;
|
|
855
|
+
position: relative;
|
|
856
|
+
cursor: pointer;
|
|
857
|
+
display: flex;
|
|
858
|
+
align-items: center;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.progress-track {
|
|
862
|
+
height: 4px;
|
|
863
|
+
width: 100%;
|
|
864
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
865
|
+
border-radius: var(--radius-full);
|
|
866
|
+
position: relative;
|
|
867
|
+
transition: height var(--duration-micro) ease;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.progress-slider:hover .progress-track {
|
|
871
|
+
height: 6px;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.progress-fill {
|
|
875
|
+
height: 100%;
|
|
876
|
+
width: 38%;
|
|
877
|
+
background-color: #ffffff;
|
|
878
|
+
border-radius: var(--radius-full);
|
|
879
|
+
position: relative;
|
|
880
|
+
transition: background-color var(--duration-micro) var(--ease-fluid);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.progress-slider:hover .progress-fill {
|
|
884
|
+
background-color: var(--color-accent);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/* Sleek Hover Scrubber Thumb */
|
|
888
|
+
.progress-thumb {
|
|
889
|
+
width: 12px;
|
|
890
|
+
height: 12px;
|
|
891
|
+
border-radius: 50%;
|
|
892
|
+
background-color: #ffffff;
|
|
893
|
+
position: absolute;
|
|
894
|
+
right: -6px;
|
|
895
|
+
top: 50%;
|
|
896
|
+
transform: translateY(-50%) scale(0);
|
|
897
|
+
transition: transform var(--duration-micro) var(--ease-spring);
|
|
898
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.progress-slider:hover .progress-thumb {
|
|
902
|
+
transform: translateY(-50%) scale(1);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/* Right Extra Controls */
|
|
906
|
+
.extra-controls {
|
|
907
|
+
display: flex;
|
|
908
|
+
align-items: center;
|
|
909
|
+
justify-content: flex-end;
|
|
910
|
+
gap: 10px;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/* Optical Cushioning / Invisible Touch Halo for Volume Controller (No collision!) */
|
|
914
|
+
.volume-slider {
|
|
915
|
+
width: 100px;
|
|
916
|
+
height: 16px;
|
|
917
|
+
min-height: 44px;
|
|
918
|
+
background: transparent;
|
|
919
|
+
position: relative;
|
|
920
|
+
cursor: pointer;
|
|
921
|
+
display: flex;
|
|
922
|
+
align-items: center;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.volume-track {
|
|
926
|
+
height: 4px;
|
|
927
|
+
width: 100%;
|
|
928
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
929
|
+
border-radius: var(--radius-full);
|
|
930
|
+
position: relative;
|
|
931
|
+
transition: height var(--duration-micro) ease;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.volume-slider:hover .volume-track {
|
|
935
|
+
height: 6px;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.volume-fill {
|
|
939
|
+
height: 100%;
|
|
940
|
+
width: 72%;
|
|
941
|
+
background-color: #ffffff;
|
|
942
|
+
border-radius: var(--radius-full);
|
|
943
|
+
position: relative;
|
|
944
|
+
transition: background-color var(--duration-micro) var(--ease-fluid);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.volume-slider:hover .volume-fill {
|
|
948
|
+
background-color: var(--color-accent);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.volume-thumb {
|
|
952
|
+
width: 12px;
|
|
953
|
+
height: 12px;
|
|
954
|
+
border-radius: 50%;
|
|
955
|
+
background-color: #ffffff;
|
|
956
|
+
position: absolute;
|
|
957
|
+
right: -6px;
|
|
958
|
+
top: 50%;
|
|
959
|
+
transform: translateY(-50%) scale(0);
|
|
960
|
+
transition: transform var(--duration-micro) var(--ease-spring);
|
|
961
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.volume-slider:hover .volume-thumb {
|
|
965
|
+
transform: translateY(-50%) scale(1);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/* Responsive Queries */
|
|
969
|
+
@media (max-width: 1024px) {
|
|
970
|
+
.app-container {
|
|
971
|
+
grid-template-columns: 88px 1fr;
|
|
972
|
+
}
|
|
973
|
+
.brand-title, .nav-item span, .library-section {
|
|
974
|
+
display: none;
|
|
975
|
+
}
|
|
976
|
+
.player-bar {
|
|
977
|
+
grid-template-columns: 200px 1fr 140px;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
</style>
|
|
981
|
+
</head>
|
|
982
|
+
<body>
|
|
983
|
+
|
|
984
|
+
<div class="app-container">
|
|
985
|
+
<!-- Left Sidebar -->
|
|
986
|
+
<aside class="sidebar" aria-label="Main Navigation">
|
|
987
|
+
<a href="#" class="brand-logo" aria-label="Spotify Home">
|
|
988
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.58 14.42c-.18.3-.56.4-.86.22-2.36-1.44-5.33-1.76-8.83-.96-.34.08-.68-.14-.76-.48-.08-.34.14-.68.48-.76 3.84-.88 7.12-.52 9.75 1.12.3.18.4.56.22.86zm1.22-2.72c-.23.37-.72.49-1.09.26-2.7-1.66-6.82-2.14-10.02-1.17-.42.13-.86-.11-.99-.53-.13-.42.11-.86.53-.99 3.65-1.11 8.2-.58 11.31 1.34.37.23.49.72.26 1.09zm.1-2.84C14.66 8.98 9.29 8.8 6.18 9.74c-.49.15-1.01-.13-1.16-.62-.15-.49.13-1.01.62-1.16 3.63-1.1 9.58-.89 13.38 1.37.44.26.58.84.32 1.28-.26.44-.84.58-1.28.32z"/></svg>
|
|
989
|
+
<span class="brand-title">Spotify</span>
|
|
990
|
+
</a>
|
|
991
|
+
|
|
992
|
+
<nav class="nav-group" aria-label="Primary Links">
|
|
993
|
+
<a href="#" class="nav-item active" aria-current="page">
|
|
994
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>
|
|
995
|
+
<span>Home</span>
|
|
996
|
+
</a>
|
|
997
|
+
<a href="#" class="nav-item">
|
|
998
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
|
|
999
|
+
<span>Search</span>
|
|
1000
|
+
</a>
|
|
1001
|
+
</nav>
|
|
1002
|
+
|
|
1003
|
+
<!-- Your Library Panel -->
|
|
1004
|
+
<section class="library-section" aria-label="Your Media Library">
|
|
1005
|
+
<div class="library-header">
|
|
1006
|
+
<button class="library-title-btn" aria-label="Collapse Library">
|
|
1007
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12z"/></svg>
|
|
1008
|
+
<span>Your Library</span>
|
|
1009
|
+
</button>
|
|
1010
|
+
<div class="library-actions">
|
|
1011
|
+
<button class="btn-icon-subtle" aria-label="Create playlist">
|
|
1012
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
|
|
1013
|
+
</button>
|
|
1014
|
+
</div>
|
|
1015
|
+
</div>
|
|
1016
|
+
|
|
1017
|
+
<div class="filter-chips">
|
|
1018
|
+
<button class="chip-btn active">Playlists</button>
|
|
1019
|
+
<button class="chip-btn">Artists</button>
|
|
1020
|
+
<button class="chip-btn">Podcasts</button>
|
|
1021
|
+
</div>
|
|
1022
|
+
|
|
1023
|
+
<div class="playlist-list" role="list">
|
|
1024
|
+
<div class="playlist-item" role="listitem">
|
|
1025
|
+
<div class="playlist-art" style="background: linear-gradient(135deg, #450af5, #c4efd9);">💜</div>
|
|
1026
|
+
<div class="playlist-meta">
|
|
1027
|
+
<span class="playlist-name">Liked Songs</span>
|
|
1028
|
+
<span class="playlist-desc">📌 Playlist • 142 songs</span>
|
|
1029
|
+
</div>
|
|
1030
|
+
</div>
|
|
1031
|
+
<div class="playlist-item" role="listitem">
|
|
1032
|
+
<div class="playlist-art" style="background: linear-gradient(135deg, #059669, #022c22);">🌿</div>
|
|
1033
|
+
<div class="playlist-meta">
|
|
1034
|
+
<span class="playlist-name">Daily Mix 1</span>
|
|
1035
|
+
<span class="playlist-desc">Playlist • Kavinsky, Tycho</span>
|
|
1036
|
+
</div>
|
|
1037
|
+
</div>
|
|
1038
|
+
<div class="playlist-item" role="listitem">
|
|
1039
|
+
<div class="playlist-art" style="background: linear-gradient(135deg, #1e3a8a, #0f172a);">🎹</div>
|
|
1040
|
+
<div class="playlist-meta">
|
|
1041
|
+
<span class="playlist-name">Deep Focus Flow</span>
|
|
1042
|
+
<span class="playlist-desc">Playlist • Ambient Electronic</span>
|
|
1043
|
+
</div>
|
|
1044
|
+
</div>
|
|
1045
|
+
<div class="playlist-item" role="listitem">
|
|
1046
|
+
<div class="playlist-art" style="background: linear-gradient(135deg, #b45309, #78350f);">☕</div>
|
|
1047
|
+
<div class="playlist-meta">
|
|
1048
|
+
<span class="playlist-name">Lo-Fi Study Beats</span>
|
|
1049
|
+
<span class="playlist-desc">Playlist • ChilledCow</span>
|
|
1050
|
+
</div>
|
|
1051
|
+
</div>
|
|
1052
|
+
</div>
|
|
1053
|
+
</section>
|
|
1054
|
+
</aside>
|
|
1055
|
+
|
|
1056
|
+
<!-- Main Viewport -->
|
|
1057
|
+
<main class="main-viewport" id="mainContent">
|
|
1058
|
+
<!-- Hero Header -->
|
|
1059
|
+
<header class="hero-header">
|
|
1060
|
+
<div class="album-art-hero">
|
|
1061
|
+
<div class="hero-art-glow"></div>
|
|
1062
|
+
<!-- Procedural Geometric Soundwave Art -->
|
|
1063
|
+
<svg width="110" height="110" viewBox="0 0 100 100" fill="none" aria-hidden="true">
|
|
1064
|
+
<circle cx="50" cy="50" r="42" stroke="rgba(255,255,255,0.18)" stroke-width="2"/>
|
|
1065
|
+
<circle cx="50" cy="50" r="30" stroke="rgba(30,215,96,0.5)" stroke-width="2.5" stroke-dasharray="4 6"/>
|
|
1066
|
+
<circle cx="50" cy="50" r="18" fill="rgba(30,215,96,0.3)"/>
|
|
1067
|
+
<path d="M42 36v28l22-14-22-14z" fill="#ffffff"/>
|
|
1068
|
+
</svg>
|
|
1069
|
+
</div>
|
|
1070
|
+
|
|
1071
|
+
<div class="hero-info">
|
|
1072
|
+
<span class="tag-badge">
|
|
1073
|
+
<span class="tag-dot"></span>
|
|
1074
|
+
Curated Playlist
|
|
1075
|
+
</span>
|
|
1076
|
+
<h1 class="hero-title">Deep Focus Flow</h1>
|
|
1077
|
+
<p class="hero-meta">
|
|
1078
|
+
<strong>Spotify Curated</strong> •
|
|
1079
|
+
<span>1,420,840 saves</span> •
|
|
1080
|
+
<span>50 songs, about 3 hr 15 min</span>
|
|
1081
|
+
</p>
|
|
1082
|
+
<div class="hero-actions">
|
|
1083
|
+
<button class="btn-play-hero" id="heroPlayBtn" aria-label="Play Deep Focus Flow">
|
|
1084
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/></svg>
|
|
1085
|
+
</button>
|
|
1086
|
+
<button class="btn-action-circle" id="btnHeartHero" aria-label="Save to Your Library">
|
|
1087
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
|
|
1088
|
+
</button>
|
|
1089
|
+
</div>
|
|
1090
|
+
</div>
|
|
1091
|
+
</header>
|
|
1092
|
+
|
|
1093
|
+
<!-- Realtime 36-Bar Vertical Frequency Spectrum Visualizer -->
|
|
1094
|
+
<section class="waveform-card" aria-label="Audio Waveform Spectrum">
|
|
1095
|
+
<div class="waveform-header">
|
|
1096
|
+
<div class="waveform-title">
|
|
1097
|
+
<div class="pulse-dot"></div>
|
|
1098
|
+
<span>Real-time Audio Spectrum (Spatial Glassmorphism)</span>
|
|
1099
|
+
</div>
|
|
1100
|
+
<div class="waveform-meta">
|
|
1101
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
|
|
1102
|
+
<span>48.0 kHz • Lossless • 114 dB</span>
|
|
1103
|
+
</div>
|
|
1104
|
+
</div>
|
|
1105
|
+
<div class="waveform-spectrum" id="waveform">
|
|
1106
|
+
<!-- 36 Equalizer Frequency Bars -->
|
|
1107
|
+
<div class="spectrum-bar" style="height: 24px;"></div>
|
|
1108
|
+
<div class="spectrum-bar" style="height: 38px;"></div>
|
|
1109
|
+
<div class="spectrum-bar" style="height: 48px;"></div>
|
|
1110
|
+
<div class="spectrum-bar" style="height: 32px;"></div>
|
|
1111
|
+
<div class="spectrum-bar" style="height: 52px;"></div>
|
|
1112
|
+
<div class="spectrum-bar" style="height: 60px;"></div>
|
|
1113
|
+
<div class="spectrum-bar" style="height: 44px;"></div>
|
|
1114
|
+
<div class="spectrum-bar" style="height: 56px;"></div>
|
|
1115
|
+
<div class="spectrum-bar" style="height: 40px;"></div>
|
|
1116
|
+
<div class="spectrum-bar" style="height: 34px;"></div>
|
|
1117
|
+
<div class="spectrum-bar" style="height: 48px;"></div>
|
|
1118
|
+
<div class="spectrum-bar" style="height: 58px;"></div>
|
|
1119
|
+
<div class="spectrum-bar" style="height: 42px;"></div>
|
|
1120
|
+
<div class="spectrum-bar" style="height: 30px;"></div>
|
|
1121
|
+
<div class="spectrum-bar" style="height: 50px;"></div>
|
|
1122
|
+
<div class="spectrum-bar" style="height: 62px;"></div>
|
|
1123
|
+
<div class="spectrum-bar" style="height: 46px;"></div>
|
|
1124
|
+
<div class="spectrum-bar" style="height: 36px;"></div>
|
|
1125
|
+
<div class="spectrum-bar" style="height: 52px;"></div>
|
|
1126
|
+
<div class="spectrum-bar" style="height: 58px;"></div>
|
|
1127
|
+
<div class="spectrum-bar" style="height: 44px;"></div>
|
|
1128
|
+
<div class="spectrum-bar" style="height: 32px;"></div>
|
|
1129
|
+
<div class="spectrum-bar" style="height: 48px;"></div>
|
|
1130
|
+
<div class="spectrum-bar" style="height: 54px;"></div>
|
|
1131
|
+
<div class="spectrum-bar" style="height: 38px;"></div>
|
|
1132
|
+
<div class="spectrum-bar" style="height: 28px;"></div>
|
|
1133
|
+
<div class="spectrum-bar" style="height: 46px;"></div>
|
|
1134
|
+
<div class="spectrum-bar" style="height: 52px;"></div>
|
|
1135
|
+
<div class="spectrum-bar" style="height: 34px;"></div>
|
|
1136
|
+
<div class="spectrum-bar" style="height: 26px;"></div>
|
|
1137
|
+
<div class="spectrum-bar" style="height: 40px;"></div>
|
|
1138
|
+
<div class="spectrum-bar" style="height: 48px;"></div>
|
|
1139
|
+
<div class="spectrum-bar" style="height: 30px;"></div>
|
|
1140
|
+
<div class="spectrum-bar" style="height: 22px;"></div>
|
|
1141
|
+
<div class="spectrum-bar" style="height: 36px;"></div>
|
|
1142
|
+
<div class="spectrum-bar" style="height: 20px;"></div>
|
|
1143
|
+
</div>
|
|
1144
|
+
</section>
|
|
1145
|
+
|
|
1146
|
+
<!-- Bento Grid: Featured Albums with High-Fidelity SVG Art -->
|
|
1147
|
+
<section class="bento-section" aria-label="Featured Albums">
|
|
1148
|
+
<h2 class="section-title">Jump Back In</h2>
|
|
1149
|
+
<div class="bento-grid">
|
|
1150
|
+
|
|
1151
|
+
<article class="album-card">
|
|
1152
|
+
<div class="album-thumb-container">
|
|
1153
|
+
<div class="album-thumb-art" style="background: linear-gradient(135deg in oklch, #1e3a8a 0%, #0f172a 100%);">
|
|
1154
|
+
<!-- Neoclassical Piano Harmonic Waves -->
|
|
1155
|
+
<svg width="80" height="80" viewBox="0 0 100 100" fill="none" aria-hidden="true">
|
|
1156
|
+
<path d="M20 75V25h12v50H20zm16 0V25h12v50H36zm16 0V25h12v50H52zm16 0V25h12v50H68z" fill="rgba(255,255,255,0.85)"/>
|
|
1157
|
+
<path d="M28 25v30h8V25h-8zm16 0v30h8V25h-8zm16 0v30h8V25h-8z" fill="#000000"/>
|
|
1158
|
+
<path d="M15 85c25-10 45-10 70 0" stroke="#38bdf8" stroke-width="3" stroke-linecap="round"/>
|
|
1159
|
+
</svg>
|
|
1160
|
+
</div>
|
|
1161
|
+
<button class="album-play-overlay" aria-label="Play Cinematic Piano">
|
|
1162
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/></svg>
|
|
1163
|
+
</button>
|
|
1164
|
+
</div>
|
|
1165
|
+
<div class="album-info">
|
|
1166
|
+
<div class="album-name">Cinematic Piano</div>
|
|
1167
|
+
<div class="album-artist">Peaceful neoclassical compositions</div>
|
|
1168
|
+
</div>
|
|
1169
|
+
</article>
|
|
1170
|
+
|
|
1171
|
+
<article class="album-card">
|
|
1172
|
+
<div class="album-thumb-container">
|
|
1173
|
+
<div class="album-thumb-art" style="background: linear-gradient(135deg in oklch, #065f46 0%, #064e3b 100%);">
|
|
1174
|
+
<!-- Botanical Organic Textures -->
|
|
1175
|
+
<svg width="80" height="80" viewBox="0 0 100 100" fill="none" aria-hidden="true">
|
|
1176
|
+
<circle cx="50" cy="50" r="32" stroke="#34d399" stroke-width="2" stroke-dasharray="6 6"/>
|
|
1177
|
+
<path d="M50 20c15 15 20 35 0 60-20-25-15-45 0-60z" fill="#10b981" opacity="0.8"/>
|
|
1178
|
+
<circle cx="50" cy="50" r="8" fill="#a7f3d0"/>
|
|
1179
|
+
</svg>
|
|
1180
|
+
</div>
|
|
1181
|
+
<button class="album-play-overlay" aria-label="Play Atmospheric Soundscapes">
|
|
1182
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/></svg>
|
|
1183
|
+
</button>
|
|
1184
|
+
</div>
|
|
1185
|
+
<div class="album-info">
|
|
1186
|
+
<div class="album-name">Atmospheric Soundscapes</div>
|
|
1187
|
+
<div class="album-artist">Deep organic textures & drone</div>
|
|
1188
|
+
</div>
|
|
1189
|
+
</article>
|
|
1190
|
+
|
|
1191
|
+
<article class="album-card">
|
|
1192
|
+
<div class="album-thumb-container">
|
|
1193
|
+
<div class="album-thumb-art" style="background: linear-gradient(135deg in oklch, #701a75 0%, #3b0764 100%);">
|
|
1194
|
+
<!-- Cosmic Retrowave Grid & Sun -->
|
|
1195
|
+
<svg width="80" height="80" viewBox="0 0 100 100" fill="none" aria-hidden="true">
|
|
1196
|
+
<circle cx="50" cy="45" r="26" fill="url(#sunGrad)"/>
|
|
1197
|
+
<defs>
|
|
1198
|
+
<linearGradient id="sunGrad" x1="0" y1="0" x2="0" y2="1">
|
|
1199
|
+
<stop offset="0%" stop-color="#f43f5e"/>
|
|
1200
|
+
<stop offset="100%" stop-color="#fbbf24"/>
|
|
1201
|
+
</linearGradient>
|
|
1202
|
+
</defs>
|
|
1203
|
+
<path d="M15 75h70M25 82h50M35 88h30" stroke="#f472b6" stroke-width="2.5" stroke-linecap="round"/>
|
|
1204
|
+
</svg>
|
|
1205
|
+
</div>
|
|
1206
|
+
<button class="album-play-overlay" aria-label="Play Cosmic Retrowave">
|
|
1207
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/></svg>
|
|
1208
|
+
</button>
|
|
1209
|
+
</div>
|
|
1210
|
+
<div class="album-info">
|
|
1211
|
+
<div class="album-name">Cosmic Retrowave</div>
|
|
1212
|
+
<div class="album-artist">Analog synthesizers & slow pulse</div>
|
|
1213
|
+
</div>
|
|
1214
|
+
</article>
|
|
1215
|
+
|
|
1216
|
+
<article class="album-card">
|
|
1217
|
+
<div class="album-thumb-container">
|
|
1218
|
+
<div class="album-thumb-art" style="background: linear-gradient(135deg in oklch, #9a3412 0%, #451a03 100%);">
|
|
1219
|
+
<!-- Lo-Fi Warm Tape Vinyl Reel -->
|
|
1220
|
+
<svg width="80" height="80" viewBox="0 0 100 100" fill="none" aria-hidden="true">
|
|
1221
|
+
<circle cx="50" cy="50" r="36" stroke="#fdba74" stroke-width="3"/>
|
|
1222
|
+
<circle cx="50" cy="50" r="24" stroke="rgba(253,186,116,0.3)" stroke-width="2" stroke-dasharray="3 3"/>
|
|
1223
|
+
<circle cx="50" cy="50" r="10" fill="#fed7aa"/>
|
|
1224
|
+
<circle cx="50" cy="50" r="4" fill="#451a03"/>
|
|
1225
|
+
</svg>
|
|
1226
|
+
</div>
|
|
1227
|
+
<button class="album-play-overlay" aria-label="Play Lo-Fi Study Session">
|
|
1228
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/></svg>
|
|
1229
|
+
</button>
|
|
1230
|
+
</div>
|
|
1231
|
+
<div class="album-info">
|
|
1232
|
+
<div class="album-name">Lo-Fi Study Session</div>
|
|
1233
|
+
<div class="album-artist">Warm tape vinyl & gentle chords</div>
|
|
1234
|
+
</div>
|
|
1235
|
+
</article>
|
|
1236
|
+
|
|
1237
|
+
</div>
|
|
1238
|
+
</section>
|
|
1239
|
+
</main>
|
|
1240
|
+
</div>
|
|
1241
|
+
|
|
1242
|
+
<!-- Persistent Floating Glass Audio Player Bar -->
|
|
1243
|
+
<footer class="player-bar" aria-label="Now Playing Audio Controller">
|
|
1244
|
+
<!-- Left: Track Metadata -->
|
|
1245
|
+
<div class="now-playing">
|
|
1246
|
+
<div class="now-playing-thumb" aria-hidden="true">
|
|
1247
|
+
<svg width="54" height="54" viewBox="0 0 54 54" fill="none">
|
|
1248
|
+
<rect width="54" height="54" fill="#064e3b"/>
|
|
1249
|
+
<circle cx="27" cy="27" r="16" stroke="#10b981" stroke-width="2"/>
|
|
1250
|
+
<circle cx="27" cy="27" r="6" fill="#34d399"/>
|
|
1251
|
+
</svg>
|
|
1252
|
+
</div>
|
|
1253
|
+
<div class="now-playing-meta">
|
|
1254
|
+
<span class="track-title" id="trackTitle">Resonance in D Minor</span>
|
|
1255
|
+
<span class="track-artist" id="trackArtist">Kavinsky Studio Ensemble</span>
|
|
1256
|
+
</div>
|
|
1257
|
+
<button class="btn-icon-subtle" id="btnHeartBar" aria-label="Add to Liked Songs">
|
|
1258
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
|
|
1259
|
+
</button>
|
|
1260
|
+
</div>
|
|
1261
|
+
|
|
1262
|
+
<!-- Center: Playback Controls & Progress -->
|
|
1263
|
+
<div class="player-controls">
|
|
1264
|
+
<div class="control-buttons">
|
|
1265
|
+
<button class="btn-icon" aria-label="Shuffle playback">
|
|
1266
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M10.59 9.17 5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.42-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.12z"/></svg>
|
|
1267
|
+
</button>
|
|
1268
|
+
<button class="btn-icon" id="btnPrev" aria-label="Previous track">
|
|
1269
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m6 6h2v12H6zm3.5 6 8.5 6V6z"/></svg>
|
|
1270
|
+
</button>
|
|
1271
|
+
<button class="btn-play-main" id="btnPlayPause" aria-label="Play track">
|
|
1272
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" id="playIcon" aria-hidden="true"><path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/></svg>
|
|
1273
|
+
</button>
|
|
1274
|
+
<button class="btn-icon" id="btnNext" aria-label="Next track">
|
|
1275
|
+
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m6 18 8.5-6L6 6v12zM16 6v12h2V6h-2z"/></svg>
|
|
1276
|
+
</button>
|
|
1277
|
+
<button class="btn-icon" aria-label="Repeat track">
|
|
1278
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/></svg>
|
|
1279
|
+
</button>
|
|
1280
|
+
</div>
|
|
1281
|
+
|
|
1282
|
+
<!-- Scrubber: Isolated Hit-Target Area (Transparent 44px Container + 4px Track + 12px Thumb) -->
|
|
1283
|
+
<div class="playback-bar">
|
|
1284
|
+
<span class="time-stamp" id="currentTime">1:24</span>
|
|
1285
|
+
<div class="progress-slider" id="progressSlider" role="slider" aria-label="Audio playback seeker" aria-valuemin="0" aria-valuemax="100" aria-valuenow="38" tabindex="0">
|
|
1286
|
+
<div class="progress-track">
|
|
1287
|
+
<div class="progress-fill" id="progressFill">
|
|
1288
|
+
<div class="progress-thumb"></div>
|
|
1289
|
+
</div>
|
|
1290
|
+
</div>
|
|
1291
|
+
</div>
|
|
1292
|
+
<span class="time-stamp" id="totalDuration">3:42</span>
|
|
1293
|
+
</div>
|
|
1294
|
+
</div>
|
|
1295
|
+
|
|
1296
|
+
<!-- Right: Volume & Extras -->
|
|
1297
|
+
<div class="extra-controls">
|
|
1298
|
+
<button class="btn-icon" id="btnMute" aria-label="Mute audio">
|
|
1299
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" id="volumeIcon" aria-hidden="true"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>
|
|
1300
|
+
</button>
|
|
1301
|
+
<!-- Volume Slider: Isolated Hit-Target Area (No collision with curved capsule borders!) -->
|
|
1302
|
+
<div class="volume-slider" id="volumeSlider" role="slider" aria-label="Audio volume controller" aria-valuemin="0" aria-valuemax="100" aria-valuenow="72" tabindex="0">
|
|
1303
|
+
<div class="volume-track">
|
|
1304
|
+
<div class="volume-fill" id="volumeFill">
|
|
1305
|
+
<div class="volume-thumb"></div>
|
|
1306
|
+
</div>
|
|
1307
|
+
</div>
|
|
1308
|
+
</div>
|
|
1309
|
+
</div>
|
|
1310
|
+
</footer>
|
|
1311
|
+
|
|
1312
|
+
<script>
|
|
1313
|
+
// Interactive Audio Simulation & Physics Engine
|
|
1314
|
+
(function() {
|
|
1315
|
+
const btnPlay = document.getElementById('btnPlayPause');
|
|
1316
|
+
const heroPlay = document.getElementById('heroPlayBtn');
|
|
1317
|
+
const playIcon = document.getElementById('playIcon');
|
|
1318
|
+
const progressSlider = document.getElementById('progressSlider');
|
|
1319
|
+
const progressFill = document.getElementById('progressFill');
|
|
1320
|
+
const currentTimeEl = document.getElementById('currentTime');
|
|
1321
|
+
const volumeSlider = document.getElementById('volumeSlider');
|
|
1322
|
+
const volumeFill = document.getElementById('volumeFill');
|
|
1323
|
+
const volumeIcon = document.getElementById('volumeIcon');
|
|
1324
|
+
const btnMute = document.getElementById('btnMute');
|
|
1325
|
+
const waveform = document.getElementById('waveform');
|
|
1326
|
+
const bars = waveform.querySelectorAll('.spectrum-bar');
|
|
1327
|
+
const heartHero = document.getElementById('btnHeartHero');
|
|
1328
|
+
const heartBar = document.getElementById('btnHeartBar');
|
|
1329
|
+
|
|
1330
|
+
let isPlaying = false;
|
|
1331
|
+
let currentSeconds = 84;
|
|
1332
|
+
const totalSeconds = 222; // 3:42
|
|
1333
|
+
let timer = null;
|
|
1334
|
+
let waveTimer = null;
|
|
1335
|
+
let lastVolume = 72;
|
|
1336
|
+
let currentVolume = 72;
|
|
1337
|
+
|
|
1338
|
+
function formatTime(sec) {
|
|
1339
|
+
const m = Math.floor(sec / 60);
|
|
1340
|
+
const s = sec % 60;
|
|
1341
|
+
return m + ':' + (s < 10 ? '0' : '') + s;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
function updateWaveformSpectrum() {
|
|
1345
|
+
if (!isPlaying) return;
|
|
1346
|
+
bars.forEach((bar, idx) => {
|
|
1347
|
+
// Dynamic organic wave height with frequency distribution
|
|
1348
|
+
const baseHeight = 16 + Math.sin((Date.now() / 180) + idx * 0.4) * 20 + Math.cos((Date.now() / 240) + idx * 0.6) * 14;
|
|
1349
|
+
const clamped = Math.max(8, Math.min(62, baseHeight + (Math.sin(idx * 0.5) * 12)));
|
|
1350
|
+
bar.style.height = clamped + 'px';
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
function togglePlay() {
|
|
1355
|
+
isPlaying = !isPlaying;
|
|
1356
|
+
if (isPlaying) {
|
|
1357
|
+
playIcon.innerHTML = '<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/>';
|
|
1358
|
+
btnPlay.setAttribute('aria-label', 'Pause track');
|
|
1359
|
+
heroPlay.setAttribute('aria-label', 'Pause Deep Focus Flow');
|
|
1360
|
+
timer = setInterval(tick, 1000);
|
|
1361
|
+
waveTimer = setInterval(updateWaveformSpectrum, 80);
|
|
1362
|
+
} else {
|
|
1363
|
+
playIcon.innerHTML = '<path d="m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z"/>';
|
|
1364
|
+
btnPlay.setAttribute('aria-label', 'Play track');
|
|
1365
|
+
heroPlay.setAttribute('aria-label', 'Play Deep Focus Flow');
|
|
1366
|
+
clearInterval(timer);
|
|
1367
|
+
clearInterval(waveTimer);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
function tick() {
|
|
1372
|
+
currentSeconds++;
|
|
1373
|
+
if (currentSeconds > totalSeconds) currentSeconds = 0;
|
|
1374
|
+
currentTimeEl.textContent = formatTime(currentSeconds);
|
|
1375
|
+
const pct = (currentSeconds / totalSeconds) * 100;
|
|
1376
|
+
progressFill.style.width = pct + '%';
|
|
1377
|
+
progressSlider.setAttribute('aria-valuenow', Math.round(pct));
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
btnPlay.addEventListener('click', togglePlay);
|
|
1381
|
+
heroPlay.addEventListener('click', togglePlay);
|
|
1382
|
+
|
|
1383
|
+
// Scrubber Seek Interaction
|
|
1384
|
+
function seek(e) {
|
|
1385
|
+
const rect = progressSlider.getBoundingClientRect();
|
|
1386
|
+
const clientX = e.clientX || (e.touches && e.touches[0].clientX);
|
|
1387
|
+
const ratio = Math.max(0, Math.min(1, (clientX - rect.left) / rect.width));
|
|
1388
|
+
currentSeconds = Math.round(ratio * totalSeconds);
|
|
1389
|
+
currentTimeEl.textContent = formatTime(currentSeconds);
|
|
1390
|
+
progressFill.style.width = (ratio * 100) + '%';
|
|
1391
|
+
progressSlider.setAttribute('aria-valuenow', Math.round(ratio * 100));
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
progressSlider.addEventListener('click', seek);
|
|
1395
|
+
|
|
1396
|
+
// Volume Slider Interaction
|
|
1397
|
+
function setVolume(pct) {
|
|
1398
|
+
currentVolume = Math.max(0, Math.min(100, pct));
|
|
1399
|
+
volumeFill.style.width = currentVolume + '%';
|
|
1400
|
+
volumeSlider.setAttribute('aria-valuenow', Math.round(currentVolume));
|
|
1401
|
+
if (currentVolume === 0) {
|
|
1402
|
+
volumeIcon.innerHTML = '<path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z"/>';
|
|
1403
|
+
} else {
|
|
1404
|
+
volumeIcon.innerHTML = '<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>';
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
volumeSlider.addEventListener('click', function(e) {
|
|
1409
|
+
const rect = volumeSlider.getBoundingClientRect();
|
|
1410
|
+
const clientX = e.clientX || (e.touches && e.touches[0].clientX);
|
|
1411
|
+
const pct = ((clientX - rect.left) / rect.width) * 100;
|
|
1412
|
+
setVolume(pct);
|
|
1413
|
+
});
|
|
1414
|
+
|
|
1415
|
+
btnMute.addEventListener('click', function() {
|
|
1416
|
+
if (currentVolume > 0) {
|
|
1417
|
+
lastVolume = currentVolume;
|
|
1418
|
+
setVolume(0);
|
|
1419
|
+
} else {
|
|
1420
|
+
setVolume(lastVolume || 72);
|
|
1421
|
+
}
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1424
|
+
// Heart toggles
|
|
1425
|
+
function toggleHeart(btn) {
|
|
1426
|
+
btn.classList.toggle('active');
|
|
1427
|
+
}
|
|
1428
|
+
heartHero.addEventListener('click', () => toggleHeart(heartHero));
|
|
1429
|
+
heartBar.addEventListener('click', () => toggleHeart(heartBar));
|
|
1430
|
+
|
|
1431
|
+
// Card Play Overlays
|
|
1432
|
+
document.querySelectorAll('.album-play-overlay').forEach(btn => {
|
|
1433
|
+
btn.addEventListener('click', function(e) {
|
|
1434
|
+
e.stopPropagation();
|
|
1435
|
+
const card = this.closest('.album-card');
|
|
1436
|
+
const name = card.querySelector('.album-name').textContent;
|
|
1437
|
+
const artist = card.querySelector('.album-artist').textContent;
|
|
1438
|
+
document.getElementById('trackTitle').textContent = name;
|
|
1439
|
+
document.getElementById('trackArtist').textContent = artist;
|
|
1440
|
+
if (!isPlaying) togglePlay();
|
|
1441
|
+
});
|
|
1442
|
+
});
|
|
1443
|
+
})();
|
|
1444
|
+
</script>
|
|
1445
|
+
</body>
|
|
1446
|
+
</html>
|