/**
 * Scheda giocatore — colori e ritmo allineati a app.css (ML: teal, verde, blu).
 * Corregge il padding globale .card (5px) che schiacciava barre e contenuti.
 */
.player-profile {
  /* eredita :root; fallback se isolato */
  --ml-teal: var(--accent-1, #12d6c5);
  --ml-green: var(--accent-2, #22c55e);
  --ml-blue: var(--accent-3, #0ea5e9);
  --ml-panel: var(--panel, #121a22);
  --ml-line: var(--line, #2a3948);
  --ml-text: var(--text, #dae7f5);
  --ml-muted: var(--muted, #9bb0c3);
}

/* Padding dignitoso: il core .card usa solo 5px */
.player-profile > .card,
.player-profile .pp-two-col > .card {
  padding: 14px 16px !important;
}

@media (max-width: 639px) {
  .player-profile > .card,
  .player-profile .pp-two-col > .card {
    padding: 10px 8px !important;
  }

  /* Gutter pagina: massima larghezza utile su schermo stretto */
  body.page-player .container.player-profile {
    padding-left: max(2px, env(safe-area-inset-left, 0px));
    padding-right: max(2px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
}

.player-profile .pp-hero {
  padding: 0 !important;
  overflow: visible;
  border: 1px solid var(--ml-line);
  border-radius: var(--radius, 14px);
  background:
    linear-gradient(145deg, rgba(18, 26, 34, 0.97) 0%, rgba(17, 24, 38, 0.98) 45%, rgba(14, 20, 27, 1) 100%),
    radial-gradient(900px 420px at 0% 0%, rgba(18, 214, 197, 0.14), transparent 55%),
    radial-gradient(700px 380px at 100% 100%, rgba(14, 165, 233, 0.1), transparent 50%);
  box-shadow:
    inset 4px 0 0 0 var(--ml-teal),
    var(--shadow-sm, 0 6px 18px rgba(0, 0, 0, 0.28)),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.player-profile .pp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 14px 16px 16px;
}

/* Ruoli: su desktop/tablet partecipano al flex di .pp-top-head (nessun wrapper visibile) */
.player-profile .pp-top-roles {
  display: contents;
}

@media (max-width: 639px) {
  .player-profile .pp-hero-grid {
    grid-template-columns: minmax(84px, 30vw) 1fr;
    column-gap: 0.8rem;
    row-gap: 0.44rem;
    align-items: center;
    padding: 10px 8px 12px;
  }

  .player-profile .pp-main {
    display: contents;
  }

  .player-profile .pp-top {
    display: contents;
  }

  .player-profile .pp-photo-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    width: min(118px, 30vw);
    min-width: 84px;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
  }

  .player-profile .pp-share-wrap--in-hero {
    display: none !important;
  }

  .player-profile .pp-top-head {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 2;
    grid-row: 1;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0.2rem;
    box-sizing: border-box;
    align-self: center;
    justify-items: center;
    row-gap: 0.32rem;
  }

  .player-profile .pp-top-head .pp-name {
    font-size: clamp(1.23rem, 5.06vw, 1.67rem);
    line-height: 1.15;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 0.15rem;
    box-sizing: border-box;
  }

  .player-profile .pp-top-head .pp-pill--nat {
    justify-self: center;
    margin-inline: auto;
    width: fit-content;
    max-width: 100%;
  }

  .player-profile .pp-top-roles {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem 0.4rem;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1px;
  }

  .player-profile .pp-top-roles::-webkit-scrollbar {
    display: none;
  }

  .player-profile .pp-top-roles .pp-top-sep,
  .player-profile .pp-top-roles .pp-ruoli-lbl {
    display: none !important;
  }

  .player-profile .pp-top-roles .role-badge {
    flex-shrink: 0;
  }

  .player-profile .pp-top-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 0;
  }

  /* SoFIFA / TM / CMTracker: nella barra Collegamenti; nascosti nella hero */
  .player-profile .pp-profile-ext-btns--hero {
    display: none !important;
  }

  .player-profile .pp-ovr-pot-wrap {
    width: 100%;
    justify-content: center;
  }

  .player-profile .pp-ovr-top-visual {
    justify-content: center;
    width: 100%;
  }

  .player-profile .pp-ovr-compact-pot {
    align-items: center;
  }

  .player-profile .pp-pot-plain--beside-ring {
    align-items: center;
    text-align: center;
  }

  .player-profile .pp-pot-growth--compact {
    text-align: center;
    max-width: none;
  }

  .player-profile .pp-share-toggle__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* SoFIFA, CMTracker, Condividi: stessa forma (quadrato arrotondato) e ~−20% vs 44px */
  .player-profile .pp-sofifa-icon-btn,
  .player-profile .pp-cmtracker-icon-btn {
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    height: 35px !important;
    border-radius: 10px !important;
    box-sizing: border-box;
  }

  .player-profile .pp-sofifa-ico {
    width: 21px;
    height: 21px;
    border-radius: 5px;
  }

  .player-profile .pp-cmtracker-ico {
    width: 21px;
    height: 21px;
    border-radius: 50%;
  }

  .player-profile .pp-share-toggle {
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    height: 35px !important;
    min-height: 35px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    gap: 0;
  }

  .player-profile .pp-share-toggle .fa-share-nodes {
    font-size: 0.76rem;
  }

  .player-profile .pp-ovr-pot-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .player-profile .pp-share-wrap {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .player-profile .pp-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    gap: 0.24rem;
  }

  .player-profile .pp-stats-row {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0.48rem;
  }
}

@media (min-width: 640px) {
  .player-profile .pp-hero-grid {
    grid-template-columns: minmax(108px, 132px) 1fr;
    align-items: center;
  }

  .player-profile .pp-main {
    display: block;
  }

  .player-profile .pp-top {
    display: flex;
  }

  .player-profile .pp-meta,
  .player-profile .pp-stats-row {
    grid-column: unset;
    grid-row: unset;
  }

  .player-profile .pp-meta {
    margin-top: 0.55rem;
  }

  .player-profile .pp-stats-row {
    margin-top: 0.85rem;
  }
}

@media (min-width: 960px) {
  .player-profile .pp-hero-grid {
    grid-template-columns: minmax(120px, 140px) 1fr auto;
    gap: 1.25rem 1.5rem;
  }
}

.player-profile .pp-photo-wrap {
  justify-self: center;
  width: min(148px, 38vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .player-profile .pp-photo-wrap {
    justify-self: start;
    width: 100%;
    max-width: 132px;
    align-items: stretch;
  }
}

.player-profile .pp-photo {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ml-panel);
  border: 2px solid rgba(18, 214, 197, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(18, 214, 197, 0.12);
}

.player-profile button.pp-photo--card-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.player-profile button.pp-photo--card-trigger:hover {
  border-color: rgba(18, 214, 197, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(18, 214, 197, 0.22);
}
.player-profile button.pp-photo--card-trigger:focus-visible {
  outline: 2px solid rgba(18, 214, 197, 0.85);
  outline-offset: 3px;
}

.player-profile .pp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.player-profile .pp-pcard-under-photo,
.player-profile button.pp-pcard-under-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  margin: 0.1rem auto 0;
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 214, 197, 0.48);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: #5eead4;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}
.player-profile .pp-pcard-under-photo i {
  font-size: 0.85em;
  opacity: 0.95;
}
.player-profile .pp-pcard-under-photo:hover,
.player-profile button.pp-pcard-under-photo:hover {
  color: #99f6e4;
  border-color: rgba(45, 212, 191, 0.72);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.player-profile .pp-pcard-under-photo:focus-visible,
.player-profile button.pp-pcard-under-photo:focus-visible {
  outline: 2px solid rgba(18, 214, 197, 0.75);
  outline-offset: 2px;
}
@media (min-width: 640px) {
  .player-profile .pp-photo-wrap .pp-pcard-under-photo {
    align-self: center;
    width: auto;
  }
}

.player-profile .pp-main {
  min-width: 0;
}

.player-profile .pp-name {
  margin: 0;
  font-size: clamp(1.54rem, 4.62vw, 2.04rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  background: linear-gradient(92deg, #fff 0%, #c8e8f0 40%, var(--ml-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

/* fallback se clip non supportato */
@supports not (background-clip: text) {
  .player-profile .pp-name {
    color: var(--ml-text);
    background: none;
    filter: none;
  }
}

.player-profile .pp-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.player-profile .pp-top-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  min-width: 0;
}

@media (min-width: 640px) and (max-width: 959px) {
  .player-profile .pp-top-head {
    flex: 1 1 100%;
    width: 100%;
  }
}

.player-profile .pp-top-stats {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

@media (min-width: 640px) and (max-width: 959px) {
  .player-profile .pp-top-stats {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (min-width: 960px) {
  .player-profile .pp-top-stats {
    flex: 0 1 auto;
    width: auto;
  }
}

.player-profile .pp-pill--nat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 214, 197, 0.35);
  background: rgba(18, 214, 197, 0.08);
  font-size: 0.88rem;
  color: var(--ml-text);
}

.player-profile .pp-emoji-flag {
  font-size: 14px;
  line-height: 1;
}

.player-profile .pp-ruoli-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.player-profile .pp-sofifa-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0 !important;
  border-color: rgba(13, 122, 77, 0.55) !important;
  background: linear-gradient(180deg, rgba(13, 122, 77, 0.2), rgba(6, 77, 47, 0.12)) !important;
  border-radius: 12px !important;
}

.player-profile .pp-sofifa-icon-btn:hover {
  border-color: rgba(34, 197, 94, 0.65) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}

.player-profile .pp-sofifa-ico {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.player-profile .pp-profile-ext-btns {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Link esterni e Condividi vivono nella colonna Collegamenti della barra azioni */
.player-profile .pp-profile-ext-btns--hero,
.player-profile .pp-profile-ext-btns--in-actions {
  display: none !important;
}

/* Condividi scheda */
.player-profile .pp-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.player-profile .pp-share-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.28rem 0.7rem !important;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px !important;
  border-color: rgba(125, 211, 252, 0.45) !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04)) !important;
  color: #e0f2fe !important;
}

.player-profile .pp-share-toggle:hover {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.2);
}

.player-profile .pp-share-toggle[aria-expanded="true"] {
  border-color: rgba(56, 189, 248, 0.75) !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.08)) !important;
}

.player-profile .pp-share-toggle .fa-share-nodes {
  font-size: 0.95rem;
  opacity: 0.95;
}

.player-profile .pp-share-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 12.5rem;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 38, 0.99));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.player-profile .pp-share-menu[hidden] {
  display: none !important;
}

.player-profile .pp-share-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.48rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ml-text, #e8f0f6);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s ease;
}

.player-profile .pp-share-item:hover,
.player-profile .pp-share-item:focus-visible {
  outline: none;
  background: rgba(14, 165, 233, 0.14);
}

.player-profile .pp-share-item .fa-brands,
.player-profile .pp-share-item .fa-solid {
  width: 1.15rem;
  text-align: center;
  opacity: 0.92;
}

.player-profile .pp-share-item .fa-whatsapp {
  color: #25d366;
}

.player-profile .pp-share-item .fa-telegram {
  color: #2aabee;
}

.player-profile .pp-share-item .fa-facebook {
  color: #1877f2;
}

.player-profile .pp-share-item .fa-x-twitter {
  color: #e7e9ea;
}

.player-profile .pp-share-item .fa-linkedin-in {
  color: #0a66c2;
}

.player-profile .pp-share-item--wire .fa-w {
  color: #22d3ee;
}

.player-profile .pp-share-item[hidden] {
  display: none !important;
}

.player-profile .pp-share-item.pp-share-item--copied .pp-share-copy-lbl::after {
  content: " ✓";
  color: var(--ml-green, #22c55e);
  font-weight: 800;
}

.player-profile .pp-cmtracker-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0 !important;
  border-color: rgba(45, 212, 191, 0.5) !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), rgba(15, 118, 178, 0.1)) !important;
  border-radius: 12px !important;
}

.player-profile .pp-cmtracker-icon-btn:hover {
  border-color: rgba(94, 234, 212, 0.75) !important;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.28);
}

.player-profile .pp-cmtracker-ico {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.player-profile .pp-fav-form,
body.page-players .pl-acc-mercato form.pl-acc-fav-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

/* Pulsanti Mercato: scheda giocatore + elenco /players */
.player-profile .pp-actions .pp-mercato-btn,
body.page-players .pl-acc-mercato .pl-acc-mercato-btn,
body.page-players .pl-acc-mercato button.pl-acc-mercato-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.52rem 1rem !important;
  font-weight: 600;
  line-height: 1.25;
  box-sizing: border-box;
  border-radius: 12px !important;
  vertical-align: middle;
}

.player-profile .pp-actions .pp-mercato-ico,
body.page-players .pl-acc-mercato .pl-acc-mercato-btn .pl-mercato-ico {
  font-size: 1rem;
  width: 1.15em;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.92;
}

.player-profile .pp-actions .pp-fav-btn .pp-fav-heart,
body.page-players .pl-acc-mercato .pl-fav-heart {
  font-size: 1rem;
  width: 1.15em;
  flex-shrink: 0;
  text-align: center;
  color: #f9a8d4;
}

.player-profile .pp-fav-btn .pp-fav-heart--on,
body.page-players .pl-acc-mercato .pl-fav-heart--on {
  color: #f43f5e;
}

.player-profile .pp-fav-btn--add:hover .pp-fav-heart,
body.page-players .pl-acc-mercato .pl-acc-mercato-btn--add:hover .pl-fav-heart {
  color: #fb7185;
}

.player-profile .pp-card__sub {
  margin-left: 0.35rem;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ml-muted, #9bb0c3);
}

@keyframes pp-gold-pulse {
  0%,
  100% {
    box-shadow:
      0 0 6px rgba(255, 200, 80, 0.55),
      0 0 16px rgba(255, 180, 40, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 12px rgba(255, 230, 140, 0.85),
      0 0 26px rgba(255, 200, 60, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
    filter: brightness(1.07);
  }
}

.player-profile .pp-chip--ability-plus {
  color: #2a1f05 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(212, 175, 55, 0.95) !important;
  background: linear-gradient(
    125deg,
    #fff9e0 0%,
    #f5d061 22%,
    #ffd54a 45%,
    #e8b923 62%,
    #ffe566 100%
  ) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: pp-gold-pulse 2.4s ease-in-out infinite;
}

.player-profile .pp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.player-profile .pp-meta-row--phys {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.player-profile .pp-meta-row--phys::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .player-profile .pp-meta {
    display: block;
    gap: 0;
  }

  .player-profile .pp-meta-row--primary,
  .player-profile .pp-meta-row--phys {
    display: inline;
    white-space: normal;
    overflow: visible;
  }

  .player-profile .pp-meta-row--primary::after {
    content: ' · ';
  }
}

.player-profile .pp-meta-strong {
  color: var(--ml-text);
}

.player-profile .pp-meta-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: 1px 0;
  font-weight: 700;
  color: var(--ml-text);
  text-decoration: none;
  vertical-align: middle;
}

.player-profile .pp-meta-team-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22) inset;
}

