/* si-fixtures-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. Sizes follow the old gmrsports.in fixtures page;
   `--khokho` is the Telugu Yoddhas card (score pill). */

.si-fixtures-widget-01 {
  --gufm-font: Manrope, manrope, system-ui, sans-serif;
  --gufm-navy: #00327a;
  --gufm-red: #e10a15;
  --gufm-text: #00020d;
  --gufm-label: #4f4f4f;
  --gufm-value: #00204e;
  --gufm-chevron: rgb(0 2 13 / 70%);
  --gufm-reset: rgb(0 2 13 / 60%);
  --gufm-surface: #f2f2f2;
  --gufm-bar: #f2f2f2;
  --gufm-divider: rgb(0 2 13 / 10%);
  --gufm-list-divider: rgb(79 79 79 / 20%);
  --gufm-option-hover: #da3832;
  --gufm-option-line: rgb(0 50 122 / 15%);
  --gufm-white: #fff;
  --gufm-stage: #00214f;
  --gufm-stage-edge: #03e21a;
  --gufm-score: #044f96;
  --gufm-score-winner: #f5a500;
  --gufm-badge-text: #044f96;
  --gufm-badge-ring: #da3a34;
  --gufm-info: rgb(79 79 79 / 10%);
  --gufm-mfilter-icon: rgb(0 2 13 / 50%);
  --gufm-sheet-accent: #f5a500;
  --gufm-sheet-apply-text: #000;
  --gufm-logo-size: 74px;
  --gufm-logo-img: 44px;
  /* Height the empty and error states hold, so a short result doesn't pull
     the global footer up into the middle of the page. */
  --gufm-state-min-height: 60vh;

  color: var(--gufm-navy);
  /* The old site's container (540 / 720 / 960 / 1140 / 1400px by screen width;
     set below). */
  --gufm-container: 100%;

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

/* Telugu Yoddhas: blue stage, larger logos, scores in a blue pill. */
.si-fixtures-widget-01--khokho {
  --gufm-stage: #044f96;
  --gufm-logo-size: 84px;
  --gufm-logo-img: 54px;
}

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

/* Manrope on every element, so a site rule on p / span / h2 cannot swap in a
   heavier fallback. */
.si-fixtures-widget-01 * {
  font-family: var(--gufm-font);
}

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

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

.si-fixtures-widget-01 .gufm-filter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  /* 200px, or a quarter of the bar less the 7.5px gap on a narrower page
     (173px in the 720px container), as on the old page. */
  flex: 0 1 auto;
  width: min(200px, calc(25% - 7.5px));
  margin: 0 3.75px;
  padding: 5px 15px 5px 11px;
}

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

.si-fixtures-widget-01 .gufm-filter__label {
  grid-column: 1;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--gufm-label);
}

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

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

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

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

.si-fixtures-widget-01 .gufm-filter__button:disabled {
  cursor: progress;
}

.si-fixtures-widget-01 .gufm-filter__button:focus-visible {
  outline: 2px solid var(--gufm-navy);
  outline-offset: -2px;
}

/* ── Dropdown panel ─────────────────────────────────────────────────────── */

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

.si-fixtures-widget-01 .gufm-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(--gufm-navy);
  cursor: pointer;
}

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

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

.si-fixtures-widget-01 .gufm-filter__option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gufm-navy);
}

.si-fixtures-widget-01 .gufm-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(--gufm-reset);
  cursor: pointer;
}

.si-fixtures-widget-01 .gufm-reset .gufm-icon {
  width: 16px;
  height: 16px;
}

.si-fixtures-widget-01 .gufm-reset:focus-visible {
  outline: 2px solid var(--gufm-navy);
  outline-offset: -2px;
}

/* ── Status tabs ────────────────────────────────────────────────────────── */

.si-fixtures-widget-01 .gufm-tabs {
  display: flex;
  width: min(700px, 100%);
  margin: 15px auto 0;
  padding: 2px;
  border-radius: 3px;
  background: var(--gufm-bar);
}

.si-fixtures-widget-01 .gufm-tab {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 3px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--gufm-text);
  cursor: pointer;
}

.si-fixtures-widget-01 .gufm-tab--active {
  background: var(--gufm-red);
  color: var(--gufm-white);
}

.si-fixtures-widget-01 .gufm-tab:focus-visible {
  outline: 2px solid var(--gufm-navy);
  outline-offset: -2px;
}

/* ── Day groups ─────────────────────────────────────────────────────────── */

/* A line under every day but the last, as on the old page. */
.si-fixtures-widget-01 .gufm-day {
  margin-top: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gufm-list-divider);
}

