/* =========================================================
   DATOS · TEAM DETAIL · TAB EQUIPO v18
   Clasificación + métricas compactas + XI más usado + campo
   ========================================================= */


/* =========================================================
   1. CONTENEDOR BASE
   ========================================================= */

#datos-page .datos-team-panel-equipo{
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#datos-page .datos-team-overview-card{
  width: 100%;
  min-width: 0;
  color: white;
  box-sizing: border-box;
}

#datos-page .datos-team-overview-card *{
  box-sizing: border-box;
}

#datos-page .datos-team-overview-blob{
  display: none;
}


/* =========================================================
   2. HEADER INTERNO DE EQUIPO
   ========================================================= */

#datos-page .datos-team-overview-header{
  width: 100%;
  min-width: 0;
  margin-bottom: 14px;
}

#datos-page .datos-team-overview-header-left{
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

#datos-page .datos-team-overview-header-logo,
#datos-page .datos-team-overview-header-logo-fallback{
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 999px;
  object-fit: contain;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.18), rgba(255,255,255,.05));

  border: 1px solid rgba(255,255,255,.14);

  box-shadow:
    0 12px 28px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.10);
}

#datos-page .datos-team-overview-header-logo-fallback{
  font-size: 18px;
  font-weight: 950;
  color: white;
}

#datos-page .datos-team-overview-header-text{
  min-width: 0;
}

#datos-page .datos-team-overview-kicker{
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--datos-team-overview-accent) 70%, white 30%);
}

#datos-page .datos-team-overview-title{
  font-size: 20px;
  font-weight: 950;
  line-height: 1.05;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-subtitle{
  margin-top: 5px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  color: rgba(255,255,255,.54);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================================
   3. CARDS BASE
   ========================================================= */

#datos-page .datos-team-overview-stats-card,
#datos-page .datos-team-overview-xi-card,
#datos-page .datos-team-overview-empty-card{
  width: 100%;
  min-width: 0;

  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 16%, rgba(255,255,255,.08));

  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--datos-team-overview-soft) 16%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026));

  box-shadow:
    0 18px 44px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.07);
}

#datos-page .datos-team-overview-stats-card{
  padding: 14px;
  margin-bottom: 14px;

  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.024));

  border: 1px solid rgba(255,255,255,.085);

  box-shadow:
    0 18px 46px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.065);
}

#datos-page .datos-team-overview-xi-card{
  padding: 14px;
  position: relative;
}


/* =========================================================
   CLASIFICACION CERCANA
   ========================================================= */

#datos-page .datos-team-class-window-card{
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  padding: 10px 12px 11px;
  border-radius: 15px;
  color: white;
  background:
    radial-gradient(circle at 2% 0%, var(--datos-team-class-soft), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.058), rgba(0,0,0,.16));
  border: 1px solid color-mix(in srgb, var(--datos-team-class-accent) 24%, rgba(255,255,255,.09));
  box-shadow:
    0 12px 30px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.07);
  box-sizing: border-box;
}

#datos-page .datos-team-class-window-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#datos-page .datos-team-class-window-title-block{
  min-width: 0;
}

#datos-page .datos-team-class-window-title{
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,.96);
}

#datos-page .datos-team-class-window-subtitle{
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 750;
  color: rgba(255,255,255,.48);
}

#datos-page .datos-team-class-window-counter{
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-size: 10px;
  font-weight: 950;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.11);
}

#datos-page .datos-team-classification-window-grid{
  margin-top: 8px;
}

#datos-page .datos-team-classification-window-grid .ag-root-wrapper{
  border-radius: 16px;
}

#datos-page .datos-team-classification-window-grid .ag-row.datos-clasif-row-active-team .ag-cell{
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--datos-team-class-accent) 24%, rgba(255,255,255,.08)),
      color-mix(in srgb, var(--datos-team-class-accent) 8%, rgba(255,255,255,.035))
    ) !important;
  border-top-color: color-mix(in srgb, var(--datos-team-class-accent) 48%, rgba(255,255,255,.12)) !important;
  border-bottom-color: color-mix(in srgb, var(--datos-team-class-accent) 48%, rgba(255,255,255,.12)) !important;
}

#datos-page .datos-team-classification-window-grid .ag-row.datos-clasif-row-active-team .datos-clasif-pos-cell{
  color: white !important;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--datos-team-class-accent) 42%, rgba(255,255,255,.10)), rgba(255,255,255,.055)) !important;
}

#datos-page .datos-team-classification-window-grid .ag-row.datos-clasif-row-active-team .datos-clasif-team-cell{
  color: white !important;
  font-weight: 950 !important;
}

#datos-page .datos-team-class-window-floating{
  width: 100%;
  min-width: 0;
  margin: 12px 0 0;
}

#datos-page .datos-team-class-window-floating .datos-team-classification-window-grid{
  margin-top: 0;
}

#datos-page .datos-team-season-evo-wrap{
  margin-top: 14px;
}

#datos-page .datos-team-season-evo-wrap .datos-classification-evo-dual-card{
  margin-top: 0;
}

#datos-page .datos-team-season-timeline{
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(circle at 3% 0%, var(--datos-team-season-soft), transparent 34%),
    linear-gradient(180deg, rgba(9,18,18,.94), rgba(3,8,8,.98));
  border: 1px solid color-mix(in srgb, var(--datos-team-season-accent) 22%, rgba(255,255,255,.10));
  box-shadow:
    0 16px 34px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.06);
  box-sizing: border-box;
}

#datos-page .datos-team-season-timeline-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

#datos-page .datos-team-season-timeline-title{
  font-size: 13px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: .12px;
  color: rgba(255,255,255,.96);
}

#datos-page .datos-team-season-timeline-count{
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-team-season-timeline-track{
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
  padding: 0 2px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) rgba(255,255,255,.04);
}

#datos-page .datos-team-season-timeline-track::-webkit-scrollbar{
  height: 8px;
}

#datos-page .datos-team-season-timeline-track::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

#datos-page .datos-team-season-timeline-track::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

#datos-page .datos-team-season-timeline-item{
  flex: 0 0 58px;
  min-width: 58px;
  display: grid;
  grid-template-rows: 40px 34px 22px 18px;
  justify-items: center;
  align-items: center;
  gap: 5px;
  padding: 2px 4px 0;
}

#datos-page .datos-team-season-timeline-bar-cell{
  width: 100%;
  height: 40px;
  display: flex;
  align-items: end;
  justify-content: center;
}

#datos-page .datos-team-season-timeline-bar{
  width: 20px;
  min-height: 0;
  border-radius: 7px 7px 2px 2px;
  box-shadow:
    0 0 14px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.26);
}

#datos-page .datos-team-season-timeline-bar.is-win{
  height: 34px;
  background: linear-gradient(180deg, #31ed82, #0f8f4b);
}

#datos-page .datos-team-season-timeline-bar.is-draw{
  height: 14px;
  background: linear-gradient(180deg, #ffe75b, #c99814);
}

#datos-page .datos-team-season-timeline-bar.is-loss{
  height: 0;
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-team-season-timeline-bar.is-pending{
  height: 5px;
  background: rgba(255,255,255,.18);
}

#datos-page .datos-team-season-timeline-logo-cell{
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-team-season-timeline-logo{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 7px 14px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.12);
}

#datos-page .datos-team-season-timeline-logo-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 950;
  color: rgba(255,255,255,.86);
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.18), rgba(255,255,255,.05));
}

#datos-page .datos-team-season-timeline-score{
  min-width: 38px;
  max-width: 52px;
  padding: 4px 6px;
  border-radius: 7px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  color: white;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-team-season-timeline-score.is-win{
  background: rgba(31,195,100,.18);
  border-color: rgba(49,237,130,.36);
  color: #67ffad;
}

#datos-page .datos-team-season-timeline-score.is-draw{
  background: rgba(255,218,68,.16);
  border-color: rgba(255,231,91,.34);
  color: #ffe75b;
}

#datos-page .datos-team-season-timeline-score.is-loss{
  background: rgba(255,76,86,.14);
  border-color: rgba(255,76,86,.30);
  color: #ff7b83;
}

#datos-page .datos-team-season-timeline-venue{
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: .86;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.28));
}

#datos-page .datos-team-season-timeline-empty{
  margin-top: 10px;
  padding: 10px 2px 2px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  color: rgba(255,255,255,.58);
}


/* =========================================================
   4. TARJETAS SUPERIORES · MÉTRICAS PRINCIPALES
   ========================================================= */

#datos-page .datos-team-overview-stats-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

#datos-page .datos-team-overview-stat-card{
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-width: 0;
  min-height: 122px;
  padding: 12px 10px;

  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.085);

  background: linear-gradient(180deg, rgba(255,255,255,.068), rgba(255,255,255,.024));

  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  text-align: center;
}

#datos-page .datos-team-overview-stat-card::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  opacity: .90;
  background: rgba(255,255,255,.20);
  z-index: 0;
}

#datos-page .datos-team-overview-stat-card::after{
  content: "";
  position: absolute;
  inset: -35% -35% auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  opacity: .20;
  background: rgba(255,255,255,.10);
  filter: blur(2px);
  z-index: 0;
}

#datos-page .datos-team-overview-stat-card > *{
  position: relative;
  z-index: 1;
}

#datos-page .datos-team-overview-stat-card--accent{
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 12%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,.080), rgba(255,255,255,.033));

  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.08));
}

#datos-page .datos-team-overview-stat-label{
  font-size: 10px;
  font-weight: 950;
  color: rgba(255,255,255,.92);
  letter-spacing: .42px;
  text-transform: uppercase;
  line-height: 1.12;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#datos-page .datos-team-overview-stat-value{
  margin-top: 3px;
  font-size: 25px;
  line-height: 1.02;
  font-weight: 950;
  color: white;
}

#datos-page .datos-team-overview-stat-sub{
  margin-top: 4px;
  min-height: 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.44);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-stat-sub.is-empty{
  opacity: 0;
}


/* =========================================================
   5. COLORES BLOOMBERG · ESTADO DE MÉTRICAS
   ========================================================= */

#datos-page .datos-team-overview-stat-card.is-good,
#datos-page .datos-team-overview-line-item.is-good{
  border-color: rgba(34,197,94,.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(34,197,94,.16), transparent 42%),
    linear-gradient(180deg, rgba(34,197,94,.075), rgba(255,255,255,.022));
}

#datos-page .datos-team-overview-stat-card.is-good::before,
#datos-page .datos-team-overview-line-item.is-good::before{
  background: linear-gradient(180deg, #4ade80, #16a34a);
}

#datos-page .datos-team-overview-stat-card.is-mid,
#datos-page .datos-team-overview-line-item.is-mid{
  border-color: rgba(250,204,21,.22);
  background:
    radial-gradient(circle at 92% 0%, rgba(250,204,21,.14), transparent 42%),
    linear-gradient(180deg, rgba(250,204,21,.060), rgba(255,255,255,.022));
}

#datos-page .datos-team-overview-stat-card.is-mid::before,
#datos-page .datos-team-overview-line-item.is-mid::before{
  background: linear-gradient(180deg, #fde047, #ca8a04);
}

#datos-page .datos-team-overview-stat-card.is-bad,
#datos-page .datos-team-overview-line-item.is-bad{
  border-color: rgba(248,113,113,.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(248,113,113,.14), transparent 42%),
    linear-gradient(180deg, rgba(248,113,113,.060), rgba(255,255,255,.022));
}

#datos-page .datos-team-overview-stat-card.is-bad::before,
#datos-page .datos-team-overview-line-item.is-bad::before{
  background: linear-gradient(180deg, #fb7185, #b91c1c);
}

#datos-page .datos-team-overview-stat-card.is-neutral,
#datos-page .datos-team-overview-line-item.is-neutral{
  border-color: rgba(148,163,184,.18);
}

#datos-page .datos-team-overview-stat-card.is-neutral::before,
#datos-page .datos-team-overview-line-item.is-neutral::before{
  background: linear-gradient(180deg, rgba(203,213,225,.80), rgba(100,116,139,.80));
}

#datos-page .datos-team-overview-stat-card.is-elite{
  box-shadow:
    0 0 0 1px rgba(34,197,94,.08),
    0 14px 34px rgba(34,197,94,.10),
    inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-team-overview-stat-card.is-risk{
  box-shadow:
    0 0 0 1px rgba(248,113,113,.08),
    0 14px 34px rgba(248,113,113,.08),
    inset 0 1px 0 rgba(255,255,255,.08);
}


/* =========================================================
   6. RANKING + NORMALIZACIÓN · TARJETAS GRANDES
   ========================================================= */

#datos-page .datos-team-overview-metric-meta{
  width: 100%;
  min-width: 0;
  max-width: 100%;

  margin-top: auto;
  padding-top: 9px;

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "rank"
    "norm"
    "bar";
  row-gap: 4px;

  align-self: stretch;
  justify-self: stretch;
}

#datos-page .datos-team-overview-metric-meta.is-empty{
  display: none;
}

#datos-page .datos-team-overview-metric-rank-row,
#datos-page .datos-team-overview-metric-norm-row{
  width: 100%;
  min-width: 0;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#datos-page .datos-team-overview-metric-rank-row{
  grid-area: rank;
}

#datos-page .datos-team-overview-metric-norm-row{
  grid-area: norm;
}

#datos-page .datos-team-overview-metric-rank-label,
#datos-page .datos-team-overview-metric-norm-label{
  flex: 0 0 auto;

  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .34px;
  text-transform: uppercase;
  color: rgba(255,255,255,.36);
}

#datos-page .datos-team-overview-metric-rank,
#datos-page .datos-team-overview-metric-norm{
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 0;

  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .24px;
  text-transform: uppercase;

  color: rgba(255,255,255,.78);
}

