/* =========================================================
   DATOS · Insights · Rendimiento equipos
   HTML/SVG maps + Casa/Fuera cards
   ========================================================= */

#datos-page .datos-teams-goals-section{
  width: 100%;
  min-width: 0;
  margin-top: 0;
  color: white;
  box-sizing: border-box;
}

#datos-page .datos-insights-hidden-head{
  display: none !important;
}

#datos-page .datos-league-insights-suite{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#datos-page .datos-league-insights-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-bottom: 12px;
}

#datos-page .datos-league-insights-heading-copy{
  min-width: 0;
}

#datos-page .datos-league-insights-title{
  font-size: 17px;
  line-height: 1.08;
  font-weight: 950;
  color: white;
}

#datos-page .datos-league-insights-subtitle{
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 720;
  color: rgba(255,255,255,.58);
}

#datos-page .datos-rankings-heading{
  align-items: center;
  margin-bottom: 10px;
}

#datos-page .datos-rankings-section{
  width: 100%;
  min-width: 0;
  color: white;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  --datos-goals-accent: var(--datos-league-accent, rgba(255,255,255,.35));
}

#datos-page .datos-league-rankings-section:not(:empty){
  background: transparent !important;
  background-image: none !important;
}

#datos-page .datos-rankings-section .datos-comparison-player-blocks{
  margin-top: 0;
}

#datos-page .datos-rankings-heading-spacer{
  flex: 1 1 auto;
}

#datos-page .datos-rankings-panel-heading{
  display: none !important;
}

#datos-page .datos-rankings-section .datos-rankings-tab-panel{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#datos-page .datos-rankings-inner-nav{
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  overflow-x: visible !important;
  overflow-y: visible !important;
  justify-content: center;
  --datos-league-accent: inherit;
}

#datos-page .datos-rankings-inner-nav-btn{
  font-size: 11px;
  padding: 8px 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

#datos-page .datos-rankings-tab-panels,
#datos-page .datos-rankings-tab-panel{
  width: 100%;
  min-width: 0;
}

#datos-page .datos-rankings-tab-panel.is-hidden{
  display: none;
}

#datos-page .datos-rankings-tab-panel.is-active{
  display: block;
}

#datos-page .datos-league-insights-panels,
#datos-page .datos-league-insights-tab-panel{
  width: 100%;
  min-width: 0;
}

#datos-page .datos-league-insights-tab-panel.is-hidden{
  display: none;
}

#datos-page .datos-league-insights-tab-panel.is-active{
  display: block;
}

#datos-page .datos-league-profiles-section{
  width: 100%;
  min-width: 0;
  color: white;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-comparison-section{
  width: 100%;
  min-width: 0;
  color: white;
}

#datos-page .datos-comparison-hero{
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .95fr);
  gap: 12px;
  align-items: stretch;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--datos-league-accent, rgba(216,182,61,.38)) 8%, transparent), transparent 36%),
    rgba(0,0,0,.14);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 30px rgba(0,0,0,.18);
}

#datos-page .datos-comparison-hero-copy{
  min-width: 0;
}

#datos-page .datos-comparison-kicker,
#datos-page .datos-comparison-card-label{
  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

#datos-page .datos-comparison-title{
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 950;
  color: rgba(255,255,255,.94);
}

#datos-page .datos-comparison-copy{
  max-width: 920px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.38;
  font-weight: 720;
  color: rgba(255,255,255,.62);
}

#datos-page .datos-comparison-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

#datos-page .datos-comparison-chip{
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(66,216,135,.24);
  background: rgba(66,216,135,.12);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  color: rgba(220,255,235,.9);
}

#datos-page .datos-comparison-chip.is-muted{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.68);
}

#datos-page .datos-comparison-card-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

#datos-page .datos-comparison-card{
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.16);
}

#datos-page .datos-comparison-card.is-good{
  border-color: rgba(66,216,135,.28);
  background: linear-gradient(145deg, rgba(66,216,135,.12), rgba(0,0,0,.14));
}

#datos-page .datos-comparison-card.is-warn{
  border-color: rgba(216,182,61,.32);
  background: linear-gradient(145deg, rgba(216,182,61,.13), rgba(0,0,0,.14));
}

#datos-page .datos-comparison-card.is-bad{
  border-color: rgba(255,91,117,.25);
  background: linear-gradient(145deg, rgba(255,91,117,.10), rgba(0,0,0,.14));
}

#datos-page .datos-comparison-card-value{
  margin-top: 7px;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  color: rgba(255,255,255,.94);
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-comparison-card-sub,
#datos-page .datos-comparison-section-sub,
#datos-page .datos-comparison-source{
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 760;
  color: rgba(255,255,255,.45);
}

#datos-page .datos-comparison-source{
  grid-column: 1 / -1;
  margin-top: 0;
}

#datos-page .datos-comparison-stack{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

#datos-page .datos-comparison-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-top: 12px;
}

#datos-page .datos-comparison-inner-nav{
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  --datos-league-accent: var(--datos-goals-accent, var(--datos-team-overview-accent, rgba(255,255,255,.35)));
}

#datos-page .datos-comparison-inner-nav-btn{
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 11px;
}

#datos-page .datos-comparison-inner-panel{
  display: grid;
  gap: 12px;
  min-width: 0;
}

#datos-page .datos-comparison-inner-panel.is-hidden{
  display: none;
}

#datos-page .datos-comparison-report-head{
  min-width: 0;
}

#datos-page .datos-comparison-report-title{
  font-size: 14px;
  line-height: 1.08;
  font-weight: 950;
  color: rgba(255,255,255,.92);
}

#datos-page .datos-comparison-card-grid-wide{
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#datos-page .datos-comparison-panel{
  display: grid;
  gap: 8px;
}

#datos-page .datos-comparison-empty{
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(0,0,0,.12);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.56);
}

#datos-page .datos-comparison-ag-grid{
  margin-top: 2px;
}

#datos-page .datos-league-profiles-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
}

#datos-page .datos-league-profiles-heading-copy{
  min-width: 0;
}

#datos-page .datos-league-profiles-title{
  font-size: 17px;
  line-height: 1.08;
  font-weight: 950;
  color: white;
}

#datos-page .datos-league-profiles-subtitle{
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 720;
  color: rgba(255,255,255,.58);
}

#datos-page .datos-league-profiles-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#datos-page .datos-league-profiles-kpi{
  min-width: 0;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}

#datos-page .datos-league-profiles-kpi.is-good{
  border-color: rgba(66,216,135,.28);
  background: linear-gradient(145deg, rgba(66,216,135,.12), rgba(0,0,0,.12));
}

#datos-page .datos-league-profiles-kpi.is-bad{
  border-color: rgba(255,91,117,.25);
  background: linear-gradient(145deg, rgba(255,91,117,.10), rgba(0,0,0,.12));
}

#datos-page .datos-league-profiles-kpi-label,
#datos-page .datos-league-profiles-score-label{
  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

#datos-page .datos-league-profiles-kpi-main{
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
  color: rgba(255,255,255,.92);
}

#datos-page .datos-league-profiles-kpi-team{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
}

#datos-page .datos-league-profiles-kpi-team-copy{
  min-width: 0;
}

#datos-page .datos-league-profiles-kpi-team .datos-league-profiles-kpi-main{
  margin-top: 0;
}

#datos-page .datos-league-profiles-kpi-shield,
#datos-page .datos-league-profiles-kpi-shield-fallback{
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

#datos-page .datos-league-profiles-kpi-shield-fallback{
  font-size: 9px;
  font-weight: 950;
  color: rgba(255,255,255,.78);
}

#datos-page .datos-league-profiles-kpi-sub{
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 760;
  color: rgba(255,255,255,.48);
}

#datos-page .datos-league-profiles-main-grid{
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

#datos-page .datos-league-profiles-analysis-grid{
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.05fr) minmax(260px, .72fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

#datos-page .datos-league-profile-map-card{
  min-height: 428px;
}

#datos-page .datos-league-profile-map-chart .datos-goals-html-chart-inner{
  height: 350px;
  min-height: 350px;
}

#datos-page .datos-league-profiles-panel{
  min-width: 0;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.12));
}

#datos-page .datos-league-profiles-legend-grid{
  display: grid;
  gap: 7px;
}

#datos-page .datos-league-profiles-legend-row{
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
}

#datos-page .datos-league-profiles-legend-row.is-good{
  border-color: rgba(66,216,135,.22);
}

#datos-page .datos-league-profiles-legend-row.is-warn{
  border-color: rgba(216,182,61,.24);
}

#datos-page .datos-league-profiles-legend-row.is-bad{
  border-color: rgba(255,91,117,.24);
}

#datos-page .datos-league-profiles-legend-name{
  font-size: 10px;
  line-height: 1.1;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

#datos-page .datos-league-profiles-legend-name.is-good{
  color: #42d887;
}

#datos-page .datos-league-profiles-legend-name.is-warn{
  color: #d8b63d;
}

#datos-page .datos-league-profiles-legend-name.is-bad{
  color: #ff6b7d;
}

#datos-page .datos-league-profiles-legend-text,
#datos-page .datos-league-profiles-summary-text{
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 720;
  color: rgba(255,255,255,.54);
}

#datos-page .datos-league-profiles-summary-label{
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

#datos-page .datos-league-profiles-summary-label.is-good{
  color: #42d887;
}

#datos-page .datos-league-profiles-summary-label.is-warn{
  color: #d8b63d;
}

#datos-page .datos-league-profiles-section-title{
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  color: rgba(255,255,255,.86);
}

#datos-page .datos-league-profiles-card-grid{
  display: grid;
  gap: 7px;
}

#datos-page .datos-league-profiles-card{
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 7px 8px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(255,255,255,.050), rgba(255,255,255,.018));
}

#datos-page .datos-league-profiles-card.is-good{
  border-color: rgba(66,216,135,.25);
}

#datos-page .datos-league-profiles-card.is-warn{
  border-color: rgba(216,182,61,.25);
}

#datos-page .datos-league-profiles-card.is-bad{
  border-color: rgba(255,91,117,.25);
}

#datos-page .datos-league-profiles-rank{
  font-size: 11px;
  font-weight: 950;
  color: rgba(255,255,255,.46);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-league-profiles-shield{
  width: 34px;
  height: 34px;
}

#datos-page .datos-league-profiles-main{
  min-width: 0;
}

#datos-page .datos-league-profiles-team{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 950;
  color: rgba(255,255,255,.88);
}

#datos-page .datos-league-profiles-label{
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
}

#datos-page .datos-league-profiles-label.is-good,
#datos-page .datos-league-profiles-cell.is-good{
  color: #42d887;
}

#datos-page .datos-league-profiles-label.is-warn,
#datos-page .datos-league-profiles-cell.is-warn{
  color: #d8b63d;
}

#datos-page .datos-league-profiles-label.is-bad,
#datos-page .datos-league-profiles-cell.is-bad{
  color: #ff6b7d;
}

#datos-page .datos-league-profiles-sub{
  margin-top: 2px;
  font-size: 9px;
  font-weight: 720;
  color: rgba(255,255,255,.40);
}

#datos-page .datos-league-profiles-scorebox{
  min-width: 0;
  padding: 5px 6px;
  border-radius: 9px;
  text-align: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-league-profiles-score{
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  color: white;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-league-profiles-table{
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-insights-data-grid{
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(90deg, rgba(255,255,255,.020) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.020) 1px, transparent 1px),
    rgba(0,0,0,.16);
  background-size: 32px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 26px rgba(0,0,0,.16);
}

#datos-page .datos-insights-ag-grid{
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(216,182,61,.20);
  background: rgba(6,8,8,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.16);
  --ag-background-color: transparent;
  --ag-foreground-color: rgba(255,255,255,.82);
  --ag-header-background-color: rgba(38,42,36,.96);
  --ag-header-foreground-color: rgba(255,255,255,.62);
  --ag-odd-row-background-color: rgba(255,255,255,.035);
  --ag-row-hover-color: rgba(216,182,61,.08);
  --ag-selected-row-background-color: rgba(216,182,61,.12);
  --ag-border-color: rgba(255,255,255,.075);
  --ag-secondary-border-color: rgba(255,255,255,.055);
  --ag-row-border-color: rgba(255,255,255,.06);
  --ag-font-family: inherit;
}

