.scores-scoreboard {
  display: grid;
  gap: 1.25rem;
  max-width: 88rem;
  min-width: 0;
  width: 100%;
}

.scores-scoreboard:not(.scores-week-scroll-overflowing) {
  max-width: min(100%, var(--scores-week-selector-width, 88rem));
}

.scores-scoreboard>turbo-frame {
  display: block;
  min-width: 0;
  width: 100%;
}

.scores-week-scroll {
  align-items: stretch;
  display: flex;
  gap: 0.45rem;
  margin: -0.35rem 0 0;
  max-width: 100%;
  min-width: 0;
}

.scores-week-selector {
  display: flex;
  gap: 0.5rem;
  margin: -0.35rem 0 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  white-space: nowrap;
}

.scores-week-scroll .scores-week-selector {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  padding-bottom: 0;
  scrollbar-width: none;
}

.scores-scoreboard:not(.scores-week-scroll-overflowing) .scores-week-selector {
  justify-content: space-between;
}

.scores-week-scroll .scores-week-selector::-webkit-scrollbar {
  display: none;
}

.scores-week-scroll-button {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #e5eefb);
  border: 1px solid #c4d1e5;
  border-radius: 6px;
  color: #12366f;
  cursor: pointer;
  display: flex;
  flex: 0 0 2.15rem;
  font: inherit;
  height: 2.15rem;
  justify-content: center;
  padding: 0;
  transition: background 140ms ease, color 140ms ease;
  width: 2.15rem;
}

.scores-week-scroll-button[hidden] {
  display: none;
}

.scores-week-scroll-button::before {
  border-left: 0.16rem solid currentColor;
  border-top: 0.16rem solid currentColor;
  content: "";
  height: 0.58rem;
  width: 0.58rem;
}

.scores-week-scroll-button:hover {
  background: var(--tlfl-blue-dark);
  color: #ffffff;
}

.scores-week-scroll-button:focus-visible {
  outline: 2px solid var(--tlfl-blue);
  outline-offset: 2px;
}

.scores-week-scroll-left::before {
  transform: rotate(-45deg);
}

.scores-week-scroll-right::before {
  transform: rotate(135deg);
}

.scores-week-selector a {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #1f2937;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.scores-week-selector a:visited {
  color: #1f2937;
}

.scores-week-selector a:hover,
.scores-week-selector .scores-week-selected {
  background: var(--tlfl-blue);
  border-color: var(--tlfl-blue);
  color: #ffffff;
}

.scores-week-selector .scores-week-selected:visited {
  color: #ffffff;
}

.scores-matchups {
  display: grid;
  gap: 1rem;
  max-width: 88rem;
  min-width: 0;
  width: 100%;
}

.scores-scoreboard:not(.scores-week-scroll-overflowing) .scores-matchups {
  max-width: none;
}

.scores-scoreboard.scores-week-scroll-overflowing .scores-matchup-card,
.scores-scoreboard.scores-week-scroll-overflowing .scores-rosters,
.scores-scoreboard.scores-week-scroll-overflowing .scores-roster {
  min-width: 0;
}

.scores-scoreboard.scores-week-scroll-overflowing .scores-team-row {
  grid-template-columns: minmax(0, 1fr) minmax(2.25rem, max-content) minmax(8.5rem, max-content);
}

.scores-scoreboard.scores-week-scroll-overflowing .scores-team-identity {
  min-width: 0;
}

.scores-scoreboard.scores-week-scroll-overflowing .scores-team-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-overrides-form {
  display: grid;
  gap: 1rem;
}

.score-overrides-save-bar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(17 24 39 / 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem;
  position: sticky;
  top: 4.25rem;
  z-index: 900;
}

.score-overrides-lock-message {
  color: #374151;
  font-weight: 800;
  margin: 0;
}

.scores-matchup-card {
  background: #ffffff;
  border: 1px solid rgb(31 85 171 / 0.35);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgb(17 24 39 / 0.07);
  overflow: hidden;
}

.scores-matchup-card[open] {
  box-shadow: 0 10px 26px rgb(17 24 39 / 0.12);
}

.scores-matchup-card summary {
  cursor: pointer;
  list-style: none;
}

.scores-matchup-card summary::-webkit-details-marker {
  display: none;
}

.scores-expand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.scores-expand-button {
  background: #ffffff;
  border: 1px solid var(--tlfl-blue);
  border-radius: 6px;
  color: var(--tlfl-blue);
  cursor: pointer;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
}

.scores-expand-button:hover {
  background: var(--tlfl-blue);
  color: #ffffff;
}

.scores-matchup-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 10rem);
}