#datos-page .datos-team-overview-metric-rank{
  color: white;
}

#datos-page .datos-team-overview-metric-norm{
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-team-overview-metric-bar{
  grid-area: bar;
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 5px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.30);
}

#datos-page .datos-team-overview-metric-bar-fill{
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: rgba(255,255,255,.44);
}

#datos-page .datos-team-overview-metric-meta.is-good .datos-team-overview-metric-bar-fill{
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 10px rgba(34,197,94,.28);
}

#datos-page .datos-team-overview-metric-meta.is-mid .datos-team-overview-metric-bar-fill{
  background: linear-gradient(90deg, #ca8a04, #fde047);
  box-shadow: 0 0 10px rgba(234,179,8,.22);
}

#datos-page .datos-team-overview-metric-meta.is-bad .datos-team-overview-metric-bar-fill{
  background: linear-gradient(90deg, #b91c1c, #fb7185);
  box-shadow: 0 0 10px rgba(239,68,68,.22);
}

#datos-page .datos-team-overview-metric-meta.is-neutral .datos-team-overview-metric-bar-fill{
  background: linear-gradient(90deg, rgba(100,116,139,.95), rgba(203,213,225,.95));
}


/* =========================================================
   7. TARJETAS PEQUEÑAS · GENERAL / CASA / FUERA
   Valor absoluto en el cuerpo + valores de pos/norm sin labels
   ========================================================= */

#datos-page .datos-team-overview-lines-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

#datos-page .datos-team-overview-line-card{
  min-width: 0;
  padding: 10px 12px 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.040);
  border: 1px solid rgba(255,255,255,.080);
}

#datos-page .datos-team-overview-line-head{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  margin-bottom: 7px;
}

#datos-page .datos-team-overview-line-title{
  margin: 0;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: .18px;
  color: white;
}

#datos-page .datos-team-overview-line-icon-title{
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 8px rgba(0,0,0,.34))
    saturate(1.1);
}

#datos-page .datos-team-overview-line-rank{
  display: none !important;
}

#datos-page .datos-team-overview-line-items{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

#datos-page .datos-team-overview-line-item{
  position: relative;
  overflow: hidden;

  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 84px;

  padding: 8px 10px 8px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.075);

  background: linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.022));

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

#datos-page .datos-team-overview-line-item > *{
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#datos-page .datos-team-overview-line-item::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

#datos-page .datos-team-overview-line-main{
  width: 100%;
  min-width: 0;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#datos-page .datos-team-overview-line-key{
  min-width: 0;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .42px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-line-value{
  display: none;
}

#datos-page .datos-team-overview-metric-meta.is-compact{
  width: 100%;
  min-width: 0;
  max-width: 100%;

  margin-top: 0;
  padding-top: 0;

  display: grid;
  grid-template-columns: minmax(0, .72fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta value"
    "bar  bar";
  column-gap: 8px;
  row-gap: 6px;

  align-self: stretch;
  justify-self: stretch;
}

#datos-page .datos-team-overview-metric-meta.is-compact.is-empty{
  display: none;
}

#datos-page .datos-team-overview-metric-meta.is-compact .datos-team-overview-metric-rank-row,
#datos-page .datos-team-overview-metric-meta.is-compact .datos-team-overview-metric-norm-row{
  display: none;
}

#datos-page .datos-team-overview-compact-meta-block{
  grid-area: meta;
  width: 100%;
  min-width: 0;
  max-width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;

  align-self: stretch;
}

#datos-page .datos-team-overview-compact-rank-row,
#datos-page .datos-team-overview-compact-norm-row{
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

/* CAMBIO PEDIDO:
   Se ocultan únicamente los textos "Pos." y "Norm.",
   pero se mantienen visibles sus valores. */
#datos-page .datos-team-overview-compact-rank-label,
#datos-page .datos-team-overview-compact-norm-label{
  display: none !important;
}

#datos-page .datos-team-overview-compact-rank,
#datos-page .datos-team-overview-compact-norm{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 0;

  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .20px;
  color: rgba(255,255,255,.84);
}

#datos-page .datos-team-overview-compact-rank{
  color: white;
}

#datos-page .datos-team-overview-compact-norm{
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-team-overview-metric-absolute-value{
  grid-area: value;
  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: auto;
  min-width: 32px;
  max-width: 100%;

  color: white;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .1px;
  text-align: right;

  align-self: center;
}

#datos-page .datos-team-overview-metric-absolute-value--no-meta{
  height: 100%;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

#datos-page .datos-team-overview-metric-meta.is-compact .datos-team-overview-metric-bar{
  grid-area: bar;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 4px;
}


/* =========================================================
   8. XI MÁS USADO · CABECERA
   ========================================================= */

#datos-page .datos-team-overview-section-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: -14px -14px 14px;
  min-height: 54px;
  padding: 13px 240px 12px 14px;
  border-radius: 22px 22px 0 0;
  border-bottom: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 18%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 16%, transparent), transparent 46%),
    linear-gradient(90deg, color-mix(in srgb, var(--datos-team-overview-accent) 9%, rgba(255,255,255,.070)), rgba(255,255,255,.035) 56%, rgba(0,0,0,.050));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.070),
    0 8px 20px rgba(0,0,0,.10);
}

#datos-page .datos-team-overview-section-title{
  font-size: 17px;
  font-weight: 950;
  color: white;
  line-height: 1.1;
}

#datos-page .datos-team-overview-title-with-icon{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#datos-page .datos-team-overview-title-with-icon > span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-section-icon{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.28));
}

#datos-page .datos-team-overview-section-title .datos-team-overview-section-icon{
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

#datos-page .datos-team-overview-section-subtitle{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.50);
}

/* =========================================================
   8.1 CLAVES DEL EQUIPO
   ========================================================= */

#datos-page .datos-team-overview-key-strip{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
  min-width: 0;
}

#datos-page .datos-team-overview-key-section{
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.085);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.026));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 12px 28px rgba(0,0,0,.14);
}

#datos-page .datos-team-overview-key-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin: -12px -12px 10px;
  padding: 10px 12px 9px;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 16%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 14%, transparent), transparent 48%),
    linear-gradient(90deg, color-mix(in srgb, var(--datos-team-overview-accent) 8%, rgba(255,255,255,.065)), rgba(255,255,255,.028) 62%, rgba(0,0,0,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.065),
    0 7px 16px rgba(0,0,0,.09);
}

#datos-page .datos-team-overview-key-title{
  color: white;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
}

#datos-page .datos-team-overview-key-title .datos-team-overview-section-icon,
#datos-page .datos-team-overview-bench-title .datos-team-overview-section-icon{
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

#datos-page .datos-team-overview-key-subtitle{
  color: rgba(255,255,255,.50);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

#datos-page .datos-team-overview-key-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

#datos-page .datos-team-overview-key-player-btn{
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  min-width: 0;
  min-height: 64px;
  padding: 9px 12px 10px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.085);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(22,25,25,.96), rgba(13,16,16,.93));
  color: white;
  cursor: pointer;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 8px;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 20px rgba(0,0,0,.18);
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

#datos-page .datos-team-overview-key-player-btn:hover{
  z-index: 3000;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.13));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 8%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(28,32,31,.98), rgba(15,18,18,.95));
}

#datos-page .datos-team-overview-key-player-avatar{
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.10),
    0 7px 14px rgba(0,0,0,.22);
}

#datos-page .datos-team-overview-key-player-img,
#datos-page .datos-team-overview-key-player-img-fallback{
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

#datos-page .datos-team-overview-key-player-img-fallback{
  color: white;
  font-size: 10px;
  font-weight: 950;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.22), transparent 36%),
    linear-gradient(145deg, rgba(112,112,92,.95), rgba(54,58,52,.95));
}

#datos-page .datos-team-overview-key-player-text{
  min-width: 0;
  align-self: center;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
}

#datos-page .datos-team-overview-key-player-name{
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255,255,255,.94);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.16;
}

#datos-page .datos-team-overview-key-player-sub{
  margin-top: 4px;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-team-overview-key-player-metric{
  align-self: center;
  justify-self: end;
  min-width: 46px;
  padding: 4px 7px;
  border-radius: 999px;
  text-align: center;
  color: white;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.070);
}

#datos-page .datos-team-overview-key-player-metric.is-goal{
  color: #5cff99;
  background: rgba(42, 183, 101, .18);
  border-color: rgba(82, 255, 153, .28);
}

#datos-page .datos-team-overview-key-player-metric.is-regular{
  color: #ffd34f;
  background: rgba(228, 183, 43, .18);
  border-color: rgba(255, 211, 79, .30);
}

#datos-page .datos-team-overview-key-player-metric.is-keeper{
  min-width: 70px;
  color: #78b8ff;
  background: rgba(77, 145, 231, .17);
  border-color: rgba(120, 184, 255, .30);
}

#datos-page .datos-team-overview-key-player-metric.is-captain{
  color: #fff3a1;
  background: rgba(180, 143, 28, .18);
  border-color: rgba(255, 225, 102, .34);
}

#datos-page .datos-team-overview-key-player-discipline{
  position: absolute;
  right: 7px;
  bottom: -7px;
  z-index: 2;
  height: 17px;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 5px 12px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.13);
}

#datos-page .datos-team-overview-key-player-discipline.is-sanction{
  background: linear-gradient(180deg, rgba(165,63,45,.95), rgba(105,36,25,.95));
  border: 1px solid rgba(255,116,86,.40);
}

#datos-page .datos-team-overview-key-player-discipline.is-risk{
  background: linear-gradient(180deg, rgba(166,139,24,.96), rgba(95,78,10,.96));
  border: 1px solid rgba(255,220,63,.42);
}

#datos-page .datos-team-overview-key-player-discipline.is-doubt{
  background: linear-gradient(180deg, rgba(91,111,132,.96), rgba(52,65,80,.96));
  border: 1px solid rgba(170,197,230,.34);
}

#datos-page .datos-team-overview-key-player-dorsal{
  position: absolute;
  left: -4px;
  top: -6px;
  z-index: 6;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.34), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, rgba(18,24,20,.98), rgba(0,0,0,.94));
  border: 2px solid rgba(255,255,255,.84);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.72);
  box-shadow:
    0 7px 16px rgba(0,0,0,.38),
    0 0 0 2px rgba(13,19,14,.72),
    0 0 0 4px rgba(255,255,255,.08);
  pointer-events: none;
}

#datos-page .datos-team-overview-key-player-pos{
  position: absolute;
  left: 8px;
  bottom: -7px;
  z-index: 5;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,.28);
  background: rgba(74,222,128,.13);
  color: #4ade80;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

#datos-page .datos-team-overview-card-watermark{
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 0;
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: .16;
  filter: saturate(.9) contrast(1.08);
  transform: translateY(-50%);
  pointer-events: none;
}

#datos-page .datos-team-overview-key-player-avatar,
#datos-page .datos-team-overview-key-player-metric,
#datos-page .datos-team-overview-xi-rank,
#datos-page .datos-team-overview-xi-img-wrap,
#datos-page .datos-team-overview-xi-status-badges{
  position: relative;
  z-index: 1;
}

#datos-page .datos-team-overview-card-hover{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5000;
  width: min(280px, calc(100% + 110px));
  min-width: min(240px, 100%);
  padding: 9px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
  background-color: rgba(5,8,8,.995);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 12%, rgba(5,8,8,0)), rgba(5,8,8,0) 50%),
    linear-gradient(180deg, rgba(10,13,13,1), rgba(4,7,7,1));
  box-shadow:
    0 20px 38px rgba(0,0,0,.50),
    0 0 0 1px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.09);
  opacity: 0;
  transform: translateY(4px) scale(.985);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

#datos-page .datos-team-overview-key-player-btn:hover .datos-team-overview-card-hover,
#datos-page .datos-team-overview-xi-player-card:hover .datos-team-overview-card-hover{
  opacity: 1;
  transform: translateY(0) scale(1);
}

#datos-page .datos-team-overview-xi-player-card .datos-team-overview-card-hover{
  top: auto;
  bottom: calc(100% + 8px);
  width: 100%;
  min-width: 0;
  transform: translateY(-4px) scale(.985);
}

#datos-page .datos-team-overview-xi-player-card:hover .datos-team-overview-card-hover{
  transform: translateY(0) scale(1);
}

#datos-page .datos-team-overview-xi-line-section:first-child .datos-team-overview-xi-player-card .datos-team-overview-card-hover,
#datos-page .datos-team-overview-xi-list > .datos-team-overview-xi-player-card:nth-child(-n+2) .datos-team-overview-card-hover,
#datos-page .datos-team-overview-bench-list > .datos-team-overview-xi-player-card:nth-child(-n+2) .datos-team-overview-card-hover{
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateY(4px) scale(.985);
}

#datos-page .datos-team-overview-xi-line-section:first-child .datos-team-overview-xi-player-card:hover .datos-team-overview-card-hover,
#datos-page .datos-team-overview-xi-list > .datos-team-overview-xi-player-card:nth-child(-n+2):hover .datos-team-overview-card-hover,
#datos-page .datos-team-overview-bench-list > .datos-team-overview-xi-player-card:nth-child(-n+2):hover .datos-team-overview-card-hover{
  transform: translateY(0) scale(1);
}

#datos-page .datos-team-overview-key-player-btn.is-captain-card .datos-team-overview-card-hover{
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(-4px) scale(.985);
}

#datos-page .datos-team-overview-key-player-btn.is-captain-card:hover .datos-team-overview-card-hover{
  transform: translateY(0) scale(1);
}

