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

main
Last change on this file since d2b7247 was d2b7247, checked in by Robin Genis <roboburr@…>, 2 months ago

chore(branding): stale product names in comments + deploy templates -> Klonkt

Cosmetic only — comments (CSS/EJS/SQL/ecosystem.config.cjs headers) and the deploy/ doc
templates: old names (PrutCMS/PrutFolio) -> Klonkt, stale Prutter (removed DM feature) mentions
dropped, deploy/ Dutch comments translated to English. No code, identifiers, rendered strings,
package name, PWA id, real infra paths, or roboburr refs touched.

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