/* =========================================================
   DATOS · Partidos · Matriz temporada por equipo
   Versión con resultado + escudo del rival
   ========================================================= */

#datos-page .datos-season-matrix-section {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  margin-top: 18px;
  padding: 14px 14px 16px;

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

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-season-soft, rgba(255,255,255,.04)) 30%, rgba(255,255,255,.035)) 0%,
      rgba(255,255,255,.025) 52%,
      rgba(0,0,0,.12) 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 16px 34px rgba(0,0,0,.14);

  color: white;
}

#datos-page .datos-season-matrix-section,
#datos-page .datos-season-matrix-section * {
  box-sizing: border-box;
}


/* =========================================================
   DATOS · Matriz temporada · cabecera
   ========================================================= */

#datos-page .datos-season-matrix-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  width: 100%;
  min-width: 0;

  margin-bottom: 12px;
}

#datos-page .datos-season-matrix-head-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#datos-page .datos-season-matrix-title {
  color: white;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
}

#datos-page .datos-season-matrix-subtitle {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  margin-top: 4px;
}


/* =========================================================
   DATOS · Matriz temporada · leyenda
   ========================================================= */

#datos-page .datos-season-matrix-legend {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;

  min-width: 0;
}

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

  padding: 6px 9px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);

  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

#datos-page .datos-season-matrix-legend-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  border-radius: 999px;
}

#datos-page .datos-season-matrix-legend-dot--win {
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 10px rgba(34,197,94,.28);
}

#datos-page .datos-season-matrix-legend-dot--draw {
  background: rgba(250,204,21,.95);
  box-shadow: 0 0 10px rgba(250,204,21,.24);
}

#datos-page .datos-season-matrix-legend-dot--loss {
  background: rgba(248,113,113,.95);
  box-shadow: 0 0 10px rgba(248,113,113,.24);
}

#datos-page .datos-season-matrix-legend-dot--pending {
  background: rgba(148,163,184,.82);
  box-shadow: 0 0 10px rgba(148,163,184,.16);
}


/* =========================================================
   DATOS · Matriz temporada · scroll
   ========================================================= */

#datos-page .datos-season-matrix-scroll {
  width: 100%;
  min-width: 0;

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

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

  background: rgba(4,7,8,.32);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035);

  scrollbar-width: thin;
}

#datos-page .datos-season-matrix-scroll::-webkit-scrollbar {
  height: 10px;
}

#datos-page .datos-season-matrix-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.025);
}

#datos-page .datos-season-matrix-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}

#datos-page .datos-season-matrix-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.24);
}


/* =========================================================
   DATOS · Matriz temporada · filas
   ========================================================= */

#datos-page .datos-season-matrix-row {
  display: grid;
  align-items: stretch;

  width: max-content;
  min-width: 100%;

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

#datos-page .datos-season-matrix-row:last-child {
  border-bottom: none;
}

#datos-page .datos-season-matrix-row:nth-child(even):not(.datos-season-matrix-row--header) {
  background: rgba(255,255,255,.022);
}

#datos-page .datos-season-matrix-row:not(.datos-season-matrix-row--header):hover {
  background: rgba(255,255,255,.060);
}

#datos-page .datos-season-matrix-row--header {
  position: sticky;
  top: 0;
  z-index: 4;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.085) 0%,
      rgba(255,255,255,.045) 100%
    );

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


/* =========================================================
   DATOS · Matriz temporada · columna equipo
   ========================================================= */

#datos-page .datos-season-matrix-team-header,
#datos-page .datos-season-matrix-team-cell {
  position: sticky;
  left: 0;
  z-index: 3;

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

  background: rgba(7,9,9,.96);
}

#datos-page .datos-season-matrix-row--header .datos-season-matrix-team-header {
  z-index: 5;
  background: rgba(8,10,10,.98);
}

#datos-page .datos-season-matrix-team-header {
  min-height: 42px;

  display: flex;
  align-items: center;

  padding: 0 12px;

  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
}

#datos-page .datos-season-matrix-team-cell {
  min-height: 50px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 7px 10px;
}

#datos-page .datos-season-matrix-team-logo-wrap {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;

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

  border-radius: 999px;

  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),
    0 5px 12px rgba(0,0,0,.18);
}