#datos-page .datos-team-overview-key-list > .datos-team-overview-key-player-btn:nth-child(even) .datos-team-overview-card-hover,
#datos-page .datos-team-overview-xi-list > .datos-team-overview-xi-player-card:nth-child(even) .datos-team-overview-card-hover,
#datos-page .datos-team-overview-xi-line-list > .datos-team-overview-xi-player-card:nth-child(even) .datos-team-overview-card-hover,
#datos-page .datos-team-overview-bench-list > .datos-team-overview-xi-player-card:nth-child(even) .datos-team-overview-card-hover{
  left: auto;
  right: 0;
}

#datos-page .datos-team-overview-card-hover::before{
  content: "";
  position: absolute;
  left: 18px;
  top: -6px;
  width: 11px;
  height: 11px;
  background: rgba(10,13,13,1);
  border-left: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
  border-top: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
  transform: rotate(45deg);
}

#datos-page .datos-team-overview-xi-player-card .datos-team-overview-card-hover::before{
  top: auto;
  bottom: -6px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
  border-bottom: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
}

#datos-page .datos-team-overview-xi-line-section:first-child .datos-team-overview-xi-player-card .datos-team-overview-card-hover::before,
#datos-page .datos-team-overview-xi-list > .datos-team-overview-xi-player-card:nth-child(-n+2) .datos-team-overview-card-hover::before,
#datos-page .datos-team-overview-bench-list > .datos-team-overview-xi-player-card:nth-child(-n+2) .datos-team-overview-card-hover::before{
  top: -6px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
  border-top: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
}

#datos-page .datos-team-overview-key-player-btn.is-captain-card .datos-team-overview-card-hover::before{
  top: auto;
  bottom: -6px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
  border-bottom: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.16));
}

#datos-page .datos-team-overview-key-list > .datos-team-overview-key-player-btn:nth-child(even) .datos-team-overview-card-hover::before,
#datos-page .datos-team-overview-xi-list > .datos-team-overview-xi-player-card:nth-child(even) .datos-team-overview-card-hover::before,
#datos-page .datos-team-overview-xi-line-list > .datos-team-overview-xi-player-card:nth-child(even) .datos-team-overview-card-hover::before,
#datos-page .datos-team-overview-bench-list > .datos-team-overview-xi-player-card:nth-child(even) .datos-team-overview-card-hover::before{
  left: auto;
  right: 18px;
}

#datos-page .datos-team-overview-card-hover-title{
  color: rgba(255,255,255,.92);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

#datos-page .datos-team-overview-card-hover-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

#datos-page .datos-team-overview-card-hover-item{
  min-width: 0;
  padding: 4px 5px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

#datos-page .datos-team-overview-card-hover-label{
  color: rgba(255,255,255,.55);
  font-size: 8.5px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-team-overview-card-hover-value{
  color: #4ade80;
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

#datos-page .datos-team-overview-key-empty{
  grid-column: 1 / -1;
  min-height: 58px;
  border-radius: 13px;
  border: 1px dashed rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#datos-page .datos-team-overview-leadership-strip{
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 12px;
  margin: 14px 0 14px;
  min-width: 0;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-btn{
  min-height: 64px;
}

#datos-page .datos-team-overview-leadership-coach-card{
  min-height: 68px;
  padding: 10px 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.085);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 8px 18px rgba(0,0,0,.12);
}

#datos-page .datos-team-overview-leadership-coach-card.is-missing{
  border-style: dashed;
  background: rgba(255,255,255,.035);
}

#datos-page .datos-team-overview-leadership-coach-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 950;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.24), transparent 36%),
    linear-gradient(145deg, rgba(96,98,84,.96), rgba(42,47,42,.96));
  box-shadow:
    0 0 0 2px rgba(255,255,255,.10),
    0 7px 14px rgba(0,0,0,.22);
}

#datos-page .datos-team-overview-leadership-coach-text{
  min-width: 0;
  display: flex;
  min-height: 40px;
  flex-direction: column;
  justify-content: center;
}

#datos-page .datos-team-overview-leadership-coach-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

#datos-page .datos-team-overview-leadership-coach-sub,
#datos-page .datos-team-overview-leadership-coach-note{
  margin-top: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
}

#datos-page .datos-team-overview-leadership-coach-note{
  color: rgba(255,255,255,.40);
}

#datos-page .datos-team-overview-leadership-coach-tag{
  justify-self: end;
  min-width: 38px;
  padding: 4px 7px;
  border-radius: 999px;
  text-align: center;
  color: #fff3a1;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  border: 1px solid rgba(255, 225, 102, .28);
  background: rgba(180, 143, 28, .15);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  margin: 0;
  width: fit-content;
  padding: 4px;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.055);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 20px rgba(0,0,0,.12);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-item,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-item,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-item{
  margin: 0;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
  appearance: none;
  -webkit-appearance: none;
  min-height: 30px;
  padding: 7px 12px;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.68);
  background: transparent !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link:hover,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link:hover,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link:hover{
  color: white;
  background: rgba(255,255,255,.07) !important;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link:active,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link:active,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link:active{
  transform: translateY(1px);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link:focus,
#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link:focus-visible,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link:focus,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link:focus-visible,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link:focus,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link:focus-visible{
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 2px color-mix(in srgb, var(--datos-team-overview-accent) 24%, transparent);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link.active,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link.active,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link.active{
  color: white;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.075)) !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 5px 14px rgba(0,0,0,.14);
}

#datos-page .datos-team-overview-xi-content-tabs > .tab-content,
#datos-page .datos-team-overview-xi-content-tabs > .tab-content > .tab-pane,
#datos-page .datos-team-overview-xi-content-tabs.nav + .tab-content,
#datos-page .datos-team-overview-xi-content-tabs.nav + .tab-content > .tab-pane,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs + .tab-content,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs + .tab-content > .tab-pane{
  min-width: 0;
}


/* =========================================================
   9. XI MÁS USADO · LISTA Y SUPLENTES
   ========================================================= */

#datos-page .datos-team-overview-xi-layout{
  --datos-team-overview-xi-panel-h: clamp(520px, 72vh, 780px);
  display: grid;
  grid-template-columns: minmax(420px, 600px) minmax(420px, 580px) minmax(400px, 560px);
  gap: 14px;
  align-items: start;
  min-width: 0;
  justify-content: center;
}

#datos-page .datos-team-overview-xi-left{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#datos-page .datos-team-overview-tactics-side{
  min-width: 0;
  min-height: 0;
  align-self: start;
  height: var(--datos-team-overview-xi-panel-h);
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.024));
  border: 1px solid rgba(255,255,255,.075);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.050),
    0 12px 28px rgba(0,0,0,.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#datos-page .datos-team-overview-tactics-starters{
  gap: 0;
}

#datos-page .datos-team-overview-tactics-field{
  min-width: 0;
  min-height: 0;
  height: var(--datos-team-overview-xi-panel-h);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 5px 10px 8px;
  scrollbar-width: thin;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  min-height: 64px;
  padding: 8px;
  border-radius: 13px;
  overflow: visible;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 12px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  width: min(100%, 580px);
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

#datos-page .datos-team-overview-xi-list,
#datos-page .datos-team-overview-bench-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

#datos-page .datos-team-overview-xi-grouped-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#datos-page .datos-team-overview-xi-line-section{
  min-width: 0;
}

#datos-page .datos-team-overview-xi-line-head{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0 4px;
}

#datos-page .datos-team-overview-xi-line-title{
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

#datos-page .datos-team-overview-xi-line-count{
  min-width: 20px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 950;
}

#datos-page .datos-team-overview-xi-line-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

#datos-page .datos-team-overview-bench-list{
  max-height: clamp(210px, 30vh, 360px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

#datos-page .datos-team-overview-xi-player-card{
  appearance: none;
  -webkit-appearance: none;
  position: relative;

  min-width: 0;
  min-height: 66px;
  padding: 9px 11px 10px;

  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.085);

  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(22,25,25,.97), rgba(12,15,15,.94));

  color: white;
  cursor: pointer;

  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 10px;
  text-align: left;
  overflow: visible;

  box-shadow:
    0 12px 26px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.045);

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

#datos-page .datos-team-overview-xi-player-card:hover{
  z-index: 3000;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.12));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(29,33,32,.98), rgba(15,18,18,.96));
}

#datos-page .datos-team-overview-xi-rank{
  position: absolute;
  left: -5px;
  top: -6px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
  color: white;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.34), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, rgba(18,24,20,.98), rgba(0,0,0,.94));
  border: 2px solid rgba(255,255,255,.88);
  text-shadow: 0 1px 2px rgba(0,0,0,.76);
  box-shadow:
    0 8px 18px rgba(0,0,0,.42),
    0 0 0 2px rgba(13,19,14,.74),
    0 0 0 4px rgba(255,255,255,.10);
}

#datos-page .datos-team-overview-xi-img-wrap{
  position: relative;
  align-self: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 999px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
}

#datos-page .datos-team-overview-xi-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

#datos-page .datos-team-overview-xi-img-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 950;
  color: white;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.16), rgba(255,255,255,.055));
  border-radius: 999px;
  overflow: hidden;
}

#datos-page .datos-team-overview-xi-text{
  min-width: 0;
  align-self: center;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
}

#datos-page .datos-team-overview-xi-name-row{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-right: 2px;
}

#datos-page .datos-team-overview-xi-name{
  min-width: 0;
  font-size: 13px;
  font-weight: 950;
  color: white;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#datos-page .datos-team-overview-xi-pos{
  position: absolute;
  left: 8px;
  bottom: -7px;
  z-index: 4;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,.28);
  background: rgba(74,222,128,.13);
  color: #4ade80;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-xi-meta,
#datos-page .datos-team-overview-xi-main-metric{
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 750;
  color: rgba(255,255,255,.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-xi-main-metric{
  color: rgba(255,255,255,.62);
}

#datos-page .datos-team-overview-xi-goals{
  align-self: center;
  min-width: 34px;
  text-align: center;
}

#datos-page .datos-team-overview-xi-goals-value{
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  color: #4ade80;
}

#datos-page .datos-team-overview-xi-goals-label{
  margin-top: 2px;
  font-size: 9px;
  font-weight: 950;
  color: rgba(255,255,255,.45);
}

#datos-page .datos-team-overview-bench-block{
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  border-top: none;
}

#datos-page .datos-team-overview-bench-head{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

#datos-page .datos-team-overview-bench-title{
  font-size: 13px;
  font-weight: 950;
  color: white;
  line-height: 1.1;
}

#datos-page .datos-team-overview-bench-subtitle{
  font-size: 10px;
  font-weight: 750;
  color: rgba(255,255,255,.48);
  line-height: 1.35;
}

#datos-page .datos-team-overview-xi-player-card--bench{
  border-color: rgba(255,255,255,.070);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 3%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.022));
}

#datos-page .datos-team-overview-xi-player-card--bench .datos-team-overview-xi-rank{
  color: white;
}


/* =========================================================
   10. CAMPO DE FÚTBOL
   ========================================================= */

#datos-page .datos-team-overview-field{
  position: relative;
  width: min(100%, 760px);
  min-height: 0;
  aspect-ratio: 7 / 10;
  height: auto;
  max-height: clamp(520px, 70vh, 760px);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 18%, rgba(255,255,255,.10));

  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 50%, rgba(255,255,255,.012) 50%),
    repeating-linear-gradient(0deg, rgba(34,197,94,.18) 0 72px, rgba(22,163,74,.14) 72px 144px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.035), transparent 42%),
    linear-gradient(180deg, rgba(4,35,20,.86), rgba(2,24,16,.88));

  background-size: 100% 100%, 100% 144px, 100% 100%, 100% 100%;

  box-shadow:
    0 18px 44px rgba(0,0,0,.24),
    inset 0 0 0 2px rgba(255,255,255,.055),
    inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-team-overview-field::before{
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 16px;
  pointer-events: none;
}

#datos-page .datos-team-overview-field-line--mid{
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.15);
}

#datos-page .datos-team-overview-field-circle{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 999px;
}

#datos-page .datos-team-overview-field-box{
  position: absolute;
  left: 50%;
  width: 38%;
  height: 82px;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 0 0 14px 14px;
}

#datos-page .datos-team-overview-field-box--top{
  top: 16px;
  border-top: none;
}

#datos-page .datos-team-overview-field-box--bottom{
  bottom: 16px;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
}

#datos-page .datos-team-overview-field-players{
  position: absolute;
  inset: 0;
}

#datos-page .datos-team-overview-field-player-btn{
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 104px;
  min-height: 92px;
  padding: 0;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

#datos-page .datos-team-overview-field-player-face{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

#datos-page .datos-team-overview-field-player-face.is-alternate{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px) scale(.96);
}

#datos-page .datos-team-overview-field-player-btn.has-alternate-player .datos-team-overview-field-player-face.is-primary{
  animation: datos-field-primary-swap 10s ease-in-out infinite;
}

#datos-page .datos-team-overview-field-player-btn.has-alternate-player .datos-team-overview-field-player-face.is-alternate{
  animation: datos-field-alternate-swap 10s ease-in-out infinite;
}

@keyframes datos-field-primary-swap{
  0%, 44% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 94% { opacity: 0; transform: translateY(-6px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes datos-field-alternate-swap{
  0%, 44% { opacity: 0; transform: translateY(6px) scale(.96); }
  50%, 94% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(6px) scale(.96); }
}

#datos-page .datos-team-overview-field-player-btn:hover .datos-team-overview-field-player-img-wrap{
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--datos-team-overview-accent) 48%, rgba(255,255,255,.20)),
    0 14px 26px rgba(0,0,0,.34);
}