#datos-page .datos-insights-ag-grid .ag-root-wrapper{
  border: 0;
  background: transparent;
}

#datos-page .datos-insights-ag-grid .ag-root,
#datos-page .datos-insights-ag-grid .ag-body-viewport,
#datos-page .datos-insights-ag-grid .ag-body,
#datos-page .datos-insights-ag-grid .ag-center-cols-viewport,
#datos-page .datos-insights-ag-grid .ag-center-cols-container,
#datos-page .datos-insights-ag-grid .ag-pinned-left-cols-container,
#datos-page .datos-insights-ag-grid .ag-pinned-left-header,
#datos-page .datos-insights-ag-grid .ag-header,
#datos-page .datos-insights-ag-grid .ag-header-viewport,
#datos-page .datos-insights-ag-grid .ag-header-container{
  background: transparent !important;
}

#datos-page .datos-insights-ag-grid .ag-header{
  border-bottom: 1px solid rgba(216,182,61,.20) !important;
  background: linear-gradient(180deg, rgba(82,80,63,.86), rgba(44,46,39,.96)) !important;
}

#datos-page .datos-insights-ag-grid .ag-header-cell,
#datos-page .datos-insights-ag-grid .ag-header-group-cell{
  background: transparent !important;
  color: rgba(255,255,255,.76) !important;
  border-right: 1px solid rgba(255,255,255,.07) !important;
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-insights-ag-grid .ag-header-cell-text{
  color: rgba(255,255,255,.62) !important;
}

#datos-page .datos-insights-ag-grid .ag-row{
  color: rgba(255,255,255,.78) !important;
  background: rgba(8,12,11,.97) !important;
  border-bottom: 1px solid rgba(255,255,255,.065) !important;
}

#datos-page .datos-insights-ag-grid .ag-row-odd{
  background: rgba(32,38,32,.78) !important;
}

#datos-page .datos-insights-ag-grid .ag-row-hover,
#datos-page .datos-insights-ag-grid .ag-row:hover{
  background: rgba(216,182,61,.08) !important;
}

#datos-page .datos-insights-ag-grid .ag-cell{
  color: rgba(255,255,255,.78) !important;
  border-right: 1px solid rgba(255,255,255,.045) !important;
  display: flex;
  align-items: center;
}

#datos-page .datos-insights-ag-grid .ag-pinned-left-cols-container .ag-cell,
#datos-page .datos-insights-ag-grid .ag-pinned-left-header .ag-header-cell{
  background: rgba(6,8,8,.98) !important;
}

#datos-page .datos-insights-ag-grid .ag-pinned-left-header,
#datos-page .datos-insights-ag-grid .ag-pinned-left-cols-container{
  border-right: 1px solid rgba(216,182,61,.24) !important;
}

#datos-page .datos-insights-ag-grid .ag-header-cell-label,
#datos-page .datos-insights-ag-grid .ag-header-group-cell-label{
  justify-content: center;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-header{
  color: rgba(255,255,255,.92) !important;
  border-left: 1px solid rgba(255,255,255,.08) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-identity{
  background: linear-gradient(180deg, rgba(5,7,7,.98), rgba(5,7,7,.92)) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-score{
  background: linear-gradient(180deg, rgba(216,182,61,.18), rgba(216,182,61,.055)) !important;
  border-left-color: rgba(216,182,61,.28) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-context{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-production{
  background: linear-gradient(180deg, rgba(34,197,94,.16), rgba(34,197,94,.045)) !important;
  border-left-color: rgba(34,197,94,.22) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-league{
  background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(59,130,246,.045)) !important;
  border-left-color: rgba(59,130,246,.22) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-group-age{
  background: linear-gradient(180deg, rgba(249,115,22,.15), rgba(249,115,22,.045)) !important;
  border-left-color: rgba(249,115,22,.20) !important;
}

#datos-page .datos-rankings-super-grid .datos-insights-group-superlative{
  background: linear-gradient(180deg, rgba(168,85,247,.16), rgba(168,85,247,.045)) !important;
  border-left-color: rgba(168,85,247,.22) !important;
}

#datos-page .datos-rankings-super-grid .datos-insights-group-usage{
  background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(59,130,246,.045)) !important;
  border-left-color: rgba(59,130,246,.22) !important;
}

#datos-page .datos-rankings-super-grid .datos-insights-group-discipline{
  background: linear-gradient(180deg, rgba(239,68,68,.145), rgba(239,68,68,.045)) !important;
  border-left-color: rgba(239,68,68,.20) !important;
}

#datos-page .datos-rankings-super-grid .datos-insights-group-keeper{
  background: linear-gradient(180deg, rgba(14,165,233,.16), rgba(14,165,233,.05)) !important;
  border-left-color: rgba(14,165,233,.24) !important;
}

#datos-page .datos-insights-ag-grid .ag-icon,
#datos-page .datos-insights-ag-grid .ag-sort-indicator-icon,
#datos-page .datos-insights-ag-grid .ag-header-icon{
  color: rgba(255,255,255,.58) !important;
}

#datos-page .datos-insights-ag-grid .ag-popup,
#datos-page .datos-insights-ag-grid .ag-menu,
#datos-page .datos-insights-ag-grid .ag-filter{
  background: #202327 !important;
  color: rgba(255,255,255,.82) !important;
  border-color: rgba(255,255,255,.12) !important;
}

#datos-page .datos-insights-grid-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

#datos-page .datos-insights-grid-info-wrap{
  flex: 0 0 auto;
}

#datos-page .datos-insights-grid-info-btn{
  width: 23px;
  height: 23px;
  border-radius: 999px;
  border: 1px solid rgba(216,182,61,.42);
  background: rgba(216,182,61,.12);
  color: rgba(255,236,174,.95);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
}

#datos-page .datos-insights-grid-info-btn:hover{
  border-color: rgba(216,182,61,.75);
  background: rgba(216,182,61,.20);
}

.datos-insights-grid-info-modal .modal-content{
  border: 1px solid rgba(216,182,61,.25);
  background: #24272a;
  color: rgba(255,255,255,.86);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.datos-insights-grid-info-modal .modal-header,
.datos-insights-grid-info-modal .modal-footer{
  border-color: rgba(255,255,255,.08);
}

.datos-insights-grid-info-list{
  display: grid;
  gap: 8px;
}

.datos-insights-grid-info-row{
  display: grid;
  grid-template-columns: minmax(120px, .32fr) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}

.datos-insights-grid-info-term{
  font-size: 10px;
  line-height: 1.2;
  font-weight: 950;
  color: rgba(255,236,174,.95);
}

.datos-insights-grid-info-desc{
  font-size: 11px;
  line-height: 1.35;
  font-weight: 720;
  color: rgba(255,255,255,.70);
}

.datos-insights-grid-info-close{
  min-height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(216,182,61,.35);
  background: rgba(216,182,61,.12);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 900;
}

#datos-page .datos-insights-grid-num-cell,
#datos-page .datos-insights-grid-score-cell{
  justify-content: center !important;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-insights-grid-score-cell{
  color: rgba(250,204,21,.98) !important;
}

#datos-page .datos-insights-grid-points-cell{
  justify-content: center !important;
  color: rgba(250,204,21,.98) !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-insights-grid-gf-cell{
  justify-content: center !important;
  color: rgba(74,222,128,.98) !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-insights-grid-gc-cell{
  justify-content: center !important;
  color: rgba(248,113,113,.98) !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-rankings-super-grid .datos-rankings-key-cell{
  font-weight: 1000 !important;
  background: var(--datos-rankings-row-bg, rgba(8,12,11,.98)) !important;
  box-shadow: inset 2px 0 0 rgba(var(--datos-rankings-key-rgb, 250,204,21), .82);
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#datos-page .datos-rankings-super-grid .datos-rankings-key-cell .ag-cell-value{
  color: white !important;
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(var(--datos-rankings-key-rgb, 250,204,21), .46);
}

#datos-page .datos-rankings-super-grid .datos-rankings-key-header{
  background: rgba(var(--datos-rankings-key-rgb, 250,204,21), .10) !important;
  border-bottom-color: rgba(var(--datos-rankings-key-rgb, 250,204,21), .42) !important;
}

#datos-page .datos-rankings-super-grid.is-key-goles,
#datos-page .datos-rankings-super-grid.is-key-goles90{
  --datos-rankings-key-rgb: 34,197,94;
}

#datos-page .datos-rankings-super-grid.is-key-titular{
  --datos-rankings-key-rgb: 59,130,246;
}

#datos-page .datos-rankings-super-grid.is-key-disciplina{
  --datos-rankings-key-rgb: 248,113,113;
}

#datos-page .datos-rankings-super-grid.is-key-porteria{
  --datos-rankings-key-rgb: 96,165,250;
}

#datos-page .datos-rankings-super-grid .ag-row .ag-cell:not(.datos-rankings-key-cell){
  opacity: 1 !important;
}

#datos-page .datos-insights-grid-dg-cell,
#datos-page .datos-insights-grid-gap-cell{
  justify-content: center !important;
  color: rgba(74,222,128,.96) !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-insights-ag-grid .datos-insights-grid-pos-cell{
  color: rgba(74,222,128,.98) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-grid-neg-cell{
  color: rgba(248,113,113,.98) !important;
}

#datos-page .datos-insights-grid-change-cell{
  justify-content: center !important;
  color: rgba(96,165,250,.96) !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-insights-grid-label-cell{
  color: rgba(255,255,255,.82) !important;
  font-weight: 780;
}

#datos-page .datos-insights-grid-metric-cell{
  font-weight: 950;
  color: rgba(255,255,255,.88);
}

#datos-page .datos-insights-ag-grid .datos-clasif-logo-cell{
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#datos-page .datos-insights-ag-grid .datos-clasif-logo-cell .ag-cell-value{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
}

#datos-page .datos-insights-ag-grid .datos-img-circle-renderer{
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  border-radius: 999px !important;
  padding: 3px !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 5px 12px rgba(0,0,0,.18);
}

#datos-page .datos-insights-ag-grid .datos-img-circle-fallback{
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 900;
}

#datos-page .datos-insights-ag-grid .datos-clasif-team-cell{
  justify-content: flex-start !important;
  font-size: 12px;
  font-weight: 850;
  color: rgba(255,255,255,.94) !important;
}

#datos-page .datos-insights-ag-grid .datos-clasif-team-cell .ag-cell-value{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-insights-ag-grid .datos-insights-player-avatar-cell{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-player-avatar-cell .ag-cell-wrapper,
#datos-page .datos-insights-ag-grid .datos-insights-player-avatar-cell .ag-cell-value{
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#datos-page .datos-insights-ag-grid .datos-player-img-renderer{
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 18%, rgba(255,255,255,.20), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 6px 14px rgba(0,0,0,.20);
  margin: auto;
}

#datos-page .datos-insights-ag-grid .datos-player-img-renderer__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

#datos-page .datos-insights-ag-grid .datos-player-img-renderer__fallback{
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  color: rgba(255,255,255,.96);
  font-size: 11px;
  font-weight: 950;
  background:
    linear-gradient(135deg, rgba(216,182,61,.24), rgba(255,255,255,.08)),
    rgba(255,255,255,.07);
}

#datos-page .datos-insights-player-grid .ag-row{
  min-height: 60px !important;
}

#datos-page .datos-insights-player-grid .ag-cell{
  min-height: 60px !important;
  font-size: 12.5px;
  line-height: 1.18;
  font-weight: 850;
}

#datos-page .datos-insights-player-grid .ag-header-cell,
#datos-page .datos-insights-player-grid .ag-header-group-cell{
  font-size: 11px;
}

