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

:root {
  --night: #261f28;
  --plum: #3a2d38;
  --ink: #1b141b;
  --cream: #f7f1ea;
  --dot: #e8a487;
  --brush: #6a4a5b;
  --sun: #f6a66b;
  --gold: #f7c98b;
  --lawn: #3f9431;
  --heart: #ff5a76;

  /* panels (song rows, boxes): plum on the dusk-coloured cards, deep green down on the lawn */
  --panel: #2d222c;
  --panel-hover: #3a2c38;
  --panel-line: #4d3b49;
  --panel-deep: #241a23;

  /* One family throughout, as on the poster: condensed and heavy for names, wide for the small print. */
  --f-poster: 'Archivo', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
  --f-ui: 'Archivo', system-ui, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: #0f2a13;
  color: var(--cream);
  font: 500 16.5px/1.3 var(--f-ui);
  font-stretch: 84%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
p, h1, h2, h3 { 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(--gold); outline-offset: 3px; border-radius: 4px; }

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

.poster { position: relative; isolation: isolate; overflow-x: clip; }

/* The sky: night at the top, falling through plum and dusty rose to the last of the
   sunset on the horizon. As on the poster it is darker to the right, warmer low on
   the left, with a little paper grain over all of it. */
.dusk {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    url(../assets/grain.png) 0 0 / 220px,
    linear-gradient(100deg, rgba(23, 16, 24, 0) 46%, rgba(23, 16, 24, .5) 100%),
    radial-gradient(70% 34% at 0% 78%, rgba(226, 150, 118, .34), rgba(226, 150, 118, 0) 100%),
    linear-gradient(180deg, #2a232c 0, #3a2f38 14%, #54434a 34%, #7b5d5b 56%, #a57466 78%, #c27c66 94%, #c9805f 100%);
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 36px);
  container-type: inline-size;
}

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

.masthead { padding-top: clamp(18px, 3cqw, 34px); text-align: center; }

.presents {
  font: 500 clamp(9px, 1.25cqw, 13px) / 1 var(--f-ui);
  font-stretch: 125%;
  letter-spacing: .34em; text-transform: uppercase;
  color: rgba(247, 241, 234, .82);
}
.title { margin-top: clamp(10px, 1.6cqw, 18px); }
.title img { display: block; width: clamp(250px, 44cqw, 520px); height: auto; margin: 0 auto; }
.strap {
  margin-top: clamp(7px, 1.1cqw, 12px);
  font: 700 clamp(10.5px, 1.55cqw, 17px) / 1 var(--f-poster);
  font-stretch: 62%;
  letter-spacing: .3em; text-transform: uppercase;
  text-indent: .3em;
}
.place {
  display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.3cqw, 14px);
  margin-top: clamp(10px, 1.6cqw, 18px);
  font-stretch: 125%; text-transform: uppercase; line-height: 1;
}
.place span { display: grid; gap: .22em; }
.place span:first-child { text-align: right; }
.place span:last-child { text-align: left; }
.place b { font-weight: 400; font-size: clamp(17px, 2.5cqw, 27px); letter-spacing: .24em; margin-right: -.24em; }
.place span:last-child b { font-size: clamp(12.5px, 1.75cqw, 19px); letter-spacing: .32em; }
.place i { font-style: normal; font-weight: 400; font-size: clamp(8.5px, 1.15cqw, 12.5px); letter-spacing: .36em; margin-right: -.36em; }
.place img { width: clamp(32px, 4.4cqw, 48px); height: auto; }

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

