/* Panel estadísticas temporada — estilo FM (dark) dentro de ficha jugador */

.jug-fm-stats-root {
  margin-top: 1.25rem;
}

.jug-fm-stats-root--solo {
  margin-top: 0;
}

/* Bloque principal al abrir ficha jugador: radar arriba, TM debajo */
.jug-player-fm-hero {
  margin: 0 0 0.85rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jug-fm-hero-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
  letter-spacing: 0.02em;
}

.jug-fm-hero-sub {
  font-weight: 500;
  font-size: 0.78rem;
  color: #8b949e;
  margin-left: 0.35rem;
}

.jug-tm-datos-label {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
  font-weight: 600;
}

.jug-fm-stats-root--hero {
  margin-top: 0;
}

.jug-player-tabs-wrap--after-fm {
  margin-top: 0.25rem;
}

.player-fm-card {
  background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.25rem;
  color: #e6edf3;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fm-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2ecc71;
  background: #1a1f2e;
  flex-shrink: 0;
}

.fm-info {
  flex: 1;
  min-width: 140px;
}

.fm-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.fm-meta {
  font-size: 0.8rem;
  color: #8b949e;
}

.fm-season-wrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #8b949e;
}

.fm-season-select {
  background: #21262d;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 8.5rem;
}

.fm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.fm-stat-group {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.fm-stat-group h4 {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b949e;
  font-weight: 600;
}

.fm-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fm-stat:last-child {
  border-bottom: none;
}

.fm-val {
  font-weight: 700;
  color: #2ecc71;
  font-variant-numeric: tabular-nums;
}

.fm-radar-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  max-width: 100%;
  overflow: hidden;
}

.fm-radar-container canvas {
  max-width: min(360px, 100%);
  height: auto !important;
}

.fm-source {
  text-align: center;
  font-size: 0.68rem;
  color: #484f58;
  margin: 0.75rem 0 0;
}

.fm-inline-error:empty {
  display: none;
}

@media (max-width: 520px) {
  .fm-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fm-season-wrap {
    margin-left: 0;
    width: 100%;
  }

  .fm-season-select {
    width: 100%;
  }
}
