/* asd.gr — layout F: one production at a time, the list moves past a fixed selection point.
   The picture is thrown at the whole page as light; the selected production stands in the middle of it.
   Three arrangements of the same markup: portrait phone (base), portrait tablet, landscape.
   Upright, the production has the upper part of the page and the list is a band of fixed height under it;
   on its side, the list stands to the left of the production. */

@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(fonts/manrope.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(fonts/unbounded.woff2) format("woff2"); }

:root {
  /* the old site's own colours */
  --bg: #252528;
  --list: #9FE2BF;
  --cyan: #80DAEB;
  --mint: #7AFFC5;
  --pink: #FFD3E9;
  --nom: #6DEDFF;
  --gold: #CCC380;
  --grey: #8A8A91;
  --spine: #3D3D43;

  /* two faces. Unbounded for the title: one even stroke round squared-off bowls, the way the logo is drawn.
     Manrope for everything else: the same squared curves, built to be read small. */
  --display: "Unbounded", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --text: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--list);
  font: 500 14px/1.4 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  /* the document is the scroller: wheel, trackpad, scrollbar and keys all move the list (not on a touch screen: see below) */
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--spine) transparent;
  scrollbar-gutter: stable;
}
html.playing { overflow: hidden; background: #141416; }   /* the scrollbar's strip is outside the player's backdrop: darken it to match */

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
:focus-visible { outline: 1px solid var(--mint); outline-offset: 3px; }

/* ---------- scroll driver ---------- */

#driver i { display: block; scroll-snap-align: start; }
#driver i:last-child { height: 100vh; height: 100lvh; }

/* ---------- stage (base: portrait phone) ---------- */

/* The wall the projection lands on. The measures are set here so that both the page and the picture are placed by them. */
#stage {
  position: fixed; inset: 0; overflow: hidden; container-type: size; background: var(--bg);

  --lamp: .65;        /* the strongest any picture is thrown */
  --level: .26;       /* the most light a picture may put on the wall on average: a bright picture is thrown more faintly to stay
                         under it. app.js works out --still and --film for each production from these two and its measured brightness.
                         Open the page with ?tune to try other values with sliders. */
  /* A phone's toolbars come and go as the page scrolls, and the stage grows and shrinks with them. Upright, everything
     is measured from the top against the height that is always there (--H), so nothing moves when they do; what the
     toolbars uncover is more wall. */
  --H: 100cqh;
  --m: 16px;          /* side margin */
  --top: clamp(44px, var(--H) * .08, 52px);   /* top bar */
  --row: 36px;        /* list row pitch */
  --gap: 12px;        /* extra space between year groups */
  --ts: clamp(26px, 8.2cqw, 46px);            /* title size */
  --tl: 1.14;                                 /* title line height */
  --tz: 1;                                    /* a face that draws small for its size is set this much larger (the tuning panel uses it) */
  --tb: calc(var(--ts) * var(--tz) * var(--tl) * 2);   /* the title's box is always two lines tall, so nothing under it moves when a name wraps */
  --dh: 22px;                                 /* details line */
  --pl: clamp(52px, var(--H) * .092, 60px);   /* the play mark and the space over it */
  --lk: clamp(42px, var(--H) * .07, 46px);    /* the links */
  --hr: 112px;                                /* room kept for awards and nominations, whether a production has any or not */

  /* The page is shared out once, for every production alike: the production's part is as tall as the fullest one
     needs, the list has the rest. Neither changes size when the selection does. */
  --free: calc(var(--H) - var(--top) - 2 * var(--dh) - var(--tb) - var(--pl) - var(--lk) - var(--hr));
  --bh: max(var(--row) * 3, min(var(--free), max(var(--row) * 5, (var(--H) - var(--top)) * .4)));   /* the list's band */
  --pad: max(0px, (var(--free) - var(--bh)) / 2);       /* what is over on a tall screen: half above the production, half under it */
  --vh: calc(var(--H) - var(--top) - var(--bh));        /* the production's part */
  --px: 50cqw;
  --py: calc(var(--top) + var(--vh) / 2);               /* where the still is centred: the middle of the production's part */
}
@supports (height: 100svh) { #stage { --H: 100svh; } }

.canvas {
  position: absolute; left: 0; right: 0; top: 0; height: var(--H);
  display: flex; flex-direction: column;
  padding: 0 var(--m);
}

.mark {
  position: absolute; left: 50%; top: calc(var(--H) * .97 - 84cqw * 850 / 1592);
  width: 84cqw; aspect-ratio: 1592 / 850;
  transform: translateX(-50%);
  background: url(img/mark.png) center / contain no-repeat;
  pointer-events: none;
}

/* top bar */
.top { flex: none; height: var(--top); display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .01em; }
.top h1 { font: inherit; color: var(--grey); }
.top a { color: var(--cyan); padding: 8px 0; font-weight: 600; }
.top a:hover, .links a:hover { color: var(--mint); }

/* ---------- the list ---------- */

.list { position: relative; overflow: hidden; flex: none; width: min(100%, 420px); align-self: center; }
.group { display: grid; }
.group > * { grid-area: 1 / 1; }   /* the year sits over the left end of its group's rows */
.group + .group { margin-top: var(--gap); }
.year {
  align-self: start; justify-self: start;   /* app.js moves it down to the first row of its group that is in view */
  height: var(--row); line-height: var(--row);
  font-size: 12px; font-weight: 600; color: var(--cyan);
}
.group a {
  display: block; height: var(--row); line-height: var(--row);
  text-align: center; white-space: nowrap; color: var(--list);   /* upright, the names run through the title like the credits of a film */
}
@media (hover: hover) { .group a:hover { background: rgba(255, 255, 255, .045); } }

/* One window on the list, in a band under the production. The selection point is the middle of the band: newer names
   above it, older ones below, fading towards both edges. The band is never taller or shorter than --bh. */
.upper {
  order: 2; height: var(--bh);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 38%, #000 62%, transparent 100%);
}
.upper > ol { padding: calc((var(--bh) - var(--row)) / 2) 0; }
.upper a.sel { color: var(--mint); font-weight: 800; }

/* the selection point: a hairline over and under the row that is selected */
.spine {
  position: absolute; left: 50%; width: min(100% - 2 * var(--m), 420px); transform: translateX(-50%);
  top: calc(var(--top) + var(--vh) + (var(--bh) - var(--row)) / 2); height: var(--row);
  background:
    linear-gradient(to right, transparent 0, var(--spine) 28%, var(--spine) 72%, transparent 100%) top / 100% 1px no-repeat,
    linear-gradient(to right, transparent 0, var(--spine) 28%, var(--spine) 72%, transparent 100%) bottom / 100% 1px no-repeat;
  pointer-events: none;
}

.lower { display: none; }   /* a second window on the list, from when the names ran through the title; a held copy of the page may still have it */

/* ---------- a touch screen: the list's window scrolls itself ----------
   On a phone the page's own scroll belongs to the browser: it hides and shows the toolbars with it. A list that hangs
   on the page's scroll moves the toolbars with every row, cannot be told from a swipe meant for them, and is redrawn
   only as often as the script gets to run. So here the page does not scroll at all. The window on the list is the
   scroller: the finger on it moves it and the browser stops it on a row. app.js reads this window's position where
   it would have read the page's; it looks at this window's `overflow` to know which, so the two cannot disagree.
   `html.own` is set by an app.js that knows how; a copy from before, still held by a browser, keeps the page as it was. */
@media (hover: none) and (pointer: coarse) {
  html.own { scroll-snap-type: none; scrollbar-gutter: auto; }
  html.own #driver { display: none; }
  html.own .upper { overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
  html.own .upper::-webkit-scrollbar { display: none; }
  html.own .upper a { scroll-snap-align: center; }
}
/* On its side a phone has little height, and its address bar takes a good part of it. A browser only puts its toolbars
   away when the page under them scrolls, and a page that cannot scroll leaves them there for good. So here the page is
   as tall as the screen is with the toolbars gone (lvh), which is taller than the screen by exactly their height while
   they show: a swipe up anywhere off the list scrolls that much, the toolbars go, and there is nothing further to
   scroll. The stage is fixed and does not move; app.js does not listen to the page here. A swipe on the list is still
   the list's alone. Where there are no toolbars (a tablet) the page is as tall as the screen and nothing changes. */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  html.own body { min-height: 100vh; min-height: 100lvh; }
}

/* ---------- the selected production: in the middle of the wall, in front of the picture ---------- */

.viewer { order: 1; flex: none; height: var(--vh); padding-top: var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; }

.title { flex: none; width: 100%; }
.details, .with { height: var(--dh); line-height: var(--dh); font-size: 13px; font-weight: 600; color: var(--cyan); white-space: nowrap; }
/* The groups it was made with, right under the name. The line's own place is under the title's box, which is where a
   two-line name ends. A one-line name ends higher, by --slack (set by app.js), and the line is drawn that much higher.
   Its place is kept whether or not there is anything on it, so nothing under it moves. */
.with { position: relative; top: calc(-1 * var(--slack, 0px)); }
.with a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.with a:hover { color: var(--mint); text-decoration-color: currentColor; }
.title h2 {
  height: var(--tb); display: flex; align-items: center; justify-content: center;
  font: 700 calc(var(--ts) * var(--tz)) / var(--tl) var(--display); letter-spacing: -.015em;
  color: var(--mint);
}
.title h2 span { display: block; min-width: 0; max-width: 100%; text-wrap: balance; opacity: .88; }

.play {
  flex: none; width: calc(var(--pl) - 4px); height: calc(var(--pl) - 4px); margin-top: 4px;
  display: grid; place-items: center; padding-left: 3px;
  border: 2px solid var(--mint); border-radius: 50%; color: var(--mint);
  transition: background-color .15s, opacity .2s ease-out;
}
.play[hidden] { display: none; }
.play:hover { background-color: rgba(122, 255, 197, .16); }

.links { flex: none; display: flex; gap: 26px; justify-content: center; align-items: center; height: var(--lk); font-size: 13px; font-weight: 600; color: var(--cyan); transition: opacity .2s ease-out; }
.links a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; }
.links svg { flex: none; }

