/* si-stats-widget-01 — every selector is scoped under the plugin root.
   Colours are custom properties so a tenant theme can override them without
   touching this file; the binding's header colour arrives inline
   (--sisw-head). Sizes follow the old gmrsports.in stats pages. */

.si-stats-widget-01 {
  --sisw-font: Manrope, manrope, system-ui, sans-serif;
  --sisw-text: #00020d;
  --sisw-muted: rgb(79 79 79 / 80%);
  --sisw-bar: #f2f2f2;
  --sisw-filter-label: #4f4f4f;
  --sisw-filter-value: #00204e;
  --sisw-filter-divider: rgb(0 2 13 / 10%);
  --sisw-chevron: rgb(0 2 13 / 70%);
  --sisw-reset: rgb(0 2 13 / 60%);
  --sisw-ink: #313cae;
  /* Cricket table text; India Capitals sets #162b71 / #12264f
     (player_name_color / number_color, inline). */
  --sisw-name: var(--sisw-ink);
  --sisw-number: var(--sisw-ink);
  --sisw-head: #2b3278;
  --sisw-head-text: #fff;
  --sisw-row: #f2f2f2;
  --sisw-cell-border: rgb(0 2 13 / 10%);
  --sisw-badge-bg: rgb(0 50 122 / 10%);
  --sisw-card-head: #00204e;
  --sisw-card-body: #f2f2f2;
  --sisw-card-ink: #00204e;
  --sisw-card-border: #f2f2f2;
  --sisw-photo-border: rgb(0 2 13 / 17%);
  --sisw-empty: #00327a;
  --sisw-more: #e00a15;
  /* "Load More" border; India Capitals sets the label's own red
     (load_more_border_color, inline). */
  --sisw-more-border: rgb(224 10 21 / 20%);
  --sisw-white: #fff;
  --sisw-option-text: #00327a;
  --sisw-option-line: rgb(0 50 122 / 15%);
  --sisw-option-hover: #da3832;
  --sisw-mfilter-icon: rgb(0 2 13 / 50%);
  --sisw-sheet-head: #00327a;
  --sisw-sheet-accent: #f5a500;
  --sisw-sheet-apply-text: #000;
  /* Height the empty and error states hold, so a short result doesn't pull
     the global footer up into the middle of the page. */
  --sisw-state-min-height: 60vh;

  /* The old site's container (540 / 720 / 960 / 1140 / 1400px by screen width;
     set below), less its 15px gutters. */
  --sisw-container: 100%;

  max-width: var(--sisw-container);
  margin: 0 auto;
  padding: 16px 0;
  font-family: var(--sisw-font);
  color: var(--sisw-text);
}

.si-stats-widget-01,
.si-stats-widget-01 *,
.si-stats-widget-01 *::before,
.si-stats-widget-01 *::after {
  box-sizing: border-box;
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */

.si-stats-widget-01 .sisw-filters {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  background: var(--sisw-bar);
}

.si-stats-widget-01 .sisw-filter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  /* As the old bar: 207px each (a 200px box and its margins); narrower on
     tablets, where the three share the bar less the Reset area (170px at
     820). */
  width: min(207px, calc((100% - 180px) / 3));
  padding: 5px 15px 5px 11px;
}

/* The divider stops short of the bar's top and bottom, as on the old page. */
.si-stats-widget-01 .sisw-filter::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  bottom: 5px;
  width: 1px;
  background: var(--sisw-filter-divider);
}

.si-stats-widget-01 .sisw-filter__label {
  grid-column: 1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--sisw-filter-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-stats-widget-01 .sisw-filter__value {
  grid-column: 1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--sisw-filter-value);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-stats-widget-01 .sisw-filter .sisw-icon--chevron-down {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  color: var(--sisw-chevron);
}

.si-stats-widget-01 .sisw-filter--open .sisw-icon--chevron-down {
  transform: rotate(180deg);
}

/* The button covers the whole field; the label/value above is what shows. */
.si-stats-widget-01 .sisw-filter__button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.si-stats-widget-01 .sisw-filter__button:disabled {
  cursor: progress;
}

.si-stats-widget-01 .sisw-filter__button:focus-visible {
  outline: 2px solid var(--sisw-option-text);
  outline-offset: -2px;
}

.si-stats-widget-01 .sisw-filter__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  width: 100%;
  max-height: 300px;
  padding: 0;
  overflow-y: auto;
  border-radius: 0 0 4px 4px;
  background: var(--sisw-bar);
  box-shadow: 0 0 5px 3px rgb(0 2 13 / 25%);
  scrollbar-width: thin;
  scrollbar-color: #9a9a9a transparent;
}

