/* Glastonbury 2027 lineup — poster as a web app */

:root {
  --navy: #140d38;
  --navy-2: #1e1657;
  --ink: #0b0624;
  --pink: #e7a3b8;
  --cream: #f8f1e1;
  --dot: #d4d4de;

  --orchid: #c468b4;
  --teal: #3fa7a8;
  --orange: #f0914f;
  --yellow: #f5d35c;
  --green: #56a85c;
  --blue: #6289cf;
  --red: #d8544a;
  --ember: #ec5321;
  --heart: #ff4f7b;

  --mat: clamp(10px, 1.6vw, 22px);
  --frame: clamp(34px, 3.5vw, 50px);

  --f-poster: 'League Gothic', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
  --f-script: 'Macondo', 'Cochin', Georgia, serif;
  --f-wide: 'Unbounded', 'Arial Black', sans-serif;
  --f-ui: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: var(--mat);
  background: var(--pink);
  color: var(--cream);
  font: 500 17px/1.3 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
p, h1, h2 { margin: 0; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- the poster ---------- */

.poster {
  position: relative;
  min-height: calc(100vh - var(--mat) * 2);
  min-height: calc(100dvh - var(--mat) * 2);
  padding-bottom: 120px;
  background: var(--navy);
  border: var(--frame) solid var(--navy);
  border-image: url(../assets/border.svg) 60 / var(--frame) round;
  isolation: isolate;
}

/* Two layers of stars behind everything. They scroll with the page, but where
   the browser supports scroll-driven animation they lag a touch behind it, the
   far layer more than the near one, for a little depth. That runs on the
   compositor, in step with the scroll itself, so there is no script on scroll
   and no stutter; browsers without it simply get a still sky.

   The lag is a fixed fraction of how far you have scrolled, in pixels. A scroll
   timeline only knows progress (0 to 1), so the end of each animation is that
   fraction of the page's whole scroll range, --scroll-range, which app.js keeps
   up to date. Doing it this way, and anchoring the layers to the top, means the
   stars stay put when the page gets longer or shorter (a playlist appearing). */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.stars-far {
  background: url(../assets/stars-b.svg) 30% 0 / 640px;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}
.stars-near { background: url(../assets/stars-a.svg) 50% 0 / 900px; }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .stars-near { animation: drift-near linear both; animation-timeline: scroll(root block); }
    .stars-far {
      animation: twinkle 5.5s ease-in-out infinite alternate, drift-far linear both;
      animation-timeline: auto, scroll(root block);
    }
  }
}
@keyframes drift-near { to { transform: translate3d(0, calc(var(--scroll-range, 0px) * .05), 0); } }
@keyframes drift-far { to { transform: translate3d(0, calc(var(--scroll-range, 0px) * .14), 0); } }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 36px);
  container-type: inline-size;
  --u: calc(100cqw / 896); /* one poster pixel */
}

/* ---------- masthead ---------- */

.masthead { padding-top: clamp(12px, 2.2vw, 30px); text-align: center; }

.lockup { position: relative; height: calc(var(--u) * 230); }
.lockup img { position: absolute; display: block; height: auto; max-width: none; }

.moon { left: calc(var(--u) * 418); top: calc(var(--u) * -6); width: calc(var(--u) * 46); }
.title { position: absolute; left: calc(var(--u) * 99); top: calc(var(--u) * 18); width: calc(var(--u) * 700); }
.title img { position: static; width: 100%; }
.hand { top: calc(var(--u) * 26); width: calc(var(--u) * 98); }
.hand-l { left: calc(var(--u) * 13); }
.hand-r { left: calc(var(--u) * 783); transform: scaleX(-1); }

.strap {
  position: relative;
  margin-top: calc(var(--u) * -53);
  font: 400 calc(var(--u) * 21.5) / 1.1 var(--f-script);
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #ee8b4c;
  -webkit-text-stroke: .055em currentColor;
}
.dates {
  margin-top: calc(var(--u) * 1);
  font: 400 calc(var(--u) * 27.5) / 1.05 var(--f-script);
  letter-spacing: .02em;
  color: #5fb4bc;
  -webkit-text-stroke: .012em currentColor;
}
.place {
  margin-top: calc(var(--u) * 4);
  font: 400 calc(var(--u) * 25) / 1 var(--f-poster);
  font-stretch: 100%;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #5fb4bc;
}

@container (max-width: 600px) {
  .strap { margin-top: 4px; font-size: max(calc(var(--u) * 21.5), 14px); }
  .dates { margin-top: 3px; font-size: max(calc(var(--u) * 27.5), 21px); }
  .place { margin-top: 5px; font-size: max(calc(var(--u) * 25), 18px); }
}

.hint {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .55em;
  margin: clamp(18px, 3.4cqw, 34px) auto clamp(12px, 2.2cqw, 22px);
  font: 400 clamp(17px, 2.3cqw, 23px) / 1.15 var(--f-poster);
  font-stretch: 88%;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .82;
}
.hint i { width: .28em; height: .28em; border-radius: 50%; background: var(--heart); }

