/* ===== Team header (bilanciato: masthead | griglia dati) ===== */
.team-hero {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.5));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.team-hero__masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.team-hero__masthead-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 0;
  min-width: 0;
}

.team-hero__masthead-main .team-hero__name {
  margin: 0;
}

.team-hero__fold-toggle {
  display: none;
}

.team-hero__fold-panel {
  display: flex;
  flex-direction: column;
}

.team-hero__panel--lineup .team-hero__fold-panel {
  gap: 0.45rem;
}

.team-hero__struct-wrap .team-hero__fold-panel {
  gap: 0.5rem;
}

.team-hero__panel--squad .team-hero__fold-panel {
  gap: 0.65rem;
}
.team-hero__logo {
  width: 5.5rem; height: 5.5rem; flex-shrink: 0;
  border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.6); display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 12px 28px rgba(0, 0, 0, 0.25);
}
.team-hero__logo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.team-hero__name {
  margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  color: #f8fafc;
}
.team-hero__abbr {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; color: #94a3b8;
  background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.2);
}
.team-hero__forza {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 17rem;
}
.team-hero__forza-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}
.team-hero__forza-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}
.team-hero__forza-row .xg-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.92rem;
  line-height: 1;
}
.team-hero__forza-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}
.team-hero__forza-info {
  font-size: 0.95rem;
  line-height: 1;
}
@media (min-width: 900px) {
  .team-hero__forza {
    align-items: flex-start;
  }
  .team-hero__forza-row {
    justify-content: flex-start;
  }
}

@media (max-width: 639px) {
  .team-hero {
    padding: 11px 14px 13px;
    gap: 0.75rem;
  }

  .team-hero__masthead {
    display: grid;
    grid-template-columns: minmax(72px, 28vw) 1fr;
    column-gap: 0.8rem;
    row-gap: 0;
    align-items: center;
    justify-items: stretch;
    padding-bottom: 0.75rem;
    text-align: left;
  }

  .team-hero__logo {
    width: min(96px, 28vw);
    height: min(96px, 28vw);
    justify-self: start;
    border-radius: 50%;
  }

  .team-hero__masthead-main {
    align-items: flex-start;
    text-align: left;
    width: auto;
    min-width: 0;
  }

  .team-hero__name {
    text-align: left;
    width: 100%;
    font-size: clamp(1.12rem, 4.6vw, 1.52rem);
    line-height: 1.15;
  }

  .team-hero__abbr {
    display: none !important;
  }

  .team-hero__forza {
    margin-top: 0.35rem;
    align-items: flex-start;
    max-width: none;
    width: 100%;
  }

  .team-hero__forza-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .team-hero__desk-only {
    display: none !important;
  }

  .team-hero__fold-toggle {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: #64748b;
    text-align: left;
    line-height: 1.2;
  }

  .team-hero__fold-toggle:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.65);
    outline-offset: 3px;
    border-radius: 6px;
  }

  .team-hero__fold-toggle__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .team-hero__fold-toggle__accent {
    width: 3px;
    height: 1.15em;
    flex-shrink: 0;
    border-radius: 2px;
    background: rgba(167, 139, 250, 0.65);
  }

  .team-hero__fold-toggle__text {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
  }

  .team-hero__fold-chevron {
    font-size: 0.62rem;
    opacity: 0.88;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .team-hero__fold-toggle[aria-expanded='true'] .team-hero__fold-chevron {
    transform: rotate(180deg);
  }

  .team-hero__fold-panel {
    display: none !important;
  }

  .team-hero__fold-panel.is-open {
    display: flex !important;
  }

  .team-hero__fold-panel .team-hero__lineup-hint,
  .team-hero__fold-panel .team-hero__struct-hint {
    margin-top: 0;
  }
}