.si-stats-widget-01 .sisw-filter__option {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--sisw-option-text);
  cursor: pointer;
}

/* A faint line under each option, inset from the sides, as on the old page. */
.si-stats-widget-01 .sisw-filter__option::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 1px;
  background: var(--sisw-option-line);
}

/* Hover, keyboard focus and the picked value: red with white text. */
.si-stats-widget-01 .sisw-filter__option:hover,
.si-stats-widget-01 .sisw-filter__option:focus-visible,
.si-stats-widget-01 .sisw-filter__option--selected {
  outline: none;
  background: var(--sisw-option-hover);
  color: var(--sisw-white);
}

.si-stats-widget-01 .sisw-filter__option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sisw-option-text);
}

.si-stats-widget-01 .sisw-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 30px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--sisw-reset);
  cursor: pointer;
}

.si-stats-widget-01 .sisw-reset .sisw-icon {
  width: 16px;
  height: 16px;
}

.si-stats-widget-01 .sisw-reset:focus-visible {
  outline: 2px solid var(--sisw-option-text);
  outline-offset: -2px;
}

.si-stats-widget-01 .sisw-results {
  margin-top: 15px;
}

/* ── Team badge (logo in a circle) ──────────────────────────────────────── */

.si-stats-widget-01 .sisw-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.si-stats-widget-01 .sisw-badge--sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sisw-badge-bg);
}

.si-stats-widget-01 .sisw-badge--lg {
  width: 60px;
  height: 60px;
}

.si-stats-widget-01 .sisw-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.si-stats-widget-01 .sisw-badge--lg img {
  width: 100%;
  height: 100%;
}

.si-stats-widget-01 .sisw-badge__initials {
  font-size: 12px;
  font-weight: 700;
  color: var(--sisw-ink);
}

/* ── Cricket table ──────────────────────────────────────────────────────── */

.si-stats-widget-01 .sisw-table-wrap {
  overflow-x: auto;
}

.si-stats-widget-01 .sisw-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--sisw-number);
  font-size: 14px;
  font-weight: 600;
  line-height: 16.8px;
  text-align: center;
}

/* One solid header: no cell borders, whatever the column. */
.si-stats-widget-01 .sisw-table th {
  height: 50px;
  padding: 0 7.5px;
  border: 0;
  background: var(--sisw-head);
  color: var(--sisw-head-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 14.4px;
  white-space: nowrap;
}

.si-stats-widget-01 .sisw-table td {
  height: 70px;
  padding: 0 7.5px;
  border-right: 1px solid var(--sisw-cell-border);
}

.si-stats-widget-01 .sisw-table td:last-child {
  border-right: 0;
}

.si-stats-widget-01 .sisw-table tbody tr:nth-child(odd) {
  background: var(--sisw-row);
}

/* The column the stat ranks by: the header colour, faint. */
.si-stats-widget-01 .sisw-table td.sisw-table__highlight {
  background: color-mix(in srgb, var(--sisw-head) 10%, transparent);
  font-weight: 700;
}

/* As the old table at any width: POS 6.1%, TEAMS 22.8% (68 / 253px of
   1110px), the ranking column 9.7%, the rest shared evenly (fixed layout on
   desktop, below). */
.si-stats-widget-01 .sisw-table .sisw-table__pos {
  width: 6.1%;
  font-weight: 600;
}

.si-stats-widget-01 .sisw-table .sisw-table__player {
  width: 22.8%;
  padding-left: 15px;
  text-align: left;
}

.si-stats-widget-01 .sisw-table th.sisw-table__highlight {
  width: 9.7%;
}

@media (min-width: 992px) {
  .si-stats-widget-01 .sisw-table {
    table-layout: fixed;
  }
}

/* Tablet: 13 columns in 690px. As the old table, the columns size to their
   numbers and the player name wraps, so every column fits on screen. */
@media (min-width: 768px) and (max-width: 991px) {
  .si-stats-widget-01 .sisw-table th,
  .si-stats-widget-01 .sisw-table td {
    padding: 0 4px;
  }

  .si-stats-widget-01 .sisw-table .sisw-table__player {
    width: auto;
    padding-left: 8px;
  }

  .si-stats-widget-01 .sisw-table .sisw-table__pos,
  .si-stats-widget-01 .sisw-table th.sisw-table__highlight {
    width: auto;
  }
}

.si-stats-widget-01 .sisw-player {
  display: flex;
  align-items: center;
  gap: 7.5px;
  color: var(--sisw-name);
}

.si-stats-widget-01 .sisw-player__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.si-stats-widget-01 .sisw-player__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 16.8px;
}

