/* Primavera Sound 2027 lineup — the day-split poster as a web app */

:root {
  --paper: #ffffff;
  --ink: #1d1d1b;
  --ink-2: rgba(29, 29, 27, .64);
  --ink-3: rgba(29, 29, 27, .42);
  --heart: #e2493b;
  --coral: #c85c5a;
  --green: #4e9a6b;

  /* panels (song rows, boxes) */
  --panel: #f5f3ee;
  --panel-hover: #edeae3;
  --panel-line: #e3dfd6;
  --panel-deep: #ffffff;

  /* the poster's two voices: a heavy grotesque in capitals for the names, and the
     geometric sans of its wordmark, lower case, for dates and small print */
  --f-name: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-geo: 'Urbanist', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16.5px/1.3 var(--f-geo);
  -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(--ink); outline-offset: 3px; border-radius: 4px; }

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

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

.poster {
  position: relative;
  isolation: isolate;
  max-width: 1680px;
  margin: 0 auto;
  background: var(--paper);
  overflow-x: clip;
}

/* the dots round the edge (js/frame.js draws them to fit) */
.frame { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.frame svg { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .radio-on .frame circle { animation: dot-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .radio-on .frame circle:nth-child(3n) { animation-delay: -.9s; }
  .radio-on .frame circle:nth-child(3n+1) { animation-delay: -1.7s; }
}
@keyframes dot-pulse { 50% { transform: scale(.72); } }

/* The printed area sits inside the frame, as on the poster: 13% in from each side. */
.paper {
  --inset: max(34px, 12.9%);
  padding: max(56px, 6.9%) var(--inset) max(64px, 7.6%);
}

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

.masthead { text-align: center; }
.title svg { display: block; width: 95.5%; height: auto; margin: 0 auto; overflow: visible; }
.title-place, .title-dates { font-family: var(--f-geo); font-size: 28.8px; fill: var(--ink); }
.title-place { font-weight: 700; }
.title-dates { font-weight: 300; }

/* ---------- radio button + hint (where the poster has its sponsors) ---------- */

.controls {
  display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.4vw, 18px);
  margin: clamp(24px, 3.4%, 52px) 0 clamp(14px, 2%, 30px);
}

.tune {
  appearance: none;
  display: flex; align-items: center; gap: .6em;
  padding: .32em .34em .32em .9em;
  font: 600 clamp(17px, 1.6vw, 21px) / 1 var(--f-geo);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .14s, background .14s;
}
.tune:hover { transform: translateY(-1px); background: #faf8f3; }
.tune:active { transform: translateY(1px) scale(.98); }
.tune-name b { font-weight: 800; }
.tune-state {
  padding: .42em .85em .44em;
  font-weight: 700;
  color: var(--paper); background: var(--ink);
  border-radius: 999px;
}
.tune-dot { width: .56em; height: .56em; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(200, 92, 90, .6); }
.tune[aria-pressed="true"] .tune-dot { animation: onair 1.4s ease-out infinite; }
.tune[aria-pressed="true"] .tune-state { background: var(--coral); }
@keyframes onair { to { box-shadow: 0 0 0 .55em rgba(200, 92, 90, 0); } }

.hint {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .7em;
  font: 500 clamp(14px, 1.3vw, 16.5px) / 1.2 var(--f-geo);
  color: var(--ink-2);
}
.hint i { width: .42em; height: .42em; border-radius: 50%; background: var(--coral); }

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

.lineup { --big: 40px; min-height: 80vh; }
.lineup.is-ready { min-height: 0; }

.day { scroll-margin-top: 16px; }
.day + .day { margin-top: calc(var(--big) * .4); }
.is-flow .day + .day { margin-top: calc(var(--big) * .7); }

/* "03’jun" over a rule the width of the print */
.day-head {
  padding-bottom: .1em;
  font: 300 calc(var(--big) * .92) / 1 var(--f-geo);
  letter-spacing: -.01em;
  text-align: center;
  border-bottom: max(1.5px, calc(var(--big) * .028)) solid var(--ink);
}
.day-head b { font-weight: 700; letter-spacing: -.015em; }
.day-extra { font-size: .62em; font-weight: 400; letter-spacing: 0; }
.is-flow .day-extra { display: block; margin-top: .22em; font-size: .56em; }
.day-lines { padding-top: calc(var(--big) * .3); }
.is-flow .day-lines { padding-top: calc(var(--big) * .42); }

.line {
  display: flex; align-items: baseline; justify-content: center;
  white-space: nowrap;
  font-family: var(--f-name);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.022em;
  line-height: 1.1;
}
/* line spacing and the extra space where the print gets smaller, from the poster */
.line.t1, .line.t2 { line-height: .97; }
.line.t3 { line-height: 1.04; }
.line.t4 { line-height: 1.11; }
.line.t5 { line-height: 1.18; letter-spacing: -.015em; }
.line.tier-start.t3 { margin-top: .42em; }
.line.tier-start.t4 { margin-top: .28em; }
.line.tier-start.t5 { margin-top: .2em; }
.line.mini { line-height: 1.22; flex-wrap: nowrap; }

.lineup.is-flow .line { line-height: 1.28; }
.lineup.is-flow .line.t1, .lineup.is-flow .line.t2 { line-height: 1.14; }
.lineup.is-flow .line.tier-start { margin-top: .5em; }
/* a name too long for a phone's width wraps onto two lines of its own */
.line.wraps { white-space: normal; }
.line.wraps .act { white-space: normal; text-align: center; text-wrap: balance; }

.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;
}
.act:focus-visible { outline: 3px solid var(--ink); outline-offset: .06em; border-radius: .08em; }
@media (hover: hover) {
  .act:hover { color: var(--c); }
}
.act:active { transform: scale(.96); }
.act.is-liked { color: var(--c); }
.act.is-playing { animation: bob .9s ease-in-out infinite alternate; color: var(--c); }
@keyframes bob { to { transform: translateY(-.07em); } }

.sep { flex: none; margin: 0 .2em; }
.line.t4 .sep, .line.t5 .sep { margin: 0 .24em; }
.line.mini .sep { margin: 0 .22em; }

/* the poster's small print inside a name: a lowercase "x", a raised "b2b" */
.w { margin: 0 .24em; font-style: normal; text-transform: none; }
.w-up { margin: 0 .3em; font-size: .46em; vertical-align: .95em; text-transform: uppercase; letter-spacing: 0; }

/* "closing set", in the wordmark's light type, the whole line underlined */
.line-note { flex: none; margin-left: .32em; font: 300 .82em / 1 var(--f-geo); text-transform: none; letter-spacing: -.01em; }
.line.has-note { width: fit-content; margin-inline: auto; margin-top: .04em; padding-bottom: .04em; border-bottom: max(1.5px, .045em) solid var(--ink); }

.badge {
  position: absolute; right: -.16em; top: -.12em;
  width: .4em; height: .37em;
  fill: var(--heart); stroke: var(--paper); stroke-width: 2.6; stroke-linejoin: round; paint-order: stroke;
  overflow: visible;
  transform: rotate(14deg) scale(0);
  transition: transform .34s cubic-bezier(.3, 1.9, .5, 1);
  pointer-events: none;
}
.act.is-liked .badge { transform: rotate(14deg) scale(1); }

.footnote {
  margin-top: max(12px, calc(var(--big, 40px) * .5));
  font: 400 clamp(10px, .85vw, 13px) / 1.3 var(--f-geo);
  letter-spacing: .02em; text-transform: uppercase; text-align: right;
  color: var(--ink);
}

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

.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .6em 1.15em .62em;
  font: 700 18px / 1 var(--f-geo);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .14s, background .14s, color .14s;
}
.btn:hover { transform: translateY(-1px); background: #f6f4ef; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { color: var(--paper); background: var(--ink); }
.btn-primary:hover { background: #33332f; }
.btn-small { font-size: 16px; padding: .55em .95em .57em; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-spotify svg { fill: #1db954; }
.btn-apple svg { fill: #fa2d48; }
.btn[disabled] { opacity: .6; cursor: progress; }

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

.mix { padding: clamp(40px, 6vw, 80px) 0 150px; text-align: center; scroll-margin-top: 20px; }

/* "your lineup" in the wordmark's two weights */
.mix-title {
  font: 300 clamp(44px, 8cqw, 92px) / .95 var(--f-geo);
  letter-spacing: -.035em;
}
.mix-title b { font-weight: 800; }

.mini-lineup {
  margin: clamp(16px, 2.6cqw, 28px) auto 0;
  max-width: 920px;
}
.mini-lineup .empty { font: 500 16px / 1.2 var(--f-geo); color: var(--ink-3); }

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

.seg { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; border: 0; }
.seg legend { float: left; padding: 0; margin-right: 10px; font: 600 17px / 1 var(--f-geo); color: var(--ink-2); }
.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 18px / 1 var(--f-name);
  color: var(--ink);
  border-radius: 50%;
  transition: background .15s, color .15s, transform .15s;
}
/* songs per act: four of the poster's dots */
.seg-dots label:nth-of-type(1) span { background: #e9e17f; }
.seg-dots label:nth-of-type(2) span { background: #e9c8dd; }
.seg-dots label:nth-of-type(3) span { background: #cfc2dc; }
.seg-dots label:nth-of-type(4) span { background: #e5dabc; }
.seg-dots label:hover span { transform: scale(1.06); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:disabled + span { opacity: .38; }
.seg input:disabled { cursor: default; }
.seg-words span {
  width: auto; height: 38px; padding: 0 15px 1px;
  font: 700 16px / 1 var(--f-geo); white-space: nowrap;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.mix-out { max-width: 720px; margin: clamp(26px, 4cqw, 42px) 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 22px / 1 var(--f-geo); letter-spacing: -.01em; }
.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(--ink);
}
.mix-save-label { margin-right: 4px; font: 600 17px / 1 var(--f-geo); color: var(--ink-2); }

.how {
  display: grid; justify-items: start; gap: 10px;
  margin-bottom: 16px; padding: 14px 16px 15px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.how[hidden] { display: none; }
.how-title { font: 800 20px / 1.1 var(--f-geo); letter-spacing: -.01em; }
.how-steps {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font: 600 16.5px / 1.25 var(--f-geo);
}
.how-steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; }
.how-steps li::before {
  content: counter(step);
  flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  font: 800 13px / 1 var(--f-name);
  border-radius: 50%;
}
.how-steps li:nth-child(1)::before { background: #e9e17f; }
.how-steps li:nth-child(2)::before { background: #e9c8dd; }
.how-steps li:nth-child(3)::before { background: #cfc2dc; }
.how-text { font: 500 16.5px / 1.3 var(--f-geo); }
.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 200px; }
.how-text b { font-weight: 800; }
.how-note { font: 500 14.5px / 1.25 var(--f-geo); color: var(--ink-2); }
.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(--ink); }
.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; }

.fine {
  margin-top: 64px;
  font: 500 13.5px / 1.4 var(--f-geo);
  text-align: center; color: var(--ink-3);
}

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

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

.track {
  --c: var(--ink);
  position: relative;
  display: flex; align-items: center;
  background: var(--panel);
  border: 1.5px solid var(--panel-line);
  border-radius: 12px;
  overflow: hidden;
  transition: background .15s, border-color .15s;
}
.track:hover { background: var(--panel-hover); }
.track.is-current { background: color-mix(in srgb, var(--c) 10%, var(--paper)); border-color: var(--c); }

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

.cover {
  position: relative; flex: none;
  width: 48px; height: 48px;
  border-radius: 8px; overflow: hidden;
  background: var(--panel-line);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: rgba(29, 29, 27, .3); transition: background .15s; }
.track.is-current .cover::after { background: rgba(29, 29, 27, .55); }

.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, .45));
}
.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, .35); 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: 700 17.5px / 1.15 var(--f-geo);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-sub {
  font: 500 14.5px / 1.2 var(--f-geo);
  color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-sub b { font-weight: 700; color: var(--c); }
.t-time {
  flex: none; padding: 0 6px;
  font: 600 14px / 1 var(--f-geo);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.track.is-current .t-time { color: var(--ink); }

.t-link {
  flex: none; display: grid; place-items: center;
  width: 40px; align-self: stretch;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s;
}
.t-link:hover { color: var(--ink); }
.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.6em; margin-right: -4px;
  font: 800 15px / 1 var(--f-name);
  text-align: center;
  color: var(--ink-3);
}

.note {
  padding: 18px 8px;
  font: 600 17px / 1.2 var(--f-geo);
  text-align: center;
  color: var(--ink-3);
}

/* ---------- 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(--paper);
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(29, 29, 27, .28);
  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(255, 255, 255, .2);
  cursor: pointer;
}
.dock-now[hidden] { display: none; }
.dock-now:focus-visible { outline: 3px solid var(--paper); outline-offset: -4px; border-radius: 999px; }
.dock-now .pp {
  position: relative; inset: auto; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
}
.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: 700 15.5px / 1.15 var(--f-geo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta span { font: 500 13.5px / 1.15 var(--f-geo); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dock-mix {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px 9px 15px;
  font: 800 18px / 1 var(--f-geo);
  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; font-weight: 700; border-left: 1.5px solid rgba(255, 255, 255, .2); }

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

.sheet {
  width: min(700px, calc(100vw - 28px));
  max-width: none; max-height: none;
  margin: auto; padding: 0;
  color: var(--ink);
  background: none; border: 0;
  overflow: visible;
}
.sheet::backdrop { background: rgba(29, 29, 27, .5); 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(--ink);
  position: relative;
  max-height: calc(100dvh - 24px);
  padding: 22px 22px 12px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 22px;
  outline: 0;
  box-shadow: 0 26px 70px rgba(29, 29, 27, .35);
}

.sheet-close {
  all: unset;
  position: absolute; right: 8px; top: 8px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  transition: background .15s;
}
.sheet-close:hover { background: var(--panel); }
.sheet-close:focus-visible { outline: 3px solid var(--ink); }
.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: 18px; padding-right: 32px; margin-bottom: 16px; }

/* the act's photo in a ring of the poster's dots, which turns while their song plays */
.disc { position: relative; flex: none; width: 132px; height: 132px; }
.disc-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 18s 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: 15%;
  width: 70%; height: 70%;
  border-radius: 50%; object-fit: cover;
  background: var(--panel);
}
.disc.no-photo .disc-photo { visibility: hidden; }

.sheet-id { min-width: 0; flex: 1; }
.sheet-slot {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 14.5px / 1.2 var(--f-geo);
  text-decoration: none;
  color: var(--ink-2);
}
.sheet-slot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sheet-slot:hover { color: var(--ink); }
.sheet-name {
  margin-top: 6px;
  font: 800 clamp(30px, 6.6vw, 46px) / .98 var(--f-name);
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sheet-name.is-long { font-size: clamp(25px, 5.4vw, 36px); }
.sheet-name.is-longer { font-size: clamp(21px, 4.4vw, 28px); }

/* what they sound like */
.sheet-vibe {
  margin-top: 7px;
  font: 500 16.5px / 1.25 var(--f-geo);
  color: var(--ink-2);
}
.sheet-vibe[hidden] { display: none; }

/* 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: 12px; }

.like {
  all: unset;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 8px 12px;
  font: 700 17px / 1 var(--f-geo);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}
.like:hover { background: var(--panel); }
.like:active { transform: scale(.94); }
.like:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.like .ico-heart {
  width: 22px; height: 20px;
  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: 14px; padding-top: 16px;
  /* a row of the poster's dots in place of a rule */
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='8'><circle cx='7.0' cy='4' r='3.5' fill='%23e9e17f'/><circle cx='21.0' cy='4' r='3.5' fill='%2321283a'/><circle cx='35.0' cy='4' r='3.5' fill='%233c2515'/><circle cx='49.0' cy='4' r='3.5' fill='%231b4472'/><circle cx='63.0' cy='4' r='3.5' fill='%23e9c8dd'/><circle cx='77.0' cy='4' r='3.5' fill='%23efe5a0'/><circle cx='91.0' cy='4' r='3.5' fill='%23c85c5a'/><circle cx='105.0' cy='4' r='3.5' fill='%236e533e'/><circle cx='119.0' cy='4' r='3.5' fill='%23507e7b'/><circle cx='133.0' cy='4' r='3.5' fill='%23a29d63'/><circle cx='147.0' cy='4' r='3.5' fill='%23cfc2dc'/><circle cx='161.0' cy='4' r='3.5' fill='%23e5dabc'/><circle cx='175.0' cy='4' r='3.5' fill='%237d9a95'/><circle cx='189.0' cy='4' r='3.5' fill='%23576d82'/><circle cx='203.0' cy='4' r='3.5' fill='%2394466e'/><circle cx='217.0' cy='4' r='3.5' fill='%235775a9'/><circle cx='231.0' cy='4' r='3.5' fill='%235f3634'/><circle cx='245.0' cy='4' r='3.5' fill='%23d75931'/><circle cx='259.0' cy='4' r='3.5' fill='%234e9a6b'/><circle cx='273.0' cy='4' r='3.5' fill='%23c85c5a'/></svg>") 0 0 / auto 8px repeat-x;
}
.hop {
  all: unset;
  min-width: 0; padding: 6px 2px;
  font: 800 16px / 1 var(--f-name);
  letter-spacing: -.015em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
  transition: color .15s;
}
.hop:hover { color: var(--c); }
.hop:focus-visible { outline: 3px solid var(--ink); border-radius: 4px; }
.hop-prev::before { content: '‹ '; color: var(--ink-3); }
.hop-next { text-align: right; }
.hop-next::after { content: ' ›'; color: var(--ink-3); }
.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 15px / 1 var(--f-geo);
  color: var(--ink-2);
  text-decoration: none;
}
.sheet-links svg { flex: none; width: 19px; height: 19px; fill: currentColor; }
.sheet-links a:hover { color: var(--ink); }
.sheet-links a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

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

.live { margin-top: 16px; }
.live[hidden] { display: none; }
.live-title { margin: 0 0 8px; font: 800 20px / 1 var(--f-geo); letter-spacing: -.01em; }
.live-player {
  margin-bottom: 10px;
  aspect-ratio: 16 / 9;
  background: #000; border-radius: 12px; 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(--ink); outline-offset: 2px; border-radius: 9px; }
.live-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel); border-radius: 10px; 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(29, 29, 27, .22); transition: background .15s; }
.live-card:hover .live-thumb::after { background: rgba(29, 29, 27, .06); }
.live-card.is-current .live-thumb { border-color: var(--c); }
.live-card.is-current .pp { display: none; }
.live-tag {
  justify-self: start;
  padding: 3px 8px 4px;
  font: 700 12.5px / 1 var(--f-geo);
  border: 1.5px solid var(--ink-3); border-radius: 999px;
}
.live-tag.is-fest { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.live-name {
  font: 500 14.5px / 1.2 var(--f-geo);
  color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

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

/* the one dark object on the page: a little set, ink on the paper */
.radio {
  --c: var(--paper);
  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(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(29, 29, 27, .35);
  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 6px 9px;
  font: 700 14px / 1 var(--f-geo);
  color: #fff; background: var(--coral); border-radius: 999px;
}
.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(--paper); }
.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: 9px;
  font: 800 26px / .98 var(--f-name);
  letter-spacing: -.02em; text-transform: uppercase;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.radio-act:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.radio-act:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; border-radius: 4px; }
.radio-song {
  margin: 4px 0 10px;
  font: 600 16.5px / 1.2 var(--f-geo);
  color: rgba(255, 255, 255, .82);
  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: #2c2c29; }
.radio[data-source="youtube"] .radio-media { aspect-ratio: 16 / 9; }
.radio[data-source="apple"] .radio-media { height: 80px; background: #2c2c29; }
.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: #3a3a36; }
.radio-apple span { font: 600 15.5px / 1 var(--f-geo); color: rgba(255, 255, 255, .8); }
.radio-apple button {
  all: unset;
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--ink); background: var(--paper); 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 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin: 9px 0 0;
  font: 600 14.5px / 1.3 var(--f-geo);
  color: rgba(255, 255, 255, .72);
}
.radio-note[hidden] { display: none; }
.radio-note button {
  all: unset;
  font-weight: 700;
  color: #7fd39c;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.radio-note button[hidden] { display: none; }
.radio-note button:hover { color: #a6e6bc; }
.radio-note button:focus-visible { outline: 3px solid var(--paper); 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: 600 14px / 1.1 var(--f-geo);
  color: rgba(255, 255, 255, .66);
  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(255, 255, 255, .5);
  border-radius: 8px; cursor: pointer;
}
.radio-src svg { width: 20px; height: 20px; fill: currentColor; }
.radio-src button:hover { color: var(--paper); }
.radio-src button:focus-visible { outline: 3px solid var(--paper); }
.radio-src button[aria-pressed="true"] { color: var(--ink); background: var(--paper); }

/* Minimised: one line saying who's on, and the player itself. 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; border-radius: 50%; }
.radio.mini .radio-act {
  grid-area: 1 / 2; min-width: 0; margin: 0; padding-top: 2px;
  font-size: 21px; 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: 20px; }
.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(29, 29, 27, .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 11px;
  font: 700 16px / 1 var(--f-geo);
  color: var(--paper); background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(29, 29, 27, .3);
  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: 699px) {
  .paper { --inset: 30px; padding: 50px var(--inset) 52px; }
  .day-head { font-size: max(22px, calc(var(--big) * .78)); }
  .footnote { text-align: center; font-size: 10.5px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }

  .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: 13px; 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 .mix { padding-bottom: calc(var(--radio-h, 300px) + 150px); }
  .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 { text-decoration: underline; }