#datos-page .datos-season-matrix-team-logo {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;

  object-fit: contain;
  display: block;

  border-radius: 999px;
}

#datos-page .datos-season-matrix-team-fallback {
  width: 28px;
  height: 28px;

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

  color: white;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;

  border-radius: 999px;
}

#datos-page .datos-season-matrix-team-name {
  min-width: 0;

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

  color: rgba(255,255,255,.94);

  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15px;
}


/* =========================================================
   DATOS · Matriz temporada · cabeceras jornadas
   ========================================================= */

#datos-page .datos-season-matrix-jornada-header {
  min-height: 42px;

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

  padding: 0 4px;

  border-right: 1px solid rgba(255,255,255,.05);

  color: rgba(255,255,255,.84);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}


/* =========================================================
   DATOS · Matriz temporada · celdas base
   ========================================================= */

#datos-page .datos-season-matrix-cell {
  min-height: 50px;

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

  position: relative;

  padding: 6px 5px;

  border-right: 1px solid rgba(255,255,255,.035);

  color: rgba(255,255,255,.82);

  font-size: 11px;
  font-weight: 950;
  line-height: 1;

  transition:
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .16s ease,
    border-color .16s ease;
}

#datos-page .datos-season-matrix-row:not(.datos-season-matrix-row--header):hover .datos-season-matrix-cell {
  background: rgba(255,255,255,.040);
}


/* =========================================================
   DATOS · Matriz temporada · resultado + rival
   ========================================================= */

#datos-page .datos-season-matrix-cell-result {
  position: relative;
  z-index: 1;

  min-width: 62px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 3px 7px 3px 4px;

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

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

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 4px 10px rgba(0,0,0,.14);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

#datos-page .datos-season-matrix-opponent-logo-wrap {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;

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

  overflow: hidden;

  border-radius: 999px;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 3px 8px rgba(0,0,0,.14);
}

#datos-page .datos-season-matrix-opponent-logo {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;

  object-fit: contain;
  display: block;

  border-radius: 999px;
}

#datos-page .datos-season-matrix-opponent-fallback {
  width: 18px;
  height: 18px;

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

  color: rgba(255,255,255,.92);

  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.2px;

  border-radius: 999px;
}

#datos-page .datos-season-matrix-score-text {
  min-width: 25px;

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

  color: rgba(255,255,255,.92);

  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.15px;
}


/* =========================================================
   DATOS · Matriz temporada · pendiente / vacío
   ========================================================= */

#datos-page .datos-season-matrix-cell-label {
  position: relative;
  z-index: 1;

  min-width: 30px;
  min-height: 30px;

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

  border-radius: 999px;

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

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

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 4px 10px rgba(0,0,0,.14);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

#datos-page .datos-season-matrix-cell-label--pending-simple {
  min-width: 30px;
  min-height: 30px;

  color: rgba(226,232,240,.72);

  background: rgba(148,163,184,.11);
  border-color: rgba(148,163,184,.22);

  font-size: 13px;
  font-weight: 950;
}

#datos-page .datos-season-matrix-cell--pending .datos-season-matrix-cell-label {
  color: rgba(226,232,240,.72);

  background: rgba(148,163,184,.11);
  border-color: rgba(148,163,184,.22);
}

#datos-page .datos-season-matrix-cell--empty {
  color: rgba(255,255,255,.26);
  font-size: 12px;
  font-weight: 850;
}


/* =========================================================
   DATOS · Matriz temporada · local / visitante
   ========================================================= */

#datos-page .datos-season-matrix-cell-side {
  position: absolute;
  right: 4px;
  bottom: 4px;

  color: rgba(255,255,255,.42);

  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}


/* =========================================================
   DATOS · Matriz temporada · colores por resultado
   ========================================================= */

/* Victoria */
#datos-page .datos-season-matrix-cell--win .datos-season-matrix-cell-result,
#datos-page .datos-season-matrix-cell--win .datos-season-matrix-cell-label {
  color: rgba(187,247,208,1);

  background: rgba(34,197,94,.20);
  border-color: rgba(74,222,128,.40);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 4px 11px rgba(0,0,0,.16),
    0 0 14px rgba(34,197,94,.14);
}

