:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #eef4f8;
  background: #10171d;
  --panel: #19232d;
  --rule: #34424f;
  --muted: #afbdc8;
  --accent: #78e0eb;
  --dark-kit: #eea98c;
  --focus: #9af1f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: #102128; background: var(--accent); }
.shell { width: min(calc(100% - 56px), 1480px); margin: 0 auto; padding: 32px 0 28px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 720; }
h1 span { color: var(--muted); font-size: .57em; font-weight: 500; letter-spacing: 0; vertical-align: .12em; }
h2 { font-size: 1.19rem; line-height: 1.22; letter-spacing: -.015em; }
p { color: var(--muted); line-height: 1.45; }
.match-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.match-header p { margin-top: 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.clips:not([hidden]) { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; font-size: .82rem; }
.clips a { color: var(--muted); text-underline-offset: .22em; }
.clips a:hover, .clips a[aria-current] { color: var(--accent); }
.clips a[aria-current] { font-weight: 680; }
.clips a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sample-select:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; color: var(--muted); font-size: .82rem; }
.sample-select select { width: min(100%, 265px); min-height: 32px; padding: 4px 7px; border: 1px solid var(--rule); border-radius: 6px; color: inherit; background: var(--panel); font: inherit; }
.review-pending :is(#scoreline, .stats table, #event-filters, #event-count, .jersey-option, .ledger footer) { display: none; }
button { font: inherit; appearance: none; border: 0; cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.feeds { max-width: 100%; padding: 3px; display: flex; flex-wrap: wrap; background: #1c2731; border: 1px solid var(--rule); border-radius: 10px; }
.feeds[hidden] { display: none; }
.feeds button { white-space: nowrap; padding: 9px 14px; font-size: .88rem; font-weight: 650; background: transparent; color: var(--muted); border-radius: 7px; }
.feeds button:hover { background: #2e3c48; color: #fff; }
.feeds button[aria-pressed="true"] { background: var(--accent); color: #11242b; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .51fr); gap: 22px; align-items: start; }
.primary { display: grid; gap: 16px; min-width: 0; }
.player, .stats, .ledger { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--panel); }
.player :is(video, iframe) { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: contain; background: #0a1117; border: 0; }
.player iframe { min-height: 200px; }
.player video[hidden], #frame-step-hint[hidden], .playback-source[hidden] { display: none; }
#video-error { padding: 10px 16px; color: #ffb79b; }
.playback-source { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; color: var(--muted); font-size: .82rem; }
.playback-source select { padding: 5px 8px; color: inherit; background: #141e27; border: 1px solid var(--rule); border-radius: 6px; font: inherit; }
.gamechanger-open:not([hidden]) { margin: 10px 16px 0; padding: 6px 10px; border-radius: 6px; background: #273645; font-size: .82rem; }
.gamechanger-dialog { width: min(820px, calc(100% - 24px)); color: inherit; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; }
.gamechanger-dialog::backdrop { background: #000b; }
.gamechanger-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gamechanger-dialog button { padding: 6px 10px; border-radius: 6px; background: #273645; }
.gamechanger-dialog video { width: 100%; max-height: 64vh; margin: 12px 0; background: #0a1117; }
.gamechanger-dialog a, .live-link { color: var(--accent); text-underline-offset: .22em; }
.gamechanger-dialog a { display: inline-block; margin-top: 8px; }
.team-demo .log-item { grid-template-columns: minmax(0, 1fr); }
.broadcast-note { margin: 14px 0 6px; }
.transport {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
}
.transport button { border-radius: 6px; min-height: 36px; padding: 0 10px; white-space: nowrap; font-weight: 650; font-size: .82rem; }
.play { background: #d7edee; color: #102429; min-width: 60px; }
.play:hover:not(:disabled) { background: #fff; }
.restart { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.restart:hover:not(:disabled) { color: white; background: #273645; }
.timeline {
  --thumb-radius: 8px;
  position: relative;
  touch-action: pan-y;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
}
.timeline input {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.timeline input:disabled { cursor: default; opacity: .5; }
.timeline input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--playhead, 0%), #4a5c6b 0);
}
.timeline input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 1px solid #10171d;
  border-radius: 50%;
  background: #d7edee;
}
.timeline input::-moz-range-track { height: 4px; border-radius: 2px; background: #4a5c6b; }
.timeline input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.timeline input::-moz-range-thumb {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid #10171d;
  border-radius: 50%;
  background: #d7edee;
}
.event-lanes { display: contents; }
.timeline-empty { grid-column: 1 / -1; font-size: .75rem; }
.lane-label { font-size: .75rem; font-weight: 650; }
.lane {
  position: relative;
  min-width: 0;
  height: 33px;
  cursor: ew-resize;
  border-radius: 4px;
  background: #141e27;
}
.lane-markers { position: absolute; inset: 0 var(--thumb-radius); }
.lane-markers::before {
  position: absolute;
  inset-block: 0;
  left: var(--playhead, 0%);
  width: 1px;
  background: #8296a6;
  content: "";
}
.event-marker {
  position: absolute;
  top: var(--event-offset);
  width: 3px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: var(--event-color);
  cursor: pointer;
  transition: transform 100ms ease-out;
}
.timeline.pointer-tracking::after {
  position: absolute;
  inset-block: 10px 0;
  left: var(--pointer-guide);
  z-index: 2;
  width: 1px;
  background: #eef4f8;
  pointer-events: none;
  content: "";
}
.event-marker.is-crossed {
  z-index: 3;
  transform: translateX(-50%) scale(2.6, 1.3);
  outline: 1px solid #eef4f8;
}
@media (prefers-reduced-motion: reduce) {
  .event-marker { transition: none; }
}
.event-make { --event-color: #68dfa0; --event-offset: 2px; }
.event-miss { --event-color: #ff9b9a; --event-offset: 7px; }
.event-rebound { --event-color: #76cfff; --event-offset: 12px; }
.event-steal { --event-color: #dcb0ff; --event-offset: 17px; }
.event-foul { --event-color: #f5cf75; --event-offset: 22px; }
.event-turnover { --event-color: #d9e4ed; --event-offset: 27px; }
.event-assist { --event-color: #84e6d8; --event-offset: 32px; }
.event-block { --event-color: #ffba9a; --event-offset: 37px; }
.timeline.has-extra-kinds .lane { height: 43px; }
.event-filters {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}
.filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.filter-header h2 { font-size: .84rem; letter-spacing: normal; }
#filter-status { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.filter-controls {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.filter-controls fieldset { min-width: 0; max-width: 100%; border: 0; padding: 0; margin: 0; }
.filter-controls legend { margin-bottom: 4px; padding: 0; color: var(--muted); font-size: .72rem; }
.filter-choices { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-choice {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid #52616e;
  border-radius: 6px;
  background: #202e39;
  color: var(--event-color, #eef4f8);
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.filter-choice:hover { background: #2a3c49; }
.filter-choice:has(input:not(:checked)) { border-color: var(--rule); background: transparent; color: var(--muted); }
.filter-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.filter-choice input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: currentColor;
  color: inherit;
  cursor: pointer;
}
.filter-choice input:focus-visible { outline: none; }
.jersey-option { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.jersey-option input { margin: 0; accent-color: var(--accent); }
#show-all-events {
  min-height: 29px;
  padding-inline: 9px;
  margin-inline-start: auto;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--accent);
  font-size: .74rem;
}
#show-all-events:hover:not([aria-disabled="true"]) { background: #273645; color: #eef4f8; }
#show-all-events[aria-disabled="true"] { color: var(--muted); cursor: default; }
.video-clock { justify-self: end; color: #e9f4f6; font: .83rem ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 16px 11px; color: var(--muted); font-size: .75rem; }
kbd { display: inline-block; min-width: 1.25em; padding: 1px 4px; border: 1px solid var(--rule); border-radius: 4px; color: #e0edf2; text-align: center; }
.stats-header { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 15px 18px 12px; }
.stats-header p { font-size: .81rem; margin-top: 4px; max-width: 54ch; }
.scoreline { display: flex; align-items: center; flex-shrink: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.scoreline span { padding: 6px 10px; display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: .75rem; }
.scoreline span + span { border-left: 1px solid var(--rule); }
.scoreline b { font-size: 1.15rem; color: #edf4f6; font-variant-numeric: tabular-nums; }
.scoreboard-check { padding: 0 18px 12px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.stats-scope:not([hidden]) { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 18px 12px; }
.stats-scope button { padding: 7px 10px; border: 1px solid var(--rule); border-radius: 6px; background: #141e27; color: var(--muted); font-size: .78rem; }
.stats-scope button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.boxscore-scroll { overflow-x: auto; }
.boxscore { border-collapse: collapse; width: 100%; font-size: .87rem; }
.full-review .boxscore th:not(:first-child), .full-review .boxscore td { padding-inline: 10px; white-space: nowrap; }
.boxscore th, .boxscore td { padding: 7px 14px; text-align: right; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.boxscore th:first-child { padding-left: 18px; text-align: left; }
.boxscore th:last-child, .boxscore td:last-child { padding-right: 18px; }
.boxscore thead { background: #141e27; color: var(--muted); font-size: .75rem; }
.boxscore tbody th { font-weight: 550; }
.boxscore .club th, .boxscore .club td { font-weight: 710; background: #1e2a35; }
.boxscore .individual th { padding-left: 34px; color: #d2dce4; }
abbr[title] { text-decoration: none; cursor: help; }
.ledger { display: flex; flex-direction: column; min-width: 0; }
.ledger-header { padding: 18px 16px 13px; }
.ledger-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ledger-header p, .ledger footer, #log-empty { margin-top: 5px; font-size: .84rem; }
.ledger-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: 5px; }
.ledger-options p { margin-top: 0; }
.jersey-option { flex-shrink: 0; min-height: 22px; color: var(--muted); font-size: .75rem; }
.jersey-option:hover { color: #eef4f8; }
#event-count { color: var(--accent); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-labels, .log-row {
  --time-column: 79px;
  display: grid;
  grid-template-columns: var(--time-column) minmax(0, 1fr) 73px 53px;
  column-gap: 8px;
  align-items: start;
}
.show-jerseys :is(.log-labels, .log-row) { grid-template-columns: var(--time-column) minmax(0, 1fr) 48px; }
.log-jersey-heading, .show-jerseys .log-text-heading { display: none; }
.show-jerseys .log-jersey-heading { display: block; text-align: center; }
.log-labels { padding: 9px 16px; background: #141e27; border-block: 1px solid var(--rule); color: var(--muted); font-size: .71rem; font-weight: 680; }
.log-scroll { min-height: 245px; max-height: 468px; overflow-y: auto; scrollbar-color: #516675 #18232d; }
#event-log { padding: 0; margin: 0; list-style: none; }
#event-log li + li { border-top: 1px solid var(--rule); }
.log-item { position: relative; }
.log-row { width: 100%; padding: 12px 16px; text-align: left; font-size: .86rem; background: transparent; }
.log-row:hover, .log-row:focus-visible { background: #263746; }
.log-row:focus-visible { outline-offset: -3px; }
.log-time { color: var(--accent); font: .8rem ui-monospace, monospace; padding-top: 2px; white-space: nowrap; }
.log-kind { color: var(--event-color, inherit); font-weight: 660; line-height: 1.2; }
.replay-icons { position: absolute; }
.event-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-inline-end: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.14em;
}
.attribution-edit {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 29px;
  height: 30px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}
.attribution-edit .event-icon { margin: 0; }
.attribution-edit:hover, .attribution-edit:focus-visible { background: #344652; color: #eef4f8; }
.attribution-edit.is-corrected { color: var(--accent); }
.log-kind small { display: block; margin-top: 3px; font-size: .71rem; color: var(--muted); font-weight: 450; white-space: nowrap; }
.log-jersey-kit { justify-self: center; align-self: center; display: block; width: 30px; height: 32px; }
.log-jersey-kit svg { display: block; width: 100%; height: 100%; }
.jersey-fabric { fill: var(--jersey-fabric, #afbdc8); stroke: var(--jersey-trim, #647483); stroke-width: .9px; stroke-linejoin: round; }
.log-jersey-kit text { fill: var(--jersey-number, #18212a); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jersey-neck { stroke: var(--jersey-trim, #647483); stroke-width: .9px; stroke-opacity: .6; }
/* Game uniforms sampled from the footage. The team label colors stay readable on the dark panel. */
.log-jersey-kit.light { --jersey-fabric: #eae4e2; --jersey-number: #321c26; --jersey-trim: #8a6872; }
.log-jersey-kit.dark { --jersey-fabric: #191619; --jersey-number: #f19072; --jersey-trim: #c26857; }
.log-jersey-kit.rosemount { --jersey-fabric: #17634e; --jersey-number: #f4f1e7; --jersey-trim: #a0bbac; }
.log-jersey-kit.eagan { --jersey-fabric: #f0eee7; --jersey-number: #182320; --jersey-trim: #447261; }
.team-label, .jersey-label { white-space: nowrap; min-width: 0; }
.team-label { font-size: .81rem; }
.jersey-label { font-variant-numeric: tabular-nums; font-weight: 650; font-size: .81rem; }
.light { color: var(--accent); }
.dark { color: var(--dark-kit); }
.rosemount { color: #93d6aa; }
.eagan { color: #b5caff; }
.unknown { color: var(--muted); font-weight: 450; }
#log-empty { padding: 12px 16px; }
.ledger footer { margin: 0; color: var(--muted); padding: 11px 16px; border-top: 1px solid var(--rule); }
.ledger footer p { margin: 0; }
#attribution-status { margin-top: 4px; color: var(--accent); }
.attribution-dialog {
  width: min(420px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
  color: #eef4f8;
}
.attribution-dialog::backdrop { background: rgb(10 17 23 / 75%); }
.attribution-dialog p { margin-top: 6px; font-size: .84rem; }
.attribution-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; margin-block: 16px; }
.attribution-fields label { display: grid; gap: 5px; font-size: .78rem; font-weight: 650; }
.attribution-fields input, .attribution-fields select {
  width: 100%;
  height: 38px;
  padding-inline: 8px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #141e27;
  color: inherit;
  font: inherit;
  font-size: .88rem;
}
.attribution-fields input:disabled { opacity: .55; }
.attribution-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.attribution-buttons button { min-height: 35px; padding: 0 9px; border: 1px solid var(--rule); border-radius: 6px; background: #273645; font-size: .8rem; }
#attribution-restore { margin-inline-end: auto; background: transparent; }
#attribution-save { background: #d7edee; color: #102429; }
.attribution-dialog .attribution-error { color: #ffb79b; }
@media (min-width: 720px) {
  .ledger { min-height: 365px; }
  .log-scroll { flex: 1; }
}
@media (min-width: 720px) and (max-width: 1019px) {
  .shell { width: calc(100% - 36px); }
  .layout { gap: 15px; grid-template-columns: minmax(0, 1fr) minmax(315px, .67fr); }
  .transport { gap: 8px; padding-inline: 10px; }
  .log-labels, .log-row {
    --time-column: 62px;
    grid-template-columns: var(--time-column) minmax(0, 1fr) 71px 48px;
    column-gap: 6px;
    padding-inline: 11px;
  }
}
@media (max-width: 719px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .log-scroll { min-height: 105px; }
}
@media (max-width: 540px) {
  .shell { width: min(calc(100% - 28px), 1480px); padding-top: 20px; }
  .match-header { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .transport { gap: 8px; padding: 10px; }
  .timeline { column-gap: 8px; }
  .shortcuts { padding-inline: 10px; gap: 6px 12px; }
  .transport button { font-size: .74rem; padding-inline: 8px; }
  .play { min-width: 46px; }
  .video-clock { font-size: .74rem; }
  .stats-header { padding-inline: 11px; gap: 7px; align-items: start; }
  .scoreboard-check { padding-inline: 11px; }
  .scoreline span { gap: 4px; padding: 5px 6px; }
  .boxscore th, .boxscore td { padding-inline: 8px; }
  .boxscore th:first-child { padding-left: 11px; }
  .boxscore .individual th { padding-left: 23px; }
  .log-labels, .log-row {
    --time-column: 62px;
    grid-template-columns: var(--time-column) minmax(0, 1fr) 71px 48px;
    column-gap: 6px;
    padding-inline: 10px;
  }
}
.log-labels, .log-row { padding-inline-end: 38px; }
