/* MUG5 Player. Scoped to .m5p (the bar) and .m5m (the Music page). --c / --ink come from the cover of the track that is playing. */
.m5p{--c:#36aa6d;--ink:#0c0c0e;--soft:color-mix(in srgb,var(--ink) 64%,transparent);--line:color-mix(in srgb,var(--ink) 22%,transparent);position:fixed;left:50%;bottom:18px;z-index:10004;width:min(1180px,calc(100% - 28px));transform:translate(-50%,calc(100% + 40px));transition:transform .55s cubic-bezier(.2,.8,.2,1);font-family:Inter,sans-serif;color:var(--ink);pointer-events:none}
.m5p.is-shown{transform:translate(-50%,0);pointer-events:auto}
.m5p *{box-sizing:border-box}
.m5p button{all:unset;cursor:pointer;display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.m5p-np{display:grid;grid-template-columns:auto auto auto minmax(0,1fr) auto auto;align-items:center;gap:clamp(10px,1.4vw,18px);background:var(--c);border-radius:20px;padding:9px 16px 9px 9px;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 22px 60px rgba(0,0,0,.5);transition:background .6s}
.m5p .m5p-dot{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--c);transition:transform .2s cubic-bezier(.3,1.4,.5,1),background .6s,color .6s}
.m5p .m5p-dot:hover{transform:scale(1.1)}
.m5p .m5p-dot:active{transform:scale(.94)}
.m5p .m5p-dot svg{width:15px;height:15px}
.m5p .m5p-pp{width:62px;height:62px}
.m5p .m5p-pp svg{width:22px;height:22px}
.m5p-pp .m5-i-pause{display:none}
.m5p.is-playing .m5p-pp .m5-i-play{display:none}
.m5p.is-playing .m5p-pp .m5-i-pause{display:block}
.m5p-skip{display:flex;gap:8px}
.m5p-cover{display:block;width:56px;height:56px;border-radius:10px;overflow:hidden;flex:none;background:var(--ink)}
.m5p-cover img{width:100%;height:100%;object-fit:cover;display:block}
.m5p-meta{min-width:0}
.m5p-title{min-width:0;color:var(--ink);transition:color .6s}
.m5p-title span{display:block;font:800 19px/1.1 Inter,sans-serif;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m5p-title em{display:block;font:600 13px/1.2 Inter,sans-serif;font-style:normal;letter-spacing:.01em;color:var(--soft);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m5p-bar{position:relative;height:26px;margin:2px 0 -10px;cursor:pointer;touch-action:none}
.m5p-bar::before{content:"";position:absolute;left:0;right:0;top:11px;height:4px;background:var(--line);border-radius:4px}
.m5p-bar i{position:absolute;left:0;top:11px;height:4px;width:0;background:var(--ink);border-radius:4px}
.m5p-bar i::after{content:"";position:absolute;right:-6px;top:-4px;width:12px;height:12px;border-radius:50%;background:var(--ink);transition:transform .15s}
.m5p.is-scrubbing .m5p-bar i::after{transform:scale(1.4)}
.m5p-time{font:700 12px/1 ui-monospace,Menlo,monospace;color:var(--ink);letter-spacing:.02em;white-space:nowrap}
.m5p-vol{display:flex;align-items:center;gap:10px}
.m5p-vol input{-webkit-appearance:none;appearance:none;width:92px;height:4px;border-radius:4px;background:linear-gradient(to right,var(--ink) var(--v,80%),var(--line) var(--v,80%));outline:none;cursor:pointer;margin:0;padding:0;border:0}
.m5p-vol input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--ink);border:0}
.m5p-vol input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--ink);border:0}
.m5p-mute .m5-i-off{display:none}
.m5p.is-muted .m5p-mute .m5-i-on{display:none}
.m5p.is-muted .m5p-mute .m5-i-off{display:block}
@media (max-width:760px){
 .m5p{bottom:10px;width:calc(100% - 16px)}
 .m5p-np{grid-template-columns:auto auto minmax(0,1fr) auto;gap:10px;padding:7px 8px 7px 7px;border-radius:16px}
 .m5p-skip,.m5p-time,.m5p-vol input{display:none}
 .m5p .m5p-pp{width:52px;height:52px}
 .m5p-cover{width:46px;height:46px;border-radius:8px}
 .m5p-title span{font-size:16px}
 .m5p-title em{font-size:12px}
}
/* room for the bar at the foot of every page while it is up */
body.mug5p-active .site-footer{padding-bottom:110px}