#datos-page .datos-insights-player-grid .datos-insights-player-avatar-cell{
  width: 66px !important;
}

#datos-page .datos-insights-player-grid .datos-player-img-renderer{
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

#datos-page .datos-insights-player-grid .datos-player-img-renderer__fallback{
  font-size: 12.5px;
}

#datos-page .datos-insights-player-grid .datos-clasif-team-cell{
  font-size: 12.5px;
  font-weight: 950;
  color: rgba(255,255,255,.96) !important;
}

#datos-page .datos-insights-player-grid .datos-insights-grid-num-cell,
#datos-page .datos-insights-player-grid .datos-insights-grid-score-cell,
#datos-page .datos-insights-player-grid .datos-insights-grid-points-cell,
#datos-page .datos-insights-player-grid .datos-insights-grid-gf-cell,
#datos-page .datos-insights-player-grid .datos-insights-grid-gc-cell{
  font-size: 12.5px;
  font-weight: 950 !important;
}

#datos-page .datos-insights-player-grid .datos-insights-team-media-cell{
  font-size: 12.5px;
  font-weight: 900;
}

#datos-page .datos-insights-player-grid .ag-cell,
#datos-page .datos-insights-player-grid .ag-cell-wrapper,
#datos-page .datos-insights-player-grid .ag-cell-value{
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden !important;
}

#datos-page .datos-insights-player-grid .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-clasif-team-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-media-cell,
#datos-page .datos-insights-player-grid .datos-media-cell-text{
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-insights-player-grid .datos-media-cell{
  overflow: hidden;
}

#datos-page .datos-insights-player-grid .datos-media-cell-img,
#datos-page .datos-insights-player-grid .datos-media-cell-fallback,
#datos-page .datos-insights-player-grid .datos-player-img-renderer{
  flex: 0 0 auto;
}

#datos-page .datos-insights-player-grid .datos-media-cell-text{
  display: block;
  min-width: 0;
  overflow: hidden;
}

#datos-page .datos-insights-player-grid .datos-insights-grid-num-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-score-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-points-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-gf-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-gc-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-dg-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-gap-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-change-cell .ag-cell-value{
  width: auto;
  min-width: 34px;
  min-height: 28px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 5px 14px rgba(0,0,0,.18);
}

#datos-page .datos-insights-player-grid .datos-insights-grid-gf-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-dg-cell .ag-cell-value{
  color: rgba(187,247,208,1);
  background:
    radial-gradient(circle at 30% 20%, rgba(34,197,94,.34), rgba(34,197,94,.12));
  border-color: rgba(74,222,128,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 5px 14px rgba(0,0,0,.18),
    0 0 12px rgba(34,197,94,.10);
}

#datos-page .datos-insights-player-grid .datos-insights-grid-gc-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-gap-cell .ag-cell-value{
  color: rgba(252,165,165,1);
  background:
    radial-gradient(circle at 30% 20%, rgba(239,68,68,.26), rgba(239,68,68,.10));
  border-color: rgba(248,113,113,.30);
}

#datos-page .datos-insights-player-grid .datos-insights-grid-score-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .datos-insights-grid-points-cell .ag-cell-value{
  color: rgba(254,240,138,1);
  background:
    radial-gradient(circle at 30% 20%, rgba(250,204,21,.28), rgba(250,204,21,.10));
  border-color: rgba(250,204,21,.30);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="0"] .ag-cell{
  background:
    linear-gradient(90deg, rgba(216,182,61,.20), rgba(216,182,61,.070) 42%, rgba(255,255,255,.018)) !important;
}

#datos-page .datos-insights-player-grid .ag-row[row-index="1"] .ag-cell{
  background:
    linear-gradient(90deg, rgba(226,232,240,.16), rgba(148,163,184,.060) 42%, rgba(255,255,255,.014)) !important;
}

#datos-page .datos-insights-player-grid .ag-row[row-index="2"] .ag-cell{
  background:
    linear-gradient(90deg, rgba(180,83,9,.18), rgba(251,146,60,.055) 42%, rgba(255,255,255,.014)) !important;
}

#datos-page .datos-insights-player-grid .ag-row[row-index="0"] .ag-cell[col-id="rank"] .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row[row-index="1"] .ag-cell[col-id="rank"] .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row[row-index="2"] .ag-cell[col-id="rank"] .ag-cell-value{
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 50% !important;
  color: rgba(20,20,16,.96);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="0"] .ag-cell[col-id="rank"] .ag-cell-value{
  background: linear-gradient(135deg, #fde68a, #ca8a04);
  border-color: rgba(253,230,138,.72);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="1"] .ag-cell[col-id="rank"] .ag-cell-value{
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  border-color: rgba(226,232,240,.72);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="2"] .ag-cell[col-id="rank"] .ag-cell-value{
  background: linear-gradient(135deg, #fed7aa, #b45309);
  border-color: rgba(251,146,60,.70);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="0"],
#datos-page .datos-insights-player-grid .ag-row[row-index="1"],
#datos-page .datos-insights-player-grid .ag-row[row-index="2"],
#datos-page .datos-insights-player-grid .ag-row[row-index="3"],
#datos-page .datos-insights-player-grid .ag-row[row-index="4"],
#datos-page .datos-insights-player-grid .ag-row[row-index="5"],
#datos-page .datos-insights-player-grid .ag-row[row-index="6"],
#datos-page .datos-insights-player-grid .ag-row[row-index="7"],
#datos-page .datos-insights-player-grid .ag-row[row-index="8"],
#datos-page .datos-insights-player-grid .ag-row[row-index="9"]{
  --datos-insight-value-ink: rgba(220,252,231,1);
  --datos-insight-value-bg-a: rgba(34,197,94,.34);
  --datos-insight-value-bg-b: rgba(34,197,94,.12);
  --datos-insight-value-border: rgba(74,222,128,.42);
  --datos-insight-value-glow: rgba(34,197,94,.12);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="1"]{
  --datos-insight-value-ink: rgba(217,249,157,1);
  --datos-insight-value-bg-a: rgba(74,222,128,.30);
  --datos-insight-value-bg-b: rgba(132,204,22,.11);
  --datos-insight-value-border: rgba(132,204,22,.38);
  --datos-insight-value-glow: rgba(132,204,22,.10);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="2"]{
  --datos-insight-value-ink: rgba(236,252,203,1);
  --datos-insight-value-bg-a: rgba(132,204,22,.28);
  --datos-insight-value-bg-b: rgba(163,230,53,.10);
  --datos-insight-value-border: rgba(163,230,53,.36);
  --datos-insight-value-glow: rgba(163,230,53,.09);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="3"]{
  --datos-insight-value-ink: rgba(254,249,195,1);
  --datos-insight-value-bg-a: rgba(190,242,100,.24);
  --datos-insight-value-bg-b: rgba(250,204,21,.09);
  --datos-insight-value-border: rgba(190,242,100,.32);
  --datos-insight-value-glow: rgba(190,242,100,.075);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="4"],
#datos-page .datos-insights-player-grid .ag-row[row-index="5"]{
  --datos-insight-value-ink: rgba(254,240,138,1);
  --datos-insight-value-bg-a: rgba(250,204,21,.24);
  --datos-insight-value-bg-b: rgba(250,204,21,.085);
  --datos-insight-value-border: rgba(250,204,21,.30);
  --datos-insight-value-glow: rgba(250,204,21,.065);
}

#datos-page .datos-insights-player-grid .ag-row[row-index="6"],
#datos-page .datos-insights-player-grid .ag-row[row-index="7"],
#datos-page .datos-insights-player-grid .ag-row[row-index="8"],
#datos-page .datos-insights-player-grid .ag-row[row-index="9"]{
  --datos-insight-value-ink: rgba(253,224,71,1);
  --datos-insight-value-bg-a: rgba(234,179,8,.22);
  --datos-insight-value-bg-b: rgba(234,179,8,.075);
  --datos-insight-value-border: rgba(234,179,8,.28);
  --datos-insight-value-glow: rgba(234,179,8,.055);
}

#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-num-cell:not([col-id="rank"]) .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-score-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-points-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-gf-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-gc-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-dg-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-gap-cell .ag-cell-value,
#datos-page .datos-insights-player-grid .ag-row .datos-insights-grid-change-cell .ag-cell-value{
  color: var(--datos-insight-value-ink) !important;
  background:
    radial-gradient(circle at 30% 20%, var(--datos-insight-value-bg-a), var(--datos-insight-value-bg-b)) !important;
  border-color: var(--datos-insight-value-border) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 5px 14px rgba(0,0,0,.18),
    0 0 12px var(--datos-insight-value-glow) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-team-media-cell{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-weight: 850;
  color: rgba(255,255,255,.86) !important;
}

#datos-page .datos-insights-ag-grid .datos-insights-team-media-cell .ag-cell-value{
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex !important;
  align-items: center !important;
}

#datos-page .datos-insights-ag-grid .datos-media-cell{
  min-width: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-num-cell:not([col-id="rank"]) .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-score-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-points-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gf-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gc-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-dg-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gap-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-change-cell .ag-cell-value{
  opacity: 1 !important;
  color: rgba(236,253,245,.94) !important;
  background: rgba(255,255,255,.065) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 4px 10px rgba(0,0,0,.16) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gf-cell .ag-cell-value{
  color: rgba(187,247,208,.98) !important;
  background: rgba(34,197,94,.16) !important;
  border-color: rgba(74,222,128,.38) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gc-cell .ag-cell-value{
  color: rgba(254,202,202,.98) !important;
  background: rgba(248,113,113,.14) !important;
  border-color: rgba(248,113,113,.34) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-points-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-score-cell .ag-cell-value{
  color: rgba(254,240,138,.98) !important;
  background: rgba(250,204,21,.13) !important;
  border-color: rgba(250,204,21,.32) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-rankings-key-cell .ag-cell-value{
  color: white !important;
  background: rgba(var(--datos-rankings-key-rgb, 250,204,21), .28) !important;
  border-color: rgba(var(--datos-rankings-key-rgb, 250,204,21), .58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 14px rgba(var(--datos-rankings-key-rgb, 250,204,21), .20) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .ag-cell{
  background: var(--datos-rankings-row-bg, rgba(8,12,11,.98)) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row{
  --datos-rankings-row-bg: rgba(8,12,11,.98);
  background: rgba(8,12,11,.98) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row-odd{
  --datos-rankings-row-bg: rgba(28,36,31,.92);
  background: rgba(28,36,31,.92) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="0"]{
  --datos-rankings-row-bg: linear-gradient(90deg, rgba(216,182,61,.18), rgba(8,12,11,.98) 34%);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="1"]{
  --datos-rankings-row-bg: linear-gradient(90deg, rgba(226,232,240,.14), rgba(28,36,31,.92) 34%);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="2"]{
  --datos-rankings-row-bg: linear-gradient(90deg, rgba(251,146,60,.16), rgba(8,12,11,.98) 34%);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row-hover,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row:hover{
  --datos-rankings-row-bg: rgba(216,182,61,.10);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-cell-wrapper{
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#datos-page .datos-insights-ag-grid .datos-media-cell-img,
#datos-page .datos-insights-ag-grid .datos-media-cell-fallback{
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

#datos-page .datos-insights-ag-grid .datos-media-cell-img{
  object-fit: contain;
  padding: 2px;
}

#datos-page .datos-insights-ag-grid .datos-media-cell-img.is-round,
#datos-page .datos-insights-ag-grid .datos-media-cell-fallback.is-round{
  border-radius: 999px;
}

#datos-page .datos-insights-ag-grid .datos-media-cell-fallback{
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-insights-ag-grid .datos-media-cell-text{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-league-profiles-row{
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .9fr) repeat(5, minmax(74px, .52fr));
  min-height: 34px;
  border-top: 1px solid rgba(255,255,255,.055);
}

#datos-page .datos-league-profiles-row:first-child{
  border-top: 0;
}

#datos-page .datos-league-profiles-row.is-header{
  min-height: 27px;
  background: rgba(255,255,255,.045);
}

#datos-page .datos-league-profiles-cell{
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-left: 1px solid rgba(255,255,255,.045);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
  color: rgba(255,255,255,.68);
}

#datos-page .datos-league-profiles-cell:first-child{
  border-left: 0;
}

#datos-page .datos-league-profiles-cell.is-head{
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

#datos-page .datos-league-profiles-cell.is-team{
  gap: 7px;
  overflow: hidden;
  color: rgba(255,255,255,.86);
}

#datos-page .datos-league-profiles-cell.is-team span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-league-profiles-table-shield,
#datos-page .datos-league-profiles-table-shield-fallback{
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-league-profiles-table-shield-fallback{
  font-size: 8px;
  font-weight: 950;
  color: rgba(255,255,255,.78);
}

#datos-page .datos-league-profiles-cell.is-num{
  justify-content: flex-end;
  font-size: 11px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-teams-goals-section *{
  box-sizing: border-box;
}

#datos-page .datos-teams-goals-head{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;

  margin-bottom: 12px;
  padding-top: 0;
}

#datos-page .datos-teams-goals-title{
  font-size: 17px;
  font-weight: 950;
  color: white;
  letter-spacing: .2px;
  line-height: 1.1;
}

#datos-page .datos-teams-goals-subtitle{
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.54);
  font-weight: 650;
}