.si-fixtures-widget-01 .gufm-day:last-child {
  border-bottom: 0;
}

.si-fixtures-widget-01 .gufm-day__heading {
  margin: 7.5px 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
  color: var(--gufm-text);
}

.si-fixtures-widget-01 .gufm-day__list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── Match card ─────────────────────────────────────────────────────────── */

.si-fixtures-widget-01 .gufm-card {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr) 20%;
  position: relative;
  min-height: 115px;
  background: var(--gufm-surface);
}

/* The stage block with a thin bright-green strip on its left edge. */
.si-fixtures-widget-01 .gufm-card__stage {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 7.5px 0 15px;
  background: var(--gufm-stage);
  color: var(--gufm-white);
  font-size: 16px;
  font-weight: 600;
}

.si-fixtures-widget-01 .gufm-card__stage::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gufm-stage-edge);
}

.si-fixtures-widget-01 .gufm-card__teams {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.si-fixtures-widget-01 .gufm-card__team {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.si-fixtures-widget-01 .gufm-card__team--away {
  justify-content: flex-end;
}

/* Two left-aligned lines ("Dabang" / "Delhi K.C."), centred between logo
   and score. */
.si-fixtures-widget-01 .gufm-card__name {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-width: 0;
  margin-inline: auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 15.6px;
  color: var(--gufm-text);
}

/* A true circle: fixed width and height, the logo contained inside. */
.si-fixtures-widget-01 .gufm-card__logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--gufm-logo-size);
  height: var(--gufm-logo-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gufm-white);
  overflow: hidden;
}

.si-fixtures-widget-01 .gufm-card__logo img {
  width: var(--gufm-logo-img);
  height: var(--gufm-logo-img);
  object-fit: contain;
}

.si-fixtures-widget-01 .gufm-card__logo-fallback {
  font-size: 18px;
  font-weight: 700;
  color: var(--gufm-stage);
}

.si-fixtures-widget-01 .gufm-card__scoreline {
  display: flex;
  align-items: center;
  gap: 20px;
}

.si-fixtures-widget-01 .gufm-card__score {
  min-width: 40px;
  font-size: 30px;
  font-weight: 700;
  line-height: 33px;
  text-align: center;
  color: var(--gufm-score);
}

.si-fixtures-widget-01 .gufm-card__score--winner {
  color: var(--gufm-score-winner);
}

/* "FT": the old page's ring — a 4px darker red stroke on the card (no fill)
   with a short drop shadow under it. */
.si-fixtures-widget-01 .gufm-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 4px solid var(--gufm-badge-ring);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 3px 1px rgb(0 2 13 / 20%);
  font-size: 12px;
  line-height: 13px;
  text-transform: uppercase;
  color: var(--gufm-badge-text);
}

.si-fixtures-widget-01 .gufm-card__badge--live {
  background: var(--gufm-red);
  color: var(--gufm-white);
  font-weight: 700;
}

.si-fixtures-widget-01 .gufm-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  background: var(--gufm-info);
  color: var(--gufm-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 19.6px;
  text-decoration: none;
}

/* ── Kho kho card (Telugu Yoddhas) ── */

/* A grey rounded band behind the teams… */
.si-fixtures-widget-01--khokho .gufm-card__teams::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 40px;
  left: 40px;
  height: 60px;
  border-radius: 20px;
  background: var(--gufm-info);
  transform: translateY(-50%);
}

.si-fixtures-widget-01--khokho .gufm-card__teams > * {
  position: relative;
}

/* …and both scores with the FT ring in a blue pill. */
.si-fixtures-widget-01--khokho .gufm-card__scoreline {
  gap: 10px;
  padding: 6px 18px;
  border-radius: 23px;
  background: var(--gufm-stage);
}

.si-fixtures-widget-01--khokho .gufm-card__score {
  min-width: 0;
  font-size: 18px;
  line-height: 19.8px;
  color: rgb(255 255 255 / 80%);
}

.si-fixtures-widget-01--khokho .gufm-card__score--winner {
  color: var(--gufm-score-winner);
}

.si-fixtures-widget-01--khokho .gufm-card__badge {
  width: 25px;
  height: 25px;
  border-width: 2px;
  background: var(--gufm-stage);
  font-size: 10px;
  line-height: 11px;
  color: rgb(255 255 255 / 80%);
}

/* The match centre link covers the whole card, so a click anywhere opens it
   while the card keeps a single link for keyboards and screen readers. */
