/**
 * Profilo allenatore pubblico — look gaming + Hall of Fame / bacheca trofei.
 */
.mgrp {
  --mgrp-line: rgba(56, 80, 120, 0.55);
  --mgrp-panel: linear-gradient(165deg, rgba(18, 28, 48, 0.98), rgba(10, 16, 30, 0.94));
  --mgrp-text: #e8f1ff;
  --mgrp-muted: #8eb4d4;
  --mgrp-cyan: #38bdf8;
  --mgrp-gold: #fbbf24;
  --mgrp-green: #34d399;
  --mgrp-purple: #c084fc;
  --mgrp-rose: #fb7185;
  color: var(--mgrp-text);
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}

.mgrp-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--mgrp-line);
  background: var(--mgrp-panel);
  overflow: hidden;
}

.mgrp-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 8% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 55% at 92% 85%, rgba(251, 191, 36, 0.12), transparent 50%);
}

.mgrp-hero__main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  flex: 1 1 240px;
}

.mgrp-hero__crest {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.mgrp-hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.mgrp-hero__sub {
  margin: 0.25rem 0 0.55rem;
  color: var(--mgrp-muted);
  font-size: 0.92rem;
}

.mgrp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mgrp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #cfe8ff;
}

.mgrp-chip--xbox {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.mgrp-chip--xbox i { color: #22c55e; }

.mgrp-chip--psn {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.mgrp-chip--psn i { color: #60a5fa; }

.mgrp-chip--ea {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(239, 68, 68, 0.16);
  color: #fecdd3;
}

.mgrp-chip--team {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.mgrp-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}

.mgrp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mgrp-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.7);
  color: #fff;
}

.mgrp-btn--ghost {
  background: transparent;
  border-color: rgba(142, 180, 212, 0.35);
  color: var(--mgrp-muted);
  font-weight: 600;
}

.mgrp-btn--ghost:hover {
  color: #fff;
  border-color: rgba(142, 180, 212, 0.6);
}

.mgrp-rank {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    linear-gradient(125deg, rgba(251, 191, 36, 0.14), rgba(56, 189, 248, 0.1) 55%, rgba(12, 18, 32, 0.92));
  overflow: hidden;
}

.mgrp-rank__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.18);
  color: var(--mgrp-gold);
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.mgrp-rank__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.mgrp-rank__title {
  margin: 0;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
}

.mgrp-rank__meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--mgrp-muted);
}

.mgrp-rank__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: baseline;
}

.mgrp-rank__score span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mgrp-muted);
}

.mgrp-rank__score strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.mgrp-rank__score--legacy strong { color: #7dd3fc; }
.mgrp-rank__score--power strong { color: var(--mgrp-gold); }

.mgrp-kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mgrp-kpi {
  position: relative;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--mgrp-line);
  background: var(--mgrp-panel);
  overflow: hidden;
}

.mgrp-kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--mgrp-cyan);
}

.mgrp-kpi--wins::before { background: var(--mgrp-gold); }
.mgrp-kpi--rate::before { background: var(--mgrp-green); }
.mgrp-kpi--goals::before { background: #60a5fa; }
.mgrp-kpi--diff::before { background: var(--mgrp-rose); }
.mgrp-kpi--ppg::before { background: var(--mgrp-purple); }
.mgrp-kpi--played::before { background: var(--mgrp-cyan); }

.mgrp-kpi span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mgrp-muted);
  margin-bottom: 0.35rem;
}

.mgrp-kpi strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.mgrp-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.mgrp-panel {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--mgrp-line);
  background: var(--mgrp-panel);
}

.mgrp-panel__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

.mgrp-panel__hd h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.mgrp-panel__hd h2 i {
  color: var(--mgrp-cyan);
}

.mgrp-panel__hd--gold h2 i { color: var(--mgrp-gold); }
.mgrp-panel__hd--purple h2 i { color: var(--mgrp-purple); }

.mgrp-panel__count {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.mgrp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.mgrp-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(8, 14, 26, 0.45);
  border: 1px solid rgba(36, 50, 79, 0.7);
}

.mgrp-list li span { color: var(--mgrp-muted); font-size: 0.88rem; }
.mgrp-list li strong { color: #fff; font-variant-numeric: tabular-nums; }

.mgrp-trophy-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.mgrp-trophy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 191, 36, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(22, 32, 54, 0.98), rgba(10, 16, 28, 0.95));
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mgrp-trophy:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.65);
  color: inherit;
}

.mgrp-trophy--cyan {
  border-color: rgba(56, 189, 248, 0.4);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(22, 32, 54, 0.98), rgba(10, 16, 28, 0.95));
}

.mgrp-trophy--purple {
  border-color: rgba(192, 132, 252, 0.4);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(192, 132, 252, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(22, 32, 54, 0.98), rgba(10, 16, 28, 0.95));
}

.mgrp-trophy--green {
  border-color: rgba(52, 211, 153, 0.4);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(52, 211, 153, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(22, 32, 54, 0.98), rgba(10, 16, 28, 0.95));
}

.mgrp-trophy__cup {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--mgrp-gold);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin-bottom: 0.15rem;
}

.mgrp-trophy--cyan .mgrp-trophy__cup {
  color: var(--mgrp-cyan);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
}

.mgrp-trophy--purple .mgrp-trophy__cup {
  color: var(--mgrp-purple);
  background: rgba(192, 132, 252, 0.14);
  border-color: rgba(192, 132, 252, 0.35);
}

.mgrp-trophy--green .mgrp-trophy__cup {
  color: var(--mgrp-green);
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
}

.mgrp-trophy__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.mgrp-trophy__name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.mgrp-trophy__meta {
  font-size: 0.72rem;
  color: var(--mgrp-muted);
  font-weight: 600;
}

.mgrp-trophy__badge {
  display: inline-flex;
  margin-top: 0.15rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #041016;
  background: linear-gradient(135deg, #fbbf24, #fde68a);
}

.mgrp-hof-list {
  display: grid;
  gap: 0.85rem;
}

.mgrp-hof-season {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.1), rgba(12, 18, 32, 0.75));
}

.mgrp-hof-season__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.7rem;
}

.mgrp-hof-season__lbl {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.mgrp-hof-season__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mgrp-hof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cfe2ff;
}

.mgrp-place-list {
  display: grid;
  gap: 0.45rem;
}

.mgrp-place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(36, 50, 79, 0.75);
  text-decoration: none;
  color: inherit;
}

a.mgrp-place:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: inherit;
}

.mgrp-place__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.mgrp-place__name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mgrp-place__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.mgrp-place__badge--gold {
  color: #041016;
  background: linear-gradient(135deg, #fbbf24, #fde68a);
}

.mgrp-place__badge--silver {
  color: #0f172a;
  background: linear-gradient(135deg, #cbd5e1, #f1f5f9);
}

.mgrp-place__badge--bronze {
  color: #1c0a00;
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.mgrp-place__badge--cyan {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.4);
}

.mgrp-place__badge--muted {
  color: var(--mgrp-muted);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

.mgrp-empty {
  margin: 0;
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--mgrp-muted);
  font-size: 0.92rem;
}

.mgrp-empty i {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.45rem;
  opacity: 0.7;
}

@media (min-width: 900px) {
  .mgrp-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mgrp-grid { grid-template-columns: 1fr 1fr; }
  .mgrp-panel--full { grid-column: 1 / -1; }
}
