
.ff-match-hero {
  background: var(--ff-color-shell);
  border-bottom: 1px solid var(--ff-color-border);
}
.ff-match-hero__inner {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 16px;
}
.ff-match-hero__competition {
  margin: 0 0 16px;
  color: rgba(241,245,249,.66);
  text-align: center;
  font: 600 12px/1.3 var(--ff-font-mono);
}
.ff-scoreboard {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 12px;
}
.ff-scoreboard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
}
.ff-scoreboard__team strong {
  font: 800 18px/1.2 var(--ff-font-display);
  overflow-wrap: anywhere;
}
.ff-scoreboard__team span:not(.ff-team-badge) {
  color: rgba(241,245,249,.66);
  font: 500 12px/1.2 var(--ff-font-mono);
}
.ff-scoreboard__score {
  min-width: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ff-scoreboard__score div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-font-display);
}
.ff-scoreboard__score div span {
  font-size: 64px;
  line-height: .9;
  font-weight: 800;
}
.ff-scoreboard__score div i {
  color: rgba(241,245,249,.52);
  font-style: normal;
  font-size: 26px;
}
.ff-scoreboard__score small {
  color: rgba(241,245,249,.62);
  font: 500 12px/1 var(--ff-font-mono);
}
.ff-match-hero__scorers {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  color: rgba(241,245,249,.72);
  font: 500 12px/1.4 var(--ff-font-mono);
}
.ff-match-hero__scorers span:first-child { text-align: right; }
.ff-match-hero__meta {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: rgba(241,245,249,.68);
  font-size: 12px;
}
.ff-match-hero__meta div { display: flex; gap: 5px; }
.ff-match-hero__meta dt { color: rgba(241,245,249,.45); }
.ff-match-hero__meta dd { margin: 0; }