/* =========================================================
   Grid principal mapas
   - general
   - casa
   - fuera
   ========================================================= */

#datos-page .datos-teams-goals-grid{
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
  align-items: stretch;
}

#datos-page .datos-teams-goals-grid--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#datos-page .datos-teams-goals-grid--three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#datos-page .datos-teams-goals-grid.is-selection-mode .datos-teams-goals-card{
  border-color: color-mix(
    in srgb,
    var(--datos-goals-accent) 42%,
    rgba(255,255,255,.10)
  );
}


/* =========================================================
   Cards base
   ========================================================= */

#datos-page .datos-teams-goals-card{
  min-width: 0;
  overflow: hidden;

  border-radius: 20px;
  border: 1px solid color-mix(
    in srgb,
    var(--datos-goals-accent) 34%,
    transparent
  );

  background:
    radial-gradient(
      circle at 18% 0%,
      var(--datos-goals-soft),
      transparent 44%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.070),
      rgba(255,255,255,.026)
    );

  box-shadow:
    0 16px 42px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.07);

  display: flex;
  flex-direction: column;
}

#datos-page .datos-teams-goals-card--map{
  min-height: 428px;
}

#datos-page .datos-teams-record-card{
  width: 100%;
  min-width: 0;

  margin-top: 14px;

  height: 430px;
  max-height: 430px;
  min-height: 430px;

  display: flex;
  flex-direction: column;
}

#datos-page .datos-teams-goals-card-head{
  padding: 13px 15px 10px;

  border-bottom: 1px solid rgba(255,255,255,.075);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  flex: 0 0 auto;
}

#datos-page .datos-teams-goals-card-title{
  font-size: 14px;
  font-weight: 950;
  color: white;
  line-height: 1.1;
  letter-spacing: .15px;
}

#datos-page .datos-teams-goals-card-subtitle{
  display: block;
  margin-top: 4px;

  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.54);
  font-weight: 650;
}

#datos-page .datos-teams-goals-card-cols{
  display: none;
}


/* =========================================================
   Mapas GF/GC HTML/SVG
   ========================================================= */

#datos-page .datos-goals-html-chart{
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0;
  margin: 0;

  overflow: hidden;

  background: transparent;
  border: none;
  box-shadow: none;
}

#datos-page .datos-goals-html-chart-inner{
  position: relative;

  width: 100%;
  max-width: 100%;

  height: 350px;
  min-height: 350px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255,255,255,.026),
      transparent 48%
    );
}

#datos-page .datos-goals-html-svg{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  user-select: none;
  pointer-events: none;
}

/* =========================================================
   DATOS · Team Insights · Actas
   Misma familia visual que la pestaña Equipo
   ========================================================= */

#datos-page .datos-team-insights-shell{
  position: relative;
  width: 100%;
  min-width: 0;
  color: white;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 22px;
  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 34%),
    linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.024));
  box-shadow:
    0 18px 46px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.065);
}

#datos-page .datos-team-insights-shell *{
  box-sizing: border-box;
}

#datos-page .datos-team-insights-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 12px;
}

#datos-page .datos-team-insights-heading-copy{
  min-width: 0;
}

#datos-page .datos-team-insights-title{
  font-size: 16px;
  line-height: 1.08;
  font-weight: 950;
  color: white;
}

#datos-page .datos-team-insights-subtitle{
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 720;
  color: rgba(255,255,255,.62);
}

#datos-page .datos-team-insights-inner-nav{
  flex: 0 0 auto;
  max-width: 100%;
  --datos-league-accent: var(--datos-team-overview-accent);
}

#datos-page .datos-team-insights-inner-nav-btn{
  font-size: 11px;
  padding: 8px 12px;
}

#datos-page .datos-team-insights-panels{
  width: 100%;
  min-width: 0;
}

#datos-page .datos-team-insights-tab-panel{
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

#datos-page .datos-team-insights-tab-panel.is-hidden{
  display: none;
}

#datos-page .datos-team-insights-tab-panel.is-active{
  display: block;
}

#datos-page .datos-team-ranking-section{
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-ranking-accent) 10%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(9,20,18,.96), rgba(4,10,10,.99));
  border: 1px solid color-mix(in srgb, var(--datos-team-ranking-accent) 22%, rgba(255,255,255,.10));
  box-shadow:
    0 14px 34px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.06);
}

#datos-page .datos-team-ranking-section-head{
  margin-bottom: 10px;
}

#datos-page .datos-team-ranking-section-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#datos-page .datos-team-ranking-section-title{
  color: #fff;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 950;
}

#datos-page .datos-team-ranking-section-subtitle{
  margin-top: 4px;
  color: rgba(226,232,240,.62);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}

#datos-page .datos-team-ranking-section-top{
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--datos-team-ranking-accent) 78%, white 16%);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  background: color-mix(in srgb, var(--datos-team-ranking-accent) 14%, rgba(255,255,255,.045));
  border: 1px solid color-mix(in srgb, var(--datos-team-ranking-accent) 30%, rgba(255,255,255,.08));
}

#datos-page .datos-team-ranking-card-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

#datos-page .datos-team-rankings-sections{
  display: grid;
  grid-template-columns: repeat(4, minmax(245px, 1fr));
  gap: 12px;
}

#datos-page .datos-team-rankings-sections > :first-child{
  grid-column: 1 / -1;
}

#datos-page .datos-team-ranking-section--goles{
  --datos-team-ranking-accent: #37db6e !important;
}

#datos-page .datos-team-ranking-section--goles_por_90{
  --datos-team-ranking-accent: #27d4c6 !important;
}

#datos-page .datos-team-ranking-section--porteria{
  --datos-team-ranking-accent: #4aa3ff !important;
}

#datos-page .datos-team-ranking-section--tarjetas{
  --datos-team-ranking-accent: #e6bd2b !important;
}

#datos-page .datos-team-ranking-card{
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  overflow: hidden;
  border-radius: 11px;
  background:
    radial-gradient(circle at 0% 50%, var(--datos-team-ranking-soft), transparent 40%),
    linear-gradient(90deg, rgba(255,255,255,.075), rgba(0,0,0,.22));
  border: 1px solid rgba(255,255,255,.105);
  box-shadow:
    0 8px 20px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.07);
}

#datos-page .datos-team-ranking-card::after{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--datos-team-ranking-accent);
  opacity: .78;
  z-index: -1;
}

#datos-page .datos-team-ranking-card.is-tarjetas::after{
  background: rgba(250,204,21,.92);
}

#datos-page .datos-team-ranking-card.is-porteria::after{
  background: rgba(96,165,250,.92);
}

#datos-page .datos-team-ranking-card-rank{
  min-width: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.17), rgba(255,255,255,.055));
  border: 1px solid color-mix(in srgb, var(--datos-team-ranking-accent) 38%, rgba(255,255,255,.13));
}

#datos-page .datos-team-ranking-card-rank-main{
  color: white;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-team-ranking-card-rank-total{
  display: none;
}

#datos-page .datos-team-ranking-card-rank.is-top-1{
  color: #3b2a04;
  background: linear-gradient(135deg, #fff3a3, #d99b16);
  border-color: rgba(255,232,120,.72);
  box-shadow: 0 0 0 2px rgba(255,220,80,.16), 0 8px 18px rgba(214,153,22,.26);
}

#datos-page .datos-team-ranking-card-rank.is-top-2{
  color: #1f2937;
  background: linear-gradient(135deg, #f7fbff, #aab8c8);
  border-color: rgba(226,232,240,.70);
  box-shadow: 0 0 0 2px rgba(226,232,240,.12), 0 8px 18px rgba(170,184,200,.22);
}

#datos-page .datos-team-ranking-card-rank.is-top-3{
  color: #2f1604;
  background: linear-gradient(135deg, #ffd8a8, #b66a23);
  border-color: rgba(251,191,120,.66);
  box-shadow: 0 0 0 2px rgba(251,146,60,.12), 0 8px 18px rgba(180,103,34,.22);
}

#datos-page .datos-team-ranking-card-rank.is-top-1 .datos-team-ranking-card-rank-main,
#datos-page .datos-team-ranking-card-rank.is-top-2 .datos-team-ranking-card-rank-main,
#datos-page .datos-team-ranking-card-rank.is-top-3 .datos-team-ranking-card-rank-main{
  color: currentColor;
}

#datos-page .datos-team-ranking-card-player{
  min-width: 0;
}

#datos-page .datos-team-ranking-card-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  line-height: 1.08;
  font-weight: 950;
}

#datos-page .datos-team-ranking-card-meta,
#datos-page .datos-team-ranking-card-sub{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  line-height: 1.18;
  font-weight: 760;
}

#datos-page .datos-team-ranking-card-meta{
  margin-top: 2px;
  color: rgba(226,232,240,.70);
}

#datos-page .datos-team-ranking-card-sub{
  margin-top: 2px;
  color: rgba(226,232,240,.52);
}

#datos-page .datos-team-ranking-card-value{
  max-width: 84px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  font-size: 10.5px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--datos-team-ranking-accent) 32%, rgba(255,255,255,.08)), rgba(255,255,255,.055));
  border: 1px solid color-mix(in srgb, var(--datos-team-ranking-accent) 54%, rgba(255,255,255,.13));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

#datos-page .datos-team-rankings-sections .datos-team-ranking-section:first-child{
  padding: 14px 16px 10px;
}

#datos-page .datos-team-ranking-distribution-graph{
  width: 100%;
  min-height: 220px;
}

#datos-page .datos-team-preco-profile-list{
  display: grid;
  gap: 12px;
}

#datos-page .datos-team-preco-profile-card{
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-player-wh-accent, #35df82) 10%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(9,20,18,.96), rgba(4,10,10,.99));
  border: 1px solid color-mix(in srgb, var(--datos-player-wh-accent, #35df82) 22%, rgba(255,255,255,.10));
  box-shadow:
    0 14px 32px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.06);
}

#datos-page .datos-team-preco-profile-head{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

#datos-page .datos-team-preco-profile-copy{
  min-width: 0;
}

#datos-page .datos-team-preco-profile-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.96);
  font-size: 14px;
  line-height: 1.06;
  font-weight: 950;
}

#datos-page .datos-team-preco-profile-case{
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(226,232,240,.62);
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 800;
}

#datos-page .datos-team-preco-profile-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

#datos-page .datos-team-preco-profile-chip{
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
}

#datos-page .datos-team-preco-context-section{
  padding: 10px;
}

#datos-page .datos-team-preco-context-section .datos-player-wh-section-title{
  margin-bottom: 8px;
}

