source: Klonkt/src/assets/css/audio.css@ 183875b

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

feat(audio): per-track "open in" Spotify/YouTube/SoundCloud links

New per-track fields link_spotify/link_youtube/link_soundcloud (audio_tracks),
editable in the track editor (https + correct host validated). Shown as small
brand icons per track row in standalone track embeds, albums and playlists —
click opens the track on that service (new tab). buster audio.css?v=8.

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

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