.team-logo {
  display: inline-block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 5px;
  background: #fff;
  padding: 2px;
}
.team-logo.big {
  width: 76px;
  height: 76px;
  padding: 4px;
}
.rsl-mark {
  object-fit: contain;
  background: #15191a;
  padding: 6px;
}
.rsl-title {
  display: flex;
  align-items: center;
  gap: 22px;
}
.rsl-title > img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.rsl-title h1 {
  font-size: 28px;
}
.rsl-title p a {
  color: var(--lime);
}
.rsl-summary {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}
.rsl-summary b {
  color: var(--ink);
  margin-right: 4px;
}
.division-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.division-bar label {
  font-size: 13px;
}
.division-bar select {
  min-width: 210px;
}
.division-bar input {
  margin-left: auto;
  width: 290px;
}
.rsl-tabs {
  margin-bottom: 22px;
}
.rsl-team-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rsl-table {
  min-width: 720px;
}
.rsl-table td {
  white-space: nowrap;
}
.rsl-table td:nth-child(2) {
  min-width: 170px;
}
.rsl-table th {
  font-size: 11px;
}
.source-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 22px;
  max-width: 900px;
}
.source-note a {
  color: var(--lime);
}
.rsl-fixture {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) 48px minmax(0, 1fr) 70px;
  gap: 14px;
}
.fixture-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fixture-team span {
  overflow-wrap: anywhere;
}
.fixture-score {
  white-space: nowrap;
  text-align: center;
}
.rsl-fixture .status {
  text-align: center;
}
.rsl-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.rsl-team-card {
  display: block;
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.rsl-team-card:hover {
  border-color: #79935c;
}
.rsl-team-card h3 {
  margin: 20px 0 10px;
  overflow-wrap: anywhere;
}
.rsl-team-card p {
  font-size: 12px;
}
.team-card-stats {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.team-card-stats b {
  display: block;
  color: var(--ink);
  margin-top: 6px;
  font-size: 15px;
}
.cell-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.stats-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--muted);
}
.stats-sort select {
  font-size: 12px;
}
.raw-sheet {
  padding: 20px;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.raw-sheet summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 12px;
}
.raw-data {
  min-width: 1500px;
}
.raw-data td {
  white-space: pre-wrap;
  min-width: 70px;
  font-size: 11px;
  text-align: left !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  vertical-align: top;
}
.roster-table td:first-child,
.roster-table th:first-child {
  text-align: left;
  padding-left: 22px;
}
.roster-table td:nth-child(2),
.roster-table th:nth-child(2) {
  min-width: 65px;
  text-align: center;
}
.tracker-link {
  color: var(--lime);
  display: inline-block;
  padding: 10px 0;
  font-size: 12px;
}
.rsl-tabs .tab {
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .rsl-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rsl-title h1 {
    font-size: 25px;
  }
  .rsl-title > img {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 760px) {
  .rsl-title {
    align-items: flex-start;
    gap: 14px;
  }
  .rsl-title > img {
    width: 50px;
    height: 50px;
  }
  .rsl-title h1 {
    font-size: 24px;
  }
  .rsl-summary {
    gap: 16px 20px;
    font-size: 11px;
  }
  .division-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .division-bar select {
    flex: 1;
    min-width: 0;
    font-size: 13px;
  }
  .division-bar input {
    width: 100%;
    font-size: 16px;
  }
  .rsl-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    max-width: 100%;
    padding-bottom: 8px;
  }
  .rsl-tabs .tab {
    padding: 12px;
  }
  .rsl-team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .rsl-team-card {
    padding: 16px 12px;
  }
  .rsl-team-card h3 {
    font-size: 13px;
  }
  .rsl-team-card p {
    font-size: 10px;
  }
  .rsl-team-card .team-logo.big {
    width: 52px;
    height: 52px;
  }
  .team-card-stats {
    gap: 10px;
    font-size: 9px;
  }
  .team-card-stats b {
    font-size: 12px;
  }
  .rsl-fixture {
    padding: 16px 12px;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    gap: 12px 8px;
  }
  .rsl-fixture .match-date {
    grid-column: 1/3;
    font-size: 10px;
  }
  .rsl-fixture .match-date br {
    display: none;
  }
  .rsl-fixture .match-date br:after {
    content: " · ";
  }
  .rsl-fixture .status {
    grid-column: 3;
    grid-row: 1;
    font-size: 9px;
    justify-self: end;
  }
  .fixture-team {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
  }
  .fixture-team.away {
    grid-column: 3;
  }
  .fixture-score {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }
  .source-note {
    font-size: 10px;
  }
  .rsl-table {
    font-size: 11px;
  }
  .rsl-table th,
  .rsl-table td {
    padding: 14px 10px;
  }
  .team-logo {
    width: 30px;
    height: 30px;
  }
}