.player-profile .pp-meta-team-name {
  color: var(--ml-text);
  border-bottom: 1px solid rgba(18, 214, 197, 0.35);
  transition: color 0.12s ease, border-color 0.12s ease;
}

.player-profile .pp-meta-team:hover .pp-meta-team-name {
  color: var(--ml-teal);
  border-bottom-color: rgba(18, 214, 197, 0.75);
}

.player-profile .pp-meta-team:focus-visible {
  outline: 2px solid rgba(18, 214, 197, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

.player-profile .pp-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  align-items: center;
}

.player-profile .pp-stat-pill-row--wage-share {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .player-profile .pp-stat-pill-row--wage-share {
    display: contents;
  }

  .player-profile .pp-share-wrap--by-wage {
    display: none !important;
  }

  .player-profile .pp-ing-label-short {
    display: none !important;
  }

  .player-profile .pp-ing-label-full {
    display: inline !important;
  }
}

@media (max-width: 639px) {
  .player-profile .pp-stats-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem 0.35rem;
  }

  .player-profile .pp-stats-row .pp-stat-pill--vdm {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.38rem 0.55rem;
    gap: 0.28rem 0.4rem;
  }

  .player-profile .pp-stats-row .pp-stat-pill--vdm .pp-stat-pill__k {
    font-size: 0.62rem;
  }

  .player-profile .pp-stats-row .pp-stat-pill--vdm .pp-stat-pill__v {
    font-size: 0.82rem;
  }

  .player-profile .pp-stat-pill-row--wage-share {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.3rem;
  }

  .player-profile .pp-stat-pill-row--wage-share .pp-stat-pill--wage {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.38rem 0.55rem;
    gap: 0.28rem 0.4rem;
  }

  .player-profile .pp-stat-pill-row--wage-share .pp-stat-pill--wage .pp-stat-pill__k {
    font-size: 0.62rem;
  }

  .player-profile .pp-stat-pill-row--wage-share .pp-stat-pill--wage .pp-stat-pill__v {
    font-size: 0.82rem;
  }

  .player-profile .pp-stat-pill-row--wage-share .pp-share-wrap--by-wage {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .player-profile .pp-ing-label-full {
    display: none !important;
  }

  .player-profile .pp-ing-label-short {
    display: inline !important;
  }
}

.player-profile .pp-stat-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 11px;
  font-size: 0.88rem;
  border: 1px solid var(--ml-line);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.1), rgba(18, 26, 34, 0.85));
}

.player-profile .pp-stat-pill--vdm {
  border-color: rgba(18, 214, 197, 0.35);
  background: linear-gradient(165deg, rgba(18, 214, 197, 0.12), rgba(18, 26, 34, 0.88));
}

.player-profile .pp-stat-pill--wage {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.1), rgba(18, 26, 34, 0.88));
}

.player-profile .pp-ing-label-short {
  display: none;
}

.player-profile .pp-stat-pill__k {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ml-muted);
}

.player-profile .pp-stat-pill__v {
  color: var(--ml-text);
  font-size: 0.95rem;
}

.player-profile .pp-info-ico {
  margin-left: 2px;
  color: var(--ml-muted);
  cursor: help;
  font-size: 0.9rem;
}

/* Colonna OVR desktop */
.player-profile .pp-hero-aside {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
}

@media (min-width: 960px) {
  .player-profile .pp-hero-aside {
    display: flex;
  }
}

/* Desktop: OVR nel aside; riga compatta (cerchio + POT) solo < 960px */
.player-profile .pp-rings-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-profile .pp-ovr-pot-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  line-height: 1.15;
}

@media (min-width: 960px) {
  .player-profile .pp-ovr-pot-wrap {
    display: none !important;
  }
}

.player-profile .pp-ovr-top-visual {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.player-profile .pp-ovr-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-width: 2.5rem;
  height: 1.52rem;
  padding: 0 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 12px rgba(2, 6, 23, 0.4);
}
.player-profile .pp-ovr-delta__arrow {
  font-size: 0.98rem;
  line-height: 1;
  font-weight: 950;
}
.player-profile .pp-ovr-delta__val {
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
}
.player-profile .pp-ovr-delta--up {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(22, 163, 74, 0.3);
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.35);
}
.player-profile .pp-ovr-delta--down {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(220, 38, 38, 0.26);
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
}
.player-profile .pp-ovr-delta--neutral {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.58);
  background: rgba(100, 116, 139, 0.24);
}
.player-profile .pp-rings-stack .pp-ovr-delta {
  margin-top: 0.35rem;
}