/* awards and nominations meet on the middle line: one set runs up to it, the other away from it */
.honours { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; column-gap: 36px; padding: 2px 0 14px; transition: opacity .2s ease-out; }
.honours .awards:not(:only-child) { text-align: right; }
.honours .noms:not(:only-child) { text-align: left; }
.honours[hidden] { display: none; }
.honours h3 { font: 600 11px/1.4 var(--text); letter-spacing: .03em; color: var(--gold); margin-bottom: 3px; }
.honours ul + h3 { margin-top: 9px; }      /* a second awards' name in the same column */
.honours li { font-size: 15px; line-height: 1.5; font-weight: 600; }
.honours .awards li { color: var(--pink); }
.honours .noms li { color: var(--nom); }

/* On a phone held upright there is no room for two columns of them: each awards' name on a line, what was won or
   nominated run on under it. app.js makes the type smaller (--hz) if a production's do not fit the room kept. */
@media (max-width: 699.98px) and (orientation: portrait), (max-width: 619.98px) {
  .honours { display: block; width: 100%; padding: 0; font-size: calc(13.5px * var(--hz, 1)); }
  .honours :is(.awards, .noms):not(:only-child) { text-align: center; }
  .honours section + section, .honours ul + h3 { margin-top: .35em; }
  .honours h3 { font-size: .78em; margin-bottom: 0; }
  .honours li { display: inline; font-size: 1em; line-height: 1.4; white-space: nowrap; }
  .honours li:not(:last-child)::after { content: "\a0\b7\20"; white-space: normal; }   /* a line may end after the dot, never before it */
}

