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

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

fix: tablet full-player queue gets full width (660px instead of shrink-to-content)

align-items:center on the panel let the queue shrink to its content -> narrow.
Now width:100%;max-width:660px (matching info/progress) + larger row items.
audio.css v=4->v=5.

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

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