#datos-page .datos-team-overview-field-player-btn.is-estimated-position .datos-team-overview-field-player-img-wrap{
  border-color: rgba(255,80,80,.82);
  background: rgba(80,10,10,.78);
  box-shadow:
    0 0 0 2px rgba(255,70,70,.22),
    0 10px 22px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
}

#datos-page .datos-team-overview-field-player-btn.is-estimated-position .datos-team-overview-field-player-name{
  color: white;
  background: rgba(140,25,25,.78);
  border: 1px solid rgba(255,95,95,.42);
}

#datos-page .datos-team-overview-field-player-btn.is-substitution-estimated-position .datos-team-overview-field-player-img-wrap{
  border-color: rgba(245,198,66,.90);
  background: rgba(100,78,12,.78);
  box-shadow:
    0 0 0 2px rgba(245,198,66,.24),
    0 10px 22px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
}

#datos-page .datos-team-overview-field-player-btn.is-substitution-estimated-position .datos-team-overview-field-player-name{
  color: white;
  background: rgba(135,101,18,.82);
  border: 1px solid rgba(245,198,66,.46);
}

#datos-page .datos-team-overview-field-player-img-wrap{
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: visible;
  background: rgba(5,15,10,.78);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 22px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

#datos-page .datos-team-overview-field-player-flag{
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(0,0,0,.36);
  box-shadow: 0 4px 10px rgba(0,0,0,.32);
}

#datos-page .datos-team-overview-field-player-dorsal{
  position: absolute;
  left: -10px;
  top: -10px;
  z-index: 6;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.30), rgba(255,255,255,0) 34%),
    linear-gradient(145deg, rgba(17,22,18,.98), rgba(0,0,0,.94));
  border: 2px solid rgba(255,255,255,.86);
  color: white;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.72);
  box-shadow:
    0 8px 18px rgba(0,0,0,.42),
    0 0 0 2px rgba(13,19,14,.74),
    0 0 0 4px rgba(255,255,255,.10);
}

#datos-page .datos-team-overview-field-player-img,
#datos-page .datos-team-overview-field-player-fallback{
  border-radius: 999px;
  overflow: hidden;
}

#datos-page .datos-team-overview-field-events{
  position: absolute;
  top: 4px;
  left: calc(50% + 32px);
  transform: none;
  z-index: 7;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  pointer-events: none;
}

#datos-page .datos-team-overview-field-event-badge{
  min-width: 30px;
  height: 17px;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: white;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  background: rgba(10,14,12,.86);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 5px 12px rgba(0,0,0,.34);
}

#datos-page .datos-team-overview-field-event-badge.is-goal{
  background: rgba(22,163,74,.88);
  border-color: rgba(134,239,172,.58);
}

#datos-page .datos-team-overview-field-event-badge.is-yellow{
  background: rgba(161,111,10,.90);
  border-color: rgba(250,204,21,.66);
}

#datos-page .datos-team-overview-field-event-badge.is-red{
  background: rgba(185,28,28,.90);
  border-color: rgba(252,165,165,.62);
}

#datos-page .datos-team-overview-field-event-badge.is-in{
  background: rgba(22,163,74,.88);
  border-color: rgba(134,239,172,.58);
}

#datos-page .datos-team-overview-field-event-badge.is-out{
  background: rgba(185,28,28,.90);
  border-color: rgba(252,165,165,.62);
}

#datos-page .datos-team-overview-field-event-icon{
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-field-event-badge.is-yellow .datos-team-overview-field-event-icon{
  color: rgba(253,224,71,.98);
}

#datos-page .datos-team-overview-field-event-badge.is-red .datos-team-overview-field-event-icon,
#datos-page .datos-team-overview-field-event-badge.is-out .datos-team-overview-field-event-icon{
  color: rgba(252,165,165,.98);
}

#datos-page .datos-team-overview-field-event-badge.is-in .datos-team-overview-field-event-icon{
  color: rgba(134,239,172,.98);
}

#datos-page .datos-team-overview-field-event-minute{
  color: rgba(255,255,255,.92);
  font-size: 8.6px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-field-source-wrap{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#datos-page .datos-team-overview-field-source-note{
  align-self: flex-end;
  padding: 3px 7px;
  border-radius: 999px;
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 9px;
  font-weight: 850;
}

#datos-page .datos-team-overview-field-player-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#datos-page .datos-team-overview-field-player-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
  color: white;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.18), rgba(255,255,255,.055));
}

#datos-page .datos-team-overview-field-player-name{
  max-width: 112px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  color: white;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(5px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-field-estimated-note{
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(95,18,18,.78);
  border: 1px solid rgba(255,90,90,.42);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  cursor: help;
}

/* =========================================================
   11. ESTADOS VACÍOS
   ========================================================= */

#datos-page .datos-team-overview-field-empty{
  min-height: 260px;
  height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#datos-page .datos-team-overview-field-empty-title,
#datos-page .datos-team-overview-empty-main{
  font-size: 13px;
  font-weight: 950;
  color: white;
}

#datos-page .datos-team-overview-field-empty-subtitle,
#datos-page .datos-team-overview-empty-sub{
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(255,255,255,.52);
}


/* =========================================================
   12. RESPONSIVE
   ========================================================= */

@media (max-width: 1500px){
  #datos-page .datos-team-overview-key-list{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: clamp(520px, 70vh, 670px);
    grid-template-columns: minmax(280px, 350px) minmax(440px, 560px) minmax(260px, 340px);
    gap: 12px;
  }

  #datos-page .datos-team-overview-tactics-side{
    height: var(--datos-team-overview-xi-panel-h);
  }

  #datos-page .datos-team-overview-field{
    width: min(100%, 560px);
    min-height: 0;
    max-height: 70vh;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    width: min(100%, 540px);
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 7px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-goals{
    display: none;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
    width: 26px;
    height: 26px;
    left: -4px;
    top: -5px;
    font-size: 12px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1280px){
  #datos-page .datos-team-overview-line-items{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1150px){
  #datos-page .datos-team-overview-stats-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #datos-page .datos-team-overview-key-strip{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-leadership-strip{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-key-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #datos-page .datos-team-overview-lines-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-xi-list,
  #datos-page .datos-team-overview-bench-list{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-xi-layout{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "field field"
      "starters bench";
  }

  #datos-page .datos-team-overview-tactics-field{
    grid-area: field;
  }

  #datos-page .datos-team-overview-tactics-starters{
    grid-area: starters;
  }

  #datos-page .datos-team-overview-tactics-bench{
    grid-area: bench;
  }

  #datos-page .datos-team-overview-tactics-side{
    height: auto;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    width: min(100%, 540px);
    height: clamp(510px, 66vh, 650px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
    max-height: 360px;
  }
}

@media (max-width: 720px){
  #datos-page .datos-team-overview-section-head{
    padding-right: 14px;
    min-height: 48px;
  }

  #datos-page .datos-team-overview-header-left{
    align-items: flex-start;
  }

  #datos-page .datos-team-overview-title{
    font-size: 17px;
  }

  #datos-page .datos-team-overview-subtitle{
    white-space: normal;
  }

  #datos-page .datos-team-overview-stats-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #datos-page .datos-team-overview-line-items{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #datos-page .datos-team-overview-key-list{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-xi-player-card{
    grid-template-columns: 46px minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-xi-layout{
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "field"
      "starters"
      "bench";
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    width: min(100%, 430px);
    height: auto;
    min-height: 420px;
    max-height: none;
    aspect-ratio: 7 / 10;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #datos-page .datos-team-overview-xi-goals{
    display: none;
  }

  #datos-page .datos-team-overview-field{
    width: min(100%, 520px);
    min-height: 0;
    max-height: 68vh;
  }

  #datos-page .datos-team-overview-field-player-btn{
    width: 82px;
  }

  #datos-page .datos-team-overview-field-player-img-wrap{
    width: 46px;
    height: 46px;
  }

  #datos-page .datos-team-overview-field-player-dorsal{
    left: -8px;
    top: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
  }
}

@media (max-width: 520px){
  #datos-page .datos-team-overview-line-items{
    grid-template-columns: minmax(0, 1fr);
  }
}

#datos-page .datos-team-overview-xi-status-badges{
  position: absolute;
  right: 8px;
  top: 6px;
  z-index: 6;
  display: inline-flex;
  gap: 4px;
  pointer-events: none;
}

#datos-page .datos-team-overview-xi-status-badge{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  color: white;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
}

#datos-page .datos-team-overview-xi-status-badge.is-captain{
  color: rgba(254,240,138,1);
  background: rgba(113,86,16,.92);
  border-color: rgba(250,204,21,.46);
}

#datos-page .datos-team-overview-xi-status-badge.is-sanction{
  color: rgba(255,237,213,1);
  background: rgba(127,29,29,.94);
  border-color: rgba(251,146,60,.48);
}

#datos-page .datos-team-overview-xi-status-badge.is-risk{
  color: rgba(254,240,138,1);
  background: rgba(113,86,16,.94);
  border-color: rgba(250,204,21,.54);
}

#datos-page .datos-team-overview-xi-status-badge.is-doubt{
  color: rgba(226,232,240,1);
  background: rgba(51,65,85,.92);
  border-color: rgba(203,213,225,.30);
}

#datos-page .datos-team-overview-xi-player-card--sanction{
  border-color: rgba(251,146,60,.62) !important;
  box-shadow:
    inset 0 0 0 1px rgba(127,29,29,.44),
    0 0 0 1px rgba(251,146,60,.14),
    0 18px 34px rgba(0,0,0,.30);
}

#datos-page .datos-team-overview-xi-player-card--risk{
  border-color: rgba(250,204,21,.52) !important;
  box-shadow:
    inset 0 0 0 1px rgba(113,86,16,.34),
    0 0 0 1px rgba(250,204,21,.12),
    0 18px 34px rgba(0,0,0,.28);
}

#datos-page .datos-team-overview-xi-player-card--doubt{
  border-color: rgba(203,213,225,.28) !important;
  box-shadow:
    inset 0 0 0 1px rgba(148,163,184,.14),
    0 18px 34px rgba(0,0,0,.26);
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

#datos-page .datos-team-overview-leadership-strip > .datos-team-overview-key-section:first-child .datos-team-overview-key-list{
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  #datos-page .datos-team-overview-leadership-strip > .datos-team-overview-key-section:first-child .datos-team-overview-key-list{
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1150px){
  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  #datos-page .datos-team-overview-leadership-strip > .datos-team-overview-key-section:first-child .datos-team-overview-key-list{
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 720px){
  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-leadership-strip > .datos-team-overview-key-section:first-child .datos-team-overview-key-list{
    grid-template-columns: minmax(0, 1fr);
  }
}

#datos-page .datos-team-overview-xi-alert{
  position: absolute;
  right: 8px;
  bottom: -7px;
  z-index: 5;
  width: auto;
  max-width: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(226,232,240,.92);
  background: rgba(255,255,255,.055);
  pointer-events: none;
}

#datos-page .datos-team-overview-xi-alert-tag{
  min-width: 0;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: inherit;
  background: transparent;
}

#datos-page .datos-team-overview-xi-alert-text{
  display: none;
}

#datos-page .datos-team-overview-xi-alert.is-sanction{
  color: rgba(255,237,213,1);
  background: rgba(127,29,29,.22);
  border-color: rgba(251,146,60,.34);
}

#datos-page .datos-team-overview-xi-alert.is-sanction .datos-team-overview-xi-alert-tag{
  color: rgba(255,237,213,1);
}

#datos-page .datos-team-overview-xi-alert.is-risk{
  color: rgba(254,240,138,1);
  background: rgba(113,86,16,.22);
  border-color: rgba(250,204,21,.32);
}

#datos-page .datos-team-overview-xi-alert.is-risk .datos-team-overview-xi-alert-tag{
  color: rgba(254,240,138,1);
}

#datos-page .datos-team-overview-xi-alert.is-doubt{
  color: rgba(226,232,240,1);
  background: rgba(51,65,85,.30);
  border-color: rgba(203,213,225,.24);
}

#datos-page .datos-team-overview-xi-alert.is-doubt .datos-team-overview-xi-alert-tag{
  color: rgba(226,232,240,1);
}

#datos-page .datos-team-overview-xi-legend{
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  color: rgba(226,232,240,.68);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-team-overview-xi-legend--below{
  grid-column: 1 / -1;
  margin: -4px 0 0;
  padding: 0 10px 2px;
  justify-content: flex-start;
}

#datos-page .datos-team-overview-xi-legend-pill{
  min-width: 34px;
  height: 18px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-xi-legend-pill.is-sanction{
  color: rgba(255,237,213,1);
  background: rgba(127,29,29,.86);
  border-color: rgba(251,146,60,.46);
}

#datos-page .datos-team-overview-xi-legend-pill.is-risk{
  color: rgba(254,240,138,1);
  background: rgba(113,86,16,.86);
  border-color: rgba(250,204,21,.44);
}

#datos-page .datos-team-overview-xi-legend-pill.is-doubt{
  color: rgba(226,232,240,1);
  background: rgba(51,65,85,.86);
  border-color: rgba(203,213,225,.26);
}

#datos-page .datos-team-overview-xi-legend-text{
  margin-right: 5px;
}


/* =========================================================
   EQUIPO TAB · XI COMPACTO TIPO PANEL
   ========================================================= */

#datos-page .datos-team-overview-xi-card{
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 12%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(8,18,17,.94), rgba(7,13,13,.98));
  border-color: rgba(255,255,255,.075);
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  min-height: 70px;
  padding: 16px 22px 13px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--datos-team-overview-accent) 10%, transparent), transparent 52%),
    rgba(255,255,255,.018);
}

