source: Klonkt/src/assets/css/audio.css@ 52215bc

main
Last change on this file since 52215bc was 8681239, checked in by Robin <robin@…>, 4 months ago

audio v3: robust continuous playback — pause+load reset, error auto-skip, autoplay policy hint

  • loadTrack: pause + audio.load() for a clean reset (prevents state corruption after multiple src changes, root cause of 'stop after 3-4 tracks')
  • play() rejection NotAllowedError -> visual pulse hint on the play button so the user knows 'tap to continue' (iOS autoplay policy)
  • audio.error event: auto-skip to next track, max 3 errors in a row before giving up (anti-infinite-loop)
  • Reset error counter on successful play
  • Cache buster ?v=3 on shell.ejs
  • Property mode set to 100644
File size: 21.1 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
152.audio-player-cover {
153 width: 48px; height: 48px;
154 border-radius: 4px;
155 background:
156 linear-gradient(135deg,
157 var(--accent, #c2410c),
158 color-mix(in srgb, var(--accent, #c2410c) 55%, #000));
159 background-size: cover; background-position: center;
160 flex-shrink: 0; position: relative;
161 display: flex; align-items: center; justify-content: center;
162 color: rgba(255,255,255,0.9);
163}
164.audio-player-cover svg { width: 50%; height: 50%; }
165.audio-player-cover.has-image svg { display: none; }
166
167.audio-player-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
168.audio-player-title-wrap { overflow: hidden; white-space: nowrap; position: relative; }
169.audio-player-title {
170 display: inline-block;
171 font-family: var(--font-ui, inherit);
172 font-weight: 600; font-size: .9rem; line-height: 1.3;
173 letter-spacing: -.01em; color: var(--ink, inherit);
174 white-space: nowrap;
175}
176.audio-player-artist {
177 font-family: var(--font-ui, inherit);
178 font-size: .74rem; line-height: 1.3;
179 color: var(--ink-muted, rgba(0,0,0,.55));
180 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
181}
182
183.audio-player-controls { display: flex; gap: .1rem; align-items: center; }
184.audio-btn {
185 background: transparent; border: 0; color: inherit;
186 cursor: pointer; padding: .5rem; border-radius: 50%;
187 transition: background .15s, color .15s, transform .08s;
188 display: inline-flex; align-items: center; justify-content: center;
189 position: relative;
190}
191.audio-btn svg { width: 18px; height: 18px; display: block; }
192.audio-btn:hover { background: color-mix(in srgb, var(--ink, #000) 8%, transparent); }
193.audio-btn:active { transform: scale(.94); }
194.audio-btn-play {
195 background: var(--accent, #c2410c);
196 color: #fff;
197 width: 38px; height: 38px;
198 padding: 0;
199}
200.audio-btn-play:hover {
201 background: color-mix(in srgb, var(--accent, #c2410c) 85%, #fff);
202}
203[data-theme="dark"] .audio-btn-play:hover {
204 background: color-mix(in srgb, var(--accent, #c2410c) 85%, #000);
205}
206.audio-btn-play svg { width: 16px; height: 16px; }
207.audio-btn-play .icon-pause { display: none; }
208.audio-player.is-playing .audio-btn-play .icon-play { display: none; }
209.audio-player.is-playing .audio-btn-play .icon-pause { display: block; }
210
211.audio-player-progress {
212 display: flex; gap: .75rem; align-items: center; min-width: 0;
213}
214.audio-time {
215 font-size: .7rem;
216 color: var(--ink-muted, rgba(0,0,0,.55));
217 font-variant-numeric: tabular-nums;
218 min-width: 2.7em; text-align: center;
219}
220.audio-seek {
221 flex: 1; min-width: 0;
222 cursor: pointer; padding: .5rem 0; position: relative;
223}
224.audio-seek-bar {
225 height: 3px;
226 background: color-mix(in srgb, var(--ink, #000) 12%, transparent);
227 border-radius: 2px; overflow: hidden;
228 transition: height .15s;
229}
230.audio-seek:hover .audio-seek-bar { height: 5px; }
231.audio-seek-fill {
232 height: 100%;
233 background: var(--accent, #c2410c);
234 width: 0%;
235 transition: width .1s linear;
236}
237
238.audio-player-volume { position: relative; display: flex; align-items: center; }
239.audio-btn .icon-mute { display: none; }
240.audio-player.is-muted .audio-btn .icon-vol { display: none; }
241.audio-player.is-muted .audio-btn .icon-mute { display: block; }
242.audio-volume-popup {
243 position: absolute;
244 bottom: calc(100% + 8px);
245 left: 50%;
246 transform: translateX(-50%) scale(.95);
247 transform-origin: bottom center;
248 background: var(--paper, #fff);
249 border: 1px solid var(--rule, rgba(0,0,0,.1));
250 border-radius: 8px;
251 padding: .75rem .5rem;
252 box-shadow: 0 4px 16px rgba(0,0,0,.15);
253 opacity: 0;
254 pointer-events: none;
255 transition: opacity .15s, transform .15s, visibility .15s;
256 height: 110px;
257 visibility: hidden;
258}
259.audio-volume-popup::after {
260 content: '';
261 position: absolute;
262 bottom: -12px; left: -10px; right: -10px;
263 height: 16px;
264}
265[data-theme="dark"] .audio-volume-popup {
266 background: color-mix(in srgb, var(--paper, #111) 92%, #fff);
267}
268.audio-player-volume:hover .audio-volume-popup,
269.audio-player-volume:focus-within .audio-volume-popup,
270.audio-player-volume.is-open .audio-volume-popup {
271 opacity: 1; visibility: visible;
272 transform: translateX(-50%) scale(1);
273 pointer-events: auto;
274}
275.audio-volume-popup input[type=range] {
276 /* Standard vertical slider — replaces deprecated -webkit-appearance: slider-vertical.
277 vertical-lr + direction: rtl gives bottom-to-top rendering in all modern browsers. */
278 writing-mode: vertical-lr;
279 direction: rtl;
280 width: 6px; height: 90px;
281 accent-color: var(--accent, #c2410c);
282 padding: 0 12px;
283 box-sizing: content-box;
284 cursor: pointer;
285}
286
287@media (max-width: 720px) {
288 .audio-player-inner {
289 grid-template-columns: minmax(0, 1fr) auto auto;
290 gap: .5rem;
291 padding: .5rem .8rem;
292 }
293 .audio-player-progress { display: none; }
294 .audio-player-cover { width: 40px; height: 40px; }
295 .audio-btn-play { width: 34px; height: 34px; }
296 .audio-player-volume { display: none; }
297}
298
299/* When the main page would be obscured by the player, give it bottom padding */
300body.has-audio-player main {
301 padding-bottom: 80px;
302}
303
304/* ============================================================
305 Now-playing sheet (v9 style — slide-up, drag-to-close)
306 ============================================================ */
307.audio-sheet {
308 position: fixed;
309 inset: 0;
310 z-index: 1100;
311 pointer-events: none;
312 opacity: 0;
313 transition: opacity .25s ease;
314}
315.audio-sheet.is-open {
316 pointer-events: auto;
317 opacity: 1;
318}
319.audio-sheet-backdrop {
320 position: absolute;
321 inset: 0;
322 background: rgb(0 0 0 / calc(.4 * var(--pcms-sheet-progress, 1)));
323 backdrop-filter: blur(calc(24px * var(--pcms-sheet-progress, 1)));
324 -webkit-backdrop-filter: blur(calc(24px * var(--pcms-sheet-progress, 1)));
325 transition: background .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease;
326 will-change: backdrop-filter, background;
327}
328.audio-sheet-panel.is-dragging ~ .audio-sheet-backdrop,
329.audio-sheet-backdrop.is-dragging {
330 transition: none;
331}
332.audio-sheet-panel {
333 position: absolute;
334 bottom: 0;
335 background: var(--paper, #fff);
336 border-top-left-radius: 20px;
337 border-top-right-radius: 20px;
338 box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
339 padding: .75rem 1.5rem 2rem;
340 max-height: 85vh;
341 overflow-y: auto;
342 overscroll-behavior: contain;
343 touch-action: pan-y;
344 scrollbar-width: none; -ms-overflow-style: none;
345 transition: transform .3s cubic-bezier(.22, .9, .3, 1), opacity .3s cubic-bezier(.22, .9, .3, 1);
346 display: flex; flex-direction: column; gap: 1rem;
347 color: var(--ink);
348}
349.audio-sheet-panel::-webkit-scrollbar { display: none; }
350body.audio-sheet-locked { overflow: hidden; }
351
352/* MOBILE (<720px): full-width sheet, slide up from bottom */
353@media (max-width: 719.98px) {
354 .audio-sheet-panel {
355 /* Real full-screen, edge-to-edge, no rounded corners or shadow */
356 inset: 0;
357 left: 0; right: 0;
358 width: auto;
359 max-height: none;
360 border-top-left-radius: 0;
361 border-top-right-radius: 0;
362 box-shadow: none;
363 padding-top: calc(.75rem + env(safe-area-inset-top, 0));
364 padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
365 transform: translateY(100%);
366 }
367 /* When open: at rest unless drag is active (--pcms-drag-y set by JS) */
368 .audio-sheet.is-open .audio-sheet-panel {
369 transform: translateY(var(--pcms-drag-y, 0px));
370 }
371}
372
373/* DESKTOP (≥720px): 480px wide, horizontally centered (v9 design intent).
374 We MUST set width here because v9's style.css sets width:480px and
375 we don't want left/right:0 stretching to override it.
376 The -50% horizontal centering is preserved during drag by composing
377 --pcms-drag-y into the existing translate(-50%, ...) transform. */
378@media (min-width: 720px) {
379 .audio-sheet-panel {
380 left: 50%;
381 right: auto;
382 width: 480px;
383 transform: translate(-50%, 100%);
384 border-top-left-radius: 20px;
385 border-top-right-radius: 20px;
386 }
387 .audio-sheet.is-open .audio-sheet-panel {
388 transform: translate(-50%, var(--pcms-drag-y, 0px));
389 }
390}
391
392.audio-sheet-panel.is-dragging {
393 transition: none;
394 will-change: transform;
395}
396[data-theme="dark"] .audio-sheet-panel {
397 background: var(--paper, #1a1a1a);
398 box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
399}
400
401.audio-sheet-drag-zone {
402 flex-shrink: 0;
403 display: flex;
404 flex-direction: column;
405 align-items: stretch;
406 gap: 1rem;
407 /* MUST be 'none' so pointer events reach JS (drag-down-to-close handler).
408 'pan-y' would let the browser claim the vertical gesture for scroll. */
409 touch-action: none;
410 user-select: none;
411 -webkit-user-select: none;
412 cursor: grab;
413 margin: -.75rem -1.5rem 0;
414 padding: .75rem 1.5rem 0;
415}
416.audio-sheet-drag-zone:active { cursor: grabbing; }
417
418@media (hover: hover) and (pointer: fine) {
419 .audio-sheet-drag-zone {
420 touch-action: auto;
421 cursor: default;
422 pointer-events: none;
423 }
424 .audio-sheet-drag-zone .audio-sheet-handle {
425 pointer-events: auto;
426 cursor: pointer;
427 }
428}
429
430.audio-sheet-handle {
431 display: block;
432 width: 48px; height: 4px;
433 border-radius: 2px;
434 background: color-mix(in srgb, var(--ink, #000) 25%, transparent);
435 border: 0; padding: 0;
436 margin: 0 auto .5rem;
437 cursor: pointer;
438 flex-shrink: 0;
439 position: relative;
440}
441.audio-sheet-handle::before {
442 content: ""; position: absolute;
443 inset: -10px -20px;
444}
445
446.audio-sheet-cover {
447 width: 100%;
448 max-width: 320px;
449 aspect-ratio: 1;
450 margin: 0 auto;
451 border-radius: 12px;
452 background:
453 linear-gradient(135deg,
454 var(--accent, #c2410c),
455 color-mix(in srgb, var(--accent, #c2410c) 55%, #000));
456 background-size: cover; background-position: center;
457 display: flex; align-items: center; justify-content: center;
458 color: rgba(255,255,255,0.9);
459 box-shadow: 0 8px 32px rgba(0,0,0,0.18);
460}
461.audio-sheet-cover svg { width: 30%; height: 30%; }
462.audio-sheet-cover.has-image svg { display: none; }
463
464.audio-sheet-info { text-align: center; min-width: 0; }
465.audio-sheet-title { font-family: var(--font-display, serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
466.audio-sheet-artist { color: var(--ink-soft, rgba(0,0,0,.55)); margin-top: .25rem; }
467.audio-sheet-album { color: var(--ink-muted, rgba(0,0,0,.45)); font-size: 0.85rem; margin-top: .15rem; }
468
469.audio-sheet-progress {
470 display: flex;
471 gap: .75rem;
472 align-items: center;
473 padding: 0 1rem;
474}
475
476.audio-sheet-controls {
477 display: flex;
478 justify-content: center;
479 align-items: center;
480 gap: 1rem;
481 flex-wrap: nowrap;
482 min-height: 64px;
483}
484.audio-sheet-btn { width: 48px; height: 48px; }
485.audio-sheet-btn svg { width: 22px; height: 22px; }
486.audio-sheet-play {
487 background: var(--accent, #c2410c);
488 color: #fff;
489 width: 64px; height: 64px;
490 border-radius: 50%;
491 padding: 0;
492}
493.audio-sheet-play svg { width: 24px; height: 24px; }
494.audio-sheet-play .icon-pause { display: none; }
495/* Both descendant AND sibling — works whether the sheet is nested in
496 .audio-player (legacy) or detached as a body sibling (current fix). */
497.audio-player.is-playing .audio-sheet-play .icon-play,
498.audio-player.is-playing ~ .audio-sheet .audio-sheet-play .icon-play,
499body.audio-is-playing .audio-sheet-play .icon-play { display: none; }
500.audio-player.is-playing .audio-sheet-play .icon-pause,
501.audio-player.is-playing ~ .audio-sheet .audio-sheet-play .icon-pause,
502body.audio-is-playing .audio-sheet-play .icon-pause { display: block; }
503
504.audio-sheet-queue {
505 border-top: 1px solid var(--rule);
506 padding-top: 1rem;
507}
508.audio-sheet-queue-label {
509 font-size: 0.85rem;
510 color: var(--ink-muted, rgba(0,0,0,.55));
511 text-transform: uppercase;
512 letter-spacing: 0.05em;
513 margin-bottom: 0.5rem;
514}
515.audio-sheet-queue-list {
516 list-style: none;
517 margin: 0; padding: 0;
518}
519.audio-sheet-queue-item {
520 display: flex;
521 align-items: baseline;
522 gap: 0.4rem;
523 padding: 0.5rem 0.6rem;
524 border-radius: 4px;
525 cursor: pointer;
526 font-size: 0.95rem;
527}
528.audio-sheet-queue-item:hover { background: color-mix(in srgb, var(--ink, #000) 5%, transparent); }
529.audio-sheet-queue-item.is-current { color: var(--accent); font-weight: 600; }
530.audio-sheet-queue-item .aqi-num { color: var(--ink-muted, rgba(0,0,0,.45)); min-width: 1.6em; }
531.audio-sheet-queue-item .aqi-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
532.audio-sheet-queue-item .aqi-artist {
533 color: var(--ink-muted, rgba(0,0,0,.45));
534 font-size: 0.85rem;
535 margin-left: auto;
536}
537
538/* ============================================================
539 External-link variant ([[link:url]])
540 Branded "Open in Spotify" / etc. button. No iframe.
541 ============================================================ */
542.post-audio-external {
543 display: inline-flex;
544 align-items: center;
545 gap: 0.5rem;
546 margin: 0.75rem 0;
547 padding: 0.55rem 0.95rem;
548 background: var(--paper-2);
549 border: 1px solid var(--rule);
550 border-radius: 999px;
551 color: var(--ink);
552 text-decoration: none;
553 font-weight: 500;
554 font-size: 0.9rem;
555 transition: transform 100ms ease, border-color 150ms;
556}
557.post-audio-external:hover {
558 border-color: var(--accent);
559 transform: translateY(-1px);
560}
561.post-audio-external .pae-icon {
562 display: inline-flex;
563 align-items: center;
564 justify-content: center;
565 width: 22px;
566 height: 22px;
567 border-radius: 50%;
568 background: var(--accent);
569 color: white;
570 font-size: 0.7rem;
571 flex-shrink: 0;
572}
573.post-audio-external .pae-arrow { color: var(--ink-muted, var(--ink-soft)); font-size: 0.85rem; }
574
575/* Platform-specific accent colors (matches v9 brand palette where possible) */
576.post-audio-external--spotify .pae-icon { background: #1DB954; }
577.post-audio-external--bandcamp .pae-icon { background: #629aa9; }
578.post-audio-external--soundcloud .pae-icon { background: #ff5500; }
579.post-audio-external--applemusic .pae-icon { background: #fc3c44; }
580.post-audio-external--youtube .pae-icon { background: #ff0000; }
581.post-audio-external--vimeo .pae-icon { background: #1ab7ea; }
582.post-audio-external--tidal .pae-icon { background: #000; }
583.post-audio-external--deezer .pae-icon { background: #ef5466; }
584.post-audio-external--mixcloud .pae-icon { background: #314359; }
585
586/* ============================================================
587 Album block (v9 style)
588 ============================================================ */
589.post-album {
590 margin: 1.5rem 0;
591 background: var(--paper-2);
592 border: 1px solid var(--rule);
593 border-radius: 10px;
594 overflow: hidden;
595}
596.post-album-header {
597 display: flex;
598 gap: 1rem;
599 padding: 1rem;
600 align-items: center;
601 border-bottom: 1px solid var(--rule);
602}
603.post-album-cover-btn {
604 position: relative;
605 flex-shrink: 0;
606 width: 96px;
607 height: 96px;
608 padding: 0;
609 border: 0;
610 border-radius: 8px;
611 background: var(--paper);
612 color: var(--accent);
613 cursor: pointer;
614 overflow: hidden;
615 display: inline-flex;
616 align-items: center;
617 justify-content: center;
618}
619.post-album-cover-img {
620 width: 100%;
621 height: 100%;
622 object-fit: cover;
623 display: block;
624}
625.post-album-cover-icon {
626 width: 48px;
627 height: 48px;
628}
629.post-album-play-overlay {
630 position: absolute;
631 inset: 0;
632 display: inline-flex;
633 align-items: center;
634 justify-content: center;
635 background: rgba(0,0,0,0.35);
636 color: white;
637 opacity: 0;
638 transition: opacity 150ms;
639}
640.post-album-play-overlay svg { width: 36px; height: 36px; }
641.post-album-cover-btn:hover .post-album-play-overlay,
642.post-album-cover-btn:focus .post-album-play-overlay { opacity: 1; }
643
644.post-album-info { flex: 1; min-width: 0; }
645.post-album-title {
646 font-family: var(--font-display, serif);
647 font-size: 1.25rem;
648 margin: 0 0 0.15rem;
649 color: var(--ink);
650}
651.post-album-artist {
652 margin: 0 0 0.15rem;
653 color: var(--ink);
654 font-size: 0.95rem;
655}
656.post-album-count {
657 margin: 0;
658 color: var(--ink-muted, var(--ink-soft));
659 font-size: 0.8rem;
660 text-transform: uppercase;
661 letter-spacing: 0.05em;
662}
663
664.post-album-tracks {
665 list-style: none;
666 margin: 0;
667 padding: 0.25rem 0;
668 counter-reset: track;
669}
670.post-album-tracks .post-audio-track {
671 margin: 0;
672 border: 0;
673 border-radius: 0;
674 background: transparent;
675 padding: 0.5rem 1rem;
676}
677.post-album-tracks .post-audio-track:hover {
678 background: var(--paper);
679}
680.post-album-tracks .pat-play {
681 width: 36px;
682 height: 36px;
683 background: var(--paper-2);
684 color: var(--accent);
685 border: 1px solid var(--rule);
686}
687.post-album-tracks .pat-play:hover {
688 background: var(--accent);
689 color: white;
690 border-color: var(--accent);
691}
692.post-album-tracks .pat-play svg { width: 14px; height: 14px; }
693.post-album-tracks .pat-track-num {
694 display: inline-block;
695 margin-right: 0.4rem;
696 color: var(--ink-muted, var(--ink-soft));
697 font-variant-numeric: tabular-nums;
698 font-size: 0.85rem;
699}
700.post-album-tracks .pat-info {
701 display: flex;
702 align-items: baseline;
703 gap: 0.2rem;
704 flex-wrap: wrap;
705}
706
707@media (max-width: 600px) {
708 .post-album-header { padding: 0.75rem; gap: 0.75rem; }
709 .post-album-cover-btn { width: 72px; height: 72px; }
710 .post-album-cover-icon { width: 32px; height: 32px; }
711 .post-album-title { font-size: 1.05rem; }
712}
Note: See TracBrowser for help on using the repository browser.