.player-profile .pp-uptrend__body {
  display: grid;
  gap: 0.55rem;
}
.player-profile .pp-uptrend__legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #aab4c3;
}
.player-profile .pp-uptrend__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.player-profile .pp-uptrend__dot--ovr { background: #4ade80; }
.player-profile .pp-uptrend__dot--pot { background: #a78bfa; }
.player-profile .pp-uptrend__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.player-profile .pp-uptrend__ranges {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.player-profile .pp-uptrend__range-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.34rem 0.58rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.player-profile .pp-uptrend__range-btn:hover {
  border-color: rgba(74, 222, 128, 0.5);
  color: #ecfdf5;
}
.player-profile .pp-uptrend__range-btn.is-active {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(34, 197, 94, 0.2);
  color: #dcfce7;
}
.player-profile .pp-uptrend__viz {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
}
.player-profile .pp-uptrend__plot {
  min-width: 0;
}
.player-profile .pp-uptrend__y {
  height: 148px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.68rem;
  line-height: 1;
  color: #8ea3bd;
  font-weight: 700;
}
.player-profile .pp-uptrend__chart {
  width: 100%;
  height: 148px;
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(2, 6, 23, 0.9));
}
.player-profile .pp-uptrend__x {
  margin-top: 0.28rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  font-size: 0.66rem;
  line-height: 1.2;
  color: #8ea3bd;
}
.player-profile .pp-uptrend__x span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-profile .pp-uptrend__x span:nth-child(2) {
  text-align: center;
}
.player-profile .pp-uptrend__x span:nth-child(3) {
  text-align: right;
}
.player-profile .pp-uptrend__pt {
  transition: r 0.15s ease, opacity 0.15s ease;
}
.player-profile .pp-uptrend__pt--ovr {
  fill: #4ade80;
  stroke: rgba(15, 23, 42, 0.95);
  stroke-width: 0.28;
}
.player-profile .pp-uptrend__pt--pot {
  fill: #a78bfa;
  stroke: rgba(15, 23, 42, 0.95);
  stroke-width: 0.28;
  opacity: 0.95;
}
.player-profile .pp-uptrend__pt:hover,
.player-profile .pp-uptrend__pt:focus {
  r: 1.35;
}
.player-profile .pp-uptrend__last {
  font-size: 0.78rem;
  line-height: 1.4;
}
.player-profile .pp-uptrend__src {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #94a3b8;
}
@media (max-width: 640px) {
  .player-profile .pp-uptrend__viz {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.35rem;
  }
  .player-profile .pp-uptrend__y {
    font-size: 0.63rem;
  }
  .player-profile .pp-uptrend__x {
    font-size: 0.61rem;
  }
}

.player-profile .pp-ovr-compact-pot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.player-profile .pp-pot-plain--beside-ring {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.player-profile .pp-pot-plain--beside-ring .pp-pot-plain__num {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  color: #bbf7d0;
}

.player-profile .pp-pot-plain--beside-ring .pp-pot-plain__lbl {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 1px;
  color: var(--ml-muted);
}

.player-profile .pp-pot-growth--compact {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.58rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: rgba(187, 247, 208, 0.88);
  max-width: 6.5rem;
}

/* Numero + etichetta POT senza cerchio */
.player-profile .pp-pot-plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.player-profile .pp-pot-plain__num {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #bbf7d0;
}

.player-profile .pp-pot-plain__lbl {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ml-muted);
  margin-top: 2px;
}

.player-profile .pp-pot-growth--under-badge {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(187, 247, 208, 0.88);
  max-width: 11rem;
}

.player-profile .pp-ovr-ring {
  --pp-ovr-pct: 75;
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(18, 214, 197, 0.15), transparent 62%);
}

.player-profile .pp-ovr-ring__track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 5px;
  /* Colore arco: stessi scaglioni 0–99 delle barre / radar (data-bucket su .pp-ovr-ring) */
  --pp-ovr-arc: var(--ml-green);
  background: conic-gradient(
    var(--pp-ovr-arc) calc(var(--pp-ovr-pct) * 1%),
    var(--ml-line) 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}

.player-profile .pp-ovr-ring[data-bucket="1"] .pp-ovr-ring__track {
  --pp-ovr-arc: #f87171;
}
.player-profile .pp-ovr-ring[data-bucket="2"] .pp-ovr-ring__track {
  --pp-ovr-arc: #fb923c;
}
.player-profile .pp-ovr-ring[data-bucket="3"] .pp-ovr-ring__track {
  --pp-ovr-arc: #facc15;
}
.player-profile .pp-ovr-ring[data-bucket="4"] .pp-ovr-ring__track {
  --pp-ovr-arc: #a3e635;
}
.player-profile .pp-ovr-ring[data-bucket="5"] .pp-ovr-ring__track {
  --pp-ovr-arc: #4ade80;
}
.player-profile .pp-ovr-ring[data-bucket="6"] .pp-ovr-ring__track {
  --pp-ovr-arc: #006400;
}

.player-profile .pp-ovr-ring__inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(160deg, #15212c, #0e141b);
  border: 1px solid rgba(18, 214, 197, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.player-profile .pp-ovr-ring__num {
  font-size: 2.22rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* fallback se manca data-bucket */
  background-image: linear-gradient(180deg, #fff, var(--ml-teal));
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.35)) drop-shadow(0 0 14px rgba(45, 212, 191, 0.2));
}

/* Stessi bucket dell’anello / barre / radar + glow leggero */
.player-profile .pp-ovr-ring[data-bucket="1"] .pp-ovr-ring__num {
  background-image: linear-gradient(180deg, #ffe4e6, #f87171);
  filter: drop-shadow(0 0 5px rgba(248, 113, 113, 0.55)) drop-shadow(0 0 14px rgba(248, 113, 113, 0.28));
}
.player-profile .pp-ovr-ring[data-bucket="2"] .pp-ovr-ring__num {
  background-image: linear-gradient(180deg, #ffedd5, #fb923c);
  filter: drop-shadow(0 0 5px rgba(251, 146, 60, 0.55)) drop-shadow(0 0 14px rgba(251, 146, 60, 0.28));
}
.player-profile .pp-ovr-ring[data-bucket="3"] .pp-ovr-ring__num {
  background-image: linear-gradient(180deg, #fef9c3, #eab308);
  filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.6)) drop-shadow(0 0 14px rgba(234, 179, 8, 0.3));
}
.player-profile .pp-ovr-ring[data-bucket="4"] .pp-ovr-ring__num {
  background-image: linear-gradient(180deg, #ecfccb, #84cc16);
  filter: drop-shadow(0 0 5px rgba(163, 230, 53, 0.55)) drop-shadow(0 0 14px rgba(132, 204, 22, 0.28));
}
.player-profile .pp-ovr-ring[data-bucket="5"] .pp-ovr-ring__num {
  background-image: linear-gradient(180deg, #ecfdf5, #4ade80);
  filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.55)) drop-shadow(0 0 14px rgba(34, 197, 94, 0.3));
}
.player-profile .pp-ovr-ring[data-bucket="6"] .pp-ovr-ring__num {
  background-image: linear-gradient(180deg, #d9f99d, #16a34a);
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6)) drop-shadow(0 0 16px rgba(22, 163, 74, 0.35));
}

@supports not (background-clip: text) {
  .player-profile .pp-ovr-ring__num {
    background: none !important;
    filter: none;
  }
  .player-profile .pp-ovr-ring[data-bucket="1"] .pp-ovr-ring__num {
    color: #f87171;
  }
  .player-profile .pp-ovr-ring[data-bucket="2"] .pp-ovr-ring__num {
    color: #fb923c;
  }
  .player-profile .pp-ovr-ring[data-bucket="3"] .pp-ovr-ring__num {
    color: #eab308;
  }
  .player-profile .pp-ovr-ring[data-bucket="4"] .pp-ovr-ring__num {
    color: #84cc16;
  }
  .player-profile .pp-ovr-ring[data-bucket="5"] .pp-ovr-ring__num {
    color: #4ade80;
  }
  .player-profile .pp-ovr-ring[data-bucket="6"] .pp-ovr-ring__num {
    color: #22c55e;
  }
  .player-profile .pp-ovr-ring:not([data-bucket]) .pp-ovr-ring__num {
    color: var(--ml-teal);
  }
}

.player-profile .pp-ovr-ring__lbl {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ml-muted);
  margin-top: 2px;
}

/* Cerchio OVR compatto (seconda riga header su mobile) */
.player-profile .pp-ovr-ring--compact {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 45%, rgba(18, 214, 197, 0.12), transparent 62%);
}

.player-profile .pp-ovr-ring--compact .pp-ovr-ring__track {
  padding: 3px;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

.player-profile .pp-ovr-ring--compact .pp-ovr-ring__inner {
  inset: 6px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.38);
}

.player-profile .pp-ovr-ring--compact .pp-ovr-ring__num {
  font-size: 1.1rem;
}

.player-profile .pp-ovr-ring--compact:not([data-bucket]) .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(45, 212, 191, 0.35)) drop-shadow(0 0 5px rgba(45, 212, 191, 0.12));
}

.player-profile .pp-ovr-ring--compact[data-bucket="1"] .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(248, 113, 113, 0.4)) drop-shadow(0 0 4px rgba(248, 113, 113, 0.15));
}
.player-profile .pp-ovr-ring--compact[data-bucket="2"] .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(251, 146, 60, 0.4)) drop-shadow(0 0 4px rgba(251, 146, 60, 0.15));
}
.player-profile .pp-ovr-ring--compact[data-bucket="3"] .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.45)) drop-shadow(0 0 4px rgba(234, 179, 8, 0.15));
}
.player-profile .pp-ovr-ring--compact[data-bucket="4"] .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(163, 230, 53, 0.4)) drop-shadow(0 0 4px rgba(132, 204, 22, 0.15));
}
.player-profile .pp-ovr-ring--compact[data-bucket="5"] .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(74, 222, 128, 0.4)) drop-shadow(0 0 4px rgba(34, 197, 94, 0.15));
}
.player-profile .pp-ovr-ring--compact[data-bucket="6"] .pp-ovr-ring__num {
  filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.45)) drop-shadow(0 0 4px rgba(22, 163, 74, 0.18));
}

.player-profile .pp-ovr-ring--compact .pp-ovr-ring__lbl {
  font-size: 0.42rem;
  letter-spacing: 0.1em;
  margin-top: 0;
}

@media (max-width: 360px) {
  .player-profile .pp-ovr-ring--compact {
    width: 50px;
    height: 50px;
  }

  .player-profile .pp-ovr-ring--compact .pp-ovr-ring__inner {
    inset: 5px;
  }

  .player-profile .pp-ovr-ring--compact .pp-ovr-ring__num {
    font-size: 0.98rem;
  }

  .player-profile .pp-top-stats {
    gap: 0.28rem 0.32rem;
  }
}

@media (max-width: 959px) {
  .player-profile .pp-share-wrap {
    margin-left: auto;
  }
}

.player-profile .pp-pot-growth {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  max-width: 112px;
  color: rgba(187, 247, 208, 0.88) !important;
}

.player-profile .pp-pot-growth__pct {
  font-weight: 650;
  opacity: 0.82;
}

/* Card sezioni */
.player-profile .pp-card {
  margin-top: 12px;
  border-radius: var(--radius, 14px);
  background: linear-gradient(165deg, rgba(18, 26, 34, 0.95), rgba(17, 24, 38, 0.98));
  border: 1px solid var(--ml-line);
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(0, 0, 0, 0.28));
}

.player-profile .pp-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ml-line);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ml-teal);
}

.player-profile .pp-card__head i {
  color: var(--ml-green);
  opacity: 0.95;
  font-size: 1rem;
}

.player-profile .pp-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.06), rgba(17, 24, 38, 0.95));
}

.player-profile .pp-actions__col {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  min-width: 0;
}

.player-profile .pp-actions__col--mercato {
  flex: 1 1 auto;
}

.player-profile .pp-actions__col--links {
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.player-profile .pp-actions-links {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.4rem;
}

.player-profile .pp-link-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.38rem 0.72rem !important;
  border-radius: 11px !important;
  font-weight: 650;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

.player-profile .pp-link-btn__ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
  background: transparent;
}

.player-profile .pp-link-btn__ico--sofifa,
.player-profile .pp-link-btn__ico--tm,
.player-profile .pp-link-btn__ico--cm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.player-profile .pp-link-btn__tm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.2rem;
  padding: 0 0.22rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: #fbbf24;
  line-height: 1;
}

.player-profile .pp-link-btn--sofifa {
  border-color: rgba(13, 122, 77, 0.5) !important;
  background: linear-gradient(180deg, rgba(13, 122, 77, 0.18), rgba(6, 77, 47, 0.1)) !important;
}

