:root {
  --accent: #1a4fd6;
  --bg: #ffffff;
  --text: #111111;
  --grey: #666666;
  --line: #dddddd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --text: #e8e8e8;
    --grey: #9a9a9a;
    --line: #333333;
  }
  a, button { color: color-mix(in srgb, var(--accent) 45%, #fff); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
body.has-bg { background: var(--bg-image) center / cover fixed; }
body.has-bg main { background: var(--bg); }

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

a { color: var(--accent); }
button {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.banner { display: block; width: 100%; max-height: 180px; object-fit: cover; margin-bottom: 20px; }

.top { display: flex; gap: 16px; align-items: flex-start; }
.pfp { flex: none; width: 96px; height: 96px; object-fit: cover; }
h1 { margin: 0; font-size: 28px; }
.sub { margin: 2px 0 0; color: var(--grey); font-size: 14px; }
.clock b { font-weight: normal; }
.about { margin: 10px 0 0; }
.status { margin: 6px 0 0; color: var(--grey); }

.find { margin-top: 20px; }
.find p { margin: 4px 0; }
.copy { color: var(--text); }
.tip { display: none; color: var(--grey); text-decoration: none; }
.copy.done .tip { display: inline; }
.links { margin: 8px 0 0; padding-left: 20px; }

section { margin-top: 28px; }
h2 { margin: 0 0 6px; font-size: 18px; }

ul.plain, ul.notes { margin: 0; padding-left: 20px; }
ul.plain li, ul.notes li { margin: 2px 0; }
.notes .date { color: var(--grey); }
.more { margin-top: 4px; font-size: 14px; }

.beats { margin: 0; padding-left: 0; list-style: none; counter-reset: beat; }
.beats li { counter-increment: beat; padding: 5px 0; border-bottom: 1px solid var(--line); }
.beats li:first-child { border-top: 1px solid var(--line); }
.beats .player { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.beats .player::before { content: counter(beat) "."; color: var(--grey); min-width: 1.4em; font-size: 14px; }
.player .play { min-width: 3.2em; text-align: left; }
.player .title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player .prog { display: none; align-items: center; gap: 8px; }
.player.started .prog { display: inline-flex; }
.beats .player.started .prog { flex-basis: 100%; padding-left: calc(1.4em + 10px); }

table.rows { border-collapse: collapse; width: 100%; font-size: 15px; }
table.rows th, table.rows td { text-align: left; vertical-align: top; padding: 3px 12px 3px 0; border-bottom: 1px solid var(--line); }
table.rows th { font-weight: bold; white-space: nowrap; width: 1%; }
table.rows th:last-child + td.price, table.rows tr > th + td.price:last-child { width: auto; }
table.rows td.price { text-align: right; white-space: nowrap; padding-right: 0; font-variant-numeric: tabular-nums; }
table.rows tr.total th, table.rows tr.total td { border-bottom: 0; border-top: 2px solid var(--text); font-weight: bold; padding-top: 6px; }
@media (max-width: 520px) {
  table.rows th { white-space: normal; width: auto; }
}
.player .i-pause, .player.on .i-play { display: none; }
.player.on .i-pause { display: inline; }
.bar { display: inline-block; width: 120px; height: 4px; background: var(--line); vertical-align: middle; cursor: pointer; }
.fill { display: block; width: 0; height: 100%; background: var(--accent); }
.t { color: var(--grey); font-size: 14px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
figure { margin: 0; }
.shot { display: block; width: 100%; }
.shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
figcaption { margin-top: 2px; font-size: 13px; color: var(--grey); }

.videos { display: grid; gap: 12px; }
.embed.video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.embed.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
iframe.loaded { display: block; width: 100%; border: 0; background: #000; }

footer { margin-top: 40px; color: var(--grey); font-size: 13px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 16px 56px;
  background: rgba(0, 0, 0, 0.9);
}
.lightbox img { max-width: 100%; max-height: 84vh; }
.lightbox p { position: absolute; bottom: 16px; left: 16px; right: 16px; margin: 0; text-align: center; color: #ddd; }
.lightbox button { position: absolute; color: #fff; text-decoration: none; font-size: 28px; padding: 8px 14px; }
.lightbox .prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .close { top: 4px; right: 4px; }

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .pfp { width: 72px; height: 72px; }
  h1 { font-size: 24px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
}