@media (min-width: 640px) {
  .team-hero__fold-toggle {
    display: none !important;
  }

  .team-hero__fold-panel {
    display: flex !important;
    flex-direction: column;
  }
}
.team-hero__top-panels {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .team-hero__top-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.team-hero__bottom-panels {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-top: 0.75rem;
}
.team-hero__struct-wrap { margin: 0; }
.team-hero__struct-hint { margin: -0.35rem 0 0.5rem; font-size: 0.78rem; line-height: 1.35; }
@media (min-width: 900px) {
  .team-hero {
    grid-template-columns: minmax(200px, 240px) 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0 1.25rem;
  }
  .team-hero__masthead {
    grid-column: 1;
    grid-row: 1 / span 2;
    border-bottom: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.15);
    padding: 0.35rem 1.1rem 0.35rem 0;
    margin-right: 0;
    align-self: stretch;
    justify-content: flex-start;
  }
  .team-hero__top-panels {
    grid-column: 2;
    grid-row: 1;
  }
  .team-hero__bottom-panels {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.75rem;
    grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.45fr);
    align-items: start;
  }
  .team-hero__struct-wrap {
    grid-column: auto;
    grid-row: auto;
  }
}
.team-hero__panel {
  border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.45); padding: 0.75rem 0.9rem;
}
.team-hero__panel-title {
  margin: 0 0 0.65rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: #64748b; border-left: 3px solid rgba(167, 139, 250, 0.65); padding-left: 0.5rem;
}
.team-hero__dl { margin: 0; }
.team-hero__row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem;
  padding: 0.35rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.team-hero__row:last-child { border-bottom: 0; padding-bottom: 0; }