.si-stats-widget-01 .sisw-player__team {
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
}

/* No rows: the header stays, over a grey "NO DATA AVAILABLE" box. */
.si-stats-widget-01 .sisw-table tbody tr.sisw-table__empty td {
  height: 44px;
  padding: 15px;
  border: 0;
  border-radius: 0 0 4px 4px;
  background: var(--sisw-bar);
  color: var(--sisw-empty);
  text-transform: uppercase;
}

/* "Load More" under the table (Team = All). */
.si-stats-widget-01 .sisw-more {
  display: block;
  width: 140px;
  height: 30px;
  margin-top: 15px;
  padding: 0;
  border: 1px solid var(--sisw-more-border);
  border-radius: 3px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--sisw-more);
  cursor: pointer;
}

.si-stats-widget-01 .sisw-more:hover {
  border-color: var(--sisw-more);
}

.si-stats-widget-01 .sisw-more:focus-visible {
  outline: 2px solid var(--sisw-more);
  outline-offset: 2px;
}

/* ── Leader card (kabaddi, kho kho): the one leader ─────────────────────
   As the old card grid (15px gaps): the full width on phones, half from
   768px, a third from 1200px (360px at 1440, 337.5 at 820). */

.si-stats-widget-01 .sisw-cards {
  --sisw-card-width: 100%;

  display: flex;
  margin: 0;
}

@media (min-width: 768px) {
  .si-stats-widget-01 .sisw-cards {
    --sisw-card-width: calc((100% - 15px) / 2);
  }
}

@media (min-width: 1200px) {
  .si-stats-widget-01 .sisw-cards {
    --sisw-card-width: calc((100% - 30px) / 3);
  }
}

.si-stats-widget-01 .sisw-card {
  display: flex;
  width: var(--sisw-card-width);
  max-width: 100%;
  flex-direction: column;
  border: 1px solid var(--sisw-card-border);
  border-radius: 3px;
  overflow: hidden;
  color: var(--sisw-card-ink);
}

.si-stats-widget-01 .sisw-card__head {
  margin: 0;
  padding: 7.5px 15px;
  background: var(--sisw-card-head);
  color: var(--sisw-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
}

.si-stats-widget-01 .sisw-card__body {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  min-height: 206px;
  padding: 15px;
  background: var(--sisw-card-body);
}

.si-stats-widget-01 .sisw-card__who {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.si-stats-widget-01 .sisw-card__name {
  display: flex;
  flex-direction: column;
  margin: 15px 0 7.5px;
  font-size: 16px;
  line-height: 22px;
}

.si-stats-widget-01 .sisw-card__first {
  font-weight: 700;
}

.si-stats-widget-01 .sisw-card__last {
  font-weight: 400;
}

.si-stats-widget-01 .sisw-card__role {
  margin: 7.5px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--sisw-muted);
}

.si-stats-widget-01 .sisw-card__score {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
}

.si-stats-widget-01 .sisw-card__photo {
  display: block;
  width: 110px;
  height: 110px;
  overflow: hidden;
  border: 1px solid var(--sisw-photo-border);
  border-radius: 50%;
  background: var(--sisw-white);
}

.si-stats-widget-01 .sisw-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Value and its label: centred under the photo in a column as wide as it,
   as on the old card. */
.si-stats-widget-01 .sisw-card__value,
.si-stats-widget-01 .sisw-card__value-label {
  display: block;
  width: 110px;
  text-align: center;
}

.si-stats-widget-01 .sisw-card__value {
  margin-top: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 49px;
}

.si-stats-widget-01 .sisw-card__value-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  color: var(--sisw-muted);
}