#datos-page .datos-team-overview-section-badge{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,.24), rgba(255,255,255,0) 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--datos-team-overview-accent) 35%, #15201c), rgba(7,18,14,.98));
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 38%, rgba(255,255,255,.14));
  box-shadow:
    0 8px 18px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.12);
}

#datos-page .datos-team-overview-section-badge-number{
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
  font-size: 22px;
  line-height: 1.05;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.62);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  top: 16px;
  right: 22px;
  padding: 3px;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.09);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
  min-height: 28px;
  padding: 7px 15px;
  font-size: 11px;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link.active,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link.active,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link.active{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--datos-team-overview-accent) 55%, rgba(21,185,93,.40)), rgba(13,111,58,.42)) !important;
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 48%, rgba(74,222,128,.34)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 8px 18px color-mix(in srgb, var(--datos-team-overview-accent) 18%, rgba(0,0,0,.32));
}

#datos-page .datos-team-overview-xi-tab-pane-content{
  padding: 0;
}

#datos-page .datos-team-overview-xi-layout{
  --datos-team-overview-xi-panel-h: clamp(430px, 58vh, 585px);
  grid-template-columns: minmax(280px, .9fr) minmax(500px, 1.42fr) minmax(280px, .9fr);
  gap: 12px;
  align-items: stretch;
  justify-content: stretch;
  padding: 12px 16px 14px;
}

#datos-page .datos-team-overview-tactics-side{
  height: var(--datos-team-overview-xi-panel-h);
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.018)),
    rgba(3,12,12,.50);
  border: 1px solid rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

#datos-page .datos-team-overview-bench-head{
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

#datos-page .datos-team-overview-bench-title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

#datos-page .datos-team-overview-bench-subtitle{
  font-size: 9px;
  color: rgba(255,255,255,.50);
}

#datos-page .datos-team-overview-xi-line-head{
  margin: 0 0 5px;
  padding: 0;
}

#datos-page .datos-team-overview-xi-line-title{
  color: rgba(255,255,255,.76);
  font-size: 10px;
}

#datos-page .datos-team-overview-xi-line-title::before{
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: 1px;
  border-radius: 999px;
  background: #35e87c;
  box-shadow: 0 0 10px rgba(53,232,124,.34);
}

#datos-page .datos-team-overview-xi-line-count{
  min-width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: #35e87c;
  font-size: 10px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  padding: 0 4px 0 0;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  min-height: 36px;
  padding: 5px 7px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  border-radius: 8px;
  background: rgba(255,255,255,.028);
  border-color: rgba(255,255,255,.06);
  box-shadow: none;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card:hover{
  background: rgba(255,255,255,.055);
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 24%, rgba(255,255,255,.10));
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
  width: 20px;
  height: 20px;
  left: -5px;
  top: -5px;
  font-size: 9px;
  border-width: 1px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 10px;
  -webkit-line-clamp: 1;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-meta,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-main-metric{
  display: none;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  position: static;
  justify-self: end;
  align-self: center;
  padding: 2px 6px;
  font-size: 8px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-status-badges{
  right: 4px;
  top: 3px;
}

#datos-page .datos-team-overview-tactics-field{
  position: relative;
  flex-direction: column;
  gap: 8px;
  height: var(--datos-team-overview-xi-panel-h);
  padding: 0;
}

#datos-page .datos-team-overview-field-toolbar{
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 12;
  pointer-events: none;
}

#datos-page .datos-team-overview-formation-pill{
  min-width: 78px;
  height: 30px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 950;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--datos-team-overview-accent) 62%, rgba(25,185,88,.78)), rgba(12,96,50,.84));
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 44%, rgba(134,239,172,.36));
  box-shadow:
    0 10px 22px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.16);
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  width: 100%;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 28%, rgba(255,255,255,.10));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 20px 46px rgba(0,0,0,.28);
}

#datos-page .datos-team-overview-xi-legend--below{
  margin: 0;
  padding: 8px 8px 2px;
  justify-content: center;
  color: rgba(255,255,255,.54);
}

#datos-page .datos-team-overview-key-strip{
  gap: 10px;
  margin: 10px 0 12px;
}

#datos-page .datos-team-overview-key-section{
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9,22,21,.88), rgba(6,13,13,.96));
  border: 1px solid rgba(255,255,255,.075);
  box-shadow:
    0 12px 30px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.055);
}

#datos-page .datos-team-overview-key-head{
  min-height: 50px;
  margin: 0;
  padding: 12px 14px 9px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.018);
}

#datos-page .datos-team-overview-key-title-block{
  min-width: 0;
}

#datos-page .datos-team-overview-key-title{
  font-size: 12px;
  text-transform: uppercase;
}

#datos-page .datos-team-overview-key-subtitle{
  margin-top: 3px;
  text-align: left;
  font-size: 9px;
  color: rgba(255,255,255,.48);
}

#datos-page .datos-team-overview-key-more{
  flex: 0 0 auto;
  color: rgba(255,255,255,.46);
  font-size: 9px;
  font-weight: 850;
}

#datos-page .datos-team-overview-key-list{
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 8px 12px 12px;
}

#datos-page .datos-team-overview-key-player-btn{
  min-height: 36px;
  padding: 5px 6px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

#datos-page .datos-team-overview-key-player-btn + .datos-team-overview-key-player-btn{
  margin-top: 2px;
}

#datos-page .datos-team-overview-key-player-btn:hover{
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.07);
}

#datos-page .datos-team-overview-key-player-avatar{
  width: 28px;
  height: 28px;
}

#datos-page .datos-team-overview-key-player-dorsal{
  left: -5px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 8px;
  border-width: 1px;
}

#datos-page .datos-team-overview-key-player-name{
  font-size: 10px;
  -webkit-line-clamp: 1;
}

#datos-page .datos-team-overview-key-player-sub{
  display: none;
}

#datos-page .datos-team-overview-key-player-pos{
  position: static;
  justify-self: start;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 6px;
  font-size: 8px;
}

#datos-page .datos-team-overview-key-player-metric{
  min-width: 44px;
  padding: 3px 7px;
  font-size: 9px;
}

#datos-page .datos-team-overview-key-empty{
  min-height: 42px;
  border-radius: 9px;
  font-size: 10px;
}

#datos-page .datos-team-overview-leadership-strip{
  grid-template-columns: minmax(0, 1fr) minmax(320px, .45fr);
  gap: 10px;
  margin: 10px 0 12px;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-list,
#datos-page .datos-team-overview-leadership-strip > .datos-team-overview-key-section:first-child .datos-team-overview-key-list{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#datos-page .datos-team-overview-leadership-coach-card{
  margin: 8px 12px 12px;
  min-height: 58px;
  padding: 8px;
  border-radius: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  background: rgba(255,255,255,.030);
  border-color: rgba(255,255,255,.065);
  box-shadow: none;
}

#datos-page .datos-team-overview-leadership-coach-avatar{
  width: 34px;
  height: 34px;
  font-size: 10px;
}

#datos-page .datos-team-overview-leadership-coach-name{
  font-size: 11px;
}

#datos-page .datos-team-overview-leadership-coach-sub,
#datos-page .datos-team-overview-leadership-coach-note{
  font-size: 8.5px;
}

#datos-page .datos-team-overview-leadership-coach-tag{
  min-width: 32px;
  padding: 4px 6px;
  font-size: 9px;
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-xi-layout{
    grid-template-columns: minmax(250px, .88fr) minmax(430px, 1.34fr) minmax(250px, .88fr);
  }

  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-list,
  #datos-page .datos-team-overview-leadership-strip > .datos-team-overview-key-section:first-child .datos-team-overview-key-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 18px;
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    position: static;
    margin: 0 14px 10px auto;
  }

  #datos-page .datos-team-overview-xi-layout{
    padding: 10px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "field"
      "starters"
      "bench";
  }

  #datos-page .datos-team-overview-tactics-side,
  #datos-page .datos-team-overview-tactics-field{
    height: auto;
  }

  #datos-page .datos-team-overview-leadership-strip{
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================
   EQUIPO TAB · ESCALA Y PROPORCION FINAL
   ========================================================= */

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  min-height: 78px;
  padding: 18px 24px 15px;
}

#datos-page .datos-team-overview-section-badge{
  width: 50px;
  height: 50px;
}

#datos-page .datos-team-overview-section-badge-number{
  font-size: 15px;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
  font-size: 26px;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
  font-size: 12px;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  top: 19px;
  right: 24px;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
  min-height: 32px;
  padding: 8px 17px;
  font-size: 12px;
}

#datos-page .datos-team-overview-xi-layout{
  --datos-team-overview-xi-panel-h: clamp(560px, 62vh, 720px);
  grid-template-columns: minmax(280px, .98fr) minmax(420px, 1.12fr) minmax(280px, .98fr);
  gap: 14px;
  padding: 16px 18px 18px;
}

#datos-page .datos-team-overview-tactics-side{
  padding: 16px;
  border-radius: 16px;
}

#datos-page .datos-team-overview-bench-head{
  margin-bottom: 14px;
}

#datos-page .datos-team-overview-bench-title{
  font-size: 14px;
}

#datos-page .datos-team-overview-bench-subtitle{
  font-size: 10px;
}

#datos-page .datos-team-overview-xi-line-head{
  margin-bottom: 7px;
}

#datos-page .datos-team-overview-xi-line-title{
  font-size: 11px;
}

#datos-page .datos-team-overview-xi-line-count{
  font-size: 11px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  gap: 8px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  padding: 8px 8px 12px 10px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  min-height: 50px;
  padding: 8px 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  border-radius: 10px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
  width: 24px;
  height: 24px;
  left: -8px;
  top: -7px;
  font-size: 11px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 12px;
  line-height: 1.15;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  padding: 3px 7px;
  font-size: 9px;
}

#datos-page .datos-team-overview-tactics-field{
  max-width: 780px;
  justify-self: center;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  min-height: var(--datos-team-overview-xi-panel-h);
}

#datos-page .datos-team-overview-field-player-img-wrap{
  width: 64px;
  height: 64px;
}

#datos-page .datos-team-overview-field-player-dorsal{
  min-width: 30px;
  height: 30px;
  font-size: 13px;
}

#datos-page .datos-team-overview-field-player-name{
  max-width: 126px;
  padding: 5px 8px;
  font-size: 11px;
}

#datos-page .datos-team-overview-formation-pill{
  min-width: 88px;
  height: 34px;
  font-size: 14px;
}

#datos-page .datos-team-overview-xi-legend--below{
  padding-top: 10px;
  font-size: 10px;
}

#datos-page .datos-team-overview-xi-legend-pill{
  height: 20px;
  font-size: 10px;
}

#datos-page .datos-team-overview-key-strip{
  gap: 12px;
  margin-top: 12px;
}

#datos-page .datos-team-overview-key-head{
  min-height: 56px;
  padding: 14px 16px 10px;
}

#datos-page .datos-team-overview-key-title{
  font-size: 14px;
}

#datos-page .datos-team-overview-key-subtitle{
  flex: 0 1 auto;
  max-width: 46%;
  margin-top: 0;
  text-align: right;
  font-size: 10px;
  line-height: 1.2;
}

#datos-page .datos-team-overview-key-more{
  display: none;
}

#datos-page .datos-team-overview-key-list{
  padding: 10px 14px 14px;
}

#datos-page .datos-team-overview-key-player-btn{
  min-height: 48px;
  padding: 8px 8px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 10px;
}

#datos-page .datos-team-overview-key-player-btn + .datos-team-overview-key-player-btn{
  margin-top: 4px;
}

#datos-page .datos-team-overview-key-player-avatar{
  width: 36px;
  height: 36px;
}

#datos-page .datos-team-overview-key-player-dorsal{
  min-width: 22px;
  height: 22px;
  font-size: 10px;
}

#datos-page .datos-team-overview-key-player-name{
  font-size: 12px;
}

#datos-page .datos-team-overview-key-player-pos{
  padding: 3px 7px;
  font-size: 9px;
}

#datos-page .datos-team-overview-key-player-metric{
  min-width: 52px;
  padding: 4px 8px;
  font-size: 10px;
}

#datos-page .datos-team-overview-leadership-coach-card{
  min-height: 70px;
  padding: 10px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

#datos-page .datos-team-overview-leadership-coach-avatar{
  width: 44px;
  height: 44px;
}

#datos-page .datos-team-overview-leadership-coach-name{
  font-size: 13px;
}

#datos-page .datos-team-overview-leadership-coach-sub,
#datos-page .datos-team-overview-leadership-coach-note{
  font-size: 10px;
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: clamp(540px, 67vh, 660px);
    grid-template-columns: minmax(260px, .92fr) minmax(430px, 1.16fr) minmax(260px, .92fr);
    gap: 12px;
    padding: 14px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    min-height: 48px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
    font-size: 11.5px;
  }

  #datos-page .datos-team-overview-field-player-img-wrap{
    width: 58px;
    height: 58px;
  }

  #datos-page .datos-team-overview-key-player-name{
    font-size: 11.5px;
  }
}

@media (max-width: 1180px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: 560px;
    grid-template-columns: minmax(230px, .86fr) minmax(390px, 1.18fr) minmax(230px, .86fr);
  }

  #datos-page .datos-team-overview-tactics-side{
    padding: 12px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 980px){
  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    position: static;
    margin: 0 14px 10px auto;
  }

  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "field"
      "starters"
      "bench";
  }

  #datos-page .datos-team-overview-tactics-side,
  #datos-page .datos-team-overview-tactics-field{
    height: auto;
    max-width: none;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    min-height: 520px;
  }

  #datos-page .datos-team-overview-key-strip,
  #datos-page .datos-team-overview-leadership-strip{
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================
   EQUIPO TAB · FIX HEADER Y CAMPO VISIBLE
   ========================================================= */

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding-right: 330px;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
  min-width: 0;
  max-width: min(720px, 100%);
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  z-index: 20;
}

