/* Compact League Table and side-by-side recent scores on mobile landscape. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 620px) {
  html.gfm-mobile-landscape body .gfm-league-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    align-items: start !important;
  }

  html.gfm-mobile-landscape body .gfm-league-table-card {
    min-width: 0 !important;
    padding: 5px !important;
    overflow: hidden !important;
  }

  html.gfm-mobile-landscape body .gfm-league-table-heading {
    margin: 1px 0 4px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  html.gfm-mobile-landscape body .gfm-league-table-card > .flex.flex-wrap {
    margin-bottom: 4px !important;
    gap: 3px 8px !important;
    font-size: 8px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  html.gfm-mobile-landscape body table.gfm-league-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 9px !important;
  }

  html.gfm-mobile-landscape body table.gfm-league-table th,
  html.gfm-mobile-landscape body table.gfm-league-table td {
    padding: 3px 2px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html.gfm-mobile-landscape body table.gfm-league-table th:first-child,
  html.gfm-mobile-landscape body table.gfm-league-table td:first-child {
    width: 34% !important;
    text-align: left !important;
  }

  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(2),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(2),
  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(3),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(3),
  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(4),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(4),
  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(5),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(5) { width: 6% !important; }

  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(6),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(6),
  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(7),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(7) { width: 7% !important; }

  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(8),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(8),
  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(9),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(9) { width: 8% !important; }

  html.gfm-mobile-landscape body table.gfm-league-table th:nth-child(10),
  html.gfm-mobile-landscape body table.gfm-league-table td:nth-child(10) {
    width: 12% !important;
    font-size: 8px !important;
  }

  html.gfm-mobile-landscape body table.gfm-league-table .gfm-club-logo,
  html.gfm-mobile-landscape body table.gfm-league-table .gfm-club-logo svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    margin-right: 3px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last {
    display: none !important;
  }
}

@media (pointer: coarse) and (orientation: landscape) and (min-width: 820px) and (max-height: 620px) {
  html.gfm-mobile-landscape body .gfm-league-split {
    grid-template-columns: minmax(0, 1.65fr) minmax(245px, .85fr) !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last {
    display: block !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 95px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px !important;
    border-radius: 9px !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last h4 {
    margin: 0 0 3px !important;
    font-size: 11px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last .gfm-euro-last-sub {
    margin-bottom: 5px !important;
    font-size: 8px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last .gfm-euro-last-list {
    gap: 3px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last .gfm-euro-last-row {
    min-height: 27px !important;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px !important;
    gap: 3px !important;
    padding: 3px 4px !important;
    font-size: 8px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last .gfm-euro-last-row .gfm-club-logo,
  html.gfm-mobile-landscape body .gfm-league-last .gfm-euro-last-row .gfm-club-logo svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    margin-right: 2px !important;
  }

  html.gfm-mobile-landscape body .gfm-league-last .gfm-euro-last-row b {
    min-width: 18px !important;
    font-size: 10px !important;
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-width: 819px) and (max-height: 620px) {
  html.gfm-mobile-landscape body .gfm-league-last {
    display: block !important;
    max-height: 180px !important;
    overflow-y: auto !important;
  }
}