.si-stats-widget-01 .sisw-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 10px 0;
  background: var(--sisw-white);
  text-align: center;
}

.si-stats-widget-01 .sisw-card__foot > div + div {
  border-left: 1px solid var(--sisw-cell-border);
}

.si-stats-widget-01 .sisw-card__foot dt {
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  text-transform: uppercase;
}

.si-stats-widget-01 .sisw-card__foot dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
}

/* ── States ─────────────────────────────────────────────────────────────── */

.si-stats-widget-01 .sisw-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sisw-state-min-height);
  margin: 0;
  font-size: 15px;
  text-align: center;
  color: var(--sisw-muted);
}

/* Kabaddi / kho kho with no leader: a 360px grey box, centred at the top. */
.si-stats-widget-01 .sisw-state--empty {
  align-items: flex-start;
}

.si-stats-widget-01 .sisw-state__box {
  width: 360px;
  max-width: 100%;
  padding: 15px;
  border-radius: 4px;
  background: var(--sisw-bar);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--sisw-empty);
}

.si-stats-widget-01 .sisw-skeleton {
  min-height: var(--sisw-state-min-height);
  background: linear-gradient(
    90deg,
    var(--sisw-bar) 25%,
    var(--sisw-white) 50%,
    var(--sisw-bar) 75%
  );
  background-size: 200% 100%;
  animation: sisw-shimmer 1.2s ease-in-out infinite;
}

@keyframes sisw-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .si-stats-widget-01 .sisw-skeleton {
    animation: none;
  }
}

/* ── Phone filter bar and panel (below 768px) ───────────────────────────── */

/* As the old pages on phones: one 38px "Filter" bar with a filter and a
   reset icon; the filter icon opens a full-screen "Adjust Filters" panel
   (fields stacked, Apply / Reset at the bottom). Hidden from 768px. */
.si-stats-widget-01 .sisw-mfilter {
  display: none;
  align-items: center;
  height: 38px;
  background: var(--sisw-bar);
}

.si-stats-widget-01 .sisw-mfilter__open,
.si-stats-widget-01 .sisw-mfilter__reset {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.si-stats-widget-01 .sisw-mfilter__open {
  flex: 1 1 auto;
  justify-content: space-between;
  min-width: 0;
  padding-left: 8px;
}

.si-stats-widget-01 .sisw-mfilter__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--sisw-filter-value);
}

.si-stats-widget-01 .sisw-mfilter .sisw-icon--filter {
  width: 24px;
  height: 14px;
  margin-right: 7.5px;
  color: var(--sisw-mfilter-icon);
}

.si-stats-widget-01 .sisw-mfilter__reset {
  flex: none;
  justify-content: center;
  width: 30px;
  color: var(--sisw-mfilter-icon);
}

.si-stats-widget-01 .sisw-mfilter__reset .sisw-icon {
  width: 16px;
  height: 16px;
}

.si-stats-widget-01 .sisw-mfilter__open:focus-visible,
.si-stats-widget-01 .sisw-mfilter__reset:focus-visible {
  outline: 2px solid var(--sisw-option-text);
  outline-offset: -2px;
}

.si-stats-widget-01 .sisw-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: var(--sisw-white);
}

.si-stats-widget-01 .sisw-sheet__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 7.5px;
  border-radius: 0 0 4px 4px;
  background: var(--sisw-sheet-head);
}

.si-stats-widget-01 .sisw-sheet__title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  color: var(--sisw-white);
}

.si-stats-widget-01 .sisw-sheet__cancel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--sisw-white);
  cursor: pointer;
}

.si-stats-widget-01 .sisw-sheet__cancel .sisw-icon {
  width: 12px;
  height: 12px;
  color: var(--sisw-sheet-accent);
}

.si-stats-widget-01 .sisw-sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
}

/* Each field: a 40px full-width row with a line under it; its list opens
   in place, pushing the next fields down. */
.si-stats-widget-01 .sisw-sheet .sisw-filter {
  width: 100%;
  min-height: 40px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  padding: 0 15px;
  border-bottom: 1px solid var(--sisw-chevron);
}

/* Two 19.5px lines and the 1px line: 40px a row, as the old panel. */
.si-stats-widget-01 .sisw-sheet .sisw-filter__label,
.si-stats-widget-01 .sisw-sheet .sisw-filter__value {
  line-height: 19.5px;
}