#datos-page .datos-team-preco-context-section .datos-player-wh-ag-grid{
  height: 260px !important;
}

@media (max-width: 1450px){
  #datos-page .datos-team-rankings-sections{
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 820px){
  #datos-page .datos-team-rankings-sections{
    grid-template-columns: minmax(0, 1fr);
  }
}

#datos-page .datos-team-insights-quick-grid{
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 2fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

#datos-page .datos-team-insights-summary-card,
#datos-page .datos-team-insights-metric-card,
#datos-page .datos-team-insights-highlight-card,
#datos-page .datos-team-insights-chart-card{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  color: white;
  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 38%),
    linear-gradient(180deg, rgba(255,255,255,.066), rgba(255,255,255,.026));
  box-shadow:
    0 12px 30px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.065);
}

#datos-page .datos-team-insights-summary-card{
  padding: 14px 15px;
}

#datos-page .datos-team-insights-summary-card.is-good{
  border-color: color-mix(in srgb, #2fd47c 34%, rgba(255,255,255,.08));
}

#datos-page .datos-team-insights-summary-card.is-warn{
  border-color: color-mix(in srgb, #d8b63d 34%, rgba(255,255,255,.08));
}

#datos-page .datos-team-insights-summary-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#datos-page .datos-team-insights-info-btn{
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 24%, rgba(255,255,255,.12));
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-team-insights-info-btn:hover{
  background: color-mix(in srgb, var(--datos-team-overview-accent) 10%, rgba(255,255,255,.08));
  color: white;
}

.datos-team-insights-info-modal .modal-content{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 12% 0%, rgba(47,212,124,.10), transparent 38%),
    linear-gradient(180deg, #272b2c, #1b1e20);
  color: white;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.datos-team-insights-info-modal .modal-header,
.datos-team-insights-info-modal .modal-footer{
  border-color: rgba(255,255,255,.08);
}

.datos-team-insights-info-intro{
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.70);
  margin-bottom: 12px;
}

.datos-team-insights-info-list{
  display: grid;
  gap: 8px;
}

.datos-team-insights-info-row{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  padding: 10px 12px;
}

.datos-team-insights-info-label{
  font-size: 12px;
  font-weight: 950;
  color: white;
}

.datos-team-insights-info-description{
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.66);
}

.datos-team-insights-info-rule{
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.70);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-team-insights-metric-card{
  min-height: 122px;
  padding: 12px 10px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  text-align: center;
  align-content: start;
}

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

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

#datos-page .datos-team-insights-metric-card > *,
#datos-page .datos-team-insights-highlight-card > *{
  position: relative;
  z-index: 1;
}

#datos-page .datos-team-insights-metric-card.is-good,
#datos-page .datos-team-insights-highlight-card.is-good{
  border-color: color-mix(in srgb, #2fd47c 38%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 50% 0%, rgba(47,212,124,.18), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.074), rgba(255,255,255,.028));
}

#datos-page .datos-team-insights-metric-card.is-good::before,
#datos-page .datos-team-insights-highlight-card.is-good::before{
  background: #2fd47c;
}

#datos-page .datos-team-insights-metric-card.is-bad,
#datos-page .datos-team-insights-highlight-card.is-bad{
  border-color: color-mix(in srgb, #ff5b75 34%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 50% 0%, rgba(255,91,117,.15), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.026));
}

#datos-page .datos-team-insights-metric-card.is-bad::before,
#datos-page .datos-team-insights-highlight-card.is-bad::before{
  background: #ff5b75;
}

#datos-page .datos-team-insights-highlight-card.is-warn::before,
#datos-page .datos-team-insights-metric-card.is-neutral::before,
#datos-page .datos-team-insights-highlight-card.is-neutral::before{
  background: color-mix(in srgb, var(--datos-team-overview-accent) 68%, white 10%);
}

#datos-page .datos-team-insights-card-label,
#datos-page .datos-team-insights-highlight-label{
  font-size: 10px;
  font-weight: 950;
  color: rgba(255,255,255,.58);
  letter-spacing: .42px;
  text-transform: uppercase;
}

#datos-page .datos-team-insights-card-value{
  margin-top: 5px;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.04;
  color: white;
}

#datos-page .datos-team-insights-card-sub{
  margin-top: 6px;
  min-height: 27px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  color: rgba(255,255,255,.55);
}

#datos-page .datos-team-insights-card-delta{
  justify-self: center;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

#datos-page .datos-team-insights-section-title{
  font-size: 14px;
  font-weight: 950;
  color: white;
  line-height: 1.1;
  letter-spacing: .15px;
}

#datos-page .datos-team-insights-summary-text{
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.64);
  font-weight: 650;
}

#datos-page .datos-team-insights-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

#datos-page .datos-team-insights-chip{
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent) 30%, rgba(255,255,255,.08));
  background: color-mix(in srgb, var(--datos-team-overview-accent) 13%, rgba(255,255,255,.035));
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 850;
  padding: 6px 9px;
  white-space: nowrap;
}

#datos-page .datos-team-insights-chip.is-good{
  border-color: rgba(47,212,124,.38);
  background: rgba(47,212,124,.13);
  color: #b9f6d1;
}

#datos-page .datos-team-insights-chip.is-warn{
  border-color: rgba(216,182,61,.42);
  background: rgba(216,182,61,.13);
  color: #f0d98a;
}

#datos-page .datos-team-insights-chip.is-bad{
  border-color: rgba(255,91,117,.42);
  background: rgba(255,91,117,.13);
  color: #ffc5cd;
}

#datos-page .datos-team-insights-critical-grid,
#datos-page .datos-team-insights-metrics-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

#datos-page .datos-team-insights-section-block{
  margin-bottom: 12px;
}

#datos-page .datos-team-insights-section-block > .datos-team-insights-section-title{
  margin-bottom: 8px;
}

#datos-page .datos-team-insights-recent-grid{
  margin-bottom: 10px;
}

#datos-page .datos-team-insights-critical-grid{
  margin-bottom: 0;
  gap: 8px;
}

#datos-page .datos-team-insights-charts-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#datos-page .datos-team-insights-charts-grid--segments{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#datos-page .datos-team-insights-charts-title{
  margin: 2px 0 8px;
}

#datos-page .datos-team-insights-chart-card.is-wide{
  grid-column: span 2;
}

#datos-page .datos-team-insights-chart-card{
  min-height: 298px;
  padding: 7px 7px 0;
}

#datos-page .datos-team-insights-chart-inner{
  width: 100%;
  min-width: 0;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.026), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.020), transparent);
}

#datos-page .datos-team-insights-chart-inner .js-plotly-plot,
#datos-page .datos-team-insights-chart-inner .plot-container,
#datos-page .datos-team-insights-chart-inner .svg-container{
  width: 100% !important;
}

#datos-page .datos-team-insights-highlights-block{
  margin-top: 12px;
}

#datos-page .datos-team-insights-home-away-section{
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.6fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

#datos-page .datos-team-insights-value-section{
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(360px, .9fr);
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

#datos-page .datos-team-insights-value-terminal{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.030) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(66,216,135,.15), transparent 34%),
    radial-gradient(circle at 94% 10%, rgba(216,182,61,.10), transparent 36%),
    linear-gradient(145deg, rgba(25,29,28,.96), rgba(47,51,52,.92));
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  border-color: rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 16px 38px rgba(0,0,0,.22);
}

#datos-page .datos-team-insights-value-terminal-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: stretch;
}

#datos-page .datos-team-insights-value-titlebox{
  min-width: 0;
}

#datos-page .datos-team-insights-value-score{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 56%),
    rgba(0,0,0,.18);
  text-align: center;
}

#datos-page .datos-team-insights-value-score.is-good{
  border-color: rgba(66,216,135,.42);
  box-shadow: inset 0 0 0 1px rgba(66,216,135,.08);
}

#datos-page .datos-team-insights-value-score.is-warn,
#datos-page .datos-team-insights-value-score.is-neutral{
  border-color: rgba(216,182,61,.32);
}

#datos-page .datos-team-insights-value-score-label,
#datos-page .datos-team-insights-value-score-sub{
  font-size: 9px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
}

#datos-page .datos-team-insights-value-score-main{
  margin-top: 3px;
  font-size: 34px;
  line-height: .96;
  font-weight: 950;
  color: #f4f6f2;
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-team-insights-value-score-sub{
  margin-top: 5px;
  letter-spacing: 0;
  text-transform: none;
}

#datos-page .datos-team-insights-value-card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#datos-page .datos-team-insights-value-card-grid .datos-team-insights-metric-card{
  min-height: 112px;
}

#datos-page .datos-team-insights-value-charts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#datos-page .datos-team-insights-value-charts .datos-team-insights-chart-card.is-wide{
  grid-column: 1 / -1;
}

#datos-page .datos-team-insights-taxonomy-section{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1fr);
  gap: 12px;
}

#datos-page .datos-team-insights-taxonomy-current-card,
#datos-page .datos-team-insights-taxonomy-card{
  min-height: 150px;
}

#datos-page .datos-team-insights-taxonomy-current{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

#datos-page .datos-team-insights-taxonomy-current.is-good{
  color: #42d887;
  background: rgba(66,216,135,.12);
  border-color: rgba(66,216,135,.32);
}

#datos-page .datos-team-insights-taxonomy-current.is-warn{
  color: #d8b63d;
  background: rgba(216,182,61,.12);
  border-color: rgba(216,182,61,.30);
}

#datos-page .datos-team-insights-taxonomy-current.is-bad{
  color: #ff6b7d;
  background: rgba(255,91,117,.12);
  border-color: rgba(255,91,117,.30);
}

#datos-page .datos-team-insights-taxonomy-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

#datos-page .datos-team-insights-taxonomy-row{
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
}

#datos-page .datos-team-insights-taxonomy-row.is-good{
  border-color: rgba(66,216,135,.20);
}

#datos-page .datos-team-insights-taxonomy-row.is-warn{
  border-color: rgba(216,182,61,.22);
}

#datos-page .datos-team-insights-taxonomy-row.is-bad{
  border-color: rgba(255,91,117,.22);
}

#datos-page .datos-team-insights-taxonomy-name{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
}

#datos-page .datos-team-insights-taxonomy-name.is-good{
  color: #42d887;
}

#datos-page .datos-team-insights-taxonomy-name.is-warn{
  color: #d8b63d;
}

#datos-page .datos-team-insights-taxonomy-name.is-bad{
  color: #ff6b7d;
}

#datos-page .datos-team-insights-taxonomy-rule{
  display: block;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.28;
  font-weight: 720;
  color: rgba(255,255,255,.50);
}

#datos-page .datos-team-insights-value-insights{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

#datos-page .datos-team-insights-value-insight{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-team-insights-value-insight.is-good{
  border-color: rgba(66,216,135,.25);
  background: rgba(31,176,104,.10);
}

#datos-page .datos-team-insights-value-insight.is-bad{
  border-color: rgba(255,91,117,.28);
  background: rgba(255,91,117,.09);
}

#datos-page .datos-team-insights-value-insight.is-warn{
  border-color: rgba(216,182,61,.28);
  background: rgba(216,182,61,.09);
}

#datos-page .datos-team-insights-value-insight-tag{
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.10);
}

#datos-page .datos-team-insights-value-insight-tag.is-good{
  color: #42d887;
  background: rgba(66,216,135,.13);
}

#datos-page .datos-team-insights-value-insight-tag.is-bad{
  color: #ff6b7d;
  background: rgba(255,91,117,.14);
}

#datos-page .datos-team-insights-value-insight-tag.is-warn{
  color: #d8b63d;
  background: rgba(216,182,61,.13);
}

#datos-page .datos-team-insights-value-insight-text{
  min-width: 0;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
  color: rgba(255,255,255,.70);
}

#datos-page .datos-team-insights-value-table{
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(6,8,9,.20);
}

