| [4c9f29a] | 1 | /* ============================================================
|
|---|
| 2 | * embed.css — eigen, in-huisstijl media-embeds (embed-player.js)
|
|---|
| 3 | * YouTube/SoundCloud = volledig eigen controls; Spotify = onze frame + hun UI.
|
|---|
| 4 | * Gebruikt de site-tokens (--paper/--ink/--accent/--rule/--radius) → past zich
|
|---|
| 5 | * automatisch aan elk thema (light/dark/varianten) aan.
|
|---|
| 6 | * ============================================================ */
|
|---|
| 7 |
|
|---|
| 8 | .folio-embed.pcms-embed-card {
|
|---|
| 9 | margin: 2rem 0;
|
|---|
| 10 | border: 1px solid var(--rule, #e8e2d5);
|
|---|
| 11 | border-radius: var(--radius, 8px);
|
|---|
| 12 | background: var(--paper-2, #f2ede0);
|
|---|
| 13 | overflow: hidden;
|
|---|
| 14 | position: relative;
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | /* Placeholder vóór embed-player.js de kaart opbouwt (of als JS uitstaat). */
|
|---|
| 18 | .pcms-embed-card.pcms-embed-loading {
|
|---|
| 19 | min-height: 64px;
|
|---|
| 20 | }
|
|---|
| 21 | /* Fallback-tekst zolang JS de kaart nog niet heeft opgebouwd (of als JS uitstaat).
|
|---|
| 22 | * buildCard() haalt .pcms-embed-loading weg → deze ::after verdwijnt vanzelf. */
|
|---|
| 23 | .pcms-embed-card.pcms-embed-loading::after {
|
|---|
| 24 | content: "Speler laden\2026";
|
|---|
| 25 | display: block;
|
|---|
| 26 | padding: 1.25rem 1.5rem;
|
|---|
| 27 | color: var(--ink-faint, #a8a29e);
|
|---|
| 28 | font-size: .85rem;
|
|---|
| 29 | font-family: var(--font-mono, monospace);
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | /* ---- Video-stage (YouTube): 16:9 ---- */
|
|---|
| 33 | .pcms-embed-stage {
|
|---|
| 34 | position: relative;
|
|---|
| 35 | width: 100%;
|
|---|
| 36 | aspect-ratio: 16 / 9;
|
|---|
| 37 | background: #000;
|
|---|
| 38 | }
|
|---|
| 39 | .pcms-embed-stage .pcms-embed-mount,
|
|---|
| 40 | .pcms-embed-stage iframe {
|
|---|
| 41 | position: absolute;
|
|---|
| 42 | inset: 0;
|
|---|
| 43 | width: 100% !important;
|
|---|
| 44 | height: 100% !important;
|
|---|
| 45 | border: 0;
|
|---|
| 46 | }
|
|---|
| 47 | .pcms-embed-poster {
|
|---|
| 48 | position: absolute;
|
|---|
| 49 | inset: 0;
|
|---|
| 50 | width: 100%;
|
|---|
| 51 | height: 100%;
|
|---|
| 52 | border: 0;
|
|---|
| 53 | padding: 0;
|
|---|
| 54 | cursor: pointer;
|
|---|
| 55 | background-size: cover;
|
|---|
| 56 | background-position: center;
|
|---|
| 57 | background-color: #000;
|
|---|
| 58 | display: grid;
|
|---|
| 59 | place-items: center;
|
|---|
| 60 | transition: opacity var(--transition, 180ms);
|
|---|
| 61 | }
|
|---|
| 62 | .pcms-embed-card.is-mounted .pcms-embed-poster { display: none; }
|
|---|
| 63 |
|
|---|
| 64 | /* ---- Audio-layout (SoundCloud / Spotify-facade) ---- */
|
|---|
| 65 | .pcms-embed-audio {
|
|---|
| 66 | display: flex;
|
|---|
| 67 | align-items: stretch;
|
|---|
| 68 | gap: 0;
|
|---|
| 69 | min-height: 96px;
|
|---|
| 70 | }
|
|---|
| 71 | .pcms-embed-art {
|
|---|
| 72 | flex: 0 0 96px;
|
|---|
| 73 | width: 96px;
|
|---|
| 74 | height: 96px;
|
|---|
| 75 | border: 0;
|
|---|
| 76 | padding: 0;
|
|---|
| 77 | cursor: pointer;
|
|---|
| 78 | background: var(--paper, #faf8f3) center / cover no-repeat;
|
|---|
| 79 | display: grid;
|
|---|
| 80 | place-items: center;
|
|---|
| 81 | color: var(--ink, #1a1a1a);
|
|---|
| 82 | }
|
|---|
| 83 | .pcms-embed-art.has-art .pcms-embed-bigplay {
|
|---|
| 84 | background: rgba(0,0,0,.45);
|
|---|
| 85 | border-radius: 50%;
|
|---|
| 86 | }
|
|---|
| 87 | .pcms-embed-info {
|
|---|
| 88 | flex: 1 1 auto;
|
|---|
| 89 | min-width: 0;
|
|---|
| 90 | display: flex;
|
|---|
| 91 | flex-direction: column;
|
|---|
| 92 | justify-content: center;
|
|---|
| 93 | gap: .2rem;
|
|---|
| 94 | padding: .75rem 1rem;
|
|---|
| 95 | }
|
|---|
| 96 | .pcms-embed-info .pcms-embed-title {
|
|---|
| 97 | font-weight: 600;
|
|---|
| 98 | font-size: .95rem;
|
|---|
| 99 | color: var(--ink, #1a1a1a);
|
|---|
| 100 | overflow: hidden;
|
|---|
| 101 | text-overflow: ellipsis;
|
|---|
| 102 | white-space: nowrap;
|
|---|
| 103 | }
|
|---|
| 104 | .pcms-embed-info .pcms-embed-sub {
|
|---|
| 105 | font-size: .8rem;
|
|---|
| 106 | color: var(--ink-muted, #6b6560);
|
|---|
| 107 | overflow: hidden;
|
|---|
| 108 | text-overflow: ellipsis;
|
|---|
| 109 | white-space: nowrap;
|
|---|
| 110 | }
|
|---|
| 111 |
|
|---|
| 112 | /* SoundCloud-iframe: functioneel maar onzichtbaar (we sturen via de Widget-API
|
|---|
| 113 | * en tonen onze eigen balk). Off-screen i.p.v. display:none zodat de widget
|
|---|
| 114 | * betrouwbaar initialiseert + audio blijft spelen. */
|
|---|
| 115 | .pcms-embed-card--soundcloud .pcms-embed-mount {
|
|---|
| 116 | position: absolute;
|
|---|
| 117 | left: -99999px;
|
|---|
| 118 | top: 0;
|
|---|
| 119 | width: 320px;
|
|---|
| 120 | height: 60px;
|
|---|
| 121 | opacity: 0;
|
|---|
| 122 | pointer-events: none;
|
|---|
| 123 | }
|
|---|
| 124 |
|
|---|
| 125 | /* Spotify: hun iframe IS de speler → tonen. Onze facade (art+info) verdwijnt
|
|---|
| 126 | * zodra de controller gemount is. */
|
|---|
| 127 | .pcms-embed-card--spotify .pcms-embed-mount { display: block; width: 100%; }
|
|---|
| 128 | .pcms-embed-card--spotify .pcms-embed-mount iframe {
|
|---|
| 129 | width: 100% !important;
|
|---|
| 130 | border: 0;
|
|---|
| 131 | display: block;
|
|---|
| 132 | }
|
|---|
| 133 | .pcms-embed-card--spotify.is-mounted .pcms-embed-art,
|
|---|
| 134 | .pcms-embed-card--spotify.is-mounted .pcms-embed-info { display: none; }
|
|---|
| 135 | .pcms-embed-card--spotify:not(.is-mounted) .pcms-embed-mount { display: none; }
|
|---|
| 136 |
|
|---|
| [7f46817d] | 137 | /* Spotify in een nette witte box (Robin 2026-06-15): witte rand + rounded +
|
|---|
| 138 | * schaduw. Hogere specificity (.folio-embed.pcms-embed-card--spotify) zodat dit
|
|---|
| 139 | * de generieke .folio-embed.pcms-embed-card-basis (gelijke specificity) wint —
|
|---|
| 140 | * staat ook later in het bestand. */
|
|---|
| 141 | .folio-embed.pcms-embed-card--spotify {
|
|---|
| 142 | border: 3px solid #ffffff;
|
|---|
| 143 | border-radius: 16px;
|
|---|
| 144 | background: #ffffff;
|
|---|
| 145 | padding: 5px;
|
|---|
| 146 | box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
|
|---|
| 147 | }
|
|---|
| 148 | .pcms-embed-card--spotify .pcms-embed-mount iframe { border-radius: 12px; }
|
|---|
| 149 | /* Facade (vóór afspelen) leesbaar op de witte box, ongeacht het thema. */
|
|---|
| 150 | .pcms-embed-card--spotify .pcms-embed-audio { background: #ffffff; border-radius: 12px; overflow: hidden; }
|
|---|
| 151 | .pcms-embed-card--spotify .pcms-embed-art { background: #f0f0f0; color: #191414; }
|
|---|
| 152 | .pcms-embed-card--spotify .pcms-embed-title { color: #191414; }
|
|---|
| 153 | .pcms-embed-card--spotify .pcms-embed-sub { color: #555555; }
|
|---|
| 154 | .pcms-embed-card--spotify .pcms-embed-frame-badge { background: #ffffff; border-top: 0; padding-top: 0; }
|
|---|
| 155 |
|
|---|
| [4c9f29a] | 156 | /* ---- Grote play-knop (poster/art) ---- */
|
|---|
| 157 | .pcms-embed-bigplay {
|
|---|
| 158 | width: 64px;
|
|---|
| 159 | height: 64px;
|
|---|
| 160 | display: grid;
|
|---|
| 161 | place-items: center;
|
|---|
| 162 | border-radius: 50%;
|
|---|
| 163 | background: var(--accent, #c2410c);
|
|---|
| 164 | color: #fff;
|
|---|
| 165 | box-shadow: 0 4px 16px rgba(0,0,0,.35);
|
|---|
| 166 | transition: transform var(--transition, 180ms);
|
|---|
| 167 | }
|
|---|
| 168 | .pcms-embed-art .pcms-embed-bigplay { width: 44px; height: 44px; }
|
|---|
| 169 | .pcms-embed-bigplay svg { width: 42%; height: 42%; }
|
|---|
| 170 | .pcms-embed-poster:hover .pcms-embed-bigplay,
|
|---|
| 171 | .pcms-embed-art:hover .pcms-embed-bigplay { transform: scale(1.08); }
|
|---|
| 172 |
|
|---|
| 173 | /* ---- Onze controlebalk (YouTube/SoundCloud) ---- */
|
|---|
| 174 | .pcms-embed-bar {
|
|---|
| 175 | display: flex;
|
|---|
| 176 | align-items: center;
|
|---|
| 177 | gap: .65rem;
|
|---|
| 178 | padding: .55rem .75rem;
|
|---|
| 179 | border-top: 1px solid var(--rule, #e8e2d5);
|
|---|
| 180 | background: var(--paper, #faf8f3);
|
|---|
| 181 | }
|
|---|
| 182 | .pcms-embed-pp {
|
|---|
| 183 | flex: 0 0 auto;
|
|---|
| 184 | width: 38px;
|
|---|
| 185 | height: 38px;
|
|---|
| 186 | border: 0;
|
|---|
| 187 | border-radius: 50%;
|
|---|
| 188 | cursor: pointer;
|
|---|
| 189 | background: var(--accent, #c2410c);
|
|---|
| 190 | color: #fff;
|
|---|
| 191 | display: grid;
|
|---|
| 192 | place-items: center;
|
|---|
| 193 | }
|
|---|
| 194 | .pcms-embed-pp svg { width: 18px; height: 18px; }
|
|---|
| 195 | .pcms-embed-cur, .pcms-embed-dur {
|
|---|
| 196 | flex: 0 0 auto;
|
|---|
| 197 | font-size: .75rem;
|
|---|
| 198 | color: var(--ink-muted, #6b6560);
|
|---|
| 199 | font-variant-numeric: tabular-nums;
|
|---|
| 200 | min-width: 2.6em;
|
|---|
| 201 | text-align: center;
|
|---|
| 202 | }
|
|---|
| 203 | .pcms-embed-seek {
|
|---|
| 204 | position: relative;
|
|---|
| 205 | flex: 1 1 auto;
|
|---|
| 206 | height: 16px;
|
|---|
| 207 | cursor: pointer;
|
|---|
| 208 | }
|
|---|
| 209 | .pcms-embed-seek::before {
|
|---|
| 210 | content: "";
|
|---|
| 211 | position: absolute;
|
|---|
| 212 | left: 0; right: 0; top: 50%;
|
|---|
| 213 | transform: translateY(-50%);
|
|---|
| 214 | height: 4px;
|
|---|
| 215 | border-radius: 2px;
|
|---|
| 216 | background: var(--rule-2, #d4ccb8);
|
|---|
| 217 | }
|
|---|
| 218 | .pcms-embed-seek-fill {
|
|---|
| 219 | position: absolute;
|
|---|
| 220 | left: 0; top: 50%;
|
|---|
| 221 | transform: translateY(-50%);
|
|---|
| 222 | height: 4px;
|
|---|
| 223 | width: 0%;
|
|---|
| 224 | border-radius: 2px;
|
|---|
| 225 | background: var(--accent, #c2410c);
|
|---|
| 226 | pointer-events: none;
|
|---|
| 227 | z-index: 1;
|
|---|
| 228 | }
|
|---|
| 229 | .pcms-embed-badge {
|
|---|
| 230 | flex: 0 0 auto;
|
|---|
| 231 | font-size: .68rem;
|
|---|
| 232 | letter-spacing: .04em;
|
|---|
| 233 | text-transform: uppercase;
|
|---|
| 234 | color: var(--ink-faint, #a8a29e);
|
|---|
| 235 | text-decoration: none;
|
|---|
| 236 | }
|
|---|
| 237 | .pcms-embed-badge:hover { color: var(--accent, #c2410c); }
|
|---|
| 238 |
|
|---|
| 239 | /* Provider-accent op de badge */
|
|---|
| 240 | .pcms-embed-card--youtube .pcms-embed-badge { color: #ff0033; }
|
|---|
| 241 | .pcms-embed-card--soundcloud .pcms-embed-badge { color: #ff5500; }
|
|---|
| 242 |
|
|---|
| 243 | /* ---- Spotify-frame-badge (geen eigen balk) ---- */
|
|---|
| 244 | .pcms-embed-frame-badge {
|
|---|
| 245 | padding: .4rem .75rem;
|
|---|
| 246 | border-top: 1px solid var(--rule, #e8e2d5);
|
|---|
| 247 | background: var(--paper, #faf8f3);
|
|---|
| 248 | font-size: .68rem;
|
|---|
| 249 | letter-spacing: .04em;
|
|---|
| 250 | text-transform: uppercase;
|
|---|
| 251 | }
|
|---|
| 252 | .pcms-embed-frame-badge a { color: #1db954; text-decoration: none; }
|
|---|
| 253 | .pcms-embed-frame-badge a:hover { text-decoration: underline; }
|
|---|
| 254 | .pcms-embed-card--spotify.is-mounted .pcms-embed-frame-badge { display: none; }
|
|---|
| 255 |
|
|---|
| 256 | /* ---- Busy / error ---- */
|
|---|
| 257 | .pcms-embed-card.pcms-embed-busy { cursor: progress; }
|
|---|
| 258 | .pcms-embed-card.pcms-embed-error .pcms-embed-sub { color: #c0392b; }
|
|---|
| 259 |
|
|---|
| 260 | .pcms-embed-bigplay,
|
|---|
| 261 | .pcms-embed-pp,
|
|---|
| 262 | .pcms-embed-poster { -webkit-tap-highlight-color: transparent; }
|
|---|