.si-fixtures-widget-01 a.gufm-card__info::after {
  content: "";
  position: absolute;
  inset: 0;
}

.si-fixtures-widget-01 a.gufm-card__info:focus-visible {
  outline: none;
}

.si-fixtures-widget-01 a.gufm-card__info:focus-visible::after {
  outline: 2px solid var(--gufm-navy);
  outline-offset: -2px;
}

.si-fixtures-widget-01 .gufm-card__venue {
  font-weight: 700;
}

.si-fixtures-widget-01 .gufm-card__info .gufm-icon {
  flex: none;
  width: 18px;
  height: 18px;
}

/* ── Result states ──────────────────────────────────────────────────────── */

.si-fixtures-widget-01 .gufm-state {
  margin: 0;
  padding: 48px 0;
  font-size: 15px;
  text-align: center;
  color: var(--gufm-label);
}

/* "No matches found": the old page's light-grey box right under the tabs,
   in one style for every tab. The space below keeps the footer down. */
.si-fixtures-widget-01 .gufm-state--empty,
.si-fixtures-widget-01 .gufm-state--error {
  min-height: var(--gufm-state-min-height);
  padding: 15px 0 0;
}

.si-fixtures-widget-01 .gufm-state__box,
.si-fixtures-widget-01 p.gufm-state--error {
  margin: 0;
  padding: 15px;
  border: 0;
  border-radius: 4px;
  background: var(--gufm-bar);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  color: var(--gufm-navy);
}

.si-fixtures-widget-01 p.gufm-state--error {
  min-height: 0;
  margin-top: 15px;
}

/* The empty box sits in a 15px frame across the full width (1140 × 74 on
   the old page): grey like the box, dark on the Live tab. */
.si-fixtures-widget-01 .gufm-state__frame {
  padding: 15px;
  border-radius: 4px;
  background: var(--gufm-bar);
}

.si-fixtures-widget-01 .gufm-state__frame--live {
  background: var(--gufm-text);
}

.si-fixtures-widget-01 .gufm-results:focus,
.si-fixtures-widget-01 .gufm-results:focus-visible {
  outline: none;
}

.si-fixtures-widget-01 .gufm-state--loading {
  display: grid;
  gap: 16px;
  padding: 34px 0;
}

.si-fixtures-widget-01 .gufm-skeleton {
  height: 115px;
  background: linear-gradient(
    90deg,
    var(--gufm-surface) 25%,
    var(--gufm-info) 50%,
    var(--gufm-surface) 75%
  );
  background-size: 200% 100%;
  animation: gufm-shimmer 1.2s ease-in-out infinite;
}

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

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

/* ── Phone filter bar and panel (mobile user agent, 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). Shown only for mobile user
   agents below 768px (see the mobile block). */
.si-fixtures-widget-01 .gufm-mfilter {
  display: none;
  align-items: center;
  height: 38px;
  background: var(--gufm-bar);
}

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

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

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

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

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

.si-fixtures-widget-01 .gufm-mfilter__reset .gufm-icon {
  width: 16px;
  height: 16px;
}

.si-fixtures-widget-01 .gufm-mfilter__open:focus-visible,
.si-fixtures-widget-01 .gufm-mfilter__reset:focus-visible {
  outline: 2px solid var(--gufm-navy);
  outline-offset: -2px;
}

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

.si-fixtures-widget-01 .gufm-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(--gufm-navy);
}

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

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

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

.si-fixtures-widget-01 .gufm-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-fixtures-widget-01 .gufm-sheet .gufm-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 15px;
  border-bottom: 1px solid var(--gufm-chevron);
}

.si-fixtures-widget-01 .gufm-sheet .gufm-filter::after {
  display: none;
}

.si-fixtures-widget-01 .gufm-sheet .gufm-filter__button {
  height: 40px;
}

.si-fixtures-widget-01 .gufm-sheet .gufm-filter .gufm-icon--chevron-down {
  display: block;
  align-self: center;
  width: 18px;
  height: 18px;
}

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

.si-fixtures-widget-01 .gufm-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-fixtures-widget-01 .gufm-sheet__apply,
.si-fixtures-widget-01 .gufm-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: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

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

.si-fixtures-widget-01 .gufm-sheet__reset .gufm-icon {
  width: 16px;
  height: 16px;
}

.si-fixtures-widget-01 .gufm-sheet button:focus-visible {
  outline: 2px solid var(--gufm-navy);
  outline-offset: -2px;
}

/* ── Desktop (992px and up) ─────────────────────────────────────────────── */