/* ---------- radio button ---------- */

.tune {
  appearance: none;
  display: flex; align-items: center; gap: .55em;
  margin: clamp(16px, 3cqw, 30px) auto 0;
  padding: .42em .5em .36em .8em;
  font: 400 clamp(21px, 3cqw, 27px) / 1 var(--f-poster);
  font-stretch: 90%;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(6, 3, 22, .75);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.tune:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 5px 0 rgba(6, 3, 22, .75); }
.tune:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(6, 3, 22, .75); }
.tune b {
  padding: .3em .7em .22em;
  font-weight: 400;
  color: var(--pink); background: var(--ink);
  border-radius: 999px;
}
.tune-dot { width: .5em; height: .5em; border-radius: 50%; background: #d81e3a; box-shadow: 0 0 0 0 rgba(216, 30, 58, .6); }
.tune[aria-pressed="true"] .tune-dot { animation: onair 1.4s ease-out infinite; }
.tune[aria-pressed="true"] b { color: #fff; background: #d81e3a; }
@keyframes onair { to { box-shadow: 0 0 0 .55em rgba(216, 30, 58, 0); } }

.hint { margin-top: clamp(14px, 2.4cqw, 22px); }

/* ---------- poster / by stage / by day ---------- */

.views { display: flex; justify-content: center; gap: 6px; margin-top: clamp(16px, 2.6cqw, 24px); }
.views a {
  padding: 8px 15px 5px;
  font: 400 clamp(18px, 2.3cqw, 22px) / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--cream);
  border: 2px solid rgba(248, 241, 225, .35);
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.views a:hover { border-color: var(--cream); }
.views a[aria-current="page"] { color: var(--ink); background: var(--teal); border-color: var(--ink); }

.schedule { margin-top: clamp(4px, 1cqw, 10px); text-align: center; }
/* Five stages across want more room than the poster's column: on a wide screen the by-day tables reach out into the margins. */
.schedule[data-view="by-day"] { margin-inline: calc(-1 * clamp(0px, (100vw - 1160px) / 2, 120px)); }
.schedule[hidden], .lineup[hidden], .more[hidden] { display: none; }

.spec {
  max-width: 620px; margin: 0 auto;
  font: 500 17.5px / 1.3 var(--f-ui);
  color: rgba(248, 241, 225, .8);
  text-wrap: balance;
}
.tag-spec {
  display: inline-block; vertical-align: 1px;
  margin-right: 6px; padding: 4px 8px 2px;
  font: 400 15px / 1 var(--f-poster); font-stretch: 92%;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); border-radius: 5px;
}

.sched-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 16px; }
.sched-jump a {
  padding: 5px 10px 3px;
  font: 400 18px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: rgba(248, 241, 225, .75);
  border-radius: 6px;
}
.sched-jump a:hover { color: var(--ink); background: var(--cream); }

.sched-block { margin-top: clamp(34px, 6cqw, 58px); scroll-margin-top: 20px; }
.sched-title {
  margin: 0;
  font: 900 clamp(21px, 4cqw, 34px) / 1.1 var(--f-wide);
  text-transform: uppercase; color: #f08a52;
}
.sched-block:nth-child(even) .sched-title { color: var(--ember); }
.sched-table {
  /* Columns are filled top to bottom, so every column's nth cell sits in the same
     row: a row is a place on the bill, whichever day or stage the column is. */
  display: grid; grid-auto-flow: column;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: auto repeat(var(--rows), auto);
  gap: 5px 8px;
  max-width: calc(var(--cols) * 340px);
  margin: clamp(14px, 2.4cqw, 20px) auto 0;
  text-align: left;
}
.slot-head {
  margin: 0; padding: 0 2px 6px 13px;
  font: 400 clamp(23px, 2.8cqw, 28px) / 1 var(--f-poster); font-stretch: 100%;
  letter-spacing: .05em; text-transform: uppercase;
  color: #5fb4bc;
}
.slot {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  min-height: 50px; padding: 6px 4px 6px 13px;
  background: #1f1755;
  border: 1.5px solid #2f2670;
  border-radius: 8px;
  /* A plainer, wider face than the poster lettering: these are tables to be read, not a poster. */
  font: 600 clamp(22px, 2.5cqw, 25px) / 1.04 var(--f-ui);
  letter-spacing: .025em;
}
.slot.is-top1 { font-size: clamp(27px, 3.2cqw, 32px); }
.slot.is-top2 { font-size: clamp(24px, 2.8cqw, 28px); }
.slot.is-empty {
  justify-content: center; padding: 0;
  background: rgba(31, 23, 85, .45);
  border-style: dashed; border-color: rgba(64, 53, 138, .7);
}
.slot.is-none { visibility: hidden; }
.slot.is-empty span { font-size: 15px; letter-spacing: .16em; color: rgba(248, 241, 225, .28); }
.slot-name { min-width: 0; }
.slot .act { display: block; white-space: normal; padding: 0; }
.slot small {
  display: block; margin-top: 2px;
  font: 600 13.5px / 1.1 var(--f-ui);
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(248, 241, 225, .6);
}
/* Two hearted acts in the same place on the bill on the same day. A quiet flag, not an alarm:
   a dotted pink edge and a faint tint, with the detail left to the tooltip. */