.si-stats-widget-01 .sisw-sheet .sisw-filter::after {
  display: none;
}

.si-stats-widget-01 .sisw-sheet .sisw-filter__button {
  height: 40px;
}

.si-stats-widget-01 .sisw-sheet .sisw-filter .sisw-icon--chevron-down {
  align-self: center;
  width: 18px;
  height: 18px;
}

.si-stats-widget-01 .sisw-sheet .sisw-filter__menu {
  position: relative;
  top: auto;
  z-index: 1;
  grid-column: 1 / -1;
  width: auto;
  margin: 0 -15px;
  padding: 0 7.5px;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
}

.si-stats-widget-01 .sisw-sheet__foot {
  display: flex;
  flex: none;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
  box-shadow: 0 1px 10px 1px rgb(0 2 13 / 30%);
}

.si-stats-widget-01 .sisw-sheet__apply,
.si-stats-widget-01 .sisw-sheet__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.si-stats-widget-01 .sisw-sheet__apply {
  background: var(--sisw-sheet-accent);
  color: var(--sisw-sheet-apply-text);
}

.si-stats-widget-01 .sisw-sheet__reset {
  background: var(--sisw-bar);
  color: var(--sisw-chevron);
}

.si-stats-widget-01 .sisw-sheet__reset .sisw-icon {
  width: 16px;
  height: 16px;
}

.si-stats-widget-01 .sisw-sheet button:focus-visible {
  outline: 2px solid var(--sisw-option-text);
  outline-offset: -2px;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .si-stats-widget-01 {
    --sisw-state-min-height: 50vh;
  }

  /* As the old pages in a narrow desktop window: the filters side by side in
     a 38px bar, each as wide as its text, no chevrons or dividers; Reset
     as a 30px icon at the right. */
  .si-stats-widget-01 .sisw-filters {
    min-height: 38px;
  }

  .si-stats-widget-01 .sisw-filters > .sisw-filter {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    grid-template-columns: minmax(0, auto);
    padding: 0 7.5px;
  }

  .si-stats-widget-01 .sisw-filters > .sisw-filter::after,
  .si-stats-widget-01 .sisw-filters .sisw-icon--chevron-down {
    display: none;
  }

  .si-stats-widget-01 .sisw-filters .sisw-filter__label,
  .si-stats-widget-01 .sisw-filters .sisw-filter__value {
    line-height: 19px;
  }

  .si-stats-widget-01 .sisw-filters .sisw-filter__menu {
    width: max(100%, 180px);
  }

  .si-stats-widget-01 .sisw-filters .sisw-reset {
    flex: none;
    justify-content: center;
    width: 30px;
    padding: 0;
  }

  .si-stats-widget-01 .sisw-filters .sisw-reset > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Phones and tablets (mobile user agent, as the old pages decide): the one
     "Filter" bar instead. */
  .si-stats-widget-01.sisw--mobile-agent .sisw-filters {
    display: none;
  }

  .si-stats-widget-01.sisw--mobile-agent .sisw-mfilter {
    display: flex;
  }

  /* As the old table on phones: POS, TEAMS and the ranking column only
     (15 / 60 / 25%), a 35px header and 12px numbers; fits the screen. */
  .si-stats-widget-01 .sisw-table {
    table-layout: fixed;
    font-size: 12px;
    line-height: 14px;
  }

  .si-stats-widget-01
    .sisw-table
    tr:not(.sisw-table__empty)
    > :not(.sisw-table__pos, .sisw-table__player, .sisw-table__highlight) {
    display: none;
  }

  .si-stats-widget-01 .sisw-table th {
    height: 35px;
  }

  .si-stats-widget-01 .sisw-table .sisw-table__pos {
    width: 15%;
  }

  .si-stats-widget-01 .sisw-table .sisw-table__player {
    width: 60%;
  }

  .si-stats-widget-01 .sisw-table th.sisw-table__highlight {
    width: 25%;
  }

  /* The table no longer scrolls sideways; a long name wraps. */
  .si-stats-widget-01 .sisw-player__text {
    overflow-wrap: anywhere;
  }
}

/* Phones (user agent, as the old pages decide) keep that three-column table
   at any width, held sideways included; tablets get every column. */