#datos-page .datos-team-insights-value-row{
  display: grid;
  grid-template-columns: minmax(160px, 1.7fr) .68fr .68fr .62fr .54fr .88fr;
  min-height: 40px;
  border-top: 1px solid rgba(255,255,255,.065);
}

#datos-page .datos-team-insights-value-row:first-child{
  border-top: 0;
}

#datos-page .datos-team-insights-value-row.is-header{
  min-height: 28px;
  background: rgba(255,255,255,.045);
}

#datos-page .datos-team-insights-value-row.is-good{
  background: linear-gradient(90deg, rgba(66,216,135,.075), transparent 42%);
}

#datos-page .datos-team-insights-value-row.is-bad{
  background: linear-gradient(90deg, rgba(255,91,117,.065), transparent 42%);
}

#datos-page .datos-team-insights-value-cell{
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-left: 1px solid rgba(255,255,255,.055);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
  color: rgba(255,255,255,.70);
}

#datos-page .datos-team-insights-value-cell:first-child{
  border-left: 0;
}

#datos-page .datos-team-insights-value-cell.is-head{
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.42);
}

#datos-page .datos-team-insights-value-cell.is-num{
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.86);
}

#datos-page .datos-team-insights-value-cell.is-reading{
  justify-content: center;
  text-align: center;
}

#datos-page .datos-team-insights-value-cell.is-reading.is-good,
#datos-page .datos-team-insights-value-delta.is-good{
  color: #42d887;
}

#datos-page .datos-team-insights-value-cell.is-reading.is-bad,
#datos-page .datos-team-insights-value-delta.is-bad{
  color: #ff6b7d;
}

#datos-page .datos-team-insights-value-cell.is-reading.is-neutral,
#datos-page .datos-team-insights-value-delta.is-neutral{
  color: rgba(255,255,255,.64);
}

#datos-page .datos-team-insights-value-rank{
  color: #d8b63d !important;
}

#datos-page .datos-team-insights-value-name{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 950;
  color: rgba(255,255,255,.84);
}

#datos-page .datos-team-insights-value-def{
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.38);
}

#datos-page .datos-team-insights-value-cell.is-name{
  display: block;
}

#datos-page .datos-team-insights-home-away-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#datos-page .datos-team-insights-home-away-charts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#datos-page .datos-team-insights-highlights-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

#datos-page .datos-team-insights-highlight-card{
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid rgba(255,255,255,.085);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding: 11px 12px;
}

#datos-page .datos-team-insights-highlight-card:hover,
#datos-page .datos-team-insights-last-match:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--datos-team-overview-accent) 42%, rgba(255,255,255,.12));
  box-shadow:
    0 16px 36px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-team-insights-match-row{
  display: grid;
  grid-template-columns: 34px minmax(44px, auto) 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  min-width: 0;
}

#datos-page .datos-team-insights-match-shield,
#datos-page .datos-team-insights-match-shield-fallback{
  width: 34px;
  height: 34px;
  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,.16), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-team-insights-match-shield-fallback{
  color: white;
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-team-insights-match-score{
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  color: white;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-team-insights-highlight-title{
  margin-top: 5px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-insights-highlight-meta{
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.45);
}

#datos-page .datos-team-insights-highlight-sub{
  margin-top: 5px;
  font-size: 11px;
  color: rgba(255,255,255,.64);
  font-weight: 750;
}

#datos-page .datos-team-insights-source{
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255,255,255,.34);
}

#datos-page .datos-team-insights-recent-section{
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.25fr);
  gap: 12px;
}

#datos-page .datos-team-insights-recent-panel{
  min-height: 100%;
}

#datos-page .datos-team-insights-recent-detail-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

#datos-page .datos-team-insights-last-matches{
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

#datos-page .datos-team-insights-last-match{
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 38px 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,.050), rgba(255,255,255,.018));
}

#datos-page .datos-team-insights-last-match.is-good{
  border-color: rgba(66,216,135,.26);
  background: linear-gradient(90deg, rgba(66,216,135,.12), rgba(255,255,255,.018));
}

#datos-page .datos-team-insights-last-match.is-bad{
  border-color: rgba(255,91,117,.26);
  background: linear-gradient(90deg, rgba(255,91,117,.10), rgba(255,255,255,.018));
}

#datos-page .datos-team-insights-last-match-round{
  font-size: 10px;
  font-weight: 950;
  color: rgba(255,255,255,.52);
  font-variant-numeric: tabular-nums;
}

#datos-page .datos-team-insights-last-match-main{
  min-width: 0;
}

#datos-page .datos-team-insights-last-match-rival{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 950;
  color: rgba(255,255,255,.86);
}

#datos-page .datos-team-insights-last-match-meta{
  margin-top: 2px;
  font-size: 9px;
  font-weight: 780;
  color: rgba(255,255,255,.48);
}

#datos-page .datos-team-insights-last-match-result{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

#datos-page .datos-team-insights-last-match-result.is-good{
  color: #42d887;
  border-color: rgba(66,216,135,.32);
  background: rgba(66,216,135,.12);
}

#datos-page .datos-team-insights-last-match-result.is-bad{
  color: #ff6b7d;
  border-color: rgba(255,91,117,.32);
  background: rgba(255,91,117,.12);
}

#datos-page .datos-team-insights-recent-compare .datos-team-insights-metrics-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#datos-page .datos-team-insights-recent-note{
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 780;
  color: rgba(255,255,255,.52);
}

@media (max-width: 1180px){
  #datos-page .datos-league-profiles-head,
  #datos-page .datos-league-profiles-main-grid,
  #datos-page .datos-league-profiles-analysis-grid{
    grid-template-columns: 1fr;
  }

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

  #datos-page .datos-team-insights-critical-grid,
  #datos-page .datos-team-insights-metrics-grid,
  #datos-page .datos-team-insights-highlights-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #datos-page .datos-team-insights-home-away-section,
  #datos-page .datos-team-insights-home-away-charts,
  #datos-page .datos-team-insights-value-section,
  #datos-page .datos-team-insights-value-charts,
  #datos-page .datos-team-insights-taxonomy-section,
  #datos-page .datos-team-insights-recent-section{
    grid-template-columns: 1fr;
  }

  #datos-page .datos-team-insights-chart-card.is-wide{
    grid-column: span 2;
  }
}

@media (max-width: 720px){
  #datos-page .datos-league-insights-heading{
    flex-direction: column;
    align-items: stretch;
  }

  #datos-page .datos-league-profiles-kpis{
    grid-template-columns: 1fr;
  }

  #datos-page .datos-league-profiles-table{
    overflow-x: auto;
  }

  #datos-page .datos-league-profiles-row{
    min-width: 760px;
  }

  #datos-page .datos-team-insights-heading{
    flex-direction: column;
    align-items: stretch;
  }

  #datos-page .datos-team-insights-inner-nav{
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  #datos-page .datos-team-insights-inner-nav-btn{
    flex: 0 0 auto;
  }

  #datos-page .datos-team-insights-quick-grid,
  #datos-page .datos-team-insights-critical-grid,
  #datos-page .datos-team-insights-metrics-grid,
  #datos-page .datos-team-insights-charts-grid,
  #datos-page .datos-team-insights-highlights-grid{
    grid-template-columns: 1fr;
  }

  #datos-page .datos-team-insights-home-away-cards{
    grid-template-columns: 1fr;
  }

  #datos-page .datos-team-insights-value-card-grid{
    grid-template-columns: 1fr;
  }

  #datos-page .datos-team-insights-value-terminal-head,
  #datos-page .datos-team-insights-value-insights,
  #datos-page .datos-team-insights-taxonomy-list{
    grid-template-columns: 1fr;
  }

  #datos-page .datos-team-insights-value-row{
    grid-template-columns: minmax(132px, 1.4fr) .62fr .62fr .62fr;
  }

  #datos-page .datos-team-insights-value-cell:nth-child(5),
  #datos-page .datos-team-insights-value-cell:nth-child(6){
    display: none;
  }

  #datos-page .datos-team-insights-chart-card.is-wide{
    grid-column: span 1;
  }
}

#datos-page .datos-goals-html-logo-layer{
  position: absolute;
  inset: 0;

  pointer-events: none;
}

#datos-page .datos-goals-html-logo-btn{
  appearance: none;
  -webkit-appearance: none;

  position: absolute;
  transform: translate(-50%, -50%);

  width: clamp(34px, 2.15vw, 46px);
  height: clamp(34px, 2.15vw, 46px);
  padding: 3px;

  border-radius: 999px;
  border: 1px solid var(--datos-goals-team-color-border, rgba(255,255,255,.24));

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255,255,255,.23),
      transparent 42%
    ),
    rgba(13, 20, 32, .80);

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

  cursor: pointer;
  pointer-events: auto;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 8px 18px rgba(0,0,0,.34);

  transition:
    transform .15s ease,
    opacity .15s ease,
    filter .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

#datos-page .datos-goals-html-logo-btn:hover{
  transform: translate(-50%, -50%) scale(1.10);
  z-index: 10;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 18px var(--datos-goals-team-color-soft, rgba(255,255,255,.16)),
    0 10px 24px rgba(0,0,0,.42);
}

#datos-page .datos-goals-html-logo-btn.is-muted{
  opacity: .20;
  filter: grayscale(.48);
}

#datos-page .datos-goals-html-logo-btn.is-selected{
  transform: translate(-50%, -50%) scale(1.16);
  z-index: 12;

  border-color: var(--datos-goals-team-color-border, rgba(255,255,255,.72));

  box-shadow:
    0 0 0 2px var(--datos-goals-team-color-border, rgba(255,255,255,.45)),
    0 0 22px var(--datos-goals-team-color-soft, rgba(255,255,255,.20)),
    0 10px 26px rgba(0,0,0,.44);
}

#datos-page .datos-goals-html-logo-img{
  width: 100%;
  height: 100%;

  object-fit: contain;
  border-radius: 999px;
  display: block;
}

#datos-page .datos-goals-html-logo-fallback{
  width: 100%;
  height: 100%;

  border-radius: 999px;

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

  font-size: 10px;
  font-weight: 950;
  color: white;

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255,255,255,.16),
      rgba(255,255,255,.055)
    );
}


/* =========================================================
   Modo selección
   ========================================================= */

#datos-page .datos-teams-goals-section.is-selection-mode .datos-goals-html-logo-btn:not(.is-selected){
  opacity: .22;
}

#datos-page .datos-teams-goals-section.is-selection-mode .datos-goals-html-logo-btn.is-selected{
  opacity: 1;
}


/* =========================================================
   Compatibilidad por si queda algún dcc.Graph antiguo
   ========================================================= */

#datos-page .datos-teams-goals-graph{
  width: 100%;
  height: 350px;
  min-height: 350px;
}

#datos-page .datos-teams-goals-graph .js-plotly-plot,
#datos-page .datos-teams-goals-graph .plotly{
  width: 100% !important;
}

#datos-page .datos-teams-record-graph{
  min-height: 390px;
}


/* =========================================================
   Estados vacíos
   ========================================================= */

#datos-page .datos-teams-goals-empty{
  min-height: 330px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 18px;
  box-sizing: border-box;

  color: white;
  text-align: center;

  background: rgba(255,255,255,.025);
}

#datos-page .datos-teams-goals-empty-main{
  font-size: 13px;
  font-weight: 850;
  opacity: .82;
}

#datos-page .datos-teams-goals-empty-sub{
  margin-top: 6px;

  font-size: 11px;
  line-height: 1.35;
  opacity: .52;
}

#datos-page .datos-teams-goals-blob{
  display: none;
}


/* =========================================================
   Casa / Fuera · Cards con escudos
   ========================================================= */

#datos-page .datos-teams-record-card > .datos-teams-goals-card-head{
  flex: 0 0 auto;
}

#datos-page .datos-team-form-list{
  padding: 13px;

  display: flex;
  flex-direction: column;
  gap: 11px;

  flex: 1 1 auto;

  min-height: 0;
  max-height: none;
  height: auto;

  overflow-y: auto;
  overflow-x: hidden;

  align-items: stretch;

  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