.team-hero__row dt {
  margin: 0; font-size: 0.82rem; color: #94a3b8; font-weight: 600;
}
.team-hero__row dd { margin: 0; font-size: 0.95rem; font-weight: 700; color: #e2e8f0; text-align: right; }
.team-hero__row dd.team-hero__dd-manager {
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.team-hero__mgr-link {
  color: inherit;
  text-decoration: none;
}
.team-mgr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.team-mgr-chip--free {
  background: rgba(52, 211, 153, .14);
  border: 1px solid rgba(52, 211, 153, .45);
  color: #a7f3d0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.team-hero__mgr-chip.team-mgr-chip--free {
  font-size: .68rem;
  padding: 2px 9px;
}
.team-hero__mgr-link:hover .team-hero__mgr-user {
  text-decoration: underline;
}
.team-hero__mgr-id {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  min-width: 0;
  flex-wrap: wrap;
}
.team-hero__mgr-pf {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #cbd5e1;
  flex-shrink: 0;
}
.team-hero__mgr-pf .fa-xbox {
  color: #22c55e;
}
.team-hero__mgr-pf .fa-playstation {
  color: #60a5fa;
}
.team-hero__mgr-pf-ea {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.02rem 0.18rem;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(145deg, #ff4747 0%, #b91c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.team-hero__mgr-user {
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-word;
}
.team-hero__mgr-real {
  font-size: 0.82rem;
  font-weight: 500;
  color: #9db2c6;
}
.team-hero__dd-saldo { font-variant-numeric: tabular-nums; font-size: 1.05rem !important; }
.team-hero__dd-saldo.is-pos { color: #86efac; }
.team-hero__dd-saldo.is-neg { color: #fca5a5; }
.team-hero__kpi-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
}
@media (max-width: 420px) { .team-hero__kpi-strip { grid-template-columns: 1fr; } }
.team-hero__kpi {
  padding: 0.5rem 0.55rem; border-radius: 10px; background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}
.team-hero__kpi-label { display: block; font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.team-hero__kpi-value { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #f1f5f9; }
.team-hero__top {
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed rgba(148, 163, 184, 0.18);
}
.team-hero__top-label { font-size: 0.72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; }
.team-hero__top-body { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.45rem; flex-wrap: wrap; }
.team-hero__top-face { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; border: 1px solid rgba(148, 163, 184, 0.2); }
.team-hero__top-name { font-weight: 800; color: #f1f5f9; flex: 1 1 auto; min-width: 0; }
.team-hero__struct {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
@media (min-width: 600px) and (max-width: 899px) {
  .team-hero__struct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .team-hero__struct { grid-template-columns: 1fr; }
}
.team-hero__struct li {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0.55rem; border-radius: 8px;
  background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(148, 163, 184, 0.1);
}
.team-hero__struct li .team-hero__struct-name { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }
.team-hero__struct li .team-hero__struct-val { font-size: 0.9rem; }
.team-hero__struct-name { font-size: 0.84rem; color: #94a3b8; }
.team-hero__struct-val { font-size: 0.88rem; font-weight: 700; color: #e2e8f0; }
.team-hero__struct-val.is-empty { color: #64748b; font-weight: 600; }

/* ===== Rosa (tabella desktop) ===== */
.team-roster__title { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 800; color: #f1f5f9; }
.team-roster__hint {
  font-size: 0.86rem;
  margin: -0.35rem 0 0.65rem;
  line-height: 1.45;
  color: #94a3b8;
}

/* Rosa mobile: ruolo, OVR ed età affiancati su una riga */
.team-page .team-roster-card__statline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
  min-width: 0;
}

.team-page .team-roster-card__statline .role-badge,
.team-page .team-roster-card__statline .ovr-pill {
  flex-shrink: 0;
}

.team-page .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;
}

/* Rosa mobile: riga nome + altezza (come /players) */
.team-page .team-roster.mobile-only .team-roster-card__title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.team-page .team-roster.mobile-only .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%;
}

.team-page .team-roster.mobile-only .team-roster-card__player-name {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  text-decoration: none;
}

.team-page .team-roster.mobile-only .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;
}

.team-page .team-roster.mobile-only .team-roster-card__name-team .team-roster-card__height-ico {
  font-size: 0.5rem;
  opacity: 0.9;
  color: #a8b8d0;
  transform: translateY(0.5px);
}

.team-page .team-roster.mobile-only .team-roster-card__name-team .team-roster-card__height-val {
  letter-spacing: 0.01em;
}

/* Rosa mobile: menu + mercato (angolo in alto a destra) */
.team-page .team-roster.mobile-only .team-roster-card {
  position: relative;
}

.team-page .team-roster.mobile-only .team-roster-card--roster-top-actions {
  padding-right: 2.75rem !important;
}

.team-page .team-roster.mobile-only .team-roster-card--roster-top-actions--wide {
  padding-right: 4.95rem !important;
}

.team-page .team-roster.mobile-only .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;
}

.team-page .team-roster.mobile-only .team-roster-card__top-actions .team-roster-card__menu-toggle {
  position: static;
}

.team-page .team-roster.mobile-only .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;
}

.team-page .team-roster.mobile-only .team-roster-card__menu-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}

.team-page .team-roster.mobile-only .team-roster-card__menu-chevron {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.team-page .team-roster.mobile-only .team-roster-card__menu-toggle.is-open .team-roster-card__menu-chevron {
  transform: rotate(180deg);
}

.team-page .team-roster.mobile-only .team-roster-card__menu[hidden] {
  display: none !important;
}

.team-page .team-roster.mobile-only .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;
}

.team-page .team-roster.mobile-only .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;
}

.team-page .team-roster.mobile-only .team-roster-card__fav-form {
  margin: 0;
  display: flex;
  justify-content: stretch;
}

.team-page .team-roster.mobile-only .team-roster-card__fav-form .team-roster-card__menu-fav {
  flex: 1 1 auto;
}

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

.team-page .team-roster.mobile-only .team-roster-card__fav-ico {
  font-size: 1rem;
  line-height: 1;
}

.team-page .team-roster.mobile-only .team-roster-card__menu-fav--on .team-roster-card__fav-ico {
  color: #f87171;
}

.team-page .team-roster.mobile-only .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;
}

.team-page .team-roster.mobile-only .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));
}

.team-page .team-roster.mobile-only .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);
}

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

