/* The record sits below the fixed-track reveal. */
body[data-study="915"]{--red:#a71924;background:var(--red)}
#record-label:before{content:'';position:absolute;inset:0;border-radius:50%;background-image:var(--red-wear);opacity:.65;pointer-events:none}
#record-label img{position:relative;z-index:1}
.vinyl-stage{background:#11100f;color:#fff8ec}
.record-deck{position:absolute;inset:0;z-index:0;background:#11100f;overflow:hidden;pointer-events:none}
.record-orbit{position:absolute;left:50%;top:50%;width:var(--disc-size,160vmax);height:var(--disc-size,160vmax);transform:translate(-50%,-50%)}
.record-spin{position:absolute;inset:0;will-change:transform}
.record-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;opacity:0;transition:opacity .7s ease;display:block}
.record-photo.is-selected{opacity:1}
.record-photo:nth-child(1){transform:translate(-.103%,2.084%)}
.record-photo:nth-child(2){transform:translate(.130%,1.169%)}
.record-photo:nth-child(3){transform:translate(.239%,.847%)}
.record-deck:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0004,transparent 26%,transparent 60%,#0007);pointer-events:none}

#record-label{overflow:hidden}
#record-label img{width:66%;height:66%;max-width:66%;max-height:66%;object-fit:contain;align-self:center;justify-self:center;will-change:transform}
.record-content{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;--choice:clamp(34px,6.3vh,57px);--hit:max(44px,var(--choice))}
.record-browser{position:absolute;right:0;bottom:86px;height:calc(var(--hit)*3 + 20px);width:44px;pointer-events:none}
.record-picker{position:absolute;top:0;right:0;display:flex;flex-direction:column;gap:10px;pointer-events:auto}
.record-choice{position:relative;display:block;width:44px;height:var(--hit);border-radius:0;padding:0;background:transparent;color:#fff8ec;transition:transform .6s cubic-bezier(.2,.75,.2,1);text-align:left}
.record-choice:focus-visible{transform:translateX(calc(var(--choice)*-.25))}
@media(hover:hover){.record-choice:hover{transform:translateX(calc(var(--choice)*-.25))}}
.record-choice img{position:absolute;left:calc(44px - var(--choice)*.5);top:50%;transform:translateY(-50%);width:var(--choice);height:var(--choice);box-shadow:0 7px 18px #0009;object-fit:cover;border-radius:50%;display:block}
.record-choice:after{content:'';position:absolute;top:50%;left:calc(45px - var(--choice)*.5);transform:translateY(-50%);width:calc(var(--choice) - 2px);height:calc(var(--choice) - 2px);border:1px solid #fff3;border-radius:50%;pointer-events:none}
.record-choice[aria-pressed=true]:after{border-color:#fff8ecaa;box-shadow:0 0 0 2px #0004 inset}

.record-caption{position:absolute;right:20px;bottom:calc(100% + 24px);width:min(260px,65vw);text-align:right;padding:0;color:#fff8ec;background:none;border:0;box-shadow:none;text-shadow:0 2px 10px #000,0 1px 3px #000;pointer-events:auto}

.record-caption h1{font-size:30px;line-height:1.04;letter-spacing:-.035em;font-weight:500;margin:12px 0}
.record-caption p{font-size:11px;line-height:1.5;margin:0 0 6px;color:#fff8ecb0}
.record-caption a{display:inline-block;min-height:32px;padding-top:10px;font-size:10px;color:#fff8eca0;text-decoration:underline;text-underline-offset:4px}
.record-caption a[hidden]{display:none}
.sound-dock{position:absolute;z-index:28;left:50%;bottom:82px;transform:translateX(-50%)}
.sound-toggle{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#fff8ec;color:#191b1d;box-shadow:0 5px 24px #0005;transition:transform .2s,background .2s}
.sound-toggle:hover{transform:scale(1.06);background:#fff}
.sound-toggle svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sound-toggle .sound-waves{display:none}.sound-toggle[aria-pressed=true] .sound-waves{display:block}.sound-toggle[aria-pressed=true] .sound-slash{display:none}
body[data-sound-state=loading] .sound-toggle{animation:sound-pending 1.4s ease-in-out infinite}
@keyframes sound-pending{50%{opacity:.65}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.vinyl-stage .scroll-cue{bottom:174px}
body[data-records] .transport{font-size:9px;opacity:.6}
body[data-records] .transport .phase-name{min-width:115px}
@media(max-width:700px) and (orientation:portrait){.record-content{--choice:clamp(32px,5.4vh,44px)}.record-caption h1{font-size:24px}.record-caption p{font-size:10px}.sound-dock{bottom:78px}.sound-toggle{width:56px;height:56px}}
@media(max-height:520px){.record-content{--choice:34px}.record-browser{bottom:60px}.record-picker{gap:4px}.record-browser{height:140px}.record-caption{bottom:calc(100% + 8px)}.record-caption h1{font-size:20px;margin:6px 0}.record-caption a{padding-top:4px}.sound-dock{bottom:60px}.sound-toggle{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.record-photo,.record-choice,.sound-toggle{transition:none}.sound-toggle{animation:none!important}}

/* The label is a little smaller than a real one (27% of the record, not a third), so more of the vinyl shows and the record still reads whole beside an open sleeve. */
.record-sticker{position:absolute;width:27%;height:27%;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;opacity:0;transition:opacity .7s;filter:brightness(.84);pointer-events:none}
.record-sticker.is-selected{opacity:1}.record-sticker img{position:absolute;max-width:none;display:block}

/* Touch: a long press on a record is not a request to save its picture, and the press lands on the button, not the image inside it. */
.record-choice,.sound-toggle{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.record-choice img{pointer-events:none;-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none}
.record-photo,.record-sticker img,#record-label img{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none}
