/* Dashboard analitica giocatore — layout v3.5 professionale B2B */
#user-dossier-view-group.is-player-area .es-user-tabs { display: none !important; }
#user-dossier-view-group.is-player-area,
#user-dossier-view-group.is-player-area #user-dossier-portal {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
#user-dossier-view-group.is-player-area .pf-page-inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.es-pd:empty { display: none !important; min-height: 0 !important; }
#es-player-profile.es-pd-on > :not(#es-pd) { display: none !important; }
#es-player-profile.es-pd-on {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#es-player-profile.es-pd-on #es-pd {
  display: block !important;
  grid-template-columns: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

:root {
  --es-bg: #0b0e14;
  --es-panel: #10141d;
  --es-panel-2: #141925;
  --es-border: #1e2430;
  --es-text: #eef1f6;
  --es-text-muted: #8a93a3;
  --es-text-faint: #5c6472;
  --es-accent: #3b7dff;
  --es-accent-soft: rgba(59, 125, 255, 0.12);
  --es-verified: #34c77b;
  --es-verified-soft: rgba(52, 199, 123, 0.12);
  --es-font: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.es-pd {
  display: block !important;
  min-height: 100vh;
  padding-top: 86px !important;
  padding-left: 56px !important;
  box-sizing: border-box;
  background: var(--es-bg);
  color: var(--es-text);
  font-family: var(--es-font);
  position: relative;
}

.es-pd:has(.es-pd-rail),
#es-pd,
#es-dsd,
#es-gd,
#es-obsd,
#es-tfd,
#es-mad,
#es-med,
#es-gkd,
#es-atd,
#es-ygd,
#es-dgd,
#es-agd,
#es-mkd,
#es-nud,
#es-eqd,
#es-sgd,
#es-btd {
  padding-left: 56px !important;
  box-sizing: border-box !important;
}

#es-cd,
.es-coach-hub,
.es-pres-suite {
  padding-left: 0 !important;
}

.es-pd::before {
  display: none !important;
}

.es-pd-rail {
  background: var(--es-panel);
  border-right: 1px solid var(--es-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 1.5rem;
  gap: 0.45rem;
  position: fixed !important;
  top: 86px !important;
  left: 0 !important;
  width: 56px !important;
  height: calc(100vh - 86px) !important;
  min-height: calc(100vh - 86px) !important;
  box-sizing: border-box !important;
  z-index: 50 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

.es-pd-rail::-webkit-scrollbar {
  display: none !important;
}

.es-pd-rail button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--es-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.es-pd-rail button.is-on,
.es-pd-rail button:hover {
  background: var(--es-accent-soft);
  color: var(--es-accent);
}

.es-pd-rail .es-pd-rail-end {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--es-border);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.es-pd-body {
  padding: 1.25rem 2rem 3.5rem;
  min-width: 0;
  box-sizing: border-box;
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
}

/* Intestazione pagina dossier */
.es-dossier__head,
.es-pd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--es-border);
  margin-bottom: 28px;
}

.es-dossier__head h1,
.es-pd-head h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--es-accent) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.es-dossier__season {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--es-text-muted);
  background: var(--es-panel);
  border: 1px solid var(--es-border);
  border-radius: 8px;
  padding: 8px 14px;
}

.es-dossier__season strong {
  color: var(--es-text);
  font-weight: 700;
}

.es-season-nav {
  background: none;
  border: none;
  color: var(--es-text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}
.es-season-nav:hover {
  color: var(--es-accent);
}

/* Badge di stato unificati (3 stati, non 6 colori) */
.es-badge,
.es-pd-source-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: none;
}

.es-badge--tag,
.es-pd-source-user,
.es-pd-source-staff {
  background: var(--es-panel-2) !important;
  color: var(--es-text-muted) !important;
  border: 1px solid var(--es-border) !important;
}

.es-badge--active,
.es-pd-source-ia {
  background: var(--es-accent-soft) !important;
  color: var(--es-accent) !important;
  border: 1px solid var(--es-accent) !important;
}

.es-badge--verified {
  background: var(--es-verified-soft) !important;
  color: var(--es-verified) !important;
  border: 1px solid var(--es-verified) !important;
}

.es-badge--pending {
  background: transparent !important;
  color: var(--es-text-faint) !important;
  border: 1px solid var(--es-border) !important;
}

/* Sezione Card + Asset digitale */
.es-card-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: start;
}

