/* The stage photograph is the face of a sleeve. The record sits behind the
   sleeve until a visitor explicitly opens its actual video player. */
.performance-page {
  --table:#18241d; --gold:#e4af7b; --sleeve:#eee8d5;
  color:#edece0; background:var(--table);
  background-image:radial-gradient(ellipse at 12% 22%,#344038 0,transparent 52%),linear-gradient(128deg,#192c23,#1e2822 54%,#2c2821);
}
.performance-lead,.performance-photos { max-width:1490px; padding-inline:var(--gutter); margin:auto; }
.performance-lead { padding-block:clamp(30px,3.5vw,58px) clamp(48px,5.5vw,90px); }
.performance-head { display:flex; flex-direction:row-reverse; align-items:end; justify-content:space-between; gap:1.5rem; margin-bottom:clamp(25px,3vw,45px); }
.performance-head h1 { margin:0; font:850 clamp(76px,8.6vw,145px)/.79 var(--display); text-transform:uppercase; letter-spacing:-.052em; }
.performance-head h1 i { display:inline-block; margin-right:.035em; font:italic 450 .51em/.9 Georgia,serif; text-transform:none; letter-spacing:-.095em; transform:rotate(-8deg) translateY(-.01em); }
.performance-head h1 em { display:inline-block; color:var(--lime); font-style:normal; transform:skew(-7deg); }
.performance-kicker,.clip-origin { margin:0; font:700 .68rem/1.4 var(--body); text-transform:uppercase; letter-spacing:.15em; }
.performance-head .performance-kicker { display:flex; flex-wrap:wrap; align-items:center; gap:.68em; margin-bottom:.25rem; }
.performance-kicker span { width:.65rem; height:2px; background:var(--gold); }
.performance-programme,.performance-bill {
  position:relative; display:grid; grid-template-columns:minmax(0,1.78fr) minmax(260px,.86fr);
  gap:clamp(24px,4.6vw,76px); align-items:start;
  padding-top:clamp(22px,2.3vw,35px); border-top:1px solid #8a9385;
}
.programme-main,.clip-card,.performance-deck { min-width:0; }
.clip-card + .clip-card:not([hidden]) { margin-top:2.5rem; }
.performance-deck:has([role="tabpanel"]) .clip-card { margin-top:0; }
.clip-card { --player-aspect:1.77777778; --sleeve:#eee8d5; --label:#dc9666; --stamp:#616742; }
.clip-card.clip-portrait { --player-aspect:.5625; }
.clip-card[data-ink="1"] { --sleeve:#d9e4b4; --label:#d2e36a; --stamp:#52603c; }
.clip-card[data-ink="2"] { --sleeve:#ebc3aa; --label:#e8a378; --stamp:#885c45; }
.record-object { position:relative; isolation:isolate; display:grid; align-items:center; padding:clamp(10px,1.5vw,22px) 0; }
.record-platter {
  position:absolute; inset:50% 1.6% auto auto; width:58%; aspect-ratio:1; transform:translateY(-50%);
  filter:drop-shadow(.53rem 1rem .7rem #070c07a8);
}
.record-vinyl {
  display:grid; width:100%; height:100%; align-items:center; justify-items:center; isolation:isolate; border-radius:50%; overflow:hidden;
  border:1px solid #626b61; box-shadow:inset 0 0 0 3px #0f1412,inset 0 0 0 4px #515b52;
  background: repeating-radial-gradient(circle,#04090668 0 1px,#c9d6b72b 1.2px 1.55px,#040a075c 2.1px 3px),
    conic-gradient(from -25deg,#171d18 0deg,#9da595 35deg,#74766e 43deg,#202522 71deg,#0b100d 110deg,#28271f 155deg,#9d8065 198deg,#555a4f 220deg,#171c18 248deg,#0c100e 285deg,#363e35 323deg,#171d18 360deg);
}
.record-vinyl::before { content:''; position:absolute; inset:8%; border:1px solid #d0d6bf3b; border-radius:50%; box-shadow:inset 0 0 0 2px #1218149e,0 0 0 3px #0e1510aa; }
.record-label {
  position:relative; width:39%; aspect-ratio:1; overflow:hidden; border-radius:50%; background:var(--label,#dc9666);
  border:clamp(5px,.66vw,10px) solid var(--label,#dc9666);
  box-shadow:0 0 0 2px #22261f,0 0 0 .44rem #1c211e,0 0 0 .54rem #77807172;
}
.record-label img { width:100%; height:100%; object-fit:cover; filter:grayscale(.75) sepia(.18); }
.record-label::after { content:''; position:absolute; inset:50% auto auto 50%; width:7.5%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; background:#1a211c; box-shadow:inset 1px 1px 2px #050806,0 0 0 1px #d3d0bc; }
.record-jacket {
  position:relative; z-index:1; display:flex; flex-direction:column; width:65%; min-width:0;
  padding:clamp(9px,1.05vw,16px); background-color:var(--sleeve); color:#18231c;
  border:1px solid #f5efd39c; border-right-color:#929685; border-bottom-color:#a29f8c;
  border-radius:1px; box-shadow:3px 3px 0 #929387,5px 6px 0 #111811a6,.58rem 1.25rem 1rem #09110863;
}
.record-jacket::before {content:''; position:absolute; inset:0; pointer-events:none; background:url('assets/paper-grain.png') repeat; opacity:.045; }
.record-stepper { position:absolute; right:1%; bottom:1%; display:flex; align-items:center; gap:.19rem; color:#eeeade; }
.record-stepper small { font:650 .63rem/1 var(--body); font-variant-numeric:tabular-nums; letter-spacing:.04em; white-space:nowrap; }
.record-stepper button { cursor:pointer; color:inherit; width:36px; height:36px; display:grid; place-items:center; border:1px solid #778173; background:#1c281f; border-radius:50%; }
.record-stepper button:hover { color:#162018; background:var(--lime); }
.record-stepper button::before { content:''; width:6px; height:6px; border-top:1.5px solid; border-right:1.5px solid; transform:rotate(45deg); }
.record-stepper button:first-child::before { transform:rotate(-135deg); }
.record-mast { display:flex; align-items:center; justify-content:space-between; margin-bottom:clamp(7px,.75vw,13px); font:720 clamp(.64rem,.88vw,.86rem)/1.15 var(--body); text-transform:uppercase; letter-spacing:.13em; }
.record-mast i { display:block; width:1.7em; height:.85em; transform:skew(-18deg); background:linear-gradient(90deg,#536345 0 25%,transparent 25% 38%,#c2b99d 38% 62%,transparent 62% 75%,#b56b49 75%); }
.clip-stage { position:relative; display:grid; place-items:center; aspect-ratio:1.59; width:100%; overflow:hidden; background:linear-gradient(155deg,#32242b,#202a21); }
.clip-stage > img,.clip-stage iframe,.clip-stage video { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }
.clip-stage > img { object-fit:cover; object-position:center 36%; }
.sleeve-outgoing { pointer-events:none; }
.clip-stage > img[height="1536"],.clip-pick img[height="1536"],.record-label img[height="1536"] { object-position:50% 21%; }
.clip-screen { min-width:0; background:#101710; color:#f9f7ea; }
.clip-control-bar { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-height:36px; padding:0 .58rem; }
.clip-media-label,.clip-expand { font:630 .67rem/1.3 var(--body); }
.clip-expand { display:inline-flex; align-items:center; justify-content:center; gap:.48em; padding:.35rem 0; min-height:36px; cursor:pointer; border:0; background:transparent; color:var(--lime); }
.clip-expand i { width:.8em; height:.8em; background:linear-gradient(currentColor,currentColor) 100% 0/65% 1px,linear-gradient(currentColor,currentColor) 100% 0/1px 65%,linear-gradient(currentColor,currentColor) 0 100%/65% 1px,linear-gradient(currentColor,currentColor) 0 100%/1px 65%; background-repeat:no-repeat; }
.record-type { position:relative; border-top:2px solid #213226; padding:clamp(10px,1.15vw,18px) 0 clamp(3px,.4vw,8px); margin-top:clamp(8px,.8vw,12px); }
.record-type::after { content:''; display:block; margin-top:.82rem; width:22%; height:4px; background:repeating-linear-gradient(90deg,var(--stamp,#51613f) 0 2px,transparent 2px 5px); }
.clip-origin { color:var(--stamp,#51613f); font-size:clamp(.57rem,.73vw,.71rem); letter-spacing:.12em; }
.record-type h2 { margin:.13em 0 0; font:800 clamp(32px,4.5vw,73px)/.86 var(--display); text-transform:uppercase; letter-spacing:-.04em; overflow-wrap:anywhere; }
.clip-info { margin:clamp(.55rem,1.2vw,1.1rem) 0 0; }
.clip-info p,.performance-notes p { line-height:1.6; max-width:58ch; margin:.5rem 0; }
.clip-status:empty,.clip-without-image .clip-screen { display:none; }
.clip-status { margin:0; padding:.55rem .65rem; font-size:.8rem; line-height:1.45; }
.clip-status .clip-fallback { color:var(--lime); min-height:28px; }
.clip-info .clip-pending { display:flex; align-items:center; gap:.6em; font-size:.78rem; color:#e4ddcb; }
.clip-pending > span { display:block; width:7px; height:7px; border-radius:50%; background:#e5ac76; }
.clip-info details,.clip-info .clip-disclosure,.archive-credit,.performance-notes p { font-size:.82rem; line-height:1.55; }
.clip-info summary { cursor:pointer; text-decoration:underline; text-underline-offset:.18em; }
.archive-credit { margin:.55rem 0 0; color:#bcc5b8; max-width:64ch; }
.performance-action,.clip-load { display:inline-flex; align-items:center; justify-content:center; gap:.75rem; min-height:44px; padding:.65rem .85rem; background:var(--lime); border:1px solid #132218; color:#192519; font:720 .85rem/1.3 var(--body); }
.clip-load { position:relative; z-index:1; }
.clip-load::before {content:''; width:0; height:0; border-block:5px solid transparent; border-left:8px solid currentColor;}
.clip-load:hover,.performance-action:hover { background:#eff8bc; }
.clip-fallback,.performance-link { display:inline-flex; align-items:center; gap:.55em; min-height:32px; font-size:.8rem; font-weight:650; text-decoration:underline; text-underline-offset:.25em; }
.performance-library,.performance-notes { padding-top:clamp(10px,1.6vw,23px); }
.performance-library > h2 { margin:0 0 .55rem; font:780 clamp(30px,3vw,52px)/1 var(--display); text-transform:uppercase; }
.clip-picks { border-top:1px solid #9ba594; }
.clip-pick {
  display:grid; grid-template-columns:1.6rem clamp(44px,4.3vw,76px) minmax(0,1fr); align-items:center; gap:.65rem; min-height:52px;
  padding:clamp(6px,.63vw,11px) .4rem; border-bottom:1px solid #6f7c6c; color:var(--paper);
}
.clip-pick:not(:has(img)) { grid-template-columns:1.6rem minmax(0,1fr); }
.clip-pick img { width:100%; height:auto; aspect-ratio:1.3; object-fit:cover; }
.pick-number { font:580 .69rem/1 var(--body); letter-spacing:.06em; color:#bcc6b8; }
.pick-type { display:grid; gap:3px; }
.pick-type small { font-size:.60rem; letter-spacing:.1em; text-transform:uppercase; color:#c8d0bf; font-weight:680; }
.pick-type strong { font:720 clamp(1.18rem,1.65vw,1.65rem)/1.04 var(--display); }
.clip-pick[aria-selected=true] { background:var(--lime); color:#182217; border-color:#bedb70; }
.clip-pick[aria-selected=true] :is(small,.pick-number) { color:#35462b; }
.clip-pick:hover:not([aria-selected=true]) { background:#354438; }
.clip-card.player-open .record-platter { display:none; }
.clip-card.player-open .record-stepper { position:relative; inset:auto; justify-content:end; padding-top:.7rem; }
.clip-card.player-open .record-object { padding:0; }
.clip-card.player-open .record-jacket { width:100%; }
.clip-card.player-open .clip-stage { aspect-ratio:var(--player-aspect); }
/* YouTube letterboxes short landscape viewports around its 16:9 picture. */
.clip-card.player-open[data-provider="youtube"].clip-landscape .clip-stage { min-height:200px; }
.clip-card.player-open.clip-portrait .record-jacket { width:min(100%,max(230px,41svh)); margin:auto; }
.clip-card.player-open .clip-stage video { object-fit:contain; }
.watch-theatre-open { overflow:hidden; }
.watch-theatre-open .performance-page { position:relative; z-index:125; }
.clip-screen:is(:fullscreen,.is-theatre) {
  display:grid; grid-template-rows:minmax(0,1fr) auto auto; width:100%; height:100%; background:#101710;
}
.clip-screen.is-theatre { position:fixed; inset:0; z-index:125; height:100dvh; }
.clip-screen:is(:fullscreen,.is-theatre) .clip-frame {
  display:grid; place-items:center; container-type:size; min-height:0; min-width:0;
}
.clip-screen:is(:fullscreen,.is-theatre) .clip-stage { width:100%; height:100%; aspect-ratio:auto; }
/* Fit inside the remaining stage after controls, status and captions take their space. */
.clip-card.player-open .clip-screen:is(:fullscreen,.is-theatre) .clip-stage {
  width:min(100%,calc((100vh - 44px) * var(--player-aspect)));
  width:min(100cqw,calc(100cqh * var(--player-aspect))); height:auto; aspect-ratio:var(--player-aspect);
}
.clip-screen:is(:fullscreen,.is-theatre) .clip-stage img { object-fit:contain; }
.clip-screen:is(:fullscreen,.is-theatre) .clip-expand { min-height:44px; }
@media (orientation:landscape) and (max-height:420px) and (min-width:600px) {
  /* On a turned phone, give a vertical film the full height beside the controls. */
  .clip-portrait .clip-screen:is(:fullscreen,.is-theatre) { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:minmax(0,1fr) auto; }
  .clip-portrait .clip-screen:is(:fullscreen,.is-theatre) .clip-control-bar { flex-direction:column; justify-content:center; }
  .clip-portrait .clip-screen:is(:fullscreen,.is-theatre) .clip-status { grid-column:1/-1; }
}
.performance-photos { background:#edeadf; color:#1a251b; box-shadow:0 0 0 100vmax #edeadf; clip-path:inset(0 -100vmax); padding-block:clamp(26px,4vw,55px); display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.performance-photos .performance-kicker { color:#44563a; }
.performance-photos h2 { margin:.22em 0 .3em; font:780 clamp(28px,3vw,44px)/.95 var(--display); text-transform:uppercase; }
.performance-photos p:not(.performance-kicker) { margin:.55rem 0; line-height:1.5; }
.performance-photos > a { display:block; width:min(27%,270px); }
.performance-photos img { width:100%; height:auto; }
@media(max-width:860px) {
  .performance-programme,.performance-bill { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
  .record-object { max-width:720px; }
  .record-type h2 { font-size:clamp(33px,7.4vw,64px); }
  .performance-library,.performance-notes { padding-top:0; }
  .clip-picks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1rem; }
  .performance-head { align-items:start; flex-direction:column; gap:1rem; }
  .performance-head .performance-kicker { margin:0; }
}
@media(max-width:540px) {
  .performance-lead { padding-block:32px 42px; }
  .performance-head h1 { font-size:clamp(64px,17vw,86px); }
  .performance-head { margin-bottom:18px; }
  .performance-programme,.performance-bill { padding-top:15px; }
  .record-object { padding:7px 0; }
  .record-jacket { width:69%; padding:7px; }
  .record-platter { width:54%; right:0; }
  .record-stepper { right:0; bottom:0; gap:.13rem; }
  .record-stepper button { width:27px; height:31px; border:0; border-radius:0; background:transparent; }
  .record-stepper small { font-size:.55rem; }
  .record-mast { font-size:.53rem; margin-bottom:6px; }
  .clip-stage { aspect-ratio:1.35; }
  .clip-control-bar { gap:.25rem; padding-inline:.38rem; }
  .clip-media-label,.clip-expand { font-size:.61rem; }
  .clip-media-label { max-width:13ch; }
  .record-type { margin-top:6px; padding:9px 0 3px; }
  .record-type::after { margin-top:.6rem; height:3px; }
  .record-type h2 { font-size:clamp(30px,7.8vw,43px); }
  .clip-picks { grid-template-columns:minmax(0,1fr); }
  .clip-pick { grid-template-columns:1.7rem 47px minmax(0,1fr); }
  .performance-photos { gap:.8rem; }
  .performance-photos > a { width:25%; flex-shrink:0; }
  .performance-photos p:not(.performance-kicker) { font-size:.85rem; }
}
.performance-notes .sleeve-note { font:650 clamp(1.5rem,2.6vw,2.6rem)/1.09 var(--display); color:var(--sleeve); max-width:23ch; margin:0 0 1.15rem; }
.performance-notes .clip-disclosure { margin-top:.8rem; color:var(--sleeve); font-size:.88rem; }
.review-sleeves { margin-top:2.25rem; border-top:1px solid #5c675a; }
.review-sleeves > summary { padding:1rem 0; cursor:pointer; color:var(--sleeve); font-weight:650; }
@media(prefers-reduced-motion:no-preference) {
  .clip-pick { transition:background-color .18s,color .18s; }
  .clip-stage :is(iframe,video) { animation:watch-open .3s ease-out both; }
  @keyframes watch-open {from {opacity:.35;} to {opacity:1;} }
}

/* The sleeve opens into a player on request. Its disc moves only after the
   selected recording reports playback, and rests on pause or buffering. */
.clip-card.player-open:is([data-provider="local"],[data-provider="youtube"]) .record-jacket { width:82%; }
.clip-card.player-open.clip-portrait .record-jacket { width:min(82%,max(230px,41svh)); }
.clip-card.player-open.has-played .record-platter {
  display:block; width:42%; right:.25%; top:44%;
  transform:translateY(-50%);
}
.clip-card.player-open.has-played .record-vinyl::after {
  content:''; position:absolute; inset:10% 48% 80%; border-radius:2px;
  background:#c9b58a; transform:rotate(-15deg); pointer-events:none;
}
.clip-levels { width:54px; height:15px; flex:0 1 auto; min-width:30px; }
@media (prefers-reduced-motion:no-preference) {
  .clip-card.player-open.has-played .record-platter { animation:record-draw 540ms cubic-bezier(.18,.76,.22,1) both; }
  .clip-card.player-open.has-played .record-vinyl { animation:turntable 2.3s linear infinite; animation-play-state:paused; }
  .clip-card.player-open.is-playing .record-vinyl { animation-play-state:running; }
  .clip-card.player-open.has-played .clip-stage video { animation:stage-develop 330ms ease-out; }
  @keyframes record-draw {
    from { transform:translate(-53%,-50%); }
    to { transform:translate(0,-50%); }
  }
  @keyframes turntable { to { transform:rotate(360deg); } }
  @keyframes stage-develop { from { clip-path:inset(0 0 0 14%); } to { clip-path:inset(0); } }
}
@media(max-width:540px) {
  .clip-card.player-open:is([data-provider="local"],[data-provider="youtube"]) .record-jacket { width:88%; }
  .clip-card.player-open.clip-portrait .record-jacket { width:min(88%,max(218px,46svh)); }
  .clip-card.player-open.has-played .record-platter { width:32%; }
  .clip-levels { width:40px; height:12px; }
}