/* Upright, the play mark, the links and the awards belong to the production the list last rested on. While the title
   is showing another name they are put out, and they come back, changed, when the list rests. */
@media (orientation: portrait) {
  #stage.away :is(.play, .links, .honours) { opacity: 0; pointer-events: none; transition-duration: .12s; }
}

/* ---------- the projection ----------
   The picture is thrown across the page, as a projector would throw it at a wall: first the still, and once
   the list has rested a moment, a short silent clip over it.

   The wall. Both are light, not panels: they are added to what is under them (screen), so black in the
   picture is the page itself and its edges fall off instead of ending. A still is thrown only as large as
   its pixels allow (--throw); the old productions get a smaller patch of light, not a blur.

   The logo is painted on the wall in a darker tone, and darker paint returns less light. Its paint takes
   most from the middle tones and next to nothing from a bright picture (soft-light), so across a white
   scene it is a trace in the plaster and not a watermark; its edge is a little soft for the same reason.

   The things in front. Title, links, play mark, list and awards stand a little off the wall. They catch the
   picture (hard-light: a light colour is lit further by what is behind it) and they stop it reaching the
   wall behind them (their drop shadow, which under hard-light darkens). The colours below are the page's
   own, shifted so that with no light on the wall they look exactly as they always do; nothing jumps when
   the lamp comes on. */
