:root { --nba-amber: #ecab60; }
.knicks-name { color: #f58426; }
footer { padding: 12px 0 32px; color: #c7d2df; font-size: .875rem; }
footer a, .method-links a, .source-link { text-decoration: underline; text-underline-offset: .2em; }
.hero { border-bottom-color: #bd653d; }
.hero small { color: #f4b680; }
.notice { color: #bbc8d7; }
button[aria-pressed="true"].era-active { border-color: #fc9b63; background: #482f31; color: #ffe3d1; }
#ranking td:first-child { text-align: center; }
#ranking th:last-child, #ranking td:last-child { text-align: right; }
#ranking td button { color: var(--palette-text); text-align: left; background: var(--palette-background); border: 1px solid var(--palette-text); font-weight: 650; padding: 4px 7px; border-radius: 6px; }
#ranking tr:hover td { background: #273545; }
.signed-track { position: relative; min-width: 48px; }
.signed-track::before { position: absolute; content: ""; inset: 0 auto 0 50%; width: 1px; background: #c7c7d0; }
.signed-track span { position: absolute; inset-block: 1px; width: var(--magnitude); }
.signed-track .track-pain { left: 50%; background: #f57083; border-radius: 0 5px 5px 0; }
.signed-track .track-joy { right: 50%; background: #69d6a1; border-radius: 5px 0 0 5px; }
.team-summary { border-inline-start: 4px solid var(--team-highlight, #ecab60); }
.timeline-plot { width: 100%; display: block; }
.timeline-selection button { margin: 7px 0; }
.hall-event .notice { font-size: .82rem; margin-bottom: 0; }
.hall-event .source-link { display: inline-block; }
.score-help th:first-child { width: 40%; }
#content .team-picker { max-width: 330px; }
.result-win { color: #73d8a1; }
.result-loss { color: #ff8d9e; }
.table-wrap, .matchup-table { overflow-x: auto; }
.model-rivals button:disabled { opacity: .6; }
.historical-names { margin-block: 10px; }
@media (max-width: 740px) {
  #ranking th:nth-child(3) { width: 21%; }
  #ranking :is(td,th) { padding-inline: 4px; }
  #ranking td button { font-size: .82rem; }
}
#profile .profile-accordion {
  background: #202a39;
  border: 1px solid color-mix(in srgb, var(--team-highlight, #a97e6e) 52%, #465767);
  border-radius: 12px;
  color: #f4f0e8;
  margin: 10px 0;
  padding: 13px 14px;
}
#profile .profile-accordion > summary {
  color: #f4f0e8;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.4;
}
#profile .profile-accordion > summary:focus-visible { outline: 3px solid #efb995; }
#profile .profile-accordion a { text-decoration: underline; text-underline-offset: .18em; }
.more-game-videos h3 { margin: 2px 0 10px; }
#profileVideos { margin-bottom: 0; padding-inline-start: 1.25rem; }
#profileVideos li { margin-block: .4rem; }
.dna-pain { background: #ee6b83; }
.dna-joy { background: #71d5a8; }
.sharepreview { width: min(100%, 36rem); height: auto; display: block; border-radius: 8px; }

#timeline-content {
  --timeline-ink: color-mix(in srgb, var(--team-primary, #bc653d) 35%, #fff4e7);
  --timeline-border: color-mix(in srgb, var(--team-primary, #bc653d) 44%, #747b86);
}
#timelineChart :is(.chart-score, .chart-highlight, #tlCursor) { stroke: var(--timeline-ink); }
#timelineChart .chart-highlight { fill: var(--team-primary, #bc653d); }
#timelineChart :is(.chart-highlight[aria-pressed="true"], #tlDot) { fill: var(--timeline-ink); }
#timelineChart .chart-highlight:focus-visible { outline: none; stroke: #fff; stroke-width: 3px; }
#timeline-content .timeline-highlights button {
  background: #121b28;
  border-color: var(--timeline-border);
  align-content: start;
}
#timeline-content .timeline-highlights button[aria-pressed="true"] {
  background: #27354a;
  border-color: var(--timeline-ink);
  box-shadow: inset 0 0 0 1px var(--timeline-ink);
}
.timeline-start { margin-block: -4px 0; }
.timeline-range { margin-block: 1.25rem 1rem; color: #c5d0dc; }
.timeline-range #tlYear {
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 28px;
  margin: .35rem 0 0;
  background: transparent;
  cursor: pointer;
  --timeline-track: linear-gradient(to right, var(--timeline-ink) 0 var(--timeline-progress), #393d43 var(--timeline-progress) 100%);
}
.timeline-range #tlYear::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid #8b939d;
  border-radius: 999px;
  background: var(--timeline-track);
}
.timeline-range #tlYear::-moz-range-track {
  height: 8px;
  border: 1px solid #8b939d;
  border-radius: 999px;
  background: var(--timeline-track);
}
.timeline-range #tlYear::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--timeline-ink);
}
.timeline-range #tlYear::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--timeline-ink);
}
@media (max-width: 740px) {
  #timelineChart text { font-size: 16px; }
  #timelineChart .timeline-x-minor { display: none; }
}

.franchise-rivals { margin-block: 1.25rem; }
.franchise-rival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .65rem;
}
.franchise-rival { border: 1px solid #465767; border-radius: 10px; overflow: hidden; background: #202a39; }
.franchise-rival h4 { margin: 0; padding: .65rem .75rem; background: var(--palette-background); color: var(--palette-text); }
.franchise-rival h4 small { display: block; font-size: .875rem; color: inherit; }
.franchise-rival-body { padding: .75rem; }
.franchise-rival dl { margin: 0; font-variant-numeric: tabular-nums; }
.franchise-rival dl div { display: flex; justify-content: space-between; gap: .4rem; }
.franchise-rival dd { margin: 0; text-align: end; white-space: nowrap; }
.franchise-rival-body p { margin-block: .75rem .45rem; }
.franchise-rival-body small { font-size: .875rem; color: #c7d2df; }

footer.fml-disclaimer p { max-width: 90ch; margin: .55rem 0; line-height: 1.55; }