.team-roster-table thead th {
  background: rgba(15, 23, 42, 0.85); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.team-roster-table tbody tr:hover td { background: rgba(56, 189, 248, 0.04); }
.team-roster-table tbody td { vertical-align: middle; }
.acc-toggle { min-width: 2.25rem; }
.acc-toggle .acc-ico { transition: transform 0.15s ease; }
.acc-toggle.is-open .acc-ico { transform: rotate(180deg); }
.acc-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}
.team-roster__tratta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.32rem 0.55rem; font-size: 0.78rem; font-weight: 800;
  border-radius: 8px; text-decoration: none; line-height: 1.2;
  background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.35); color: #7dd3fc;
}
.team-roster__tratta:hover { border-color: rgba(56, 189, 248, 0.55); color: #bae6fd; }
.team-roster__tratta:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.75);
  outline-offset: 2px;
}

.team-roster-th-fav {
  vertical-align: middle;
}

.team-roster-th-fav-ico {
  font-size: 0.88rem;
  color: #94a3b8;
  opacity: 0.95;
}

.team-roster-fav-form {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.team-roster-fav-btn {
  min-width: 2.35rem;
  padding: 0.32rem 0.45rem !important;
  line-height: 1;
}

.team-roster-fav-btn--on i {
  color: #f87171;
}

.team-roster-acc-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.team-roster-chip-cm {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  vertical-align: middle;
}

.team-roster-cm-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-roster-acc-footer {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.22);
}

/* ====== Mobile First visibility ====== */
@media (min-width:980px){ .mobile-only{ display:none !important; } .desktop-only{ display:block !important; } }
@media (max-width:979px){ .desktop-only{ display:none !important; } .mobile-only{ display:block !important; } }
.ellipsis{ overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%; }

/* Fallback (se non già in app.css) */
.chip-market{
  display:inline-flex;align-items:center;gap:4px;margin-left:8px;
  padding:2px 6px;border-radius:999px;font-size:.85rem;
  color:#22c55e;background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.32);
  vertical-align:middle;
}
.chip-sofifa{ display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid rgba(14,165,233,.3);border-radius:999px;background:rgba(14,165,233,.08) }
.chip-sofifa:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}
.ico-sofifa{ width:16px;height:16px;display:inline-block;object-fit:contain }

/* ===== Line-Up anteprima (stesso stile lucard del Line-Up Builder) ===== */
.team-hero__panel--lineup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.team-hero__panel--lineup .team-hero__fold-panel {
  flex: 0 0 auto;
  min-height: 0;
}
.team-lineup-thumb-btn {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.team-club__lineup-compact .team-lineup-thumb-btn {
  width: auto;
}
.team-lineup-thumb-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.75);
  outline-offset: 2px;
}
.team-lineup-thumb-btn:hover .team-lineup-pitch {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.team-lineup-pitch {
  --lucard-scale: 1;
  --lucard-w-base: clamp(42px, 11cqi, 72px);
  --lucard-w: calc(var(--lucard-w-base) * var(--lucard-scale));
  --lucard-content-w: calc(var(--lucard-w) * 0.934);
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 650 / 1024;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #0f8a45;
  background: url("../img/campo.png") center / cover no-repeat;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.team-lineup-pitch--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  background: rgba(15, 23, 42, 0.65);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
}
.team-lineup-pitch__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background: linear-gradient(
    180deg,
    transparent 48%,
    rgba(255, 255, 255, 0.35) 49%,
    rgba(255, 255, 255, 0.35) 51%,
    transparent 52%
  );
}
.team-lineup-pitch__formation {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 6;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.88), rgba(8, 16, 30, 0.74));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  line-height: 1;
}

.team-lineup-slot.slot.slot-card {
  position: absolute;
  transform: translate(-50%, 50%);
  width: var(--lucard-w);
  aspect-ratio: 118 / 154;
  height: auto;
  min-height: 0;
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}
.team-lineup-pitch .lucard {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
.team-lineup-pitch .lucard__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(
    1.5% 0.8%,
    98.5% 0.8%,
    98.5% 86.5%,
    91% 99%,
    9% 99%,
    1.5% 86.5%
  );
}
.team-lineup-pitch .lucard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
  display: block;
}
.team-lineup-pitch .lucard__photo {
  position: absolute;
  left: 10%;
  right: 6%;
  top: 12%;
  bottom: 24%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}