.es-card-holder {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.es-asset-panel h2 {
  font-size: 12px;
  font-weight: 700;
  color: var(--es-accent);
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.es-asset-panel h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--es-text);
}

.es-asset-panel > p {
  font-size: 13px;
  color: var(--es-text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.es-asset-box {
  background: var(--es-panel);
  border: 1px solid var(--es-border);
  border-radius: 12px;
  padding: 22px 24px;
}

.es-asset-box__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--es-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.es-asset-box__status {
  font-size: 13px;
  color: var(--es-text-muted);
  margin: 0 0 18px;
}

.es-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.es-stat-field label {
  display: block;
  font-size: 12px;
  color: var(--es-text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.es-stat-field input {
  width: 100%;
  background: var(--es-bg);
  color: var(--es-text);
  border: 1px solid var(--es-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--es-font);
  font-size: 13px;
  box-sizing: border-box;
}

.es-stat-field input:focus {
  outline: none;
  border-color: var(--es-accent);
}

.es-btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.es-btn {
  font-family: var(--es-font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.es-btn--primary {
  background: var(--es-accent);
  color: #fff;
  border: 1px solid var(--es-accent);
}

.es-btn--primary:hover {
  background: #2f6de6;
  border-color: #2f6de6;
}

.es-btn--secondary {
  background: transparent;
  color: var(--es-text);
  border: 1px solid var(--es-border);
}

.es-btn--secondary:hover {
  background: var(--es-panel-2);
  border-color: var(--es-accent);
}

.es-asset-box__hint {
  font-size: 12px;
  color: var(--es-text-faint);
  line-height: 1.6;
  margin: 0;
}

.es-asset-box__hint strong,
.es-asset-box__hint b {
  color: var(--es-text-muted);
}

/* Azioni rapide */
.es-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.es-quick-action {
  background: var(--es-panel);
  border: 1px solid var(--es-border);
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-align: left;
}

.es-quick-action:hover {
  border-color: var(--es-accent);
  transform: translateY(-1px);
}

.es-quick-action strong,
.es-quick-action b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--es-text);
}

.es-quick-action span {
  font-size: 12px;
  color: var(--es-text-muted);
  line-height: 1.4;
  display: block;
}

/* Griglia dossier a 3 colonne */
.es-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.es-dossier-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.es-panel-card {
  background: var(--es-panel);
  border: 1px solid var(--es-border);
  border-radius: 12px;
  padding: 20px 22px;
  box-sizing: border-box;
}

.es-panel-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.es-panel-card__head h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--es-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.es-empty-note {
  font-size: 13px;
  color: var(--es-text-muted);
  line-height: 1.6;
  margin: 0;
}

.es-profile-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.es-profile-summary__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--es-panel-2);
  border: 1px solid var(--es-border);
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.es-profile-summary__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.es-profile-summary__name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--es-text);
}

.es-profile-summary__role {
  font-size: 12px;
  color: var(--es-accent);
  margin: 2px 0 0;
}

.es-profile-summary__club {
  font-size: 12px;
  color: var(--es-text-muted);
  margin: 2px 0 0;
}

.es-link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}

.es-link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--es-text);
  text-decoration: none;
  border-radius: 8px;
  background: var(--es-panel-2);
  border: 1px solid var(--es-border);
  transition: all 0.15s ease;
}