.player-profile .pp-link-btn--tm {
  border-color: rgba(251, 191, 36, 0.45) !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(180, 120, 20, 0.08)) !important;
}

.player-profile .pp-link-btn--cm {
  border-color: rgba(45, 212, 191, 0.45) !important;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.14), rgba(15, 118, 110, 0.08)) !important;
}

.player-profile .pp-link-btn--share {
  border-color: rgba(148, 163, 184, 0.4) !important;
}

.player-profile .pp-share-wrap--in-actions {
  position: relative;
  display: inline-flex;
}

.player-profile .pp-tm-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0 !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.2), rgba(180, 120, 20, 0.1)) !important;
  border-radius: 12px !important;
}

.player-profile .pp-tm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: #fbbf24;
  line-height: 1;
}

.player-profile .pp-tm-ico-img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 7px;
}

.player-profile .pp-cmtracker-ico-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #99f6e4;
}

/* Condividi unico nella barra azioni: nascondi duplicati hero / wage */
.player-profile .pp-share-wrap--in-hero,
.player-profile .pp-share-wrap--by-wage {
  display: none !important;
}

.player-profile .pp-mercato-fold-toggle {
  display: none;
}

@media (min-width: 1025px) {
  .player-profile .pp-mercato-fold-panel {
    display: contents !important;
  }
}

/* Pad + mobile: 2 colonne, solo icone + tooltip (legacy actions bar only) */
@media (max-width: 1024px) {
  .player-profile .pp-actions:not(.pp-actions--v2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem 0.65rem;
  }

  .player-profile .pp-actions__col {
    flex-wrap: wrap;
  }

  .player-profile .pp-actions__col--mercato {
    flex: none;
  }

  .player-profile .pp-actions__col--links {
    margin-left: 0;
    padding-left: 0.65rem;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    justify-content: flex-end;
    align-self: center;
  }

  .player-profile .pp-actions__col--links .pp-actions-label--desk {
    display: none !important;
  }

  .player-profile .pp-actions-links .pp-link-btn {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    gap: 0;
  }

  .player-profile .pp-actions-links .pp-link-btn__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .player-profile .pp-actions-links .pp-link-btn__ico,
  .player-profile .pp-actions-links .pp-link-btn__ico--sofifa,
  .player-profile .pp-actions-links .pp-link-btn__ico--tm,
  .player-profile .pp-actions-links .pp-link-btn__ico--cm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .player-profile .pp-actions-links .pp-share-wrap--in-actions .pp-link-btn {
    font-size: 1.05rem;
  }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .player-profile .pp-mercato-fold-panel {
    display: contents !important;
  }

  .player-profile .pp-actions .pp-actions-label--desk {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .player-profile .pp-actions .pp-actions-label--desk {
    display: none !important;
  }

  .player-profile .pp-mercato-fold-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    margin: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ml-green, var(--accent-2, #22c55e));
    padding: 0.38rem 0.62rem 0.38rem 0.7rem;
    border-radius: 9px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.4);
    line-height: 1.2;
    flex-shrink: 0;
  }

  .player-profile .pp-mercato-fold-chevron {
    font-size: 0.58rem;
    opacity: 0.88;
    transition: transform 0.2s ease;
  }

  .player-profile .pp-mercato-fold-toggle[aria-expanded='true'] .pp-mercato-fold-chevron {
    transform: rotate(180deg);
  }

  .player-profile .pp-mercato-fold-toggle:hover {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.2);
  }

  .player-profile .pp-mercato-fold-toggle[aria-expanded='true'] {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
  }

  .player-profile .pp-actions__col--mercato .pp-fav-form,
  .player-profile .pp-actions__col--mercato > a.pp-fav-btn {
    margin-left: auto;
  }

  .player-profile .pp-mercato-fold-panel {
    flex: 1 1 100%;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem 0.55rem;
    align-items: center;
    padding-top: 0.2rem;
  }

  .player-profile .pp-mercato-fold-panel.is-open {
    display: flex;
  }

  .player-profile .pp-fav-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .player-profile .pp-actions .pp-fav-btn {
    min-width: 42px;
    padding-left: 0.58rem !important;
    padding-right: 0.58rem !important;
    gap: 0 !important;
  }
}
.player-profile .pp-actions .pp-actions-label--desk,
body.page-players .pl-acc-mercato .pl-acc-mercato-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ml-green, var(--accent-2, #22c55e));
  padding: 0.38rem 0.7rem;
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  align-self: center;
  flex-shrink: 0;
}

.player-profile .pp-actions__col--links .pp-actions-label--desk {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
}

.player-profile .pp-actions .pp-mercato-btn:hover,
body.page-players .pl-acc-mercato .pl-acc-mercato-btn:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.12);
}

.player-profile .pp-two-col {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .player-profile .pp-two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.player-profile .pp-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-profile .pp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid rgba(14, 165, 233, 0.4);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0.05));
  color: #e8f4fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-profile .pp-chip--style {
  border-color: rgba(18, 214, 197, 0.45);
  background: linear-gradient(180deg, rgba(18, 214, 197, 0.16), rgba(18, 214, 197, 0.05));
  color: #e6fffa;
}

/* Ruoli FC: colonna roles → + verde | colonna roles_plus → ++ oro (player_tags dopo import) */
.player-profile .pp-chip--role-plus {
  border-color: rgba(74, 222, 128, 0.5);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(20, 83, 45, 0.12));
  color: #ecfdf5;
}