.slide, .beam {
  position: absolute; pointer-events: none;
  mix-blend-mode: screen; opacity: 0;
  transition: opacity .2s ease-out;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.slide {
  --throw: 2;   /* how far a still may be enlarged */
  /* centred behind the title, and no larger than fits on the wall from there */
  left: var(--px); top: var(--py); transform: translate(-50%, -50%);
  width: min(2 * (98cqw - var(--px)), 2 * (var(--px) - 2cqw), 2 * min(98cqh - var(--py), var(--py) - 2cqh) * var(--w) / var(--h), var(--w) * var(--throw) * 1px); height: auto;
  aspect-ratio: var(--w) / var(--h);
}
.beam {
  left: 2cqw; top: 2cqh; width: 96cqw; height: 96cqh; object-fit: cover;
  filter: blur(14px) brightness(1.5);
}
.mark.paint {
  filter: brightness(0) blur(max(1.2px, .13cqw));
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .2s ease-out;
}

#stage.lit .slide { opacity: var(--still, var(--lamp)); transition-duration: .45s; }
#stage.lit .mark.paint { opacity: .18; transition-duration: .45s; }
#stage.film .slide { opacity: 0; transition-duration: .9s; }   /* the still gives way to the film */
#stage.film .beam {
  opacity: var(--film, var(--lamp)); filter: none;   /* a dark wall gives back only part of what lands on it; the pale things in front give back more */
  transition: opacity .7s ease-out, filter 1.1s cubic-bezier(.2, .7, .2, 1);   /* the lamp comes up, then the lens finds focus */
  animation: lamp 3.7s steps(1, end) .8s infinite;
}
#stage.stopped .beam { animation-play-state: paused; }   /* stopped by a click: the frame holds, and so does the lamp */
@keyframes lamp {   /* an old lamp is never quite steady */
  0%, 9%, 34%, 86% { opacity: var(--film, var(--lamp)); }
  7% { opacity: calc(var(--film, var(--lamp)) * .95); } 31% { opacity: calc(var(--film, var(--lamp)) * .97); }
  58% { opacity: calc(var(--film, var(--lamp)) * .935); } 60% { opacity: calc(var(--film, var(--lamp)) * .985); } 83% { opacity: calc(var(--film, var(--lamp)) * .96); }
}

/* what stands in front of the wall */
#stage.lit :is(.top, .list, .title, .links, .honours, .play) {
  --list: #C7EED9; --cyan: #B5E9F3; --mint: #B1FFDD; --pink: #FFE5F2; --nom: #AAF4FF; --gold: #E1DCB4; --grey: #BBBBBE;
  --near: drop-shadow(0 0 1px rgba(0, 0, 0, .75)) drop-shadow(0 0 3px rgba(0, 0, 0, .45));   /* the dark that gathers right behind a thing */
  mix-blend-mode: hard-light;
}
#stage.lit .list { color: var(--list); }
/* the shadow each one throws: the lamp is up and to the left, and bigger things stand further off the wall */
#stage.lit :is(.top, .links, .honours, .details, .with, .group) { filter: var(--near) drop-shadow(4px 5px 2.5px rgba(0, 0, 0, .6)); animation: cast .8s ease-out backwards; }
#stage.lit :is(.title h2, .play) { filter: var(--near) drop-shadow(8px 11px 5px rgba(0, 0, 0, .6)); animation: cast .8s ease-out backwards; }
@keyframes cast { from { filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 0 0 rgba(0, 0, 0, 0)); } }   /* the shadows arrive with the light */

/* ---------- portrait, tablet ---------- */