.team-lineup-pitch .lucard__photo img.kit {
  width: 65%;
  height: 78%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
  display: block;
  margin-left: auto;
}
.team-lineup-pitch .lucard__photo img.face {
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: 72%;
  height: 86%;
  object-fit: cover;
  object-position: center 10%;
  z-index: 2;
  opacity: 0;
  display: block;
}
.team-lineup-pitch .lucard__photo.show-face img.kit { display: none; }
.team-lineup-pitch .lucard__photo.show-face img.face { opacity: 1; }
.team-lineup-pitch .slot.empty .lucard__photo img.kit {
  opacity: 0.55;
  width: 60%;
  margin: 0 auto;
  margin-left: auto;
}
.team-lineup-pitch .lucard__meta {
  position: absolute;
  left: 13%;
  top: 10%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5);
}
.team-lineup-pitch .lucard__ovr {
  font-size: calc(var(--lucard-content-w) * 0.20);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
  letter-spacing: -0.02em;
}
.team-lineup-pitch .lucard__ovr.ovr-90,
.team-lineup-pitch .lucard__ovr.ovr-hi { color: #12D4CE; }
.team-lineup-pitch .lucard__ovr.ovr-85 { color: #12B865; }
.team-lineup-pitch .lucard__ovr.ovr-80 { color: #3ABF4B; }
.team-lineup-pitch .lucard__ovr.ovr-75 { color: #7CCB3A; }
.team-lineup-pitch .lucard__ovr.ovr-70 { color: #B8D928; }
.team-lineup-pitch .lucard__ovr.ovr-65 { color: #F2D21F; }
.team-lineup-pitch .lucard__ovr.ovr-60 { color: #F06424; }
.team-lineup-pitch .lucard__ovr.ovr-59 { color: #D62D2D; }
.team-lineup-pitch .lucard__role {
  font-size: calc(var(--lucard-content-w) * 0.105);
  font-weight: 800;
  color: #5ee7ff;
  letter-spacing: 0.04em;
  margin-top: 1px;
  text-transform: uppercase;
}
.team-lineup-pitch .lucard__meta .lucard__flag {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-top: 1px;
}
.team-lineup-pitch .lucard__meta .lucard__flag img {
  width: calc(var(--lucard-content-w) * 0.13);
  height: calc(var(--lucard-content-w) * 0.13);
  border-radius: 2px;
  display: block;
  object-fit: cover;
}
.team-lineup-pitch .slot.empty .lucard__ovr { opacity: 0.35; }
.team-lineup-pitch .lucard__name {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 10.5%;
  z-index: 4;
  margin: 0;
  padding: 0 2px;
  height: 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--lucard-content-w) * 0.095);
  font-weight: 800;
  color: #f2f6ff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}
.team-lineup-pitch .lucard__xg {
  position: absolute;
  left: 50%;
  bottom: 8.5%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: calc(var(--lucard-content-w) * 0.065);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(94, 231, 255, 0.85);
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(0, 180, 240, 0.45);
}

/* Thumbnail hero: anteprima compatta (click apre il dialog) */
.team-lineup-pitch--thumb {
  --lucard-w-base: clamp(18px, 5.2cqi, 28px);
  width: 100%;
  max-width: 196px;
  margin-inline: auto;
  height: clamp(100px, 24vw, 128px);
  max-height: 128px;
  aspect-ratio: unset;
  min-height: 0;
}
.team-lineup-pitch--thumb .team-lineup-pitch__formation {
  left: 4px;
  bottom: 4px;
  padding: 2px 5px;
  font-size: 8px;
  border-radius: 6px;
}
@media (min-width: 900px) {
  .team-lineup-pitch--thumb {
    max-width: 210px;
    height: 124px;
    max-height: 124px;
  }
}

/* Modal line-up */
.team-lineup-dialog {
  max-width: min(540px, calc(100vw - 24px));
  width: 100%;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(12, 18, 32, 0.99));
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.team-lineup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
.team-lineup-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.team-lineup-dialog__head-main {
  min-width: 0;
  flex: 1;
}
.team-lineup-dialog__head form {
  margin: 0;
  flex-shrink: 0;
}
.team-lineup-dialog__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f5f9;
}
.team-lineup-dialog__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: #94a3b8;
}
.team-lineup-dialog__meta-row strong {
  color: #e2e8f0;
  font-weight: 800;
}
.team-lineup-dialog__chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 47, 73, 0.55);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.team-lineup-dialog__when {
  color: #64748b;
}
.team-lineup-dialog__close {
  font-size: 0.78rem;
}
.team-lineup-dialog__body {
  padding: 0.85rem 1rem 1rem;
  max-height: min(82dvh, 860px);
  overflow: auto;
}
.team-lineup-dialog__block + .team-lineup-dialog__block {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}
.team-lineup-dialog__sub {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.team-lineup-dialog__meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}
.team-lineup-pitch--modal {
  --lucard-w-base: clamp(68px, 19cqi, 92px);
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 650 / 1024;
  min-height: 0;
}

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

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

.team-page .team-roster-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;
}

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

.team-page .team-roster-market-dialog__lead {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.team-page .team-roster-market-dialog__dl {
  margin: 0 0 1rem;
  padding: 0;
}

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

.team-page .team-roster-market-dialog__row:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.team-page .team-roster-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;
}

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

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

/* ===== Scheda club pubblica (testata orizzontale + panoramica) ===== */
.team-club {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.team-club [id^="team-"] {
  scroll-margin-top: 5.5rem;
}
.team-club__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.55)),
    url('../img/stadium-match-bg.png') center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.team-club__head-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 16rem;
}
.team-club__logo {
  width: clamp(4.5rem, 12vw, 5.75rem);
  height: clamp(4.5rem, 12vw, 5.75rem);
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 12px 28px rgba(0, 0, 0, 0.25);
}
.team-club__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.team-club__identity {
  min-width: 0;
  flex: 1;
}
.team-club__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.55rem;
}
.team-club__name {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-transform: uppercase;
}
.team-club__abbr {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.team-club__meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.team-club__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.team-club__meta-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.team-club__meta-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
}
.team-club__meta-val--comp {
  color: #4ade80;
  font-weight: 800;
}
.team-club__meta-val--forza {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.team-club__forza-score {
  font-variant-numeric: tabular-nums;
}
.team-club__head-aside {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.team-club__rosa-btn {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.team-club__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  padding: 0.35rem 0.15rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  position: sticky;
  top: 3.5rem;
  z-index: 20;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
}
.team-club__nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.team-club__nav-link:hover,
.team-club__nav-link:focus-visible {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.1);
}
.team-club__nav-link.is-active {
  color: #22d3ee;
  box-shadow: inset 0 -2px 0 #22d3ee;
  border-radius: 8px 8px 0 0;
}

.team-club__kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.team-club__kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  min-height: 5.5rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.45));
}
.team-club__kpi-ico {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1;
}
.team-club__kpi-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}
.team-club__kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.15;
}
.team-club__kpi-val small {
  font-size: 0.72em;
  font-weight: 700;
  color: #64748b;
}
.team-club__kpi-sub {
  font-size: 0.68rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.team-club__kpi-hint {
  margin-top: auto;
  font-size: 0.68rem;
  color: #38bdf8;
  text-decoration: none;
}
.team-club__kpi-hint:hover {
  text-decoration: underline;
}
.team-club__kpi--player {
  grid-column: 1 / -1;
}
.team-club__kpi-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 0.15rem;
}
.team-club__kpi-face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
}
.team-club__kpi-player-name {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-club__main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.team-club__panel {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.42));
}
.team-club__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.team-club__panel-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}
.team-club__panel-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-right: 0.45rem;
  border-radius: 2px;
  background: #a78bfa;
  vertical-align: -0.05em;
}
.team-club__panel-meta {
  font-size: 0.72rem;
  color: #64748b;
}
.team-club__panel-lead {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.team-club__lineup-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.team-club__lineup-stat strong {
  color: #cbd5e1;
  font-weight: 800;
  margin-right: 0.25rem;
}

.team-club__panel--compact {
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}
.team-club__panel-head--inline {
  margin-bottom: 0.5rem;
}
.team-club__lineup-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.team-club__lineup-compact-meta {
  flex: 1 1 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.team-club__lineup-compact-meta .team-club__lineup-stat {
  font-size: 0.78rem;
}
.team-club__panel--finance.team-club__panel--compact .team-club__panel-lead {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
}
#team-roster {
  scroll-margin-top: 5.5rem;
}
.team-page #team-roster > .team-roster {
  margin-top: 0;
}