.player-profile .pp-role-suffix--plus {
  margin-left: 2px;
  font-weight: 900;
  font-size: 1.05em;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.player-profile .pp-chip--role-plusplus {
  color: #2a1f05 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(212, 175, 55, 0.95) !important;
  background: linear-gradient(
    125deg,
    #fff9e0 0%,
    #f5d061 22%,
    #ffd54a 45%,
    #e8b923 62%,
    #ffe566 100%
  ) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 6px rgba(255, 200, 80, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-profile .pp-role-suffix--pp {
  margin-left: 1px;
  font-weight: 900;
  font-size: 1.02em;
  letter-spacing: 0.02em;
  color: #7c5a06;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.player-profile .pp-chip--ability {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.05));
  color: #ecfdf5;
}

.player-profile .pp-empty-hint {
  font-size: 0.88rem;
  color: var(--ml-muted);
  margin: 0;
  line-height: 1.45;
}

.player-profile .pp-top-sep {
  color: var(--ml-muted, #9bb0c3);
  font-weight: 700;
  padding: 0 0.12rem;
  user-select: none;
}

.player-profile .pp-card--attrs {
  width: 100%;
  box-sizing: border-box;
}

.player-profile .pp-attrs-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
}

.player-profile .pp-attrs-layout .pp-attrs-grid {
  flex: 1 1 220px;
  min-width: 0;
}

.player-profile .pp-attrs-radar {
  flex: 0 0 auto;
  width: 176px;
  max-width: min(48vw, 200px);
  margin-inline: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

@media (min-width: 640px) {
  .player-profile .pp-attrs-radar {
    margin-inline: 0;
  }
}

.player-profile .pp-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.player-profile .pp-radar-svg text {
  pointer-events: none;
  user-select: none;
}

.player-profile .pp-radar__area {
  fill: rgba(255, 255, 255, 0.12);
  stroke: none;
}

.player-profile .pp-radar__edge {
  fill: none;
  stroke-width: 1.65;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-profile .pp-radar__edge--1 { stroke: #f87171; }
.player-profile .pp-radar__edge--2 { stroke: #fb923c; }
.player-profile .pp-radar__edge--3 { stroke: #facc15; }
.player-profile .pp-radar__edge--4 { stroke: #a3e635; }
.player-profile .pp-radar__edge--5 { stroke: #4ade80; }
.player-profile .pp-radar__edge--6 { stroke: #006400; }

.player-profile .pp-radar__dot {
  stroke-width: 0.65;
}

.player-profile .pp-radar__dot--1 { fill: #f87171; stroke: rgba(127, 29, 29, 0.85); }
.player-profile .pp-radar__dot--2 { fill: #fb923c; stroke: rgba(154, 52, 18, 0.85); }
.player-profile .pp-radar__dot--3 { fill: #facc15; stroke: rgba(113, 63, 18, 0.85); }
.player-profile .pp-radar__dot--4 { fill: #a3e635; stroke: rgba(63, 98, 18, 0.85); }
.player-profile .pp-radar__dot--5 { fill: #4ade80; stroke: rgba(20, 83, 45, 0.88); }
.player-profile .pp-radar__dot--6 { fill: #006400; stroke: rgba(0, 40, 0, 0.95); }

.player-profile .pp-radar-lbl {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.player-profile .pp-radar-val {
  font-size: 20px;
  font-weight: 800;
  opacity: 0.98;
}

.player-profile .pp-radar-lbl--bucket-1,
.player-profile .pp-radar-val--bucket-1 {
  fill: #f87171;
}

.player-profile .pp-radar-lbl--bucket-2,
.player-profile .pp-radar-val--bucket-2 {
  fill: #fb923c;
}

.player-profile .pp-radar-lbl--bucket-3,
.player-profile .pp-radar-val--bucket-3 {
  fill: #facc15;
}

.player-profile .pp-radar-lbl--bucket-4,
.player-profile .pp-radar-val--bucket-4 {
  fill: #bef264;
}

.player-profile .pp-radar-lbl--bucket-5,
.player-profile .pp-radar-val--bucket-5 {
  fill: #86efac;
}

.player-profile .pp-radar-lbl--bucket-6,
.player-profile .pp-radar-val--bucket-6 {
  fill: #006400;
}

@keyframes pp-radar-expand {
  from {
    transform: scale(0);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.player-profile .pp-radar__plot {
  transform: scale(0);
  transform-origin: 0 0;
  animation: pp-radar-expand 0.88s cubic-bezier(0.18, 0.88, 0.28, 1.05) 0.08s both;
}

@media (prefers-reduced-motion: reduce) {
  .player-profile .pp-radar__plot {
    animation: none !important;
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}

/* Griglia 2 colonne su desktop: riempie la card attributi */
.player-profile .pp-attrs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 20px;
  width: 100%;
}

@media (min-width: 560px) {
  .player-profile .pp-attrs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Barre attributi — !important sui fill per vincere lo style inline di fallback */
.player-profile .pp-stat-row {
  box-sizing: border-box;
}

.player-profile .pp-stat-lbl {
  font-weight: 900;
  font-size: 0.74rem;
  color: var(--ml-muted);
  text-align: right;
  letter-spacing: 0.06em;
  cursor: help;
}

.player-profile .pp-stat-lbl-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.player-profile .pp-stat-ico {
  flex-shrink: 0;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--ml-teal);
  opacity: 0.88;
}

.player-profile .pp-stat-abbr {
  letter-spacing: 0.06em;
}

.player-profile .pp-stat-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ml-line);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Caricamento barre (effetto gaming): crescita da sinistra + leggero overshoot */
@keyframes pp-stat-fill-rise {
  from {
    transform: scaleX(0.04);
    opacity: 0.65;
  }
  82% {
    transform: scaleX(1.04);
    opacity: 1;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.player-profile .pp-attrs-grid > .pp-stat-row:nth-child(1) {
  --pp-stag: 0.04s;
}
.player-profile .pp-attrs-grid > .pp-stat-row:nth-child(2) {
  --pp-stag: 0.1s;
}
.player-profile .pp-attrs-grid > .pp-stat-row:nth-child(3) {
  --pp-stag: 0.16s;
}
.player-profile .pp-attrs-grid > .pp-stat-row:nth-child(4) {
  --pp-stag: 0.22s;
}
.player-profile .pp-attrs-grid > .pp-stat-row:nth-child(5) {
  --pp-stag: 0.28s;
}
.player-profile .pp-attrs-grid > .pp-stat-row:nth-child(6) {
  --pp-stag: 0.34s;
}

.player-profile .pp-stat-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.65;
  animation: pp-stat-fill-rise 0.95s cubic-bezier(0.2, 0.85, 0.22, 1) var(--pp-stag, 0s) forwards;
  will-change: transform;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .player-profile .pp-stat-fill {
    animation: none !important;
    transform: scaleX(1) !important;
    opacity: 1 !important;
    will-change: auto;
  }
}

/*
 * Scaglioni (0–99): tutta la track nella tinta dello scaglione (parte “vuota”),
 * riempimento = stesso colore pieno fino al valore (niente arcobaleno lungo la barra).
 */
.player-profile .pp-stat-row[data-bucket="1"] .pp-stat-track {
  background: rgba(127, 29, 29, 0.55);
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
}
.player-profile .pp-stat-row[data-bucket="1"] .pp-stat-fill {
  background: #f87171 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 12px rgba(248, 113, 113, 0.45) !important;
}

.player-profile .pp-stat-row[data-bucket="2"] .pp-stat-track {
  background: rgba(154, 52, 18, 0.5);
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.42);
}
.player-profile .pp-stat-row[data-bucket="2"] .pp-stat-fill {
  background: #fb923c !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 12px rgba(251, 146, 60, 0.42) !important;
}

.player-profile .pp-stat-row[data-bucket="3"] .pp-stat-track {
  background: rgba(113, 63, 18, 0.52);
  border-color: rgba(234, 179, 8, 0.38);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.42);
}
.player-profile .pp-stat-row[data-bucket="3"] .pp-stat-fill {
  background: #facc15 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 12px rgba(250, 204, 21, 0.4) !important;
}

.player-profile .pp-stat-row[data-bucket="4"] .pp-stat-track {
  background: rgba(63, 98, 18, 0.5);
  border-color: rgba(163, 230, 53, 0.35);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}
.player-profile .pp-stat-row[data-bucket="4"] .pp-stat-fill {
  background: #a3e635 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 12px rgba(163, 230, 53, 0.45) !important;
}

.player-profile .pp-stat-row[data-bucket="5"] .pp-stat-track {
  background: rgba(20, 83, 45, 0.52);
  border-color: rgba(74, 222, 128, 0.38);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}
.player-profile .pp-stat-row[data-bucket="5"] .pp-stat-fill {
  background: #4ade80 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 12px rgba(74, 222, 128, 0.45) !important;
}

@keyframes pp-stat-elite-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 0 14px rgba(0, 100, 0, 0.65),
      0 0 28px rgba(250, 204, 21, 0.38),
      0 0 42px rgba(0, 64, 0, 0.45);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 0 22px rgba(34, 160, 60, 0.55),
      0 0 38px rgba(252, 211, 77, 0.48),
      0 0 52px rgba(0, 100, 0, 0.4);
    filter: brightness(1.05);
  }
}

.player-profile .pp-stat-row[data-bucket="6"] .pp-stat-track {
  background: rgba(0, 55, 0, 0.62);
  border-color: rgba(0, 100, 0, 0.55);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}
.player-profile .pp-stat-row[data-bucket="6"] .pp-stat-fill {
  background: #006400 !important;
  animation:
    pp-stat-fill-rise 0.95s cubic-bezier(0.2, 0.85, 0.22, 1) var(--pp-stag, 0s) forwards,
    pp-stat-elite-glow 2.4s ease-in-out calc(var(--pp-stag, 0s) + 0.98s) infinite !important;
}

@media (prefers-reduced-motion: reduce) {
  .player-profile .pp-stat-row[data-bucket="6"] .pp-stat-fill {
    animation: none !important;
    filter: none !important;
    transform: scaleX(1) !important;
    opacity: 1 !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 0 16px rgba(0, 100, 0, 0.6),
      0 0 30px rgba(250, 204, 21, 0.35) !important;
  }
}

.player-profile .pp-stat-val {
  font-weight: 900;
  font-size: 0.88rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ml-text);
}

/* Cronologia */
.player-profile .pp-timeline .muted.small {
  margin-top: 6px;
}

section.container.player-profile {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 8px;
  padding-right: 8px;
}

.player-profile .pp-timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ml-line);
}

.player-profile .pp-timeline-head h4 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ml-teal);
}

.player-profile .pp-tl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.player-profile .pp-tl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-profile .pp-tl-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--ml-line);
  background: rgba(0, 0, 0, 0.2);
}

.player-profile .pp-tl-item-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .player-profile .pp-tl-item-row > div:last-child {
    width: 100%;
  }
}

/* ========== Elenco /players (barra Mercato + toggle dettagli) ========== */

body.page-players .pl-acc-mercato {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.06), rgba(17, 24, 38, 0.95));
}

body.page-players .pl-acc-mercato .pl-acc-tool-btn {
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #e0f2fe !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04)) !important;
}
body.page-players .pl-acc-mercato .pl-acc-tool-btn:hover {
  border-color: rgba(125, 211, 252, 0.55) !important;
}
body.page-players .pl-acc-mercato .pl-acc-tool-btn--dm {
  border-color: rgba(167, 139, 250, 0.4) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.05)) !important;
}

body.page-players .pl-acc-simili {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(2, 6, 23, 0.45);
}

body.page-players .pl-acc-simili__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

body.page-players .pl-acc-simili__meta {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 650;
}

body.page-players .pl-acc-simili__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

body.page-players .pl-acc-simili__card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: inherit;
}

body.page-players .pl-acc-simili__card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.08);
}

body.page-players .pl-acc-simili__img,
body.page-players .pl-acc-simili__ph {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-players .pl-acc-simili__ph {
  display: grid;
  place-items: center;
  color: #64748b;
}

body.page-players .pl-acc-simili__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

body.page-players .pl-acc-simili__name {
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-players .pl-acc-simili__ovr {
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
}

body.page-players .pl-simili-dialog {
  margin: auto;
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.25rem);
  width: min(36rem, 100%);
  background: transparent;
}
body.page-players .pl-simili-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
}
body.page-players .pl-simili-dialog__panel {
  box-sizing: border-box;
  padding: 0.9rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 197, 94, 0.12);
  color: #e2e8f0;
  max-height: min(78vh, 36rem);
  overflow: auto;
}
body.page-players .pl-simili-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
body.page-players .pl-simili-dialog__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.02em;
}
body.page-players .pl-simili-dialog__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  cursor: pointer;
}
body.page-players .pl-simili-dialog__close:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
body.page-players .pl-simili-dialog__body .pl-acc-simili__head {
  margin-bottom: 0.55rem;
}
body.page-players .pl-simili-dialog__body .pl-acc-simili__grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

body.page-players .btn.ghost.acc-toggle.pl-acc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 !important;
  border-radius: 12px !important;
  border-color: rgba(18, 214, 197, 0.45) !important;
  background: linear-gradient(180deg, rgba(18, 214, 197, 0.14), rgba(6, 77, 47, 0.08)) !important;
  color: var(--accent-1, #12d6c5) !important;
}

body.page-players .btn.ghost.acc-toggle.pl-acc-toggle:hover {
  border-color: rgba(34, 197, 94, 0.55) !important;
  box-shadow: 0 0 14px rgba(18, 214, 197, 0.18);
}

body.page-players .acc-toggle.pl-acc-toggle .acc-ico {
  font-size: 0.88rem;
  transition: transform 0.2s ease;
  color: inherit;
  opacity: 0.95;
}

body.page-players .acc-toggle.pl-acc-toggle.is-open .acc-ico {
  transform: rotate(180deg);
}