#datos-page .datos-team-form-list::-webkit-scrollbar{
  width: 7px;
}

#datos-page .datos-team-form-list::-webkit-scrollbar-track{
  background: transparent;
}

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

#datos-page .datos-team-form-list::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.26);
}

#datos-page .datos-team-form-legend{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  padding: 0 2px 2px;
  margin-bottom: 1px;

  flex: 0 0 auto;
}

#datos-page .datos-team-form-legend-item{
  display: inline-flex;
  align-items: center;
  gap: 5px;

  font-size: 10px;
  font-weight: 850;
  color: rgba(255,255,255,.62);

  text-transform: uppercase;
  letter-spacing: .35px;
}

#datos-page .datos-team-form-legend-dot{
  width: 8px;
  height: 8px;

  border-radius: 999px;
  display: inline-block;
}

#datos-page .datos-team-form-legend-dot--win{
  background: linear-gradient(180deg, #42e071, #15803d);
  box-shadow: 0 0 10px rgba(34,197,94,.32);
}

#datos-page .datos-team-form-legend-dot--draw{
  background: linear-gradient(180deg, #facc15, #a16207);
  box-shadow: 0 0 10px rgba(234,179,8,.28);
}

#datos-page .datos-team-form-legend-dot--loss{
  background: linear-gradient(180deg, #fb7185, #b91c1c);
  box-shadow: 0 0 10px rgba(239,68,68,.28);
}

#datos-page .datos-team-form-card{
  position: relative;
  overflow: hidden;

  flex: 0 0 auto;

  min-height: 112px;

  padding: 12px 13px;

  border-radius: 17px;

  background:
    radial-gradient(
      circle at 0% 0%,
      color-mix(in srgb, var(--datos-goals-accent) 14%, transparent),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.065),
      rgba(255,255,255,.028)
    );

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

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

#datos-page .datos-team-form-card::before{
  content: "";

  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;

  width: 3px;

  border-radius: 999px;

  background: var(--datos-goals-accent);
  opacity: .72;
}

#datos-page .datos-team-form-top{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  margin-bottom: 11px;
  min-height: 42px;

  flex: 0 0 auto;
}

#datos-page .datos-team-form-shield-wrap{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border-radius: 999px;

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

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

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

  box-shadow:
    0 8px 18px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.10);

  overflow: hidden;
}

#datos-page .datos-team-form-shield{
  width: 32px;
  height: 32px;

  object-fit: contain;
  display: block;
}

#datos-page .datos-team-form-fallback{
  width: 100%;
  height: 100%;

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

  font-size: 11px;
  font-weight: 950;
  color: white;

  background: rgba(255,255,255,.06);
}

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

#datos-page .datos-team-form-name{
  font-size: 13px;
  font-weight: 950;
  color: white;
  line-height: 1.15;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-form-meta{
  margin-top: 3px;

  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.48);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-team-form-position{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 34px;
  height: 26px;

  padding: 0 8px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 950;
  color: white;

  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
}

#datos-page .datos-team-form-bars{
  display: flex;
  flex-direction: column;
  gap: 8px;

  flex: 0 0 auto;
}

#datos-page .datos-team-form-row{
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 9px;

  min-height: 18px;
}

#datos-page .datos-team-form-side{
  font-size: 10px;
  font-weight: 950;
  color: rgba(255,255,255,.66);

  text-transform: uppercase;
  letter-spacing: .45px;
}

#datos-page .datos-team-form-bar-shell{
  height: 14px;

  border-radius: 999px;
  overflow: hidden;

  display: flex;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.070),
      rgba(255,255,255,.030)
    );

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

  box-shadow:
    inset 0 2px 7px rgba(0,0,0,.28);
}

#datos-page .datos-team-form-segment{
  height: 100%;
  min-width: 0;
}

#datos-page .datos-team-form-segment--win{
  background: linear-gradient(90deg, #15803d, #22c55e);
  box-shadow: 0 0 12px rgba(34,197,94,.26);
}

#datos-page .datos-team-form-segment--draw{
  background: linear-gradient(90deg, #a16207, #eab308);
  box-shadow: 0 0 12px rgba(234,179,8,.22);
}

#datos-page .datos-team-form-segment--loss{
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  box-shadow: 0 0 12px rgba(239,68,68,.22);
}

#datos-page .datos-team-form-segment--empty{
  width: 100%;

  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.055) 5px,
      rgba(255,255,255,.025) 5px,
      rgba(255,255,255,.025) 10px
    );
}

#datos-page .datos-team-form-numbers{
  font-size: 10px;
  font-weight: 850;
  color: rgba(255,255,255,.72);

  text-align: right;
  white-space: nowrap;
}

#datos-page .datos-team-form-pj{
  opacity: .42;
  font-weight: 800;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1450px){
  #datos-page .datos-teams-goals-grid--three{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
   Aquí estaba el problema:
   antes, al pasar a 1 columna, cada mapa ocupaba todo el ancho.
   Ahora, cuando solo cabe uno por fila, se centra y se limita el ancho.
*/
@media (max-width: 1200px) and (min-width: 641px){
  #datos-page .datos-teams-goals-grid,
  #datos-page .datos-teams-goals-grid--two,
  #datos-page .datos-teams-goals-grid--three{
    grid-template-columns: minmax(0, min(100%, 780px));
    justify-content: center;
    justify-items: stretch;
  }

  #datos-page .datos-teams-goals-card--map{
    width: 100%;
    max-width: 780px;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
  }

  #datos-page .datos-goals-html-chart-inner{
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  #datos-page .datos-goals-html-logo-btn{
    width: clamp(36px, 4vw, 44px);
    height: clamp(36px, 4vw, 44px);
  }

  #datos-page .datos-teams-goals-graph{
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  #datos-page .datos-teams-record-card{
    height: auto;
    max-height: none;
    min-height: 0;
  }

  #datos-page .datos-team-form-list{
    max-height: none;
    height: auto;
    overflow-y: visible;
  }
}

@media (max-width: 640px){
  #datos-page .datos-teams-goals-section{
    margin-top: 0;
  }

  #datos-page .datos-teams-goals-grid,
  #datos-page .datos-teams-goals-grid--two,
  #datos-page .datos-teams-goals-grid--three{
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-teams-goals-card{
    border-radius: 17px;
  }

  #datos-page .datos-teams-goals-card--map{
    min-height: 0;
  }

  #datos-page .datos-teams-goals-card-head{
    padding: 12px 13px 9px;
  }

  #datos-page .datos-teams-goals-card-title{
    font-size: 13px;
  }

  #datos-page .datos-teams-goals-card-subtitle{
    font-size: 10px;
  }

  #datos-page .datos-goals-html-chart-inner{
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  #datos-page .datos-goals-html-logo-btn{
    width: 32px;
    height: 32px;
    padding: 2px;
  }

  #datos-page .datos-teams-goals-graph{
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  #datos-page .datos-team-form-top{
    grid-template-columns: 38px minmax(0, 1fr);
  }

  #datos-page .datos-team-form-shield-wrap{
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  #datos-page .datos-team-form-shield{
    width: 29px;
    height: 29px;
  }

  #datos-page .datos-team-form-position{
    display: none;
  }

  #datos-page .datos-team-form-row{
    grid-template-columns: 42px minmax(0, 1fr);
  }

  #datos-page .datos-team-form-numbers{
    grid-column: 2 / 3;
    text-align: left;
    margin-top: -3px;
  }
}

@media (min-width: 1700px){
  #datos-page .datos-goals-html-chart-inner{
    height: 370px;
    min-height: 370px;
  }

  #datos-page .datos-teams-goals-card--map{
    min-height: 448px;
  }
}

@media (min-width: 2100px){
  #datos-page .datos-goals-html-chart-inner{
    height: 390px;
    min-height: 390px;
  }

  #datos-page .datos-teams-goals-card--map{
    min-height: 470px;
  }

  #datos-page .datos-goals-html-logo-btn{
    width: 48px;
    height: 48px;
  }
}

































/* =========================================================
   DATOS · Insights · Rendimiento casa/fuera en barras
   Versión con escudos en eje X + iconos local/visitante
   Pegar al FINAL del CSS de datos_page
   ========================================================= */

#datos-page .datos-home-away-bars-card{
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 14px;
  overflow: hidden;
}

#datos-page .datos-home-away-bars-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

#datos-page .datos-home-away-bars-title-block{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#datos-page .datos-home-away-bars-controls{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Mismo look base que el dropdown de grupos, ajustado al ancho de esta zona */
#datos-page .datos-home-away-dropdown{
  width: 160px;
  min-width: 160px;
  max-width: 190px;
}

#datos-page .datos-home-away-dropdown--sort{
  width: 205px;
  min-width: 205px;
  max-width: 235px;
}

/* También afecta a los dropdowns de orden de Equipos / Temporada,
   porque ahora comparten clases con los de este gráfico. */
#datos-page .datos-team-filter-sort.datos-home-away-dropdown--sort{
  width: 205px;
  min-width: 205px;
  max-width: 235px;
}

#datos-page .datos-home-away-bars-body{
  width: 100%;
  min-width: 0;
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#datos-page .datos-home-away-legend,
#datos-page .datos-home-away-side-legend{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

#datos-page .datos-home-away-legend{
  padding: 0 2px;
}

#datos-page .datos-home-away-side-legend{
  margin-top: -2px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .35px;
}

#datos-page .datos-home-away-legend-item,
#datos-page .datos-home-away-side-legend-item{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  color: rgba(255,255,255,.66);
  text-transform: uppercase;
  letter-spacing: .35px;
}

#datos-page .datos-home-away-legend-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

#datos-page .datos-home-away-legend-dot--win{
  background: linear-gradient(180deg, #42e071, #15803d);
  box-shadow: 0 0 10px rgba(34,197,94,.30);
}

#datos-page .datos-home-away-legend-dot--draw{
  background: linear-gradient(180deg, #facc15, #a16207);
  box-shadow: 0 0 10px rgba(234,179,8,.26);
}

#datos-page .datos-home-away-legend-dot--loss{
  background: linear-gradient(180deg, #fb7185, #b91c1c);
  box-shadow: 0 0 10px rgba(239,68,68,.26);
}

#datos-page .datos-home-away-legend-dot--gf{
  background: linear-gradient(180deg, #67e8f9, #0284c7);
  box-shadow: 0 0 10px rgba(56,189,248,.28);
}

#datos-page .datos-home-away-legend-dot--gc{
  background: linear-gradient(180deg, #fb7185, #be123c);
  box-shadow: 0 0 10px rgba(244,63,94,.28);
}

/* Compatibilidad por si queda algún chip C/F antiguo renderizado */
#datos-page .datos-home-away-side-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  color: white;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

#datos-page .datos-home-away-side-label{
  line-height: 1;
}

#datos-page .datos-home-away-side-legend-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.28));
}

#datos-page .datos-home-away-bars-scroll{
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.028), transparent 46%),
    rgba(255,255,255,.016);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

#datos-page .datos-home-away-bars-scroll::-webkit-scrollbar{
  height: 8px;
}

#datos-page .datos-home-away-bars-scroll::-webkit-scrollbar-track{
  background: transparent;
}

#datos-page .datos-home-away-bars-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

#datos-page .datos-home-away-bars-scroll::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.28);
}

#datos-page .datos-home-away-bars-plot{
  position: relative;
  display: block;
  max-width: none;
}

#datos-page .datos-home-away-bars-svg{
  position: absolute;
  inset: 0;
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: auto;
}

#datos-page .datos-home-away-bars-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#datos-page .datos-home-away-side-axis-img{
  position: absolute;
  transform: translate(-50%, -50%);
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
  pointer-events: auto;
  filter:
    drop-shadow(0 3px 6px rgba(0,0,0,.36))
    drop-shadow(0 0 5px rgba(255,255,255,.08));
  opacity: .88;
}

#datos-page .datos-home-away-side-axis-img--home{
  opacity: .92;
}