/* As the old page: the logo sits out of the flow at the team's outer edge,
   and the name (7.5px off its logo side) is centred between a point 20px in
   from that edge and the score, so it sits close to the logo instead of
   floating halfway to the score. A long name may run under the logo's edge
   on a narrow desktop, as it does there. */
@media (min-width: 992px) {
  /* The name space runs up to the score's box. */
  .si-fixtures-widget-01 .gufm-card__teams {
    gap: 0;
  }

  .si-fixtures-widget-01 .gufm-card__team {
    position: relative;
    gap: 0;
    align-self: stretch;
  }

  .si-fixtures-widget-01 .gufm-card__team--home {
    padding-left: 27.5px;
  }

  .si-fixtures-widget-01 .gufm-card__team--away {
    padding-right: 27.5px;
  }

  .si-fixtures-widget-01 .gufm-card__team .gufm-card__logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .si-fixtures-widget-01 .gufm-card__team--home .gufm-card__logo {
    left: 0;
  }

  .si-fixtures-widget-01 .gufm-card__team--away .gufm-card__logo {
    right: 0;
  }

  /* Scores in 46px boxes, each pushed against the ring: the home score
     right-aligned, the away one left-aligned. */
  .si-fixtures-widget-01 .gufm-card__score {
    min-width: 46px;
    text-align: right;
  }

  .si-fixtures-widget-01 .gufm-card__badge + .gufm-card__score {
    text-align: left;
  }

  /* Kho kho: a 45px pill, 48px score boxes 7.5px either side of the ring. */
  .si-fixtures-widget-01--khokho .gufm-card__scoreline {
    height: 45px;
    gap: 7.5px;
    padding: 0;
    border-radius: 30px;
  }

  .si-fixtures-widget-01--khokho .gufm-card__score {
    min-width: 48px;
  }
}

/* ── Tablet (768–991px) ─────────────────────────────────────────────────── */

/* Still one row, as on the old page: stage and result take 22% each and the
   teams get smaller logos so they fit the 720px container. */
@media (min-width: 768px) and (max-width: 991px) {
  .si-fixtures-widget-01 {
    --gufm-logo-size: 52px;
    --gufm-logo-img: 32px;
  }

  .si-fixtures-widget-01--khokho {
    --gufm-logo-size: 40px;
    --gufm-logo-img: 40px;
  }

  .si-fixtures-widget-01 .gufm-card {
    grid-template-columns: 22% minmax(0, 1fr) 22%;
  }

  .si-fixtures-widget-01 .gufm-card__teams,
  .si-fixtures-widget-01 .gufm-card__team {
    gap: 8px;
  }

  .si-fixtures-widget-01 .gufm-card__name {
    margin-inline: 0;
    font-size: 12px;
    line-height: 14.4px;
  }

  .si-fixtures-widget-01 .gufm-card__scoreline {
    gap: 10px;
  }

  .si-fixtures-widget-01 .gufm-card__score {
    min-width: 0;
  }

  .si-fixtures-widget-01--khokho .gufm-card__teams::before {
    right: 20px;
    left: 20px;
    height: 46px;
  }
}

/* ── Mobile (below 768px) ───────────────────────────────────────────────── */

