/* Play row (was Recent): CJ's vertical reels. Same card language as Work (3 centered tall rounded cards on desktop, one-up swipe
   on phones) but looser: one reel plays at a time, the rest wait dimmed. */
#play{--card-gap:var(--frame,24px);--card-r:38px;--card-pad:clamp(22px,2vw,34px)}
#play .play-strip{display:flex;gap:var(--card-gap);background:transparent;border-radius:0;overflow:hidden;height:calc(100svh - 2 * var(--frame,24px));min-height:640px}
@media(min-width:901px){#play .play-strip{justify-content:center}}
#play .play-reel{position:relative;flex:0 0 calc((100% - 3 * var(--card-gap)) / 4);height:100%;border-radius:var(--card-r);overflow:hidden;background:#111;isolation:isolate;cursor:pointer}
#play .play-reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.04);filter:brightness(.55) saturate(.8);transition:filter .7s ease,transform 1.2s cubic-bezier(.19,1,.22,1)}
#play .play-reel.is-on video{filter:none;transform:none}
#play .play-reel::after{content:"";position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(0deg,#000000b3,#0000);pointer-events:none;z-index:1}
#play .play-cap{position:absolute;z-index:2;left:var(--card-pad);right:var(--card-pad);bottom:var(--card-pad);color:#fff;display:grid;gap:6px;opacity:.55;transition:opacity .5s ease}
#play .play-reel.is-on .play-cap{opacity:1}
#play .play-cap span{font-size:11px;letter-spacing:.18em;color:#ffffffa6}
#play .play-cap p{margin:0;font-family:'Plus Jakarta Sans',var(--sans);font-weight:600;font-size:clamp(17px,1.35vw,22px);letter-spacing:-.02em;line-height:1.15}
/* progress hairline on the reel that's playing */
#play .play-reel::before{content:"";position:absolute;z-index:3;left:var(--card-pad);right:var(--card-pad);top:var(--card-pad);height:2px;border-radius:2px;background:linear-gradient(90deg,#fff var(--p,0%),#ffffff33 var(--p,0%));opacity:0;transition:opacity .4s ease}
#play .play-reel.is-on::before{opacity:1}
#play .play-link{position:absolute;inset:0;z-index:4}
#play .play-link[href="#"]{cursor:default}
#play .play-ph{position:absolute;z-index:3;left:var(--card-pad);top:calc(var(--card-pad) + 14px);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#fff;background:#0009;border:1px solid #ffffff40;border-radius:99px;padding:5px 10px}
/* entrance, like the Work cards */
#play .play-armed .play-reel{opacity:0;translate:0 44px;transition:opacity .9s cubic-bezier(.2,.7,.2,1),translate .9s cubic-bezier(.2,.7,.2,1)}
#play .play-armed.play-in .play-reel{opacity:1;translate:0 0}
#play .play-armed.play-in .play-reel:nth-child(2){transition-delay:.12s}
#play .play-armed.play-in .play-reel:nth-child(3){transition-delay:.24s}
#play>.play-dots{display:none}
@media(max-width:900px){
 #play .play-strip{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;height:max(560px,calc(100svh - 2 * var(--frame,12px) - 24px));min-height:0;border-radius:var(--card-r)}
 #play .play-strip::-webkit-scrollbar{display:none}
 #play .play-reel{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
 #play .play-cap{bottom:60px}
 #play .play-ph{top:96px}
 #play .play-reel::before{top:84px}
 #play .play-armed .play-reel{translate:0 0;opacity:1;transition:none}
 #play>.play-dots{position:absolute;z-index:9;left:0;right:0;bottom:22px;display:flex;justify-content:center;gap:8px;pointer-events:none}
 #play>.play-dots i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.4;transition:opacity .3s,width .3s,border-radius .3s}
 #play>.play-dots i.is-on{opacity:1;width:22px;border-radius:4px}
}
@media(prefers-reduced-motion:reduce){#play .play-reel video,#play .play-armed .play-reel{transition:none}}
/* Square reels: the clip sits centred at full width; a blurred, darkened copy of its poster fills the tall card. */
#play .play-blur{position:absolute;inset:-8%;background-size:cover;background-position:center;filter:blur(38px) brightness(.45) saturate(1.2);transform:scale(1.1);z-index:0}
#play .play-square video{object-fit:contain;z-index:0}
#play .play-square.is-on video{filter:none}
/* Sound: one switch per reel that has audio. Once it's on, sound follows the spotlight from reel to reel. */
#play .play-sound{position:absolute;z-index:6;right:var(--card-pad);bottom:var(--card-pad);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;color:#fff;background:#0000008c;border:1px solid #ffffff40;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:.6;transition:opacity .3s ease,background .2s ease,transform .2s ease}
#play .play-reel.is-on .play-sound,#play .play-sound:hover,#play .play-sound:focus-visible{opacity:1}
#play .play-sound:hover{transform:scale(1.06)}
#play .play-sound:focus-visible{outline:2px solid #fff;outline-offset:3px}
#play .play-sound svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#play .play-sound .spk{fill:currentColor;stroke:none}
#play .play-sound .on{display:none}
#play .play-sound[aria-pressed="true"]{background:#fff;color:#0b0b0c}
#play .play-sound[aria-pressed="true"] .on{display:block}
#play .play-sound[aria-pressed="true"] .off{display:none}
#play .play-reel[data-audio] .play-cap{right:calc(var(--card-pad) + 56px)}
@media(max-width:900px){#play .play-sound{bottom:60px}}
#play .play-reel{overflow:clip}

#play .play-reel[data-placeholder]{cursor:default}
#play .play-reel[data-placeholder]::before{display:none}
/* Nov 12 (CJ): desktop Play row is two cover images in two columns. Click one: it opens, the video plays, and a panel
   slides out beside it (title, a line, tools). Logic in play-covers.js. Phones keep the swipe strip above.
   To undo: restore index.html, play-reels.css and play-reels.js from backups/2026-11-12-pre-play-covers. */
#play .play-media{position:absolute;inset:0}
#play .play-cover,#play .play-open,#play .play-panel{display:none}
@media(min-width:901px){
 #play .play-strip{justify-content:stretch}
 #play .play-reel{flex:1 1 0;min-width:0;display:flex;gap:0;background:none;border-radius:0;overflow:visible;cursor:default;transition:flex-grow .9s cubic-bezier(.22,.8,.25,1),flex-basis .9s cubic-bezier(.22,.8,.25,1)}
 #play .play-reel::before,#play .play-reel::after{display:none}
 #play .play-media{position:relative;inset:auto;flex:1 1 0;min-width:0;height:100%;border-radius:var(--card-r);overflow:hidden;background:#0d0d0f;isolation:isolate}
 #play .play-media::before{content:"";position:absolute;inset:-8%;z-index:0;background:var(--cover) center/cover;filter:blur(40px) brightness(.4) saturate(1.2)}
 #play .play-media::after{content:"";position:absolute;inset:auto 0 0;height:46%;z-index:3;background:linear-gradient(0deg,#000000c7,#0000);pointer-events:none;transition:opacity .6s}
 #play .play-blur{display:none}
 #play .play-reel video,#play .play-reel.is-on video,#play .play-square video{z-index:1;object-fit:contain;filter:none;transform:none;opacity:0;transition:opacity .5s ease .25s}
 #play .play-reel.is-open video{opacity:1;z-index:4}
 #play .play-cover{display:block;position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;transition:opacity .6s ease,scale 1.6s cubic-bezier(.19,1,.22,1)}
 #play .play-reel:first-child .play-cover{scale:1.12}
 #play .play-reel.is-open .play-cover,#play .play-reel.is-open .play-media::after{opacity:0;pointer-events:none}
 #play .play-cap{z-index:4;opacity:1;gap:8px;right:calc(var(--card-pad) + 76px);transition:opacity .4s}
 #play .play-cap p{font-size:clamp(26px,2.6vw,42px);font-weight:500;letter-spacing:-.04em}
 #play .play-reel.is-open .play-cap{opacity:0}
 #play .play-sound{display:none}
 /* The whole cover is the button; the round play mark is its visible part. */
 #play .play-open{display:block;position:absolute;inset:0;z-index:5;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
 #play .play-open::before{content:"";position:absolute;right:var(--card-pad);bottom:var(--card-pad);width:60px;height:60px;border-radius:50%;background:#0a0a0c59;border:1px solid #ffffff59;-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);transition:background .3s,scale .4s cubic-bezier(.22,.8,.25,1)}
 #play .play-open::after{content:"";position:absolute;right:calc(var(--card-pad) + 21px);bottom:calc(var(--card-pad) + 20px);border-style:solid;border-width:10px 0 10px 16px;border-color:transparent transparent transparent #fff}
 #play .play-open:hover::before{background:#0a0a0c8c;scale:1.06}
 #play .play-open:focus-visible{outline:2px solid #fff;outline-offset:-6px;border-radius:var(--card-r)}
 @media(hover:hover){#play .play-reel:not(.is-open) .play-media:hover .play-cover{scale:1.04}#play .play-reel:first-child:not(.is-open) .play-media:hover .play-cover{scale:1.16}}
 #play .play-reel.is-open .play-open{display:none}
 /* Open state: this reel takes the room, the other narrows to a strip. */
 #play .play-strip.has-open .play-reel{flex:0 0 clamp(96px,9vw,150px)}
 #play .play-strip.has-open .play-reel.is-open{flex:1 1 0}
 #play .play-strip.has-open .play-reel:not(.is-open) .play-cap,#play .play-strip.has-open .play-reel:not(.is-open) .play-open::before,#play .play-strip.has-open .play-reel:not(.is-open) .play-open::after{opacity:0}
 #play .play-panel{display:block;flex:0 0 0;min-width:0;overflow:hidden;opacity:0;transition:flex-basis .9s cubic-bezier(.22,.8,.25,1),opacity .5s ease}
 #play .play-reel.is-open .play-panel{flex-basis:clamp(320px,31vw,480px);opacity:1;transition:flex-basis .9s cubic-bezier(.22,.8,.25,1),opacity .6s ease .35s}
 #play .play-panel-in{position:relative;box-sizing:border-box;width:clamp(320px,31vw,480px);height:100%;margin-left:0;padding:clamp(34px,3.4vw,56px) clamp(26px,2.6vw,44px) clamp(30px,3vw,48px) calc(clamp(26px,2.6vw,44px) + var(--card-gap));display:flex;flex-direction:column;justify-content:flex-end;color:#f3f1ec}
 #play .play-panel-num{margin:0 0 18px;font-size:11px;font-weight:500;letter-spacing:.16em;color:#ffffff8c}
 #play .play-panel h3{margin:0;font-family:var(--sans);font-size:clamp(40px,4.2vw,72px);font-weight:450;letter-spacing:-.055em;line-height:.98}
 #play .play-panel-desc{max-width:34ch;margin:22px 0 0;font-size:clamp(15px,1.2vw,18px);line-height:1.55;color:#ffffffb8}
 #play .play-panel-label{margin:34px 0 14px;padding-top:16px;border-top:1px solid #ffffff29;font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:#ffffff8c}
 #play .play-tools{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
 #play .play-tools li{padding:8px 14px;border:1px solid #ffffff38;border-radius:99px;font-size:12px;letter-spacing:.04em;color:#ffffffd9}
 #play .play-close{position:absolute;top:clamp(26px,2.6vw,40px);right:clamp(20px,2vw,34px);width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #ffffff38;background:none;color:#fff;cursor:pointer;transition:background .3s,border-color .3s}
 #play .play-close::before,#play .play-close::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:1.5px;background:currentColor;translate:-50% -50%;rotate:45deg}
 #play .play-close::after{rotate:-45deg}
 #play .play-close:hover{background:#ffffff14;border-color:#ffffff80}
 #play .play-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
}
@media(min-width:901px) and (prefers-reduced-motion:reduce){#play .play-reel,#play .play-panel,#play .play-cover,#play .play-reel video{transition:none!important}}
/* One reel (CJ: just #badtimes on the #playa). Desktop: cover on the left, its panel always open on the right; click
   the cover to play in place. The close button only shows while it is playing. */
#play>.play-dots[hidden]{display:none}
@media(min-width:901px){
 #play .play-strip.is-solo .play-panel{flex-basis:clamp(340px,36vw,560px);opacity:1}
 #play .play-strip.is-solo .play-panel-in{width:clamp(340px,36vw,560px)}
 #play .play-strip.is-solo .play-reel:not(.is-open) .play-close{display:none}
 #play .play-strip.is-solo .play-cap{display:none}
 #play .play-strip.is-solo .play-open::before{width:76px;height:76px}
 #play .play-strip.is-solo .play-open::after{right:calc(var(--card-pad) + 27px);bottom:calc(var(--card-pad) + 26px);border-width:12px 0 12px 19px}
 #play .play-strip.is-solo .play-panel h3{font-size:clamp(56px,6vw,104px)}
}
/* Solo reel, narrower (CJ: "limit the width of the play video on desktop. its too wide now"). The cover is a 3:4 slice
   of the frame; when it plays it narrows to the video's own 9:16. The pair sits centred in the row. */
@media(min-width:901px){
 #play .play-strip.is-solo{--ph:max(640px,calc(100svh - 2 * var(--frame,24px)));justify-content:center}
 #play .play-strip.is-solo .play-reel,#play .play-strip.is-solo.has-open .play-reel.is-open{flex:0 0 auto}
 #play .play-strip.is-solo .play-media{flex:0 0 auto;width:calc(var(--ph) * .5625);max-width:34vw;transition:width .9s cubic-bezier(.22,.8,.25,1)}
 #play .play-strip.is-solo .play-reel.is-open .play-media{width:calc(var(--ph) * .5625)}
 #play .play-strip.is-solo .play-panel,#play .play-strip.is-solo .play-panel-in{flex-basis:clamp(340px,34vw,520px);width:clamp(340px,34vw,520px)}
}
/* Solo reel, closed by default (CJ: no text until the video is hovered or clicked; then it expands out to about
   double). The panel is the same width as the cover and slides open on hover, keyboard focus or play. The title is
   now the small "#badtimes on the #playa" line. Backup: backups/2026-11-12-pre-play-hover. */
@media(min-width:901px){
 #play .play-strip.is-solo{--cw:min(calc(var(--ph) * .5625),34vw)}
 #play .play-strip.is-solo .play-panel{flex-basis:0;width:auto;opacity:0;transition:flex-basis .9s cubic-bezier(.22,.8,.25,1),opacity .3s ease}
 #play .play-strip.is-solo .play-panel-in{width:var(--cw)}
 #play .play-strip.is-solo .play-reel.is-open .play-panel,#play .play-strip.is-solo .play-reel:focus-within .play-panel{flex-basis:var(--cw);opacity:1;transition:flex-basis .9s cubic-bezier(.22,.8,.25,1),opacity .6s ease .3s}
 @media(hover:hover){#play .play-strip.is-solo .play-reel:hover .play-panel{flex-basis:var(--cw);opacity:1;transition:flex-basis .9s cubic-bezier(.22,.8,.25,1),opacity .6s ease .3s}}
 #play .play-strip.is-solo .play-panel h3{font-size:clamp(22px,1.9vw,30px);font-weight:500;letter-spacing:-.02em;line-height:1.2}
 #play .play-strip.is-solo .play-panel-desc{margin-top:16px}
}
@media(min-width:901px) and (prefers-reduced-motion:reduce){#play .play-strip.is-solo .play-panel{transition:none!important}}

/* Resonance keeps the same portrait frame when its game is open. */
#play .play-game .play-media{background:#0d0913}
#play .resonance-cover{
 position:absolute;inset:0;display:block;width:100%;height:100%;
 background:radial-gradient(ellipse at 58% 42%,#2a1939,#100b1d 58%,#07070f);
}
#play .play-game-player{position:absolute;inset:0;z-index:6;background:#0d0913}
#play .play-game-player iframe{display:block;width:100%;height:100%;border:0}
#play .play-game-player .play-close{display:none}
@media(max-width:900px){
#play .play-game-player .play-close{
 display:block;position:absolute;z-index:1;top:12px;right:12px;width:34px;height:34px;
 border:1px solid #ffffff59;border-radius:50%;background:#14101ded;color:#fff;cursor:pointer;
}
#play .play-game-player .play-close::before,#play .play-game-player .play-close::after{
 content:"";position:absolute;left:50%;top:50%;width:14px;height:1.5px;
 background:currentColor;translate:-50% -50%;rotate:45deg;
}
#play .play-game-player .play-close::after{rotate:-45deg}
}
#play .play-game.is-open .play-open{display:none}
#play .play-game .play-media::before,#play .play-game::before{display:none}
@media(min-width:901px){
 #play .play-strip.has-game{
  --play-cover-width:min(32vw,56svh);
  --play-copy-width:clamp(270px,29vw,420px);
  justify-content:center;
 }
 #play .play-strip.has-game:not(.has-open) .play-reel{flex:0 1 var(--play-cover-width)}
 #play .play-strip.has-game.has-open .play-reel.is-open{
  flex:0 1 calc(var(--play-cover-width) + var(--play-copy-width));
 }
 #play .play-strip.has-game .play-reel.is-open .play-panel{
  flex-basis:var(--play-copy-width);
 }
 #play .play-strip.has-game .play-panel-in{width:var(--play-copy-width)}
 #play .play-game .play-panel-label{margin-bottom:0}
}
@media(max-width:900px){
 #play .play-game:not(.is-open) .play-cap{opacity:1;right:calc(var(--card-pad) + 62px)}
 #play .play-game:not(.is-open) .play-open{
  display:block;position:absolute;inset:0;z-index:5;width:100%;border:0;background:none;cursor:pointer;
 }
 #play .play-game .play-open::after{
  content:"▶";position:absolute;right:var(--card-pad);bottom:60px;width:46px;height:46px;
  display:grid;place-items:center;border:1px solid #ffffff59;border-radius:50%;background:#0a0a0c73;color:#fff;
 }
}
