/* Spotify mode (playlists.js): Tom's playlist covers and Filo, as cards on the site's own pile. Each cover keeps
   the footer's back-of-sleeve, shown on click. The cover is designed at 316px and drawn at 60% (zoom), so the sleeve
   text keeps the proportions that make the longest one (Deep Work, Lo-Fi Radio) fit without clipping. */
.pi.cover { border-radius: 8.4px; box-shadow: var(--lift, 0 1px 2px rgba(30, 18, 6, .1), 0 5px 12px -4px rgba(30, 18, 6, .18), 0 20px 36px -14px rgba(30, 18, 6, .5)), 0 22px 42px -14px rgba(139, 112, 240, calc(var(--hp) * .75)), 0 4px 14px -4px rgba(139, 112, 240, calc(var(--hp) * .35)); }
/* 1.5px: the cover art runs right to its edge, so a 1px line reads thinner here than on the other cards */
.pi.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 calc(1.5px / var(--s, 1)) var(--keyline); pointer-events: none; z-index: 3; }
.pi.cover.flip::after { opacity: 0; }
.cv { position: relative; display: block; width: 316px; height: 316px; zoom: .6; }
.pl-front { position: absolute; inset: 0; z-index: 2; border-radius: 14px; overflow: hidden; transform-origin: 50% 50%; transition: transform 250ms cubic-bezier(.22, .8, .36, 1), filter 250ms ease; }
.pl-front img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.pl-back { position: absolute; top: 6%; left: -3px; right: -3px; bottom: -6px; z-index: 3; padding: 15px 17px 13px; display: flex; flex-direction: column; justify-content: space-between;
  color: #FFE7C6; background: #18161F; border-radius: 16px; box-shadow: 0 18px 36px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #0D0B22; text-decoration: none;
  opacity: 0; transform: translateY(18px); transition: opacity 250ms ease, transform 250ms cubic-bezier(.22, .9, .35, 1); pointer-events: none; cursor: pointer; }