.team-club__lineup-thumb {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin-inline: 0;
  padding: 0;
}
.team-club__lineup-thumb-frame {
  display: block;
  width: 168px;
  max-width: 100%;
}
.team-club__lineup-thumb .team-lineup-pitch--thumb {
  width: 168px;
  max-width: 100%;
  height: 132px;
  max-height: none;
  margin-inline: 0;
  aspect-ratio: 650 / 1024;
}
@media (min-width: 640px) {
  .team-club__lineup-thumb-frame {
    width: 188px;
  }
  .team-club__lineup-thumb .team-lineup-pitch--thumb {
    width: 188px;
    height: 148px;
  }
}
.team-club__lineup-open-lbl {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 16, 30, 0.88);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.team-club__lineup-thumb:hover .team-club__lineup-open-lbl {
  border-color: rgba(56, 189, 248, 0.55);
  color: #bae6fd;
}

.team-club__panel--lineup {
  display: flex;
  flex-direction: column;
}

.team-club__finance-dl {
  margin: 0;
  padding: 0;
}
.team-club__finance-row {
  display: grid;
  grid-template-columns: minmax(7rem, 42%) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.team-club__finance-row:last-child {
  border-bottom: 0;
}
.team-club__finance-row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.team-club__finance-row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e2e8f0;
  text-align: right;
}
.team-club__finance-row dd.is-pos { color: #4ade80; }
.team-club__finance-row dd.is-neg { color: #f87171; }
.team-club__finance-row--bar dd {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
}
.team-club__wage-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}
.team-club__wage-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}
.team-club__wage-bar-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: right;
}
.team-club__moves-title {
  margin: 1rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}
