source: Klonkt/src/assets/css/audio.css@ 0d7acdf

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

feat(audio): per-track owner/credit + license (+ written to mp3 ID3 tags)

New per-track metadata: credit (copyright holder) + license. Editable in the
track editor (license with datalist presets: All rights reserved, CC BY/…/CC0).

  • DB: audio_tracks.credit + .license.
  • ID3: on upload and on every metadata edit the tags are written into the mp3 itself — copyright=credit, comment=license (new retagMp3() in the transcoder, -c copy, no re-encode) → ownership travels with a download.
  • Visible: "credit · license" line below each track (post-audio-track).

busters audio.css?v=7.

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

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