/* ---------- the Music page ---------- */
.m5m{--m5-c:#36aa6d;--m5-ink:#0c0c0e;font-family:Inter,sans-serif;color:#fff;padding-bottom:40px}
.m5m *{box-sizing:border-box}
.m5m button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:left;-webkit-tap-highlight-color:transparent}
.m5m .m5-i-pause{display:none}
/* the stage: full width, the colour of the cover */
.m5m-stage{width:100vw;margin-left:calc(50% - 50vw);background:var(--m5-c);color:var(--m5-ink);transition:background .7s,color .7s;display:grid;grid-template-columns:minmax(0,clamp(240px,36vw,560px)) minmax(0,1fr);align-items:end;gap:clamp(24px,4.5vw,72px);padding:clamp(110px,11vw,170px) clamp(20px,5vw,80px) clamp(28px,5vw,80px)}
.m5m .m5m-art{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--m5-ink)}
.m5m-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.m5m-art:hover img{transform:scale(1.04)}
.m5m-big{position:absolute;left:clamp(14px,2vw,26px);bottom:clamp(14px,2vw,26px);width:clamp(64px,7vw,104px);height:clamp(64px,7vw,104px);border-radius:50%;background:var(--m5-c);color:var(--m5-ink);display:grid;place-items:center;transition:transform .25s cubic-bezier(.3,1.4,.5,1),background .7s,color .7s}
.m5m-art:hover .m5m-big{transform:scale(1.08)}
.m5m-big svg{width:36%;height:36%}
.m5m.is-playing .m5m-big .m5-i-play{display:none}
.m5m.is-playing .m5m-big .m5-i-pause{display:block}
.m5m-now{min-width:0;padding-bottom:clamp(0px,1vw,14px);container-type:inline-size}
.m5m .m5m-kick{margin:0 0 clamp(12px,1.6vw,22px);font:700 12px/1.4 Inter,sans-serif;letter-spacing:.3em;text-transform:uppercase;color:inherit;opacity:.75}
.m5m-kick-live{display:none}
.m5m.is-playing .m5m-kick-live{display:inline}
.m5m.is-playing .m5m-kick-idle{display:none}
.m5m .m5m-title{margin:0;font:800 clamp(30px,11.5cqw,140px)/.9 Inter,sans-serif;letter-spacing:-.055em;color:inherit;text-wrap:balance;overflow-wrap:break-word;hyphens:none}
.m5m .m5m-artist{margin:clamp(14px,1.8vw,26px) 0 0;font:700 clamp(18px,2.1vw,32px)/1.1 Inter,sans-serif;letter-spacing:-.03em;color:inherit}
.m5m .m5m-credit{margin:10px 0 0;font:600 12px/1.5 Inter,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:inherit;opacity:.7}
.m5m .m5m-lede{margin:clamp(56px,8vw,130px) 0 0;font:800 clamp(28px,4.2vw,68px)/1 Inter,sans-serif;letter-spacing:-.045em;color:#fff;max-width:26ch}
/* the playlist: one mixed run, the playing row takes its cover's colour */
.m5m .m5m-list{list-style:none;margin:clamp(36px,5vw,80px) 0 0;padding:0;border-top:1px solid rgba(255,255,255,.16)}
.m5m .m5m-list li{margin:0;padding:0;border-bottom:1px solid rgba(255,255,255,.16)}
.m5m .m5m-t{display:grid;width:100%;grid-template-columns:clamp(34px,4vw,60px) clamp(52px,5.4vw,84px) minmax(0,1.5fr) minmax(0,1fr) auto;align-items:center;gap:clamp(12px,1.8vw,28px);padding:clamp(8px,.9vw,14px) clamp(8px,1.2vw,18px);color:#fff;border-radius:12px;transition:background .35s,color .35s}
.m5m .m5m-t:hover{background:rgba(255,255,255,.07)}
.m5m .m5m-t.is-current{background:var(--c);color:var(--ink)}
.m5m-t-n{display:grid;place-items:center;font:700 13px/1 ui-monospace,Menlo,monospace;letter-spacing:.06em;opacity:.55}
.m5m-t-n svg{width:20px;height:20px;display:none}
.m5m-t:hover .m5m-t-n,.m5m-t.is-current .m5m-t-n{opacity:1}
.m5m-t:hover .m5m-t-n b,.m5m-t.is-current .m5m-t-n b{display:none}
.m5m-t:hover .m5m-t-n .m5-i-play,.m5m-t.is-current .m5m-t-n .m5-i-play{display:block}
.m5m-t.is-playing .m5m-t-n .m5-i-play{display:none!important}
.m5m-t.is-playing .m5m-t-n .m5-i-pause{display:block}
.m5m-t-art{display:block;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--c)}
.m5m-t-art img{width:100%;height:100%;object-fit:cover;display:block}
.m5m .m5m-t strong{font:800 clamp(19px,2.5vw,40px)/1.05 Inter,sans-serif;letter-spacing:-.045em;color:inherit;overflow-wrap:break-word}
.m5m .m5m-t em{font:600 clamp(14px,1.3vw,20px)/1.2 Inter,sans-serif;font-style:normal;letter-spacing:-.01em;color:inherit;opacity:.7}
.m5m .m5m-t small{font:600 13px/1 ui-monospace,Menlo,monospace;color:inherit;opacity:.6}
.m5m-t:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:760px){
 .m5m-stage{grid-template-columns:1fr;align-items:start;padding:96px 16px 28px}
 .m5m .m5m-t{grid-template-columns:26px 54px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 12px;padding:8px 6px}
 .m5m-t-n,.m5m-t-art,.m5m .m5m-t small{grid-row:1/3}
 .m5m .m5m-t strong{grid-column:3;grid-row:1;align-self:end}
 .m5m .m5m-t em{grid-column:3;grid-row:2;align-self:start}
 .m5m .m5m-t small{grid-column:4}
}
@media (prefers-reduced-motion:reduce){.m5p,.m5p-np,.m5m-stage,.m5m-art img,.m5m-t-art img{transition:none}}
/* the site logo, burger and menu take the track's text colour while they sit over the stage */
body.m5-on-stage .site-header{--text-color:var(--m5-logo-c,#fff)}
body.m5-on-stage .site-header .site-logo a{display:block;background-color:var(--m5-logo-c,#fff);-webkit-mask:var(--m5-logo-img) left center/contain no-repeat;mask:var(--m5-logo-img) left center/contain no-repeat;transition:background-color .6s}
body.m5-on-stage .site-header .site-logo img{opacity:0!important;transition:none}
body.m5-on-stage .site-header .site-logo img.logo-light{position:absolute}
body.m5-on-stage .site-header .site-menu a{color:var(--m5-logo-c,#fff)}
body.m5-on-stage .site-header .menu-toggle span{background-color:var(--m5-logo-c,#fff)}