.pl-head, .pl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.pl-head > *, .pl-foot > *:not(.pl-live) { opacity: .75; }
.pl-title { font-size: 12px; font-weight: 600; } .pl-side { font-weight: 600; letter-spacing: .18em; }
.pl-desc { display: block; padding: 4px 0; font: 15.5px/1.34 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; white-space: pre-line; word-spacing: -.4px; }
.pl-sub { color: #B19EF8; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; } .pl-sub:hover { color: #FFFAF3; }
.pl-barcode { display: flex; align-items: flex-end; gap: 1.5px; height: 22px; flex: 1; max-width: 58%; } .pl-barcode i { display: block; background: #FFE7C6; height: 100%; opacity: .85; }
.pl-live { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; letter-spacing: .1em; font-size: 13.5px; }
.pl-spotify { width: 15px; height: 15px; filter: drop-shadow(0 0 5px rgba(30, 215, 96, .55)); animation: pl-pulse 1.5s ease-in-out infinite; }
@keyframes pl-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.13); } }
/* clicked: the cover lifts and dims, and the sleeve slides up in front of it (it links to the playlist) */
.pi.cover.flip .pl-front { transform: translateY(-8%) scale(.85); filter: brightness(.55) saturate(.85); }
.pi.cover.flip .pl-back { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Filo in headphones: one more card on the pile, no frame, bobbing his head with notes floating up */
.pi.filo { width: 120px; }
.pl-filo { position: relative; width: 120px; }
.pl-filo-svg { display: block; width: 100%; height: auto; animation: pl-bob 1.46s ease-in-out infinite; transform-origin: 50% 85%; filter: drop-shadow(0 6px 8px rgba(30, 18, 6, .25)); }
@keyframes pl-bob { 0% { transform: translateY(-2px) rotate(-3.2deg); } 18% { transform: translateY(7px) rotate(.5deg); } 50% { transform: translateY(-2px) rotate(-3.2deg); } 68% { transform: translateY(3px) rotate(-1deg); } 100% { transform: translateY(-2px) rotate(-3.2deg); } }
.pl-notes { position: absolute; top: 0; left: 86%; width: 50%; height: 50%; margin-top: -10px; pointer-events: none; color: #0D0B22; } /* always near-black: they sit over the covers */
.pl-note { position: absolute; left: 0; top: 40%; opacity: 0; width: 24px; height: auto; }
.pl-note-a { animation: pl-float-a 5s ease-in-out infinite; } .pl-note-b { animation: pl-float-b 5s ease-in-out 1.7s infinite; } .pl-note-c { animation: pl-float-c 5s ease-in-out 3.3s infinite; }
@keyframes pl-float-a { 0% { transform: translate(0, 0) scale(.5) rotate(-8deg); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(14px, -26px) scale(1.05) rotate(14deg); opacity: 1; } 100% { transform: translate(36px, -66px) scale(1.1) rotate(22deg); opacity: 0; } }
@keyframes pl-float-b { 0% { transform: translate(0, 0) scale(.5) rotate(8deg); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(-10px, -24px) scale(1) rotate(-12deg); opacity: 1; } 100% { transform: translate(-30px, -64px) scale(1.05) rotate(-20deg); opacity: 0; } }
@keyframes pl-float-c { 0% { transform: translate(0, 0) scale(.5) rotate(0deg); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(5px, -28px) scale(1.05) rotate(16deg); opacity: 1; } 100% { transform: translate(-3px, -62px) scale(1.1) rotate(-14deg); opacity: 0; } }
/* no caption or "open" card under the playlists */
.rc-pane.custom .rc-cap, .rc-pane.custom .rc-go, .rc-pane.custom .rc-tag { display: none !important; }

/* with the sleeve showing, the sleeve is the shape: the cover's own outline and shadow step aside, and the purple
   corner effects sit on the sleeve (its lines drawn 1/0.6 thicker to cancel the 60% zoom) */
.pi.cover.flip { box-shadow: none; }
/* the sleeve wears the same outline as every card (1.5px on screen, drawn 2.5px inside the 60% zoom); it only turns
   purple from a dragged corner, never just from hovering it */
.pi.cover.flip .pl-back { box-shadow: 0 18px 36px rgba(0, 0, 0, .55), 0 22px 42px -14px rgba(177, 158, 248, calc(var(--hp) * .6)), inset 0 0 0 calc(2.5px / var(--s, 1)) var(--keyline); }
.pl-back .pi-edge { box-shadow: inset 0 0 0 calc(3.33px / var(--s, 1)) rgba(177, 158, 248, var(--ea, 0)); }
/* corner effects v3 on covers: same rules as the other cards (see home.css), with the cover's 1.5px line */
.pi.cover { --sa: calc(1 - var(--hp) * .45);
  box-shadow: 0 1px 2px rgba(30, 18, 6, calc(.1 * var(--sa))), 0 5px 12px -4px rgba(30, 18, 6, calc(.18 * var(--sa))), 0 20px 36px -14px rgba(30, 18, 6, calc(.5 * var(--sa))),
    0 calc(20px / var(--s, 1)) calc(40px / var(--s, 1)) calc(-12px / var(--s, 1)) rgba(177, 158, 248, calc(var(--hp) * .6 * var(--pur))), 0 calc(4px / var(--s, 1)) calc(14px / var(--s, 1)) calc(-4px / var(--s, 1)) rgba(177, 158, 248, calc(var(--hp) * .35 * var(--pur))); }
.pi.cover.flip { box-shadow: none; }
.pi.cover > .pi-edge { --lw: calc(1.5px / var(--s, 1)); }
.pl-back .pi-edge { --lw: calc(2.5px / var(--s, 1)); box-shadow: inset 0 0 0 var(--lw) rgba(155, 134, 243, var(--ea, 0)); }
.pi.cover::after { -webkit-mask: radial-gradient(circle var(--kL, 130px) at var(--kex, 0%) var(--key, 0%), rgba(0, 0, 0, calc(1 - var(--kea, 0))) 0, #000 100%);
  mask: radial-gradient(circle var(--kL, 130px) at var(--kex, 0%) var(--key, 0%), rgba(0, 0, 0, calc(1 - var(--kea, 0))) 0, #000 100%); }


/* a Spotify-green play button on the sleeve while you hover it, built like the Loom ones (36px on screen: 60 inside
   the 60% zoom) */
.pl-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(180deg, #2BE36F 0%, #1DB954 100%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .25), inset 0 -1.5px 0 rgba(0, 60, 20, .2), 0 0 0 1.5px rgba(255, 255, 255, .3), 0 7px 20px -3px rgba(0, 0, 0, .45);
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s cubic-bezier(.2, 1.3, .3, 1); pointer-events: none; }
.pl-play svg { width: 28px; height: 28px; fill: #0D0B22; }
.pi.cover.flip .pl-back:hover .pl-play { opacity: 1; transform: scale(1); }
/* the fade behind an open sleeve: the page colour at 58%, so the cards under it look like the pile at 42% */
.pl-veil { position: absolute; inset: -60px -300px; /* wide enough for every card and its shadow, short enough never to add a scrollbar */ background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.pl-veil.on { opacity: .58; }