.slot.is-clash {
  border-style: dotted; border-color: rgba(255, 79, 123, .75);
  background: color-mix(in srgb, var(--heart) 9%, #1f1755);
}

.row-heart {
  all: unset;
  flex: none; display: grid; place-items: center; width: 30px; height: 32px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.row-heart svg {
  width: 17px; height: 15.5px; overflow: visible;
  fill: transparent; stroke: rgba(248, 241, 225, .38); stroke-width: 2.2; stroke-linejoin: round;
  transition: fill .15s, stroke .15s, transform .25s cubic-bezier(.3, 1.9, .5, 1);
}
.row-heart:hover svg { stroke: var(--cream); }
.row-heart[aria-pressed="true"] svg { fill: var(--heart); stroke: var(--heart); transform: scale(1.12); }
.row-heart:focus-visible { outline: 3px solid var(--yellow); border-radius: 6px; }

/* Too narrow for the columns side by side: stack them, each as its own short table. */
@container (max-width: 560px) {
  .schedule[data-view="by-stage"] .sched-table { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
  .schedule[data-view="by-stage"] .slot-head:not(:first-child) { margin-top: 14px; }
  .schedule[data-view="by-stage"] .slot.is-none { display: none; }
}
@container (max-width: 860px) {
  .schedule[data-view="by-day"] .sched-table { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; max-width: 420px; }
  .schedule[data-view="by-day"] .slot-head:not(:first-child) { margin-top: 14px; }
  .schedule[data-view="by-day"] .slot.is-none { display: none; }
}

/* ---------- lineup ---------- */

.lineup {
  font-family: var(--f-poster);
  font-stretch: 85%;
  font-weight: 400;
  letter-spacing: .012em;
  line-height: 1;
  min-height: 60vh;
}
.lineup.is-ready { min-height: 0; }

.line {
  display: flex; justify-content: center; align-items: center;
  white-space: nowrap;
}

.act {
  all: unset;
  position: relative;
  display: inline-block;
  padding: .08em 0 .04em;
  color: var(--c);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), filter .18s, text-shadow .3s;
}
.act:focus-visible { outline: 3px solid var(--yellow); outline-offset: .04em; border-radius: .08em; }
@media (hover: hover) {
  .act:hover { transform: translateY(-.035em) scale(1.045); filter: brightness(1.18) saturate(1.1); }
}
.act:active { transform: scale(.96); }
.act.is-liked { text-shadow: 0 0 .4em color-mix(in srgb, var(--c) 60%, transparent); }
.act.is-playing { animation: bob 1s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-.06em); filter: brightness(1.25); } }

.badge {
  position: absolute; right: -.17em; top: -.03em;
  width: .37em; height: .34em;
  fill: var(--heart); stroke: #fff6ea; stroke-width: 2.4; stroke-linejoin: round; paint-order: stroke;
  overflow: visible;
  transform: rotate(14deg) scale(0);
  transition: transform .34s cubic-bezier(.3, 1.9, .5, 1);
  filter: drop-shadow(0 .03em 0 rgba(11, 6, 36, .7));
  pointer-events: none;
}
.act.is-liked .badge { transform: rotate(14deg) scale(1); }

.sep {
  flex: none; width: .2em; height: .2em; margin: 0 .19em;
  border-radius: 50%; background: var(--dot);
  transform: translateY(-.02em);
}

.more {
  margin-top: calc(var(--u) * 24);
  font: 400 clamp(17px, calc(var(--u) * 29.5), 34px) / 1.12 var(--f-poster);
  font-stretch: 88%;
  letter-spacing: .012em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fbfbff;
}

/* ---------- causes ---------- */

.causes {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(8px, 2cqw, 24px);
  margin-top: calc(var(--u) * 14);
  text-align: center;
}
.mandala { display: block; width: max(calc(var(--u) * 125), 58px); height: auto; }
.causes .cond {
  font: 400 max(calc(var(--u) * 23), 16px) / 1.2 var(--f-poster);
  font-stretch: 100%;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: #f7da62;
}
.causes .wide {
  margin: .25em 0 .3em;
  font: 900 max(calc(var(--u) * 14.4), 9.5px) / 1.35 var(--f-wide);
  text-transform: uppercase;
  text-wrap: balance;
  color: #f08a52;
}
.causes .wide b { font-weight: inherit; white-space: nowrap; }
.causes .wide b:nth-child(even) { color: var(--ember); }

.band {
  height: clamp(22px, 3.2vw, 34px);
  margin: clamp(34px, 6vw, 64px) 0 clamp(26px, 4.5vw, 46px);
  background: url(../assets/strip.svg) 50% 50% / auto 100% round;
  box-shadow: 0 0 0 2px #17101c;
}

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .52em 1em .44em;
  font: 400 24px / 1 var(--f-poster);
  font-stretch: 90%;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 0 4px 0 rgba(6, 3, 22, .75);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 5px 0 rgba(6, 3, 22, .75); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(6, 3, 22, .75); }
