/* Therapy Sound sticky player bar (artist pages + the site-wide playlist).
   Shared by events/public_artist_portal.html (artist's SoundCloud, else
   Spotify) and _partials/therapy_site_player.html (the site playlist).
   Moved out of therapy-artist.css on 28 Nov 2026. */
/* Spotify bar: sticky compact player above the bottom bar (and its Events
   button crest, ~86px). Same 430px column as the bar. */
.ts-spbar{position:fixed;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:697;max-width:430px;margin:0 auto;display:flex;align-items:center;gap:8px;padding:6px 8px 12px;background:color-mix(in srgb,#1E1914 96%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid rgba(239,233,220,.10);transition:transform .34s cubic-bezier(.32,.72,.28,1),opacity .25s}
/* docked bar on the bottom bar; the Events button crest (about 6px tall) rests in its lower 12px (was 24px, Sam 27 Nov 2026: too much space).
   Spotify's compact player is 80px tall at minimum, so it is drawn at 75%
   (60px) to keep the bar slim; taps still land where they look. */
.ts-spbar-card{position:relative;flex:1 1 auto;min-width:0;height:60px;border-radius:8px;overflow:hidden;background:#29221B}
.ts-spbar-card iframe{position:absolute;left:0;top:0;width:133.34%;height:80px;border:0;transform:scale(.75);transform-origin:0 0;opacity:0;transition:opacity .3s}
.ts-spbar.is-ready .ts-spbar-card iframe{opacity:1}
.ts-spbar-ph{display:flex;align-items:center;gap:10px;height:100%;padding:6px;color:#EFE9DC}
.ts-spbar-ph .art{width:48px;height:48px;border-radius:5px;background:rgba(239,233,220,.08)}
.ts-spbar-ph .t{display:flex;flex-direction:column;gap:3px;font:600 13px/1.2 'Hanken Grotesk',system-ui,sans-serif}
.ts-spbar-ph small{font-size:11px;font-weight:500;color:#948C7C}
.ts-spbar.is-ready .ts-spbar-ph{visibility:hidden}
/* SoundCloud mode (full-length plays for everyone, Sam 28 Nov 2026):
   one set or song. Our cover, title, play button, scrub bar and back 15s /
   forward 30s drive SoundCloud's widget, which loads (hidden) on the first
   tap. The SoundCloud logo links to the track (attribution). When a phone
   will not let the widget start from our button, .is-native shows
   SoundCloud's own player over the whole bar, same size, for one tap. */
.ts-spbar.is-sc{position:fixed}
.ts-spbar-sc{position:absolute;left:8px;top:6px;width:calc(100% - 16px);height:60px;border:0;border-radius:8px;opacity:0;pointer-events:none;z-index:0;background:#F2F2F2}
.ts-spbar.is-native .ts-spbar-sc{opacity:1;pointer-events:auto;z-index:4}
.ts-spbar.is-native :is(.ts-spbar-card,.ts-spbar-side){visibility:hidden}
.ts-spbar.is-sc.is-ready .ts-spbar-ph{visibility:visible}
.ts-spbar.is-sc .ts-spbar-ph{position:relative;z-index:1}
.ts-spbar.is-sc .ts-spbar-ph .art{flex:0 0 48px;background:rgba(239,233,220,.08) center/cover no-repeat}
.ts-spbar.is-sc .ts-spbar-ph .t{flex:1 1 auto;min-width:0}
.ts-spbar.is-sc .ts-spbar-ph b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-spbar-src{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;font-size:11px;font-weight:500;color:#948C7C;text-decoration:none}
.ts-spbar-src:hover{color:#EFE9DC}
.ts-spbar-src svg{flex:0 0 auto;color:#FF5500}
.ts-spbar-go{flex:0 0 40px;width:40px;height:40px;margin-right:4px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:var(--acc,#1F8C8C);color:#13161B;transition:transform .15s}
.ts-spbar-go:active{transform:scale(.92)}
.ts-spbar-go:focus-visible{outline:2px solid #EFE9DC;outline-offset:2px}
.ts-spbar-go .i-play{margin-left:2px}
.ts-spbar-go .i-pause,.ts-spbar.is-playing .ts-spbar-go .i-play{display:none}
.ts-spbar.is-playing .ts-spbar-go .i-pause{display:block}
.ts-spbar.is-loading .ts-spbar-go{animation:tsSpPulse 1s ease-in-out infinite}
@keyframes tsSpPulse{50%{opacity:.55}}
.ts-spbar-sub{display:flex;align-items:center;gap:8px;min-width:0;height:18px}
.ts-spbar-src{flex:0 1 auto;min-width:0}
.ts-spbar-scrub,.ts-spbar-time{display:none}
.ts-spbar.is-started .ts-spbar-src{flex:0 0 auto}
.ts-spbar.is-started .ts-spbar-src .lbl{display:none}
.ts-spbar.is-started :is(.ts-spbar-scrub,.ts-spbar-time){display:block}
.ts-spbar-scrub{flex:1 1 auto;min-width:0}
.ts-spbar-scrub input{-webkit-appearance:none;appearance:none;display:block;width:100%;height:18px;margin:0;background:transparent;cursor:pointer;--p:0%}
.ts-spbar-scrub input::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:linear-gradient(90deg,var(--acc,#1F8C8C) var(--p),rgba(239,233,220,.18) var(--p))}
.ts-spbar-scrub input::-moz-range-track{height:3px;border-radius:2px;background:linear-gradient(90deg,var(--acc,#1F8C8C) var(--p),rgba(239,233,220,.18) var(--p))}
.ts-spbar-scrub input::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4.5px;border:0;border-radius:50%;background:#EFE9DC}
.ts-spbar-scrub input::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#EFE9DC}
.ts-spbar-scrub input:focus-visible{outline:2px solid var(--acc,#1F8C8C);outline-offset:2px;border-radius:4px}
.ts-spbar-time{flex:0 0 auto;font:600 10px/1 'Hanken Grotesk',system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.02em;color:#948C7C;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.ts-spbar.is-loading .ts-spbar-go{animation:none}}
.ts-spbar-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.ts-spbar-skip{display:flex;gap:4px}
.ts-spbar-skip button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;padding:0;border:1px solid rgba(239,233,220,.18);background:rgba(239,233,220,.06);color:#EFE9DC;cursor:pointer;transition:background .15s}
.ts-spbar-skip button:hover{background:rgba(239,233,220,.16)}
.ts-spbar-skip button:active{transform:scale(.92)}
.ts-spbar.is-sc .ts-spbar-skip button{position:relative;width:40px;height:40px}
.ts-spbar.is-sc .ts-spbar-skip button span{position:absolute;inset:0;display:grid;place-items:center;font:800 9px/1 'Hanken Grotesk',system-ui,sans-serif;letter-spacing:0;padding-top:1px}
.ts-spbar-skip button:disabled{opacity:.4;cursor:default}
.ts-spbar-skip button:disabled:active{transform:none}
.ts-spbar-side .n{font:700 10px/1 'Hanken Grotesk',system-ui,sans-serif;letter-spacing:.08em;color:#948C7C}
.ts-spbar-side .n b{color:#EFE9DC;font-weight:800}
.ts-spbar-min{position:absolute;top:-22px;right:12px;width:36px;height:22px;border-radius:8px 8px 0 0;display:grid;place-items:center;padding:0;cursor:pointer;background:color-mix(in srgb,#1E1914 96%,transparent);color:#CCC5B4;border:1px solid rgba(239,233,220,.10);border-bottom:0}
.ts-spbar-min:hover{color:#EFE9DC}
.ts-spbar-pill{display:none;position:fixed;right:max(12px,calc(50% - 203px));bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:697;align-items:center;gap:8px;height:40px;padding:0 16px 0 11px;border-radius:99px;cursor:pointer;background:#1E1914;color:#EFE9DC;border:1px solid rgba(239,233,220,.18);box-shadow:0 10px 24px -8px rgba(0,0,0,.7);font:800 11px/1 'Hanken Grotesk',system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.ts-spbar.is-min{transform:translateY(100%);opacity:0;pointer-events:none}
.ts-spbar.is-min + .ts-spbar-pill{display:flex}
/* desktop: no docked bar. A Listen button in the bottom-right corner opens
   the player as a card in that same corner (Sam, 8 Nov 2026). */
@media (min-width:900px){
  .ts-spbar{left:auto;right:24px;bottom:96px;width:400px;max-width:none;margin:0;padding:8px;border:1px solid rgba(239,233,220,.14);border-radius:14px;box-shadow:0 30px 60px -20px rgba(0,0,0,.75);transform-origin:100% 100%}
  .ts-spbar.is-min{transform:scale(.6) translateY(20px)}
  .ts-spbar-min{top:-22px;right:14px}
  .ts-spbar-pill{right:24px;bottom:96px;height:48px;padding:0 20px 0 14px;font-size:12px}
  body.has-spbar{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}
/* wide screens: the bottom bar is a centred column, so the corner is free */
@media (min-width:1280px){.ts-spbar,.ts-spbar-pill{bottom:24px}}
/* page clears bar + player; hide under an open bottom-bar sheet */
body.has-spbar{padding-bottom:calc(170px + env(safe-area-inset-bottom,0px))}
body.has-spbar .pp-edit-fab{bottom:calc(170px + env(safe-area-inset-bottom,0px))}
body:is(.tsbb-ev-open,.tsbb-mn-open,.tsbb-ct-open,.tsbb-ar-open) :is(.ts-spbar,.ts-spbar-pill){visibility:hidden}
/* desktop: the corner card does not need the docked bar's clearance */
@media (min-width:900px){body.has-spbar{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}body.has-spbar .pp-edit-fab{bottom:calc(var(--ts-bottom-nav-h,0px) + 22px)}}

/* Site-wide playlist shell (js/ts-site-shell.js): once the playlist plays,
   site links open in a full-screen same-origin frame so the music never
   stops. The top page then shows only the frame and the player. */
html.ts-shell-on,html.ts-shell-on body{height:100%;overflow:hidden}
html.ts-shell-on body{padding:0!important;margin:0}
html.ts-shell-on body>:not(.ts-shell-keep){display:none!important}
.ts-shell-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:690;background:#F6F5F2;color-scheme:normal}
body.ts-shell-sheet :is(.ts-spbar,.ts-spbar-pill){visibility:hidden}
/* inside the frame the top page's player plays: hide this page's own bar */
html.ts-in-shell :is(#tsSiteBar,#tsSpBar),html.ts-in-shell :is(#tsSiteBar,#tsSpBar)+.ts-spbar-pill{display:none!important}
/* SoundCloud's own player (fallback) gets the full width: next to the
   skip buttons its title squeezes to a few letters on a 390px phone */
.ts-spbar.is-native .ts-spbar-side{display:none}
@media (min-width:900px){.ts-spbar-sc{top:8px}}

/* Tablet + desktop SoundCloud player (Sam, 28 Nov 2026: "too small for
   desktop ... could be a more expanded version, doesn't have to be a
   little button"). From 768px (where the bottom bar hides) it is a full
   width player docked to the bottom of the screen: cover, title and
   SoundCloud link on the left; back 15 / play / forward 30 in the middle
   with a wide scrub bar under them; time and Hide on the right. Opens
   expanded; Hide leaves a Listen button in the bottom-right corner.
   Same markup as the phone bar: the wrappers turn into display:contents
   and every control is placed on one grid. Spotify bars keep the card. */
@media (min-width:768px){
  .ts-spbar.is-sc{left:0;right:0;bottom:0;width:auto;max-width:none;margin:0;
    display:grid;grid-template-columns:64px minmax(0,1.3fr) minmax(0,1fr) 44px 56px 44px minmax(0,1fr) minmax(0,1.3fr);
    grid-template-rows:50px 18px;column-gap:14px;row-gap:6px;align-items:center;
    padding:12px max(24px,calc((100% - 1280px) / 2)) calc(12px + env(safe-area-inset-bottom,0px));
    background:#13161B;border:0;border-top:1px solid rgba(235,199,148,.14);border-radius:0;
    box-shadow:0 -18px 40px -24px rgba(0,0,0,.6);transform-origin:50% 100%}
  .ts-spbar.is-sc.is-min{transform:translateY(100%)}
  .ts-spbar.is-sc :is(.ts-spbar-card,.ts-spbar-ph,.ts-spbar-ph .t,.ts-spbar-sub,.ts-spbar-side,.ts-spbar-skip){display:contents}
  .ts-spbar.is-sc .ts-spbar-ph .art{grid-column:1;grid-row:1 / 3;width:64px;height:64px;border-radius:8px}
  .ts-spbar.is-sc .ts-spbar-ph b{grid-column:2 / 4;grid-row:1;align-self:end;font:700 16px/1.25 'Bitter',Georgia,serif;letter-spacing:-.01em;color:#F6F5F2}
  .ts-spbar.is-sc .ts-spbar-src{grid-column:2;grid-row:2;font-size:12px;color:#A9A49A}
  .ts-spbar.is-sc .ts-spbar-src:hover{color:#EBC794}
  .ts-spbar.is-sc .ts-spbar-src .lbl{display:inline}
  .ts-spbar.is-sc [data-seek="-15"]{grid-column:4;grid-row:1;justify-self:center}
  .ts-spbar.is-sc .ts-spbar-go{grid-column:5;grid-row:1;justify-self:center;width:50px;height:50px;margin:0}
  .ts-spbar.is-sc .ts-spbar-go svg{width:20px;height:20px}
  .ts-spbar.is-sc [data-seek="30"]{grid-column:6;grid-row:1;justify-self:center}
  .ts-spbar.is-sc .ts-spbar-skip button{width:44px;height:44px}
  .ts-spbar.is-sc .ts-spbar-skip button span{font-size:10px}
  .ts-spbar.is-sc .ts-spbar-scrub{display:block;grid-column:3 / 8;grid-row:2}
  .ts-spbar.is-sc .ts-spbar-scrub input:disabled{cursor:default;opacity:.5}
  .ts-spbar.is-sc .ts-spbar-time{display:block;grid-column:8;grid-row:2;font-size:12px;color:#A9A49A}
  .ts-spbar.is-sc .ts-spbar-min{position:static;grid-column:8;grid-row:1;justify-self:end;width:auto;height:34px;padding:0 12px;gap:6px;display:inline-flex;align-items:center;border:1px solid rgba(235,199,148,.22);border-radius:8px;background:transparent;color:#A9A49A;font:700 11px/1 'Hanken Grotesk',system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
  .ts-spbar.is-sc .ts-spbar-min::before{content:'Hide'}
  .ts-spbar.is-sc .ts-spbar-min:hover{color:#EBC794;border-color:rgba(235,199,148,.5)}
  .ts-spbar.is-sc .ts-spbar-sc{left:max(24px,calc((100% - 1280px) / 2));top:16px;width:min(640px,calc(100% - 200px));height:60px}
  .ts-spbar.is-sc.is-native .ts-spbar-min{position:relative;z-index:5}
  .ts-spbar.is-sc + .ts-spbar-pill{right:24px;bottom:24px;height:48px;padding:0 20px 0 14px;font-size:12px}
  body.has-spbar,html body.has-spbar{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
}
/* tablet: the "Full length on SoundCloud" line would be cut, keep the logo */
@media (min-width:768px) and (max-width:999px){.ts-spbar.is-sc .ts-spbar-src .lbl{display:none}}

/* Desktop (1100px and up): a larger player card in the bottom-right
   corner (Sam, 28 Nov 2026: "larger bottom right on desktop", tablet keeps
   the footer bar above). Cover and title on top, a full-width scrub bar,
   then time and back 15 / play / forward 30. Opens expanded; Hide leaves
   the Listen button in the same corner. */
@media (min-width:1100px){
  .ts-spbar.is-sc{left:auto;right:24px;bottom:24px;width:440px;
    grid-template-columns:minmax(0,1fr) 44px 56px 44px minmax(0,1fr);
    grid-template-rows:38px 24px 18px 56px;column-gap:12px;row-gap:6px;
    padding:18px 18px 14px;border:1px solid rgba(235,199,148,.16);border-radius:14px;
    box-shadow:0 30px 60px -20px rgba(0,0,0,.75);transform-origin:100% 100%}
  .ts-spbar.is-sc.is-min{transform:translateY(24px) scale(.9)}
  .ts-spbar.is-sc .ts-spbar-ph .art{grid-column:1;grid-row:1 / 3;justify-self:start;width:68px;height:68px}
  .ts-spbar.is-sc .ts-spbar-ph b{grid-column:1 / 5;grid-row:1;padding-left:84px;font-size:17px}
  .ts-spbar.is-sc .ts-spbar-src{grid-column:1 / 6;grid-row:2;justify-self:start;margin-left:84px}
  .ts-spbar.is-sc .ts-spbar-src .lbl{display:inline}
  .ts-spbar.is-sc .ts-spbar-min{grid-column:5;grid-row:1;align-self:start;height:30px;padding:0 10px}
  .ts-spbar.is-sc .ts-spbar-scrub{grid-column:1 / 6;grid-row:3}
  .ts-spbar.is-sc .ts-spbar-time{grid-column:1;grid-row:4;justify-self:start}
  .ts-spbar.is-sc [data-seek="-15"]{grid-column:2;grid-row:4}
  .ts-spbar.is-sc .ts-spbar-go{grid-column:3;grid-row:4;width:56px;height:56px}
  .ts-spbar.is-sc [data-seek="30"]{grid-column:4;grid-row:4}
  .ts-spbar.is-sc .ts-spbar-sc{left:18px;top:18px;width:calc(100% - 36px)}
  body.has-spbar,html body.has-spbar{padding-bottom:calc(200px + env(safe-area-inset-bottom,0px))}
}