/* Pannello espanso /players: stesse card della scheda, senza max-width del section.player-profile */
body.page-players .pl-acc-embed.player-profile {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-players .pl-acc-embed .pp-two-col {
  margin-top: 12px;
}

/* PlayStyle: chip come bottone + popup (player-trait-popover.js) */
.player-profile button.pp-chip {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.player-profile button.pp-chip:focus-visible {
  outline: 2px solid var(--ml-teal, #12d6c5);
  outline-offset: 2px;
}

.pp-trait-popover-root[hidden] {
  display: none !important;
}

.pp-trait-popover-root:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.pp-trait-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  cursor: default;
}

.pp-trait-popover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(70vh, 24rem);
  overflow: auto;
  padding: 1.1rem 1.25rem 1.15rem;
  border-radius: 14px;
  background: var(--ml-panel, #121a22);
  border: 1px solid var(--ml-line, #2a3948);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  color: var(--ml-text, #dae7f5);
}

.pp-trait-popover__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.pp-trait-popover__meta {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ml-muted, #9bb0c3);
}

.pp-trait-popover__meta[hidden],
.pp-trait-popover__desc[hidden] {
  display: none !important;
}

.pp-trait-popover__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ml-text, #dae7f5);
}

.pp-trait-popover__desc .pp-trait-popover__intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ml-muted, #9bb0c3);
}

.pp-trait-popover__desc .pp-trait-popover__tier {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ml-teal, #12d6c5);
}

.pp-trait-popover__desc .pp-trait-popover__tier:first-of-type {
  margin-top: 0;
}

.pp-trait-popover__desc .pp-trait-popover__tierbody {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ml-text, #dae7f5);
}

/* /players mobile: card lista come Rosa su /team (team-roster-card) */
@media (max-width: 979px) {
  body.page-players .players-cards-below-toolbar .team-roster-card__title-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__name-team {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__player-name {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__team-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__team-name:hover {
    color: #bae6fd;
    text-decoration: underline;
  }

  body.page-players .players-cards-below-toolbar .ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__statline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
    min-width: 0;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__statline .role-badge,
  body.page-players .players-cards-below-toolbar .team-roster-card__statline .ovr-pill {
    flex-shrink: 0;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__age {
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--muted, #94a3b8);
    flex-shrink: 0;
    line-height: 1.2;
  }

  /* Altezza accanto al nome (stessa riga di nome / squadra) */
  body.page-players .players-cards-below-toolbar .team-roster-card__name-team .team-roster-card__height {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
    line-height: 1.15;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__name-team .team-roster-card__height-ico {
    font-size: 0.5rem;
    opacity: 0.9;
    color: #a8b8d0;
    transform: translateY(0.5px);
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__name-team .team-roster-card__height-val {
    letter-spacing: 0.01em;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card {
    position: relative;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card--players-top-actions {
    padding-right: 2.75rem !important;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card--players-top-actions--wide {
    padding-right: 4.95rem !important;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__top-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__top-actions .team-roster-card__menu-toggle {
    position: static;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-toggle {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.92);
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    font: inherit;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-toggle:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.65);
    outline-offset: 2px;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-chevron {
    font-size: 0.68rem;
    transition: transform 0.2s ease;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-toggle.is-open .team-roster-card__menu-chevron {
    transform: rotate(180deg);
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu[hidden] {
    display: none !important;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: absolute;
    top: 40px;
    right: 6px;
    z-index: 5;
    min-width: 8.75rem;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(17, 24, 38, 0.98);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
    box-sizing: border-box;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-tratta {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.65rem !important;
    text-decoration: none;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__fav-form {
    margin: 0;
    display: flex;
    justify-content: stretch;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__fav-form .team-roster-card__menu-fav {
    flex: 1 1 auto;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-fav {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.4rem !important;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__fav-ico {
    font-size: 1rem;
    line-height: 1;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__menu-fav--on .team-roster-card__fav-ico {
    color: #f87171;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__top-actions .team-roster-card__market-hint {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.55);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.28), rgba(234, 88, 12, 0.14));
    color: #fbbf24;
    box-shadow: 0 1px 8px rgba(245, 158, 11, 0.2);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    flex-shrink: 0;
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__top-actions .team-roster-card__market-hint i {
    font-size: 0.78rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.35));
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__top-actions .team-roster-card__market-hint:hover {
    border-color: rgba(253, 224, 71, 0.75);
    color: #fde047;
    filter: brightness(1.06);
  }

  body.page-players .players-cards-below-toolbar .team-roster-card__top-actions .team-roster-card__market-hint:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.85);
    outline-offset: 2px;
  }
}

/* Dialog condizioni vendita (mobile /players, annuncio mercato) */
body.page-players .pl-players-market-dialog {
  margin: auto;
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.5rem);
  width: min(22rem, 100%);
  background: transparent;
}

body.page-players .pl-players-market-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

body.page-players .pl-players-market-dialog__panel {
  box-sizing: border-box;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.12);
  color: #e2e8f0;
}

body.page-players .pl-players-market-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.02em;
}

body.page-players .pl-players-market-dialog__lead {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

body.page-players .pl-players-market-dialog__dl {
  margin: 0 0 1rem;
  padding: 0;
}

body.page-players .pl-players-market-dialog__row {
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.page-players .pl-players-market-dialog__row:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

body.page-players .pl-players-market-dialog__row dt {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

body.page-players .pl-players-market-dialog__row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f1f5f9;
  word-break: break-word;
}

body.page-players .pl-players-market-dialog__close {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  font-weight: 700;
}

/* Player tools: Contatta manager / Vedi club / Giocatori simili */
.player-profile .pp-actions .pp-tool-btn {
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #e0f2fe !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04)) !important;
}
.player-profile .pp-actions .pp-tool-btn:hover {
  border-color: rgba(125, 211, 252, 0.55) !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.18);
}
.player-profile .pp-actions .pp-tool-btn--dm {
  border-color: rgba(167, 139, 250, 0.4) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.05)) !important;
}
.player-profile .pp-card--similar .pp-card__head {
  flex-wrap: wrap;
}
.player-profile .pp-similar-meta {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted, #94a3b8);
}
/* Native <dialog> — override UA white chrome; dark ML panel + large card */
dialog.pp-pcard-dialog,
.player-profile .pp-pcard-dialog,
body.page-player .pp-pcard-dialog {
  margin: auto;
  padding: 0;
  border: none;
  max-width: min(26.5rem, calc(100vw - 1.25rem));
  width: min(26.5rem, calc(100vw - 1.25rem));
  background: transparent;
  color: #e2e8f0;
  color-scheme: dark;
  box-shadow: none;
}
dialog.pp-pcard-dialog::backdrop,
.player-profile .pp-pcard-dialog::backdrop,
body.page-player .pp-pcard-dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(5px);
}
.player-profile .pp-pcard-dialog__panel,
dialog.pp-pcard-dialog .pp-pcard-dialog__panel {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 214, 197, 0.4);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.99) 0%, rgba(15, 23, 42, 1) 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(18, 214, 197, 0.12);
  color: #e2e8f0;
}
.player-profile .pp-pcard-dialog__bar,
dialog.pp-pcard-dialog .pp-pcard-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.player-profile .pp-pcard-dialog__actions,
dialog.pp-pcard-dialog .pp-pcard-dialog__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.player-profile .pp-pcard-share,
dialog.pp-pcard-dialog .pp-pcard-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(18, 214, 197, 0.45);
  color: #99f6e4;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.player-profile .pp-pcard-share:hover,
dialog.pp-pcard-dialog .pp-pcard-share:hover {
  border-color: rgba(45, 212, 191, 0.7);
  color: #ccfbf1;
  background: rgba(15, 23, 42, 0.9);
}
.player-profile .pp-pcard-share.is-busy,
dialog.pp-pcard-dialog .pp-pcard-share.is-busy,
.player-profile .pp-pcard-share:disabled,
dialog.pp-pcard-dialog .pp-pcard-share:disabled {
  opacity: 0.65;
  cursor: wait;
}
.player-profile .pp-pcard-share__lbl,
dialog.pp-pcard-dialog .pp-pcard-share__lbl {
  line-height: 1;
}
@media (max-width: 420px) {
  .player-profile .pp-pcard-share__lbl,
  dialog.pp-pcard-dialog .pp-pcard-share__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .player-profile .pp-pcard-share,
  dialog.pp-pcard-dialog .pp-pcard-share {
    width: 2.15rem;
    padding: 0;
  }
}
.player-profile .pp-pcard-dialog__title,
dialog.pp-pcard-dialog .pp-pcard-dialog__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #5eead4;
  letter-spacing: 0.03em;
}
.player-profile .pp-pcard-dialog__title i,
dialog.pp-pcard-dialog .pp-pcard-dialog__title i {
  opacity: 0.9;
}
.player-profile .pp-pcard-dialog__close,
dialog.pp-pcard-dialog .pp-pcard-dialog__close {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.player-profile .pp-pcard-dialog__close:hover,
dialog.pp-pcard-dialog .pp-pcard-dialog__close:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.player-profile .pp-pcard-dialog__body,
dialog.pp-pcard-dialog .pp-pcard-dialog__body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.15rem 0 0;
  box-sizing: border-box;
  container-type: inline-size;
}
.player-profile .pp-pcard-dialog__body.pp-xg-pcard-wrap,
dialog.pp-pcard-dialog .pp-pcard-dialog__body.pp-xg-pcard-wrap {
  max-width: none;
  width: 100%;
}
.player-profile .pp-pcard-dialog__body .xg-pcard,
dialog.pp-pcard-dialog .pp-pcard-dialog__body .xg-pcard {
  --xg-pcard-max: 380px;
  --xg-pcard-min: 280px;
  width: min(100%, 380px);
  max-width: 380px;
  min-width: min(100%, 280px);
  margin-inline: auto;
}
/* Wrapper lazy-load da /players: evita flex width 0 */
dialog.pp-pcard-dialog .pl-pcard-payload,
.player-profile .pl-pcard-payload {
  display: block;
  width: min(100%, 380px);
  max-width: 380px;
  min-width: min(100%, 280px);
  margin-inline: auto;
  box-sizing: border-box;
}
dialog.pp-pcard-dialog .pl-pcard-payload .xg-pcard,
.player-profile .pl-pcard-payload .xg-pcard {
  width: 100%;
  max-width: none;
  min-width: 0;
}
@media (max-width: 420px) {
  dialog.pp-pcard-dialog,
  .player-profile .pp-pcard-dialog,
  body.page-player .pp-pcard-dialog {
    width: min(100%, calc(100vw - 0.85rem));
    max-width: calc(100vw - 0.85rem);
  }
  .player-profile .pp-pcard-dialog__body .xg-pcard,
  dialog.pp-pcard-dialog .pp-pcard-dialog__body .xg-pcard {
    --xg-pcard-max: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.player-profile .pp-similar-dialog {
  margin: auto;
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.25rem);
  width: min(36rem, 100%);
  background: transparent;
}
.player-profile .pp-similar-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
}
.player-profile .pp-similar-dialog__panel {
  box-sizing: border-box;
  padding: 0.9rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 197, 94, 0.12);
  color: #e2e8f0;
  max-height: min(78vh, 36rem);
  overflow: auto;
}
.player-profile .pp-similar-dialog__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.player-profile .pp-similar-dialog__title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.02em;
}
.player-profile .pp-similar-dialog__title .pp-similar-meta {
  margin-left: 0;
  width: 100%;
}
.player-profile .pp-similar-dialog__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  cursor: pointer;
}
.player-profile .pp-similar-dialog__close:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.player-profile .pp-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
}
.player-profile .pp-similar-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(11, 18, 32, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.player-profile .pp-similar-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.12);
}
.player-profile .pp-similar-card__img,
.player-profile .pp-similar-card__ph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.player-profile .pp-similar-card__ph {
  display: grid;
  place-items: center;
  color: #64748b;
}
.player-profile .pp-similar-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.player-profile .pp-similar-card__name {
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-profile .pp-similar-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.player-profile .pp-similar-card__ovr {
  color: #86efac;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) {
  .player-profile .pp-similar-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— /players: tabella stile manager (Forma, link popup, preferiti) —— */
@media (min-width: 768px) {
  body.page-players .players-table .table > tbody > tr.player-card > td.player-photo,
  body.page-players .players-table .table > tbody > tr.player-card > td.player-information {
    display: none;
  }
}

body.page-players .players-table .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.page-players .players-table .table {
  width: max-content;
  min-width: 100%;
}

body.page-players .players-table .pl-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.page-players .players-table .pl-player-face {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

body.page-players .players-table .pl-player-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-players .players-table .pl-player-name-stack {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

body.page-players .players-table .pl-player-name-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

body.page-players .players-table .pl-player-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.page-players .players-table .chip-removed--sub {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  white-space: nowrap;
}

body.page-players .players-table .chip-removed--sub .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ef4444;
  display: inline-block;
}

body.page-players .players-table .pl-player-name-core {
  min-width: 0;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--blue-400, #93c5fd);
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.page-players .players-table .pl-player-name-core a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
}

body.page-players .players-table .pl-player-name-core a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-players .players-table .pl-player-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

body.page-players .players-table .pl-td-player {
  white-space: normal;
  vertical-align: middle;
  max-width: min(440px, 42vw);
  min-width: 11rem;
}

body.page-players .players-table thead th.pl-th-forma,
body.page-players .players-table tbody td.pl-td-forma {
  width: 3.25rem;
  max-width: 3.6rem;
  text-align: center;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
  vertical-align: middle;
}

body.page-players .players-table .pl-forma-empty {
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
}

body.page-players .players-table thead th.pl-th-link,
body.page-players .players-table thead th.pl-th-fav,
body.page-players .players-table tbody td.pl-td-link,
body.page-players .players-table tbody td.pl-td-fav {
  width: 2.4rem;
  text-align: center;
  vertical-align: middle;
  padding-left: 4px;
  padding-right: 4px;
}

body.page-players .players-table .pl-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.22), rgba(8, 145, 178, 0.08));
  color: #67e8f9;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}

body.page-players .players-table .pl-act-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(34, 211, 238, 0.55);
}

body.page-players .players-table .pl-act-btn.is-disabled,
body.page-players .players-table .pl-act-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.page-players .players-table .pl-fav-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

body.page-players .players-table .pl-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.12);
  color: #fca5a5;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

body.page-players .players-table .pl-fav-btn:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(127, 29, 29, 0.22);
  text-decoration: none;
}

body.page-players .players-table .pl-fav-btn--on {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(220, 38, 38, 0.2);
}

body.page-players .players-table .pl-fav-btn.is-disabled,
body.page-players .players-table .pl-fav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Popup link esterni (condiviso con manager) */
body.page-players.mgr-ext-links-modal--open {
  overflow: hidden;
}

body.page-players .mgr-ext-links-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.page-players .mgr-ext-links-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.page-players .mgr-ext-links-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.page-players .mgr-ext-links-modal__panel {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(12, 18, 32, 0.96) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

body.page-players .mgr-ext-links-modal.is-open .mgr-ext-links-modal__panel {
  transform: none;
}

body.page-players .mgr-ext-links-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  cursor: pointer;
}

body.page-players .mgr-ext-links-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22d3ee;
}

