/* Results (results.js): one pair at a time, each result its own player. Colours follow the page's day / night variables. */
.rs { --rs-seg: #1d1d1f; --rs-seg-on: #3a3a3c; --rs-seg-ink: #fff; --rs-bar: #2c2c2e; }
:root[data-theme=light] .rs { --rs-seg: #e8e8ed; --rs-seg-on: #fff; --rs-seg-ink: #1d1d1f; --rs-bar: #d2d2d7; }

.rs-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 30px 0 18px; }
.rs-sets { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--rs-seg); flex: none; }
.rs-sets button { border: 0; background: none; color: var(--ink2); font: 500 14px var(--sans); padding: 7px 15px; border-radius: 999px; cursor: pointer; }
.rs-sets button.on { background: var(--rs-seg-on); color: var(--rs-seg-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rs-lede { margin: 0; flex: 1 1 420px; color: var(--ink2); font-size: 16px; line-height: 1.45; }

.rs-pairs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; }
.rs-pairs button { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: var(--ink2); font: 500 12.5px/1.3 var(--sans); }
.rs-pairs img { display: block; width: 100%; aspect-ratio: 768 / 448; object-fit: cover; border-radius: 9px; margin-bottom: 6px; opacity: .6; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s; }
.rs-pairs button:hover img { opacity: .9; }
.rs-pairs button.on { color: var(--ink); }
.rs-pairs button.on img { opacity: 1; outline-color: var(--accent); }

.rs-instr h3 { font: 600 clamp(19px, 2vw, 24px)/1.3 var(--disp); letter-spacing: -.015em; margin: 0 0 6px; }
.rs-instr p { margin: 0 0 22px; color: var(--ink2); font-size: 15px; line-height: 1.5; max-width: 1000px; }

.rs-grid { display: grid; gap: 16px 14px; margin-bottom: 16px; }
.rs-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rs-card { position: relative; border-radius: 12px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: pointer; }
.rs-card.scrubbing { cursor: ew-resize; }
.rs-card.playing { box-shadow: 0 0 0 2px var(--accent); }
.rs-vid { position: relative; aspect-ratio: 768 / 448; overflow: hidden; border-radius: 12px 12px 0 0; background: #000; }
.rs-vid video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.rs-tag { position: absolute; left: 9px; top: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font: 600 12.5px var(--sans); letter-spacing: -.01em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rs-card.ours .rs-tag { background: var(--accent); }
.rs-snd { display: none; }
.rs-snd svg { width: 14px; height: 14px; display: block; }
.rs-card.playing .rs-snd { display: inline-flex; }
.rs-pb { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1d1d1f; display: flex; align-items: center; justify-content: center; transition: opacity .25s; pointer-events: none; }
.rs-pb svg { width: 20px; height: 20px; margin-left: 2px; }
.rs-tm { position: absolute; right: 9px; bottom: 7px; color: #fff; font: 500 12px var(--sans); font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.8); transition: opacity .25s; }
.rs-card.playing .rs-pb, .rs-card.scrubbing .rs-pb { opacity: 0; }
.rs-card.playing .rs-tm { opacity: 0; }
.rs-bar { height: 3px; background: var(--rs-bar); }
.rs-fill { width: 0; height: 100%; background: var(--accent); }
.rs-spec { position: relative; overflow: hidden; border-radius: 0 0 12px 12px; background: #050505; }
.rs-spec img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.rs-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8); pointer-events: none; }
.rs-missing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #86868b; font-size: 13px; }
.rs-foot { margin: 6px 0 0; color: var(--ink2); font-size: 13px; }

@media (max-width: 900px) {
  .rs-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rs-grid.two, .rs-grid.four { gap: 12px 8px; }
  .rs-tag { font-size: 11px; padding: 3px 8px; left: 6px; top: 6px; }
  .rs-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* the paper's figures */
.figs { display: grid; gap: 34px; margin-top: 30px; }
.figs figure { margin: 0; }
.figs img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.figs figcaption { margin-top: 10px; color: var(--ink2); font-size: 14px; }
