/* Soccer 411 v0.20.152 — Football hub standings: genuinely width-fitting mobile snapshot.
 * The page's official top-six ordering and the full competition table remain untouched.
 * Legacy CSS required min-width:550px even inside 320px phones, hiding Pts off-screen.
 * Show Pos / Club / P / GD / Pts on tablets and Pos / Club / P / Pts on phones.
 * Scope strictly to the Football hub snapshot; do not change complete tables. */
@media (max-width: 900px) {
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td) {
    box-sizing: border-box !important;
    padding: 10px 4px !important;
    font-variant-numeric: tabular-nums;
  }
  /* W/D/L belong in the detailed table, not a narrow top-six overview. */
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6)) {
    display: none !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):first-child {
    width: 43px !important;
    min-width: 0 !important;
    padding-inline: 3px !important;
    text-align: center !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(2) {
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;
    padding-left: 7px !important;
    padding-right: 3px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(3) {
    width: 37px !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(7) {
    width: 45px !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(8) {
    width: 56px !important;
    min-width: 0 !important;
    text-align: center !important;
    padding-inline: 3px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 7px !important;
    text-decoration: none !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    object-fit: contain !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club strong {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;
  }
  /* Row chevron adds little value at this width; club names remain links. */
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club > span {
    display: none !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-snapshot-rank {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 11px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-snapshot-points {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 34px !important;
    padding: 6px 5px !important;
    line-height: 1.2 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot th:last-child {
    font-weight: 900 !important;
    color: #d50917 !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot tbody tr:first-child .dm-snapshot-points {
    background: #cc0911 !important;
    color: #fff !important;
  }
}
@media (max-width: 560px) {
  /* All four essential columns fit even on a 320px screen, with no sideways swipe. */
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(7) {
    display: none !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):first-child {
    width: 37px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(3) {
    width: 34px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td):nth-child(8) {
    width: 52px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club {
    gap: 6px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club img {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    flex-basis: 23px !important;
  }
}
@media (max-width: 360px) {
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot :is(th, td) {
    padding-block: 9px !important;
    padding-inline: 2px !important;
  }
  body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot .dm-football-table-club strong {
    font-size: 11px !important;
  }
}
/* Preserve the existing dark-mode palette. The leader's red points pill remains legible. */
html[data-s411-effective-theme="dark"] body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot th:last-child {
  color: #ff646b !important;
}
html[data-s411-effective-theme="dark"] body .dm-football-hub-v2 .dm-football-hub-standings .dm-football-hub-table--snapshot tbody tr:first-child .dm-snapshot-points {
  background: #cc0911 !important;
  color: #fff !important;
}