.tune {
  appearance: none;
  display: flex; align-items: center; gap: .6em;
  margin: clamp(20px, 3.2cqw, 34px) auto 0;
  padding: .36em .42em .36em .9em;
  font: 800 clamp(17px, 2.1cqw, 21px) / 1 var(--f-poster);
  font-stretch: 68%;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(20, 12, 20, .35);
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s;
}
.tune:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 9px 22px rgba(20, 12, 20, .4); }
.tune:active { transform: translateY(1px) scale(.98); }
.tune b {
  padding: .46em .8em .42em;
  font-weight: 800;
  color: var(--cream); background: var(--ink);
  border-radius: 999px;
}
.tune-dot { width: .52em; height: .52em; border-radius: 50%; background: #e03a4e; box-shadow: 0 0 0 0 rgba(224, 58, 78, .6); }
.tune[aria-pressed="true"] .tune-dot { animation: onair 1.4s ease-out infinite; }
.tune[aria-pressed="true"] b { color: #fff; background: #e03a4e; }
@keyframes onair { to { box-shadow: 0 0 0 .55em rgba(224, 58, 78, 0); } }

.hint {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .6em;
  margin: clamp(14px, 2.2cqw, 20px) auto clamp(6px, 1.4cqw, 14px);
  font: 500 clamp(12.5px, 1.5cqw, 15px) / 1.2 var(--f-ui);
  font-stretch: 100%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 241, 234, .78);
}
.hint i { width: .34em; height: .34em; border-radius: 50%; background: var(--dot); }
@container (max-width: 520px) { .hint { flex-direction: column; } .hint i { display: none; } }

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

.lineup {
  font-family: var(--f-poster);
  font-weight: 800;
  color: #fff;
  min-height: 80vh;
}
.lineup.is-ready { min-height: 0; }

.day { margin-top: clamp(20px, 2.6cqw, 34px); scroll-margin-top: 14px; }

/* the day's label and its headliner share a row, on opposite sides */
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.day[data-side="left"] .day-head { flex-direction: row-reverse; }
.day[data-side="center"] .day-head { justify-content: center; }
.day-fri .day-head { align-items: flex-start; }
.day-sat .day-head { align-items: flex-end; }

.day-label {
  flex: none;
  margin: .2em 0 .25em -.3em;
  padding: .52em 1.9em .46em 1.7em;
  font: 800 clamp(16px, 2.05cqw, 25px) / 1 var(--f-poster);
  font-stretch: 62%;
  letter-spacing: .035em; text-transform: uppercase; white-space: nowrap;
  color: #fff;
  background: url(../assets/brush-a.svg) 50% 50% / 100% 100% no-repeat;
}
.day-sat .day-label { margin: .2em -.3em .5em 0; background-image: url(../assets/brush-b.svg); transform: scaleX(-1); }
.day-sat .day-label span { display: block; transform: scaleX(-1); }
.day-sun .day-label { background-image: url(../assets/brush-b.svg); }
.day-label i { font-style: normal; font-weight: 300; font-size: .72em; font-stretch: 90%; }

.line {
  display: flex; align-items: baseline; justify-content: center;
  white-space: nowrap;
  line-height: 1.17;
  font-stretch: 62%;
}
.day[data-side="right"] .line { justify-content: flex-end; }
.day[data-side="left"] .line { justify-content: flex-start; }
.day[data-side="center"] .line { justify-content: center; }

/* the further down the bill, the wider and airier the poster sets the type */
.line.t1 { line-height: .98; letter-spacing: -.004em; }
.line.t2 { letter-spacing: -.006em; }
.line.t3 { font-stretch: 66%; }
.line.t4 { font-stretch: 72%; font-weight: 700; letter-spacing: .012em; line-height: 1.26; color: rgba(255, 255, 255, .93); }
.line.mini { font-stretch: 64%; line-height: 1.2; }
.lineup.is-flow .line { line-height: 1.3; }
.lineup.is-flow .line.t1 { line-height: 1.02; }
.lineup.is-flow .line.has-note { margin-top: .5em; }
.day-top { flex: none; }

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

/* the poster's small joining words: "de", "of", "&", "x", and a "the" tucked above the name */
.w {
  display: inline-block; margin: 0 .34em;
  font: 300 .5em / 1 var(--f-ui); font-stretch: 92%; font-style: normal;
  letter-spacing: 0; text-transform: none;
  opacity: .92;
}
.w-up { position: absolute; left: .34em; top: -.34em; margin: 0; }
.w-stack { display: inline-grid; gap: .05em; margin: 0 .5em; font-size: .36em; transform: translateY(-1.05em); }
.w-lead { margin-left: 0; }
.w-stack b { font-weight: 300; }
.act-note {
  position: absolute; left: 28%; bottom: 84%;
  font: 300 .31em / .98 var(--f-ui); font-stretch: 96%;
  letter-spacing: .02em; text-transform: uppercase; text-align: left; white-space: nowrap;
  color: rgba(255, 255, 255, .9);
  pointer-events: none;
}

.badge {
  position: absolute; right: -.15em; top: .02em;
  width: .36em; height: .33em;
  fill: var(--heart); stroke: #fff6ee; 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(27, 20, 27, .6));
  pointer-events: none;
}
.act.is-liked .badge { transform: rotate(14deg) scale(1); }
.act .act-note ~ .badge { right: -.1em; }

.sep {
  flex: none; align-self: baseline; /* an empty box sits on the baseline: lift it to the middle of the lowercase */
  width: .15em; height: .15em; margin: 0 .145em;
  border-radius: 50%; background: var(--dot);
  transform: translateY(-.2em);
}
.line.t3 .sep { margin: 0 .155em; }
.line.t4 .sep { margin: 0 .215em; }
.line.mini .sep { margin: 0 .175em; }

/* Daddy Yankee, alone in the desert under the three days */
.day-special { margin-top: clamp(26px, 3.4cqw, 44px); text-align: center; }
.day-special .line.t1 { color: rgba(255, 255, 255, .9); }
.special-note {
  margin-top: .5em;
  font: 300 clamp(12px, 1.5cqw, 18px) / 1 var(--f-ui); font-stretch: 100%;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

/* ---------- the valley ---------- */

/* Two layers, so the mountains can sit a little behind the palms. Where the browser
   supports scroll-driven animation the far layer drifts a few pixels as the scene
   crosses the screen; that runs on the compositor, so it costs nothing while scrolling. */
.desert {
  position: relative;
  height: clamp(180px, 25vw, 480px);
  margin-top: clamp(4px, 1vw, 16px);
  overflow: hidden;
  pointer-events: none;
}
.desert i { position: absolute; inset: 0; background: 50% 100% / cover no-repeat; }
.desert .desert-far { background-image: url(../assets/mountains.webp); transform-origin: 50% 100%; }
.desert .desert-near { background-image: url(../assets/palms.webp); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .desert-far { animation: far-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes far-drift { from { transform: translate3d(0, 7%, 0) scale(1.05); } to { transform: translate3d(0, 0, 0) scale(1.05); } }

/* ---------- the lawn ---------- */

.lawn {
  position: relative;
  padding-bottom: 130px;
  background:
    url(../assets/grain.png) 0 0 / 220px,
    linear-gradient(180deg, #45a034 0, #3a8f2f 60px, #2a7128 230px, #1b4f1f 520px, #123a18 900px, #0f2a13 1500px);
  --panel: rgba(9, 30, 12, .62);
  --panel-hover: rgba(9, 30, 12, .8);
  --panel-line: rgba(232, 255, 220, .17);
  --panel-deep: rgba(6, 22, 9, .82);
}

.runner {
  position: absolute; right: clamp(16px, 9vw, 150px); top: clamp(10px, 1.6vw, 22px);
  width: clamp(46px, 6vw, 84px); height: auto;
  fill: #b78d5f;
}
.runner-tail { fill: #4a3524; }

.bunker {
  padding-top: clamp(24px, 3.4cqw, 46px);
  font: 800 clamp(13px, 2.15cqw, 25px) / 1.15 var(--f-ui); font-stretch: 125%;
  letter-spacing: .02em; text-transform: uppercase; text-align: center; text-wrap: balance;
  color: rgba(255, 255, 255, .92);
}
.bunker span {
  display: block; margin-bottom: .3em;
  font-weight: 400; font-size: .64em; letter-spacing: .1em; text-transform: none;
  color: rgba(255, 255, 255, .82);
}
.bunker b { font-weight: inherit; }
.bunker i { font-style: normal; font-weight: 400; }
.bunker .act { font-stretch: 125%; }
.bunker .badge { right: -.3em; top: -.25em; width: .5em; height: .46em; }

.fine {
  margin-top: 60px;
  font: 400 13.5px / 1.4 var(--f-ui); font-stretch: 96%;
  text-align: center; color: rgba(247, 241, 234, .5);
}

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

.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .62em 1.15em .58em;
  font: 800 19px / 1 var(--f-poster);
  font-stretch: 68%;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(10, 20, 10, .3);
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, filter .14s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(10, 20, 10, .34); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--sun); }
.btn-small { font-size: 15.5px; padding: .62em 1em .58em; }
.btn[disabled] { opacity: .6; cursor: progress; }

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

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

.mix-title {
  font: 800 clamp(22px, 4.2cqw, 40px) / 1.1 var(--f-ui);
  font-stretch: 125%;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}
.mix-title b { color: var(--gold); font-weight: inherit; }
.mix { padding-top: clamp(46px, 7cqw, 86px); }

.mini-lineup {
  margin: clamp(14px, 2.6cqw, 24px) auto 0;
  max-width: 900px;
  font-family: var(--f-poster); font-weight: 800;
  color: #fff;
}
.mini-lineup .empty {
  font: 500 clamp(13px, 1.6cqw, 15.5px) / 1.2 var(--f-ui);
  font-stretch: 100%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .75;
}

.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: 800 17px / 1 var(--f-poster); font-stretch: 66%;
  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: 800 18.5px / 1 var(--f-poster);
  color: var(--cream);
  border: 2px solid rgba(247, 241, 234, .35);
  border-radius: 50%;
  transition: background .15s, color .15s, border-color .15s;
}
.seg input:checked + span { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.seg input:disabled + span { opacity: .38; }
.seg input:disabled { cursor: default; }
.seg-words span {
  width: auto; padding: 1px 15px 0;
  font-size: 16px; font-stretch: 68%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  border-radius: 999px;
}
.seg input:focus-visible + span { outline: 3px solid var(--gold); 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: 800 21px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gold);
}
.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 var(--panel-line);
}
.mix-save-label {
  margin-right: 4px;
  font: 800 17px / 1 var(--f-poster); font-stretch: 66%;
  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: var(--panel);
  border: 1.5px solid var(--gold);
  border-radius: 11px;
}
.how[hidden] { display: none; }
.how-title {
  font: 800 20px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gold);
}
.how-steps {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: 6px;
  font: 500 17px / 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: 800 13.5px / 1 var(--f-poster);
  color: var(--ink); background: var(--gold); border-radius: 50%;
  transform: translateY(2px);
}
.how-text { font: 500 17px / 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: var(--gold); }
.how-text code { font: 500 15px / 1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold); overflow-wrap: anywhere; }
.how-note { font: 500 14.5px / 1.25 var(--f-ui); color: rgba(247, 241, 234, .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(--gold);
  position: relative;
  display: flex; align-items: center;
  background: var(--panel);
  border: 1.5px solid var(--panel-line);
  border-radius: 11px;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.track:hover { background: var(--panel-hover); }
.track.is-current { background: color-mix(in srgb, var(--c) 20%, var(--panel-deep)); border-color: color-mix(in srgb, var(--c) 80%, var(--panel-deep)); }

.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(--gold); outline-offset: -3px; border-radius: 10px; }

.cover {
  position: relative; flex: none;
  width: 48px; height: 48px;
  border-radius: 7px; overflow: hidden;
  background: var(--plum);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: rgba(27, 20, 27, .38); transition: background .15s; }
.track.is-current .cover::after { background: rgba(27, 20, 27, .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 17.5px / 1.15 var(--f-ui);
  letter-spacing: .01em;
  color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-sub {
  font: 500 14.5px / 1.2 var(--f-ui);
  letter-spacing: .02em;
  color: rgba(247, 241, 234, .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 14px / 1 var(--f-ui);
  font-variant-numeric: tabular-nums;
  color: rgba(247, 241, 234, .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(247, 241, 234, .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: 800 17px / 1 var(--f-poster);
  text-align: center;
  color: rgba(247, 241, 234, .45);
}

.note {
  padding: 18px 8px;
  font: 800 17px / 1.2 var(--f-poster); font-stretch: 66%;
  letter-spacing: .05em; text-transform: uppercase; text-align: center;
  color: rgba(247, 241, 234, .7);
}

.skeleton { height: 65px; border-radius: 11px; background: var(--panel); 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: var(--panel-hover); } }

/* ---------- 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(--cream);
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px rgba(27, 20, 27, .18), 0 10px 30px rgba(12, 7, 12, .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: 1.5px solid rgba(27, 20, 27, .2);
  cursor: pointer;
}
.dock-now[hidden] { display: none; }
.dock-now:focus-visible { outline: 3px solid var(--night); 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(--cream);
}
.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 15.5px / 1.1 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta span { font: 500 13.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: 800 18.5px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: inherit;
  border-radius: 999px;
}
.dock-mix .ico-heart { width: 20px; height: 18px; fill: var(--heart); stroke: var(--heart); 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: 1.5px solid rgba(27, 20, 27, .2); }

/* ---------- 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(18, 11, 18, .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(--gold);
  position: relative;
  max-height: calc(100dvh - 24px); /* as tall as the window allows, so it only scrolls when it must */
  padding: 22px 22px 12px;
  overflow-y: auto; overscroll-behavior: contain;
  background:
    url(../assets/grain.png) 0 0 / 220px,
    linear-gradient(168deg, #2b232c 0, #3d3039 38%, #5a444a 74%, #76544f 100%);
  border-radius: 22px;
  outline: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .13), 0 26px 70px rgba(12, 7, 12, .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(--gold); }
.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(--plum);
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c) 80%, #fff);
}
.disc.no-photo .disc-photo { visibility: hidden; }

.sheet-id { min-width: 0; flex: 1; }
.sheet-name {
  font: 800 clamp(31px, 7.4vw, 50px) / .96 var(--f-poster);
  font-stretch: 62%;
  letter-spacing: 0;
  color: var(--c);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sheet-name.is-long { font-size: clamp(24px, 5.6vw, 36px); }

/* 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 16px / 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; width: fit-content; margin-top: 9px;
  font: 500 13.5px / 1.25 var(--f-ui); font-stretch: 100%;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: rgba(247, 241, 234, .82);
}
.sheet-slot[hidden] { display: none; }
.sheet-slot:hover { color: var(--cream); }

/* 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: 800 17.5px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream);
  border: 2px solid rgba(247, 241, 234, .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(--gold); 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: 800 17px / 1 var(--f-poster); font-stretch: 66%;
  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(--gold); 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 14.5px / 1 var(--f-ui);
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(247, 241, 234, .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(--gold); 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: 800 18.5px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
}
.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(--gold); outline-offset: 2px; border-radius: 9px; }
.live-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: var(--plum); border-radius: 9px; overflow: hidden;
  border: 1.5px solid var(--panel-line);
  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(27, 20, 27, .28); transition: background .15s; }
.live-card:hover .live-thumb::after { background: rgba(27, 20, 27, .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: 800 12px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream); border: 1.5px solid rgba(247, 241, 234, .4); border-radius: 5px;
}
.live-tag.is-fest { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.live-name {
  font: 500 14.5px / 1.2 var(--f-ui);
  color: rgba(247, 241, 234, .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: url(../assets/grain.png) 0 0 / 220px, linear-gradient(165deg, #2b232c, #43343c);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 0 18px 44px rgba(12, 7, 12, .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: 800 13.5px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: #e03a4e; 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(--gold); }
.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: 800 27px / .95 var(--f-poster); font-stretch: 66%;
  letter-spacing: .012em;
  color: var(--c, var(--gold));
  overflow-wrap: anywhere;
  cursor: pointer;
}
.radio-act:hover { filter: brightness(1.2); }
.radio-act:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.radio-song {
  margin: 3px 0 10px;
  font: 600 16.5px / 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: #3a2d38; }
.radio[data-source="youtube"] .radio-media { aspect-ratio: 16 / 9; }
.radio[data-source="apple"] .radio-media { height: 80px; background: #3a2d38; }
.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(--night); }
.radio-apple span { font: 600 15.5px / 1 var(--f-ui); color: rgba(247, 241, 234, .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 14.5px / 1.3 var(--f-ui);
  color: rgba(247, 241, 234, .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(--gold); 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: 800 13.5px / 1 var(--f-poster); font-stretch: 66%;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(247, 241, 234, .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(247, 241, 234, .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(--gold); }
.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(18, 11, 18, .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: 10px 18px 9px;
  font: 800 16px / 1 var(--f-poster); font-stretch: 68%;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(12, 7, 12, .45);
  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) {
  .wrap { padding-inline: 14px; }

  .sheet { width: 100vw; margin: auto 0 0; }
  .sheet-card {
    max-height: 90dvh;
    padding: 16px 14px calc(12px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 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 .lawn { 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 .clashified { display: inline-flex; align-items: center; gap: .4em; margin-top: .55em; color: inherit; text-decoration: none; }
.fine .clashified img { width: 1.2em; height: 1.2em; border-radius: 3px; }
.fine .clashified:hover, .fine .clashified:focus-visible { color: var(--cream); }
