body[data-route="tv-leaderboards"] {
  overflow: hidden;
  background: #272923;
}

body[data-route="tv-leaderboards"] .site-header {
  display: none;
}

body[data-route="tv-leaderboards"] .app-shell,
body[data-route="tv-leaderboards"] main,
body[data-route="tv-leaderboards"] .route-region {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #272923;
}

.tv-leaderboards-page {
  --tv-ink: #10110f;
  --tv-panel: #1c1e1a;
  --tv-panel-soft: #252721;
  --tv-line: #41433c;
  --tv-muted: #aeb0aa;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 40px;
  gap: 12px;
  width: 100%;
  height: 100vh;
  padding: 18px 24px 12px;
  overflow: hidden;
  background: #272923;
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
}

.tv-leaderboards-header,
.tv-leaderboards-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.tv-leaderboards-header {
  border-bottom: 2px solid #5a5d53;
  padding: 0 4px 10px;
  color: #ffffff;
}

.tv-leaderboards-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tv-leaderboards-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
}

.tv-leaderboards-brand div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.tv-leaderboards-brand span,
.tv-leaderboards-status span,
.tv-leaderboards-section-title span,
.tv-leaderboards-section-title > strong,
.tv-leaderboards-footer,
.tv-stat-board header span,
.tv-pool-card header span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-leaderboards-brand span,
.tv-leaderboards-status span {
  color: #ffff18;
}

.tv-leaderboards-brand h1 {
  margin: 0;
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-leaderboards-status {
  display: flex;
  align-items: center;
}

.tv-leaderboards-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--tv-ink);
}

.tv-leaderboards-stage::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 5px;
  background: #ffff18;
  content: "";
}

.tv-leaderboards-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(390px, 1fr);
  gap: 12px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tv-leaderboards-scene.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tv-leaderboards-player-panel,
.tv-standings-panel {
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--tv-line);
  background: var(--tv-panel);
}

.tv-leaderboards-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--tv-line);
  padding: 7px 12px;
  background: #131410;
}

.tv-leaderboards-section-title > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tv-leaderboards-section-title span {
  color: #ffff18;
}

.tv-leaderboards-section-title h2 {
  margin: 0;
  color: #ffffff;
  font-family: Anton, Impact, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tv-leaderboards-section-title > strong {
  color: var(--tv-muted);
}

.tv-stat-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  padding: 8px;
}

.tv-stat-board {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--tv-line);
  background: #11120f;
}

.tv-stat-board > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: #ffff18;
  color: #10110f;
}

.tv-stat-board header span {
  max-width: 120px;
  line-height: 1.05;
}

.tv-stat-board header strong {
  font-family: Anton, Impact, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.tv-stat-board ol,
.tv-pool-card ol {
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-stat-board ol {
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.tv-stat-board li {
  display: grid;
  grid-template-columns: 23px 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid var(--tv-line);
  padding: 7px 9px;
  background: var(--tv-panel);
}

.tv-stat-board li:nth-child(even) {
  background: var(--tv-panel-soft);
}

.tv-stat-board li > b {
  color: #7d7f78;
  font-size: 15px;
  text-align: center;
}

.tv-stat-board li > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tv-stat-board li > span .tv-player-name {
  display: grid;
  gap: 0;
  min-width: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.02;
}

.tv-player-name > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-player-name > span.is-compact {
  font-size: 15px;
}

.tv-player-name > span.is-tight {
  font-size: 13px;
}

.tv-player-name > span.is-min {
  font-size: 11px;
}

.tv-player-name > span.is-micro {
  font-size: 9px;
}

.tv-stat-board li > span em {
  overflow: hidden;
  color: var(--tv-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-stat-board li > span em.is-compact {
  font-size: 10px;
}

.tv-stat-board li > span em.is-tight {
  font-size: 9px;
}

.tv-stat-board li > span em.is-min {
  font-size: 8px;
}

.tv-stat-board li > span em.is-micro {
  font-size: 7px;
}

.tv-stat-board li data {
  color: #ffff18;
  font-family: Anton, Impact, sans-serif;
  font-size: 34px;
  letter-spacing: 0;
}

.tv-team-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: transparent;
  color: #ffffff;
}

.tv-team-logo > b {
  font-size: 10px;
  font-weight: 900;
}

.tv-team-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tv-pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  padding: 8px;
}

.tv-pool-card {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--tv-line);
  background: #f5f5f2;
  color: #10110f;
}

.tv-pool-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.tv-pool-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: #ffff18;
}

.tv-pool-card h3 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tv-pool-card ol {
  grid-auto-rows: minmax(20px, 1fr);
  overflow: hidden;
}

.tv-pool-card li {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border-top: 1px solid #cccdc8;
  padding: 2px 6px;
  font-size: 12px;
}

.tv-pool-card li > b {
  color: #656761;
  text-align: center;
}

.tv-pool-card li > span:not(.tv-team-logo) {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-pool-card li > strong {
  text-align: right;
}

.tv-pool-card .tv-team-logo {
  width: 26px;
  height: 26px;
  color: #10110f;
}

.tv-pool-card .tv-team-logo > b {
  font-size: 7px;
}

.tv-board-empty {
  display: grid !important;
  grid-column: 1 / -1 !important;
  place-items: center;
  min-height: 90px;
  padding: 20px;
  color: var(--tv-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.tv-leaderboards-footer {
  gap: 18px;
  color: #ffffff;
}

.tv-leaderboards-footer > span,
.tv-leaderboards-footer > strong {
  width: 220px;
}

.tv-leaderboards-footer > strong {
  color: #ffff18;
  text-align: left;
}

.tv-leaderboards-footer > span {
  color: #b8bab2;
  text-align: right;
}

.tv-leaderboards-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  width: min(620px, 52vw);
}

.tv-leaderboards-progress > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #aeb0a8;
}

.tv-leaderboards-progress b {
  font-size: 11px;
}

.tv-leaderboards-progress i {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  background: #a6a7a2;
}

.tv-leaderboards-progress i::after {
  position: absolute;
  inset: 0;
  background: #10110f;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.tv-leaderboards-progress .is-active {
  color: #ffff18;
}

.tv-leaderboards-progress .is-active i {
  background: #ffff18;
}

.tv-leaderboards-progress .is-active i::after {
  animation: tv-leaderboard-progress 10s linear forwards;
}

@keyframes tv-leaderboard-progress {
  to { transform: scaleX(1); }
}

@media (max-width: 1279px) {
  .tv-leaderboards-page {
    min-width: 1180px;
  }

  body[data-route="tv-leaderboards"] {
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-leaderboards-progress .is-active i::after {
    animation: none;
    transform: scaleX(1);
  }
}
