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