.football-widget {
  --football-muted: #b4b4bd;
  --football-rule: #ffffff1c;
  width: 100%;
  min-width: 0;
  color: #f4f4f5;
  color-scheme: dark;
}
.football-widget *,
.football-widget *::before,
.football-widget *::after {
  box-sizing: border-box;
}
.football-widget-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--football-rule);
}
.football-widget-tab {
  appearance: none;
  min-width: 0;
  min-height: 44px;
  padding: 9px 6px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--football-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}
.football-widget-tab[aria-selected='true'] {
  color: #fff;
  border-bottom-color: #fff;
}
.football-widget-tab:hover {
  background: #ffffff09;
  color: #fff;
}
.football-widget-pages {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.football-widget-pages::-webkit-scrollbar {
  display: none;
}
.football-widget-page {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 284px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@supports (grid-template-rows: subgrid) {
  .football-widget-pages {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-rows: auto 1fr auto;
  }
  .football-widget-page {
    display: grid;
    grid-row: span 3;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
  }
}
.football-widget-toolbar {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.football-widget-league-label,
.football-widget-caption {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--football-muted);
}
.football-widget-league {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
  max-width: 78%;
  min-width: 90px;
  padding: 8px 5px 8px 10px;
  color: #f4f4f5;
  background: #0b0b0b;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.football-widget-body {
  min-width: 0;
  flex: 1;
}
.football-widget-body:has(> .football-widget-event),
.football-widget-body:has(> .football-widget-score) {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}
.football-widget-score {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px 0;
  border-top: 1px solid var(--football-rule);
  color: inherit;
  text-decoration: none;
}
.football-widget-match-state {
  display: grid;
  min-width: 0;
  gap: 2px;
  justify-items: start;
  color: var(--football-muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.football-widget-match-label {
  color: #d8d8dc;
  font-weight: 500;
}
.football-widget-match-state.is-live .football-widget-match-label {
  color: #a4efc6;
}
.football-widget-match-teams {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.football-widget-team {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.35;
}
.football-widget-team-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.football-widget-team-logo {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.football-widget-team-logo img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none;
}
.football-widget-team-score {
  text-align: right;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.football-widget-score .football-widget-team-name {
  font-size: 13px;
}
.football-widget-score .football-widget-team-logo,
.football-widget-score .football-widget-team-logo img {
  width: 24px;
  height: 24px;
}
.football-widget-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
}
.football-widget-event {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px 0;
  border-top: 1px solid var(--football-rule);
  color: inherit;
  text-decoration: none;
}
.football-widget-event-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  min-height: 50px;
}
.football-widget-event-crest {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 30px;
  flex: 0 0 26px;
  font-size: 13px;
  color: var(--football-muted);
}
.football-widget-event-crest img,
.football-widget-award-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.football-widget-award-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 50px;
}
.football-widget-event-identity .icon {
  width: 28px;
  height: 28px;
  color: var(--football-muted);
}
.football-widget-event-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.football-widget-event-copy > strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.football-widget-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: var(--football-muted);
  font-size: 11px;
  line-height: 1.4;
}
.football-widget-event-phase,
.football-widget-event-count {
  white-space: nowrap;
}
.football-widget-event[data-phase='open'] .football-widget-event-phase {
  color: #a4efc6;
}
.football-widget-event[data-phase='settled'] .football-widget-event-phase {
  color: #e0d3b7;
}
.football-widget-event-time {
  font-size: 11px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--football-muted);
}
.football-widget-event[data-phase='open'] .football-widget-event-time {
  color: #e6e6e9;
}
.football-widget-event > .icon {
  width: 14px;
  height: 14px;
  color: var(--football-muted);
}
.football-widget-table {
  position: relative;
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.football-widget-table-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.football-widget-table th,
.football-widget-table td {
  width: 14%;
  text-align: right;
  padding: 9px 0;
  border-top: 1px solid var(--football-rule);
  font-weight: 500;
}
.football-widget-table th:first-child {
  width: 58%;
  text-align: left;
  padding-right: 7px;
}
.football-widget-table thead th {
  padding: 7px 0;
  color: var(--football-muted);
  font-size: 11px;
  font-weight: 400;
}
.football-widget-table .football-widget-points {
  font-weight: 700;
  color: #fff;
}
.football-widget-standing-team {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.football-widget-position {
  min-width: 13px;
  text-align: left;
  color: var(--football-muted);
  font-size: 11px;
  flex: 0 0 13px;
}
.football-widget-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding-top: 3px;
}
.football-widget-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--football-muted);
}
.football-widget-status.has-error {
  color: #dcc9a5;
}
.football-widget-retry {
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.football-widget-retry[hidden] {
  display: none;
}
.football-widget-retry:disabled {
  opacity: 0.55;
  cursor: progress;
}
.football-widget-empty {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 22px 14px;
  color: var(--football-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.football-widget-empty p {
  margin: 0;
}
.football-widget a,
.football-widget button,
.football-widget select {
  -webkit-tap-highlight-color: #ffffff12;
}
.football-widget a:hover,
.football-widget-retry:hover {
  background: #ffffff07;
}
.football-widget :is(a, button, select):focus-visible {
  outline: 2px solid #eee;
  outline-offset: -2px;
  border-radius: 3px;
}
@media (max-width: 359px) {
  .football-widget-score {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
  }
  .football-widget-event {
    grid-template-columns: 48px minmax(0, 1fr) 12px;
    gap: 8px;
  }
  .football-widget-event > .icon {
    width: 12px;
    height: 12px;
  }
  .football-widget-event-identity {
    width: 48px;
  }
  .football-widget-event-crest {
    width: 22px;
    flex-basis: 22px;
  }
  .football-widget-standing-team {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .football-widget *,
  .football-widget-pages {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