body.page-players .mgr-ext-links-modal__title {
  margin: 0 36px 4px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

body.page-players .mgr-ext-links-modal__player {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #94a3b8;
}

body.page-players .mgr-ext-links-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-players .mgr-ext-links-modal__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

body.page-players .mgr-ext-links-modal__link:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(8, 145, 178, 0.14);
  color: #f8fafc;
}

body.page-players .mgr-ext-links-modal__ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
  flex: 0 0 auto;
}

body.page-players .mgr-ext-links-modal__lbl {
  flex: 1 1 auto;
  font-weight: 800;
  font-size: 0.92rem;
}

body.page-players .mgr-ext-links-modal__go {
  font-size: 0.75rem;
  opacity: 0.65;
}

body.page-players .mgr-ext-links-modal__empty {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   Player sheet redesign v70 — hero / actions / nav / accordion / responsive
   ========================================================================== */
.player-profile {
  --player-bg: #0b1320;
  --player-panel: #101a29;
  --player-panel-2: #121f31;
  --player-line: #243247;
  --player-text: #e8f0fa;
  --player-muted: #9bb0c3;
  --player-teal: #12d6c5;
  --player-cyan: #22d3ee;
  --player-green: #22c55e;
  --player-blue: #0ea5e9;
  --player-gold: #f5d061;
  --player-radius: 14px;
  --player-touch: 44px;
}

.player-profile .pp-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.player-profile .pp-hero--v2 {
  padding: 0 !important;
  background:
    linear-gradient(145deg, rgba(16, 26, 41, 0.98) 0%, rgba(11, 19, 32, 1) 100%),
    radial-gradient(800px 360px at 0% 0%, rgba(18, 214, 197, 0.12), transparent 55%),
    radial-gradient(640px 320px at 100% 100%, rgba(14, 165, 233, 0.1), transparent 50%);
  border: 1px solid var(--player-line);
  border-radius: var(--player-radius);
  box-shadow:
    inset 4px 0 0 0 var(--player-teal),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.player-profile .pp-hero--v2 .pp-hero-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1.1fr) minmax(0, 0.95fr) 118px;
  gap: 0.75rem 0;
  align-items: center;
  padding: 0.75rem 1rem 0.8rem;
  justify-content: start;
}

.player-profile .pp-hero--v2 .pp-photo-wrap {
  padding-right: 1rem;
}

.player-profile .pp-hero-identity,
.player-profile .pp-hero-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.player-profile .pp-hero-identity {
  gap: 0.28rem;
  padding-right: 1.1rem;
}

.player-profile .pp-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  width: 100%;
}

.player-profile .pp-name-row .pp-name {
  flex: 1 1 auto;
  min-width: 0;
}

.player-profile .pp-name-row .pp-role-badges {
  flex: 0 0 auto;
  margin: 0;
}

.player-profile .pp-hero-identity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
  width: 100%;
}

.player-profile .pp-hero-details {
  gap: 0.55rem;
  padding: 0.1rem 1.1rem;
  border-left: 1px solid rgba(82, 112, 145, 0.28);
  justify-content: center;
}

.player-profile .pp-hero--v2 .pp-bio {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--player-muted);
  font-variant-numeric: tabular-nums;
  visibility: visible !important;
  opacity: 1 !important;
}

.player-profile .pp-hero--v2 .pp-bio__age-desk {
  display: inline !important;
}

.player-profile .pp-hero--v2 .pp-name {
  margin: 0;
  font-size: clamp(1.28rem, 1.05rem + 0.7vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--player-text);
}

.player-profile .player-nationality {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--player-muted);
}

.player-profile .player-nationality__flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.player-profile .player-nationality__flag img {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  vertical-align: middle;
}

.player-profile .pp-club-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0;
}

.player-profile .pp-bio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
  font-size: 0.86rem;
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
}

.player-profile .pp-bio__sep {
  opacity: 0.45;
  margin: 0 0.05rem;
}

.player-profile .pp-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0;
  margin-top: 0.1rem;
}

.player-profile .pp-stats-row--v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-profile .pp-hero--v2 .pp-hero-aside {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin-left: 0.15rem;
  border-left: 1px solid rgba(82, 112, 145, 0.28);
  z-index: 1;
}

.player-profile .pp-hero--v2 .pp-rings-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.player-profile .pp-hero--v2 .pp-ovr-ring--compact {
  display: none !important;
}

.player-profile .pp-stat-pill__v,
.player-profile .pp-ovr-ring__num,
.player-profile .pp-pot-plain__num,
.player-profile .pp-ovr-delta__val {
  font-variant-numeric: tabular-nums;
}

.player-profile .pp-club-age {
  display: none;
}

.player-profile .pp-stats-row--mobile {
  display: none;
}

.player-profile .pp-act-lbl-short {
  display: none;
}

.player-profile .pp-hero--v2 .pp-hero-aside {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin-left: 0.15rem;
  border-left: 1px solid rgba(82, 112, 145, 0.28);
  z-index: 1;
}

.player-profile .pp-actions.pp-actions--v2 {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.55rem;
  padding: 0.75rem 1rem !important;
  background: var(--player-panel);
  border: 1px solid var(--player-line);
}

.player-profile .pp-actions-v2__primary {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.player-profile .pp-actions-v2__primary .pp-fav-form,
.player-profile .pp-actions-v2__primary > a {
  display: inline-flex;
  width: auto;
  margin: 0;
}

.player-profile .pp-scout-btn {
  width: auto !important;
  min-height: var(--player-touch);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid rgba(18, 214, 197, 0.45);
  background: linear-gradient(135deg, rgba(18, 214, 197, 0.22), rgba(14, 165, 233, 0.14));
  color: var(--player-text);
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.player-profile .pp-scout-btn--on {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(18, 214, 197, 0.12));
}

.player-profile .pp-actions-v2__secondary {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
}

.player-profile .pp-act-btn {
  min-height: var(--player-touch);
  width: auto !important;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

.player-profile .pp-actions--v2 .pp-share-wrap--in-actions {
  display: inline-flex;
  position: relative;
  width: auto;
  flex: 0 0 auto;
}

.player-profile .pp-actions-v2__extended {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  margin-left: auto;
}

.player-profile .pp-actions-fonti {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.player-profile .pp-actions-fonti__lbl {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--player-muted);
  margin-right: 0.15rem;
}

.player-profile .pp-actions-more {
  position: relative;
}

.player-profile .pp-altro-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 220px;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--player-line);
  background: var(--player-panel-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.player-profile .pp-altro-menu[hidden] {
  display: none !important;
}

.player-profile .pp-altro-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--player-text);
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.player-profile .pp-altro-item:hover,
.player-profile .pp-altro-item:focus-visible {
  background: rgba(18, 214, 197, 0.12);
  outline: none;
}

.player-profile .pp-actions-more--mobile {
  display: none;
}

.player-profile .pp-pcard-under-photo--desk {
  margin-top: 0.35rem;
}

.player-profile .pp-inpage-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin: 0.1rem 0 0.2rem;
  scroll-snap-type: x proximity;
  border: 1px solid var(--player-line);
  border-radius: 12px;
  background: var(--player-panel);
}

.player-profile .pp-inpage-nav::-webkit-scrollbar {
  display: none;
}

.player-profile .pp-inpage-nav a {
  flex: 1 1 auto;
  scroll-snap-align: start;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--player-line);
  background: transparent;
  color: var(--player-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.player-profile .pp-inpage-nav a:last-child {
  border-right: 0;
}

.player-profile .pp-inpage-nav a.is-active,
.player-profile .pp-inpage-nav a:hover,
.player-profile .pp-inpage-nav a:focus-visible {
  color: var(--player-text);
  background: rgba(18, 214, 197, 0.12);
  box-shadow: inset 0 -2px 0 0 var(--player-teal);
  outline: none;
}

.player-profile .pp-section-anchor,
.player-profile #pp-attributi,
.player-profile #pp-storico,
.player-profile #pp-trasferimenti {
  scroll-margin-top: 5.5rem;
}

.player-profile .pp-accordion {
  padding: 0 !important;
  overflow: hidden;
}

