/* Football hub — /football/ */

.fh-page {
  padding-block: 20px 48px;
}

.fh-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-navy-900) 0%, var(--color-navy-800) 100%);
  border-radius: 16px;
  color: var(--color-white);
}

.fh-hero__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fh-hero__sub {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fh-hero__cta {
  flex-shrink: 0;
}

.fh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.fh-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.fh-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fh-panel__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
}

.fh-panel__head .fh-panel__title {
  margin-bottom: 0;
}

.fh-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(217, 48, 37, 0.1);
  color: var(--color-live);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fh-live-grid {
  margin-bottom: 0;
}

.mc-sponsor {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.mc-sponsor--sw-data {
  background: rgba(255, 90, 31, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(255, 90, 31, 0.25);
}

.mc-sponsor--stats {
  background: #e8eef7;
  color: #1e3a5f;
  border: 1px solid #c9d7ea;
}

.fh-panel--af {
  border-color: #c9d7ea;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.score-card--af .mc-sponsor {
  margin-bottom: 8px;
}

.score-card .mc-sponsor {
  margin-bottom: 8px;
}

.fh-empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fh-upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fh-upcoming__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 11rem);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.fh-upcoming__row:hover {
  border-color: rgba(255, 90, 31, 0.35);
  background: var(--color-accent-soft);
}

.fh-results__row--nolink {
  cursor: default;
}

.fh-results__row--nolink:hover {
  border-color: var(--color-border);
  background: none;
}

.fh-upcoming__time {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.fh-upcoming__teams {
  font-size: 0.875rem;
  font-weight: 600;
}

.fh-upcoming__comp {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-panel__hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.fh-day + .fh-day {
  margin-top: 16px;
}

.fh-day__title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fh-day__today {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Home / score / away as three real columns, so the scores line up vertically
   down the list. Before this the score was a flex item with margin-left:auto,
   which pushed the score AND the away team to the right edge — the row read
   "Vancouver Whitecaps ......... 0-0 Atlante", nothing aligned between rows,
   and the block looked half-built. */
.fh-results__row .fh-upcoming__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.fh-result__team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-result__team--home {
  text-align: right;
}

.fh-result__team--away {
  text-align: left;
}

.fh-results__score {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-navy-900);
  font-variant-numeric: tabular-nums;
  /* Fixed width keeps the spine straight whether the score is 0-0 or 10-9. */
  min-width: 3.25rem;
  text-align: center;
  white-space: nowrap;
}

.fh-feed-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
}

.fh-feed-note a {
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.fh-feed-note a:hover {
  text-decoration: underline;
}

/* This panel lives in .home-grid__aside — a sidebar. Three equal columns in it
   left roughly 100px per cell, so "UEFA Conference League" wrapped onto three
   lines, the match count was squeezed out of sight entirely, and a fourth
   league orphaned itself onto a second row. One column per league: the name
   fits on one line, the count is visible, and the list scans vertically like
   the league list it is. */
.fh-leagues {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fh-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.fh-league__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fh-league__flag {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.fh-league__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-league em {
  flex: 0 0 auto;
}

.fh-league em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.fh-league:hover {
  border-color: rgba(255, 90, 31, 0.35);
  background: var(--color-accent-soft);
}

.fh-clubs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fh-club {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.fh-club img,
.fh-club .team-mark {
  width: 32px;
  height: 32px;
}

.fh-club:hover {
  border-color: rgba(255, 90, 31, 0.35);
  background: var(--color-accent-soft);
}

.fh-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Icon | label+description | chevron. These are five navigation rows in a
   sidebar; stacked as plain two-line boxes they took ~450px of column height
   and read as five identical rectangles with no way to tell them apart at a
   glance. The icon carries the distinction, the chevron says "this navigates",
   and the tighter padding gets the block back to a sensible height. */
.fh-links {
  gap: 6px;
}

.fh-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.fh-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  flex: 0 0 auto;
}

.fh-link__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.fh-link strong {
  font-size: 0.875rem;
  line-height: 1.25;
}

.fh-link__text span {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-link__chevron {
  display: inline-flex;
  color: var(--color-text-muted);
  flex: 0 0 auto;
  transition: transform var(--transition), color var(--transition);
}

.fh-link:hover .fh-link__chevron {
  color: var(--color-accent);
  transform: translateX(2px);
}

/* The live count. It used to replace the row's label ("10 live now" instead of
   "Live scores"), which cost the row its name; it is a count, so it reads as
   one. */
.fh-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.fh-link:hover {
  border-color: rgba(255, 90, 31, 0.35);
  background: var(--color-accent-soft);
}

.fh-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fh-panel__head .scores__view-all {
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.fh-news__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.fh-news__row:hover {
  border-color: rgba(255, 90, 31, 0.35);
  background: var(--color-accent-soft);
}

.fh-news__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
}

.fh-news__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fh-news__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fh-news__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.fh-news__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.fh-standings__league {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: -8px 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.fh-standings__season {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.75;
}

.fh-table-wrap {
  overflow-x: auto;
}

.fh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.fh-table th,
.fh-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.fh-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.fh-table td:first-child,
.fh-table th:first-child {
  width: 28px;
  padding-left: 0;
}

.fh-table td:last-child,
.fh-table th:last-child {
  width: 36px;
  text-align: right;
  padding-right: 0;
}

.fh-table__team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fh-table__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-table__team img {
  flex-shrink: 0;
  display: block;
}

@media (max-width: 1023px) {
  .fh-layout {
    grid-template-columns: 1fr;
  }

  .fh-aside {
    order: -1;
  }

  .fh-clubs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .fh-hero {
    padding: 18px;
  }

  .fh-upcoming__row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .fh-upcoming__comp {
    grid-column: 2;
    text-align: left;
  }

  .fh-clubs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