#datos-page .datos-season-matrix-cell--win .datos-season-matrix-score-text {
  color: rgba(220,252,231,1);
}

/* Empate */
#datos-page .datos-season-matrix-cell--draw .datos-season-matrix-cell-result,
#datos-page .datos-season-matrix-cell--draw .datos-season-matrix-cell-label {
  color: rgba(254,240,138,1);

  background: rgba(250,204,21,.18);
  border-color: rgba(250,204,21,.40);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 4px 11px rgba(0,0,0,.16),
    0 0 14px rgba(250,204,21,.12);
}

#datos-page .datos-season-matrix-cell--draw .datos-season-matrix-score-text {
  color: rgba(254,249,195,1);
}

/* Derrota */
#datos-page .datos-season-matrix-cell--loss .datos-season-matrix-cell-result,
#datos-page .datos-season-matrix-cell--loss .datos-season-matrix-cell-label {
  color: rgba(254,202,202,1);

  background: rgba(248,113,113,.18);
  border-color: rgba(248,113,113,.40);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 4px 11px rgba(0,0,0,.16),
    0 0 14px rgba(248,113,113,.12);
}

#datos-page .datos-season-matrix-cell--loss .datos-season-matrix-score-text {
  color: rgba(254,226,226,1);
}

/* Pendiente */
#datos-page .datos-season-matrix-cell--pending {
  opacity: .86;
}


/* =========================================================
   DATOS · Matriz temporada · hover
   ========================================================= */

#datos-page .datos-season-matrix-cell:hover .datos-season-matrix-cell-result,
#datos-page .datos-season-matrix-cell:hover .datos-season-matrix-cell-label {
  transform: translateY(-1px) scale(1.045);
  border-color: rgba(255,255,255,.34);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 7px 16px rgba(0,0,0,.20),
    0 0 16px rgba(255,255,255,.06);
}

#datos-page .datos-season-matrix-cell:hover .datos-season-matrix-opponent-logo-wrap {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.14);
}


/* =========================================================
   DATOS · Matriz temporada · responsive
   ========================================================= */

@media (max-width: 900px) {
  #datos-page .datos-season-matrix-section {
    margin-top: 16px;
    padding: 12px;
  }

  #datos-page .datos-season-matrix-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #datos-page .datos-season-matrix-legend {
    justify-content: flex-start;
  }

  #datos-page .datos-season-matrix-team-header,
  #datos-page .datos-season-matrix-team-cell {
    min-width: 205px;
  }

  #datos-page .datos-season-matrix-team-name {
    font-size: 11px;
  }

  #datos-page .datos-season-matrix-cell {
    min-height: 48px;
    padding: 5px 4px;
  }

  #datos-page .datos-season-matrix-cell-result {
    min-width: 58px;
    height: 28px;
    gap: 4px;
    padding: 3px 6px 3px 4px;
  }

  #datos-page .datos-season-matrix-opponent-logo-wrap {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  #datos-page .datos-season-matrix-opponent-logo {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  #datos-page .datos-season-matrix-opponent-fallback {
    width: 16px;
    height: 16px;
    font-size: 6px;
  }

  #datos-page .datos-season-matrix-score-text {
    min-width: 23px;
    font-size: 10px;
  }

  #datos-page .datos-season-matrix-cell-label,
  #datos-page .datos-season-matrix-cell-label--pending-simple {
    min-width: 28px;
    min-height: 28px;
    font-size: 12px;
  }

  #datos-page .datos-season-matrix-cell-side {
    right: 3px;
    bottom: 3px;
    font-size: 7px;
  }
}




















#datos-page .datos-match-matrix-chip.is-clickable,
#datos-page .datos-team-season-match-chip.is-clickable {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  border: inherit;
  background: inherit;
}

#datos-page .datos-match-matrix-chip.is-clickable:hover,
#datos-page .datos-team-season-match-chip.is-clickable:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

#datos-page .datos-match-matrix-chip.is-disabled,
#datos-page .datos-team-season-match-chip.is-disabled {
  opacity: .55;
  cursor: default;
}
