/*
 * Score9ja Live Matches responsive hardening — v6.13.51
 * Route-scoped to /football/live-matches/ only.
 * No data, routing, cache, API, or desktop visual-system changes.
 */
.s9j-route-live-matches,
.s9j-route-live-matches .entity-shell,
.s9j-route-live-matches .s9j-route-body,
.s9j-route-live-matches .s9j-v48-live,
.s9j-route-live-matches .s9j-v48-layout,
.s9j-route-live-matches .s9j-v48-main,
.s9j-route-live-matches .s9j-v48-side,
.s9j-route-live-matches .s9j-v48-live-panel,
.s9j-route-live-matches .s9j-v48-league,
.s9j-route-live-matches .s9j-v48-rows,
.s9j-route-live-matches .s9j-v48-card {
  min-width: 0;
  max-width: 100%;
}

.s9j-route-live-matches {
  overflow-x: clip;
}

.s9j-route-live-matches .s9j-v48-league > header .identity,
.s9j-route-live-matches .s9j-v48-league > header .identity > span,
.s9j-route-live-matches .s9j-v48-rows .team,
.s9j-route-live-matches .s9j-v48-rows .team b,
.s9j-route-live-matches .s9j-v48-live-panel > header > div {
  min-width: 0;
}

@media (max-width: 720px) {
  .s9j-route-live-matches .entity-shell {
    width: min(100% - 16px, 1180px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-inline: auto;
  }

  .s9j-route-live-matches .s9j-v48-hero,
  .s9j-route-live-matches .s9j-v48-live,
  .s9j-route-live-matches .s9j-v48-layout,
  .s9j-route-live-matches .s9j-v48-main,
  .s9j-route-live-matches .s9j-v48-live-panel,
  .s9j-route-live-matches .s9j-v48-side {
    width: 100%;
    max-width: 100%;
  }

  /* Mobile navigation is a real wrapped control group instead of a clipped strip. */
  .s9j-route-live-matches .s9j-v48-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 11px 11px;
  }

  .s9j-route-live-matches .s9j-v48-switcher > * {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 8px 9px;
    justify-content: center;
    white-space: normal;
    text-align: center;
    border-right: 1px solid #edf2ef;
    border-bottom: 1px solid #edf2ef;
  }

  .s9j-route-live-matches .s9j-v48-switcher > *:nth-child(2n) {
    border-right: 0;
  }

  .s9j-route-live-matches .s9j-v48-switcher .filter-trigger {
    grid-column: 1 / -1;
    margin-left: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .s9j-route-live-matches .s9j-v48-filter-panel {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .s9j-route-live-matches .s9j-v48-filter-panel label,
  .s9j-route-live-matches .s9j-v48-filter-panel select,
  .s9j-route-live-matches .s9j-v48-filter-panel button {
    width: 100%;
    min-width: 0;
  }

  .s9j-route-live-matches .s9j-v48-filter-panel button {
    grid-column: auto;
  }

  .s9j-route-live-matches .s9j-v48-live-panel > header {
    gap: 8px;
    min-width: 0;
  }

  .s9j-route-live-matches .s9j-v48-live-panel > header > div {
    flex-wrap: wrap;
  }

  .s9j-route-live-matches .s9j-v48-live-panel > header em {
    flex: 0 1 auto;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .s9j-route-live-matches .s9j-v48-league > header {
    gap: 8px;
  }

  .s9j-route-live-matches .s9j-v48-league > header .identity {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .s9j-route-live-matches .s9j-v48-league > header .identity > span {
    overflow: hidden;
  }

  .s9j-route-live-matches .s9j-v48-league > header strong,
  .s9j-route-live-matches .s9j-v48-league > header small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .s9j-route-live-matches .s9j-v48-league > header > b {
    flex: 0 0 auto;
  }

  .s9j-route-live-matches .s9j-v48-rows article {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 5px;
    padding: 9px 7px;
    overflow: hidden;
  }

  .s9j-route-live-matches .s9j-v48-rows .centre,
  .s9j-route-live-matches .s9j-v48-rows .open {
    display: none;
  }

  .s9j-route-live-matches .s9j-v48-rows .minute {
    width: 36px;
    min-width: 0;
    justify-self: start;
  }

  .s9j-route-live-matches .s9j-v48-rows .team {
    width: 100%;
    max-width: 100%;
    gap: 4px;
    overflow: hidden;
  }

  .s9j-route-live-matches .s9j-v48-rows .team.home {
    justify-content: flex-end;
  }

  .s9j-route-live-matches .s9j-v48-rows .team b {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
  }

  .s9j-route-live-matches .s9j-v48-rows .team img,
  .s9j-route-live-matches .s9j-v48-rows .team i {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }

  .s9j-route-live-matches .s9j-v48-rows .score {
    min-width: 0;
  }

  .s9j-route-live-matches .s9j-v48-rows .score strong {
    white-space: nowrap;
  }

  .s9j-route-live-matches .s9j-v48-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .s9j-route-live-matches .s9j-v48-card,
  .s9j-route-live-matches .s9j-v48-card.next > div > a,
  .s9j-route-live-matches .s9j-v48-card.competitions > div > div,
  .s9j-route-live-matches .s9j-v48-card.stats .stats-grid {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .s9j-route-live-matches .s9j-v48-hero {
    padding-inline: 18px;
  }

  .s9j-route-live-matches .s9j-v48-hero-copy h1 {
    font-size: clamp(34px, 10vw, 39px);
  }

  .s9j-route-live-matches .s9j-v48-hero-copy p {
    max-width: 100%;
  }

  .s9j-route-live-matches .s9j-v48-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .s9j-route-live-matches .s9j-v48-hero-stats > div {
    min-width: 0;
    padding-inline: 4px;
  }

  .s9j-route-live-matches .s9j-v48-hero-stats span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .s9j-route-live-matches .s9j-v48-live-panel > header em {
    display: none;
  }

  .s9j-route-live-matches .s9j-v48-rows article {
    grid-template-columns: 39px minmax(0, 1fr) 52px minmax(0, 1fr);
    gap: 4px;
    min-height: 68px;
    padding-inline: 6px;
  }

  .s9j-route-live-matches .s9j-v48-rows .minute {
    width: 33px;
  }

  .s9j-route-live-matches .s9j-v48-rows .team b {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .s9j-route-live-matches .s9j-v48-rows .score strong {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .s9j-route-live-matches .entity-shell {
    width: min(100% - 12px, 1180px) !important;
    max-width: calc(100vw - 12px) !important;
  }

  .s9j-route-live-matches .s9j-v48-switcher > * {
    padding-inline: 6px;
    font-size: 10px;
  }

  .s9j-route-live-matches .s9j-v48-rows article {
    grid-template-columns: 36px minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 3px;
    padding-inline: 5px;
  }

  .s9j-route-live-matches .s9j-v48-rows .minute {
    width: 31px;
    font-size: 8px;
  }

  .s9j-route-live-matches .s9j-v48-rows .team img,
  .s9j-route-live-matches .s9j-v48-rows .team i {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .s9j-route-live-matches .s9j-v48-rows .team b {
    font-size: 9px;
  }
}
