source: Klonkt/src/assets/css/audio.css@ 67d4067

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

fix: tablet full-player uses 'safe center' — cover no longer clipped with a long queue

justify-content:center pushed the cover above the viewport (unreachable) when
cover+queue were taller than the screen. 'safe center' aligns to the top instead.
audio.css v=3->v=4.

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

  • Property mode set to 100644
File size: 22.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
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}
565
566/* ============================================================
567 External-link variant ([[link:url]])
568 Branded "Open in Spotify" / etc. button. No iframe.
569 ============================================================ */
570.post-audio-external {
571 display: inline-flex;
572 align-items: center;
573 gap: 0.5rem;
574 margin: 0.75rem 0;
575 padding: 0.55rem 0.95rem;
576 background: var(--paper-2);
577 border: 1px solid var(--rule);
578 border-radius: 999px;
579 color: var(--ink);
580 text-decoration: none;
581 font-weight: 500;
582 font-size: 0.9rem;
583 transition: transform 100ms ease, border-color 150ms;
584}
585.post-audio-external:hover {
586 border-color: var(--accent);
587 transform: translateY(-1px);
588}
589.post-audio-external .pae-icon {
590 display: inline-flex;
591 align-items: center;
592 justify-content: center;
593 width: 22px;
594 height: 22px;
595 border-radius: 50%;
596 background: var(--accent);
597 color: white;
598 font-size: 0.7rem;
599 flex-shrink: 0;
600}
601.post-audio-external .pae-arrow { color: var(--ink-muted, var(--ink-soft)); font-size: 0.85rem; }
602
603/* Platform-specific accent colors (matches v9 brand palette where possible) */
604.post-audio-external--spotify .pae-icon { background: #1DB954; }
605.post-audio-external--bandcamp .pae-icon { background: #629aa9; }
606.post-audio-external--soundcloud .pae-icon { background: #ff5500; }
607.post-audio-external--applemusic .pae-icon { background: #fc3c44; }
608.post-audio-external--youtube .pae-icon { background: #ff0000; }
609.post-audio-external--vimeo .pae-icon { background: #1ab7ea; }
610.post-audio-external--tidal .pae-icon { background: #000; }
611.post-audio-external--deezer .pae-icon { background: #ef5466; }
612.post-audio-external--mixcloud .pae-icon { background: #314359; }
613
614/* ============================================================
615 Album block (v9 style)
616 ============================================================ */
617.post-album {
618 margin: 1.5rem 0;
619 background: var(--paper-2);
620 border: 1px solid var(--rule);
621 border-radius: 10px;
622 overflow: hidden;
623}
624.post-album-header {
625 display: flex;
626 gap: 1rem;
627 padding: 1rem;
628 align-items: center;
629 border-bottom: 1px solid var(--rule);
630}
631.post-album-cover-btn {
632 position: relative;
633 flex-shrink: 0;
634 width: 96px;
635 height: 96px;
636 padding: 0;
637 border: 0;
638 border-radius: 8px;
639 background: var(--paper);
640 color: var(--accent);
641 cursor: pointer;
642 overflow: hidden;
643 display: inline-flex;
644 align-items: center;
645 justify-content: center;
646}
647.post-album-cover-img {
648 width: 100%;
649 height: 100%;
650 object-fit: cover;
651 display: block;
652}
653.post-album-cover-icon {
654 width: 48px;
655 height: 48px;
656}
657.post-album-play-overlay {
658 position: absolute;
659 inset: 0;
660 display: inline-flex;
661 align-items: center;
662 justify-content: center;
663 background: rgba(0,0,0,0.35);
664 color: white;
665 opacity: 0;
666 transition: opacity 150ms;
667}
668.post-album-play-overlay svg { width: 36px; height: 36px; }
669.post-album-cover-btn:hover .post-album-play-overlay,
670.post-album-cover-btn:focus .post-album-play-overlay { opacity: 1; }
671
672.post-album-info { flex: 1; min-width: 0; }
673.post-album-title {
674 font-family: var(--font-display, serif);
675 font-size: 1.25rem;
676 margin: 0 0 0.15rem;
677 color: var(--ink);
678}
679.post-album-artist {
680 margin: 0 0 0.15rem;
681 color: var(--ink);
682 font-size: 0.95rem;
683}
684.post-album-count {
685 margin: 0;
686 color: var(--ink-muted, var(--ink-soft));
687 font-size: 0.8rem;
688 text-transform: uppercase;
689 letter-spacing: 0.05em;
690}
691
692.post-album-tracks {
693 list-style: none;
694 margin: 0;
695 padding: 0.25rem 0;
696 counter-reset: track;
697}
698.post-album-tracks .post-audio-track {
699 margin: 0;
700 border: 0;
701 border-radius: 0;
702 background: transparent;
703 padding: 0.5rem 1rem;
704}
705.post-album-tracks .post-audio-track:hover {
706 background: var(--paper);
707}
708.post-album-tracks .pat-play {
709 width: 36px;
710 height: 36px;
711 background: var(--paper-2);
712 color: var(--accent);
713 border: 1px solid var(--rule);
714}
715.post-album-tracks .pat-play:hover {
716 background: var(--accent);
717 color: white;
718 border-color: var(--accent);
719}
720.post-album-tracks .pat-play svg { width: 14px; height: 14px; }
721.post-album-tracks .pat-track-num {
722 display: inline-block;
723 margin-right: 0.4rem;
724 color: var(--ink-muted, var(--ink-soft));
725 font-variant-numeric: tabular-nums;
726 font-size: 0.85rem;
727}
728.post-album-tracks .pat-info {
729 display: flex;
730 align-items: baseline;
731 gap: 0.2rem;
732 flex-wrap: wrap;
733}
734
735@media (max-width: 600px) {
736 .post-album-header { padding: 0.75rem; gap: 0.75rem; }
737 .post-album-cover-btn { width: 72px; height: 72px; }
738 .post-album-cover-icon { width: 32px; height: 32px; }
739 .post-album-title { font-size: 1.05rem; }
740}
Note: See TracBrowser for help on using the repository browser.