.team-club__moves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.team-club__move {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) minmax(4.5rem, auto) 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.78rem;
}
.team-club__move-date {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.team-club__move-type {
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.team-club__move-desc {
  color: #cbd5e1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-club__move-amt {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.team-club__move-amt.is-pos { color: #4ade80; }
.team-club__move-amt.is-neg { color: #f87171; }

.team-club__section-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.team-club__struct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.team-club__struct-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.75);
}
.team-club__struct-card.is-inactive {
  opacity: 0.72;
}
.team-club__struct-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a center / cover no-repeat;
}
.team-club__struct-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
}
.team-club__struct-body {
  padding: 0.65rem 0.75rem 0.75rem;
}
.team-club__struct-name {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
}
.team-club__struct-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.team-club__struct-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}
.team-club__struct-badge.is-on {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}
.team-club__struct-bonus {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.team-club__sources {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.55);
}
.team-club__sources-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}
.team-club__sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.team-club__sources-list strong {
  color: #cbd5e1;
  font-weight: 700;
}

@media (min-width: 640px) {
  .team-club__kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-club__kpi--player {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .team-club__kpi-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .team-club__main-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
  .team-club__struct-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .team-club__struct-card--wide-mobile {
    grid-column: auto;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .team-club__struct-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .team-club__struct-card:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .team-club__struct-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

@media (max-width: 639px) {
  .team-club__head {
    flex-direction: column;
  }
  .team-club__head-aside {
    width: 100%;
  }
  .team-club__rosa-btn {
    width: 100%;
    justify-content: center;
  }
  .team-club__struct-card--wide-mobile {
    grid-column: 1 / -1;
  }
  .team-club__move {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .team-club__move-date {
    grid-column: 1;
    grid-row: 1;
  }
  .team-club__move-amt {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .team-club__move-type {
    grid-column: 1;
    grid-row: 2;
  }
  .team-club__move-desc {
    grid-column: 1 / -1;
    grid-row: 3;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .team-club__nav {
    position: static;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    background: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.12);
  }
}