#datos-page .datos-team-overview-tactics-field{
  width: 100%;
  min-width: 0;
  max-width: 720px;
  align-items: stretch;
  justify-self: stretch;
}

#datos-page .datos-team-overview-field-source-wrap{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

#datos-page .datos-team-overview-field-source-wrap .datos-team-overview-field-source-note{
  align-self: flex-end;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  width: 100%;
  height: 100%;
  min-height: var(--datos-team-overview-xi-panel-h);
  max-height: none;
  aspect-ratio: auto;
  display: block;
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 300px;
  }

  #datos-page .datos-team-overview-tactics-field{
    max-width: 650px;
  }
}

@media (max-width: 1180px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 280px;
  }

  #datos-page .datos-team-overview-tactics-field{
    max-width: 560px;
  }
}

@media (max-width: 980px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 18px;
    align-items: center;
  }

  #datos-page .datos-team-overview-tactics-field{
    max-width: none;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    height: auto;
    min-height: 520px;
    aspect-ratio: 7 / 10;
  }
}


/* =========================================================
   EQUIPO TAB · AJUSTE FIEL REFERENCIA SIN SCROLL INTERNO
   ========================================================= */

#datos-page .datos-team-overview-xi-card{
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 10%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(8,18,17,.96), rgba(5,10,10,.98));
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  min-height: 74px;
  padding: 15px 330px 14px 20px;
}

#datos-page .datos-team-overview-section-badge{
  width: 46px;
  height: 46px;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
  font-size: 24px;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
  font-size: 11px;
}

#datos-page .datos-team-overview-xi-layout{
  --datos-team-overview-xi-panel-h: clamp(500px, 56vh, 610px);
  grid-template-columns: minmax(300px, .98fr) minmax(470px, 1.22fr) minmax(340px, 1.05fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px 18px 16px;
}

#datos-page .datos-team-overview-tactics-side,
#datos-page .datos-team-overview-tactics-field{
  height: auto;
  min-height: var(--datos-team-overview-xi-panel-h);
}

#datos-page .datos-team-overview-tactics-side{
  padding: 12px;
  overflow: visible;
}

#datos-page .datos-team-overview-bench-block{
  height: auto;
  min-height: 0;
}

#datos-page .datos-team-overview-bench-head{
  margin-bottom: 8px;
  padding-bottom: 8px;
}

#datos-page .datos-team-overview-bench-title{
  font-size: 13px;
}

#datos-page .datos-team-overview-bench-subtitle{
  font-size: 9px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  flex: 0 0 auto;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  scrollbar-width: none;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list::-webkit-scrollbar,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list::-webkit-scrollbar,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list::-webkit-scrollbar{
  display: none;
}

#datos-page .datos-team-overview-xi-grouped-list{
  gap: 7px;
}

#datos-page .datos-team-overview-xi-line-head{
  margin: 0 0 4px;
}

#datos-page .datos-team-overview-xi-line-title{
  font-size: 10px;
}

#datos-page .datos-team-overview-xi-line-count{
  font-size: 10px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  gap: 5px;
}

#datos-page .datos-team-overview-tactics-starters .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-starters .datos-team-overview-xi-list{
  grid-template-columns: minmax(0, 1fr);
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-list{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  min-height: 36px;
  padding: 5px 7px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  border-radius: 8px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
  width: 20px;
  height: 20px;
  left: -6px;
  top: -6px;
  font-size: 9px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 10px;
  line-height: 1.1;
  -webkit-line-clamp: 1;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  padding: 2px 6px;
  font-size: 8px;
}

#datos-page .datos-team-overview-tactics-field{
  width: 100%;
  max-width: none;
  min-width: 0;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  width: 100%;
  height: var(--datos-team-overview-xi-panel-h);
  min-height: var(--datos-team-overview-xi-panel-h);
  max-height: none;
  aspect-ratio: auto;
}

#datos-page .datos-team-overview-field-source-wrap{
  height: var(--datos-team-overview-xi-panel-h);
}

#datos-page .datos-team-overview-field-player-btn{
  width: 92px;
  min-height: 76px;
}

#datos-page .datos-team-overview-field-player-img-wrap{
  width: 52px;
  height: 52px;
}

#datos-page .datos-team-overview-field-player-dorsal{
  min-width: 25px;
  height: 25px;
  font-size: 11px;
}

#datos-page .datos-team-overview-field-player-name{
  max-width: 106px;
  padding: 4px 7px;
  font-size: 9.5px;
}

#datos-page .datos-team-overview-formation-pill{
  min-width: 76px;
  height: 29px;
  font-size: 12px;
}

#datos-page .datos-team-overview-xi-legend--below{
  padding: 4px 8px 0;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-layout{
    grid-template-columns: minmax(340px, .95fr) minmax(620px, 1.22fr) minmax(410px, 1.05fr);
  }
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 285px;
  }

  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: clamp(500px, 62vh, 580px);
    grid-template-columns: minmax(270px, .95fr) minmax(410px, 1.16fr) minmax(300px, 1fr);
    gap: 10px;
    padding: 10px 12px 14px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    min-height: 34px;
    padding: 4px 6px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap{
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
    font-size: 9.5px;
  }

  #datos-page .datos-team-overview-field-player-img-wrap{
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1180px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: 540px;
    grid-template-columns: minmax(240px, .9fr) minmax(360px, 1.08fr) minmax(260px, .96fr);
  }

  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-list,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-list{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-tactics-side,
  #datos-page .datos-team-overview-tactics-field,
  #datos-page .datos-team-overview-field-source-wrap{
    min-height: 0;
    height: auto;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    height: auto;
    min-height: 520px;
    aspect-ratio: 7 / 10;
  }
}


/* =========================================================
   EQUIPO TAB · REAJUSTE FINAL REFERENCIA
   ========================================================= */

#datos-page .datos-team-overview-xi-layout{
  --datos-team-overview-xi-panel-h: clamp(500px, 57vh, 610px);
  grid-template-columns: minmax(310px, .92fr) minmax(560px, 1.34fr) minmax(360px, .98fr);
  gap: 12px;
}

#datos-page .datos-team-overview-tactics-side,
#datos-page .datos-team-overview-tactics-field{
  min-height: var(--datos-team-overview-xi-panel-h);
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  height: var(--datos-team-overview-xi-panel-h);
  min-height: var(--datos-team-overview-xi-panel-h);
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  overflow: visible !important;
  max-height: none !important;
}

#datos-page .datos-team-overview-tactics-starters .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-starters .datos-team-overview-xi-list{
  grid-template-columns: minmax(0, 1fr);
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-list{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  min-height: 40px;
  grid-template-columns: 30px minmax(0, 1fr);
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 10.5px;
  line-height: 1.08;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  display: inline-flex;
  position: static;
  margin-top: 3px;
  justify-self: start;
  align-self: start;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

#datos-page .datos-team-overview-field-player-name{
  max-width: 116px;
  white-space: nowrap;
}

#datos-page .datos-team-overview-field-player-btn .datos-team-overview-field-player-pos,
#datos-page .datos-team-overview-field-player-pos{
  display: inline-flex;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-layout{
    grid-template-columns: minmax(350px, .9fr) minmax(650px, 1.34fr) minmax(420px, 1fr);
  }
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: clamp(500px, 61vh, 580px);
    grid-template-columns: minmax(280px, .9fr) minmax(430px, 1.2fr) minmax(315px, 1fr);
  }

  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-list,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: 540px;
    grid-template-columns: minmax(250px, .88fr) minmax(360px, 1.1fr) minmax(270px, .96fr);
  }

  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-list,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-list{
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================
   EQUIPO TAB · PAGINACION DE SUPLENTES
   ========================================================= */

#datos-page .datos-team-overview-bench-pages{
  min-width: 0;
}

#datos-page .datos-team-overview-bench-pages-summary{
  height: 20px;
  margin: -2px 0 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(255,255,255,.45);
  font-size: 9px;
  font-weight: 850;
}

#datos-page .datos-team-overview-bench-tabs{
  min-width: 0;
}

#datos-page .datos-team-overview-bench-tabs > .nav,
#datos-page .datos-team-overview-bench-tabs.nav,
#datos-page .datos-team-overview-bench-tabs.nav-tabs{
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  float: right;
  margin: -27px 0 7px auto;
  padding: 3px;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

#datos-page .datos-team-overview-bench-tabs > .nav .nav-item,
#datos-page .datos-team-overview-bench-tabs.nav .nav-item,
#datos-page .datos-team-overview-bench-tabs.nav-tabs .nav-item{
  margin: 0;
}

#datos-page .datos-team-overview-bench-tabs > .nav .nav-link,
#datos-page .datos-team-overview-bench-tabs.nav .nav-link,
#datos-page .datos-team-overview-bench-tabs.nav-tabs .nav-link{
  min-width: 24px;
  min-height: 22px;
  padding: 4px 8px;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.62);
  background: transparent !important;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-bench-tabs > .nav .nav-link.active,
#datos-page .datos-team-overview-bench-tabs.nav .nav-link.active,
#datos-page .datos-team-overview-bench-tabs.nav-tabs .nav-link.active{
  color: white;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--datos-team-overview-accent) 52%, rgba(22,163,74,.52)), rgba(14,91,51,.72)) !important;
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 42%, rgba(134,239,172,.30)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 5px 12px rgba(0,0,0,.18);
}

#datos-page .datos-team-overview-bench-tabs > .tab-content,
#datos-page .datos-team-overview-bench-tabs > .tab-content > .tab-pane,
#datos-page .datos-team-overview-bench-tabs.nav + .tab-content,
#datos-page .datos-team-overview-bench-tabs.nav + .tab-content > .tab-pane,
#datos-page .datos-team-overview-bench-tabs.nav-tabs + .tab-content,
#datos-page .datos-team-overview-bench-tabs.nav-tabs + .tab-content > .tab-pane{
  clear: both;
  min-width: 0;
}

#datos-page .datos-team-overview-bench-page{
  min-width: 0;
}

#datos-page .datos-team-overview-bench-extra-pages{
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#datos-page .datos-team-overview-bench-details{
  min-width: 0;
}

#datos-page .datos-team-overview-bench-page-summary{
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-team-overview-bench-page-summary::-webkit-details-marker{
  display: none;
}

#datos-page .datos-team-overview-bench-page-summary::after{
  content: "+";
  color: #35e87c;
  font-size: 13px;
  font-weight: 950;
}

#datos-page .datos-team-overview-bench-details[open] > .datos-team-overview-bench-page-summary::after{
  content: "-";
}

#datos-page .datos-team-overview-bench-page-summary-range{
  color: rgba(255,255,255,.45);
  font-size: 9px;
}

#datos-page .datos-team-overview-bench-details .datos-team-overview-bench-page{
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.055);
}

#datos-page .datos-team-overview-bench-tabs-wrap{
  min-width: 0;
  position: relative;
}

#datos-page .datos-team-overview-bench-tabs{
  min-width: 0;
}

#datos-page .datos-team-overview-bench-tabs .tab-container,
#datos-page .datos-team-overview-bench-tabs .tab{
  border: 0 !important;
}

#datos-page .datos-team-overview-bench-tab{
  min-height: 26px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.035) !important;
  color: rgba(255,255,255,.62) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#datos-page .datos-team-overview-bench-tab.is-selected{
  color: white !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--datos-team-overview-accent) 55%, rgba(22,163,74,.54)), rgba(14,91,51,.76)) !important;
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 44%, rgba(134,239,172,.32)) !important;
}

#datos-page .datos-team-overview-bench-tabs > .tab-container{
  height: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  margin: -27px 0 8px !important;
}

#datos-page .datos-team-overview-bench-tabs .tab-content{
  clear: both;
  min-width: 0;
}

#datos-page .datos-team-overview-bench-pages-summary{
  padding-right: 104px;
}

/* =========================================================
   EQUIPO TAB · AJUSTE CAMPO, LEYENDA Y CABECERA SUPLENTES
   ========================================================= */

#datos-page .datos-team-overview-xi-layout{
  --datos-team-overview-xi-panel-h: clamp(620px, 68vh, 780px);
  grid-template-columns: minmax(330px, .98fr) minmax(500px, .88fr) minmax(370px, 1.04fr);
  align-items: stretch;
}

#datos-page .datos-team-overview-tactics-field{
  width: 100%;
  max-width: 640px;
  justify-self: center;
  min-height: var(--datos-team-overview-xi-panel-h);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
  width: 100%;
  height: calc(var(--datos-team-overview-xi-panel-h) - 42px);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}

#datos-page .datos-team-overview-field-source-wrap{
  height: calc(var(--datos-team-overview-xi-panel-h) - 42px);
  min-height: 0;
}

#datos-page .datos-team-overview-field-source-wrap .datos-team-overview-field{
  height: 100%;
}

#datos-page .datos-team-overview-xi-legend--below{
  flex: 0 0 auto;
  width: 100%;
  margin: 7px 0 0;
  padding: 0 4px;
  justify-content: center;
  grid-column: auto;
  align-self: center;
}

#datos-page .datos-team-overview-xi-layout > .datos-team-overview-xi-legend--below{
  grid-column: 2 / 3 !important;
  width: 100%;
  max-width: 680px;
  margin: -4px auto 0;
  padding: 0 4px;
  justify-self: center;
  align-self: start;
  justify-content: center;
}

#datos-page .datos-team-overview-tactics-field > .datos-team-overview-field-legend{
  width: 100%;
  max-width: none;
  margin: 7px 0 0;
  padding: 0 4px;
  align-self: stretch;
  justify-content: center;
}