#datos-page .datos-home-away-side-axis-img--away{
  opacity: .82;
}

#datos-page .datos-home-away-team-axis-shield-wrap{
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 43%),
    rgba(11,18,30,.84);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.055),
    0 8px 17px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.08);
  pointer-events: auto;
}

#datos-page .datos-home-away-team-axis-shield-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 999px;
}

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

#datos-page .datos-home-away-team-axis-pos{
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 25px;
  height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 950;
  color: rgba(255,255,255,.54);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}

@media (max-width: 900px){
  #datos-page .datos-home-away-bars-head{
    align-items: flex-start;
  }

  #datos-page .datos-home-away-bars-controls{
    width: 100%;
    justify-content: flex-start;
  }

  #datos-page .datos-home-away-dropdown,
  #datos-page .datos-home-away-dropdown--sort,
  #datos-page .datos-team-filter-sort.datos-home-away-dropdown--sort{
    width: min(100%, 220px);
    min-width: 180px;
    max-width: 100%;
  }

  #datos-page .datos-home-away-legend,
  #datos-page .datos-home-away-side-legend{
    justify-content: flex-start;
  }
}

@media (max-width: 640px){
  #datos-page .datos-home-away-bars-body{
    padding: 11px;
  }

  #datos-page .datos-home-away-bars-controls{
    gap: 8px;
  }

  #datos-page .datos-home-away-dropdown,
  #datos-page .datos-home-away-dropdown--sort,
  #datos-page .datos-team-filter-sort.datos-home-away-dropdown--sort{
    width: 100%;
    min-width: 0;
  }

  #datos-page .datos-home-away-team-axis-shield-wrap{
    width: 34px;
    height: 34px;
    padding: 3px;
  }

  #datos-page .datos-home-away-side-axis-img{
    width: 15px;
    height: 15px;
  }
}

/* =========================================================
   DATOS · Insights · Casa/Fuera
   Leyenda completa en una sola fila
   ========================================================= */

#datos-page .datos-home-away-legend-row{
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;

  padding: 0 2px 2px;
  margin-top: -1px;
  margin-bottom: 1px;

  flex-wrap: nowrap;
}

#datos-page .datos-home-away-legend-row .datos-home-away-legend,
#datos-page .datos-home-away-legend-row .datos-home-away-side-legend{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
}

#datos-page .datos-home-away-legend-row .datos-home-away-legend--metric{
  padding-right: 3px;
  margin-right: 2px;
}

#datos-page .datos-home-away-legend-row .datos-home-away-side-legend{
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .35px;
}

#datos-page .datos-home-away-legend-row .datos-home-away-legend-item,
#datos-page .datos-home-away-legend-row .datos-home-away-side-legend-item{
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 900px){
  #datos-page .datos-home-away-legend-row{
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  #datos-page .datos-home-away-legend-row .datos-home-away-legend,
  #datos-page .datos-home-away-legend-row .datos-home-away-side-legend{
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}


/* =========================================================
   DATOS · Insights · Casa/Fuera
   Mantener gráfico centrado cuando sobra espacio
   ========================================================= */

#datos-page .datos-home-away-bars-scroll{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

#datos-page .datos-home-away-bars-plot{
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   Rankings: capa final de pintura
   ========================================================= */

#datos-page .datos-rankings-super-grid.datos-insights-player-grid{
  background: transparent !important;
  border-color: rgba(255,255,255,.085) !important;
  box-shadow: none !important;
  --ag-background-color: transparent;
  --ag-odd-row-background-color: rgba(28,36,31,.94);
  --ag-row-hover-color: rgba(216,182,61,.10);
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-root-wrapper,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-root,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-body,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-body-viewport,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-center-cols-viewport,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-center-cols-container{
  background: transparent !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row{
  --datos-rankings-row-bg: rgba(8,12,11,.99);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row-odd{
  --datos-rankings-row-bg: rgba(28,36,31,.94);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="0"]{
  --datos-rankings-row-bg: linear-gradient(90deg, rgba(216,182,61,.20), rgba(8,12,11,.99) 36%);
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="1"]{
  --datos-rankings-row-bg: linear-gradient(90deg, rgba(226,232,240,.16), rgba(28,36,31,.94) 36%);
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="2"]{
  --datos-rankings-row-bg: linear-gradient(90deg, rgba(251,146,60,.18), rgba(8,12,11,.99) 36%);
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row-hover,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row:hover{
  --datos-rankings-row-bg: rgba(216,182,61,.10);
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .ag-cell{
  background: var(--datos-rankings-row-bg) !important;
  color: rgba(255,255,255,.86) !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-cell-wrapper,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-cell-value{
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-num-cell:not([col-id="rank"]) .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-score-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-points-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gf-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gc-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-dg-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gap-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-change-cell .ag-cell-value{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px;
  min-height: 22px;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  color: rgba(236,253,245,.96) !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 4px 10px rgba(0,0,0,.16) !important;
  font-weight: 950 !important;
  opacity: 1 !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gf-cell .ag-cell-value{
  color: rgba(187,247,208,.98) !important;
  background: rgba(34,197,94,.16) !important;
  border-color: rgba(74,222,128,.38) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-gc-cell .ag-cell-value{
  color: rgba(254,202,202,.98) !important;
  background: rgba(248,113,113,.14) !important;
  border-color: rgba(248,113,113,.34) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-points-cell .ag-cell-value,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-insights-grid-score-cell .ag-cell-value{
  color: rgba(254,240,138,.98) !important;
  background: rgba(250,204,21,.13) !important;
  border-color: rgba(250,204,21,.32) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-rankings-key-cell{
  background:
    linear-gradient(
      90deg,
      rgba(var(--datos-rankings-key-rgb, 250,204,21), .22),
      rgba(var(--datos-rankings-key-rgb, 250,204,21), .10)
    ),
    var(--datos-rankings-row-bg) !important;
  box-shadow:
    inset 2px 0 0 rgba(var(--datos-rankings-key-rgb, 250,204,21), .90),
    inset -1px 0 0 rgba(var(--datos-rankings-key-rgb, 250,204,21), .28) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-rankings-key-cell .ag-cell-value{
  color: white !important;
  background: rgba(var(--datos-rankings-key-rgb, 250,204,21), .30) !important;
  border-color: rgba(var(--datos-rankings-key-rgb, 250,204,21), .62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 0 14px rgba(var(--datos-rankings-key-rgb, 250,204,21), .22) !important;
}

#datos-page .datos-rankings-super-grid.is-key-disciplina .ag-row .datos-rankings-card-total-cell .ag-cell-value{
  color: rgba(255,237,213,.98) !important;
  background: rgba(249,115,22,.24) !important;
  border-color: rgba(251,146,60,.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 14px rgba(249,115,22,.18) !important;
}

#datos-page .datos-rankings-super-grid.is-key-disciplina .ag-row .datos-rankings-yellow-card-cell .ag-cell-value{
  color: rgba(254,249,195,.98) !important;
  background: rgba(250,204,21,.24) !important;
  border-color: rgba(253,224,71,.64) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 14px rgba(250,204,21,.18) !important;
}

#datos-page .datos-rankings-super-grid.is-key-disciplina .ag-row .datos-rankings-red-card-cell .ag-cell-value{
  color: rgba(254,226,226,.98) !important;
  background: rgba(220,38,38,.26) !important;
  border-color: rgba(248,113,113,.66) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 14px rgba(239,68,68,.20) !important;
}

/* Rankings: igualar el tono al resto de tabs de liga al terminar de montar AG Grid. */
#datos-page .datos-league-rankings-section:not(:empty){
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#datos-page .datos-league-rankings-section .datos-rankings-section,
#datos-page .datos-league-rankings-section .datos-rankings-heading,
#datos-page .datos-league-rankings-section .datos-comparison-player-blocks,
#datos-page .datos-league-rankings-section .datos-rankings-tab-panel{
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid{
  background: transparent !important;
  background-image: none !important;
  --ag-background-color: transparent;
  --ag-header-background-color: rgba(7,12,12,.98);
  --ag-odd-row-background-color: rgba(24,31,27,.90);
  --ag-row-hover-color: rgba(255,255,255,.055);
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-root-wrapper,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-root,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-body,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-body-viewport,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-center-cols-viewport,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-center-cols-container{
  background: transparent !important;
  background-image: none !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-viewport,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-container,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-row,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-cell,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell{
  background: rgba(7,12,12,.98) !important;
  background-image: none !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-identity{
  background: linear-gradient(180deg, rgba(48,55,58,.82), rgba(22,27,27,.94)) !important;
  background-image: linear-gradient(180deg, rgba(48,55,58,.82), rgba(22,27,27,.94)) !important;
  border-left-color: rgba(255,255,255,.12) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-score{
  background: linear-gradient(180deg, rgba(216,182,61,.30), rgba(216,182,61,.075)) !important;
  background-image: linear-gradient(180deg, rgba(216,182,61,.30), rgba(216,182,61,.075)) !important;
  border-left-color: rgba(216,182,61,.32) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-superlative{
  background: linear-gradient(180deg, rgba(168,85,247,.24), rgba(168,85,247,.065)) !important;
  background-image: linear-gradient(180deg, rgba(168,85,247,.24), rgba(168,85,247,.065)) !important;
  border-left-color: rgba(168,85,247,.26) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-production{
  background: linear-gradient(180deg, rgba(34,197,94,.24), rgba(34,197,94,.065)) !important;
  background-image: linear-gradient(180deg, rgba(34,197,94,.24), rgba(34,197,94,.065)) !important;
  border-left-color: rgba(34,197,94,.28) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-usage{
  background: linear-gradient(180deg, rgba(59,130,246,.24), rgba(59,130,246,.065)) !important;
  background-image: linear-gradient(180deg, rgba(59,130,246,.24), rgba(59,130,246,.065)) !important;
  border-left-color: rgba(59,130,246,.28) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-discipline{
  background: linear-gradient(180deg, rgba(239,68,68,.24), rgba(239,68,68,.07)) !important;
  background-image: linear-gradient(180deg, rgba(239,68,68,.24), rgba(239,68,68,.07)) !important;
  border-left-color: rgba(239,68,68,.30) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-header-group-cell.datos-insights-group-keeper{
  background: linear-gradient(180deg, rgba(14,165,233,.24), rgba(14,165,233,.07)) !important;
  background-image: linear-gradient(180deg, rgba(14,165,233,.24), rgba(14,165,233,.07)) !important;
  border-left-color: rgba(14,165,233,.30) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="0"],
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="2"]{
  --datos-rankings-row-bg: rgba(8,12,11,.99) !important;
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row-odd,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row[row-index="1"]{
  --datos-rankings-row-bg: rgba(24,31,27,.90) !important;
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row-hover,
#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row:hover{
  --datos-rankings-row-bg: rgba(255,255,255,.055) !important;
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .ag-cell{
  background: var(--datos-rankings-row-bg) !important;
}

#datos-page .datos-rankings-super-grid.datos-insights-player-grid .ag-row .datos-rankings-key-cell{
  background:
    linear-gradient(
      90deg,
      rgba(var(--datos-rankings-key-rgb, 250,204,21), .22),
      rgba(var(--datos-rankings-key-rgb, 250,204,21), .10)
    ),
    var(--datos-rankings-row-bg) !important;
}

/* Precocidad de liga: solo el grid, sin tarjeta/contenedor de panel. */
#datos-page .datos-precocidad-section--floating{
  width: 100%;
  min-width: 0;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

#datos-page .datos-precocidad-section--floating .datos-precocidad-ag-grid{
  margin-top: 0 !important;
}

#datos-page #datos-team-panel-precocidad .datos-precocidad-ag-grid .ag-row,
#datos-page #datos-team-panel-precocidad .datos-precocidad-ag-grid .ag-row .ag-cell,
#datos-page #datos-team-panel-precocidad .datos-precocidad-ag-grid .ag-row .ag-cell-value{
  cursor: pointer;
}