.scores-team-row {
  align-items: center;
  border-left: 0.35rem solid var(--score-team-primary-color, var(--tlfl-blue));
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 46ch minmax(2.25rem, max-content) minmax(10rem, 1fr);
  min-height: 3rem;
  padding: 0.68rem 0.9rem 0.68rem 0.75rem;
}

.scores-team-row+.scores-team-row {
  border-top: 1px solid #f3f4f6;
}

.scores-game-status {
  align-items: center;
  background: #f9fafb;
  border-left: 1px solid #d1d5db;
  display: grid;
  justify-items: center;
  padding: 0.75rem;
  text-align: center;
}

.scores-game-status strong {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
}

.scores-game-status-live strong {
  color: #8f1d1d;
}

.scores-team-identity {
  align-items: center;
  display: inline-flex;
  gap: 0.6rem;
  min-width: 46ch;
}

.scores-team-identity img {
  flex: 0 0 auto;
  height: 2rem;
  object-fit: contain;
  width: 2rem;
}

.scores-team-identity span {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 800;
  overflow: visible;
  white-space: nowrap;
}

.scores-team-row strong {
  color: #4b5563;
  flex: 0 0 auto;
  font-size: 1.22rem;
  font-weight: 900;
  justify-self: end;
  min-width: 2.25rem;
  text-align: right;
}

.scores-rosters {
  background:
    linear-gradient(90deg, rgb(31 85 171 / 0.08), rgb(31 85 171 / 0.02)),
    #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.15rem 1rem 1rem;
  position: relative;
}

.scores-roster {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 0.35rem solid var(--score-team-primary-color, var(--tlfl-blue));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(17 24 39 / 0.05);
  overflow: hidden;
}

.scores-roster-heading {
  align-items: center;
  background: #f3f4f6;
  color: #111827;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  grid-template-columns: minmax(0, 1fr) max-content;
  margin: 0;
  padding: 0.55rem 0.7rem;
}

.scores-roster-team-name {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  min-width: 0;
}

.scores-roster-team-name img {
  flex: 0 0 auto;
  height: 1.6rem;
  object-fit: contain;
  width: 1.6rem;
}

.scores-roster-team-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scores-players-remaining {
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 800;
  justify-self: end;
  white-space: nowrap;
}

.scores-roster table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}

.scores-roster th,
.scores-roster td {
  padding: 0.42rem 0.45rem;
  text-align: left;
}

.scores-roster .scores-roster-number {
  text-align: center;
}

.scores-roster tbody td:nth-child(2),
.scores-roster tbody td:nth-child(4) {
  color: #4b5563;
  font-weight: 550;
}

.scores-roster th:nth-child(2),
.scores-roster td:nth-child(2) {
  max-width: none;
  white-space: nowrap;
  width: max-content;
}

.scores-roster th:nth-child(5),
.scores-roster td:nth-child(5) {
  padding-left: 0.85rem;
  width: 40ch;
}

.scores-roster td:nth-child(3),
.scores-roster td:nth-child(5),
.scores-roster td:nth-child(6) {
  font-size: 0.84rem;
}

.scores-roster th:nth-child(6),
.scores-roster td:nth-child(6) {
  padding-left: 0.8rem;
}

.scores-roster th {
  color: #374151;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.scores-roster thead th {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.scores-roster tbody tr:nth-child(odd) {
  background: #f7f7f7;
}

.score-overrides-manual-row {
  box-shadow: inset 0.25rem 0 0 var(--tlfl-blue);
}

.score-overrides-points-cell {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.score-overrides-points-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #111827;
  font: inherit;
  font-weight: 800;
  min-height: 2rem;
  padding: 0.25rem 0.35rem;
  text-align: center;
  width: 4.4rem;
}

.score-overrides-points-input:focus {
  border-color: var(--tlfl-blue);
  box-shadow: 0 0 0 3px rgb(31 85 171 / 0.15);
  outline: none;
}

.score-overrides-points-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.score-overrides-clear-button {
  background: #ffffff;
  border: 1px solid #b91c1c;
  border-radius: 6px;
  color: #991b1b;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
}

.score-overrides-clear-button:hover {
  background: #fef2f2;
}

.scores-roster tfoot td {
  border-top: 2px solid #d1d5db;
  font-weight: 900;
  background: #ffffff;
}

.scores-byes {
  border-top: 1px solid #d1d5db;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}

.scores-byes h2 {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 900;
  margin: 0 0 0.6rem;
}

.scores-bye-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scores-bye-team {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  min-width: 0;
}

.scores-bye-team img {
  flex: 0 0 auto;
  height: 1.55rem;
  object-fit: contain;
  width: 1.55rem;
}

.scores-bye-team span {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.scores-empty {
  color: #4b5563;
  margin: 0;
}