#datos-page .datos-team-overview-field-player-face{
  gap: 3px;
}

#datos-page .datos-team-overview-field-player-name{
  max-width: 118px;
  padding: 4px 7px;
  font-size: 10px;
}

#datos-page .datos-team-overview-field-player-pos{
  margin-top: -1px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,.34);
  background: rgba(22,163,74,.28);
  color: #7ef0a7;
  font-size: 8.5px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,.24);
}

#datos-page .datos-team-overview-bench-head{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#datos-page .datos-team-overview-bench-title-block{
  min-width: 0;
}

#datos-page .datos-team-overview-bench-count{
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

#datos-page .datos-team-overview-bench-pages-summary{
  display: none;
}

#datos-page .datos-team-overview-bench-tabs > .tab-container{
  margin: 5px 0 8px !important;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: clamp(660px, 70vh, 820px);
    grid-template-columns: minmax(360px, .98fr) minmax(560px, .86fr) minmax(420px, 1.04fr);
  }

  #datos-page .datos-team-overview-tactics-field{
    max-width: 680px;
  }
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: clamp(560px, 66vh, 680px);
    grid-template-columns: minmax(280px, .92fr) minmax(430px, .94fr) minmax(315px, 1fr);
  }

  #datos-page .datos-team-overview-tactics-side,
  #datos-page .datos-team-overview-tactics-starters,
  #datos-page .datos-team-overview-tactics-bench{
    height: var(--datos-team-overview-xi-panel-h) !important;
    min-height: var(--datos-team-overview-xi-panel-h) !important;
    align-self: stretch !important;
  }

  #datos-page .datos-team-overview-tactics-bench > .datos-team-overview-bench-block,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-pages,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs > .tab-content{
    min-height: 0;
    flex: 1 1 auto;
  }

  #datos-page .datos-team-overview-tactics-field{
    max-width: 570px;
  }
}

@media (max-width: 980px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-tactics-field{
    max-width: none;
    min-height: 0;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field{
    height: auto;
    min-height: 520px;
    aspect-ratio: 7 / 10;
  }

  #datos-page .datos-team-overview-field-source-wrap{
    height: auto;
  }
}

/* 14" layout: the row height is dictated by the starters list. */
@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-xi-layout{
    --datos-team-overview-xi-panel-h: auto;
    align-items: stretch;
  }

  #datos-page .datos-team-overview-tactics-side,
  #datos-page .datos-team-overview-tactics-starters,
  #datos-page .datos-team-overview-tactics-bench,
  #datos-page .datos-team-overview-tactics-field{
    height: auto !important;
    min-height: 0 !important;
    align-self: stretch !important;
  }

  #datos-page .datos-team-overview-tactics-starters{
    min-height: max-content !important;
  }

  #datos-page .datos-team-overview-tactics-field{
    display: flex;
    flex-direction: column;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-field,
  #datos-page .datos-team-overview-field-source-wrap{
    height: auto !important;
    min-height: 420px;
    flex: 1 1 auto;
  }

  #datos-page .datos-team-overview-field-source-wrap .datos-team-overview-field{
    min-height: 100%;
  }

  #datos-page .datos-team-overview-tactics-bench > .datos-team-overview-bench-block{
    height: 100%;
    min-height: 0;
  }
}

/* 11 mas usado: tarjetas mas legibles y estado solo por borde. */
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  min-height: 54px;
  padding: 8px 12px 8px 9px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-fallback{
  width: 38px;
  height: 38px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
  width: 22px;
  height: 22px;
  font-size: 11px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-text{
  min-width: 0;
  padding-right: 0;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name-row{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 12.5px;
  line-height: 1.12;
  letter-spacing: 0;
  -webkit-line-clamp: 1;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  position: static !important;
  margin: 0 !important;
  justify-self: end;
  align-self: center;
  max-width: 74px;
  padding: 3px 7px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-alert{
  display: none !important;
}

#datos-page .datos-team-overview-xi-legend{
  display: none !important;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    min-height: 60px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 10px 14px 10px 10px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-fallback{
    width: 44px;
    height: 44px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
    font-size: 13.5px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    min-height: 50px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 7px 9px 7px 8px;
    gap: 9px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-fallback{
    width: 34px;
    height: 34px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
    font-size: 11.8px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
    max-width: 62px;
    padding: 3px 6px;
    font-size: 8.5px;
  }
}

/* 11 mas usado: compacto sin perder lectura. */
#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  min-height: 54px;
  padding-top: 9px;
  padding-bottom: 8px;
}

#datos-page .datos-team-overview-xi-layout{
  padding-top: 9px;
  padding-bottom: 10px;
  gap: 10px;
}

#datos-page .datos-team-overview-tactics-side{
  padding: 9px 10px;
}

#datos-page .datos-team-overview-bench-head{
  min-height: 26px;
  gap: 6px;
  padding-bottom: 5px;
}

#datos-page .datos-team-overview-bench-title{
  font-size: 12px;
}

#datos-page .datos-team-overview-bench-subtitle{
  font-size: 8.5px;
  line-height: 1.05;
}

#datos-page .datos-team-overview-xi-grouped-list{
  gap: 4px;
}

#datos-page .datos-team-overview-xi-line-section{
  margin: 0;
}

#datos-page .datos-team-overview-xi-line-title{
  min-height: 13px;
  margin: 0 0 2px;
  font-size: 9.5px;
  line-height: 1;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  gap: 4px;
}

#datos-page .datos-team-overview-bench-tabs > .tab-container{
  margin: 2px 0 5px !important;
}

#datos-page .datos-team-overview-bench-tab{
  min-height: 22px !important;
  padding: 4px 9px !important;
  font-size: 9.5px !important;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
  min-height: 44px;
  padding: 5px 9px 5px 7px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-fallback{
  width: 32px;
  height: 32px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
  width: 19px;
  height: 19px;
  font-size: 10px;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
  font-size: 13px;
  line-height: 1.05;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  padding: 2px 6px;
  font-size: 8.5px;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-tactics-side{
    padding: 10px 12px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    min-height: 48px;
    padding: 6px 10px 6px 8px;
    grid-template-columns: 37px minmax(0, 1fr);
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-fallback{
    width: 35px;
    height: 35px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
    font-size: 13.8px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 48px;
    padding-top: 7px;
    padding-bottom: 6px;
  }

  #datos-page .datos-team-overview-xi-layout{
    padding-top: 7px;
    padding-bottom: 8px;
    gap: 8px;
  }

  #datos-page .datos-team-overview-tactics-side{
    padding: 7px 8px;
  }

  #datos-page .datos-team-overview-bench-head{
    min-height: 22px;
    padding-bottom: 3px;
  }

  #datos-page .datos-team-overview-bench-subtitle{
    font-size: 8px;
  }

  #datos-page .datos-team-overview-xi-grouped-list{
    gap: 2px;
  }

  #datos-page .datos-team-overview-xi-line-title{
    min-height: 11px;
    margin-bottom: 1px;
    font-size: 9px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-line-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
    gap: 3px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-player-card{
    min-height: 38px;
    padding: 4px 7px 4px 6px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-wrap,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img,
  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-img-fallback{
    width: 29px;
    height: 29px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-rank{
    width: 17px;
    height: 17px;
    font-size: 9px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-name{
    font-size: 12.2px;
    line-height: 1.02;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
    max-width: 58px;
    padding: 2px 5px;
    font-size: 8px;
  }
}

/* Ajustes finales: titulo limpio, leyenda visible y paneles alineados. */
#datos-page .datos-team-overview-xi-card .datos-team-overview-section-badge{
  display: none !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  min-height: 50px;
  padding: 9px 240px 8px 18px;
  align-items: center;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
  min-width: 0;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
  font-size: 23px;
  line-height: 1.05;
  white-space: nowrap;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
  margin-top: 2px;
  line-height: 1.1;
}

#datos-page .datos-team-overview-xi-layout{
  align-items: stretch !important;
}

#datos-page .datos-team-overview-tactics-side,
#datos-page .datos-team-overview-tactics-starters,
#datos-page .datos-team-overview-tactics-bench{
  height: auto !important;
  align-self: stretch !important;
}

#datos-page .datos-team-overview-tactics-bench > .datos-team-overview-bench-block{
  height: 100%;
}

#datos-page .datos-team-overview-xi-legend{
  display: flex !important;
}

#datos-page .datos-team-overview-field-legend{
  min-height: 22px;
  margin-top: 6px !important;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
  min-width: 34px;
  max-width: 86px;
  padding: 4px 8px;
  font-size: 9.5px;
  line-height: 1;
}

#datos-page .datos-team-overview-field-player-pos{
  padding: 3px 8px;
  font-size: 9.5px;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 52px;
    padding: 9px 250px 8px 20px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
    font-size: 25px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
    min-width: 38px;
    padding: 4px 9px;
    font-size: 10px;
  }

  #datos-page .datos-team-overview-field-player-pos{
    font-size: 10px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 46px;
    padding: 7px 220px 6px 14px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
    font-size: 21px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
    font-size: 8.5px;
  }

  #datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-pos{
    min-width: 31px;
    max-width: 68px;
    padding: 3px 7px;
    font-size: 9px;
  }

  #datos-page .datos-team-overview-field-player-pos{
    padding: 2px 7px;
    font-size: 9px;
  }
}

/* Prueba visual: titulares y suplentes flotando, sin contenedor exterior. */
#datos-page .datos-team-overview-xi-card{
  overflow: visible;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  min-height: 58px;
  padding: 10px 300px 8px 20px;
  display: flex;
  align-items: center;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
  max-width: calc(100% - 300px);
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
  font-size: 24px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  top: 14px !important;
  right: 20px !important;
  max-width: 270px;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
  min-height: 28px;
  padding: 6px 14px;
  font-size: 11px;
  white-space: nowrap;
}

#datos-page .datos-team-overview-tactics-side,
#datos-page .datos-team-overview-tactics-starters,
#datos-page .datos-team-overview-tactics-bench{
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

#datos-page .datos-team-overview-tactics-side::before,
#datos-page .datos-team-overview-tactics-side::after,
#datos-page .datos-team-overview-tactics-starters::before,
#datos-page .datos-team-overview-tactics-starters::after,
#datos-page .datos-team-overview-tactics-bench::before,
#datos-page .datos-team-overview-tactics-bench::after{
  display: none !important;
}

#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-bench-list,
#datos-page .datos-team-overview-tactics-layout .datos-team-overview-xi-list{
  padding: 0 !important;
}

#datos-page .datos-team-overview-bench-block{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#datos-page .datos-team-overview-bench-head{
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-team-overview-xi-layout{
  padding-left: 22px;
  padding-right: 22px;
  gap: 18px;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 330px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
    max-width: calc(100% - 330px);
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    max-width: 300px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 52px;
    padding: 8px 250px 7px 16px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
    max-width: calc(100% - 250px);
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
    font-size: 22px;
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    top: 12px !important;
    right: 16px !important;
    max-width: 230px;
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
  #datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
    min-height: 26px;
    padding: 5px 11px;
    font-size: 10px;
  }

  #datos-page .datos-team-overview-xi-layout{
    padding-left: 14px;
    padding-right: 14px;
    gap: 12px;
  }
}

/* Header del bloque 11 mas usado: contenido dentro del contenedor. */
#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  position: relative;
  box-sizing: border-box;
  min-height: 64px;
  padding: 12px 320px 10px 22px;
  align-items: center;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
  width: 100%;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  font-size: 24px;
  line-height: 1.05;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title .datos-team-overview-section-icon{
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  object-fit: contain;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-subtitle{
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  top: 50% !important;
  right: 22px !important;
  transform: translateY(-50%);
  max-width: 280px;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
  min-height: 30px;
  padding: 7px 15px;
  font-size: 11px;
  line-height: 1;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 66px;
    padding: 13px 340px 11px 24px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
    font-size: 25px;
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    right: 24px !important;
    max-width: 300px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 58px;
    padding: 10px 255px 9px 18px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title{
    font-size: 22px;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-title .datos-team-overview-section-icon{
    width: 17px;
    height: 17px;
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    right: 16px !important;
    max-width: 225px;
  }

  #datos-page .datos-team-overview-xi-content-tabs > .nav .nav-link,
  #datos-page .datos-team-overview-xi-content-tabs.nav .nav-link,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs .nav-link{
    min-height: 27px;
    padding: 6px 11px;
    font-size: 10px;
  }
}

/* Header/tabs estructural: header fuera de dbc.Tabs. */
#datos-page .datos-team-overview-xi-card{
  position: relative;
}

#datos-page .datos-team-overview-xi-content-tabs{
  position: static !important;
  display: block;
}

#datos-page .datos-team-overview-xi-content-tabs > .nav,
#datos-page .datos-team-overview-xi-content-tabs.nav,
#datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  transform: none !important;
  z-index: 30;
}

#datos-page .datos-team-overview-xi-content-tabs > .tab-content,
#datos-page .datos-team-overview-xi-content-tabs > .tab-content > .tab-pane{
  min-width: 0;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
  margin: 0 !important;
  border-radius: 16px 16px 0 0;
  min-height: 60px;
  padding: 12px 310px 10px 20px;
  overflow: hidden;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-section-title-block{
  max-width: 100%;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    top: 16px !important;
    right: 22px !important;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    padding-right: 330px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-xi-content-tabs > .nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav,
  #datos-page .datos-team-overview-xi-content-tabs.nav-tabs{
    top: 12px !important;
    right: 14px !important;
  }

  #datos-page .datos-team-overview-xi-card .datos-team-overview-section-head{
    min-height: 54px;
    padding: 9px 245px 8px 16px;
  }
}