.ff-match-insights {
  display: grid;
  gap: 16px;
}
.ff-match-insights__head {
  display: grid;
  gap: 7px;
}
.ff-match-insights__eyebrow {
  margin: 0;
  color: var(--ff-color-primary-text);
  font: 800 11px/1 var(--ff-font-mono);
  text-transform: uppercase;
}
.ff-match-insights__head h2 {
  margin: 0;
}
.ff-match-insights__head strong {
  color: #fff;
  font: 900 18px/1.25 var(--ff-font-display);
}
.ff-match-insights__head p:not(.ff-match-insights__eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--ff-color-muted);
  font-size: 13px;
}
.ff-match-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ff-match-insight-card {
  min-width: 0;
  min-height: 224px;
  padding: 15px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: var(--ff-radius);
  background: linear-gradient(180deg, rgba(30,41,59,.96), rgba(15,23,42,.96));
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 9px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.ff-match-insight-card__index {
  width: 28px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148,163,184,.14);
  color: rgba(226,232,240,.72);
  font: 900 10px/1 var(--ff-font-mono);
}
.ff-match-insight-card__metric {
  color: #fff;
  overflow-wrap: anywhere;
  font: 900 24px/1.05 var(--ff-font-display);
}
.ff-match-insight-card h3 {
  margin: 0;
  color: #fff;
  font: 900 15px/1.3 var(--ff-font-body);
}
.ff-match-insight-card p {
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  line-height: 1.6;
}
.ff-match-insight-card__evidence {
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.ff-match-insight-card__evidence li {
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 5px;
  background: rgba(15,23,42,.45);
  color: rgba(191,219,254,.88);
  overflow-wrap: anywhere;
  font: 800 10px/1.25 var(--ff-font-mono);
}
.ff-match-insight-card--goal .ff-match-insight-card__metric,
.ff-match-insight-card--substitution .ff-match-insight-card__metric {
  color: #fecaca;
}
.ff-match-insight-card--xg .ff-match-insight-card__metric,
.ff-match-insight-card--efficiency .ff-match-insight-card__metric {
  color: #bfdbfe;
}
.ff-match-insight-card--set_piece .ff-match-insight-card__metric,
.ff-match-insight-card--goalkeeper .ff-match-insight-card__metric {
  color: #fde68a;
}
.ff-match-insights__bottom {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: var(--ff-radius);
  background: rgba(15,23,42,.72);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
}
.ff-match-insights__bottom span {
  color: var(--ff-color-primary-text);
  font: 900 11px/1 var(--ff-font-mono);
}
.ff-match-insights__bottom p {
  margin: 5px 0 0;
  color: rgba(241,245,249,.84);
  font-size: 13px;
  line-height: 1.5;
}
.ff-match-insights__bottom a {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(248,113,113,.42);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,29,29,.24);
  color: #fecaca;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}
.ff-match-insights__bottom a:hover {
  border-color: rgba(248,113,113,.72);
  background: rgba(127,29,29,.36);
}

.ff-match-stats { overflow: hidden; }
.ff-stat-bars { padding: 14px 18px 18px; display: grid; gap: 15px; }
.ff-stat-bar__values {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 54px;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.ff-stat-bar__values strong {
  font: 800 13px/1 var(--ff-font-mono);
}
.ff-stat-bar__values strong:first-child { color: var(--ff-home); }
.ff-stat-bar__values strong:last-child { color: var(--ff-away); text-align: right; }
.ff-stat-bar__values span {
  color: var(--ff-color-muted);
  text-align: center;
  font-size: 12px;
}
.ff-stat-bar__track {
  height: 8px;
  border-radius: var(--ff-radius-pill);
  overflow: hidden;
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,.05);
}
.ff-stat-bar__track i,
.ff-stat-bar__track b {
  display: block;
  height: 100%;
}
.ff-stat-bar__track i { background: var(--ff-home); }
.ff-stat-bar__track b { background: var(--ff-away); margin-left: auto; }

.ff-radar__card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ff-radar__caption {
  color: var(--ff-color-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.ff-radar__svg {
  width: 100%;
  height: auto;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}
.ff-radar__grid {
  stroke: rgba(255,255,255,.10);
  stroke-width: 1;
  fill: none;
}
.ff-radar__axis {
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
}
.ff-radar__label {
  fill: var(--ff-color-muted);
  font: 700 12px/1 var(--ff-font-display);
}
.ff-radar__polygon {
  stroke-width: 2;
  stroke-linejoin: round;
  fill-opacity: .18;
}
.ff-radar__polygon--home {
  stroke: var(--ff-home, var(--ff-color-primary));
  fill: var(--ff-home, var(--ff-color-primary));
}
.ff-radar__polygon--away {
  stroke: var(--ff-away, var(--ff-color-loss));
  fill: var(--ff-away, var(--ff-color-loss));
}
.ff-radar__vertex {
  stroke: var(--ff-color-card);
  stroke-width: 1.5;
}
.ff-radar__vertex--home { fill: var(--ff-home, var(--ff-color-primary)); }
.ff-radar__vertex--away { fill: var(--ff-away, var(--ff-color-loss)); }
.ff-radar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}
.ff-radar__legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ff-color-text);
  font: 600 12px/1.2 var(--ff-font-mono);
}
.ff-radar__chip {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}
@media (max-width: 767px) {
  .ff-radar__card { padding: 14px; gap: 12px; }
  .ff-radar__caption { font-size: 12px; }
}

.ff-timeline-card { overflow: hidden; }
.ff-timeline-half-header {
  min-height: 38px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ff-color-shell);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ff-timeline-half-header strong {
  color: #fff;
  font: 800 13px/1 var(--ff-font-display);
}
.ff-timeline-half-header span {
  color: rgba(255,255,255,.6);
  font: 800 13px/1 var(--ff-font-mono);
}
.ff-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ff-timeline__event {
  min-height: 36px;
  padding: 7px 14px;
  display: grid;
  grid-template-columns: 34px 28px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ff-timeline__event:nth-child(odd) { background: transparent; }
.ff-timeline__event:nth-child(even) { background: var(--ff-color-card-2); }
.ff-timeline__event--away {
  grid-template-columns: minmax(0,1fr) 28px 34px;
  justify-items: end;
}
.ff-timeline__event--away .ff-timeline__minute { grid-column: 3; grid-row: 1; text-align: right; }
.ff-timeline__event--away .ff-event-icon { grid-column: 2; grid-row: 1; }
.ff-timeline__event--away .ff-timeline__text {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
  text-align: right;
}
.ff-timeline__minute {
  color: var(--ff-color-primary-text);
  font: 800 12px/1 var(--ff-font-mono);
}
.ff-event-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 800 9px/1 var(--ff-font-mono);
}
.ff-event-icon--goal { background: #0d2318; border: 1px solid var(--ff-color-win); color: #fff; }
.ff-event-icon--sub { background: var(--ff-color-primary-soft); border: 1px solid var(--ff-color-primary); color: var(--ff-color-primary-text); }
.ff-event-icon--yc { width: 13px; height: 19px; border-radius: 3px; background: var(--ff-color-yellow); color: transparent; }
.ff-timeline__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
}
.ff-timeline__text small {
  color: var(--ff-color-muted);
  font-size: 11px;
}