.player-profile .pp-accordion__toggle {
  width: 100%;
  min-height: var(--player-touch);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: var(--player-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.player-profile .pp-accordion__toggle:focus-visible {
  outline: 2px solid var(--player-teal);
  outline-offset: -2px;
}

.player-profile .pp-accordion__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.player-profile .pp-accordion__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.player-profile .pp-accordion__status {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.player-profile .pp-act-btn__lbl-short {
  display: none;
}

.player-profile .pp-act-btn--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.player-profile .pp-act-btn--desk-smarrito {
  display: inline-flex;
}

.player-profile .pp-accordion__chevron {
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.player-profile .pp-accordion__toggle[aria-expanded="true"] .pp-accordion__chevron {
  transform: rotate(180deg);
}

.player-profile .pp-accordion__panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--player-line);
}

.player-profile .pp-accordion__panel[hidden] {
  display: none !important;
}

.player-profile .pp-timeline-head--in-panel {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
  padding-top: 0.55rem;
}

.player-profile .pp-chip--ability:not(.pp-chip--ability-plus) {
  background: rgba(10, 18, 28, 0.92) !important;
  color: var(--player-text) !important;
  border: 1px solid rgba(34, 197, 94, 0.55) !important;
}

.player-profile .pp-chip--ability-plus {
  background: linear-gradient(125deg, #fff9e0 0%, #f5d061 35%, #e8b923 70%, #ffe566 100%) !important;
  color: #2a1f05 !important;
  border: 1px solid rgba(212, 175, 55, 0.95) !important;
}

@media (min-width: 769px) {
  .player-profile .pp-attrs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .player-profile .pp-attrs-radar,
  .player-profile .pp-radar-svg {
    display: none !important;
  }

  .player-profile .pp-attrs-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .player-profile .pp-hero--v2 .pp-hero-grid {
    grid-template-columns:
      140px
      minmax(220px, 1.1fr)
      minmax(200px, 0.9fr)
      130px;
    align-items: center;
    justify-content: start;
    gap: 0;
    padding: 0.7rem 1.1rem 0.75rem;
  }

  .player-profile .pp-hero--v2 .pp-hero-identity {
    padding-right: 1.25rem;
  }

  .player-profile .pp-hero--v2 .pp-hero-details {
    padding: 0.15rem 1.25rem;
    border-left: 1px solid rgba(82, 112, 145, 0.28);
  }

  .player-profile .pp-hero--v2 .pp-ovr-ring {
    width: 96px;
    height: 96px;
  }

  .player-profile .pp-act-btn--desk-smarrito {
    display: inline-flex;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .player-profile .pp-hero--v2 .pp-hero-grid {
    grid-template-columns:
      120px
      minmax(180px, 1.05fr)
      minmax(170px, 0.9fr)
      118px;
    align-items: center;
    justify-content: start;
    gap: 0;
    padding: 0.65rem 0.9rem 0.7rem;
  }

  .player-profile .pp-hero--v2 .pp-ovr-ring {
    width: 88px;
    height: 88px;
  }

  .player-profile .pp-act-btn--desk-smarrito {
    display: inline-flex;
  }
}

@media (min-width: 769px) and (max-width: 959px) {
  .player-profile .pp-hero--v2 .pp-hero-grid {
    grid-template-columns: 112px minmax(0, 1fr) 108px;
    grid-template-areas:
      "photo identity ovr"
      "photo details ovr";
    gap: 0.45rem 0.85rem;
    padding: 0.65rem 0.85rem;
  }

  .player-profile .pp-hero--v2 .pp-photo-wrap { grid-area: photo; }
  .player-profile .pp-hero--v2 .pp-hero-identity {
    grid-area: identity;
    padding-right: 0;
    border: 0;
  }
  .player-profile .pp-hero--v2 .pp-hero-details {
    grid-area: details;
    padding: 0;
    border-left: 0;
  }
  .player-profile .pp-hero--v2 .pp-hero-aside { grid-area: ovr; }

  .player-profile .pp-act-btn--desk-smarrito {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .player-profile .pp-hero--v2 .pp-hero-grid {
    grid-template-columns: 104px minmax(0, 1fr) 78px !important;
    grid-template-areas:
      "name name ovr"
      "photo identity ovr"
      "photo details ovr"
      "stats stats stats" !important;
    column-gap: 0.55rem !important;
    row-gap: 0.35rem !important;
    align-items: start !important;
    padding: 0.7rem 0.6rem 0.75rem !important;
  }

  .player-profile .pp-hero--v2 .pp-hero-identity {
    display: contents !important;
  }

  .player-profile .pp-hero--v2 .pp-name-row {
    grid-area: name !important;
    width: 100%;
    max-width: 100%;
    margin: 0 0 0.15rem !important;
    align-items: center;
    gap: 0.3rem 0.4rem;
  }

  .player-profile .pp-hero--v2 .pp-name {
    width: auto;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: clamp(1.12rem, 5vw, 1.35rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  .player-profile .pp-hero--v2 .pp-name-row .pp-role-badges {
    gap: 0.25rem;
  }

  .player-profile .pp-hero--v2 .pp-name-row .role-badge {
    font-size: 0.68rem;
    padding: 0.12rem 0.4rem;
  }

  .player-profile .pp-hero--v2 .pp-hero-identity-meta {
    grid-area: identity !important;
    min-width: 0 !important;
    gap: 0.2rem !important;
  }

  .player-profile .pp-hero--v2 .pp-photo-wrap {
    grid-area: photo !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .player-profile .pp-hero--v2 .pp-photo,
  .player-profile .pp-hero--v2 button.pp-photo--card-trigger {
    width: 104px !important;
    height: 104px !important;
    max-width: 104px !important;
  }

  .player-profile .pp-hero--v2 .pp-photo img {
    width: 104px !important;
    height: 104px !important;
    object-fit: cover;
  }

  .player-profile .pp-hero--v2 .pp-pcard-under-photo,
  .player-profile .pp-hero--v2 button.pp-pcard-under-photo,
  .player-profile .pp-pcard-under-photo--desk {
    display: none !important;
  }

  .player-profile .pp-hero--v2 .pp-hero-details {
    grid-area: details !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
    gap: 0.25rem !important;
  }

  .player-profile .pp-hero--v2 .pp-hero-aside {
    grid-area: ovr !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    overflow: visible;
    align-self: start !important;
    padding: 0 !important;
    margin: 0 !important;
    border-left: 0 !important;
  }

  .player-profile .pp-hero--v2 .pp-rings-stack {
    gap: 0.15rem !important;
    width: 100%;
    align-items: center !important;
  }

  .player-profile .pp-hero--v2 .pp-ovr-ring {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0;
  }

  .player-profile .pp-hero--v2 .pp-ovr-ring__num {
    font-size: 1.35rem !important;
  }

  .player-profile .pp-hero--v2 .pp-ovr-ring__lbl {
    font-size: 0.58rem !important;
  }

  .player-profile .pp-hero--v2 .pp-pot-plain {
    flex-direction: row;
    gap: 0.2rem;
    align-items: baseline;
  }

  .player-profile .pp-hero--v2 .pp-pot-plain__num {
    font-size: 0.95rem;
  }

  .player-profile .pp-hero--v2 .pp-pot-plain__lbl {
    font-size: 0.62rem;
  }

  .player-profile .pp-hero--v2 .pp-ovr-delta {
    font-size: 0.72rem;
  }

  .player-profile .pp-club-age {
    display: inline;
    font-size: 0.78rem;
  }

  .player-profile .pp-bio__age-desk,
  .player-profile .pp-bio__sep--after-age {
    display: none !important;
  }

  .player-profile .pp-stats-row--desk {
    display: none !important;
  }

  .player-profile .pp-stats-row--mobile {
    grid-area: stats !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
    align-items: stretch;
  }

  .player-profile .pp-stats-row--mobile .pp-stat-pill {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 40px;
    height: 40px;
    padding: 0.35rem 0.55rem;
    box-sizing: border-box;
  }

  .player-profile .pp-stats-row--mobile .pp-info-ico {
    display: none !important;
  }

  .player-profile .pp-stats-row--mobile .pp-stat-pill__k,
  .player-profile .pp-stats-row--mobile .pp-stat-pill__v {
    line-height: 1.1;
    white-space: nowrap;
  }

  .player-profile .pp-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
  }

  .player-profile .pp-bio {
    font-size: 0.78rem;
  }

  .player-profile .pp-actions.pp-actions--v2 {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0.55rem !important;
  }

  .player-profile .pp-actions-v2__primary,
  .player-profile .pp-actions-v2__primary .pp-fav-form,
  .player-profile .pp-actions-v2__primary > a,
  .player-profile .pp-scout-btn {
    width: 100% !important;
  }

  .player-profile .pp-actions--v2 .pp-scout-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    min-height: 44px;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap !important;
  }

  .player-profile .pp-actions--v2 .pp-fav-btn-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .player-profile .pp-actions-v2__secondary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  .player-profile .pp-actions--v2 .pp-share-wrap--in-actions {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .player-profile .pp-actions-v2__extended--desk,
  .player-profile .pp-act-btn--desk-smarrito {
    display: none !important;
  }

  .player-profile .pp-actions-more--mobile {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .player-profile .pp-act-lbl-long {
    display: none !important;
  }

  .player-profile .pp-act-lbl-short {
    display: inline !important;
  }

  .player-profile .pp-actions-v2__secondary .pp-act-btn,
  .player-profile .pp-actions-v2__secondary .pp-share-toggle,
  .player-profile .pp-altro-toggle {
    min-height: 52px !important;
    height: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-direction: column !important;
    gap: 0.25rem;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    border-radius: 10px !important;
  }

  .player-profile .pp-actions-v2__secondary .pp-act-btn i {
    font-size: 1.1rem;
  }

  .player-profile .pp-inpage-nav {
    gap: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    background: transparent;
    padding: 0;
    margin: 0.15rem 0 0.35rem;
  }

  .player-profile .pp-inpage-nav a {
    flex: 0 0 auto;
    border: 0;
    border-right: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.65rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--player-muted);
    box-shadow: none;
    justify-content: center;
  }

  .player-profile .pp-inpage-nav a.is-active,
  .player-profile .pp-inpage-nav a:hover,
  .player-profile .pp-inpage-nav a:focus-visible {
    color: var(--player-cyan, #22d3ee);
    border-bottom: 2px solid var(--player-cyan, #22d3ee);
    background: transparent;
    box-shadow: none;
  }

  .player-profile .pp-two-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-profile .pp-accordion__chevron,
  .player-profile .pp-chip--ability-plus,
  .player-profile .pp-radar__plot,
  .player-profile .pp-stat-fill {
    animation: none !important;
    transition: none !important;
  }
}

.player-profile a:focus-visible,
.player-profile button:focus-visible {
  outline: 2px solid var(--player-teal);
  outline-offset: 2px;
}
/* Guard: desktop/tablet keep identity+details as flex columns.
   Mobile uses display:contents on identity so .pp-name can span foto+desc. */
@media (min-width: 769px) {
  .player-profile .pp-hero--v2 .pp-hero-identity,
  .player-profile .pp-hero--v2 .pp-hero-details {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
  }
}

.player-profile .pp-hero--v2 .pp-role-badges {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}