/* Lineas XI: iconos por posicion y cabeceras limpias. */
#datos-page .datos-team-overview-bench-head{
  min-height: 28px !important;
  height: 28px;
  padding: 0 2px 7px !important;
  display: flex;
  align-items: center !important;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-team-overview-bench-title-block{
  display: flex;
  align-items: center;
  min-height: 100%;
}

#datos-page .datos-team-overview-bench-title{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1;
}

#datos-page .datos-team-overview-bench-subtitle,
#datos-page .datos-team-overview-bench-count{
  display: none !important;
}

#datos-page .datos-team-overview-xi-line-head{
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  margin: 0 0 4px;
}

#datos-page .datos-team-overview-xi-line-icon{
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
  flex: 0 0 auto;
}

#datos-page .datos-team-overview-xi-line-title{
  min-height: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.88);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 950;
}

#datos-page .datos-team-overview-xi-line-count{
  margin-left: 1px;
  min-width: 17px;
  height: 16px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #3dff8e;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(74,222,128,.18);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-team-overview-xi-grouped-list{
  gap: 7px;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-grouped-list{
  gap: 10px;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-section + .datos-team-overview-xi-line-section{
  margin-top: 3px;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-head{
  margin-top: 2px;
  margin-bottom: 5px;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs > .tab-container{
  margin: 4px 0 9px !important;
}

/* Paginacion de suplentes alineada con el titulo, sin empujar la cabecera. */
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-block{
  position: relative;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs-wrap{
  position: static;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs > .tab-container{
  position: absolute !important;
  top: 0;
  right: 0;
  z-index: 8;
  width: auto !important;
  max-width: min(54%, 260px);
  height: 22px;
  margin: 0 !important;
  padding: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs .tab{
  min-width: 42px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs .tab-content{
  padding-top: 0;
}

@media (min-width: 1700px){
  #datos-page .datos-team-overview-bench-head{
    min-height: 30px !important;
    height: 30px;
  }

  #datos-page .datos-team-overview-bench-title{
    font-size: 14px;
  }

  #datos-page .datos-team-overview-xi-line-icon{
    width: 18px;
    height: 18px;
  }

  #datos-page .datos-team-overview-xi-line-title{
    font-size: 12.5px;
  }

  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-grouped-list{
    gap: 12px;
  }
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-bench-head{
    min-height: 26px !important;
    height: 26px;
    padding-bottom: 5px !important;
  }

  #datos-page .datos-team-overview-bench-title{
    font-size: 12.5px;
  }

  #datos-page .datos-team-overview-xi-line-icon{
    width: 15px;
    height: 15px;
  }

  #datos-page .datos-team-overview-xi-line-title{
    font-size: 10.8px;
  }

  #datos-page .datos-team-overview-xi-grouped-list{
    gap: 5px;
  }

  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-grouped-list{
    gap: 8px;
  }
}

/* Lideres inferiores: sin estados y capitanes en formato horizontal. */
#datos-page .datos-team-overview-key-player-discipline{
  display: none !important;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-head{
  min-height: 44px;
  padding: 10px 12px 8px;
  align-items: center;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-title{
  font-size: 13px;
  letter-spacing: 0;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-subtitle{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.52);
  font-size: 9px;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 14px 14px !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-btn{
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.085) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(22,25,25,.96), rgba(13,16,16,.93)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-btn:last-child{
  border-right: 1px solid rgba(255,255,255,.085) !important;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-avatar{
  position: relative;
  width: 42px;
  height: 42px;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-avatar::after{
  content: "C";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe66a;
  background: rgba(73,58,14,.96);
  border: 1px solid rgba(255,226,84,.56);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(0,0,0,.32);
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-dorsal{
  left: -5px;
  top: -5px;
  min-width: 20px;
  height: 20px;
  font-size: 9px;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-name{
  font-size: 11px;
  line-height: 1.05;
  -webkit-line-clamp: 2;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-pos{
  position: static;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  font-size: 8.5px;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-metric{
  min-width: 42px;
  padding: 4px 8px;
  color: #fff19a;
  background: rgba(113,86,16,.84);
  border-color: rgba(250,204,21,.45);
  font-size: 10px;
}

@media (max-width: 1500px){
  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-list{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-btn{
    min-height: 68px;
    padding: 8px 8px 8px 12px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-avatar{
    width: 36px;
    height: 36px;
  }

  #datos-page .datos-team-overview-captains-section .datos-team-overview-key-player-name{
    font-size: 10px;
  }
}

/* Ajuste fino de separacion en cabeceras y primer grupo de suplentes. */
#datos-page .datos-team-overview-tactics-starters .datos-team-overview-bench-head,
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-head{
  margin: 0 0 8px !important;
  padding: 0 2px 7px !important;
}

#datos-page .datos-team-overview-tactics-starters .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-pages,
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-grouped-list{
  margin-top: 0;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs > .tab-container{
  margin: 0 0 10px !important;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-page > .datos-team-overview-xi-grouped-list,
#datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs .tab-content .datos-team-overview-xi-grouped-list{
  padding-top: 4px !important;
}

#datos-page .datos-team-overview-tactics-bench .datos-team-overview-xi-line-section:first-child .datos-team-overview-xi-line-head{
  margin-top: 2px;
}

@media (max-width: 1500px) and (min-width: 981px){
  #datos-page .datos-team-overview-tactics-starters .datos-team-overview-bench-head,
  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-head{
    margin-bottom: 7px !important;
    padding-bottom: 6px !important;
  }

  #datos-page .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs > .tab-container{
    margin-bottom: 8px !important;
  }
}

/* =========================================================
   Prueba visual: tarjetas superiores mas oscuras y con icono
   ========================================================= */

#datos-page .datos-team-overview-stats-card{
  padding: 12px;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#datos-page .datos-team-overview-stats-grid{
  gap: 12px;
  margin-bottom: 12px;
}

#datos-page .datos-team-overview-stat-card{
  min-height: 128px;
  padding: 13px 13px 11px;
  border-radius: 12px;
  text-align: left;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.065), transparent 34%),
    linear-gradient(180deg, rgba(37,43,43,.94), rgba(16,20,20,.96)) !important;
  border: 1px solid rgba(255,255,255,.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 12px 26px rgba(0,0,0,.24);
}

#datos-page .datos-team-overview-stat-card::before{
  left: 10px;
  right: 10px;
  top: auto;
  bottom: 9px;
  width: auto;
  height: 3px;
  border-radius: 999px;
  opacity: .42;
  background:
    linear-gradient(90deg, transparent, currentColor 16%, currentColor 72%, transparent);
}

#datos-page .datos-team-overview-stat-card::after{
  inset: -26px auto auto -24px;
  width: 82px;
  height: 82px;
  opacity: .28;
  filter: blur(0);
  background:
    radial-gradient(circle, currentColor 0 28%, transparent 58%);
}

#datos-page .datos-team-overview-stat-head{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

#datos-page .datos-team-overview-stat-icon{
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 999px;
  object-fit: contain;
  background:
    radial-gradient(circle at 35% 22%, rgba(255,255,255,.24), rgba(255,255,255,.06) 54%, rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 8px 18px rgba(0,0,0,.22);
}

#datos-page .datos-team-overview-stat-label{
  min-height: 0;
  justify-content: flex-start;
  text-align: left;
  font-size: 11px;
  line-height: 1.08;
  letter-spacing: .34px;
  color: rgba(255,255,255,.76);
}

#datos-page .datos-team-overview-stat-main{
  align-self: center;
  min-width: 0;
  padding-left: 54px;
}

#datos-page .datos-team-overview-stat-value{
  margin-top: 2px;
  font-size: 34px;
  line-height: .96;
  text-align: left;
  text-shadow: 0 7px 18px rgba(0,0,0,.28);
}

#datos-page .datos-team-overview-stat-sub{
  margin-top: 8px;
  min-height: 12px;
  font-size: 12px;
  font-weight: 850;
  color: rgba(255,255,255,.66);
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-meta{
  position: static;
  margin-top: 0;
  padding-top: 0;
  min-height: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 5px;
  grid-template-areas:
    "rank norm"
    "bar bar";
  align-items: end;
  column-gap: 8px;
  row-gap: 7px;
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-rank-row{
  grid-area: rank;
  justify-content: flex-start;
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-norm-row{
  grid-area: norm;
  justify-content: flex-end;
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-rank-label,
#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-norm-label{
  color: rgba(255,255,255,.46);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .28px;
  text-transform: uppercase;
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-rank,
#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-norm{
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,.86);
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-bar{
  grid-area: bar;
  height: 5px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 2px, transparent 2px 10px);
}

#datos-page .datos-team-overview-stat-card .datos-team-overview-metric-bar-fill{
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, currentColor, color-mix(in srgb, currentColor 62%, transparent));
  box-shadow:
    0 0 12px color-mix(in srgb, currentColor 42%, transparent),
    inset 0 1px 0 rgba(255,255,255,.22);
}

#datos-page .datos-team-overview-stat-card.is-good,
#datos-page .datos-team-overview-stat-card.is-elite{
  color: #28e47a;
}

#datos-page .datos-team-overview-stat-card.is-mid{
  color: #f0b91d;
}

#datos-page .datos-team-overview-stat-card.is-bad,
#datos-page .datos-team-overview-stat-card.is-risk{
  color: #ff454f;
}

#datos-page .datos-team-overview-stat-card.is-neutral{
  color: #aeb6bd;
}

#datos-page .datos-team-overview-stat-card--accent{
  color: #e5b82d;
}

#datos-page .datos-team-overview-stat-card.is-good,
#datos-page .datos-team-overview-stat-card.is-elite{
  background:
    radial-gradient(circle at 15% 18%, rgba(40,228,122,.18), transparent 34%),
    linear-gradient(180deg, rgba(34,43,39,.95), rgba(12,20,17,.98)) !important;
  border-color: rgba(40,228,122,.22);
}

#datos-page .datos-team-overview-stat-card.is-mid,
#datos-page .datos-team-overview-stat-card--accent{
  background:
    radial-gradient(circle at 15% 18%, rgba(240,185,29,.20), transparent 34%),
    linear-gradient(180deg, rgba(43,39,27,.95), rgba(19,17,12,.98)) !important;
  border-color: rgba(240,185,29,.24);
}

#datos-page .datos-team-overview-stat-card.is-bad,
#datos-page .datos-team-overview-stat-card.is-risk{
  background:
    radial-gradient(circle at 15% 18%, rgba(255,69,79,.19), transparent 34%),
    linear-gradient(180deg, rgba(45,32,32,.95), rgba(20,13,13,.98)) !important;
  border-color: rgba(255,69,79,.22);
}

@media (max-width: 1450px){
  #datos-page .datos-team-overview-stat-card{
    min-height: 118px;
    padding: 11px 11px 10px;
  }

  #datos-page .datos-team-overview-stat-head{
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  #datos-page .datos-team-overview-stat-icon{
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  #datos-page .datos-team-overview-stat-main{
    padding-left: 45px;
  }

  #datos-page .datos-team-overview-stat-value{
    font-size: 29px;
  }
}

/* Ajuste final: lideres inferiores alineados a la reticula superior. */
#datos-page .datos-team-overview-leadership-strip{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

#datos-page .datos-team-overview-captains-section{
  grid-column: span 2;
}

#datos-page .datos-team-overview-leadership-coach-section{
  grid-column: span 1;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-head{
  min-height: 56px !important;
  margin: 0 !important;
  padding: 14px 16px 10px !important;
  align-items: flex-end !important;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-title{
  font-size: 14px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-key-subtitle{
  align-self: center !important;
  flex: 0 1 auto !important;
  max-width: 46% !important;
  margin-top: 0 !important;
  text-align: right !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  color: rgba(255,255,255,.50) !important;
}

#datos-page .datos-team-overview-captains-section .datos-team-overview-section-icon,
#datos-page .datos-team-overview-leadership-coach-section .datos-team-overview-section-icon{
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

@media (max-width: 980px){
  #datos-page .datos-team-overview-leadership-strip{
    grid-template-columns: minmax(0, 1fr) !important;
  }

#datos-page .datos-team-overview-captains-section,
  #datos-page .datos-team-overview-leadership-coach-section{
    grid-column: auto;
  }
}

/* Override final: paginacion de suplentes en cabecera, sin ocupar fila propia. */
#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-block{
  position: relative !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-head{
  padding-right: 150px !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-pages{
  margin-top: 0 !important;
  position: static !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs{
  display: block !important;
  min-width: 0 !important;
  position: static !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs > .tab-container,
#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs .tab-container{
  position: absolute !important;
  top: 0 !important;
  right: 4px !important;
  left: auto !important;
  width: auto !important;
  max-width: 144px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  z-index: 20 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs .tab{
  flex: 0 0 auto !important;
  min-width: 40px !important;
  width: 40px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 7.5px !important;
  line-height: 1 !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-tabs .tab-content{
  padding-top: 0 !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-page-radio{
  position: absolute !important;
  top: 1px !important;
  right: 4px !important;
  z-index: 24 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  width: auto !important;
  max-width: 150px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-page-radio-input{
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-page-radio-label{
  min-width: 40px !important;
  height: 18px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.58) !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.055) !important;
  font-size: 7.5px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#datos-page .datos-team-overview-xi-card .datos-team-overview-tactics-bench .datos-team-overview-bench-page-radio-label:has(.datos-team-overview-bench-page-radio-input:checked){
  color: white !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--datos-team-overview-accent) 58%, rgba(22,163,74,.58)), rgba(14,91,51,.78)) !important;
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 44%, rgba(134,239,172,.32)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 5px 12px rgba(0,0,0,.18) !important;
}