@media (max-width: 767px) {
  .si-fixtures-widget-01 {
    --gufm-state-min-height: 50vh;
    --gufm-logo-size: 40px;
    --gufm-logo-img: 40px;
    --gufm-day-gap: 27.5px;
  }

  .si-fixtures-widget-01--khokho {
    --gufm-day-gap: 22.5px;
  }

  /* Filters: one row, as on the old page — three fields sized to their text
     and the reset as an icon at the end. */
  .si-fixtures-widget-01 .gufm-filters {
    min-height: 38px;
  }

  .si-fixtures-widget-01 .gufm-filter {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 5px;
  }

  .si-fixtures-widget-01 .gufm-filter::after,
  .si-fixtures-widget-01 .gufm-filter .gufm-icon--chevron-down {
    display: none;
  }

  .si-fixtures-widget-01 .gufm-filter__label,
  .si-fixtures-widget-01 .gufm-filter__value {
    max-width: 100%;
    line-height: 19px;
  }

  .si-fixtures-widget-01 .gufm-filter__label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .si-fixtures-widget-01 .gufm-filter__menu {
    min-width: 200px;
  }

  /* The last field's list opens leftwards so it stays on screen. */
  .si-fixtures-widget-01 .gufm-filter:last-of-type .gufm-filter__menu {
    right: 0;
    left: auto;
  }

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

  /* The text stays for screen readers. */
  .si-fixtures-widget-01 .gufm-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 of the row. */
  .si-fixtures-widget-01.gufm--mobile-agent .gufm-filters {
    display: none;
  }

  .si-fixtures-widget-01.gufm--mobile-agent .gufm-mfilter {
    display: flex;
  }

  /* Days: 15px above each date, 7.5px under it and between cards. */
  .si-fixtures-widget-01 .gufm-day {
    margin-top: 15px;
    padding-bottom: var(--gufm-day-gap);
  }

  .si-fixtures-widget-01 .gufm-day__heading {
    margin: 7.5px 0;
  }

  .si-fixtures-widget-01 .gufm-day__list {
    gap: 7.5px;
  }

  /* Card: a 26px stage bar, the teams in one row, the result under them. */
  .si-fixtures-widget-01 .gufm-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .si-fixtures-widget-01 .gufm-card__stage {
    min-height: 26px;
    margin-bottom: 7.5px;
    padding: 0 7.5px;
    font-size: 12px;
    font-weight: 400;
  }

  .si-fixtures-widget-01 .gufm-card__teams {
    gap: 0;
    min-height: 46px;
    margin: 0 7.5px;
    padding: 3px 0;
  }

  /* 7.5px between logo and name, as on the old page. */
  .si-fixtures-widget-01 .gufm-card__team {
    gap: 7.5px;
  }

  .si-fixtures-widget-01 .gufm-card__name {
    margin-inline: 0;
    font-size: 12px;
    line-height: 14.4px;
  }

  .si-fixtures-widget-01 .gufm-card__scoreline {
    gap: 0;
  }

  .si-fixtures-widget-01 .gufm-card__score {
    min-width: 40px;
    padding-inline: 0 10px;
    font-size: 20px;
    line-height: 22px;
    text-align: right;
  }

  .si-fixtures-widget-01 .gufm-card__badge + .gufm-card__score {
    padding-inline: 10px 0;
    text-align: left;
  }

  .si-fixtures-widget-01 .gufm-card__badge {
    width: 35px;
    height: 35px;
    border-width: 3px;
  }

  .si-fixtures-widget-01 .gufm-card__info {
    margin: 7.5px 15px 0;
    padding: 0 0 7.5px;
    background: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
  }

  .si-fixtures-widget-01 .gufm-card__info .gufm-icon {
    display: none;
  }

  /* Kho kho: the grey band is the teams row itself; scores in a 40px pill. */
  .si-fixtures-widget-01--khokho .gufm-card__teams {
    border-radius: 20px;
    background: var(--gufm-info);
  }

  .si-fixtures-widget-01--khokho .gufm-card__teams::before {
    display: none;
  }

  .si-fixtures-widget-01--khokho .gufm-card__name {
    font-size: 10px;
    line-height: 12px;
  }

  .si-fixtures-widget-01--khokho .gufm-card__scoreline {
    height: 40px;
    padding: 0;
    border-radius: 30px;
  }

  .si-fixtures-widget-01--khokho .gufm-card__score {
    font-size: 18px;
    line-height: 19.8px;
    padding-inline: 0 7.5px;
  }

  .si-fixtures-widget-01--khokho .gufm-card__badge + .gufm-card__score {
    padding-inline: 7.5px 0;
  }

  .si-fixtures-widget-01--khokho .gufm-card__badge {
    width: 25px;
    height: 25px;
    border-width: 2px;
  }

  .si-fixtures-widget-01--khokho .gufm-card__info {
    font-size: 14px;
  }
}

/* ── 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-fixtures-widget-01 .gufm-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-fixtures-widget-01 .gufm-page-head--cover::before,
.si-fixtures-widget-01 .gufm-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-fixtures-widget-01 .gufm-page-head--pattern::before {
  background-position: right top;
  background-size: auto;
}

.si-fixtures-widget-01 .gufm-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. */
/* 576–767px: the old fixtures page stays full width with a 15px gap each side
   (the site gap reaches only below 576px). */
@media (min-width: 576px) {
  .si-fixtures-widget-01 {
    --gufm-container: calc(100% - 30px);
  }
}

@media (min-width: 768px) {
  .si-fixtures-widget-01 {
    --gufm-container: 720px;
  }
}

@media (min-width: 992px) {
  .si-fixtures-widget-01 {
    --gufm-container: 960px;
  }
}

@media (min-width: 1200px) {
  .si-fixtures-widget-01 {
    --gufm-container: 1140px;
  }
}

@media (min-width: 1600px) {
  .si-fixtures-widget-01 {
    --gufm-container: 1400px;
  }
}

/* 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;
  }
}
