.hlive-console .hlive-rink-filters { align-items: end; flex-wrap: wrap; gap: .4rem; }
.hlive-console .hlive-rink-filters > label {
  display: grid;
  flex: 1 1 65px;
  gap: .25rem;
  min-width: 0;
}
.hlive-console .hlive-rink-filters > label select { width: 100%; }
.hlive-console .hlive-trail-settings { margin-inline-start: auto; }
.hlive-console .hlive-trail-popover :is(select,button,input):disabled { opacity: .55; }
.hlive-rink-modes [data-nhl-x-mode][aria-pressed=true] {
  color: #b5ffda;
  border-color: #6ef2b3;
  background: #18392b;
}
.bb-x-mode-panel {
  padding: clamp(.45rem, 1.4vw, 1rem);
  color: #d8e8e2;
  font-variant-numeric: tabular-nums;
}
.bb-x-mode-panel [hidden], .bb-x-mode-panel[hidden] { display: none; }
.bb-x-mode-panel [data-x-status]:empty { display: none; }
.bb-x-mode-panel [data-x-status] { margin: .25rem 0 .6rem; }
.bb-x-mode-panel [data-x-progress]:not([hidden]) {
  display: block;
  width: min(100%, 26rem);
  height: .45rem;
  margin: 0 0 .5rem;
  accent-color: var(--rink-home, #74ecad);
}
.bb-x-mode-score {
  display: grid;
  grid-template-columns: 1fr minmax(0,1.2fr) 1fr;
  text-align: center;
  align-items: center;
  gap: .4rem;
  padding: .45rem 0 .85rem;
}
.bb-x-mode-score span, .bb-x-mode-score small { display: block; }
.bb-x-mode-score strong { display: block; font-size: clamp(1.1rem, 2.6vw, 2.25rem); line-height: 1.2; }
.bb-x-mode-score [data-x-run-model] { overflow-wrap: anywhere; }
.bb-x-mode-score small { color: #9db0ac; font-size: .72rem; }
.bb-x-mode-score > :first-child { color: var(--rink-away,#9bc5ff); }
.bb-x-mode-score > :last-child { color: var(--rink-home,#83efb9); }
.bb-x-mode-score b { font-size: clamp(.72rem, 1.1vw, 1rem); }
.bb-x-mode-controls, .bb-x-mode-scrub { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem .8rem; }
.bb-x-mode-controls label { display: grid; gap: .25rem; font-size: .73rem; color: #b5c8c0; }
.bb-x-mode-controls { align-items: center; justify-content: space-between; gap: .45rem; }
.hockey-live-page .hlive-console[data-x-mode-active] { overflow: visible; }
.bb-x-view-picker { position: relative; min-width: 0; }
.bb-x-view-options {
  position: absolute;
  z-index: 18;
  inset: calc(100% + .35rem) auto auto 0;
  width: min(18rem, 85vw);
  border: 1px solid #45625a;
  border-radius: .5rem;
  background: #101a1d;
  padding: .4rem;
  box-shadow: 0 10px 30px #0009;
}
.bb-x-view-options form { display: flex; align-items: end; gap: .4rem; padding: .15rem .2rem .45rem; }
.bb-x-view-options form label { flex: 1; min-width: 0; }
.bb-x-view-options input {
  min-width: 0;
  width: 100%;
  min-height: 2.16rem;
  padding: .2rem .45rem;
  border: 1px solid #45625a;
  border-radius: .35rem;
  background: #0a1317;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.bb-x-game-list {
  box-sizing: content-box;
  height: 320px;
  max-height: 48vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-top: 1px solid #2c4445;
  border-bottom: 1px solid #2c4445;
}
.bb-x-game-track { position: relative; }
.bb-x-game-window { position: absolute; inset: 0 0 auto; }
.bb-x-mode-panel .bb-x-game-list button {
  width: 100%;
  height: 32px;
  min-height: 32px;
  display: block;
  text-align: left;
  border: 0;
  border-radius: .2rem;
  background: transparent;
  padding: 0 .45rem;
  font-size: .8rem;
}
.bb-x-mode-panel .bb-x-game-list button:hover,
.bb-x-mode-panel .bb-x-game-list:focus [data-x-cursor] { background: #253c40; }
.bb-x-mode-panel .bb-x-game-list button[aria-selected=true] { color: var(--rink-home, #83efb9); }
.bb-x-mode-panel [data-x-all-runs] { width: 100%; margin-top: .4rem; text-align: left; }
.bb-x-run-sizes { display: inline-flex; gap: .2rem; font-size: .8rem; }
.bb-x-mode-panel .bb-x-run-sizes button[aria-pressed=true] {
  color: var(--rink-home, #83efb9);
  border-color: var(--rink-home, #83efb9);
  background: #17322c;
}
.bb-x-mode-panel :is(select, button) {
  background: #131e1c;
  border: 1px solid #45625a;
  border-radius: .38rem;
  color: #e1efe8;
  padding: .28rem .48rem;
  min-height: 2.16rem;
  font: inherit;
}
.bb-x-mode-panel canvas { display: block; width: 100%; height: auto; margin: .45rem 0; }
.bb-x-mode-scrub { flex-wrap: nowrap; align-items: center; }
.bb-x-mode-scrub input { flex: 1; min-width: 28px; accent-color: #74ecad; }
.bb-x-mode-scrub output { min-width: 3.35em; text-align: right; }
.bb-x-mode-detail, .bb-x-mode-source { font-size: .75rem; margin: .55rem 0 0; }
.bb-x-mode-source { color: #9db0ac; }

/* Neighboring titles and source clocks change between the two rink views. */
#hockeyLive .hlive-hud-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2px, 1vw, 12px);
}
#hockeyLive .hlive-hud-toolbar > :first-child,
#hockeyLive .hlive-hud-toolbar .hlive-feed-status { min-width: 0; }
#hockeyLive .hlive-hud-toolbar :is(h2, .hlive-feed-status, .hlive-feed-status small) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#hockeyLive .hlive-rink-views {
  grid-column: 2;
  justify-self: center;
  flex-wrap: nowrap;
}
#hockeyLive .hlive-rink-modes { flex-wrap: nowrap; white-space: nowrap; }