.es-link-list a:hover {
  border-color: var(--es-accent);
  background: rgba(59, 125, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.es-link-list a svg {
  color: var(--es-accent);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.es-field-list dt {
  font-size: 11px;
  font-weight: 700;
  color: var(--es-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 14px 0 4px;
}

.es-field-list dt:first-child {
  margin-top: 0;
}

.es-field-list dd {
  font-size: 13px;
  color: var(--es-text);
  margin: 0;
}

.es-field-list dd.muted {
  color: var(--es-text-muted);
  font-style: italic;
}

.es-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.es-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.es-checklist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 13px;
}

.es-checklist li span:first-child {
  color: var(--es-text);
}

.es-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.es-mini-table th {
  text-align: left;
  color: var(--es-text-faint);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--es-border);
}

.es-mini-table td {
  padding: 8px 0;
  color: var(--es-text-muted);
  border-bottom: 1px solid var(--es-border);
}

.es-request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--es-panel-2);
  border: 1px solid var(--es-border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}
.es-request-card:last-child {
  margin-bottom: 0;
}
.es-request-card__role {
  font-size: 11px;
  font-weight: 700;
  color: var(--es-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 3px;
}
.es-request-card__name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.es-request-card__message {
  font-size: 12px;
  color: var(--es-text-muted);
  margin: 0;
  max-width: 420px;
}
.es-request-card__time {
  font-size: 11px;
  color: var(--es-text-faint);
  margin-top: 4px;
}
.es-request-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.es-request-card__actions button {
  font-family: var(--es-font);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.es-request-card__accept {
  background: var(--es-accent);
  color: #fff;
  border: 1px solid var(--es-accent);
}
.es-request-card__accept:hover {
  background: #2b6de0;
}
.es-request-card__decline {
  background: transparent;
  color: var(--es-text-muted);
  border: 1px solid var(--es-border);
}
.es-request-card__decline:hover {
  border-color: var(--es-text-muted);
  color: var(--es-text);
}
.es-request-card.is-resolved {
  opacity: 0.55;
}
.es-request-card__status {
  font-size: 12px;
  font-weight: 700;
}
.es-request-card__status.accepted {
  color: var(--es-verified);
}
.es-request-card__status.declined {
  color: var(--es-text-faint);
}

.es-interest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.es-interest-item {
  background: var(--es-panel-2);
  border: 1px solid var(--es-border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.es-interest-item__count {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--es-accent);
  margin-bottom: 6px;
}
.es-interest-item__label {
  font-size: 12px;
  color: var(--es-text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .es-card-section { grid-template-columns: 1fr; }
  .es-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .es-dossier-grid { grid-template-columns: 1fr; }
  .es-stat-grid, .es-field-row { grid-template-columns: 1fr; }
  .es-interest-grid { grid-template-columns: repeat(2, 1fr); }
  .es-link-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .es-quick-actions { grid-template-columns: 1fr; }
  .es-interest-grid { grid-template-columns: 1fr; }
  .es-link-list { grid-template-columns: 1fr; }
}

.es-pd-tag {
  font-size: 0.7rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: #cbd5e1;
}

/* Metriche Cliccabili per Dettaglio Clip */
.es-pd-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.32rem 0.45rem;
  margin: 0.15rem 0;
  border-radius: 4px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.es-pd-metric-row:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #f1f5f9;
}

.es-pd-metric-row b {
  color: #34d399;
  font-weight: 700;
}

.es-pd-metric-row .has-clip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #38bdf8;
  font-size: 0.68rem;
  text-decoration: underline;
  margin-left: 0.4rem;
}

/* Radar Prestazioni */
.es-pd-radar-tools {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.es-pd-legend-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.es-pd-pill-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.es-pd-pill-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.es-pd-card h2 svg,
.es-pd-head h1 svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}
.es-pd-radar svg.es-pd-radar-svg {
  width: 100%;
  height: auto;
  max-height: 430px;
  margin: 0 auto;
}
.es-pd-empty {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.85rem 0.2rem;
}
.es-pd-metric-missing b {
  color: #64748b !important;
  font-weight: 500 !important;
}
.es-pd-metric-hi b {
  color: #38bdf8 !important;
}
.es-pd-ok.is-warn b {
  color: #fbbf24 !important;
}
.es-pd-ok.is-miss b {
  color: #64748b !important;
  font-weight: 500 !important;
}
#es-pd-actions-slot {
  min-height: 0;
}

/* Sezione Autocompilazione "Il Mio Profilo" */
.es-pd-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.es-pd-profile-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
}

.es-pd-profile-item label {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.es-pd-profile-item .val {
  font-size: 0.78rem;
  color: #f1f5f9;
  line-height: 1.35;
}

.es-pd-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.es-pd-toggle-on {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.es-pd-toggle-off {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Card Infortuni & Sanitaria */
.es-pd-injury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  margin-top: 0.4rem;
}

.es-pd-injury-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  padding: 0.25rem 0.3rem 0.35rem;
}

.es-pd-injury-table td {
  padding: 0.35rem 0.3rem;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

/* Pulsanti B2B Outline */
.es-pd-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.65rem;
}

.es-pd-btn-action:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
}

/* Guida e Legenda */
.es-pd-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.es-pd-guide-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
}

.es-pd-guide-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  color: #f1f5f9;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.es-pd-guide-item p {
  margin: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Bollini Registro Match */
