/* ============================================================
   MATCH HERO — top hero on match detail page
   Teams large + vs, league + time meta, key stats footer.
   ============================================================ */

.match-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}

/* Meta row: league + time + tournament round */
.match-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.match-hero__league {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.match-hero__league::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.match-hero__separator {
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
}

.match-hero__time {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.match-hero__round {
  margin-left: auto;
  color: var(--text-tertiary);
}

/* Teams row: 3-col grid (home | vs+headline odds | away) */
.match-hero__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 720px) {
  .match-hero__teams {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

.match-hero__team {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.match-hero__team--away {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 720px) {
  .match-hero__team--away { justify-content: flex-start; text-align: left; }
}

.match-hero__team-flag {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.match-hero__team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-hero__team-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-hero__team-form {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.match-hero__team--away .match-hero__team-info {
  align-items: flex-end;
}

.match-hero__team--away .match-hero__team {
  flex-direction: row-reverse;
}

/* Center: vs + headline odds */
.match-hero__vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.match-hero__vs {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.match-hero__headline-odds {
  display: grid;
  grid-template-columns: 56px 56px 56px;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.match-hero__odds-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-1);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 48px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  font-family: inherit;
}

.match-hero__odds-cell:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.match-hero__odds-cell-label {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
}

.match-hero__odds-cell-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Key stats footer */
.match-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 720px) {
  .match-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.match-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-hero__stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
}

.match-hero__stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.match-hero__stat-detail {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-normal);
  margin-left: var(--space-1);
}

.match-hero__stat-value--accent {
  color: var(--color-primary);
}

.match-hero__stat-value--success {
  color: var(--color-success-text);
}