@media (orientation: portrait) and (min-width: 700px) {
  #stage {
    --m: 48px; --top: 72px; --row: 44px; --gap: 16px; --dh: 28px;
    --ts: clamp(44px, 6.6cqw, 64px);
    --pl: 76px; --lk: 60px; --hr: 190px;
  }
  .canvas { max-width: 900px; margin: 0 auto; }
  .mark { width: 76cqw; top: calc(var(--H) * .96 - 76cqw * 850 / 1592); }
  .top { font-size: 13px; }
  .list { width: 480px; }
  .group a { font-size: 16px; }
  .year { font-size: 13px; }
  .details, .with { font-size: 16px; }
  .play { width: 68px; height: 68px; margin-top: 8px; }
  .play svg { width: 26px; height: 26px; }
  .links { height: 60px; gap: 34px; font-size: 15px; }
  .honours { column-gap: 56px; padding-bottom: 20px; }
  .honours h3 { font-size: 12px; }
  .honours li { font-size: 18px; }
}

/* ---------- landscape ---------- */

@media (orientation: landscape) and (min-width: 620px) {
  #stage {
    --m: 48px; --top: 72px; --row: 32px; --gap: 14px; --dh: 26px;
    --lw: 280px;      /* list width: the longest name plus a year, and the space before the spine */
    --g: 56px;        /* list to the production */
    --left: calc(var(--m) + var(--lw) + var(--g));   /* where the wall is clear of the list */
    /* the production is centred on the wall while there is room for that; on a narrow screen it takes what the list leaves */
    --iw: min(940px, max(2 * (50cqw - var(--left)), min(100cqw - var(--left) - var(--m), 560px)));
    --ix: max(50cqw - var(--iw) / 2, var(--left));
    --ts: clamp(26px, min(4.3cqw, 9.6cqh), 72px);
    --cy: calc(50cqh + 6px);                       /* the selection point */
    --wh: calc((100cqh - var(--top)) * .85);       /* list window: a share of the height under the top bar */
    --px: calc(var(--ix) + var(--iw) / 2); --py: var(--cy);
  }
  .canvas { display: block; padding: 0; height: auto; bottom: 0; }

  .mark { top: 50%; bottom: auto; width: min(72cqw, 116cqh); transform: translate(-50%, -50%); }

  .top { position: absolute; left: var(--m); right: var(--m); top: 0; font-size: 13px; }

  .upper {
    position: absolute; left: var(--m); width: var(--lw);
    top: calc(var(--cy) - var(--wh) / 2); height: var(--wh);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44%, #000 56%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 44%, #000 56%, transparent 100%);
  }
  .upper > ol { padding: calc((var(--wh) - var(--row)) / 2) 16px calc((var(--wh) - var(--row)) / 2) 0; }
  .group a { text-align: right; }

  .spine {
    left: calc(var(--m) + var(--lw)); width: 1px; transform: none;
    top: calc(var(--cy) - var(--wh) / 2); height: var(--wh);
    background: linear-gradient(to bottom, transparent 0, var(--spine) 40%, var(--spine) 60%, transparent 100%);
  }
  .spine::after {
    content: ""; position: absolute; left: -1px; width: 2px;
    top: calc(50% - var(--row) / 2 + 3px); height: calc(var(--row) - 6px);
    background: var(--mint);
  }

  /* the middle of the title's box is the selection point */
  .viewer { position: absolute; left: var(--ix); width: var(--iw); top: calc(var(--cy) - var(--tb) / 2 - var(--dh)); height: auto; padding-top: 0; }
  .details, .with { font-size: 15px; }
  .play { width: 64px; height: 64px; margin-top: 10px; }
  .play svg { width: 25px; height: 25px; }
  .links { height: 58px; gap: 32px; font-size: 14px; }
  .honours { column-gap: 48px; padding: 4px 0 0; }
  .honours li { font-size: 16px; }
}

