.mf-mls-next [hidden] { display: none !important; }

.mf-next-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--mf-page-gap);
}
.mf-next-feature h2 { margin: 0; font-size: var(--mf-section-title-size); }
.mf-next-feature p { margin-block: 4px; }
.mf-next-feature .mf-template-link { display: inline-block; margin-top: 6px; }
.mf-next-desk [id] { scroll-margin-top: 95px; }
.mf-next-tabs, .mf-next-toolbar, .mf-next-pagination, .mf-next-clubs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.mf-next-clubs { margin-bottom: 10px; }
.mf-next-clubs a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; }
.mf-next-tabs { margin-bottom: 8px; }
.mf-next-tabs button[aria-pressed="true"],
.mf-next-toolbar button[aria-pressed="true"] {
  color: var(--mf-page-background);
  background: var(--mf-page-gold);
  border-color: transparent;
}
.mf-next-board {
  min-width: 0;
  border: 1px solid var(--mf-page-line);
  border-radius: var(--mf-page-radius);
  overflow: hidden;
}
.mf-next-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  background: var(--mf-page-card);
}
.mf-next-filters label, .mf-next-group label {
  display: block;
  min-width: 0;
  font-size: .8rem;
  font-weight: 700;
}
.mf-next-filters :is(select, input), .mf-next-group select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid var(--mf-page-control-line);
  border-radius: 4px;
  background: var(--mf-page-panel);
  color: var(--mf-page-ink);
  font: inherit;
}
.mf-next-toolbar {
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--mf-page-line);
}
.mf-next-toolbar .mf-template-actions { margin: 0; gap: 5px; }
.mf-next-toolbar button, .mf-next-pagination button { min-height: 38px; padding-block: 6px; }
.mf-next-brief, .mf-next-status {
  color: var(--mf-page-muted);
  font-size: .8rem;
}
.mf-next-brief { margin: 8px 0; }
.mf-next-status { margin: 8px 10px; }
#next-count { color: var(--mf-page-gold); font-size: .8rem; font-weight: 750; margin: 0; }
#next-fixtures { margin: 0; padding: 0; list-style: none; }
.mf-next-fixture {
  display: grid;
  grid-template-columns: minmax(90px, 14%) minmax(0, 1fr) minmax(86px, 23%);
  align-items: center;
  gap: 6px 12px;
  padding: 7px 10px;
  border-top: 1px solid var(--mf-page-line);
  font-size: .86rem;
  line-height: 1.3;
}
.mf-next-fixture:first-child { border-top: 0; }
.mf-next-fixture:nth-child(odd) { background: var(--mf-page-card); }
.mf-next-kickoff, .mf-next-context, .mf-next-venue { font-size: .78rem; color: var(--mf-page-muted); }
.mf-next-kickoff span, .mf-next-context span { display: block; }
.mf-next-fixture strong.mf-next-result { color: var(--mf-page-gold); }
.mf-next-sides { min-width: 0; display: grid; gap: 3px; }
.mf-next-side {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 2em;
  align-items: center;
  gap: 5px;
}
.mf-next-side strong { overflow-wrap: anywhere; }
.mf-next-side .mf-next-result { text-align: right; font-variant-numeric: tabular-nums; }
.mf-next-side small { color: var(--mf-page-muted); font-size: .75rem; }
.mf-next-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.mf-next-mark img { width: 100%; height: 100%; object-fit: contain; }
.mf-next-local { color: var(--mf-page-green); }
.mf-next-pagination { justify-content: flex-end; padding: 8px; border-top: 1px solid var(--mf-page-line); }
.mf-next-pagination button:disabled { opacity: .48; }
.mf-next-group { display: flex; align-items: end; flex-wrap: wrap; gap: 6px 14px; padding: 10px; }
.mf-next-group label { flex: 1 1 250px; }
.mf-next-group small { font-size: .78rem; color: var(--mf-page-muted); }
.mf-next-table { overflow-x: auto; }
.mf-next-table table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mf-next-table th, .mf-next-table td { text-align: right; padding: 6px 8px; border-top: 1px solid var(--mf-page-line); }
.mf-next-table th[scope="row"], .mf-next-table thead th:nth-child(2) { text-align: left; }
.mf-next-table th[scope="row"] span { display: inline-flex; gap: 6px; align-items: center; }
.mf-next-table td:nth-last-child(2) { color: var(--mf-page-gold); font-weight: 750; }
.mf-next-table tbody tr:nth-child(odd) { background: var(--mf-page-card); }
.mf-next-media .mf-template-card { overflow: hidden; }
.mf-next-media .mf-template-card img {
  width: 100%;
  aspect-ratio: 2.35;
  object-fit: cover;
  object-position: center;
  border-radius: 3px;
  margin-bottom: 5px;
}
.mf-next-media .mf-template-card:last-child img { object-fit: contain; background: var(--mf-page-panel); }
.mf-next-desk :focus-visible { outline: 2px solid var(--mf-page-green); outline-offset: 2px; }

@media (max-width: 680px) {
  .mf-next-hero { grid-template-columns: minmax(0, 1fr); }
  .mf-next-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-next-filters button { justify-self: start; }
}
@media (max-width: 440px) {
  .mf-next-fixture { grid-template-columns: minmax(0, 1fr) minmax(76px, 24%); gap: 3px 8px; }
  .mf-next-kickoff { grid-column: 1 / -1; }
  .mf-next-kickoff span { display: inline; margin-left: 6px; }
  .mf-next-table th, .mf-next-table td { padding: 5px; }
}


/* Match cards share a row on wider screens and keep schedules readable on phones. */
.mf-next-brand-title, .mf-next-feature-crests {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mf-next-brand-title img {
  width: clamp(38px, 4vw, 58px);
  height: clamp(38px, 4vw, 58px);
  object-fit: contain;
  flex: none;
}
.mf-next-feature-crests { margin-block: 6px; }
.mf-next-feature-crests .mf-next-mark { width: 32px; height: 32px; flex-basis: 32px; }
.mf-next-tabs .mf-template-button { display: inline-flex; align-items: center; gap: 6px; }
.mf-next-event-mark { width: 25px; height: 24px; object-fit: contain; }

#next-fixtures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}
#next-fixtures > li:only-child { grid-column: 1 / -1; }
#next-fixtures:empty { padding: 0; }
#next-fixtures .mf-next-fixture {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--mf-page-line);
  border-radius: 5px;
  background: var(--mf-page-card);
}
.mf-next-fixture .mf-next-kickoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  grid-column: 1;
}
.mf-next-fixture .mf-next-kickoff span { margin: 0; color: var(--mf-page-gold); font-weight: 700; }
.mf-next-context { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; }
.mf-next-context span + span { overflow-wrap: anywhere; }

.mf-next-watch .mf-template-actions { margin-top: 8px; }
.mf-next-watch p { margin: 0; color: var(--mf-page-muted); font-size: .9rem; }
.mf-next-spotlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mf-next-spotlight-card {
  display: grid;
  grid-template-columns: clamp(54px, 7vw, 96px) minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
}
.mf-next-spotlight-card :is(h3, p) { margin: 0 0 4px; }
.mf-next-spotlight-card .mf-next-headshot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.mf-next-spotlight-club { display: flex; align-items: center; gap: 5px; font-size: .8rem; }
.mf-next-spotlight-club img { width: 20px; height: 20px; object-fit: contain; }

@media (min-width: 760px) {
  #next-fixtures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  #next-fixtures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .mf-next-spotlight-grid { grid-template-columns: minmax(0, 1fr); }
}