.es-pd-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.3rem;
}
.es-pd-dot.g { background: #34d399; }
.es-pd-dot.y { background: #fbbf24; }
.es-pd-dot.r { background: #f87171; }

@media screen and (max-width: 768px) {
  .es-pd,
  .es-pd:has(.es-pd-rail),
  #es-pd,
  #es-dsd,
  #es-gd,
  #es-obsd,
  #es-tfd,
  #es-mad,
  #es-med,
  #es-gkd,
  #es-atd,
  #es-ygd,
  #es-dgd,
  #es-agd,
  #es-mkd,
  #es-nud,
  #es-eqd,
  #es-sgd,
  #es-btd {
    padding-left: 0 !important;
  }

  .es-pd-rail {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    overflow-x: auto !important;
    padding: 0.45rem 0.75rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--es-border) !important;
    z-index: 25 !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   PRO SHELL — 240px sidebar + header a 2 livelli + tab bar
   ============================================================ */
body.is-player-mode footer.site-footer,
body.is-player-mode #site-public-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#es-pd,
#es-player-profile.es-pd-on #es-pd,
.es-pd:has(.es-pro-shell) {
  display: block !important;
  grid-template-columns: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background: #080b12;
}

.es-pro-shell {
  background: #080b12;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  color: #eef2f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-top: 14px;
  padding-left: calc(240px + 18px);
  padding-right: 18px;
  padding-bottom: 28px;
  max-width: none !important;
}

.es-pro-sidebar {
  width: 240px;
  min-width: 240px;
  background: #0a0e18;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  padding: 22px 12px 28px;
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  z-index: 90;
  box-sizing: border-box;
}

.es-pro-brand-header {
  padding: 4px 4px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 14px;
}

.es-pro-brand-title {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.es-pro-brand-title span { color: #22d3ee; }

.es-pro-brand-sub {
  font-size: 0.7rem;
  color: #8b95a8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.es-pro-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.es-pro-side-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.es-pro-side-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
  width: 16px;
  height: 16px;
}

.es-pro-side-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.18);
}

.es-pro-side-btn.is-active {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.es-pro-sidebar-badge {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding-top: 12px;
  background: #0a0e18;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.es-pro-sidebar-club-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(18, 26, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.es-pro-sidebar-club-card img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.es-pro-sidebar-club-card strong {
  display: block;
  font-size: 0.78rem;
  color: #f8fafc;
}

.es-pro-sidebar-club-card span {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 600;
}

.es-pro-dash-header {
  background: rgba(18, 26, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.es-pro-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.es-pro-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.es-pro-header-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.es-pro-header-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.es-pro-licence-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.es-pro-coach-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.es-pro-coach-info .role {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.es-pro-coach-info .sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.es-pro-header-sep {
  width: 1px;
  height: 38px;
  background: rgba(148, 163, 184, 0.16);
}

.es-pro-club-info .crest {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.es-pro-club-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.es-pro-club-info span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.es-pro-btn-quick-jump {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.es-pro-btn-quick-jump:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.es-pro-header-match-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.5fr;
  gap: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 12px;
}

.es-pro-target-box {
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.es-pro-target-box .label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin: 0 0 3px;
}

.es-pro-target-box strong {
  font-size: 0.86rem;
  color: #f8fafc;
  font-weight: 700;
}

.es-pro-target-box span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.es-pro-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(18, 26, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 16px;
}

.es-pro-nav-tabs::-webkit-scrollbar { display: none; }

.es-pro-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.es-pro-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.es-pro-tab-btn.is-active {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 700;
}

.es-pro-body {
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
}

@media (max-width: 1024px) {
  .es-pro-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .es-pro-sidebar {
    position: fixed;
    inset: 72px auto 0 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 100;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
  }
  .es-pro-sidebar.is-open { transform: translateX(0); }
  .es-pro-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .es-pro-header-match-row { grid-template-columns: 1fr; }
}

/* Stili spostati da player-dash.js (prima scritti nel codice) */
.es-pdx-1.es-pdx-1.es-pdx-1 {
  color:var(--es-verified);
  font-size:11px;
  font-weight:700;
}
.es-pdx-2.es-pdx-2.es-pdx-2 {
  background:rgba(15,23,42,0.5);
  border:1px dashed rgba(148,163,184,0.2);
  border-radius:4px;
  padding:3rem 1.5rem;
  text-align:center;
  color:#94a3b8;
  font-size:0.82rem;
}
.es-pdx-3.es-pdx-3.es-pdx-3 {
  font-weight:700;
  color:#38bdf8;
  margin-bottom:0.4rem;
}
.es-pdx-4.es-pdx-4.es-pdx-4 {
  color:#38bdf8;
}
.es-pdx-5.es-pdx-5.es-pdx-5 {
  font-size:0.75rem;
  color:#38bdf8;
  font-weight:700;
}
.es-pdx-6.es-pdx-6.es-pdx-6 {
  margin-top:14px;
}
.es-pdx-7.es-pdx-7.es-pdx-7 {
  margin:0;
}
.es-pdx-8.es-pdx-8.es-pdx-8 {
  width:100%;
  margin-top:16px;
}
.es-pdx-9.es-pdx-9.es-pdx-9 {
  width:100%;
  margin-top:8px;
  border:1px solid #38bdf8;
  color:#38bdf8;
  background:rgba(56,189,248,0.08);
  font-weight:700;
}
.es-pdx-10.es-pdx-10.es-pdx-10 {
  margin-bottom:14px;
}
.es-pdx-11.es-pdx-11.es-pdx-11 {
  display:flex;
  gap:14px;
  font-size:11px;
  color:var(--es-text-muted);
  margin-bottom:16px;
}
.es-pdx-12.es-pdx-12.es-pdx-12 {
  color:var(--es-accent);
}
.es-pdx-13.es-pdx-13.es-pdx-13 {
  color:var(--es-text-muted);
}
.es-pdx-14.es-pdx-14.es-pdx-14 {
  color:var(--es-verified);
}
.es-pdx-15.es-pdx-15.es-pdx-15 {
  background:var(--es-panel-2);
  border:1px solid var(--es-border);
  border-radius:10px;
  padding:32px;
  text-align:center;
}
.es-pdx-16.es-pdx-16.es-pdx-16 {
  font-size:13px;
  font-weight:700;
  margin:0 0 6px;
  color:var(--es-text);
}
.es-pdx-17.es-pdx-17.es-pdx-17 {
  margin-top:10px;
}
.es-pdx-18.es-pdx-18.es-pdx-18 {
  color:var(--es-border);
  margin:0 4px;
}
.es-pdx-19.es-pdx-19.es-pdx-19 {
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  background:var(--es-panel-2);
  color:var(--es-accent);
  font-weight:800;
}
.es-pdx-20.es-pdx-20.es-pdx-20 {
  margin-bottom:12px;
}
.es-pdx-21.es-pdx-21.es-pdx-21 {
  border:1px solid rgba(56,189,248,0.22);
  background:radial-gradient(circle at 80% 20%, rgba(56,189,248,0.08) 0%, rgba(13,19,32,0.95) 100%);
}
.es-pdx-22.es-pdx-22.es-pdx-22 {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.es-pdx-23.es-pdx-23.es-pdx-23 {
  display:flex;
  flex-direction:column;
  gap:0;
}
.es-pdx-24.es-pdx-24.es-pdx-24 {
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid var(--es-border);
}
.es-pdx-25.es-pdx-25.es-pdx-25 {
  margin:0;
  text-transform:none;
  font-weight:400;
  color:var(--es-text-muted);
  font-size:13px;
}
.es-pdx-26.es-pdx-26.es-pdx-26 {
  font-weight:700;
}
.es-pdx-27.es-pdx-27.es-pdx-27 {
  display:flex;
  justify-content:space-between;
  padding:8px 0;
}
.es-pdx-28.es-pdx-28.es-pdx-28 {
  margin-top:0;
}
.es-pdx-29.es-pdx-29.es-pdx-29 {
  margin-top: 24px;
}
.es-pdx-30.es-pdx-30.es-pdx-30 {
  margin-bottom:10px;
}
.es-pdx-31.es-pdx-31.es-pdx-31 {
  margin-bottom: 16px;
}
.es-pdx-32.es-pdx-32.es-pdx-32 {
  margin-bottom: 18px;
}
.es-pdx-33.es-pdx-33.es-pdx-33 {
  margin-top: 16px;
}
.es-pdx-34.es-pdx-34.es-pdx-34 {
  max-width:720px;
  border-radius:6px;
}
.es-pdx-35.es-pdx-35.es-pdx-35 {
  display:flex;
  align-items:center;
  gap:0.75rem;
  margin-top:0.25rem;
}
.es-pdx-36.es-pdx-36.es-pdx-36 {
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  font-size:0.78rem;
  color:#f1f5f9;
  cursor:pointer;
}
.es-pd-radar-axis-label {
  cursor: pointer;
}

.es-empty-note[hidden] {
  display: none;
}
