.standings-feed {
  --standings-bg: #fff;
  --standings-text: #111827;
  --standings-muted: #667085;
  width: 100%;
  min-width: 0;
  container-name: standings;
  container-type: inline-size;
  isolation: isolate;
  color: var(--standings-text);
  font-family: 'Causten', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
}

.standings-feed,
.standings-feed *,
.standings-feed *::before,
.standings-feed *::after {
  box-sizing: border-box;
}

.standings-feed table,
.standings-feed thead,
.standings-feed tbody,
.standings-feed tr,
.standings-feed th,
.standings-feed td {
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-style: normal;
  line-height: inherit;
  box-shadow: none;
}

.standings-feed button,
.standings-feed a {
  font-family: inherit;
}

.standings-feed.is-panel {
  overflow: hidden;
  padding: 1rem;
  border: 0;
  border-radius: 20px;
  background: var(--standings-bg);
}

.standings-filter {
  display: flex;
  width: 100%;
  gap: 2px;
  margin: 0 0 1rem;
  padding: 3px;
  overflow-x: auto;
  border: 0;
  border-radius: 14px;
  background: #fff;
  scrollbar-width: none;
}

.standings-filter::-webkit-scrollbar {
  display: none;
}

.standings-filter button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: .45rem .75rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #667085;
  font: 800 .82rem/1 'Causten', system-ui, sans-serif;
  white-space: nowrap;
  box-shadow: none;
}

.standings-filter button.active {
  background: #0042a5;
  color: #fff;
}

.standings-section + .standings-section {
  margin-top: 1.25rem;
}

.standings-section[hidden] {
  display: none;
}

.standings-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  margin: 0 0 .65rem;
}

.standings-section-title {
  margin: 0;
  color: #111827;
  font-family: 'World Condensed', 'Causten', system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.standings-live-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #0042a5;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.standings-live-pill:hover,
.standings-live-pill:focus-visible {
  background: #00388d;
  color: #fff;
}

.standings-card,
.standings-skeleton-card {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--standings-bg);
}

.standings-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.standings-table th,
.standings-table td {
  padding: .72rem .35rem;
  border: 0;
  vertical-align: middle;
}

.standings-table thead th {
  color: #667085;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.standings-rank-col {
  width: 58px;
  padding-left: 1rem !important;
  text-align: left;
}

.standings-team-col {
  width: auto;
  text-align: left;
}

.standings-stat-col {
  width: 52px;
  text-align: center;
}

.standings-goals-col {
  width: 74px;
  text-align: center;
}

.standings-points-col {
  width: 58px;
  padding-right: 1rem !important;
  font-weight: 900;
}

.standings-rank {
  display: inline-grid;
  grid-template-columns: 10px auto;
  align-items: center;
  gap: 4px;
  color: #111827;
  font-weight: 800;
}

.standings-rank-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  font-size: .62rem;
  line-height: 1;
}

.standings-rank-move.is-up {
  color: #16a34a;
}

.standings-rank-move.is-down {
  color: #dc2626;
}

.standings-rank-move.is-static {
  visibility: hidden;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.standings-team-logo,
.standings-team-fallback {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.standings-team-fallback {
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #f3f4f6;
  font-size: .75rem;
  font-weight: 800;
}

.standings-team-link {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.standings-team-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-team-name.is-short {
  display: none;
}

.standings-favorite {
  flex: 0 0 auto;
  color: #111827;
  font-size: .75rem;
  line-height: 1;
}

.standings-row.is-live {
  box-shadow: inset 3px 0 0 #0042a5;
}

.standings-row.is-highlighted {
  background: #f5f7fa;
  box-shadow: inset 3px 0 0 #111827;
}

.standings-all-link {
  display: inline-flex;
  gap: 5px;
  margin-top: .85rem;
  color: #0672ff;
  font-size: .92rem;
  text-decoration: none;
}

.standings-message {
  margin: 0;
  padding: 1rem;
  border-radius: 20px;
  background: #fff;
  color: #667085;
}

.standings-message[hidden],
.standings-loading[hidden] {
  display: none;
}

.standings-error {
  color: #b42318;
}

.standings-skeleton-section + .standings-skeleton-section {
  margin-top: 1.25rem;
}

.standings-skeleton-title,
.standings-skeleton-head,
.standings-skeleton-rank,
.standings-skeleton-logo,
.standings-skeleton-name,
.standings-skeleton-stat {
  display: block;
  background: linear-gradient(90deg, #eceff3 0%, #f8fafc 46%, #eceff3 100%);
  background-size: 220% 100%;
  animation: standings-shimmer 1.15s ease-in-out infinite;
}

.standings-skeleton-title {
  width: min(220px, 60vw);
  height: 22px;
  margin: 0 0 .65rem;
  border-radius: 7px;
}

.standings-skeleton-card {
  padding: .65rem 1rem;
}

.standings-skeleton-head {
  width: 100%;
  height: 12px;
  margin: .3rem 0 .55rem;
  border-radius: 6px;
  opacity: .65;
}

.standings-skeleton-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) repeat(4, 42px) 62px repeat(2, 42px);
  align-items: center;
  gap: .5rem;
  min-height: 52px;
}

.standings-skeleton-rank,
.standings-skeleton-name,
.standings-skeleton-stat {
  height: 14px;
  border-radius: 6px;
}

.standings-skeleton-rank {
  width: 20px;
}

.standings-skeleton-team {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.standings-skeleton-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
}

.standings-skeleton-name {
  width: min(170px, 72%);
}

.standings-skeleton-stat {
  width: 18px;
  justify-self: center;
}

@keyframes standings-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.standings-feed:not(.has-group-title) .standings-skeleton-title {
  display: none;
}

.standings-feed.is-panel .standings-card,
.standings-feed.is-panel .standings-skeleton-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

@container standings (max-width: 520px) {
  .standings-section-head {
    gap: .45rem;
    margin-bottom: .5rem;
  }

  .standings-section-title {
    font-size: 1.08rem;
  }

  .standings-live-pill {
    min-height: 22px;
    padding: 4px 7px;
    font-size: .65rem;
  }

  .standings-card,
  .standings-skeleton-card {
    padding: 0;
  }

  .standings-table th,
  .standings-table td {
    padding: .6rem .03rem;
    font-size: .7rem;
  }

  .standings-table thead th {
    font-size: .56rem;
  }

  .standings-rank-col {
    width: 34px;
    padding-left: .2rem !important;
  }

  .standings-stat-col {
    width: 20px;
  }

  .standings-goals-col {
    width: 30px;
    font-size: .65rem;
  }

  .standings-table thead .standings-goals-col {
    font-size: 0;
  }

  .standings-table thead .standings-goals-col::after {
    content: 'T';
    font-size: .56rem;
  }

  .standings-points-col {
    width: 21px;
    padding-right: .2rem !important;
  }

  .standings-team {
    gap: .2rem;
  }

  .standings-team-logo,
  .standings-team-fallback {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .standings-team-name.is-full {
    display: none;
  }

  .standings-team-name.is-short {
    display: block;
  }

  .standings-feed .standings-skeleton-row {
    grid-template-columns: 30px minmax(0, 1fr) repeat(7, 20px);
    gap: .15rem;
  }

  .standings-skeleton-logo {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .standings-skeleton-title {
    width: min(180px, 55vw);
    height: 17px;
    margin-bottom: .5rem;
  }

  .standings-feed.is-panel {
    padding: .7rem;
  }
}

@media (min-width: 768px) {
  .standings-card {
    padding: .35rem .5rem;
  }
}