.btn-primary { background: var(--yellow); }
.btn-small { font-size: 19px; padding: .5em .8em .42em; border-radius: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- your lineup / playlist ---------- */

.mix { text-align: center; scroll-margin-top: 24px; }

.mix-title {
  font: 900 clamp(22px, 4.6cqw, 40px) / 1.1 var(--f-wide);
  text-transform: uppercase;
  color: #f08a52;
}
.mix-title b { color: var(--ember); font-weight: inherit; }

.mini-lineup {
  margin: clamp(14px, 2.6cqw, 24px) auto 0;
  max-width: 880px;
  font: 400 clamp(28px, 5.2cqw, 46px) / 1 var(--f-poster);
  font-stretch: 85%;
  letter-spacing: .012em;
}
.mini-lineup .empty {
  font-size: clamp(19px, 2.6cqw, 25px);
  font-stretch: 88%;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .7;
}

.mix-controls {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 22px;
  margin-top: clamp(20px, 3.4cqw, 32px);
}
.mix-out[hidden], .btn[hidden] { display: none; }

.seg { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; }
.seg legend {
  float: left; padding: 0; margin-right: 10px;
  font: 400 21px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cream);
}
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; width: 40px; height: 40px;
  font: 400 23px / 1 var(--f-poster);
  color: var(--cream);
  border: 2px solid rgba(248, 241, 225, .35);
  border-radius: 50%;
  transition: background .15s, color .15s, border-color .15s;
}
.seg input:checked + span { background: var(--teal); border-color: var(--ink); color: var(--ink); }
.seg input:disabled + span { opacity: .38; }
.seg input:disabled { cursor: default; }
.seg-words span {
  width: auto; padding: 2px 15px 0;
  font-stretch: 90%; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px;
}
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.mix-out { max-width: 720px; margin: clamp(24px, 4cqw, 40px) auto 0; text-align: left; }
.mix-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.mix-count {
  font: 400 26px / 1 var(--f-poster); font-stretch: 88%;
  letter-spacing: .04em; text-transform: uppercase; color: #f7da62;
}
.mix-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.mix-save {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 16px; padding-top: 14px;
  border-top: 1.5px solid #2f2670;
}
.mix-save-label {
  margin-right: 4px;
  font: 400 21px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cream);
}
.btn-spotify { background: #3ecf6e; }
.btn-apple { background: #ff7a8c; text-decoration: none; }

.how {
  display: grid; justify-items: start; gap: 10px;
  margin-bottom: 16px; padding: 14px 16px 15px;
  background: #1f1755;
  border: 1.5px solid var(--yellow);
  border-radius: 11px;
}
.how[hidden] { display: none; }
.how-title {
  font: 400 25px / 1 var(--f-poster); font-stretch: 88%;
  letter-spacing: .04em; text-transform: uppercase; color: #f7da62;
}
.how-steps {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: 6px;
  font: 500 18.5px / 1.25 var(--f-ui); color: var(--cream);
}
.how-steps li { counter-increment: step; display: flex; align-items: baseline; gap: 10px; }
.how-steps li::before {
  content: counter(step);
  flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  font: 400 17px / 1 var(--f-poster);
  color: var(--ink); background: var(--yellow); border-radius: 50%;
  transform: translateY(2px);
}
.how-text { font: 500 18.5px / 1.3 var(--f-ui); color: var(--cream); }
.how-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.how-open .btn { flex: none; }
.how-open .how-text { flex: 1 1 220px; }
.how-text b { font-weight: 700; color: #f7da62; }
.how-text code { font: 500 15px / 1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #f7da62; overflow-wrap: anywhere; }
.how-note { font: 500 16px / 1.25 var(--f-ui); color: rgba(248, 241, 225, .65); }
.how-more summary { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.how-more summary:hover, .how-more[open] summary { color: var(--cream); }
.how-more ul { margin: 7px 0 0; padding: 0 0 0 1.15em; display: grid; gap: 3px; }

.mix-more { display: flex; margin: 14px auto 0; }

/* ---------- track rows ---------- */

.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; counter-reset: n; }
.sheet .tracks { gap: 6px; }

.track {
  --c: var(--yellow);
  position: relative;
  display: flex; align-items: center;
  background: #1f1755;
  border: 1.5px solid #2f2670;
  border-radius: 11px;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.track:hover { background: #271e66; }
.track.is-current { background: color-mix(in srgb, var(--c) 17%, #1a124a); border-color: color-mix(in srgb, var(--c) 80%, #1a124a); }

.track-btn {
  all: unset;
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 7px 4px 7px 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.track-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: 10px; }

.cover {
  position: relative; flex: none;
  width: 48px; height: 48px;
  border-radius: 7px; overflow: hidden;
  background: var(--navy-2);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: rgba(11, 6, 36, .38); transition: background .15s; }
.track.is-current .cover::after { background: rgba(11, 6, 36, .6); }

.pp {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  color: #fff;
}
.pp::before { /* play triangle */
  content: '';
  width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}
.is-playing > .track-btn .pp::before,
.is-playing > .pp::before { /* pause bars */
  width: 13px; height: 16px; margin: 0;
  border: 0; border-left: 4.5px solid currentColor; border-right: 4.5px solid currentColor;
}
.is-loading > .track-btn .pp::before,
.is-loading > .pp::before {
  width: 18px; height: 18px; margin: 0;
  border: 3px solid rgba(255, 255, 255, .3); border-top-color: currentColor; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.t-title {
  font: 600 19px / 1.15 var(--f-ui);
  letter-spacing: .01em;
  color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-sub {
  font: 500 15.5px / 1.2 var(--f-ui);
  letter-spacing: .02em;
  color: rgba(248, 241, 225, .62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-sub b { font-weight: 600; color: var(--c); }
.t-time {
  flex: none; padding: 0 6px;
  font: 500 15px / 1 var(--f-ui);
  font-variant-numeric: tabular-nums;
  color: rgba(248, 241, 225, .55);
}
.track.is-current .t-time { color: var(--cream); }

.t-link {
  flex: none; display: grid; place-items: center;
  width: 40px; align-self: stretch;
  color: rgba(248, 241, 225, .5);
  text-decoration: none;
  transition: color .15s;
}
.t-link:hover { color: var(--cream); }
.t-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bar {
  position: absolute; left: 0; bottom: 0; height: 3px;
  width: 100%;
  background: var(--c);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  transition: transform .26s linear;
  opacity: 0;
}
.track.is-current .bar { opacity: 1; }

.tracks-mix .track-btn::before {
  counter-increment: n; content: counter(n);
  flex: none; width: 1.5em; margin-right: -4px;
  font: 400 21px / 1 var(--f-poster);
  text-align: center;
  color: rgba(248, 241, 225, .45);
}

.note {
  padding: 18px 8px;
  font: 400 21px / 1.2 var(--f-poster); font-stretch: 88%;
  letter-spacing: .05em; text-transform: uppercase; text-align: center;
  color: rgba(248, 241, 225, .7);
}

.skeleton { height: 65px; border-radius: 11px; background: #1f1755; animation: pulse 1s ease-in-out infinite alternate; }
.skeleton:nth-child(2) { animation-delay: .12s; } .skeleton:nth-child(3) { animation-delay: .24s; }
.skeleton:nth-child(4) { animation-delay: .36s; } .skeleton:nth-child(5) { animation-delay: .48s; }
@keyframes pulse { to { background: #2b2270; } }

/* ---------- dock ---------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: calc(14px + var(--lift, 0px) + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: stretch;
  width: fit-content; max-width: calc(100vw - 20px);
  margin: 0 auto;
  color: var(--ink);
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(6, 3, 22, .8), 0 14px 30px rgba(6, 3, 22, .5);
  animation: dock-in .4s cubic-bezier(.3, 1.4, .5, 1);
}
.dock[hidden] { display: none; }
@keyframes dock-in { from { transform: translateY(140%); } }

.dock-now {
  all: unset;
  display: flex; align-items: center; gap: 10px;
  min-width: 0; padding: 6px 14px 6px 7px;
  border-right: 2px solid var(--ink);
  cursor: pointer;
}
.dock-now[hidden] { display: none; }
.dock-now:focus-visible { outline: 3px solid var(--navy); outline-offset: -4px; border-radius: 999px; }
.dock-now .pp {
  position: relative; inset: auto; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--pink);
}
.dock-now .pp::before { filter: none; transform: scale(.82); }
.dock-meta { display: grid; min-width: 0; max-width: min(38vw, 260px); line-height: 1.1; text-align: left; }
.dock-meta b { font: 600 17px / 1.1 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta span { font: 500 14.5px / 1.15 var(--f-ui); opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dock-mix {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px 8px 14px;
  font: 400 23px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: inherit;
  border-radius: 999px;
}
.dock-mix .ico-heart { width: 21px; height: 19px; fill: #d81e52; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.dock-mix.bump .ico-heart { animation: bump .45s cubic-bezier(.3, 1.9, .5, 1); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-10deg); } }
.dock-cta { margin-left: 8px; padding-left: 14px; border-left: 2px solid rgba(11, 6, 36, .25); }

/* ---------- act preview ---------- */

.sheet {
  width: min(700px, calc(100vw - 28px));
  max-width: none; max-height: none;
  margin: auto; padding: 0;
  color: var(--cream);
  background: none; border: 0;
  overflow: visible;
}
.sheet::backdrop { background: rgba(8, 5, 28, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open]::backdrop { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; } }

.sheet-card {
  --c: var(--yellow);
  position: relative;
  max-height: calc(100dvh - 16px); /* as tall as the window allows, so it only scrolls when it must */
  padding: 16px 18px 10px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy) url(../assets/stars-b.svg) 0 0 / 520px;
  border: 26px solid var(--navy);
  border-image: url(../assets/border.svg) 60 / 26px round;
  outline: 0;
  box-shadow: 0 0 0 2px #17101c, 0 24px 70px rgba(4, 2, 16, .7);
}

.sheet-close {
  all: unset;
  position: absolute; right: 6px; top: 6px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  color: var(--cream);
  transition: background .15s;
}
.sheet-close:hover { background: rgba(255, 255, 255, .12); }
.sheet-close:focus-visible { outline: 3px solid var(--yellow); }
.sheet-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

.sheet-head { display: flex; align-items: center; gap: 16px; padding-right: 30px; margin-bottom: 14px; }

.disc { position: relative; flex: none; width: 128px; height: 128px; }
.disc-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 14s linear infinite; animation-play-state: paused; }
.sheet.is-playing .disc-ring { animation-play-state: running; }
@keyframes turn { to { transform: rotate(1turn); } }
.disc-photo {
  position: absolute; inset: 21.5%;
  width: 57%; height: 57%;
  border-radius: 50%; object-fit: cover;
  background: var(--navy-2);
  box-shadow: 0 0 0 2.5px #c9342c;
}

.sheet-id { min-width: 0; flex: 1; }
.sheet-name {
  font: 400 clamp(38px, 9vw, 58px) / .92 var(--f-poster);
  font-stretch: 85%;
  letter-spacing: .012em;
  color: var(--c);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sheet-name.is-long { font-size: clamp(27px, 6.4vw, 40px); }

/* what they sound like: a small tag in the act's own colour, set apart from the stage line */
.sheet-vibe {
  display: inline-block; max-width: 100%; margin-top: 8px; padding: 3px 10px 3px;
  font: 600 17.5px / 1.15 var(--f-ui);
  color: var(--cream);
  background: color-mix(in srgb, var(--c) 17%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c) 50%, transparent);
  border-radius: 8px;
}
.sheet-vibe[hidden] { display: none; }

.sheet-slot {
  display: block; margin-top: 8px;
  font: 400 19px / 1.15 var(--f-poster); font-stretch: 92%;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: rgba(248, 241, 225, .82);
}
.sheet-slot[hidden] { display: none; }
.sheet-slot:hover { color: var(--cream); }
.sheet-slot .tag-spec { margin: 0 0 0 7px; vertical-align: 2px; font-size: 13px; padding: 3px 6px 1px; color: var(--yellow); background: none; box-shadow: inset 0 0 0 1.5px rgba(245, 211, 92, .6); }

/* the like button, with the act's Spotify and Apple Music pages beside it */
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }

.like {
  all: unset;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 6px 11px;
  font: 400 22px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream);
  border: 2px solid rgba(248, 241, 225, .45);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.like:hover { border-color: var(--cream); }
.like:active { transform: scale(.94); }
.like:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.like .ico-heart {
  width: 23px; height: 21px;
  fill: transparent; stroke: currentColor; stroke-width: 2; stroke-linejoin: round;
  transition: fill .18s, stroke .18s;
}
.like[aria-pressed="true"] { background: var(--heart); border-color: var(--heart); color: #fff; }
.like[aria-pressed="true"] .ico-heart { fill: #fff; stroke: #fff; animation: bump .45s cubic-bezier(.3, 1.9, .5, 1); }

.sheet-foot {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 8px;
  border-top: 1.5px solid rgba(255, 255, 255, .1);
}
.hop {
  all: unset;
  min-width: 0; padding: 6px 2px;
  font: 400 21px / 1 var(--f-poster); font-stretch: 85%;
  letter-spacing: .02em;
  color: var(--c);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
  transition: filter .15s;
}
.hop:hover { filter: brightness(1.25); }
.hop:focus-visible { outline: 3px solid var(--yellow); border-radius: 4px; }
.hop-prev::before { content: '‹ '; color: var(--dot); }
.hop-next { text-align: right; }
.hop-next::after { content: ' ›'; color: var(--dot); }
.hop[hidden] { display: block; visibility: hidden; }

.sheet-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sheet-links a {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 15.5px / 1 var(--f-ui);
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(248, 241, 225, .78);
  text-decoration: none;
}
.sheet-links svg { flex: none; width: 19px; height: 19px; fill: currentColor; }
.sheet-links a:hover { color: var(--cream); }
.sheet-links a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }

/* ---------- live videos on an act's card ---------- */

.live { margin-top: 14px; }
.live[hidden] { display: none; }
.live-title {
  margin: 0 0 7px;
  font: 400 23px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .06em; text-transform: uppercase; color: #f7da62;
}
.live-player {
  margin-bottom: 10px;
  aspect-ratio: 16 / 9;
  background: #000; border-radius: 11px; overflow: hidden;
}
.live-player[hidden] { display: none; }
.live-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.live-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.live-card {
  all: unset;
  display: grid; align-content: start; gap: 5px;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.live-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 9px; }
.live-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy-2); border-radius: 9px; overflow: hidden;
  border: 1.5px solid #2f2670;
  transition: border-color .15s;
}
.live-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.live-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(11, 6, 36, .28); transition: background .15s; }
.live-card:hover .live-thumb::after { background: rgba(11, 6, 36, .1); }
.live-card.is-current .live-thumb { border-color: var(--c); }
.live-card.is-current .pp { display: none; }
.live-tag {
  justify-self: start;
  padding: 3px 7px 1px;
  font: 400 15px / 1 var(--f-poster); font-stretch: 92%;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream); border: 1.5px solid rgba(248, 241, 225, .4); border-radius: 5px;
}
.live-tag.is-glasto { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.live-name {
  font: 500 15.5px / 1.2 var(--f-ui);
  color: rgba(248, 241, 225, .85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- radio ---------- */

.radio {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25;
  width: min(360px, calc(100vw - 16px));
  padding: 12px 14px 12px;
  color: var(--cream);
  background: #170f43;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--pink), 0 6px 0 2px rgba(6, 3, 22, .8), 0 18px 40px rgba(6, 3, 22, .6);
  animation: radio-in .35s cubic-bezier(.3, 1.3, .5, 1);
}
.radio[hidden] { display: none; }
@keyframes radio-in { from { transform: translateY(120%); } }

.radio-head { display: flex; align-items: center; gap: 4px; }
.onair {
  display: inline-flex; align-items: center; gap: 7px;
  margin-right: auto; padding: 5px 10px 3px 9px;
  font: 400 17px / 1 var(--f-poster); font-stretch: 92%;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: #d81e3a; border-radius: 5px;
}
.onair i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.radio-like, .radio-size, .radio-off {
  all: unset;
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  transition: background .15s;
}
.radio-like:hover, .radio-size:hover, .radio-off:hover { background: rgba(255, 255, 255, .12); }
.radio-like:focus-visible, .radio-size:focus-visible, .radio-off:focus-visible { outline: 3px solid var(--yellow); }
.radio-size svg, .radio-off svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.radio-like .ico-heart { width: 22px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.radio-like[aria-pressed="true"] .ico-heart { fill: var(--heart); stroke: var(--heart); animation: bump .45s cubic-bezier(.3, 1.9, .5, 1); }

.radio-act {
  all: unset;
  display: block; max-width: 100%; margin-top: 8px;
  font: 400 34px / .95 var(--f-poster); font-stretch: 85%;
  letter-spacing: .012em;
  color: var(--c, var(--yellow));
  overflow-wrap: anywhere;
  cursor: pointer;
}
.radio-act:hover { filter: brightness(1.2); }
.radio-act:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.radio-song {
  margin: 3px 0 10px;
  font: 600 18px / 1.2 var(--f-ui);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio-media { border-radius: 12px; overflow: hidden; background: #000; }
.radio-media iframe { display: block; width: 100%; border: 0; }
.radio[data-source="spotify"] .radio-media { height: 80px; background: #2a2068; }
.radio[data-source="youtube"] .radio-media { aspect-ratio: 16 / 9; }
.radio[data-source="apple"] .radio-media { height: 80px; background: #2a2068; }
.radio-apple { display: flex; align-items: center; gap: 12px; height: 100%; padding: 8px; }
.radio-apple img { flex: none; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--navy); }
.radio-apple span { font: 600 17px / 1 var(--f-ui); color: rgba(248, 241, 225, .8); }
.radio-apple button {
  all: unset;
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--ink); background: var(--cream); border-radius: 50%; cursor: pointer;
}
.radio-apple button::before {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
}
.radio-apple button[data-state="playing"]::before {
  width: 13px; height: 16px; margin: 0;
  border: 0; border-left: 4.5px solid currentColor; border-right: 4.5px solid currentColor;
}
.radio-src button[hidden] { display: none; }
.radio[data-source="youtube"] .radio-media iframe { height: 100%; }

.radio-note {
  margin: 9px 0 0;
  font: 500 15.5px / 1.3 var(--f-ui);
  color: rgba(248, 241, 225, .75);
}
.radio-note[hidden] { display: none; }
.radio-note button {
  all: unset;
  font-weight: 600;
  color: #5fe08c;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.radio-note button[hidden] { display: none; }
.radio-note button:hover { color: #8af0ad; }
.radio-note button:focus-visible { outline: 3px solid var(--yellow); border-radius: 3px; }

.radio-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.radio-next {
  min-width: 0;
  font: 400 17px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(248, 241, 225, .7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio-src { flex: none; display: flex; gap: 2px; }
.radio-src button {
  all: unset;
  display: grid; place-items: center; width: 34px; height: 30px;
  color: rgba(248, 241, 225, .55);
  border-radius: 7px; cursor: pointer;
}
.radio-src svg { width: 20px; height: 20px; fill: currentColor; }
.radio-src button:hover { color: var(--cream); }
.radio-src button:focus-visible { outline: 3px solid var(--yellow); }
.radio-src button[aria-pressed="true"] { color: var(--ink); background: var(--cream); }

/* Minimised: one line saying who's on, and the player itself. The switcher, the
   notes and "next" wait in the full view. YouTube's video stays on show at
   200px tall, the smallest its terms allow; hiding it isn't permitted. */
.radio.mini:not([hidden]) {
  left: auto; margin: 0;
  width: min(300px, calc(100vw - 16px));
  padding: 8px 9px 9px 10px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 7px 0;
}
.radio.mini .radio-head { display: contents; }
.radio.mini .radio-song, .radio.mini .radio-note, .radio.mini .radio-foot { display: none; }
.radio.mini .onair { grid-area: 1 / 1; gap: 0; margin: 0 8px 0 0; padding: 5px; font-size: 0; letter-spacing: 0; border-radius: 50%; }
.radio.mini .radio-act {
  grid-area: 1 / 2; min-width: 0; margin: 0; padding-top: 3px;
  font-size: 23px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radio.mini .radio-like, .radio.mini .radio-size, .radio.mini .radio-off { grid-row: 1; width: 30px; height: 30px; }
.radio.mini .radio-size svg { transform: rotate(180deg); }
.radio.mini .radio-media { grid-area: 2 / 1 / 3 / -1; border-radius: 10px; }
.radio.mini[data-source="youtube"] .radio-media { aspect-ratio: auto; height: 200px; }

/* Apple Music has no embed to show, so it folds down to a single row. */
.radio.mini[data-source="apple"]:not([hidden]) { row-gap: 0; }
.radio.mini[data-source="apple"] .onair { display: none; }
.radio.mini[data-source="apple"] .radio-media { grid-area: 1 / 1 / 3 / 2; width: 48px; height: 48px; margin-right: 10px; border-radius: 8px; }
.radio.mini[data-source="apple"] .radio-act { align-self: end; font-size: 21px; }
.radio.mini[data-source="apple"] .radio-song { display: block; grid-area: 2 / 2; align-self: start; min-width: 0; margin: 2px 0 0; font-size: 15px; line-height: 1.15; }
.radio.mini[data-source="apple"] .radio-like, .radio.mini[data-source="apple"] .radio-size, .radio.mini[data-source="apple"] .radio-off { grid-row: 1 / 3; }
.radio.mini .radio-apple { position: relative; padding: 0; }
.radio.mini .radio-apple img { width: 48px; height: 48px; border-radius: 0; }
.radio.mini .radio-apple span { display: none; }
.radio.mini .radio-apple button { position: absolute; inset: 0; width: auto; height: auto; color: #fff; background: rgba(6, 3, 22, .5); border-radius: 0; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--lift, 0px) + env(safe-area-inset-bottom)); z-index: 40;
  padding: 9px 16px 7px;
  font: 400 21px / 1 var(--f-poster); font-stretch: 90%;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 9px;
  box-shadow: 0 4px 0 rgba(6, 3, 22, .75);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), opacity .2s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  :root { --mat: 0px; --frame: 30px; }
  .poster { border-left-width: 0; border-right-width: 0; border-image-width: var(--frame) 0; padding-bottom: 110px; }
  .wrap { padding: 0 14px; }

  .sheet { width: 100vw; margin: auto 0 0; }
  .sheet-card {
    max-height: 90dvh;
    padding: 16px 14px calc(12px + env(safe-area-inset-bottom));
    border-width: 20px 0 0; border-image-width: 20px 0 0;
    border-radius: 0;
  }
  .disc { width: 104px; height: 104px; }
  /* three across is too small on a phone: let the row slide sideways instead */
  .live-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none;
    margin-right: -14px; padding-right: 14px;
  }
  .live-row::-webkit-scrollbar { display: none; }
  .live-card { scroll-snap-align: start; }
  .sheet-head { gap: 12px; margin-bottom: 14px; }
  .dock-cta { display: none; }
  .dock-mix { padding-right: 16px; }
  .dock-meta { max-width: 46vw; }
  .mix-bar, .mix-save { justify-content: center; }
  .mix-save-label { width: 100%; margin: 0; text-align: center; }
  .t-link { width: 34px; }
}

/* On narrower screens the radio spans the bottom, so the floating bar sits on top of it. */
@media (max-width: 900px) {
  body.radio-on { --lift: calc(var(--radio-h, 300px) + 12px); }
  body.radio-on .poster { padding-bottom: calc(var(--radio-h, 300px) + 130px); }
  .radio { right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-width: 420px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Clashified (added by clashified/tools/import-posters.mjs) ---------- */

.fine {
  margin-top: clamp(40px, 6vw, 60px);
  font: 500 17px / 1.3 var(--f-ui);
  letter-spacing: .06em; text-transform: uppercase;
  text-align: center; color: rgba(248, 241, 225, .55);
}
.clashified { display: inline-flex; align-items: center; gap: .45em; color: inherit; text-decoration: none; }
.clashified img { width: 1.15em; height: 1.15em; border-radius: 3px; }
.clashified:hover, .clashified:focus-visible { color: var(--cream); }