/* landscape on a phone: little height, so everything smaller */
@media (orientation: landscape) and (min-width: 620px) and (max-height: 520px) {
  #stage { --m: 20px; --top: 36px; --row: 26px; --gap: 8px; --lw: 232px; --g: 28px; --dh: 20px; --ts: clamp(22px, min(4.3cqw, 7.4cqh), 40px); --wh: calc((100cqh - var(--top)) * .94); --cy: calc(46cqh + 4px); }
  .top { font-size: 11px; }
  .group a { font-size: 12px; }
  .year { font-size: 10px; }
  .upper > ol { padding-right: 14px; }
  .details, .with { font-size: 12px; }
  .play { width: 40px; height: 40px; margin-top: 2px; border-width: 1.5px; }
  .play svg { width: 17px; height: 17px; }
  .links { height: 34px; gap: 22px; font-size: 12px; }
  /* no height to spare: awards on one run of text, nominations on the next, each after its label */
  .honours { display: block; padding: 0; }
  .honours :is(.awards, .noms):not(:only-child) { text-align: center; }
  .honours h3 { display: inline; font-size: 10px; margin: 0 4px 0 0; white-space: nowrap; }
  .honours ul + h3 { margin: 0 4px 0 6px; }
  .honours ul { display: inline; }
  .honours li { display: inline-block; margin: 0 6px; font-size: 13px; line-height: 1.4; }
}

/* ---------- video player: the lights go down, and the production is shown on a screen of its own ----------
   One column as wide as the screen: what is playing and the way out above it, the way to YouTube under it.
   The page behind is darkened and thrown out of focus, so the still on the wall becomes the room's glow. */

#player {
  --pm: 16px;     /* space kept round the whole column */
  --ph: 68px;     /* room for the line above the screen */
  --pf: 44px;     /* and for the line under it */
  --pw: min(100vw - 2 * var(--pm), (100vh - var(--ph) - var(--pf) - 2 * var(--pm)) * 16 / 9, 1600px);   /* the largest 16:9 screen that leaves that room */
  width: var(--pw); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; overflow: visible;
  background: transparent; color: var(--list);
}
@supports (height: 100dvh) {   /* a phone's toolbars come and go; measure what is really free */
  #player { --pw: min(100vw - 2 * var(--pm), (100dvh - var(--ph) - var(--pf) - 2 * var(--pm)) * 16 / 9, 1600px); }
}
#player::backdrop { background: rgba(17, 17, 19, .86); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); }

.player-top { min-height: var(--ph); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 12px; }
.player-title { min-width: 0; }
.player-details { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--cyan); }
.player-title h2 { font: 700 clamp(18px, 5.2vw, 24px)/1.18 var(--display); color: var(--mint); text-wrap: balance; }

.close {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--mint) 55%, transparent); border-radius: 50%;
  background: none; color: var(--mint); cursor: pointer;
  transition: border-color .15s ease-out, background-color .15s ease-out;
}
.close:hover { border-color: var(--mint); background-color: color-mix(in srgb, var(--mint) 12%, transparent); }

.player-frame {
  aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 32px 90px rgba(0, 0, 0, .55);
}
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.player-foot { height: var(--pf); display: flex; align-items: center; justify-content: flex-end; font-size: 12px; font-weight: 600; color: var(--cyan); }
.player-foot a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; }
.player-foot a:hover { color: var(--mint); }

@keyframes lights-down { from { opacity: 0; } }
@keyframes screen-up { from { opacity: 0; transform: translateY(10px) scale(.985); } }
#player[open]::backdrop { animation: lights-down .35s ease-out; }
#player[open] { animation: screen-up .4s cubic-bezier(.2, .7, .2, 1) .06s backwards; }

@media (min-width: 900px) {
  #player { --pm: 28px; --ph: 78px; }
  .player-details { font-size: 13px; }
  .player-title h2 { font-size: clamp(22px, 2vw, 30px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* a phone held sideways: every pixel of height goes to the screen */
@media (orientation: landscape) and (max-height: 520px) {
  #player { --pm: 8px; --ph: 40px; --pf: 0px; }
  .player-top { align-items: center; padding-bottom: 6px; }
  .player-title { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 12px; }
  .player-title h2 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player-details { white-space: nowrap; }
  .close { width: 30px; height: 30px; }
  .player-foot { display: none; }
}

.noscript { position: fixed; left: 16px; right: 16px; top: 72px; color: var(--list); }
.noscript a { color: var(--cyan); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .slide, .mark.paint, .play, .links, .honours, .close { transition: none !important; }
  #player[open], #player[open]::backdrop { animation: none; }
  #stage.lit :is(.top, .links, .honours, .details, .with, .group, .title h2, .play) { animation: none; }
}
