/
/
/
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>Music Assistant</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=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
10 <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0&display=swap" rel="stylesheet">
11 <style>
12 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
13
14 :root {
15 --bg: #1a1a1a;
16 --sidebar-bg: #212121;
17 --surface: #2a2a2a;
18 --text: #e0e0e0;
19 --text-dim: #999;
20 --text-menu: #bbb;
21 --accent: #fff;
22 --menu-active: #e0e0e0;
23 --sidebar-w: 220px;
24 --font: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
25 --lyrics-bottom-offset: 140px;
26 }
27
28 html, body {
29 height: 100%; overflow: hidden;
30 background: var(--bg); color: var(--text);
31 font-family: var(--font); font-size: 15px;
32 }
33
34 /* --- Main layout: sidebar + content --- */
35 #app {
36 height: 100%; display: flex;
37 }
38
39 /* --- Sidebar --- */
40 #sidebar {
41 width: var(--sidebar-w); flex-shrink: 0;
42 background: var(--sidebar-bg);
43 display: flex; flex-direction: column;
44 border-right: 1px solid rgba(255,255,255,0.06);
45 z-index: 10;
46 }
47
48 #sidebar-header {
49 padding: 24px 20px 18px;
50 font-size: 1.15rem; font-weight: 600;
51 color: var(--accent);
52 letter-spacing: -0.01em;
53 }
54
55 #menu { list-style: none; flex: 1; padding: 0 8px; overflow-y: auto; }
56
57 .menu-item {
58 display: flex; align-items: center; gap: 12px;
59 padding: 10px 14px; margin: 2px 0;
60 border-radius: 8px; cursor: pointer;
61 color: var(--text-menu); font-size: 0.92rem;
62 transition: background 0.15s, color 0.15s;
63 }
64 .menu-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
65 .menu-item.active { background: rgba(255,255,255,0.1); color: var(--accent); font-weight: 500; }
66 .menu-item .material-symbols-rounded { font-size: 20px; opacity: 0.7; }
67 .menu-item.active .material-symbols-rounded { opacity: 1; }
68
69 /* --- Right panel --- */
70 #main {
71 flex: 1; display: flex; flex-direction: column;
72 min-width: 0; position: relative;
73 }
74
75 /* Content header with back button */
76 #content-header {
77 display: none; align-items: center; gap: 12px;
78 padding: 12px 20px;
79 background: rgba(255,255,255,0.03);
80 border-bottom: 1px solid rgba(255,255,255,0.05);
81 }
82 #content-header.visible { display: flex; }
83
84 #btn-back {
85 width: 32px; height: 32px; border-radius: 50%; border: none;
86 background: rgba(255,255,255,0.08); color: var(--text);
87 cursor: pointer; display: flex; align-items: center; justify-content: center;
88 transition: background 0.15s;
89 }
90 #btn-back:hover { background: rgba(255,255,255,0.15); }
91 #btn-back .material-symbols-rounded { font-size: 20px; }
92
93 #content-title {
94 flex: 1; font-size: 0.95rem; font-weight: 500;
95 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
96 }
97
98 /* --- Content area --- */
99 #content {
100 flex: 1; overflow-y: auto; overflow-x: hidden;
101 padding: 16px 20px;
102 }
103 #content::-webkit-scrollbar { width: 6px; }
104 #content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
105
106 /* Grid (albums, artists, playlists) */
107 .content-grid {
108 display: grid;
109 grid-template-columns: repeat(var(--cols, 4), 1fr);
110 gap: 16px;
111 }
112
113 .card {
114 cursor: pointer; border-radius: 8px;
115 background: var(--surface); overflow: hidden;
116 transition: transform 0.15s, background 0.15s;
117 animation: fadeIn 0.3s ease both;
118 }
119 .card:hover { transform: scale(1.02); background: #333; }
120 .card:active { transform: scale(0.98); }
121
122 .card-img { aspect-ratio: 1; overflow: hidden; background: #333; }
123 .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
124 .card-img--empty {
125 display: flex; align-items: center; justify-content: center;
126 color: var(--text-dim); font-size: 2rem;
127 }
128 .card-body { padding: 10px 12px; }
129 .card-title {
130 font-weight: 500; font-size: 0.88rem;
131 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
132 }
133 .card-sub {
134 color: var(--text-dim); font-size: 0.78rem; margin-top: 3px;
135 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
136 }
137
138 /* Track list */
139 .track-list { display: flex; flex-direction: column; }
140
141 .track-row {
142 display: flex; align-items: center; gap: 12px;
143 padding: 8px 12px; border-radius: 6px;
144 cursor: pointer; transition: background 0.12s;
145 animation: fadeIn 0.25s ease both;
146 }
147 .track-row:hover { background: rgba(255,255,255,0.06); }
148 .track-row:active { background: rgba(255,255,255,0.1); }
149
150 .track-art {
151 width: 48px; height: 48px; border-radius: 4px;
152 object-fit: cover; background: #333; flex-shrink: 0;
153 }
154 .track-art--empty {
155 width: 48px; height: 48px; border-radius: 4px;
156 background: #333; flex-shrink: 0;
157 display: flex; align-items: center; justify-content: center;
158 color: var(--text-dim); font-size: 1.2rem;
159 }
160 .track-info { flex: 1; min-width: 0; }
161 .track-title {
162 font-weight: 500; font-size: 0.9rem; color: var(--text);
163 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
164 }
165 .track-sub {
166 color: var(--text-dim); font-size: 0.8rem; margin-top: 2px;
167 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
168 }
169
170 /* --- Player bar --- */
171 #player-bar {
172 display: none; align-items: center; gap: 14px;
173 padding: 10px 20px;
174 background: #181818;
175 border-top: 1px solid rgba(255,255,255,0.08);
176 z-index: 20;
177 }
178 #player-bar.active { display: flex; }
179
180 #player-art { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
181
182 #bar-info { flex: 1; min-width: 0; cursor: pointer; }
183 #bar-title { font-weight: 500; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
184 #bar-artist { color: var(--text-dim); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
185
186 .controls { display: flex; align-items: center; gap: 6px; }
187 .ctrl {
188 width: 36px; height: 36px; border-radius: 50%; border: none;
189 background: transparent; color: var(--text); cursor: pointer;
190 display: flex; align-items: center; justify-content: center;
191 transition: background 0.12s, color 0.12s;
192 }
193 .ctrl:hover { background: rgba(255,255,255,0.1); }
194 .ctrl--primary { width: 40px; height: 40px; background: #fff; color: #1a1a1a; }
195 .ctrl--primary:hover { background: #ddd; color: #1a1a1a; }
196
197 .progress { display: flex; align-items: center; gap: 8px; }
198 .time { color: var(--text-dim); font-size: 0.72rem; font-variant-numeric: tabular-nums; min-width: 32px; }
199
200 input[type="range"] {
201 -webkit-appearance: none; appearance: none;
202 width: 120px; height: 3px;
203 background: rgba(255,255,255,0.15); border-radius: 2px; outline: none; cursor: pointer;
204 }
205 input[type="range"]::-webkit-slider-thumb {
206 -webkit-appearance: none; width: 12px; height: 12px;
207 border-radius: 50%; background: #fff; border: none;
208 }
209
210 /* --- Full player (normal mode) --- */
211 #player-full {
212 position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30;
213 display: flex;
214 background: #111;
215 opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
216 }
217 #player-full.active { opacity: 1; pointer-events: auto; }
218
219 /* Left panel: album art + track info + controls */
220 .full-left {
221 flex: 0 0 50%;
222 display: flex; flex-direction: column;
223 align-items: center; justify-content: center;
224 padding: 40px;
225 position: relative;
226 }
227
228 #full-art {
229 width: min(38vw, 38vh); height: min(38vw, 38vh);
230 border-radius: 8px; object-fit: cover;
231 box-shadow: 0 16px 48px rgba(0,0,0,0.5); margin-bottom: 24px;
232 }
233 #full-title { font-size: 1.2rem; font-weight: 600; text-align: center; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
234 #full-artist { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; text-align: center; }
235
236 .full-progress { display: flex; align-items: center; gap: 12px; margin-top: 24px; width: min(40vw, 380px); }
237 .full-progress input[type="range"] { flex: 1; height: 4px; }
238 .full-progress .time { font-size: 0.8rem; min-width: 38px; }
239
240 .full-controls { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
241 .full-controls .ctrl { width: 48px; height: 48px; }
242 .full-controls .ctrl--primary { width: 56px; height: 56px; }
243 .full-controls .ctrl .material-symbols-rounded { font-size: 26px; }
244 .full-controls .ctrl--primary .material-symbols-rounded { font-size: 32px; }
245
246 #full-browse {
247 margin-top: 28px; padding: 8px 24px;
248 border: 1px solid rgba(255,255,255,0.15); background: transparent;
249 color: var(--text-dim); border-radius: 20px; cursor: pointer;
250 font-family: var(--font); font-size: 0.82rem;
251 transition: border-color 0.2s, color 0.2s;
252 }
253 #full-browse:hover { border-color: #fff; color: #fff; }
254
255 /* Right panel: queue */
256 .full-right {
257 flex: 0 0 50%;
258 display: flex; flex-direction: column;
259 background: rgba(255,255,255,0.03);
260 border-left: 1px solid rgba(255,255,255,0.06);
261 }
262
263 .queue-header {
264 padding: 24px 24px 16px;
265 font-size: 0.85rem; font-weight: 600;
266 color: var(--text-dim);
267 letter-spacing: 0.04em;
268 text-transform: uppercase;
269 border-bottom: 1px solid rgba(255,255,255,0.06);
270 }
271
272 .queue-list {
273 flex: 1; overflow-y: auto; padding: 8px 12px;
274 }
275 .queue-list::-webkit-scrollbar { width: 5px; }
276 .queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
277
278 .queue-item {
279 display: flex; align-items: center; gap: 12px;
280 padding: 8px 12px; border-radius: 6px;
281 cursor: pointer; transition: background 0.12s;
282 }
283 .queue-item:hover { background: rgba(255,255,255,0.06); }
284 .queue-item.active { background: rgba(255,255,255,0.08); }
285
286 .queue-item-num {
287 width: 24px; text-align: center;
288 font-size: 0.78rem; color: var(--text-dim);
289 font-variant-numeric: tabular-nums; flex-shrink: 0;
290 }
291 .queue-item.active .queue-item-num {
292 color: #4caf50;
293 }
294
295 .queue-item-art {
296 width: 40px; height: 40px; border-radius: 4px;
297 object-fit: cover; background: #333; flex-shrink: 0;
298 }
299 .queue-item-art--empty {
300 width: 40px; height: 40px; border-radius: 4px;
301 background: #333; flex-shrink: 0;
302 display: flex; align-items: center; justify-content: center;
303 color: var(--text-dim); font-size: 1rem;
304 }
305
306 .queue-item-info { flex: 1; min-width: 0; }
307 .queue-item-title {
308 font-size: 0.85rem; font-weight: 500;
309 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
310 }
311 .queue-item.active .queue-item-title { color: #4caf50; }
312 .queue-item-sub {
313 color: var(--text-dim); font-size: 0.75rem; margin-top: 1px;
314 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
315 }
316 .queue-item-dur {
317 font-size: 0.75rem; color: var(--text-dim);
318 font-variant-numeric: tabular-nums; flex-shrink: 0;
319 }
320
321 .queue-empty {
322 padding: 40px 20px; text-align: center;
323 color: var(--text-dim); font-size: 0.9rem;
324 }
325
326 /* --- Search overlay --- */
327 #search-overlay {
328 position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40;
329 background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
330 display: flex; align-items: flex-start; justify-content: center;
331 padding-top: 12vh;
332 opacity: 0; pointer-events: none; transition: opacity 0.2s;
333 }
334 #search-overlay.active { opacity: 1; pointer-events: auto; }
335
336 .search-box { width: min(88vw, 460px); position: relative; }
337 #search-input {
338 width: 100%; padding: 14px 46px 14px 18px;
339 background: #2a2a2a; border: 1px solid rgba(255,255,255,0.1);
340 border-radius: 12px; color: var(--text);
341 font-family: var(--font); font-size: 1rem; outline: none;
342 }
343 #search-input:focus { border-color: rgba(255,255,255,0.3); }
344 #search-input::placeholder { color: var(--text-dim); }
345 #search-close {
346 position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
347 width: 34px; height: 34px; border-radius: 50%; border: none;
348 background: transparent; color: var(--text-dim); cursor: pointer;
349 display: flex; align-items: center; justify-content: center;
350 }
351
352 /* --- Loading --- */
353 #loading {
354 position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50;
355 display: flex; align-items: center; justify-content: center;
356 background: rgba(26,26,26,0.5);
357 opacity: 0; pointer-events: none; transition: opacity 0.15s;
358 }
359 #loading.active { opacity: 1; pointer-events: auto; }
360 .spinner {
361 width: 32px; height: 32px;
362 border: 3px solid rgba(255,255,255,0.1); border-top-color: #fff;
363 border-radius: 50%; animation: spin 0.7s linear infinite;
364 }
365
366 .empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 0.95rem; }
367
368 @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
369 @keyframes spin { to { transform: rotate(360deg); } }
370
371 /* =============================================
372 KIOSK MODE â Immersive Full-Screen
373 ============================================= */
374 body.kiosk-mode {
375 background: #000;
376 cursor: none;
377 }
378 body.kiosk-mode.controls-visible {
379 cursor: default;
380 }
381
382 body.kiosk-mode #app {
383 display: block;
384 }
385
386 body.kiosk-mode #sidebar,
387 body.kiosk-mode #main,
388 body.kiosk-mode #player-bar,
389 body.kiosk-mode #player-full,
390 body.kiosk-mode #search-overlay {
391 display: none !important;
392 }
393
394 /* Kiosk player container â full-screen three-column layout */
395 #kiosk-player {
396 display: none;
397 position: fixed;
398 top: 0; right: 0; bottom: 0; left: 0;
399 overflow: hidden;
400 background: #000;
401 }
402
403 body.kiosk-mode #kiosk-player {
404 display: flex;
405 }
406
407 /* Layer 1: Full-bleed background (behind columns) */
408 #kiosk-bg {
409 position: absolute;
410 top: 0; right: 0; bottom: 0; left: 0;
411 z-index: 0;
412 }
413
414 #kiosk-bg-img {
415 width: 100%;
416 height: 100%;
417 object-fit: contain;
418 filter: blur(20px) brightness(0.50) saturate(1.3);
419 opacity: 0;
420 transition: opacity 0.6s ease;
421 }
422
423 /* Vignette overlay */
424 #kiosk-bg::after {
425 content: '';
426 position: absolute;
427 top: 0; right: 0; bottom: 0; left: 0;
428 background: linear-gradient(
429 to bottom,
430 rgba(0,0,0,0.35) 0%,
431 transparent 35%,
432 transparent 55%,
433 rgba(0,0,0,0.70) 100%
434 );
435 pointer-events: none;
436 }
437
438 /* === Three-Column Layout === */
439 .kiosk-col-left,
440 .kiosk-col-center,
441 .kiosk-col-right {
442 position: relative;
443 z-index: 2;
444 display: flex;
445 flex-direction: column;
446 align-items: center;
447 justify-content: center;
448 }
449
450 /* Left column: album art */
451 .kiosk-col-left {
452 flex: 0 0 30%;
453 padding: 80px 20px 160px;
454 }
455
456 /* Center column: lyrics or equalizer */
457 .kiosk-col-center {
458 flex: 1;
459 padding: 10px 10px 160px;
460 min-width: 0;
461 justify-content: center;
462 position: relative;
463 }
464
465 /* Right column: queue */
466 .kiosk-col-right {
467 flex: 0 0 28%;
468 padding: 24px 0 160px;
469 justify-content: flex-start;
470 align-items: stretch;
471 }
472
473 /* Album art in left column */
474 #kiosk-art-center {
475 max-width: 90%;
476 max-height: 50vh;
477 width: auto;
478 height: auto;
479 object-fit: contain;
480 border-radius: 10px;
481 box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
482 opacity: 0;
483 transition: opacity 0.6s ease;
484 pointer-events: none;
485 }
486 #kiosk-player.playing #kiosk-art-center {
487 opacity: 1;
488 }
489
490 /* Track info under album art */
491 .kiosk-track-info {
492 margin-top: 24px;
493 text-align: center;
494 max-width: 90%;
495 opacity: 0;
496 transition: opacity 0.5s ease;
497 }
498 #kiosk-player.playing .kiosk-track-info {
499 opacity: 1;
500 }
501
502 #kiosk-title {
503 font-size: 1.3rem;
504 font-weight: 600;
505 color: #fff;
506 white-space: nowrap;
507 overflow: hidden;
508 text-overflow: ellipsis;
509 text-shadow: 0 2px 12px rgba(0,0,0,0.6);
510 }
511 #kiosk-artist {
512 font-size: 0.95rem;
513 color: rgba(255,255,255,0.7);
514 margin-top: 6px;
515 text-shadow: 0 2px 8px rgba(0,0,0,0.5);
516 }
517
518 /* Layer 2: Idle state */
519 #kiosk-idle {
520 position: absolute;
521 top: 0; right: 0; bottom: 0; left: 0;
522 display: flex;
523 flex-direction: column;
524 align-items: center;
525 justify-content: center;
526 gap: 16px;
527 opacity: 1;
528 transition: opacity 0.4s ease;
529 pointer-events: none;
530 z-index: 3;
531 }
532 #kiosk-idle .material-symbols-rounded {
533 font-size: 96px;
534 color: rgba(255,255,255,0.15);
535 }
536 #kiosk-idle-label {
537 font-size: 1rem;
538 color: rgba(255,255,255,0.35);
539 letter-spacing: 0.05em;
540 }
541
542 /* Hide idle when playing */
543 #kiosk-player.playing #kiosk-idle {
544 opacity: 0;
545 }
546
547 /* Layer 3: Sync indicator (top-right) */
548 #kiosk-sync-status {
549 position: absolute;
550 top: 20px;
551 right: 20px;
552 padding: 6px 14px;
553 border-radius: 4px;
554 font-size: 12px;
555 font-weight: 500;
556 color: #fff;
557 background: rgba(255, 152, 0, 0.9);
558 z-index: 10;
559 }
560 .sync-indicator.synced {
561 background: rgba(76, 175, 80, 0.9);
562 }
563 .sync-indicator.syncing {
564 background: rgba(255, 152, 0, 0.9);
565 animation: pulse 1.5s infinite;
566 }
567 .sync-indicator.error {
568 background: rgba(244, 67, 54, 0.9);
569 }
570
571 @keyframes pulse {
572 0%, 100% { opacity: 1; }
573 50% { opacity: 0.6; }
574 }
575
576 /* Party QR overlay (top-center) */
577 #kiosk-party {
578 position: absolute;
579 top: 20px;
580 left: 50%;
581 transform: translateX(-50%);
582 z-index: 10;
583 background: rgba(0, 0, 0, 0.55);
584 border-radius: 12px;
585 padding: 12px;
586 text-align: center;
587 max-width: 180px;
588 }
589 #kiosk-party[hidden] { display: none; }
590 #kiosk-party-qr {
591 display: block;
592 width: 140px;
593 height: 140px;
594 margin: 0 auto;
595 padding: 6px;
596 background: #fff;
597 border-radius: 8px;
598 }
599 #kiosk-party-name {
600 margin-top: 8px;
601 font-size: 15px;
602 font-weight: 600;
603 color: #fff;
604 }
605 #kiosk-party-text {
606 margin-top: 2px;
607 font-size: 12px;
608 color: rgba(255, 255, 255, 0.8);
609 }
610
611 /* === Karaoke lyrics (center column) === */
612 #kiosk-lyrics {
613 position: absolute;
614 top: 0; right: 0; bottom: 0; left: 0;
615 display: flex;
616 align-items: center;
617 justify-content: center;
618 padding-bottom: var(--lyrics-bottom-offset);
619 opacity: 0;
620 transition: opacity 0.5s ease;
621 pointer-events: none;
622 }
623 #kiosk-player.has-lyrics #kiosk-lyrics {
624 opacity: 1;
625 }
626
627 #kiosk-lyrics-scroll {
628 width: 100%;
629 max-width: 700px;
630 max-height: calc(100% - var(--lyrics-bottom-offset));
631 overflow: hidden;
632 -webkit-mask-image: linear-gradient(transparent 0%, black 10%, black 85%, transparent 100%);
633 mask-image: linear-gradient(transparent 0%, black 10%, black 85%, transparent 100%);
634 position: relative;
635 }
636
637 #kiosk-lyrics-inner {
638 display: flex;
639 flex-direction: column;
640 align-items: center;
641 gap: 20px;
642 transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
643 will-change: transform;
644 }
645
646 .lyric-line {
647 font-size: 1.35rem;
648 font-weight: 500;
649 color: rgba(255, 255, 255, 0.38);
650 text-align: center;
651 text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
652 transition: color 0.35s ease, font-size 0.35s ease, font-weight 0.35s ease;
653 line-height: 1.5;
654 max-width: 100%;
655 word-break: break-word;
656 }
657 .lyric-line.lp1 { color: rgba(255, 255, 255, 0.60); font-size: 1.45rem; }
658 .lyric-line.active {
659 color: #ffffff;
660 font-size: 1.75rem;
661 font-weight: 700;
662 text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 60px rgba(0, 0, 0, 0.6);
663 }
664 .lyric-line.ln1 { color: rgba(255, 255, 255, 0.55); font-size: 1.45rem; }
665
666 /* Plain text (no LRC): static */
667 #kiosk-player.has-lyrics.plain-lyrics #kiosk-lyrics-inner {
668 transition: none;
669 }
670 #kiosk-player.has-lyrics.plain-lyrics .lyric-line {
671 color: rgba(255, 255, 255, 0.80);
672 font-size: 1.1rem;
673 font-weight: 400;
674 gap: 10px;
675 }
676
677 /* === CSS Text Equalizer (center column, when no lyrics) === */
678 #kiosk-equalizer {
679 position: absolute;
680 top: 0; right: 0; bottom: 0; left: 0;
681 display: flex;
682 align-items: center;
683 justify-content: center;
684 opacity: 0;
685 transition: opacity 0.5s ease;
686 pointer-events: none;
687 }
688 #kiosk-player.playing:not(.has-lyrics) #kiosk-equalizer {
689 opacity: 1;
690 }
691
692 .eq-container {
693 display: flex;
694 align-items: flex-end;
695 justify-content: center;
696 gap: 6px;
697 height: 50vh;
698 max-height: 400px;
699 padding: 20px;
700 }
701
702 .eq-bar {
703 width: 8px;
704 border-radius: 4px;
705 background: linear-gradient(to top, rgba(76,175,80,0.9), rgba(129,199,132,0.7), rgba(200,230,201,0.5));
706 animation: eqBounce var(--eq-dur, 1s) var(--eq-delay, 0s) ease-in-out infinite alternate;
707 will-change: height;
708 min-height: 8px;
709 }
710
711 /* Live spectrum: heights are set inline from FFT data, no keyframes */
712 #eq-bars.eq-live .eq-bar {
713 animation: none;
714 transition: height 0.06s linear;
715 }
716
717 /* Kiosk display toggles (URL params controls/party/viz/lyrics = 0) */
718 #kiosk-player.kiosk-hide-controls #kiosk-controls-panel { display: none !important; }
719 #kiosk-player.kiosk-hide-party #kiosk-party { display: none !important; }
720 #kiosk-player.kiosk-hide-viz #kiosk-equalizer { display: none !important; }
721 #kiosk-player.kiosk-hide-lyrics #kiosk-lyrics { display: none !important; }
722
723 @keyframes eqBounce {
724 0% { height: var(--eq-min, 8px); opacity: 0.5; }
725 100% { height: var(--eq-max, 100px); opacity: 1; }
726 }
727
728 /* Pause equalizer animation when not playing */
729 #kiosk-player:not(.playing) .eq-bar {
730 animation-play-state: paused;
731 }
732
733 /* === Kiosk Queue (right column) === */
734 .kiosk-queue-header {
735 padding: 20px 20px 12px;
736 font-size: 0.8rem;
737 font-weight: 600;
738 color: rgba(255,255,255,0.5);
739 letter-spacing: 0.06em;
740 text-transform: uppercase;
741 border-bottom: 1px solid rgba(255,255,255,0.08);
742 }
743
744 #kiosk-queue-list {
745 flex: 1;
746 overflow-y: auto;
747 padding: 6px 8px;
748 }
749 #kiosk-queue-list::-webkit-scrollbar { width: 4px; }
750 #kiosk-queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
751
752 .kiosk-queue-item {
753 display: flex;
754 align-items: center;
755 gap: 10px;
756 padding: 7px 10px;
757 border-radius: 6px;
758 transition: background 0.12s;
759 }
760 .kiosk-queue-item:hover { background: rgba(255,255,255,0.06); }
761 .kiosk-queue-item.active { background: rgba(255,255,255,0.08); }
762
763 .kiosk-queue-num {
764 width: 22px;
765 text-align: center;
766 font-size: 0.72rem;
767 color: rgba(255,255,255,0.4);
768 font-variant-numeric: tabular-nums;
769 flex-shrink: 0;
770 }
771 .kiosk-queue-item.active .kiosk-queue-num { color: #4caf50; }
772
773 .kiosk-queue-art {
774 width: 36px; height: 36px;
775 border-radius: 4px;
776 object-fit: cover;
777 background: rgba(255,255,255,0.05);
778 flex-shrink: 0;
779 }
780 .kiosk-queue-art--empty {
781 width: 36px; height: 36px;
782 border-radius: 4px;
783 background: rgba(255,255,255,0.05);
784 flex-shrink: 0;
785 display: flex; align-items: center; justify-content: center;
786 color: rgba(255,255,255,0.3);
787 }
788
789 .kiosk-queue-info { flex: 1; min-width: 0; }
790 .kiosk-queue-title {
791 font-size: 0.82rem;
792 font-weight: 500;
793 color: rgba(255,255,255,0.85);
794 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
795 }
796 .kiosk-queue-item.active .kiosk-queue-title { color: #4caf50; }
797 .kiosk-queue-sub {
798 color: rgba(255,255,255,0.4);
799 font-size: 0.72rem;
800 margin-top: 1px;
801 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
802 }
803 .kiosk-queue-dur {
804 font-size: 0.72rem;
805 color: rgba(255,255,255,0.35);
806 font-variant-numeric: tabular-nums;
807 flex-shrink: 0;
808 }
809
810 .kiosk-queue-empty {
811 padding: 40px 16px;
812 text-align: center;
813 color: rgba(255,255,255,0.3);
814 font-size: 0.85rem;
815 }
816
817 /* Layer 5: Auto-hiding controls panel (bottom) */
818 #kiosk-controls-panel {
819 position: absolute;
820 bottom: 0;
821 left: 0;
822 right: 0;
823 padding: 28px 40px 36px;
824 backdrop-filter: blur(20px);
825 -webkit-backdrop-filter: blur(20px);
826 background: rgba(0, 0, 0, 0.75);
827 background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
828 transform: translateY(0);
829 transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
830 z-index: 5;
831 }
832 #kiosk-player.controls-hidden #kiosk-controls-panel {
833 transform: translateY(100%);
834 }
835
836 /* Seek row */
837 .kiosk-seek-row {
838 display: flex;
839 align-items: center;
840 gap: 16px;
841 margin-bottom: 20px;
842 }
843 .kiosk-seek-row .time {
844 font-size: 0.82rem;
845 color: rgba(255,255,255,0.6);
846 font-variant-numeric: tabular-nums;
847 min-width: 40px;
848 }
849 #kiosk-seek {
850 flex: 1;
851 height: 4px;
852 background: rgba(255,255,255,0.2);
853 border-radius: 2px;
854 }
855 #kiosk-seek::-webkit-slider-thumb {
856 width: 14px;
857 height: 14px;
858 }
859
860 /* Controls row */
861 .kiosk-controls {
862 display: flex;
863 align-items: center;
864 justify-content: center;
865 gap: 24px;
866 }
867 .kiosk-controls .ctrl {
868 width: 56px;
869 height: 56px;
870 border-radius: 50%;
871 border: none;
872 background: transparent;
873 color: rgba(255,255,255,0.85);
874 cursor: pointer;
875 display: flex;
876 align-items: center;
877 justify-content: center;
878 transition: background 0.15s, color 0.15s, transform 0.15s;
879 }
880 .kiosk-controls .ctrl:hover {
881 background: rgba(255,255,255,0.12);
882 color: #fff;
883 }
884 .kiosk-controls .ctrl:active {
885 transform: scale(0.92);
886 }
887 .kiosk-controls .ctrl .material-symbols-rounded {
888 font-size: 32px;
889 }
890 .kiosk-controls .ctrl--primary {
891 width: 72px;
892 height: 72px;
893 background: rgba(255,255,255,0.95);
894 color: #000;
895 }
896 .kiosk-controls .ctrl--primary:hover {
897 background: #fff;
898 color: #000;
899 }
900 .kiosk-controls .ctrl--primary .material-symbols-rounded {
901 font-size: 40px;
902 }
903
904 /* --- Responsive --- */
905 @media (max-width: 900px) {
906 .content-grid { --cols: 3 !important; }
907 #player-full { flex-direction: column; }
908 .full-left { flex: 0 0 auto; padding: 24px; }
909 .full-right { flex: 1; min-height: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
910 #full-art { width: min(35vw, 200px); height: min(35vw, 200px); margin-bottom: 16px; }
911 .full-progress { width: 80%; }
912
913 /* Kiosk: hide queue column on narrow screens */
914 .kiosk-col-right { display: none; }
915 .kiosk-col-left { flex: 0 0 35%; }
916 .kiosk-col-center { flex: 1; }
917 }
918 @media (max-width: 640px) {
919 :root { --sidebar-w: 180px; }
920 .content-grid { --cols: 2 !important; gap: 10px; }
921 #content { padding: 12px; }
922 .progress { display: none; }
923 .full-left { padding: 16px; }
924 #full-art { width: min(30vw, 160px); height: min(30vw, 160px); margin-bottom: 12px; }
925 #full-title { font-size: 1rem; }
926 .full-controls { gap: 12px; margin-top: 12px; }
927 .full-progress { margin-top: 16px; }
928 #full-browse { margin-top: 16px; }
929
930 /* Kiosk: single column on mobile */
931 .kiosk-col-left { flex: 0 0 100%; }
932 .kiosk-col-center { display: none; }
933 .kiosk-col-right { display: none; }
934 #kiosk-title { font-size: 1.1rem; }
935 #kiosk-artist { font-size: 0.85rem; }
936 #kiosk-controls-panel { padding: 20px 20px 28px; }
937 .kiosk-controls .ctrl { width: 48px; height: 48px; }
938 .kiosk-controls .ctrl--primary { width: 60px; height: 60px; }
939 .lyric-line { font-size: 1.1rem; }
940 .lyric-line.active { font-size: 1.4rem; }
941 .lyric-line.lp1, .lyric-line.ln1 { font-size: 1.2rem; }
942 }
943 @media (min-width: 1920px) {
944 html, body { font-size: 20px; }
945 .lyric-line { font-size: 1.8rem; }
946 .lyric-line.active { font-size: 2.2rem; }
947 #kiosk-title { font-size: 1.7rem; }
948 #kiosk-artist { font-size: 1.2rem; }
949 .kiosk-queue-title { font-size: 1rem; }
950 .kiosk-controls .ctrl { width: 72px; height: 72px; }
951 .kiosk-controls .ctrl--primary { width: 90px; height: 90px; }
952 }
953 </style>
954</head>
955<body>
956 <div id="app">
957 <!-- Sidebar (normal mode only) -->
958 <nav id="sidebar">
959 <div id="sidebar-header">Music Assistant</div>
960 <ul id="menu"></ul>
961 </nav>
962
963 <!-- Right panel (normal mode only) -->
964 <div id="main">
965 <div id="content-header">
966 <button id="btn-back"><span class="material-symbols-rounded">arrow_back</span></button>
967 <div id="content-title"></div>
968 </div>
969 <div id="content"></div>
970 <footer id="player-bar">
971 <img id="player-art" src="" alt="">
972 <div id="bar-info">
973 <div id="bar-title"></div>
974 <div id="bar-artist"></div>
975 </div>
976 <div class="controls">
977 <button id="btn-prev" class="ctrl"><span class="material-symbols-rounded">skip_previous</span></button>
978 <button id="btn-play" class="ctrl ctrl--primary"><span class="material-symbols-rounded">play_arrow</span></button>
979 <button id="btn-next" class="ctrl"><span class="material-symbols-rounded">skip_next</span></button>
980 </div>
981 <div class="progress">
982 <span id="bar-time" class="time">0:00</span>
983 <input type="range" id="bar-seek" min="0" max="100" value="0" step="0.1">
984 <span id="bar-dur" class="time">0:00</span>
985 </div>
986 </footer>
987 </div>
988
989 <!-- Full-screen player (normal mode only) -->
990 <div id="player-full">
991 <!-- Left: album art + info + controls -->
992 <div class="full-left">
993 <img id="full-art" src="" alt="">
994 <div id="full-title"></div>
995 <div id="full-artist"></div>
996 <div class="full-progress">
997 <span id="full-time" class="time">0:00</span>
998 <input type="range" id="full-seek" min="0" max="100" value="0" step="0.1">
999 <span id="full-dur" class="time">0:00</span>
1000 </div>
1001 <div class="full-controls">
1002 <button id="full-prev" class="ctrl"><span class="material-symbols-rounded">skip_previous</span></button>
1003 <button id="full-play" class="ctrl ctrl--primary"><span class="material-symbols-rounded">play_arrow</span></button>
1004 <button id="full-next" class="ctrl"><span class="material-symbols-rounded">skip_next</span></button>
1005 </div>
1006 <button id="full-browse">Browse Library</button>
1007 </div>
1008 <!-- Right: playback queue -->
1009 <div class="full-right">
1010 <div class="queue-header">Queue</div>
1011 <div id="queue-list" class="queue-list">
1012 <div class="queue-empty">No tracks in queue</div>
1013 </div>
1014 </div>
1015 </div>
1016
1017 <!-- Kiosk player (kiosk mode only) â three-column layout -->
1018 <div id="kiosk-player">
1019 <!-- Background layer (behind columns) -->
1020 <div id="kiosk-bg">
1021 <img id="kiosk-bg-img" src="" alt="" aria-hidden="true">
1022 </div>
1023
1024 <!-- Idle state overlay (nothing playing) -->
1025 <div id="kiosk-idle">
1026 <span class="material-symbols-rounded">music_note</span>
1027 <div id="kiosk-idle-label">Waiting for playback...</div>
1028 </div>
1029
1030 <!-- Sync indicator (Sendspin, top-right) -->
1031 <div id="kiosk-sync-status" class="sync-indicator">CONNECTING...</div>
1032
1033 <!-- Party QR overlay (shown when the MA Party plugin has guest access enabled) -->
1034 <div id="kiosk-party" hidden>
1035 <img id="kiosk-party-qr" src="" alt="Party join QR code">
1036 <div id="kiosk-party-name"></div>
1037 <div id="kiosk-party-text"></div>
1038 </div>
1039
1040 <!-- Left column: album art + track info -->
1041 <div class="kiosk-col-left">
1042 <img id="kiosk-art-center" src="" alt="" aria-hidden="true">
1043 <div class="kiosk-track-info">
1044 <div id="kiosk-title"></div>
1045 <div id="kiosk-artist"></div>
1046 </div>
1047 </div>
1048
1049 <!-- Center column: lyrics or CSS equalizer -->
1050 <div class="kiosk-col-center">
1051 <!-- Karaoke lyrics -->
1052 <div id="kiosk-lyrics">
1053 <div id="kiosk-lyrics-scroll">
1054 <div id="kiosk-lyrics-inner"></div>
1055 </div>
1056 </div>
1057 <!-- CSS text equalizer (shown when no lyrics) -->
1058 <div id="kiosk-equalizer">
1059 <div class="eq-container" id="eq-bars"></div>
1060 </div>
1061 </div>
1062
1063 <!-- Right column: playback queue -->
1064 <div class="kiosk-col-right">
1065 <div class="kiosk-queue-header">Queue</div>
1066 <div id="kiosk-queue-list">
1067 <div class="kiosk-queue-empty">No tracks in queue</div>
1068 </div>
1069 </div>
1070
1071 <!-- Auto-hiding controls panel (bottom, overlays all columns) -->
1072 <div id="kiosk-controls-panel">
1073 <div class="kiosk-seek-row">
1074 <span id="kiosk-time" class="time">0:00</span>
1075 <input type="range" id="kiosk-seek" min="0" max="100" value="0" step="0.1" disabled>
1076 <span id="kiosk-dur" class="time">0:00</span>
1077 </div>
1078 <div class="kiosk-controls">
1079 <button id="kiosk-prev" class="ctrl"><span class="material-symbols-rounded">skip_previous</span></button>
1080 <button id="kiosk-play" class="ctrl ctrl--primary"><span class="material-symbols-rounded">play_arrow</span></button>
1081 <button id="kiosk-next" class="ctrl"><span class="material-symbols-rounded">skip_next</span></button>
1082 </div>
1083 </div>
1084 </div>
1085
1086 <!-- Search overlay -->
1087 <div id="search-overlay">
1088 <div class="search-box">
1089 <input type="text" id="search-input" placeholder="Search music...">
1090 <button id="search-close"><span class="material-symbols-rounded">close</span></button>
1091 </div>
1092 </div>
1093
1094 <div id="loading"><div class="spinner"></div></div>
1095 </div>
1096
1097 <audio id="audio" preload="none"></audio>
1098 <script>
1099 (function() {
1100 var params = new URLSearchParams(window.location.search);
1101 if (params.get('kiosk') === '1') {
1102 document.body.classList.add('kiosk-mode');
1103 }
1104 })();
1105 </script>
1106 <script type="module" src="/web/web.js?v=7"></script>
1107</body>
1108</html>
1109