.si-stats-widget-01.sisw--phone-agent .sisw-table {
  table-layout: fixed;
  font-size: 12px;
  line-height: 14px;
}

.si-stats-widget-01.sisw--phone-agent
  .sisw-table
  tr:not(.sisw-table__empty)
  > :not(.sisw-table__pos, .sisw-table__player, .sisw-table__highlight) {
  display: none;
}

.si-stats-widget-01.sisw--phone-agent .sisw-table th {
  height: 35px;
}

.si-stats-widget-01.sisw--phone-agent .sisw-table .sisw-table__pos {
  width: 15%;
}

.si-stats-widget-01.sisw--phone-agent .sisw-table .sisw-table__player {
  width: 60%;
}

.si-stats-widget-01.sisw--phone-agent .sisw-table th.sisw-table__highlight {
  width: 25%;
}

.si-stats-widget-01.sisw--phone-agent .sisw-player__text {
  overflow-wrap: anywhere;
}

/* ── Page heading band (page_title …) ──────────────────────────────────── */

/* As the old team pages: a 75px band to the screen edges, the title in the
   plugin's column. The colour reaches the edges as a side-clipped shadow (the
   page does not widen); the image layer is sized to the screen in the browser
   (--page-head-left / --page-head-width, set by shared/page-head). */
.si-stats-widget-01 .sisw-page-head {
  --page-head-bg: #00327a;
  --page-head-color: #fff;
  --page-head-image: none;
  --page-head-left: 0px;
  /* 0 until sized to the screen in the browser: the colour shows first, never a cropped image. */
  --page-head-width: 0px;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 75px;
  margin: -16px 0 15px;
  padding: 20px 0;
  background: var(--page-head-bg);
  box-shadow: 0 0 0 100vmax var(--page-head-bg);
  clip-path: inset(0 -100vmax);
  color: var(--page-head-color);
}

.si-stats-widget-01 .sisw-page-head--cover::before,
.si-stats-widget-01 .sisw-page-head--pattern::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: var(--page-head-left);
  width: var(--page-head-width);
  background: var(--page-head-image) center / cover no-repeat;
}

/* Dubai Capitals: the pattern at the top-right at its own size. */
.si-stats-widget-01 .sisw-page-head--pattern::before {
  background-position: right top;
  background-size: auto;
}

.si-stats-widget-01 .sisw-page-head__title {
  margin: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-transform: capitalize;
}

/* The old site's container width by screen size. */
@media (min-width: 576px) {
  .si-stats-widget-01 {
    --sisw-container: 510px;
  }
}

@media (min-width: 768px) {
  .si-stats-widget-01 {
    --sisw-container: 690px;
  }
}

@media (min-width: 992px) {
  .si-stats-widget-01 {
    --sisw-container: 930px;
  }
}

@media (min-width: 1200px) {
  .si-stats-widget-01 {
    --sisw-container: 1110px;
  }
}

@media (min-width: 1600px) {
  .si-stats-widget-01 {
    --sisw-container: 1370px;
  }
}

/* si-language-toggle-01: EN / हि switch. Colours come from the binding as
   inline custom properties on the root. */

.si-language-toggle-01 {
  --silt-text: #fff;
  --silt-track: #fff;
  --silt-knob: #f5a300;
  display: inline-flex;
  align-items: center;
}

.si-language-toggle-01 .silt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 4px;
  color: var(--silt-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

/* The link's name, for screen readers only. */
.si-language-toggle-01 .silt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.si-language-toggle-01 .silt-toggle:focus-visible {
  outline: 2px solid var(--silt-text);
  outline-offset: 2px;
}

.si-language-toggle-01 .silt-track {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 46px;
  height: 24px;
  border: 2px solid var(--silt-track);
  border-radius: 999px;
}

.si-language-toggle-01 .silt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--silt-knob);
  transition: transform 0.2s ease;
}

/* On a Hindi page the knob sits on the हि side. */
.si-language-toggle-01--hi .silt-knob {
  transform: translateX(22px);
}

.si-language-toggle-01 .silt-toggle:hover .silt-knob {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 25%);
}

@media (prefers-reduced-motion: reduce) {
  .si-language-toggle-01 .silt-knob {
    transition: none;
  }
}