.ff-lineups-card {
  overflow: hidden;
  border-color: rgba(148,163,184,.18);
  background: #1e293b;
}
.ff-lineups {
  display: flex;
  flex-direction: column;
}
.ff-lineup-tabs { display: none; }
.ff-lineups__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}
.ff-lineup-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ff-lineup-panel--home { --ff-team: var(--ff-home); }
.ff-lineup-panel--away { --ff-team: var(--ff-away); }
.ff-pitch-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--ff-radius);
  background: #14532d;
}
.ff-pitch-card__head {
  min-height: 34px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 0;
}
.ff-pitch-card__head span {
  color: rgba(219,234,254,.78);
  font: 800 12px/1.2 var(--ff-font-mono);
  text-align: center;
}
.ff-pitch {
  min-height: 288px;
  padding: 10px 12px 14px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #14532d;
  background-size: 100% 50%, 50% 100%, auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.ff-pitch-row {
  display: flex;
  justify-content: space-around;
  gap: 4px;
}
.ff-pitch-player {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ff-pitch-player span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ef4444;
  background: rgba(220,38,38,.92);
  color: #fff;
  font: 800 11px/1 var(--ff-font-mono);
}
.ff-pitch-player small {
  max-width: 58px;
  color: rgba(248,250,252,.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.ff-lineup-list {
  margin-top: 12px;
  border: 0;
  border-top: 1px solid rgba(148,163,184,.18);
  border-radius: 0;
  background: transparent;
  padding: 12px 14px 8px;
}
.ff-lineup-list__head {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ff-lineup-list__head strong {
  color: #ef4444;
  font: 900 10px/1 var(--ff-font-mono);
  text-transform: uppercase;
}
.ff-lineup-list__head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ff-color-muted);
  text-align: right;
  white-space: nowrap;
  font: 600 12px/1.2 var(--ff-font-body);
}
.ff-lineup-list h4 {
  margin: 12px 0 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,.16);
  color: #9db7d7;
  font: 700 12px/1 var(--ff-font-body);
}
.ff-lineup-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ff-lineup-list li {
  min-height: 23px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 28px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ff-lineup-list li span { color: #bfdbfe; font-family: var(--ff-font-mono); text-align: right; }
.ff-lineup-list li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-lineup-list li small {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #bfdbfe;
  text-align: right;
  font: 700 10px/1 var(--ff-font-mono);
}
.ff-lineup-list h4 + ol li span,
.ff-lineup-list h4 + ol li b,
.ff-lineup-list h4 + ol li small {
  color: #9db7d7;
  font-weight: 500;
}

.ff-related-match-board {
  overflow: hidden;
}
.ff-related-match-row {
  min-height: 41px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(148,163,184,.14);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ff-related-match-row:last-child {
  border-bottom: 0;
}
.ff-related-match-row:hover {
  background: rgba(255,255,255,.035);
}
.ff-related-match-row__team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-related-match-row__team--away {
  text-align: right;
}
.ff-related-match-row__score {
  color: #fff;
  text-align: center;
  font: 900 14px/1 var(--ff-font-mono);
}
.ff-related-match-row__chevron {
  color: var(--ff-color-muted);
  font-size: 18px;
}

.ff-h2h-card {
  overflow: hidden;
}
.ff-h2h-record-summary {
  padding: 14px 14px 12px;
}
.ff-h2h-summary {
  height: 11px;
  margin: 0 0 12px;
  border-radius: var(--ff-radius-pill);
  overflow: hidden;
  display: flex;
  background: rgba(255,255,255,.06);
}
.ff-h2h-summary span { background: #C8102E; }
.ff-h2h-summary b { background: #9CA3AF; }
.ff-h2h-summary i { background: #E30613; }
.ff-h2h-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.ff-h2h-counts div {
  display: grid;
  gap: 3px;
}
.ff-h2h-counts div:nth-child(2) {
  text-align: center;
}
.ff-h2h-counts div:nth-child(3) {
  text-align: right;
}
.ff-h2h-counts strong {
  color: #ef4444;
  font: 900 22px/1 var(--ff-font-mono);
}
.ff-h2h-counts div:nth-child(2) strong {
  color: var(--ff-color-muted);
}
.ff-h2h-counts span {
  color: var(--ff-color-muted);
  font-size: 12px;
}
.ff-h2h-tabs {
  display: flex;
  gap: 18px;
  padding: 0 14px;
  border-top: 1px solid rgba(148,163,184,.14);
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.ff-h2h-tabs button {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ff-color-muted);
  font-size: 12px;
  font-weight: 700;
}
.ff-h2h-tabs button.is-active {
  color: var(--ff-color-primary-text);
  border-bottom-color: var(--ff-color-primary);
}
.ff-h2h-match-list {
  display: grid;
}
.ff-h2h-match-row {
  min-height: 41px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) 58px minmax(0,1fr) 24px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(148,163,184,.14);
  color: var(--ff-color-muted);
  font-size: 12px;
  text-decoration: none;
}
.ff-h2h-match-row:last-child {
  border-bottom: 0;
}
.ff-h2h-match-row:hover {
  background: rgba(255,255,255,.035);
}
.ff-h2h-match-row__date {
  color: #93c5fd;
  font-family: var(--ff-font-mono);
}
.ff-h2h-match-row__team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-h2h-match-row__team.is-current {
  color: #fff;
  font-weight: 900;
}
.ff-h2h-match-row__team--away {
  text-align: right;
}
.ff-h2h-match-row__score {
  color: #fff;
  text-align: center;
  font: 900 14px/1 var(--ff-font-mono);
}
.ff-h2h-result-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 900 11px/1 var(--ff-font-body);
}
.ff-h2h-result-badge--win { background: var(--ff-color-win); }
.ff-h2h-result-badge--loss { background: var(--ff-color-loss); }
.ff-h2h-result-badge--draw { background: var(--ff-color-draw); }
.ff-h2h-empty {
  margin: 0;
  padding: 12px 14px;
  color: var(--ff-color-muted);
  font-size: 12px;
}

.ff-standings-table-wrap--match {
  border: 1px solid var(--ff-color-border);
  border-radius: var(--ff-radius);
  background: var(--ff-color-card);
  overflow: hidden;
}
.ff-standings-table--match {
  --ff-standings-rank-width: 38px;
  --ff-standings-team-width: 165px;
  --ff-standings-points-width: 46px;
  --ff-standings-compact-width: 38px;
  --ff-standings-form-width: calc(100% - 439px);
  min-width: 0;
  table-layout: fixed;
  color: #9db7d7;
  font: 500 12px/1.35 var(--ff-font-mono);
}
.ff-standings-table--match .ff-standings-table__col-rank { width: var(--ff-standings-rank-width); }
.ff-standings-table--match .ff-standings-table__col-team { width: var(--ff-standings-team-width); }
.ff-standings-table--match .ff-standings-table__col-points { width: var(--ff-standings-points-width); }
.ff-standings-table--match .ff-standings-table__col-compact { width: var(--ff-standings-compact-width); }
.ff-standings-table--match .ff-standings-table__col-form { width: var(--ff-standings-form-width); }
.ff-standings-table--match th,
.ff-standings-table--match td {
  height: 38px;
  padding: 0 7px;
  vertical-align: middle;
}
.ff-standings-table--match th {
  height: 33px;
  background: #243143;
  color: #9db7d7;
  font-size: 12px;
  font-weight: 500;
}
.ff-standings-table--match th:first-child,
.ff-standings-table--match td:first-child {
  width: var(--ff-standings-rank-width);
}
.ff-standings-table--match th:nth-child(2),
.ff-standings-table--match td:nth-child(2) {
  width: var(--ff-standings-team-width);
}
.ff-standings-table--match th:nth-child(3),
.ff-standings-table--match td:nth-child(3) {
  width: var(--ff-standings-points-width);
  text-align: right;
}
.ff-standings-table--match th:nth-child(n+4):nth-child(-n+8),
.ff-standings-table--match td:nth-child(n+4):nth-child(-n+8) {
  width: var(--ff-standings-compact-width);
  text-align: right;
}
.ff-standings-table--match th:nth-child(9),
.ff-standings-table--match td:nth-child(9) {
  width: var(--ff-standings-form-width);
  text-align: center;
}
.ff-standings-table--match .ff-table__row {
  position: relative;
  background: #1e293b;
}
.ff-standings-table--match .ff-standings-table__row--cl { background: #1f416b; }
.ff-standings-table--match .ff-standings-table__row--el { background: #3f2a05; }
.ff-standings-table--match .ff-standings-table__row--cfl { background: #0f482e; }
.ff-standings-table--match .ff-standings-table__row--relegation { background: #5b070b; }
.ff-standings-table--match .ff-standings-table__row--cl td:first-child { border-left: 3px solid #3b82f6; }
.ff-standings-table--match .ff-standings-table__row--el td:first-child { border-left: 3px solid #f59e0b; }
.ff-standings-table--match .ff-standings-table__row--cfl td:first-child { border-left: 3px solid #22c55e; }
.ff-standings-table--match .ff-standings-table__row--relegation td:first-child { border-left: 3px solid #e11d48; }
.ff-standings-table--match .ff-table__row.is-home-team:not(.ff-standings-table__row--cl):not(.ff-standings-table__row--el):not(.ff-standings-table__row--cfl):not(.ff-standings-table__row--relegation) td:first-child,
.ff-standings-table--match .ff-table__row.is-away-team:not(.ff-standings-table__row--cl):not(.ff-standings-table__row--el):not(.ff-standings-table__row--cfl):not(.ff-standings-table__row--relegation) td:first-child,
.ff-standings-table--match .ff-table__row.is-current-team:not(.ff-standings-table__row--cl):not(.ff-standings-table__row--el):not(.ff-standings-table__row--cfl):not(.ff-standings-table__row--relegation) td:first-child { border-left: 3px solid #e11d48; }
.ff-standings-table__rank strong {
  color: #9ed0ff;
  font-weight: 500;
}
.ff-standings-table__team-wrap {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}
.ff-standings-table__team-name {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font: 900 12px/1.35 var(--ff-font-body);
  text-decoration: none;
}
.ff-standings-table__zone {
  min-width: 23px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 900 10px/1 var(--ff-font-mono);
}
.ff-standings-table__zone--cl { background: #3b82f6; }
.ff-standings-table__zone--el { background: #f59e0b; }
.ff-standings-table__zone--cfl { background: #22c55e; }
.ff-standings-table__zone--relegation { background: #ef4444; }
.ff-standings-table--match .ff-table__form {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.ff-standings-table--match .ff-table__form-inner {
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  vertical-align: middle;
}
.ff-standings-table--match .ff-form-dot {
  width: 18px;
  height: 18px;
  margin-right: 0;
  flex: 0 0 18px;
  font-size: 9px;
}
.ff-standings-table--match td {
  color: #9db7d7;
}
.ff-standings-table--match td:nth-child(3),
.ff-standings-table--match td:nth-child(5),
.ff-standings-table--match td:nth-child(8),
.ff-standings-table--match td:nth-child(3) strong,
.ff-standings-table--match td:nth-child(5) strong,
.ff-standings-table--match td:nth-child(8) strong {
  color: #fff;
  font-weight: 900;
}
.ff-standings-table__more {
  border-top: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.34);
}
.ff-standings-table__more button {
  width: 100%;
  min-height: 37px;
  border: 0;
  background: transparent;
  color: var(--ff-color-primary-text);
  font-size: 12px;
  font-weight: 800;
}
.ff-standings-table__more button::after {
  content: "›";
  margin-left: 8px;
}
.ff-standings-legend {
  margin: 8px 2px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--ff-color-muted);
  font-size: 11px;
}
.ff-standings-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ff-standings-legend__dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.ff-standings-legend__dot--cl { background: #3b82f6; }
.ff-standings-legend__dot--el { background: #f59e0b; }
.ff-standings-legend__dot--cfl { background: #22c55e; }
.ff-standings-legend__dot--relegation { background: #e11d48; }

@media (max-width: 767px) {
  .ff-scoreboard { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .ff-scoreboard__score { min-width: 92px; }
  .ff-scoreboard__score div span { font-size: 42px; }
  .ff-scoreboard__team strong { font-size: 15px; }
  .ff-match-hero__meta { justify-content: flex-start; }
  .ff-match-insights__grid {
    grid-template-columns: 1fr;
  }
  .ff-match-insight-card {
    min-height: 0;
  }
  .ff-match-insights__bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .ff-match-insights__bottom a {
    width: 100%;
  }
  .ff-lineup-tabs {
    display: flex;
    margin: 0;
    border-bottom: 1px solid var(--ff-color-border);
    background: var(--ff-color-shell);
  }
  .ff-lineup-tabs button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 9px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ff-color-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .ff-lineup-tabs button span {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: var(--ff-radius-pill);
    background: currentColor;
  }
  .ff-lineup-tabs button.is-active {
    color: var(--ff-home);
    border-bottom-color: var(--ff-home);
  }
  .ff-lineup-tabs button[data-ff-lineup-tab="away"].is-active {
    color: var(--ff-away);
    border-bottom-color: var(--ff-away);
  }
  .ff-lineups__panels {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .ff-lineup-panel { display: none; }
  .ff-lineup-panel.is-active { display: flex; }
  .ff-chart-box { min-height: 300px; }
  .ff-chart-box canvas { height: 280px !important; }
  .ff-pitch { min-height: 240px; }
  .ff-related-match-row {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) 10px;
    padding-inline: 12px;
  }
  .ff-h2h-match-row {
    grid-template-columns: 72px minmax(0,1fr) 46px minmax(0,1fr) 23px;
    padding-inline: 10px;
  }
  .ff-h2h-match-row__date {
    font-size: 10px;
  }
  .ff-standings-table--match {
    --ff-standings-rank-width: 32px;
    --ff-standings-points-width: 38px;
    --ff-standings-compact-width: 29px;
    --ff-standings-team-width: 165px;
    --ff-standings-form-width: calc(100% - 380px);
  }
  .ff-standings-table--match th:nth-child(n+4):nth-child(-n+8),
  .ff-standings-table--match td:nth-child(n+4):nth-child(-n+8) {
    width: var(--ff-standings-compact-width);
  }
  .ff-standings-table--match th:nth-child(9),
  .ff-standings-table--match td:nth-child(9) {
    width: var(--ff-standings-form-width);
  }
  .ff-standings-table--match .ff-standings-table__col-compact { width: var(--ff-standings-compact-width); }
  .ff-standings-table--match .ff-standings-table__col-form { width: var(--ff-standings-form-width); }
  .ff-standings-table--match th,
  .ff-standings-table--match td {
    padding-inline: 4px;
  }
  .ff-standings-table--match .ff-table__form {
    white-space: nowrap;
  }
  .ff-standings-table--match .ff-table__form-inner {
    gap: 2px;
  }
  .ff-standings-table--match .ff-form-dot {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .ff-standings-table--match {
    --ff-standings-rank-width: 28px;
    --ff-standings-team-width: calc(100% - 263px);
    --ff-standings-points-width: 34px;
    --ff-standings-compact-width: 23px;
    --ff-standings-form-width: 86px;
  }
}
