source: Klonkt/src/assets/css/audio.css@ d727e92

main
Last change on this file since d727e92 was d727e92, checked in by roboburr <roboburr@…>, 3 months ago

feat(audio): tracks without audio (link-only) — list with open-in links, no upload

You can now add a "Track without audio" in Admin → Audio (button) — only
title/artist + the Spotify/YouTube/SoundCloud links, no file. Such tracks
appear in albums & playlists (and standalone track embeds) in the list
with the open-in icons but WITHOUT a play button, and stay outside the
playback queue (which matches on URL). Lookups (posts album/single +
PlaylistService) no longer filter out fileless tracks. New route POST
/admin/audio/create-link. buster audio.css?v=9.

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 25.3 KB
Line 
1/* PrutCMS v10 — Audio CSS
2 Two pieces:
3 1. .post-audio-track — the play-button block inserted by [[track:id]] shortcode
4 2. .pcms-player — the persistent footer-style widget (audio-player.js)
5 Both theme-aware via CSS variables. Mobile-first. */
6
7/* ============================================================
8 In-post track button
9 ============================================================ */
10.post-audio-track {
11 display: flex;
12 align-items: center;
13 gap: 0.85rem;
14 margin: 1rem 0;
15 padding: 0.6rem 0.9rem;
16 background: var(--paper-2);
17 border: 1px solid var(--rule);
18 border-radius: 8px;
19 transition: border-color 150ms, background 150ms;
20}
21.post-audio-track:hover {
22 border-color: var(--accent);
23}
24.post-audio-track .pat-play {
25 flex-shrink: 0;
26 width: 44px;
27 height: 44px;
28 border-radius: 50%;
29 border: 0;
30 background: var(--accent);
31 color: white;
32 display: inline-flex;
33 align-items: center;
34 justify-content: center;
35 cursor: pointer;
36 padding: 0;
37 transition: transform 100ms ease;
38}
39.post-audio-track .pat-play:hover { transform: scale(1.06); }
40.post-audio-track .pat-play:active { transform: scale(0.96); }
41.post-audio-track .pat-play svg {
42 width: 20px;
43 height: 20px;
44}
45/* style.css has a v9 "cross-fade between site-logo and play-icon" rule that
46 forces ALL svg descendants of .pat-play to position:absolute; width:100%;
47 height:100% (so the logo fills the circle and play-icon overlays it).
48 We don't generate that two-layer markup anymore — just one bare <svg>.
49 Override here so the bare child SVG is statically centered by flex. */
50.post-audio-track .pat-play > svg {
51 position: static;
52 width: 20px;
53 height: 20px;
54 top: auto;
55 left: auto;
56}
57.post-audio-track .pat-info {
58 flex: 1;
59 min-width: 0;
60}
61.post-audio-track .pat-title {
62 font-weight: 600;
63 color: var(--ink);
64 white-space: nowrap;
65 overflow: hidden;
66 text-overflow: ellipsis;
67}
68.post-audio-track .pat-artist {
69 font-size: 0.85rem;
70 color: var(--ink-muted, var(--ink-soft));
71 white-space: nowrap;
72 overflow: hidden;
73 text-overflow: ellipsis;
74}
75/* Eigenaar/credit · licentie — subtiele regel onder de track. */
76.post-audio-track .pat-credit {
77 font-size: 0.72rem;
78 color: var(--ink-faint, var(--ink-soft));
79 margin-top: 0.1rem;
80 white-space: nowrap;
81 overflow: hidden;
82 text-overflow: ellipsis;
83}
84
85/* "Open in" Spotify/YouTube/SoundCloud — kleine brand-iconen per track. */
86.pat-links {
87 display: inline-flex; align-items: center; gap: 0.1rem;
88 flex: 0 0 auto;
89}
90/* Single + album-rij (.post-audio-track is flex) → duw de links naar rechts. */
91.post-audio-track .pat-links { margin-left: auto; padding-right: 0.5rem; }
92/* Playlist-rij: de li flex maken zodat de links naast de afspeel-rij passen. */
93.post-album-track-compact { display: flex; align-items: center; }
94.post-album-track-compact .pat-row { flex: 1 1 auto; min-width: 0; }
95.post-album-track-compact .pat-links { padding-right: 0.6rem; }
96.pat-link {
97 display: inline-flex; align-items: center; justify-content: center;
98 width: 26px; height: 26px;
99 opacity: 0.75;
100 transition: opacity 120ms, transform 120ms;
101}
102.pat-link svg { width: 17px; height: 17px; }
103.pat-link:hover { opacity: 1; transform: scale(1.12); }
104.pat-link--spotify { color: #1DB954; }
105.pat-link--youtube { color: #FF0000; }
106.pat-link--soundcloud { color: #FF5500; }
107
108/* Link-only tracks (geen audiobestand): plek van de afspeelknop = stil muziek-icoon. */
109.pat-noplay {
110 display: inline-flex; align-items: center; justify-content: center;
111 flex: 0 0 38px; width: 38px; align-self: center;
112 color: var(--ink-faint, #a8a29e);
113}
114.pat-noplay svg { width: 18px; height: 18px; }
115.pat-row.pat-static { cursor: default; }
116
117/* ============================================================
118 Mini player (bottom strip) — v9 style
119 ============================================================ */
120.audio-player {
121 position: fixed;
122 left: 0; right: 0; bottom: 0;
123 background: color-mix(in srgb, var(--paper, #fff) 96%, var(--ink, #000));
124 border-top: 1px solid var(--rule, rgba(0,0,0,.1));
125 color: var(--ink, #222);
126 z-index: 1000;
127 backdrop-filter: blur(12px);
128 -webkit-backdrop-filter: blur(12px);
129 box-shadow: 0 -4px 20px rgba(0,0,0,.04);
130 padding-bottom: env(safe-area-inset-bottom, 0);
131 transition: transform .2s ease, opacity .2s ease;
132}
133/* Mobile: stack the mini-player ON TOP OF the bottom-tab nav
134 (which sits at bottom:0 with ~56px height + safe-area).
135 Desktop has no bottom-tab, so the player stays at bottom:0. */
136@media (max-width: 767px) {
137 body.has-bottom-tab .audio-player {
138 bottom: calc(56px + env(safe-area-inset-bottom, 0));
139 padding-bottom: 0;
140 }
141 /* Bottom padding for body so content isn't hidden behind both bars */
142 body.has-bottom-tab.has-audio-player .pcms-main {
143 padding-bottom: calc(72px + 80px + env(safe-area-inset-bottom, 0));
144 }
145}
146/* Het auth/login-focusscherm rendert GEEN bottom-tab (zie shell.ejs), maar de body
147 houdt wel de has-bottom-tab-class → zonder dit zou de mini-player 56px boven de
148 onderrand zweven boven een niet-bestaande tab. Reset naar bottom:0 (alle breedtes;
149 op desktop is 't sowieso al 0). Robuuste class-selector — geen :has() in deze
150 kritieke regel. */
151body.on-auth .audio-player {
152 bottom: 0;
153 padding-bottom: env(safe-area-inset-bottom, 0);
154}
155[data-theme="dark"] .audio-player {
156 background: color-mix(in srgb, var(--paper, #1a1a1a) 92%, #fff);
157 box-shadow: 0 -4px 20px rgba(0,0,0,.3);
158}
159.audio-player-hidden {
160 transform: translateY(110%);
161 opacity: 0;
162 pointer-events: none;
163}
164
165/* Browser-autoplay-policy heeft de auto-advance gestopt — typisch
166 na 3-4 tracks op iOS Safari. Visuele hint dat user op play moet
167 tappen om door te gaan (PCMS v10.1, audio-player.js). */
168.audio-player.audio-needs-tap .audio-btn-play {
169 animation: audio-pulse-tap 1.2s ease-in-out infinite;
170 background: rgba(255, 165, 0, 0.18);
171 border-color: orange;
172 color: orange;
173}
174@keyframes audio-pulse-tap {
175 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.5); }
176 50% { box-shadow: 0 0 0 8px rgba(255, 165, 0, 0); }
177}
178.audio-player-inner {
179 display: grid;
180 grid-template-columns: minmax(0, 1.6fr) auto minmax(180px, 2fr) auto;
181 gap: 1rem;
182 align-items: center;
183 padding: .65rem 1.25rem;
184 max-width: 1400px;
185 margin: 0 auto;
186}
187
188.audio-player-expand-trigger {
189 display: flex;
190 align-items: center;
191 gap: .65rem;
192 min-width: 0;
193 background: none; border: 0; padding: 0; margin: 0;
194 cursor: pointer; color: inherit; text-align: left; font: inherit;
195 border-radius: 6px;
196 transition: background .15s;
197}
198.audio-player-expand-trigger:hover {
199 background: color-mix(in srgb, var(--ink, #000) 6%, transparent);
200}
201/* DESKTOP (≥1200px): geen full player — de expand-trigger opent niets (JS),
202 dus 'm niet als klikbaar laten ogen. */
203@media (min-width: 1200px) {
204 .audio-player-expand-trigger { cursor: default; }
205 .audio-player-expand-trigger:hover { background: none; }
206}
207
208.audio-player-cover {
209 width: 48px; height: 48px;
210 border-radius: 4px;
211 background:
212 linear-gradient(135deg,
213 var(--accent, #c2410c),
214 color-mix(in srgb, var(--accent, #c2410c) 55%, #000));
215 background-size: cover; background-position: center;
216 flex-shrink: 0; position: relative;
217 display: flex; align-items: center; justify-content: center;
218 color: rgba(255,255,255,0.9);
219}
220.audio-player-cover svg { width: 50%; height: 50%; }
221.audio-player-cover.has-image svg { display: none; }
222
223.audio-player-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
224.audio-player-title-wrap { overflow: hidden; white-space: nowrap; position: relative; }
225.audio-player-title {
226 display: inline-block;
227 font-family: var(--font-ui, inherit);
228 font-weight: 600; font-size: .9rem; line-height: 1.3;
229 letter-spacing: -.01em; color: var(--ink, inherit);
230 white-space: nowrap;
231}
232.audio-player-artist {
233 font-family: var(--font-ui, inherit);
234 font-size: .74rem; line-height: 1.3;
235 color: var(--ink-muted, rgba(0,0,0,.55));
236 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
237}
238
239.audio-player-controls { display: flex; gap: .1rem; align-items: center; }
240.audio-btn {
241 background: transparent; border: 0; color: inherit;
242 cursor: pointer; padding: .5rem; border-radius: 50%;
243 transition: background .15s, color .15s, transform .08s;
244 display: inline-flex; align-items: center; justify-content: center;
245 position: relative;
246}
247.audio-btn svg { width: 18px; height: 18px; display: block; }
248.audio-btn:hover { background: color-mix(in srgb, var(--ink, #000) 8%, transparent); }
249.audio-btn:active { transform: scale(.94); }
250.audio-btn-play {
251 background: var(--accent, #c2410c);
252 color: #fff;
253 width: 38px; height: 38px;
254 padding: 0;
255}
256.audio-btn-play:hover {
257 background: color-mix(in srgb, var(--accent, #c2410c) 85%, #fff);
258}
259[data-theme="dark"] .audio-btn-play:hover {
260 background: color-mix(in srgb, var(--accent, #c2410c) 85%, #000);
261}
262.audio-btn-play svg { width: 16px; height: 16px; }
263.audio-btn-play .icon-pause { display: none; }
264.audio-player.is-playing .audio-btn-play .icon-play { display: none; }
265.audio-player.is-playing .audio-btn-play .icon-pause { display: block; }
266
267.audio-player-progress {
268 display: flex; gap: .75rem; align-items: center; min-width: 0;
269}
270.audio-time {
271 font-size: .7rem;
272 color: var(--ink-muted, rgba(0,0,0,.55));
273 font-variant-numeric: tabular-nums;
274 min-width: 2.7em; text-align: center;
275}
276.audio-seek {
277 flex: 1; min-width: 0;
278 cursor: pointer; padding: .5rem 0; position: relative;
279}
280.audio-seek-bar {
281 height: 3px;
282 background: color-mix(in srgb, var(--ink, #000) 12%, transparent);
283 border-radius: 2px; overflow: hidden;
284 transition: height .15s;
285}
286.audio-seek:hover .audio-seek-bar { height: 5px; }
287.audio-seek-fill {
288 height: 100%;
289 background: var(--accent, #c2410c);
290 width: 0%;
291 transition: width .1s linear;
292}
293
294.audio-player-volume { position: relative; display: flex; align-items: center; }
295.audio-btn .icon-mute { display: none; }
296.audio-player.is-muted .audio-btn .icon-vol { display: none; }
297.audio-player.is-muted .audio-btn .icon-mute { display: block; }
298.audio-volume-popup {
299 position: absolute;
300 bottom: calc(100% + 8px);
301 left: 50%;
302 transform: translateX(-50%) scale(.95);
303 transform-origin: bottom center;
304 background: var(--paper, #fff);
305 border: 1px solid var(--rule, rgba(0,0,0,.1));
306 border-radius: 8px;
307 padding: .75rem .5rem;
308 box-shadow: 0 4px 16px rgba(0,0,0,.15);
309 opacity: 0;
310 pointer-events: none;
311 transition: opacity .15s, transform .15s, visibility .15s;
312 height: 110px;
313 visibility: hidden;
314}
315.audio-volume-popup::after {
316 content: '';
317 position: absolute;
318 bottom: -12px; left: -10px; right: -10px;
319 height: 16px;
320}
321[data-theme="dark"] .audio-volume-popup {
322 background: color-mix(in srgb, var(--paper, #111) 92%, #fff);
323}
324.audio-player-volume:hover .audio-volume-popup,
325.audio-player-volume:focus-within .audio-volume-popup,
326.audio-player-volume.is-open .audio-volume-popup {
327 opacity: 1; visibility: visible;
328 transform: translateX(-50%) scale(1);
329 pointer-events: auto;
330}
331.audio-volume-popup input[type=range] {
332 /* Standard vertical slider — replaces deprecated -webkit-appearance: slider-vertical.
333 vertical-lr + direction: rtl gives bottom-to-top rendering in all modern browsers. */
334 writing-mode: vertical-lr;
335 direction: rtl;
336 width: 6px; height: 90px;
337 accent-color: var(--accent, #c2410c);
338 padding: 0 12px;
339 box-sizing: content-box;
340 cursor: pointer;
341}
342
343@media (max-width: 720px) {
344 .audio-player-inner {
345 grid-template-columns: minmax(0, 1fr) auto auto;
346 gap: .5rem;
347 padding: .5rem .8rem;
348 }
349 .audio-player-progress { display: none; }
350 .audio-player-cover { width: 40px; height: 40px; }
351 .audio-btn-play { width: 34px; height: 34px; }
352 .audio-player-volume { display: none; }
353}
354
355/* When the main page would be obscured by the player, give it bottom padding */
356body.has-audio-player main {
357 padding-bottom: 80px;
358}
359
360/* ============================================================
361 Now-playing sheet (v9 style — slide-up, drag-to-close)
362 ============================================================ */
363.audio-sheet {
364 position: fixed;
365 inset: 0;
366 z-index: 1100;
367 pointer-events: none;
368 opacity: 0;
369 transition: opacity .25s ease;
370}
371.audio-sheet.is-open {
372 pointer-events: auto;
373 opacity: 1;
374}
375.audio-sheet-backdrop {
376 position: absolute;
377 inset: 0;
378 background: rgb(0 0 0 / calc(.4 * var(--pcms-sheet-progress, 1)));
379 backdrop-filter: blur(calc(24px * var(--pcms-sheet-progress, 1)));
380 -webkit-backdrop-filter: blur(calc(24px * var(--pcms-sheet-progress, 1)));
381 transition: background .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease;
382 will-change: backdrop-filter, background;
383}
384.audio-sheet-panel.is-dragging ~ .audio-sheet-backdrop,
385.audio-sheet-backdrop.is-dragging {
386 transition: none;
387}
388.audio-sheet-panel {
389 position: absolute;
390 bottom: 0;
391 background: var(--paper, #fff);
392 border-top-left-radius: 20px;
393 border-top-right-radius: 20px;
394 box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
395 padding: .75rem 1.5rem 2rem;
396 max-height: 85vh;
397 overflow-y: auto;
398 overscroll-behavior: contain;
399 touch-action: pan-y;
400 scrollbar-width: none; -ms-overflow-style: none;
401 transition: transform .3s cubic-bezier(.22, .9, .3, 1), opacity .3s cubic-bezier(.22, .9, .3, 1);
402 display: flex; flex-direction: column; gap: 1rem;
403 color: var(--ink);
404}
405.audio-sheet-panel::-webkit-scrollbar { display: none; }
406body.audio-sheet-locked { overflow: hidden; }
407
408/* TELEFOON (<768px): full-width sheet, slide up from bottom */
409@media (max-width: 767.98px) {
410 .audio-sheet-panel {
411 /* Real full-screen, edge-to-edge, no rounded corners or shadow */
412 inset: 0;
413 left: 0; right: 0;
414 width: auto;
415 max-height: none;
416 border-top-left-radius: 0;
417 border-top-right-radius: 0;
418 box-shadow: none;
419 padding-top: calc(.75rem + env(safe-area-inset-top, 0));
420 padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
421 transform: translateY(100%);
422 }
423 /* When open: at rest unless drag is active (--pcms-drag-y set by JS) */
424 .audio-sheet.is-open .audio-sheet-panel {
425 transform: translateY(var(--pcms-drag-y, 0px));
426 }
427}
428
429/* (De grote tablet/auto-variant staat onderaan deze sectie — NÁ de basis cover/
430 info/controls-regels — anders overschrijft de basis die overrides.) */
431
432.audio-sheet-panel.is-dragging {
433 transition: none;
434 will-change: transform;
435}
436[data-theme="dark"] .audio-sheet-panel {
437 background: var(--paper, #1a1a1a);
438 box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
439}
440
441.audio-sheet-drag-zone {
442 flex-shrink: 0;
443 display: flex;
444 flex-direction: column;
445 align-items: stretch;
446 gap: 1rem;
447 /* MUST be 'none' so pointer events reach JS (drag-down-to-close handler).
448 'pan-y' would let the browser claim the vertical gesture for scroll. */
449 touch-action: none;
450 user-select: none;
451 -webkit-user-select: none;
452 cursor: grab;
453 margin: -.75rem -1.5rem 0;
454 padding: .75rem 1.5rem 0;
455}
456.audio-sheet-drag-zone:active { cursor: grabbing; }
457
458@media (hover: hover) and (pointer: fine) {
459 .audio-sheet-drag-zone {
460 touch-action: auto;
461 cursor: default;
462 pointer-events: none;
463 }
464 .audio-sheet-drag-zone .audio-sheet-handle {
465 pointer-events: auto;
466 cursor: pointer;
467 }
468}
469
470.audio-sheet-handle {
471 display: block;
472 width: 48px; height: 4px;
473 border-radius: 2px;
474 background: color-mix(in srgb, var(--ink, #000) 25%, transparent);
475 border: 0; padding: 0;
476 margin: 0 auto .5rem;
477 cursor: pointer;
478 flex-shrink: 0;
479 position: relative;
480}
481.audio-sheet-handle::before {
482 content: ""; position: absolute;
483 inset: -10px -20px;
484}
485
486.audio-sheet-cover {
487 width: 100%;
488 max-width: 320px;
489 aspect-ratio: 1;
490 margin: 0 auto;
491 border-radius: 12px;
492 background:
493 linear-gradient(135deg,
494 var(--accent, #c2410c),
495 color-mix(in srgb, var(--accent, #c2410c) 55%, #000));
496 background-size: cover; background-position: center;
497 display: flex; align-items: center; justify-content: center;
498 color: rgba(255,255,255,0.9);
499 box-shadow: 0 8px 32px rgba(0,0,0,0.18);
500}
501.audio-sheet-cover svg { width: 30%; height: 30%; }
502.audio-sheet-cover.has-image svg { display: none; }
503
504.audio-sheet-info { text-align: center; min-width: 0; }
505.audio-sheet-title { font-family: var(--font-display, serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
506.audio-sheet-artist { color: var(--ink-soft, rgba(0,0,0,.55)); margin-top: .25rem; }
507.audio-sheet-album { color: var(--ink-muted, rgba(0,0,0,.45)); font-size: 0.85rem; margin-top: .15rem; }
508
509.audio-sheet-progress {
510 display: flex;
511 gap: .75rem;
512 align-items: center;
513 padding: 0 1rem;
514}
515
516.audio-sheet-controls {
517 display: flex;
518 justify-content: center;
519 align-items: center;
520 gap: 1rem;
521 flex-wrap: nowrap;
522 min-height: 64px;
523}
524.audio-sheet-btn { width: 48px; height: 48px; }
525.audio-sheet-btn svg { width: 22px; height: 22px; }
526.audio-sheet-play {
527 background: var(--accent, #c2410c);
528 color: #fff;
529 width: 64px; height: 64px;
530 border-radius: 50%;
531 padding: 0;
532}
533.audio-sheet-play svg { width: 24px; height: 24px; }
534.audio-sheet-play .icon-pause { display: none; }
535/* Both descendant AND sibling — works whether the sheet is nested in
536 .audio-player (legacy) or detached as a body sibling (current fix). */
537.audio-player.is-playing .audio-sheet-play .icon-play,
538.audio-player.is-playing ~ .audio-sheet .audio-sheet-play .icon-play,
539body.audio-is-playing .audio-sheet-play .icon-play { display: none; }
540.audio-player.is-playing .audio-sheet-play .icon-pause,
541.audio-player.is-playing ~ .audio-sheet .audio-sheet-play .icon-pause,
542body.audio-is-playing .audio-sheet-play .icon-pause { display: block; }
543
544.audio-sheet-queue {
545 border-top: 1px solid var(--rule);
546 padding-top: 1rem;
547}
548.audio-sheet-queue-label {
549 font-size: 0.85rem;
550 color: var(--ink-muted, rgba(0,0,0,.55));
551 text-transform: uppercase;
552 letter-spacing: 0.05em;
553 margin-bottom: 0.5rem;
554}
555.audio-sheet-queue-list {
556 list-style: none;
557 margin: 0; padding: 0;
558}
559.audio-sheet-queue-item {
560 display: flex;
561 align-items: baseline;
562 gap: 0.4rem;
563 padding: 0.5rem 0.6rem;
564 border-radius: 4px;
565 cursor: pointer;
566 font-size: 0.95rem;
567}
568.audio-sheet-queue-item:hover { background: color-mix(in srgb, var(--ink, #000) 5%, transparent); }
569.audio-sheet-queue-item.is-current { color: var(--accent); font-weight: 600; }
570.audio-sheet-queue-item .aqi-num { color: var(--ink-muted, rgba(0,0,0,.45)); min-width: 1.6em; }
571.audio-sheet-queue-item .aqi-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
572.audio-sheet-queue-item .aqi-artist {
573 color: var(--ink-muted, rgba(0,0,0,.45));
574 font-size: 0.85rem;
575 margin-left: auto;
576}
577
578/* TABLET / AUTO (768–1199px): grote, landscape, knop-vriendelijke full-player
579 voor tablets + een tablet-in-de-auto. Bewust full-screen + grote touch-targets.
580 STAAT BEWUST NA de basis-sheet-regels hierboven, anders overschrijft de basis
581 deze overrides (cascade-volgorde). Desktop (≥1200px) opent de full player NIET
582 (afgehandeld in audio-player.js), dus daar is geen sheet-styling nodig. */
583@media (min-width: 768px) and (max-width: 1199.98px) {
584 .audio-sheet-panel {
585 inset: 0; left: 0; right: 0; width: auto;
586 max-height: none;
587 border-radius: 0;
588 box-shadow: none;
589 transform: translateY(100%);
590 padding: clamp(2rem, 5vh, 4rem) clamp(2rem, 6vw, 5rem);
591 gap: clamp(1.25rem, 3vh, 2.5rem);
592 /* 'safe center': verticaal centreren als alles past, maar bovenaan uitlijnen
593 (geen clip) zodra cover + queue hoger zijn dan het scherm — anders wordt de
594 cover boven de viewport geduwd en is 'ie niet te scrollen. */
595 justify-content: safe center;
596 align-items: center;
597 }
598 .audio-sheet.is-open .audio-sheet-panel { transform: translateY(var(--pcms-drag-y, 0px)); }
599
600 .audio-sheet-drag-zone { align-items: center; width: 100%; margin: 0; padding: 0; }
601 .audio-sheet-cover { width: min(48vh, 460px); max-width: none; border-radius: 20px; }
602 .audio-sheet-cover svg { width: 26%; height: 26%; }
603 .audio-sheet-info { width: 100%; max-width: 660px; }
604 .audio-sheet-title { font-size: clamp(2rem, 4vw, 3rem); }
605 .audio-sheet-artist { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-top: .5rem; }
606 .audio-sheet-album { font-size: 1rem; margin-top: .25rem; }
607 .audio-sheet-progress { width: 100%; max-width: 660px; gap: 1.25rem; }
608 .audio-sheet-progress .audio-time { font-size: 1.05rem; min-width: 3.2em; }
609 .audio-sheet-controls { gap: clamp(1.5rem, 5vw, 3.5rem); }
610 .audio-sheet-btn { width: 76px; height: 76px; }
611 .audio-sheet-btn svg { width: 34px; height: 34px; }
612 .audio-sheet-play { width: 108px; height: 108px; }
613 .audio-sheet-play svg { width: 46px; height: 46px; }
614 /* Queue dezelfde breedte als info/progress (anders krimpt 'ie door
615 align-items:center tot z'n inhoud = smal), + grotere rijen voor touch. */
616 .audio-sheet-queue { width: 100%; max-width: 660px; }
617 .audio-sheet-queue-label { font-size: 0.95rem; }
618 .audio-sheet-queue-item { padding: 0.7rem 0.7rem; gap: 0.6rem; font-size: 1.05rem; }
619 .audio-sheet-queue-item .aqi-artist { font-size: 0.95rem; }
620}
621
622/* ============================================================
623 External-link variant ([[link:url]])
624 Branded "Open in Spotify" / etc. button. No iframe.
625 ============================================================ */
626.post-audio-external {
627 display: inline-flex;
628 align-items: center;
629 gap: 0.5rem;
630 margin: 0.75rem 0;
631 padding: 0.55rem 0.95rem;
632 background: var(--paper-2);
633 border: 1px solid var(--rule);
634 border-radius: 999px;
635 color: var(--ink);
636 text-decoration: none;
637 font-weight: 500;
638 font-size: 0.9rem;
639 transition: transform 100ms ease, border-color 150ms;
640}
641.post-audio-external:hover {
642 border-color: var(--accent);
643 transform: translateY(-1px);
644}
645.post-audio-external .pae-icon {
646 display: inline-flex;
647 align-items: center;
648 justify-content: center;
649 width: 22px;
650 height: 22px;
651 border-radius: 50%;
652 background: var(--accent);
653 color: white;
654 font-size: 0.7rem;
655 flex-shrink: 0;
656}
657.post-audio-external .pae-arrow { color: var(--ink-muted, var(--ink-soft)); font-size: 0.85rem; }
658
659/* Platform-specific accent colors (matches v9 brand palette where possible) */
660.post-audio-external--spotify .pae-icon { background: #1DB954; }
661.post-audio-external--bandcamp .pae-icon { background: #629aa9; }
662.post-audio-external--soundcloud .pae-icon { background: #ff5500; }
663.post-audio-external--applemusic .pae-icon { background: #fc3c44; }
664.post-audio-external--youtube .pae-icon { background: #ff0000; }
665.post-audio-external--vimeo .pae-icon { background: #1ab7ea; }
666.post-audio-external--tidal .pae-icon { background: #000; }
667.post-audio-external--deezer .pae-icon { background: #ef5466; }
668.post-audio-external--mixcloud .pae-icon { background: #314359; }
669
670/* ============================================================
671 Album block (v9 style)
672 ============================================================ */
673.post-album {
674 margin: 1.5rem 0;
675 background: var(--paper-2);
676 border: 1px solid var(--rule);
677 border-radius: 10px;
678 overflow: hidden;
679}
680.post-album-header {
681 display: flex;
682 gap: 1rem;
683 padding: 1rem;
684 align-items: center;
685 border-bottom: 1px solid var(--rule);
686}
687.post-album-cover-btn {
688 position: relative;
689 flex-shrink: 0;
690 width: 96px;
691 height: 96px;
692 padding: 0;
693 border: 0;
694 border-radius: 8px;
695 background: var(--paper);
696 color: var(--accent);
697 cursor: pointer;
698 overflow: hidden;
699 display: inline-flex;
700 align-items: center;
701 justify-content: center;
702}
703.post-album-cover-img {
704 width: 100%;
705 height: 100%;
706 object-fit: cover;
707 display: block;
708}
709.post-album-cover-icon {
710 width: 48px;
711 height: 48px;
712}
713.post-album-play-overlay {
714 position: absolute;
715 inset: 0;
716 display: inline-flex;
717 align-items: center;
718 justify-content: center;
719 background: rgba(0,0,0,0.35);
720 color: white;
721 opacity: 0;
722 transition: opacity 150ms;
723}
724.post-album-play-overlay svg { width: 36px; height: 36px; }
725.post-album-cover-btn:hover .post-album-play-overlay,
726.post-album-cover-btn:focus .post-album-play-overlay { opacity: 1; }
727
728.post-album-info { flex: 1; min-width: 0; }
729.post-album-title {
730 font-family: var(--font-display, serif);
731 font-size: 1.25rem;
732 margin: 0 0 0.15rem;
733 color: var(--ink);
734}
735.post-album-artist {
736 margin: 0 0 0.15rem;
737 color: var(--ink);
738 font-size: 0.95rem;
739}
740.post-album-count {
741 margin: 0;
742 color: var(--ink-muted, var(--ink-soft));
743 font-size: 0.8rem;
744 text-transform: uppercase;
745 letter-spacing: 0.05em;
746}
747
748.post-album-tracks {
749 list-style: none;
750 margin: 0;
751 padding: 0.25rem 0;
752 counter-reset: track;
753}
754.post-album-tracks .post-audio-track {
755 margin: 0;
756 border: 0;
757 border-radius: 0;
758 background: transparent;
759 padding: 0.5rem 1rem;
760}
761.post-album-tracks .post-audio-track:hover {
762 background: var(--paper);
763}
764.post-album-tracks .pat-play {
765 width: 36px;
766 height: 36px;
767 background: var(--paper-2);
768 color: var(--accent);
769 border: 1px solid var(--rule);
770}
771.post-album-tracks .pat-play:hover {
772 background: var(--accent);
773 color: white;
774 border-color: var(--accent);
775}
776.post-album-tracks .pat-play svg { width: 14px; height: 14px; }
777.post-album-tracks .pat-track-num {
778 display: inline-block;
779 margin-right: 0.4rem;
780 color: var(--ink-muted, var(--ink-soft));
781 font-variant-numeric: tabular-nums;
782 font-size: 0.85rem;
783}
784.post-album-tracks .pat-info {
785 display: flex;
786 align-items: baseline;
787 gap: 0.2rem;
788 flex-wrap: wrap;
789}
790
791@media (max-width: 600px) {
792 .post-album-header { padding: 0.75rem; gap: 0.75rem; }
793 .post-album-cover-btn { width: 72px; height: 72px; }
794 .post-album-cover-icon { width: 32px; height: 32px; }
795 .post-album-title { font-size: 1.05rem; }
796}
Note: See TracBrowser for help on using the repository browser.