/* =========================================================
   DATOS · ACTA
   Estructura:
   01. Base / tarjetas comunes
   02. Header liga / controles / grupo
   03. Switch modo liga / equipo
   04. Barra de jornadas
   05. Barra de equipos
   06. Barra de partidos / sidebar
   07. Layout principal
   08. Header del partido
   09. Bloque único acta: header + contenido
   10. Tabs partido / previa
   11. Link externo + acciones
   12. HTML externo debug
   13. Datos organizados del acta
   14. Previa · base
   15. Previa · clasificación
   16. Previa · jugadores
   17. Previa · XI más utilizado
   18. Clickables
   19. Responsive
   ========================================================= */


/* =========================================================
   01. ACTA · BASE / TARJETAS COMUNES
   ========================================================= */

#datos-page .datos-acta-header-card,
#datos-page .datos-acta-body-card {
  color: white;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-soft, rgba(255,255,255,.055)) 18%, rgba(255,255,255,.04)) 0%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;

  padding: 16px 18px;
  margin-bottom: 14px;
}

#datos-page .datos-acta-header-card {
  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-accent, rgba(255,255,255,.35)) 24%,
      rgba(255,255,255,.10)
    );
}


/* =========================================================
   ACTA · PLANTILLAS · SELECTOR EQUIPO
   ========================================================= */

#datos-page .datos-acta-plantillas-content {
  gap: 14px;
}

#datos-page .datos-acta-plantillas-switch {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#datos-page .datos-acta-plantillas-switch-btn {
  min-width: 0;
  min-height: 72px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px 12px;
  color: rgba(255,255,255,.92);
  background:
    radial-gradient(circle at 20% 0%, var(--datos-acta-previa-soft, rgba(255,255,255,.06)), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

#datos-page .datos-acta-plantillas-switch-btn:hover {
  border-color: rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 20% 0%, var(--datos-acta-previa-soft, rgba(255,255,255,.08)), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.04));
}

#datos-page .datos-acta-plantillas-switch-btn.is-active {
  border-color: var(--datos-acta-previa-accent, rgba(255,255,255,.35));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 0 1px rgba(0,0,0,.32),
    0 10px 26px rgba(0,0,0,.24);
}

#datos-page .datos-acta-plantillas-switch-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.24);
  padding: 5px;
}

#datos-page .datos-acta-plantillas-switch-logo.is-fallback {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: white;
  padding: 0;
}

#datos-page .datos-acta-plantillas-switch-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#datos-page .datos-acta-plantillas-switch-kicker {
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--datos-acta-previa-accent, rgba(255,255,255,.78));
  opacity: .92;
}

#datos-page .datos-acta-plantillas-switch-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.08;
  color: white;
}

#datos-page .datos-acta-plantillas-switch-code {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.58);
}

#datos-page .datos-acta-plantillas-team-content {
  width: 100%;
  min-width: 0;
  position: relative;
}

#datos-page .datos-acta-plantillas-team-content .datos-team-players-card--embedded {
  margin: 0;
}

#datos-page .datos-acta-plantillas-team-panel {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-plantillas-team-panel.is-hidden {
  display: none;
}

#datos-page .datos-acta-plantillas-team-panel.is-active {
  display: block;
}

#datos-page .datos-acta-body-card {
  min-height: 260px;
}

#datos-page .datos-acta-content-card,
#datos-page .datos-acta-tab-content {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 12px;
}

#datos-page .datos-acta-meta-chip {
  min-height: 28px;

  display: inline-flex;
  align-items: center;

  padding: 5px 10px;

  border-radius: 999px;

  color: white;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 11px;
  font-weight: 750;
}

#datos-page .datos-acta-placeholder-title {
  margin-bottom: 8px;

  color: white;

  font-size: 17px;
  font-weight: 900;
}

#datos-page .datos-acta-placeholder-text {
  color: white;
  opacity: .72;

  font-size: 13px;
  line-height: 1.45;
}

#datos-page .datos-acta-error-text {
  margin-top: 12px;

  color: rgba(255,255,255,.54);

  font-size: 11px;
  word-break: break-word;
}


/* =========================================================
   02. ACTA · HEADER LIGA / CONTROLES / GRUPO
   ========================================================= */

#datos-page .datos-acta-header-card--league {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: center;

  padding: 12px;
  margin-bottom: 14px;

  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-soft, rgba(255,255,255,.055)) 22%, rgba(255,255,255,.04)) 0%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-accent, rgba(255,255,255,.35)) 18%,
      rgba(255,255,255,.10)
    );

  box-shadow:
    0 18px 40px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.045);
}

#datos-page .datos-acta-header-card--league .datos-league-header-left {
  min-width: 0;
}

#datos-page .datos-acta-header-controls {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 245px);
  gap: 10px;
  align-items: center;
}

#datos-page .datos-acta-header-jornadas {
  width: 100%;
  min-width: 0;

  overflow: hidden;
}

#datos-page .datos-acta-header-group {
  min-width: 0;
}

#datos-page .datos-acta-header-group--with-mode {
  display: flex;
  flex-direction: column;
  gap: 7px;
}


/* =========================================================
   03. ACTA · SWITCH MODO LIGA / EQUIPO
   ========================================================= */

#datos-page .datos-acta-mode-switch {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;

  padding: 4px;

  border-radius: 999px;

  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-mode-btn {
  appearance: none;
  -webkit-appearance: none;

  min-height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 10px;

  border-radius: 999px;
  border: 1px solid transparent;

  color: rgba(255,255,255,.62);
  background: transparent;

  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;

  cursor: pointer;

  transition:
    transform .16s ease,
    color .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

#datos-page .datos-acta-mode-btn:hover {
  color: white;
  background: rgba(255,255,255,.07);
}

#datos-page .datos-acta-mode-btn.is-active {
  color: white;

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-mode-accent, rgba(255,255,255,.35)) 26%,
        rgba(255,255,255,.09)
      ),
      rgba(255,255,255,.065)
    );

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-mode-accent, rgba(255,255,255,.35)) 42%,
      rgba(255,255,255,.12)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 18px rgba(0,0,0,.16);
}


/* =========================================================
   04. ACTA · BARRA DE JORNADAS
   ========================================================= */

#datos-page .datos-acta-jornadas-topbar {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 8px;

  box-sizing: border-box;
}

#datos-page .datos-acta-jornadas-strip-wrap {
  flex: 1 1 auto;

  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 1px;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#datos-page .datos-acta-jornadas-strip-wrap::-webkit-scrollbar {
  height: 5px;
}

#datos-page .datos-acta-jornadas-strip-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
  border-radius: 999px;
}

#datos-page .datos-acta-jornadas-strip-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

#datos-page .datos-acta-jornadas-strip {
  width: max-content;
  min-width: 100%;

  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
}

#datos-page .datos-acta-jornada-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

#datos-page .datos-acta-jornada-center-label {
  flex: 0 0 auto;

  max-width: 150px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   05. ACTA · BARRA DE EQUIPOS
   ========================================================= */

#datos-page .datos-acta-header-teams {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px 10px 6px;

  box-sizing: border-box;
  border-radius: 22px;

  color: white;

  background:
    radial-gradient(
      circle at 0% 0%,
      color-mix(
        in srgb,
        var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 10%,
        transparent
      ) 0%,
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(12,18,18,.98) 0%,
      rgba(5,9,9,.99) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 26%,
      rgba(255,255,255,.10)
    );

  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.055);

  overflow: hidden;
}

#datos-page .datos-acta-team-bar {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-team-bar-track {
  width: 100%;
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 13px;

  padding: 11px 10px 6px;

  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#datos-page .datos-acta-team-bar-track::-webkit-scrollbar {
  height: 5px;
}

#datos-page .datos-acta-team-bar-track::-webkit-scrollbar-track,
#datos-page .datos-acta-team-bar-track::-webkit-scrollbar-corner {
  background: transparent;
}

#datos-page .datos-acta-team-bar-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

#datos-page .datos-acta-team-bar-btn {
  appearance: none;
  -webkit-appearance: none;

  position: relative;

  width: 60px;
  height: 60px;
  min-width: 60px;
  flex: 0 0 60px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);

  color: white;
  background: rgba(255,255,255,.045);

  cursor: pointer;

  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease,
    filter .22s ease;
}

#datos-page .datos-acta-team-bar-btn:hover {
  transform: scale(1.025);

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 65%,
      rgba(255,255,255,.22)
    );

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 22%,
        rgba(255,255,255,.06)
      ) 0%,
      rgba(255,255,255,.06) 100%
    );

  box-shadow:
    0 8px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.07);
}

#datos-page .datos-acta-team-bar-btn.is-active {
  transform: scale(1.015);

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 85%,
      rgba(255,255,255,.40)
    );

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 32%,
        rgba(255,255,255,.08)
      ) 0%,
      rgba(255,255,255,.08) 100%
    );

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 0 22px
      color-mix(
        in srgb,
        var(--datos-acta-team-accent, var(--datos-acta-accent, rgba(255,255,255,.35))) 30%,
        transparent
      ),
    inset 0 1px 0 rgba(255,255,255,.10);
}

#datos-page .datos-acta-team-bar-logo-wrap,
#datos-page .datos-acta-team-bar-logo,
#datos-page .datos-acta-team-bar-logo-fallback {
  width: 44px;
  height: 44px;
}

#datos-page .datos-acta-team-bar-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-acta-team-bar-logo,
#datos-page .datos-acta-team-bar-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 13px;
  font-weight: 850;

  filter: drop-shadow(0 3px 5px rgba(0,0,0,.28));
}

#datos-page .datos-acta-team-bar-empty {
  width: 100%;

  color: rgba(255,255,255,.72);

  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

#datos-page .datos-acta-team-bar-name {
  display: none;
}


/* ---------- Tooltip equipo ---------- */

#datos-page .datos-acta-team-bar-btn::after {
  content: attr(title);

  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 80;

  max-width: 260px;

  padding: 7px 10px;

  border-radius: 10px;

  color: white;
  background: rgba(5,8,12,.96);
  border: 1px solid rgba(255,255,255,.12);

  box-shadow: 0 10px 24px rgba(0,0,0,.28);

  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  opacity: 0;
  pointer-events: none;

  transform: translateX(-50%) translateY(4px);

  transition:
    opacity .16s ease,
    transform .16s ease;
}

#datos-page .datos-acta-team-bar-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* =========================================================
   06. ACTA · BARRA DE PARTIDOS / SIDEBAR
   ========================================================= */

#datos-page .datos-acta-sidebar-card {
  position: sticky;
  top: 12px;

  width: 100%;
  min-width: 0;

  padding: 12px;
  box-sizing: border-box;

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-sidebar-soft, rgba(255,255,255,.06)) 16%, rgba(255,255,255,.04)) 0%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 14%,
      rgba(255,255,255,.10)
    );

  box-shadow:
    0 18px 40px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.045);

  overflow: hidden;
}

#datos-page .datos-acta-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: calc(100vh - 260px);

  overflow-y: auto;
  overflow-x: hidden;

  padding-right: 3px;
}

#datos-page .datos-acta-sidebar-empty {
  padding: 8px 2px 2px;

  color: rgba(255,255,255,.66);

  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}


/* ---------- Header · barra horizontal de partidos ---------- */

#datos-page .datos-acta-header-matches-strip {
  grid-column: 1 / -1;

  width: 100%;
  min-width: 0;

  margin-top: -4px;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-card {
  position: relative;
  top: auto;

  width: 100%;
  min-width: 0;

  padding: 8px;

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 7%,
        rgba(255,255,255,.04)
      ),
      rgba(255,255,255,.020)
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 20%,
      rgba(255,255,255,.085)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 20px rgba(0,0,0,.10);
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-list {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: row;
  gap: 8px;

  max-height: none;

  overflow-x: auto;
  overflow-y: hidden;

  padding-right: 0;
  padding-bottom: 2px;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-list::-webkit-scrollbar {
  height: 5px;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
  border-radius: 999px;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}


/* ---------- Partido · botón ---------- */

#datos-page .datos-acta-sidebar-match-btn {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 9px;

  padding: 9px 10px;

  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.085);

  color: white;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.055) 0%,
      rgba(255,255,255,.028) 100%
    );

  text-align: left;
  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

#datos-page .datos-acta-sidebar-match-btn:hover {
  transform: translateY(-1px);

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 42%,
      rgba(255,255,255,.14)
    );

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 16%,
        rgba(255,255,255,.07)
      ),
      rgba(255,255,255,.035)
    );

  box-shadow:
    0 8px 18px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-acta-sidebar-match-btn.is-active {
  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 58%,
      rgba(255,255,255,.18)
    );

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 24%,
        rgba(255,255,255,.08)
      ),
      rgba(255,255,255,.045)
    );

  box-shadow:
    0 0 0 1px
      color-mix(
        in srgb,
        var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 32%,
        transparent
      ),
    0 10px 22px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.12);
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-match-btn {
  flex: 0 0 128px;

  width: 128px;
  min-width: 128px;
  min-height: 76px;

  gap: 6px;
  padding: 7px 8px;

  border-radius: 13px;
}


/* ---------- Partido · fecha/hora ---------- */

#datos-page .datos-acta-sidebar-top-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0;

  text-align: center;
}

#datos-page .datos-acta-sidebar-top-chip {
  min-height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 7px;

  border-radius: 999px;

  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);

  font-size: 9.5px;
  font-weight: 900;
  white-space: nowrap;
}

#datos-page .datos-acta-sidebar-top-date {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: rgba(255,255,255,.62);

  font-size: 10.5px;
  font-weight: 800;
}

#datos-page .datos-acta-sidebar-top-time {
  color: rgba(255,255,255,.82);

  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

#datos-page .datos-acta-sidebar-top-datetime {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: rgba(255,255,255,.68);

  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-top-chip,
#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-top-date,
#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-top-time {
  display: none;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-top-datetime {
  max-width: 100%;

  color: rgba(255,255,255,.72);

  font-size: 9.8px;
  line-height: 1.1;
}


/* ---------- Partido · marcador ---------- */

#datos-page .datos-acta-sidebar-score-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;

  padding: 7px 8px;

  border-radius: 13px;

  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.07);
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-score-row {
  padding: 5px 6px;
  gap: 6px;

  border-radius: 12px;
}

#datos-page .datos-acta-sidebar-mini-logo-wrap {
  min-width: 0;

  display: flex;
  align-items: center;
}

#datos-page .datos-acta-sidebar-mini-logo-wrap.is-local {
  justify-content: flex-start;
}

#datos-page .datos-acta-sidebar-mini-logo-wrap.is-away {
  justify-content: flex-end;
}

#datos-page .datos-acta-sidebar-mini-logo,
#datos-page .datos-acta-sidebar-mini-logo-fallback {
  width: 32px;
  height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-mini-logo,
#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-mini-logo-fallback {
  width: 26px;
  height: 26px;

  font-size: 8.5px;
}

#datos-page .datos-acta-sidebar-score-pill {
  min-width: 46px;
  min-height: 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 9px;

  border-radius: 999px;

  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);

  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1px;
  white-space: nowrap;
}

#datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-score-pill {
  min-width: 40px;
  min-height: 22px;

  padding: 0 7px;

  font-size: 9.2px;
}

#datos-page .datos-acta-sidebar-score-pill.has-result {
  color: white;

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 26%,
        rgba(255,255,255,.10)
      ),
      rgba(255,255,255,.075)
    );

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-sidebar-accent, rgba(255,255,255,.35)) 42%,
      rgba(255,255,255,.14)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 6px 14px rgba(0,0,0,.14);
}

#datos-page .datos-acta-sidebar-score-pill.is-pending {
  opacity: .72;
}


/* ---------- Sidebar antiguo · compatibilidad ---------- */

#datos-page .datos-acta-sidebar-teams,
#datos-page .datos-acta-sidebar-team-row,
#datos-page .datos-acta-sidebar-team-name,
#datos-page .datos-acta-sidebar-meta {
  display: none;
}

#datos-page .datos-acta-sidebar-team-logo,
#datos-page .datos-acta-sidebar-team-logo-fallback {
  width: 26px;
  height: 26px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 9px;
  font-weight: 900;
}

#datos-page .datos-acta-sidebar-meta-chip {
  flex: 0 0 auto;

  padding: 4px 7px;

  border-radius: 999px;

  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-sidebar-meta-text {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ---------- Modo equipo · equipo seleccionado + partidos ---------- */

#datos-page .datos-acta-header-matches-strip.is-team-mode {
  grid-column: 1 / -1;

  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-header-matches-strip.is-team-mode .datos-acta-team-matches-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(280px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

#datos-page .datos-acta-header-matches-strip.is-team-mode .datos-acta-selected-team-block {
  width: 100%;
  min-width: 280px;
  max-width: 390px;
  height: 100%;

  display: flex;
  align-items: center;
  gap: 15px;

  padding: 6px 10px;

  box-sizing: border-box;
  border-radius: 16px;

  color: white;
  background: transparent;
  border: 1px solid rgba(255,255,255,.045);

  box-shadow: none;

  overflow: hidden;
}

#datos-page .datos-acta-header-matches-strip.is-team-mode .datos-acta-header-matches-main {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-header-matches-strip.is-team-mode .datos-acta-header-matches-main .datos-acta-sidebar-card {
  width: 100%;
  min-width: 0;
  height: 100%;

  margin: 0;
}

#datos-page .datos-acta-selected-team-logo-wrap,
#datos-page .datos-acta-selected-team-logo,
#datos-page .datos-acta-selected-team-logo-fallback {
  width: 58px;
  height: 58px;
}

#datos-page .datos-acta-selected-team-logo-wrap {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-acta-selected-team-logo,
#datos-page .datos-acta-selected-team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 14px;
  font-weight: 950;
}

#datos-page .datos-acta-selected-team-text {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

#datos-page .datos-acta-selected-team-kicker {
  display: none;
}

#datos-page .datos-acta-selected-team-name {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: white;

  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}


/* =========================================================
   07. ACTA · LAYOUT PRINCIPAL
   ========================================================= */

#datos-page .datos-acta-detail-layout {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#datos-page .datos-acta-detail-layout--full {
  display: block;
  grid-template-columns: none;
}

#datos-page .datos-acta-detail-layout--full > .datos-acta-content-card,
#datos-page .datos-acta-detail-layout--full > .datos-acta-main-section {
  width: 100%;
  min-width: 0;
}


/* =========================================================
   08. ACTA · HEADER DEL PARTIDO
   ========================================================= */

#datos-page .datos-acta-match-header-card {
  width: 100%;
  min-width: 0;

  padding: 14px;
  margin-bottom: 14px;

  box-sizing: border-box;
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-match-soft, rgba(255,255,255,.055)) 22%, rgba(255,255,255,.04)) 0%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-match-accent, rgba(255,255,255,.35)) 22%,
      rgba(255,255,255,.10)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 14px 30px rgba(0,0,0,.16);

  overflow: hidden;
}


/* ---------- Header partido · contexto ---------- */

#datos-page .datos-acta-match-context-row {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 13px;
}

#datos-page .datos-acta-match-context-left {
  min-width: 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

#datos-page .datos-acta-match-context-right {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#datos-page .datos-acta-match-context-chip {
  min-height: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 8px;

  border-radius: 999px;

  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);

  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

#datos-page .datos-acta-match-context-date,
#datos-page .datos-acta-match-context-time {
  min-height: 22px;

  display: inline-flex;
  align-items: center;

  color: rgba(255,255,255,.68);

  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

#datos-page .datos-acta-match-context-time {
  color: rgba(255,255,255,.86);
  font-weight: 950;
}

#datos-page .datos-acta-match-header-status {
  min-height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 9px;

  border-radius: 999px;

  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);

  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-match-header-status.is-played {
  color: rgba(220,252,231,.98);
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.24);
}

#datos-page .datos-acta-match-header-status.is-pending {
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.10);
}


/* ---------- Header partido · equipos + marcador ---------- */

#datos-page .datos-acta-match-header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;

  padding: 13px;

  border-radius: 16px;

  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-match-header-team {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;
}

#datos-page .datos-acta-match-header-team.is-away {
  flex-direction: row-reverse;
  text-align: right;
}

#datos-page .datos-acta-match-header-logo-wrap {
  flex: 0 0 auto;
}

#datos-page .datos-acta-match-header-team-logo,
#datos-page .datos-acta-match-header-team-logo-fallback {
  width: 54px;
  height: 54px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 13px;
  font-weight: 950;

  transition: transform .16s ease;
}

#datos-page .datos-acta-match-header-team-text {
  min-width: 0;
}

#datos-page .datos-acta-match-header-team-name {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: white;

  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

#datos-page .datos-acta-match-header-team-code {
  margin-top: 4px;

  color: rgba(255,255,255,.48);

  font-size: 10.5px;
  font-weight: 750;
}

#datos-page .datos-acta-match-header-score {
  min-width: 82px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 15px;

  border-radius: 999px;

  color: white;

  font-size: 20px;
  font-weight: 950;

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-match-accent, rgba(255,255,255,.35)) 24%,
        rgba(255,255,255,.10)
      ),
      rgba(255,255,255,.075)
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-match-accent, rgba(255,255,255,.35)) 38%,
      rgba(255,255,255,.14)
    );
}

#datos-page .datos-acta-match-header-score.has-result {
  font-size: 22px;
}


/* ---------- Header partido · equipos clicables ---------- */

#datos-page .datos-acta-match-header-team-btn {
  appearance: none;
  -webkit-appearance: none;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 14px;

  color: inherit;
  background: transparent;

  font: inherit;
  text-align: inherit;

  cursor: pointer;

  transition:
    transform .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

#datos-page .datos-acta-match-header-team-btn:hover {
  transform: translateY(-1px);

  background:
    color-mix(
      in srgb,
      var(--datos-acta-match-accent, rgba(255,255,255,.35)) 10%,
      rgba(255,255,255,.035)
    );

  box-shadow:
    0 8px 18px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-acta-match-header-team-btn:hover .datos-acta-match-header-team-name {
  text-decoration: underline;
}

#datos-page .datos-acta-match-header-team-btn:hover .datos-acta-match-header-team-logo,
#datos-page .datos-acta-match-header-team-btn:hover .datos-acta-match-header-team-logo-fallback {
  transform: scale(1.04);
}

#datos-page .datos-acta-match-header-team-btn.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: .65;
}


/* ---------- Header partido · compatibilidad estructura antigua ---------- */

#datos-page .datos-acta-match-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;
}

#datos-page .datos-acta-match-header-title-block {
  min-width: 0;
}

#datos-page .datos-acta-match-header-eyebrow {
  margin-bottom: 4px;

  color: rgba(255,255,255,.56);

  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .35px;
}

#datos-page .datos-acta-match-header-title {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: white;

  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

#datos-page .datos-acta-match-header-status-row {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

#datos-page .datos-acta-match-header-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;

  margin-top: 12px;
}

#datos-page .datos-acta-match-header-meta-item {
  min-width: 0;

  padding: 9px 10px;

  border-radius: 12px;

  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-match-header-meta-label {
  color: rgba(255,255,255,.46);

  font-size: 9.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .25px;
}

#datos-page .datos-acta-match-header-meta-value {
  margin-top: 4px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: rgba(255,255,255,.86);

  font-size: 11px;
  font-weight: 750;
}


/* =========================================================
   09. ACTA · BLOQUE ÚNICO: HEADER + CONTENIDO
   ========================================================= */

#datos-page .datos-acta-main-section {
  width: 100%;
  min-width: 0;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 22px;

  color: white;

  background:
    radial-gradient(
      circle at 0% 0%,
      color-mix(in srgb, var(--datos-acta-accent, rgba(255,255,255,.35)) 10%, transparent) 0%,
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(12,18,18,.98) 0%,
      rgba(5,9,9,.99) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-accent, rgba(255,255,255,.35)) 14%,
      rgba(255,255,255,.10)
    );

  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.055);

  overflow: hidden;
}

#datos-page .datos-acta-main-header {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-main-header > .datos-acta-match-header-card,
#datos-page .datos-acta-main-header .datos-acta-match-header-card {
  margin: 0 !important;
  margin-bottom: 0 !important;

  padding: 14px !important;

  border-radius: 22px 22px 0 0 !important;

  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;

  background:
    radial-gradient(
      circle at 4% 0%,
      color-mix(in srgb, var(--datos-acta-accent, rgba(255,255,255,.35)) 8%, transparent) 0%,
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(17,24,24,.92),
      rgba(7,12,12,.72)
    ) !important;

  box-shadow: none !important;
}

#datos-page .datos-acta-main-content {
  width: 100%;
  min-width: 0;

  padding: 14px;

  box-sizing: border-box;

  border-radius: 0 0 22px 22px;
  background: rgba(0,0,0,.035);
}

#datos-page .datos-acta-main-content > .datos-acta-tab-content {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-main-content > .datos-acta-tab-content > *:first-child {
  margin-top: 0 !important;
}

#datos-page .datos-acta-main-section.datos-acta-body-card,
#datos-page .datos-acta-main-section.datos-acta-content-card {
  padding: 0 !important;
  margin-bottom: 0 !important;
}

#datos-page .datos-acta-main-content .datos-acta-body-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

#datos-page .datos-acta-main-content .datos-acta-actions-row {
  margin: 0 0 14px 0 !important;
}

#datos-page .datos-acta-main-content .datos-acta-external-link {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#datos-page .datos-acta-main-content .datos-acta-structured-card,
#datos-page .datos-acta-main-content .datos-acta-html-debug-card {
  margin-top: 14px !important;
}

#datos-page .datos-acta-main-content .datos-acta-previa-content {
  margin-top: 0 !important;
}


/* =========================================================
   10. ACTA · TABS PARTIDO / PREVIA
   ========================================================= */

#datos-page .datos-acta-match-bottom-row {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 12px;
}

#datos-page .datos-acta-match-tech-pills {
  min-width: 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#datos-page .datos-acta-match-tabs-wrap {
  flex: 0 0 auto;

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

#datos-page .datos-acta-simulate-missing-switch {
  position: relative;
  min-height: 30px;
  padding: 4px 10px 4px 6px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 24px rgba(0,0,0,.20);

  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

#datos-page .datos-acta-simulate-missing-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 4;
  cursor: pointer;
}

#datos-page .datos-acta-simulate-missing-input label,
#datos-page .datos-acta-simulate-missing-input input,
#datos-page .datos-acta-simulate-missing-checkbox,
#datos-page .datos-acta-simulate-missing-hit-label {
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

#datos-page .datos-acta-simulate-missing-input label,
#datos-page .datos-acta-simulate-missing-hit-label {
  display: block;
}

#datos-page .datos-acta-simulate-missing-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
}

#datos-page .datos-acta-simulate-missing-track {
  width: 34px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.34);
}

#datos-page .datos-acta-simulate-missing-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 2px 8px rgba(0,0,0,.32);
  transition: transform .16s ease, background .16s ease;
}

#datos-page .datos-acta-simulate-missing-switch:has(.datos-acta-simulate-missing-checkbox:checked) {
  border-color: color-mix(in srgb, var(--datos-acta-accent, #facc15) 54%, rgba(255,255,255,.16));
  color: #fff;
}

#datos-page .datos-acta-simulate-missing-switch:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-simulate-missing-track {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--datos-acta-accent, #facc15) 72%, rgba(255,255,255,.10)),
      color-mix(in srgb, var(--datos-acta-accent, #facc15) 44%, rgba(0,0,0,.30))
    );
}

#datos-page .datos-acta-simulate-missing-switch:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-simulate-missing-track::after {
  transform: translateX(16px);
  background: #fff;
}

#datos-page .datos-acta-simulated-empty-state {
  display: none;
  min-height: 320px;
  margin-top: 14px;
  padding: 34px 24px;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;

  border: 1px dashed color-mix(in srgb, var(--datos-acta-accent, rgba(255,255,255,.35)) 34%, rgba(255,255,255,.16));
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--datos-acta-accent, rgba(255,255,255,.35)) 10%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.16));
  text-align: center;
}

#datos-page .datos-acta-simulated-empty-title {
  color: #fff;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0;
}

#datos-page .datos-acta-simulated-empty-text {
  max-width: 680px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

#datos-page .datos-acta-simulated-empty-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

#datos-page .datos-acta-simulated-empty-pill {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 900;
}

#datos-page .datos-acta-unavailable-fallback {
  display: grid;
  gap: 14px;
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-xi-block {
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

#datos-page .datos-acta-main-section:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-main-content {
  display: none;
}

#datos-page .datos-acta-main-section:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-simulated-empty-state {
  display: flex;
}

#datos-page .datos-acta-main-section:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-match-tech-pills .datos-acta-external-link,
#datos-page .datos-acta-main-section:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-match-tech-pills .datos-acta-availability-card {
  display: none;
}

#datos-page .datos-acta-main-section:has(.datos-acta-simulate-missing-checkbox:checked) .datos-acta-match-tech-pills::after {
  content: "Acta no disponible";
  min-height: 26px;
  padding: 0 10px;

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

  border: 1px solid rgba(248,113,113,.32);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(127,29,29,.46), rgba(0,0,0,.20));
  color: #fecaca;
  font-size: 11px;
  font-weight: 1000;
  white-space: nowrap;
}

#datos-page .navbar-acta-datos-custom {
  width: auto;
  margin: 0;
}

#datos-page .navpill-btn-datos-acta {
  min-height: 30px;
  padding: 0 13px;

  font-size: 11px;
}


/* =========================================================
   11. ACTA · LINK EXTERNO + ACCIONES
   ========================================================= */

#datos-page .datos-acta-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#datos-page .datos-acta-external-link {
  width: fit-content;
  min-height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  margin-bottom: 14px;
  padding: 0 14px;

  border-radius: 999px;

  color: white;
  text-decoration: none;

  font-size: 12px;
  font-weight: 900;

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-accent, rgba(255,255,255,.35)) 28%,
        rgba(255,255,255,.10)
      ),
      rgba(255,255,255,.075)
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-accent, rgba(255,255,255,.35)) 46%,
      rgba(255,255,255,.16)
    );

  box-shadow:
    0 10px 22px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.12);

  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

#datos-page .datos-acta-external-link:hover {
  transform: translateY(-1px);

  color: white;
  text-decoration: none;

  box-shadow:
    0 14px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.14);
}

#datos-page .datos-acta-external-link--disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}


/* =========================================================
   12. ACTA · HTML EXTERNO DEBUG
   ========================================================= */

#datos-page .datos-acta-html-debug-card {
  width: 100%;
  min-width: 0;

  margin-top: 14px;
  padding: 12px;

  box-sizing: border-box;
  border-radius: 16px;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 24px rgba(0,0,0,.14);
}

#datos-page .datos-acta-html-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 8px;
}

#datos-page .datos-acta-html-title {
  color: white;

  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

#datos-page .datos-acta-html-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#datos-page .datos-acta-html-status {
  min-height: 22px;

  display: inline-flex;
  align-items: center;

  padding: 0 8px;

  border-radius: 999px;

  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);

  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-html-status.is-ok {
  color: rgba(220,252,231,.98);
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.24);
}

#datos-page .datos-acta-html-status.is-error {
  color: rgba(254,202,202,.98);
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.28);
}

#datos-page .datos-acta-html-url {
  margin-bottom: 8px;

  color: rgba(255,255,255,.46);

  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;

  word-break: break-all;
}

#datos-page .datos-acta-html-error {
  margin-bottom: 8px;

  color: rgba(254,202,202,.90);

  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

#datos-page .datos-acta-html-pre {
  width: 100%;
  max-height: 520px;

  overflow: auto;

  margin: 0;
  padding: 12px;

  box-sizing: border-box;
  border-radius: 12px;

  color: rgba(255,255,255,.76);
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.08);

  font-size: 10px;
  line-height: 1.45;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  white-space: pre-wrap;
  word-break: break-word;
}


/* =========================================================
   13. ACTA · DATOS ORGANIZADOS DEL ACTA
   ========================================================= */

#datos-page .datos-acta-structured-card {
  width: 100%;
  min-width: 0;

  margin-top: 16px;
  padding: 14px;

  box-sizing: border-box;
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-structured-soft, rgba(255,255,255,.055)) 24%, rgba(255,255,255,.038)) 0%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-structured-accent, rgba(255,255,255,.35)) 10%,
      rgba(255,255,255,.10)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 28px rgba(0,0,0,.16);

  overflow: hidden;
}

#datos-page .datos-acta-structured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;
}

#datos-page .datos-acta-structured-title {
  color: white;

  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

#datos-page .datos-acta-structured-subtitle {
  margin-top: 4px;

  color: rgba(255,255,255,.58);

  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

#datos-page .datos-acta-structured-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

#datos-page .datos-acta-structured-pill {
  min-height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 9px;

  border-radius: 999px;

  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);

  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-structured-pill.is-ok {
  color: rgba(220,252,231,.98);
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.24);
}

#datos-page .datos-acta-structured-pill.is-error {
  color: rgba(254,202,202,.98);
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.28);
}

#datos-page .datos-acta-structured-error {
  margin-bottom: 12px;

  color: rgba(254,202,202,.92);

  font-size: 11px;
  font-weight: 750;
}


/* ---------- Datos organizados · hero equipos ---------- */

#datos-page .datos-acta-structured-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;

  margin-bottom: 14px;
  padding: 12px;

  border-radius: 16px;

  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-structured-team {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 10px;
}

#datos-page .datos-acta-structured-team.is-away {
  flex-direction: row-reverse;
  text-align: right;
}

#datos-page .datos-acta-structured-team-logo,
#datos-page .datos-acta-structured-team-logo-fallback {
  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 11px;
  font-weight: 950;
}

#datos-page .datos-acta-structured-team-text {
  min-width: 0;
}

#datos-page .datos-acta-structured-team-name {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: white;

  font-size: 13px;
  font-weight: 950;
}

#datos-page .datos-acta-structured-team-meta {
  margin-top: 3px;

  color: rgba(255,255,255,.52);

  font-size: 10.5px;
  font-weight: 750;
}

#datos-page .datos-acta-structured-score {
  min-width: 72px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 13px;

  border-radius: 999px;

  color: white;

  font-size: 18px;
  font-weight: 950;

  background:
    radial-gradient(
      circle at 25% 15%,
      color-mix(
        in srgb,
        var(--datos-acta-structured-accent, rgba(255,255,255,.35)) 12%,
        rgba(255,255,255,.10)
      ),
      rgba(255,255,255,.075)
    );

  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-structured-accent, rgba(255,255,255,.35)) 20%,
      rgba(255,255,255,.14)
    );
}


/* ---------- Datos organizados · secciones / tablas ---------- */

#datos-page .datos-acta-structured-section {
  margin-top: 14px;
}

#datos-page .datos-acta-structured-section-head {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 8px;
  padding: 6px 9px 6px 8px;
  border-radius: 11px;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.40),
      rgba(0,0,0,.23) 54%,
      rgba(255,255,255,.020) 78%,
      transparent
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  box-sizing: border-box;
}

#datos-page .datos-acta-structured-section-title {
  color: white;

  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.1;
}

#datos-page .datos-acta-structured-section-count {
  color: rgba(210,226,239,.58);

  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

#datos-page .datos-acta-structured-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#datos-page .datos-acta-structured-kv-item {
  min-width: 0;

  padding: 9px 10px;

  border-radius: 12px;

  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-structured-k {
  color: rgba(255,255,255,.48);

  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .25px;
}

#datos-page .datos-acta-structured-v {
  margin-top: 4px;

  color: rgba(255,255,255,.88);

  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.35;

  word-break: break-word;
}

#datos-page .datos-acta-structured-table-wrap {
  width: 100%;
  min-width: 0;

  overflow-x: auto;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);

  background: rgba(0,0,0,.16);
}

#datos-page .datos-acta-structured-table {
  width: 100%;
  min-width: 620px;

  border-collapse: collapse;
}

#datos-page .datos-acta-structured-table th {
  padding: 8px 9px;

  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.045);

  font-size: 10px;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .2px;

  border-bottom: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-structured-table td {
  padding: 8px 9px;

  color: rgba(255,255,255,.78);

  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;

  border-bottom: 1px solid rgba(255,255,255,.055);
}

#datos-page .datos-acta-structured-table tr:hover td {
  background:
    color-mix(
      in srgb,
      var(--datos-acta-structured-accent, rgba(255,255,255,.35)) 10%,
      rgba(255,255,255,.035)
    );
}

#datos-page .datos-acta-structured-more {
  padding: 8px 9px;

  color: rgba(255,255,255,.46);

  font-size: 10.5px;
  font-weight: 750;
}

#datos-page .datos-acta-structured-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

#datos-page .datos-acta-structured-events-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}



/* ---------- Datos organizados ? marcador compacto ---------- */

#datos-page .datos-acta-scoreboard {
  width: 100%;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--datos-acta-scoreboard-soft, rgba(255,255,255,.055)) 22%,
        rgba(255,255,255,.035)
      ) 0%,
      rgba(0,0,0,.18) 100%
    );
  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-scoreboard-accent, rgba(255,255,255,.35)) 12%,
      rgba(255,255,255,.10)
    );
}

#datos-page .datos-acta-scoreboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

#datos-page .datos-acta-scoreboard-center {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#datos-page .datos-acta-scoreboard-score {
  min-width: 86px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  color: white;
  background:
    radial-gradient(
      circle at 26% 12%,
      color-mix(
        in srgb,
        var(--datos-acta-scoreboard-accent, rgba(255,255,255,.35)) 14%,
        rgba(255,255,255,.12)
      ),
      rgba(255,255,255,.075)
    );
  border: 1px solid
    color-mix(
      in srgb,
      var(--datos-acta-scoreboard-accent, rgba(255,255,255,.35)) 22%,
      rgba(255,255,255,.15)
    );
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-scoreboard-score-meta {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.48);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
}

#datos-page .datos-acta-scoreboard-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#datos-page .datos-acta-scoreboard-team.is-away {
  text-align: right;
}

#datos-page .datos-acta-scoreboard-team-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#datos-page .datos-acta-scoreboard-team.is-away .datos-acta-scoreboard-team-main {
  flex-direction: row-reverse;
}

#datos-page .datos-acta-scoreboard-logo,
#datos-page .datos-acta-scoreboard-logo-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  object-fit: contain;
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-scoreboard-team-copy {
  min-width: 0;
}

#datos-page .datos-acta-scoreboard-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

#datos-page .datos-acta-scoreboard-team-meta {
  margin-top: 2px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 800;
}

#datos-page .datos-acta-scoreboard-goals-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#datos-page .datos-acta-scoreboard-goal-row,
#datos-page .datos-acta-scoreboard-goals-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-acta-scoreboard-goals-empty {
  display: block;
  color: rgba(255,255,255,.42);
  font-size: 10.5px;
  font-weight: 750;
}

#datos-page .datos-acta-scoreboard-goal-minute {
  color: rgba(255,255,255,.90);
  font-size: 10.5px;
  font-weight: 950;
}

#datos-page .datos-acta-scoreboard-goal-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 760;
}

#datos-page .datos-acta-scoreboard-goal-partial {
  color: rgba(255,255,255,.50);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-scoreboard-neutral-goals {
  margin-top: 8px;
}

/* ---------- Datos organizados ? cards de acta ---------- */

#datos-page .datos-acta-referee-grid,
#datos-page .datos-acta-incident-grid,
#datos-page .datos-acta-event-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#datos-page .datos-acta-referee-card,
#datos-page .datos-acta-incident-card,
#datos-page .datos-acta-event-card {
  min-width: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-referee-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  background:
    radial-gradient(circle at 8% 18%, var(--datos-acta-referee-soft, rgba(255,255,255,.08)), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 12px 26px rgba(0,0,0,.14);
}

#datos-page .datos-acta-referee-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background:
    color-mix(
      in srgb,
      var(--datos-acta-referee-accent, rgba(255,255,255,.35)) 24%,
      rgba(255,255,255,.07)
    );
  border: 1px solid rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-referee-copy,
#datos-page .datos-acta-event-card-copy {
  min-width: 0;
}

#datos-page .datos-acta-referee-name,
#datos-page .datos-acta-event-card-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  font-size: 11.5px;
  font-weight: 900;
}

#datos-page .datos-acta-referee-role,
#datos-page .datos-acta-referee-code,
#datos-page .datos-acta-event-card-detail,
#datos-page .datos-acta-event-card-team {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 760;
}

#datos-page .datos-acta-incident-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 10px 11px;
  background:
    radial-gradient(circle at 5% 0%, var(--datos-acta-incident-soft, rgba(255,255,255,.08)), transparent 46%),
    rgba(255,255,255,.04);
}

#datos-page .datos-acta-incident-card.is-warning {
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.22);
}

#datos-page .datos-acta-incident-card.is-incident {
  background:
    color-mix(
      in srgb,
      var(--datos-acta-incident-accent, rgba(255,255,255,.35)) 12%,
      rgba(255,255,255,.045)
    );
}

#datos-page .datos-acta-incident-label {
  grid-column: 2;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

#datos-page .datos-acta-incident-value {
  grid-column: 2;
  margin-top: 2px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
}

#datos-page .datos-acta-incident-icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-incident-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .86;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}

#datos-page .datos-acta-event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(0,0,0,.26)),
    rgba(0,0,0,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 10px 24px rgba(0,0,0,.14);
}

#datos-page .datos-acta-event-card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

#datos-page .datos-acta-event-card-minute,
#datos-page .datos-acta-event-card-extra {
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 900;
}

#datos-page .datos-acta-event-card-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-event-card.is-card .datos-acta-event-card-icon {
  color: rgba(250,204,21,.95);
}

#datos-page .datos-acta-card-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}

#datos-page .datos-acta-sub-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}

#datos-page .datos-acta-card-icon-img.is-red {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}

#datos-page .datos-acta-event-card.is-card:has(.datos-acta-card-icon-img.is-yellow) {
  border-color: rgba(250,204,21,.22);
}

#datos-page .datos-acta-event-card.is-card:has(.datos-acta-card-icon-img.is-red) {
  border-color: rgba(239,68,68,.26);
}

#datos-page .datos-acta-event-card.is-sub .datos-acta-event-card-icon {
  color:
    color-mix(
      in srgb,
      var(--datos-acta-structured-accent, rgba(255,255,255,.35)) 72%,
      white
    );
}

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

#datos-page .datos-acta-event-team-column {
  min-width: 0;
  padding: 10px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.07), transparent 42%),
    rgba(255,255,255,.026);
  border: 1px solid rgba(255,255,255,.07);
}

#datos-page .datos-acta-event-team-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-event-team-logo,
#datos-page .datos-acta-event-team-logo-fallback {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  object-fit: contain;
}

#datos-page .datos-acta-event-team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-event-team-copy {
  min-width: 0;
}

#datos-page .datos-acta-event-team-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  font-size: 12px;
  font-weight: 950;
}

#datos-page .datos-acta-event-team-count {
  margin-top: 2px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 820;
}

#datos-page .datos-acta-event-card.is-rich {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  min-height: 70px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255,255,255,.08), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(0,0,0,.34)),
    rgba(0,0,0,.34);
  border-color: rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 12px 28px rgba(0,0,0,.18);
}

#datos-page .datos-acta-event-card.is-card.is-rich {
  grid-template-columns: 42px minmax(0, 1fr) 76px;
}

#datos-page .datos-acta-event-card.is-rich > :not(.datos-acta-event-card-watermark) {
  position: relative;
  z-index: 1;
}

#datos-page .datos-acta-event-card-watermark {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 0;
  width: 74px;
  height: 74px;
  transform: translateY(-50%);
  object-fit: contain;
  opacity: .13;
  filter: saturate(1.12) contrast(1.06);
  pointer-events: none;
}

#datos-page .datos-acta-event-minute-pill {
  align-self: center;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  padding: 5px 4px;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

#datos-page .datos-acta-event-sub-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#datos-page .datos-acta-event-team-column .datos-acta-event-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#datos-page .datos-acta-event-card-body {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

#datos-page .datos-acta-event-player {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-left: 7px;
  border-left: 3px solid rgba(255,255,255,.18);
}

#datos-page .datos-acta-event-player.is-out {
  border-left-color: rgba(248,113,113,.88);
}

#datos-page .datos-acta-event-player.is-in {
  border-left-color: rgba(52,211,153,.88);
}

#datos-page .datos-acta-event-player.is-card {
  border-left-color: rgba(250,204,21,.75);
}

#datos-page .datos-acta-event-player-img,
#datos-page .datos-acta-event-player-img-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

#datos-page .datos-acta-event-player-img {
  object-fit: cover;
  object-position: center;
}

#datos-page .datos-acta-event-player-img-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-event-player-copy {
  min-width: 0;
}

#datos-page .datos-acta-event-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
}

#datos-page .datos-acta-event-player-meta {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.56);
  font-size: 9.5px;
  font-weight: 800;
}

#datos-page .datos-acta-event-change-icon {
  width: 28px;
  height: 28px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.12);
}

#datos-page .datos-acta-event-card-type-icon {
  width: 32px;
  height: 32px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-event-card-label {
  align-self: center;
  justify-self: end;
  width: 76px;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 900;
}

#datos-page .datos-acta-event-card-label.is-yellow {
  color: rgba(250,204,21,.92);
}

#datos-page .datos-acta-event-card-label.is-red {
  color: rgba(248,113,113,.95);
}

@media (max-width: 980px) {
  #datos-page .datos-acta-referee-grid,
  #datos-page .datos-acta-incident-grid,
  #datos-page .datos-acta-event-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #datos-page .datos-acta-event-team-column .datos-acta-event-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #datos-page .datos-acta-scoreboard-main {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-scoreboard-center {
    order: -1;
    width: 100%;
  }

  #datos-page .datos-acta-scoreboard-team.is-away,
  #datos-page .datos-acta-scoreboard-team.is-away .datos-acta-scoreboard-team-main {
    text-align: left;
    flex-direction: row;
  }

  #datos-page .datos-acta-referee-grid,
  #datos-page .datos-acta-incident-grid,
  #datos-page .datos-acta-event-card-grid,
  #datos-page .datos-acta-structured-two-col {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   14. ACTA · PREVIA · BASE
   ========================================================= */

#datos-page .datos-acta-previa-content {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

#datos-page .datos-acta-previa-section-card {
  width: 100%;
  min-width: 0;

  padding: 14px;
  box-sizing: border-box;

  border-radius: 18px;

  color: white;

  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-previa-soft, rgba(255,255,255,.045)) 28%, rgba(255,255,255,.038)) 0%,
      rgba(255,255,255,.026) 100%
    );

  border: 1px solid rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 12px 28px rgba(0,0,0,.16);

  overflow: hidden;
}

#datos-page .datos-acta-previa-head {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;

  margin-bottom: 12px;
}

#datos-page .datos-acta-previa-title {
  color: white;

  font-size: 14px;
  font-weight: 950;
  letter-spacing: .1px;
}

#datos-page .datos-acta-previa-subtitle {
  color: rgba(255,255,255,.58);

  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

#datos-page .datos-acta-previa-card {
  width: 100%;
  min-width: 0;

  margin-top: 14px;
  padding: 14px;

  box-sizing: border-box;
  border-radius: 16px;

  color: white;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-previa-card .datos-acta-previa-title {
  margin-bottom: 6px;
}

#datos-page .datos-acta-previa-text {
  color: rgba(255,255,255,.62);

  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}


/* =========================================================
   15. ACTA · PREVIA · CLASIFICACIÓN
   ========================================================= */

#datos-page .datos-acta-previa-classification-card {
  height: auto !important;
  min-height: 0 !important;

  padding-bottom: 14px !important;

  overflow: hidden;
}

#datos-page .datos-acta-previa-classification-head {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;

  margin-bottom: 12px;
}

#datos-page .datos-acta-previa-classification-title-block {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

#datos-page .datos-acta-previa-classification-card .datos-classif-mode-switch {
  flex: 0 0 auto;
}

#datos-page .datos-acta-previa-classification-grid,
#datos-page .datos-acta-previa-classification-card .datos-classification-grid {
  width: 100%;
  min-width: 0;

  height: auto !important;
  min-height: 0 !important;
}

#datos-page .datos-acta-previa-classification-grid.datos-classification-grid--full {
  width: 100%;
}

#datos-page .datos-acta-previa-classification-evo-wrap {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
}

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

#datos-page .datos-acta-previa-classification-evo-wrap .datos-classification-evo-dual-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 1500px) {
  #datos-page .datos-acta-previa-classification-evo-wrap .datos-classification-evo-dual-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #datos-page .datos-acta-previa-classification-evo-wrap .datos-classification-evo-dual-panel .datos-evo-html-chart-inner {
    height: clamp(320px, 29vw, 430px);
    min-height: 320px;
    max-height: 430px;
  }
}

#datos-page .datos-acta-previa-classification-blob {
  margin-top: 10px;

  color: white;
  opacity: .22;

  font-size: 10px;
  word-break: break-all;
}


/* ---------- Previa clasificación · AG Grid autoHeight ---------- */

#datos-page .datos-acta-previa-classification-card .ag-layout-auto-height,
#datos-page .datos-acta-previa-classification-card .ag-root-wrapper,
#datos-page .datos-acta-previa-classification-card .ag-root-wrapper-body,
#datos-page .datos-acta-previa-classification-card .ag-root,
#datos-page .datos-acta-previa-classification-card .ag-body,
#datos-page .datos-acta-previa-classification-card .ag-body-viewport,
#datos-page .datos-acta-previa-classification-card .ag-center-cols-viewport,
#datos-page .datos-acta-previa-classification-card .ag-center-cols-clipper,
#datos-page .datos-acta-previa-classification-card .ag-center-cols-container,
#datos-page .datos-acta-previa-classification-card .ag-pinned-left-cols-container,
#datos-page .datos-acta-previa-classification-card .ag-pinned-right-cols-container,
#datos-page .datos-acta-previa-classification-card .ag-body-horizontal-scroll {
  min-height: 0 !important;
}

#datos-page .datos-acta-previa-classification-card .ag-center-cols-viewport {
  min-height: unset !important;
}

#datos-page .datos-acta-previa-classification-card .ag-paging-panel {
  display: none !important;
}

#datos-page .datos-acta-previa-classification-card .ag-root-wrapper {
  border-radius: 14px !important;
  overflow: hidden !important;
}


/* =========================================================
   16. ACTA · PREVIA · JUGADORES
   ========================================================= */

#datos-page .datos-acta-previa-players-two-col {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#datos-page .datos-acta-previa-players-card {
  --datos-player-accent: var(--datos-acta-previa-accent, rgba(255,255,255,.35));
  --datos-player-soft: var(--datos-acta-previa-soft, rgba(255,255,255,.06));

  width: 100%;
  min-width: 0;

  overflow: hidden;
}


/* ---------- Previa jugadores · header equipo ---------- */

#datos-page .datos-acta-previa-team-head {
  width: 100%;
  min-width: 0;

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

  margin-bottom: 12px;
}

#datos-page .datos-acta-previa-team-logo,
#datos-page .datos-acta-previa-team-logo-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 11px;
  font-weight: 950;
}

#datos-page .datos-acta-previa-team-title-block {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

#datos-page .datos-acta-previa-team-title {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: white;

  font-size: 13px;
  font-weight: 950;
}

#datos-page .datos-acta-previa-team-subtitle {
  color: rgba(255,255,255,.54);

  font-size: 10.5px;
  font-weight: 750;
}


/* ---------- Previa jugadores · grid ---------- */

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-root-wrapper {
  overflow: hidden;

  border-radius: 14px;

  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-header {
  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--datos-player-accent, rgba(255,255,255,.35)) 10%,
        rgba(255,255,255,.045)
      ),
      rgba(255,255,255,.025)
    );
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-header-cell-label {
  justify-content: center;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell {
  min-width: 0;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="jugador_display"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="nombre_jugador"] {
  justify-content: flex-start;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="edad"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="anio_nacimiento"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="dorsal_jugador"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="posicion_jugador"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="jugados"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="titular"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="suplente"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="total_goles"] {
  justify-content: center;
  text-align: center;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="total_goles"] {
  color: rgba(255,255,255,.90);
  font-weight: 850;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .datos-player-row-goals,
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .datos-player-row-minutes,
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .datos-player-row-cards {
  background: transparent !important;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-paging-panel {
  display: none !important;
}

#datos-page .datos-acta-previa-player-cell,
#datos-page .datos-acta-previa-player-img,
#datos-page .datos-acta-previa-player-img-fallback,
#datos-page .datos-acta-previa-player-name,
#datos-page .datos-acta-previa-goals-cell {
  all: unset;
}


/* =========================================================
   17. ACTA · PREVIA · XI MÁS UTILIZADO
   ========================================================= */

#datos-page .datos-acta-previa-xi-two-col {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#datos-page .datos-acta-previa-xi-card {
  width: 100%;
  min-width: 0;

  overflow: hidden;
}

#datos-page .datos-acta-previa-xi-head {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 12px;
}

#datos-page .datos-acta-previa-xi-criterion {
  width: fit-content;
  max-width: 100%;

  display: inline-flex;
  align-items: center;

  padding: 5px 9px;

  border-radius: 999px;

  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);

  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

#datos-page .datos-acta-previa-xi-grid {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#datos-page .datos-acta-previa-xi-player-card {
  position: relative;

  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;

  padding: 8px 9px;
  box-sizing: border-box;

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.028)
    );

  border: 1px solid rgba(255,255,255,.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 8px 18px rgba(0,0,0,.12);
}

#datos-page .datos-acta-previa-xi-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;

  width: 17px;
  height: 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: rgba(255,255,255,.86);
  background:
    color-mix(
      in srgb,
      var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 30%,
      rgba(0,0,0,.35)
    );

  border: 1px solid rgba(255,255,255,.12);

  font-size: 9px;
  font-weight: 950;
}

#datos-page .datos-acta-previa-xi-player-img-wrap,
#datos-page .datos-acta-previa-xi-player-img,
#datos-page .datos-acta-previa-xi-player-img-fallback {
  width: 34px;
  height: 34px;
}

#datos-page .datos-acta-previa-xi-player-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-acta-previa-xi-player-img,
#datos-page .datos-acta-previa-xi-player-img-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: cover;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-previa-xi-player-text {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  position: relative;
  z-index: 1;
}

#datos-page .datos-acta-previa-xi-player-name {
  min-width: 0;
  width: 100%;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: rgba(255,255,255,.94);

  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.15;
}

#datos-page .datos-acta-previa-xi-player-meta,
#datos-page .datos-acta-previa-xi-player-main-metric {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 9.5px;
  line-height: 1.15;
}

#datos-page .datos-acta-previa-xi-player-meta {
  color: rgba(255,255,255,.48);
  font-weight: 750;
}

#datos-page .datos-acta-previa-xi-player-main-metric {
  color: rgba(255,255,255,.68);
  font-weight: 800;
}

#datos-page .datos-acta-previa-xi-goals {
  min-width: 30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 4px 6px;

  border-radius: 10px;

  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-acta-previa-xi-goals-value {
  color: rgba(255,255,255,.92);

  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-previa-xi-goals-label {
  margin-top: 2px;

  color: rgba(255,255,255,.42);

  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
}


/* =========================================================
   18. ACTA · CLICKABLES
   ========================================================= */

#datos-page .datos-acta-previa-players-grid .ag-row {
  cursor: pointer;
}

#datos-page .datos-acta-previa-players-grid .ag-row:hover {
  background: rgba(255,255,255,.075) !important;
}

#datos-page .datos-acta-previa-players-grid .ag-row:hover .ag-cell {
  color: white !important;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="jugador_display"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="nombre_jugador"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="alias_nombre_jugador"],
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="img_jugador_src"] {
  cursor: pointer;
}

#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="jugador_display"]:hover,
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="nombre_jugador"]:hover,
#datos-page .datos-acta-previa-players-grid.datos-team-players-grid .ag-cell[col-id="alias_nombre_jugador"]:hover {
  text-decoration: underline;
}

#datos-page .datos-acta-previa-xi-player-btn {
  appearance: none;
  -webkit-appearance: none;

  border: 1px solid rgba(255,255,255,.08);

  color: inherit;
  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    transform .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

#datos-page .datos-acta-previa-xi-player-btn:hover {
  transform: translateY(-1px);

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 11%,
        rgba(255,255,255,.06)
      ),
      rgba(255,255,255,.032)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 10px 22px rgba(0,0,0,.16);
}

#datos-page .datos-acta-previa-xi-player-btn:hover .datos-acta-previa-xi-player-name {
  text-decoration: underline;
}


/* =========================================================
   19. ACTA · RESPONSIVE
   ========================================================= */

@media (max-width: 1350px) {
  #datos-page .datos-acta-previa-xi-tactics-layout {
    grid-template-columns: minmax(205px, 250px) minmax(380px, 1fr) minmax(200px, 240px);
    gap: 10px;
  }

  #datos-page .datos-acta-previa-xi-tactics-layout .datos-team-overview-field {
    min-height: 480px;
    max-height: 70vh;
  }

  #datos-page .datos-acta-previa-xi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#datos-page .datos-acta-player-card-watermark {
  position: absolute;
  z-index: 0;
  right: 8px;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  object-fit: contain;
  border-radius: 999px;
  opacity: .13;
  filter: saturate(.9) contrast(1.08);
  pointer-events: none;
  user-select: none;
}

#datos-page .datos-acta-previa-xi-player-card > :not(.datos-acta-player-card-watermark) {
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  #datos-page .datos-acta-previa-players-two-col,
  #datos-page .datos-acta-previa-xi-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-acta-previa-xi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #datos-page .datos-acta-previa-xi-tactics-layout {
    grid-template-columns: minmax(190px, 230px) minmax(360px, 1fr) minmax(185px, 220px);
  }

  #datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  #datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-goals {
    display: none;
  }

  #datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-img-wrap,
  #datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-img,
  #datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-img-fallback {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1100px) {
  #datos-page .datos-acta-team-bar-track {
    height: 80px;
    min-height: 80px;
    max-height: 80px;

    align-items: center;
    justify-content: safe center;

    padding: 11px 8px 6px;
  }

  #datos-page .datos-acta-team-bar-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex-basis: 56px;

    border-radius: 17px;
  }

  #datos-page .datos-acta-team-bar-logo-wrap,
  #datos-page .datos-acta-team-bar-logo,
  #datos-page .datos-acta-team-bar-logo-fallback {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 980px) {
  #datos-page .datos-acta-header-card--league,
  #datos-page .datos-acta-header-controls,
  #datos-page .datos-acta-detail-layout,
  #datos-page .datos-acta-match-header-main {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-match-btn {
    flex-basis: 118px;
    width: 118px;
    min-width: 118px;
    min-height: 72px;
  }

  #datos-page .datos-acta-sidebar-list {
    max-height: none;
  }

  #datos-page .datos-acta-jornada-center-label {
    display: none;
  }

  #datos-page .datos-acta-match-header-top,
  #datos-page .datos-acta-match-context-row,
  #datos-page .datos-acta-match-bottom-row {
    align-items: flex-start;
    flex-direction: column;
  }

  #datos-page .datos-acta-match-header-status-row,
  #datos-page .datos-acta-match-tabs-wrap {
    justify-content: flex-start;
  }

  #datos-page .datos-acta-match-header-team.is-away {
    flex-direction: row;
    text-align: left;
  }

  #datos-page .datos-acta-match-header-score {
    width: fit-content;
  }

  #datos-page .datos-acta-match-header-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #datos-page .datos-acta-structured-head {
    flex-direction: column;
  }

  #datos-page .datos-acta-structured-pills {
    justify-content: flex-start;
  }

  #datos-page .datos-acta-structured-hero {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-structured-team.is-away {
    flex-direction: row;
    text-align: left;
  }

  #datos-page .datos-acta-structured-score {
    width: fit-content;
  }

  #datos-page .datos-acta-structured-kv-grid,
  #datos-page .datos-acta-structured-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #datos-page .datos-acta-header-teams {
    border-radius: 16px;
    padding: 7px 8px 6px;
  }

  #datos-page .datos-acta-team-bar-track {
    height: 74px;
    min-height: 74px;
    max-height: 74px;

    align-items: center;
    justify-content: safe center;
    gap: 9px;

    padding: 10px 2px 6px;
  }

  #datos-page .datos-acta-team-bar-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-basis: 50px;

    border-radius: 15px;
  }

  #datos-page .datos-acta-team-bar-logo-wrap,
  #datos-page .datos-acta-team-bar-logo,
  #datos-page .datos-acta-team-bar-logo-fallback {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 760px) {
  #datos-page .datos-acta-main-section {
    border-radius: 18px;
  }

  #datos-page .datos-acta-main-content {
    padding: 12px;
    border-radius: 0 0 18px 18px;
  }

  #datos-page .datos-acta-main-header > .datos-acta-match-header-card,
  #datos-page .datos-acta-main-header .datos-acta-match-header-card {
    padding: 12px !important;
    border-radius: 18px 18px 0 0 !important;
  }
}

@media (max-width: 720px) {
  #datos-page .datos-acta-previa-section-card {
    padding: 12px;
  }

  #datos-page .datos-acta-previa-team-logo,
  #datos-page .datos-acta-previa-team-logo-fallback {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  #datos-page .datos-acta-previa-team-title {
    font-size: 12.5px;
  }

  #datos-page .datos-acta-previa-xi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  #datos-page .datos-acta-previa-xi-tactics-field {
    grid-area: field;
  }

  #datos-page .datos-acta-previa-xi-starters-panel {
    grid-area: starters;
  }

  #datos-page .datos-acta-previa-xi-bench-section {
    grid-area: bench;
  }

  #datos-page .datos-acta-previa-xi-side-grid {
    max-height: 360px;
  }

  #datos-page .datos-acta-previa-xi-tactics-layout .datos-team-overview-field {
    width: min(100%, 560px);
    min-height: 460px;
    max-height: 62vh;
  }

  #datos-page .datos-acta-previa-xi-player-card {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  #datos-page .datos-acta-previa-xi-tactics-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "field"
      "starters"
      "bench";
  }

  #datos-page .datos-acta-previa-xi-side-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #datos-page .datos-acta-previa-xi-tactics-layout .datos-team-overview-field {
    width: min(100%, 430px);
    min-height: 420px;
    max-height: none;
  }

  #datos-page .datos-acta-match-header-meta-grid {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-match-header-title {
    white-space: normal;
  }

  #datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-match-btn {
    flex-basis: 108px;
    width: 108px;
    min-width: 108px;
    min-height: 68px;
  }

  #datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-mini-logo,
  #datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-mini-logo-fallback {
    width: 23px;
    height: 23px;
  }

  #datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-score-pill {
    min-width: 36px;
    min-height: 21px;

    font-size: 8.8px;
  }

  #datos-page .datos-acta-header-matches-strip .datos-acta-sidebar-top-datetime {
    font-size: 9px;
  }

  #datos-page .datos-acta-header-matches-strip.is-team-mode .datos-acta-team-matches-row {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-header-matches-strip.is-team-mode .datos-acta-selected-team-block {
    max-width: none;
    min-width: 0;
    min-height: 62px;
  }

  #datos-page .datos-acta-selected-team-logo-wrap,
  #datos-page .datos-acta-selected-team-logo,
  #datos-page .datos-acta-selected-team-logo-fallback {
    width: 46px;
    height: 46px;
  }

  #datos-page .datos-acta-selected-team-name {
    font-size: 14px;
  }
}
















/* =========================================================
   ACTA · ESTADO DISPONIBILIDAD
   ========================================================= */

#datos-page .datos-acta-availability-card {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin: 0 0 14px 0;
  padding: 12px 14px;

  box-sizing: border-box;
  border-radius: 16px;

  color: white;

  background:
    linear-gradient(
      180deg,
      var(--datos-acta-availability-soft, rgba(255,255,255,.055)) 0%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid rgba(255,255,255,.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 24px rgba(0,0,0,.14);
}

#datos-page .datos-acta-availability-card.is-available {
  border-color: rgba(34,197,94,.30);
  background:
    linear-gradient(
      180deg,
      rgba(34,197,94,.12) 0%,
      rgba(255,255,255,.025) 100%
    );
}

#datos-page .datos-acta-availability-card.is-unavailable {
  border-color: rgba(250,204,21,.26);
  background:
    linear-gradient(
      180deg,
      rgba(250,204,21,.10) 0%,
      rgba(255,255,255,.025) 100%
    );
}

#datos-page .datos-acta-availability-card.is-compact {
  width: auto;
  min-height: 28px;
  margin: 0 !important;
  padding: 0 10px;
  gap: 7px;
  border-radius: 999px;
  flex: 0 1 auto;
  max-width: 360px;
}

#datos-page .datos-acta-availability-card.is-compact .datos-acta-availability-icon {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

#datos-page .datos-acta-availability-card.is-compact .datos-acta-availability-title,
#datos-page .datos-acta-availability-card.is-compact .datos-acta-availability-meta {
  font-size: 10px;
  line-height: 1;
}

#datos-page .datos-acta-availability-card.is-compact .datos-acta-availability-text {
  display: none;
}

#datos-page .datos-acta-availability-main {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 10px;
}

#datos-page .datos-acta-availability-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 13px;
  font-weight: 950;
}

#datos-page .datos-acta-availability-card.is-available .datos-acta-availability-icon {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.32);
}

#datos-page .datos-acta-availability-card.is-unavailable .datos-acta-availability-icon {
  background: rgba(250,204,21,.16);
  border-color: rgba(250,204,21,.30);
}

#datos-page .datos-acta-availability-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

#datos-page .datos-acta-availability-title {
  color: white;

  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
}

#datos-page .datos-acta-availability-text {
  color: rgba(255,255,255,.62);

  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

#datos-page .datos-acta-availability-meta {
  flex: 0 0 auto;

  color: rgba(255,255,255,.44);

  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}


/* =========================================================
   ACTA · LINK EXTERNO COMPACTO EN HEADER PARTIDO
   ========================================================= */

#datos-page .datos-acta-match-tech-pills .datos-acta-external-link,
#datos-page .datos-acta-external-link--compact {
  min-height: 28px;

  margin: 0 !important;
  padding: 0 11px;

  font-size: 10.5px;
  line-height: 1;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 6px 14px rgba(0,0,0,.12);
}

@media (max-width: 720px) {
  #datos-page .datos-acta-availability-card {
    align-items: flex-start;
    flex-direction: column;
  }

  #datos-page .datos-acta-availability-meta {
    white-space: normal;
  }
}



/* =========================================================
   ACTA · PARTIDO · ALINEACIONES / POSIBLE XI
   ========================================================= */

#datos-page .datos-acta-real-lineups-block,
#datos-page .datos-acta-possible-xi-block {
  margin-top: 0;
}

#datos-page .datos-acta-real-lineups-two-col,
#datos-page .datos-acta-possible-xi-two-col {
  margin-top: 8px;
}

#datos-page .datos-acta-possible-match-layout {
  --datos-acta-possible-height: clamp(430px, 34vw, 560px);

  width: 100%;
  min-width: 0;
  margin-top: 2px;

  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(700px, 1180px) minmax(260px, 390px);
  gap: clamp(18px, 2.6vw, 58px);
  align-items: end;
  justify-content: center;
}

#datos-page .datos-acta-possible-field-stack {
  min-width: 0;
  display: grid;
  grid-template-rows: auto var(--datos-acta-possible-height);
  gap: 6px;
  align-items: end;
}

#datos-page .datos-acta-possible-field-title {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  color: rgba(255,255,255,.96);
  font-size: 19px;
  line-height: 1;
  font-weight: 1000;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

#datos-page .datos-acta-real-shared-field-stack > .datos-acta-possible-field-title {
  width: 100%;
  gap: 16px;
}

#datos-page .datos-acta-possible-field-stack > .datos-acta-possible-field-title {
  width: 100%;
  gap: 16px;
}

#datos-page .datos-acta-real-shared-field-stack > .datos-acta-possible-field-title::before,
#datos-page .datos-acta-real-shared-field-stack > .datos-acta-possible-field-title::after,
#datos-page .datos-acta-possible-field-stack > .datos-acta-possible-field-title::before,
#datos-page .datos-acta-possible-field-stack > .datos-acta-possible-field-title::after {
  content: "";
  width: min(17vw, 120px);
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 55%, rgba(255,255,255,.10)),
      transparent
    );
  box-shadow: 0 0 12px color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 35%, transparent);
}

#datos-page .datos-acta-simulated-empty-title {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#datos-page .datos-acta-simulated-empty-title::before,
#datos-page .datos-acta-simulated-empty-title::after {
  content: "";
  width: min(17vw, 120px);
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, #ef4444 62%, rgba(255,255,255,.12)),
      transparent
    );
  box-shadow: 0 0 14px rgba(239,68,68,.34);
}

#datos-page .datos-acta-possible-summary-card {
  min-width: 0;
  height: var(--datos-acta-possible-height);
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-acta-possible-summary-logo-shell {
  width: 102px;
  height: 102px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.13), transparent 34%),
    rgba(0,0,0,.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 16px 34px rgba(0,0,0,.28);
}

#datos-page .datos-acta-possible-summary-logo,
#datos-page .datos-acta-possible-summary-logo-fallback {
  width: 82px;
  height: 82px;
  border-radius: 999px;
}

#datos-page .datos-acta-possible-summary-logo {
  object-fit: contain;
}

#datos-page .datos-acta-possible-summary-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 15px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-summary-text {
  min-width: 0;
  width: min(100%, 250px);
  margin: 0 auto;
}

#datos-page .datos-acta-possible-summary-name {
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255,255,255,.95);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.05;
}

#datos-page .datos-acta-possible-summary-pos {
  margin-top: 6px;
  color: color-mix(in srgb, var(--datos-acta-accent, #22c55e) 70%, white);
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

#datos-page .datos-acta-possible-summary-coach {
  width: min(100%, 210px);
  margin: 8px auto 0;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.09);
}

#datos-page .datos-acta-possible-summary-coach-label {
  width: 24px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  font-size: 9px;
  font-weight: 1000;
  background: color-mix(in srgb, var(--datos-acta-accent, #22c55e) 34%, rgba(0,0,0,.25));
  border: 1px solid color-mix(in srgb, var(--datos-acta-accent, #22c55e) 42%, transparent);
}

#datos-page .datos-acta-possible-summary-coach-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
}

#datos-page .datos-acta-possible-summary-matches {
  width: min(100%, 218px);
  margin: 9px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  justify-content: center;
}

#datos-page .datos-acta-possible-summary-match {
  min-width: 0;
  min-height: 36px;
  padding: 4px 7px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 42%),
    linear-gradient(180deg, rgba(43,47,45,.92), rgba(14,17,16,.86));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 16px rgba(0,0,0,.22);
}

#datos-page .datos-acta-possible-summary-match.is-win {
  border-color: rgba(34,197,94,.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.18), transparent 48%),
    linear-gradient(180deg, rgba(35,64,45,.94), rgba(13,23,17,.88));
}

#datos-page .datos-acta-possible-summary-match.is-draw {
  border-color: rgba(234,179,8,.46);
  background:
    radial-gradient(circle at 50% 0%, rgba(234,179,8,.16), transparent 48%),
    linear-gradient(180deg, rgba(64,56,28,.94), rgba(23,20,10,.88));
}

#datos-page .datos-acta-possible-summary-match.is-loss {
  border-color: rgba(244,63,94,.46);
  background:
    radial-gradient(circle at 50% 0%, rgba(244,63,94,.16), transparent 48%),
    linear-gradient(180deg, rgba(62,34,39,.94), rgba(24,12,14,.88));
}

#datos-page .datos-acta-possible-summary-match-date {
  color: rgba(255,255,255,.76);
  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  text-align: center;
}

#datos-page .datos-acta-possible-summary-match-row {
  display: grid;
  grid-template-columns: 19px minmax(42px, 1fr) 19px;
  gap: 5px;
  align-items: center;
}

#datos-page .datos-acta-possible-summary-match-logo {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  object-fit: contain;
}

#datos-page .datos-acta-possible-summary-match-logo.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.84);
  font-size: 6px;
  font-weight: 1000;
  background: rgba(255,255,255,.10);
}

#datos-page .datos-acta-possible-summary-match-score {
  min-width: 0;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 1000;
  background: rgba(0,0,0,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  white-space: nowrap;
}

#datos-page .datos-acta-possible-form-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

#datos-page .datos-acta-possible-form-pill {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 1000;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-possible-form-pill.is-win {
  background: rgba(34,197,94,.24);
  border-color: rgba(34,197,94,.38);
}

#datos-page .datos-acta-possible-form-pill.is-draw {
  background: rgba(234,179,8,.20);
  border-color: rgba(234,179,8,.34);
}

#datos-page .datos-acta-possible-form-pill.is-loss {
  background: rgba(244,63,94,.20);
  border-color: rgba(244,63,94,.34);
}

#datos-page .datos-acta-possible-form-pill.is-empty {
  color: rgba(255,255,255,.42);
}

#datos-page .datos-acta-possible-roster-panel {
  min-width: 0;
  min-height: var(--datos-acta-possible-height);
  height: var(--datos-acta-possible-height);
  max-height: var(--datos-acta-possible-height);
  padding: 0;

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#datos-page .datos-acta-possible-team-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: max-content;
  max-width: min(100%, 320px);
  margin-inline: auto;
}

#datos-page .datos-acta-possible-team-logo,
#datos-page .datos-acta-possible-team-logo-fallback {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  box-shadow: 0 7px 18px rgba(0,0,0,.22);
}

#datos-page .datos-acta-possible-team-logo {
  object-fit: contain;
  padding: 2px;
}

#datos-page .datos-acta-possible-team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-team-title-block {
  min-width: 0;
  max-width: 250px;
}

#datos-page .datos-acta-possible-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-team-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-possible-roster-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, .85fr);
  gap: 7px;
  overflow: visible;
}

#datos-page .datos-acta-possible-roster-body.is-starters-only {
  position: relative;
  grid-template-rows: auto minmax(0, 1fr);
}

#datos-page .datos-acta-possible-roster-body > :not(.datos-acta-lineup-section-watermark) {
  position: relative;
  z-index: 1;
}

#datos-page .datos-acta-possible-roster-body > .datos-acta-real-lineup-section-title {
  min-height: 42px;
  margin: 0 -10px 2px;
  padding: 10px 12px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid color-mix(in srgb, var(--datos-acta-accent, #22c55e) 16%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-acta-accent, #22c55e) 14%, transparent), transparent 48%),
    linear-gradient(90deg, color-mix(in srgb, var(--datos-acta-accent, #22c55e) 8%, rgba(255,255,255,.065)), rgba(255,255,255,.028) 62%, rgba(0,0,0,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.065),
    0 7px 16px rgba(0,0,0,.09);
}

#datos-page .datos-acta-possible-roster-scroll {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: clip;
  padding: 14px 8px 12px 18px;
  margin: 0;
  scrollbar-width: thin;
}

#datos-page .datos-acta-possible-roster-scroll:has(.datos-team-overview-xi-player-card:hover) {
  z-index: 50;
}

#datos-page .datos-acta-possible-roster-scroll::-webkit-scrollbar {
  width: 6px;
}

#datos-page .datos-acta-possible-roster-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
  border-radius: 999px;
}

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

#datos-page .datos-acta-possible-subtitle {
  margin-top: 2px;
}

#datos-page .datos-acta-possible-line-block + .datos-acta-possible-line-block {
  margin-top: 10px;
  padding-top: 7px;
}

#datos-page .datos-acta-possible-line-head {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 7px;
  padding: 3px 7px 3px 6px;
  border-radius: 9px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--datos-acta-accent, #22c55e) 10%, rgba(255,255,255,.055)),
      rgba(255,255,255,.018) 68%,
      transparent
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

#datos-page .datos-acta-possible-line-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#datos-page .datos-acta-possible-line-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  object-fit: contain;
  opacity: .92;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
  user-select: none;
  pointer-events: none;
}

#datos-page .datos-acta-possible-line-title {
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0;
}

#datos-page .datos-acta-possible-line-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.075));
  border: 1px solid rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-possible-line-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding-left: 2px;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-player-card,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-player-card {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 7px 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(10,13,13,.98), rgba(3,6,6,.96));
  border-color: rgba(255,255,255,.075);
  box-shadow:
    0 12px 26px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: visible;
  align-items: center;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-card-watermark,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-card-watermark {
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  opacity: .13;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-text,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-text,
#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-name-row,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-name-row {
  align-items: flex-start;
  text-align: left;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-name,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-name {
  text-align: left;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-player-card:hover,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-player-card:hover {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(16,20,20,.99), rgba(5,8,8,.98));
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-img-wrap,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-img-wrap {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-name,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-name {
  font-size: 12px;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-rank,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-rank {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-card-hover,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-card-hover {
  top: calc(100% + 8px);
  bottom: auto;
  width: 236px;
  min-width: 220px;
  z-index: 2147483000;
  background-color: rgba(4,7,7,.995);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 12%, rgba(4,7,7,0)), rgba(4,7,7,0) 48%),
    linear-gradient(180deg, rgba(8,11,11,1), rgba(1,3,3,1));
  box-shadow:
    0 22px 42px rgba(0,0,0,.62),
    0 0 0 1px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.10);
}

body.datos-hover-portal-ready #datos-page .datos-acta-possible-xi-block .datos-team-overview-card-hover {
  display: none !important;
}

.datos-team-overview-card-hover-portal {
  position: fixed;
  z-index: 2147483647;
  width: 238px;
  min-width: 220px;
  max-width: min(260px, calc(100vw - 20px));
  padding: 9px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent, #22c55e) 28%, rgba(255,255,255,.16));
  background-color: rgba(4,7,7,.995);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, #22c55e) 12%, rgba(4,7,7,0)), rgba(4,7,7,0) 48%),
    linear-gradient(180deg, rgba(8,11,11,1), rgba(1,3,3,1));
  box-shadow:
    0 22px 42px rgba(0,0,0,.62),
    0 0 0 1px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.10);
  opacity: 0;
  transform: translateY(3px) scale(.985);
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}

.datos-team-overview-card-hover-portal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.datos-team-overview-card-hover-portal::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 11px;
  height: 11px;
  background: rgba(8,11,11,1);
  transform: rotate(45deg);
}

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

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

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

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

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

.datos-team-overview-card-hover-portal .datos-team-overview-card-hover-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.58);
  font-size: 8px;
  font-weight: 850;
}

.datos-team-overview-card-hover-portal .datos-team-overview-card-hover-value {
  color: #4ade80;
  font-size: 9px;
  font-weight: 1000;
  white-space: nowrap;
}

#datos-page .datos-acta-possible-match-layout .datos-team-overview-xi-player-card:hover .datos-team-overview-card-hover,
#datos-page .datos-acta-possible-bench-strip .datos-team-overview-xi-player-card:hover .datos-team-overview-card-hover {
  transform: translateY(0) scale(1);
}

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

#datos-page .datos-acta-possible-bench-strip {
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: visible;
}

#datos-page .datos-acta-possible-paired-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  overflow: visible;
}

#datos-page .datos-acta-possible-paired-row + .datos-acta-possible-paired-row {
  margin-top: 2px;
}

#datos-page .datos-acta-possible-paired-row > * {
  min-width: 0;
}

#datos-page .datos-acta-possible-paired-row > :first-child {
  padding-right: 16px;
  border-right: 1px solid color-mix(in srgb, var(--datos-acta-accent, #22c55e) 14%, rgba(255,255,255,.08));
}

#datos-page .datos-acta-possible-paired-row > :last-child {
  padding-left: 16px;
}

#datos-page .datos-acta-possible-bench-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#datos-page .datos-acta-possible-bench-section > :not(.datos-acta-lineup-section-watermark) {
  position: relative;
  z-index: 1;
}

#datos-page .datos-acta-possible-bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin: 18px 0 9px;
  padding: 6px 9px 6px 8px;
  border-radius: 11px;
  border-bottom: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.38),
      rgba(0,0,0,.20) 54%,
      rgba(255,255,255,.018) 78%,
      transparent
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

#datos-page .datos-acta-possible-bench-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-bench-title.datos-team-overview-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

#datos-page .datos-acta-possible-bench-meta {
  flex: 0 0 auto;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-possible-bench-scroll {
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 12px 4px 8px 18px;
  margin: 0;
  scrollbar-width: auto;
}

#datos-page .datos-acta-possible-bench-section:has(.datos-team-overview-xi-player-card:hover),
#datos-page .datos-acta-possible-sanction-section:has(.datos-team-overview-xi-player-card:hover),
#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-section:has(.datos-team-overview-key-player-btn:hover) {
  z-index: 90;
}

#datos-page .datos-acta-possible-bench-scroll .datos-acta-possible-line-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  justify-content: start;
  align-items: start;
}

#datos-page .datos-acta-possible-bench-scroll .datos-acta-possible-line-grid.is-flat {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

#datos-page .datos-acta-possible-bench-scroll .datos-team-overview-xi-player-card {
  width: 100%;
  max-width: none;
}

#datos-page .datos-acta-possible-bench-scroll .datos-acta-possible-line-block {
  overflow: visible;
}

#datos-page .datos-acta-possible-bench-scroll .datos-team-overview-xi-text {
  align-self: center;
}

#datos-page .datos-acta-possible-bench-scroll .datos-team-overview-xi-name-row {
  justify-content: center;
}

#datos-page .datos-acta-possible-team-stack {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 2px;
  overflow: visible;
}

#datos-page .datos-acta-possible-team-stack.is-local {
  padding-right: 16px;
  border-right: 1px solid color-mix(in srgb, var(--datos-acta-accent, #22c55e) 14%, rgba(255,255,255,.08));
}

#datos-page .datos-acta-possible-team-stack.is-away {
  padding-left: 16px;
}

#datos-page .datos-acta-possible-team-stack-header {
  min-width: 0;
  margin-bottom: 2px;
  padding: 0 0 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--datos-acta-accent, #22c55e) 20%, rgba(255,255,255,.10));
}

#datos-page .datos-acta-possible-team-stack-logo-shell {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

#datos-page .datos-acta-possible-team-stack-logo,
#datos-page .datos-acta-possible-team-stack-logo-fallback {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

#datos-page .datos-acta-possible-team-stack-logo {
  object-fit: contain;
}

#datos-page .datos-acta-possible-team-stack-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 1000;
  background: rgba(255,255,255,.075);
}

#datos-page .datos-acta-possible-team-stack-title {
  min-width: 0;
}

#datos-page .datos-acta-possible-team-stack-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-team-stack-meta {
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-possible-key-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-head {
  min-height: 30px;
  margin: 18px 0 8px;
  padding: 0 0 7px;
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--datos-acta-accent, #22c55e) 16%, rgba(255,255,255,.08));
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  overflow: visible;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-player-btn {
  height: 54px;
  min-height: 54px;
  padding: 6px 8px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(10,13,13,.98), rgba(3,6,6,.96));
  border-color: rgba(255,255,255,.075);
  overflow: visible;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-player-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-key-player-name {
  font-size: 11px;
}

#datos-page .datos-acta-possible-key-strip .datos-team-overview-card-hover {
  z-index: 2147483000;
  background-color: rgba(4,7,7,.995);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 12%, rgba(4,7,7,0)), rgba(4,7,7,0) 48%),
    linear-gradient(180deg, rgba(8,11,11,1), rgba(1,3,3,1));
  box-shadow:
    0 22px 42px rgba(0,0,0,.62),
    0 0 0 1px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.10);
}

#datos-page .datos-acta-possible-sanction-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#datos-page .datos-acta-possible-bench-scroll.is-sanctions {
  max-height: none;
}

#datos-page .datos-acta-possible-coach-section {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-acta-accent, #22c55e) 7%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 12px 28px rgba(0,0,0,.18);
  overflow: visible;
}

#datos-page .datos-acta-possible-coach-card {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.085);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-acta-accent, #22c55e) 4%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(10,13,13,.98), rgba(3,6,6,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 12px 26px rgba(0,0,0,.20);
}

#datos-page .datos-acta-possible-coach-card.is-missing {
  opacity: .68;
}

#datos-page .datos-acta-possible-coach-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 1000;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.18), transparent 34%),
    rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
}

#datos-page .datos-acta-possible-coach-text {
  min-width: 0;
}

#datos-page .datos-acta-possible-coach-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-coach-sub {
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.50);
  font-size: 10px;
  font-weight: 820;
}

#datos-page .datos-acta-possible-coach-tag {
  min-width: 30px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(254,240,138,1);
  background: rgba(113,86,16,.84);
  border: 1px solid rgba(250,204,21,.42);
  font-size: 10px;
  font-weight: 1000;
}

#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-card {
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 7px 7px 7px 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--datos-acta-accent, #22c55e) 7%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(8,10,10,.76), rgba(4,7,7,.64));
  border-color: rgba(255,255,255,.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 7px 18px rgba(0,0,0,.22);
}

#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-card:hover {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--datos-acta-accent, #22c55e) 12%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(16,20,20,.84), rgba(5,9,9,.74));
  border-color: color-mix(in srgb, var(--datos-acta-accent, #22c55e) 35%, rgba(255,255,255,.14));
}

#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-rank {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.20), transparent 34%),
    linear-gradient(180deg, rgba(18,20,20,.96), rgba(0,0,0,.92));
  border: 1px solid rgba(255,255,255,.45);
  box-shadow:
    0 0 0 2px rgba(0,0,0,.55),
    0 5px 10px rgba(0,0,0,.30);
}

#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-card.is-compact {
  grid-template-columns: 34px minmax(0, 1fr);
}

#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-card.is-compact .datos-acta-previa-xi-goals {
  display: none;
}

#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-img-wrap,
#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-img,
#datos-page .datos-acta-possible-match-layout .datos-acta-previa-xi-player-img-fallback {
  width: 34px;
  height: 34px;
}

#datos-page .datos-acta-empty-small {
  padding: 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.66);
  background: rgba(0,0,0,.20);
  border: 1px dashed rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 850;
}

#datos-page .datos-acta-shared-field {
  position: relative;
  width: 100%;
  height: var(--datos-acta-possible-height);
  min-height: 0;
  align-self: start;
  overflow: hidden;

  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--datos-team-overview-accent, #22c55e) 58%, rgba(255,255,255,.12));
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.035) 0,
      rgba(255,255,255,.035) 9.5%,
      rgba(0,0,0,.08) 9.5%,
      rgba(0,0,0,.08) 19%
    ),
    linear-gradient(90deg, rgba(8,62,35,.94), rgba(9,77,42,.98) 50%, rgba(8,62,35,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 18px 44px rgba(0,0,0,.30);
}

#datos-page .datos-acta-shared-field::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

#datos-page .datos-acta-shared-field-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}

#datos-page .datos-acta-shared-field-half.is-local {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.035), transparent);
}

#datos-page .datos-acta-shared-field-half.is-away {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,.035), transparent);
}

#datos-page .datos-acta-shared-field-line--mid {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,.20);
  transform: translateX(-50%);
}

#datos-page .datos-acta-shared-field-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}

#datos-page .datos-acta-shared-field-box {
  position: absolute;
  top: 50%;
  width: 72px;
  height: 170px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}

#datos-page .datos-acta-shared-field-box--local {
  left: 10px;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

#datos-page .datos-acta-shared-field-box--away {
  right: 10px;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

#datos-page .datos-acta-shared-field-players {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#datos-page .datos-acta-shared-field-player {
  position: absolute;
}

#datos-page .datos-acta-shared-field-player.is-local .datos-team-overview-field-player-name {
  background: rgba(2,35,20,.82);
}

#datos-page .datos-acta-shared-field-player.is-away .datos-team-overview-field-player-name {
  background: rgba(2,25,38,.82);
}

#datos-page .datos-acta-real-shared-field-stack {
  --datos-acta-possible-height: clamp(430px, 34vw, 560px);
  display: grid;
  grid-template-rows: auto var(--datos-acta-possible-height);
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  align-items: end;
}

#datos-page .datos-acta-real-shared-field-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

#datos-page .datos-acta-real-shared-field-source {
  max-width: 54%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

#datos-page .datos-acta-real-shared-field {
  width: 100%;
}

#datos-page .datos-acta-real-match-layout .datos-acta-real-shared-field-stack {
  width: 100%;
  margin: 0;
  align-self: end;
}

#datos-page .datos-acta-real-match-layout {
  margin-top: 4px;
}

@media (max-width: 1280px) {
  #datos-page .datos-acta-possible-match-layout {
    --datos-acta-possible-height: clamp(390px, 40vw, 500px);
    grid-template-columns: minmax(150px, 190px) minmax(600px, 1fr) minmax(150px, 190px);
    gap: 8px;
  }

  #datos-page .datos-acta-possible-summary-logo-shell {
    width: 82px;
    height: 82px;
  }

  #datos-page .datos-acta-possible-summary-logo,
  #datos-page .datos-acta-possible-summary-logo-fallback {
    width: 66px;
    height: 66px;
  }

  #datos-page .datos-acta-possible-summary-name {
    font-size: 13px;
  }

  #datos-page .datos-acta-possible-summary-pos {
    font-size: 13px;
  }

  #datos-page .datos-acta-possible-form-pill {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  #datos-page .datos-acta-possible-match-layout {
    --datos-acta-possible-height: min(520px, 82vw);
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  #datos-page .datos-acta-possible-field-stack {
    order: -1;
  }

  #datos-page .datos-acta-possible-bench-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-acta-possible-paired-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #datos-page .datos-acta-possible-paired-row > :first-child,
  #datos-page .datos-acta-possible-paired-row > :last-child {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  #datos-page .datos-acta-shared-field {
    height: var(--datos-acta-possible-height);
    min-height: 0;
  }

  #datos-page .datos-acta-possible-roster-body {
    grid-template-rows: auto auto auto auto;
  }

  #datos-page .datos-acta-possible-roster-scroll {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

#datos-page .datos-acta-real-lineup-team-card {
  --datos-acta-previa-accent: var(--datos-acta-structured-accent, rgba(255,255,255,.35));
  --datos-acta-previa-soft: var(--datos-acta-structured-soft, rgba(255,255,255,.06));
}

#datos-page .datos-acta-real-lineup-section {
  position: relative;
  width: 100%;
  min-width: 0;

  margin-top: 12px;
  overflow: visible;
}

#datos-page .datos-acta-lineup-section-watermark {
  position: absolute;
  z-index: 0;
  right: clamp(14px, 3.2vw, 42px);
  top: 50%;
  width: clamp(150px, 24%, 250px);
  aspect-ratio: 1 / 1;
  height: auto;
  transform: translateY(-50%);
  object-fit: contain;
  border-radius: 999px;
  opacity: 0;
  filter: grayscale(.08) saturate(.85);
  pointer-events: none;
  user-select: none;
}

#datos-page .datos-acta-real-lineup-section > :not(.datos-acta-lineup-section-watermark) {
  position: relative;
  z-index: 1;
}

#datos-page .datos-acta-real-lineup-section:first-of-type {
  margin-top: 0;
}

#datos-page .datos-acta-real-lineup-section-head {
  width: 100%;
  min-width: 0;

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

  margin-bottom: 9px;
  padding: 6px 9px 6px 8px;
  border-radius: 11px;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.38),
      rgba(0,0,0,.20) 54%,
      rgba(255,255,255,.018) 78%,
      transparent
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

#datos-page .datos-acta-real-lineup-section-title {
  color: white;

  font-size: 12.5px;
  font-weight: 950;
}

#datos-page .datos-acta-real-lineup-section-count {
  color: rgba(255,255,255,.48);

  font-size: 10px;
  font-weight: 800;
}

#datos-page .datos-acta-real-lineup-grid {
  width: 100%;
  min-width: 0;
}

#datos-page .datos-acta-real-lineup-line-block + .datos-acta-real-lineup-line-block {
  margin-top: 10px;
}

#datos-page .datos-acta-real-lineup-line-block .datos-acta-real-lineup-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 10px 12px;
  padding: 4px 8px 2px 22px;
  overflow: visible;
}

#datos-page .datos-acta-real-lineup-line-head {
  margin-bottom: 7px;
}

#datos-page .datos-acta-real-lineup-line-block .datos-team-overview-xi-player-card {
  width: 100%;
  max-width: none;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  overflow: visible;
}

#datos-page .datos-acta-xi-event-badge {
  min-width: 30px;
  min-height: 17px;
  padding: 2px 6px;
  border-radius: 999px;
  color: rgba(255,255,255,.96);
  font-size: 8.8px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 5px 12px rgba(0,0,0,.28);
}

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

#datos-page .datos-acta-xi-event-badge.is-yellow {
  color: rgba(255,255,255,.92);
  background: rgba(161,111,10,.90);
  border-color: rgba(250,204,21,.58);
}

#datos-page .datos-acta-xi-event-badge.is-red {
  background: rgba(185,28,28,.90);
  border-color: rgba(252,165,165,.56);
}

#datos-page .datos-acta-xi-event-badge.is-in {
  background: rgba(5,150,105,.88);
  border-color: rgba(110,231,183,.54);
}

#datos-page .datos-acta-xi-event-badge.is-out {
  background: rgba(190,60,60,.88);
  border-color: rgba(252,165,165,.50);
}

#datos-page .datos-acta-real-lineup-player-card .datos-acta-previa-xi-goals {
  background:
    color-mix(
      in srgb,
      var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 18%,
      rgba(255,255,255,.045)
    );

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 32%,
      rgba(255,255,255,.075)
    );
}

/* =========================================================
   ACTA · PLANTILLAS DEL ACTA
   ========================================================= */

#datos-page .datos-acta-possible-bench-strip {
  width: min(100%, 1420px);
  margin: 20px auto 0;
  padding: 0;
}

#datos-page .datos-acta-roster-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 14px;
}

#datos-page .datos-acta-roster-title-line {
  width: min(17vw, 120px);
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 55%, rgba(255,255,255,.10)),
      transparent
    );
  box-shadow: 0 0 12px color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 35%, transparent);
}

#datos-page .datos-acta-roster-main-title {
  color: rgba(255,255,255,.94);
  font-size: 19px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}

#datos-page .datos-acta-roster-panels-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

#datos-page .datos-acta-roster-team-panel {
  --datos-acta-roster-content-min-h: clamp(520px, 43vw, 690px);
  --datos-acta-roster-panel-min-h: clamp(700px, 58vw, 880px);

  min-width: 0;
  min-height: var(--datos-acta-roster-panel-min-h);
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--datos-acta-structured-accent, rgba(255,255,255,.35)) 20%, rgba(255,255,255,.10));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-acta-structured-accent, rgba(34,197,94,.35)) 10%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(7,14,15,.88), rgba(3,8,9,.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 38px rgba(0,0,0,.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-team-stack-header {
  min-height: 58px;
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-team-stack-logo-shell {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-team-stack-logo,
#datos-page .datos-acta-roster-team-panel .datos-acta-possible-team-stack-logo-fallback {
  width: 44px;
  height: 44px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-team-stack-name {
  font-size: 17px;
  line-height: 1.05;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-team-stack-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(255,255,255,.62);
}

#datos-page .datos-acta-roster-tabs-shell {
  margin: 8px -3px 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#datos-page .datos-acta-roster-tabs {
  display: block;
  gap: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.028);
  overflow: hidden;
}

#datos-page .datos-acta-roster-tabs .tab-container {
  width: 100%;
  display: flex !important;
  align-items: stretch;
}

#datos-page .datos-acta-roster-tabs .tab,
#datos-page .datos-acta-roster-tabs .datos-acta-roster-tab {
  min-width: 0;
  width: 33.3333% !important;
  max-width: none !important;
  flex: 1 1 0 !important;
  min-height: 34px;
  height: 34px;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 6px !important;
  color: rgba(255,255,255,.62) !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.065) !important;
  background: transparent !important;
  box-shadow: none !important;
}

#datos-page .datos-acta-roster-tabs .tab:last-child,
#datos-page .datos-acta-roster-tabs .datos-acta-roster-tab:last-child {
  border-right: 0 !important;
}

#datos-page .datos-acta-roster-tabs .tab--selected,
#datos-page .datos-acta-roster-tabs .is-active {
  color: rgba(255,255,255,.95) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 18%, rgba(255,255,255,.035)), rgba(255,255,255,.020)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 42%, transparent) !important;
}

#datos-page .datos-acta-roster-tab {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  color: rgba(255,255,255,.62);
  font-size: 10.5px;
  font-weight: 900;
  font-family: inherit;
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.065);
  background: transparent;
  cursor: pointer;
  user-select: none;
}

#datos-page .datos-acta-roster-tab-content {
  min-width: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

#datos-page .datos-acta-roster-tab-content > span:not(.datos-acta-roster-tab-count) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#datos-page .datos-acta-roster-tabs-shell .tab-content,
#datos-page .datos-acta-roster-tabs-shell .dash-tab-content {
  margin-top: 10px;
  flex: 1 1 auto;
  min-height: var(--datos-acta-roster-content-min-h);
}

#datos-page .datos-acta-roster-tabs-shell .tab-content {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#datos-page .datos-acta-roster-view-section,
#datos-page .datos-acta-roster-starters-combo {
  min-height: var(--datos-acta-roster-content-min-h);
}

#datos-page .datos-acta-roster-tabs-shell > .tab-content,
#datos-page .datos-acta-roster-tabs-shell > .dash-tab-content,
#datos-page .datos-acta-roster-tabs-shell > div:not(.datos-acta-roster-tabs) {
  min-height: var(--datos-acta-roster-content-min-h);
}

#datos-page .datos-acta-roster-tab:last-child {
  border-right: 0;
}

#datos-page .datos-acta-roster-tab.is-active {
  color: rgba(255,255,255,.95);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 18%, rgba(255,255,255,.035)), rgba(255,255,255,.020));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 42%, transparent);
}

#datos-page .datos-acta-roster-tab-count {
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.24);
  font-size: 9px;
  font-weight: 950;
}

#datos-page .datos-acta-roster-panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#datos-page .datos-acta-roster-view-section {
  width: 100%;
}

#datos-page .datos-acta-roster-starters-combo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-bench-section,
#datos-page .datos-acta-roster-team-panel .datos-acta-possible-sanction-section,
#datos-page .datos-acta-roster-team-panel .datos-acta-possible-starters-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-bench-head {
  min-height: 24px;
  margin: 0 0 7px;
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(255,255,255,.095);
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-bench-title,
#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-title {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-bench-meta,
#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-count {
  color: rgba(255,255,255,.45);
  font-size: 9.5px;
  font-weight: 850;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-block {
  margin: 0 0 12px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-head {
  margin-bottom: 6px;
  padding: 0 2px;
  border: 0;
  background: transparent;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-bench-scroll {
  max-height: none;
  overflow: visible;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-block .datos-acta-possible-bench-scroll,
#datos-page .datos-acta-roster-team-panel .datos-acta-possible-bench-scroll.is-sanctions {
  max-height: 130px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-sanction-section .datos-acta-possible-bench-scroll.is-sanctions {
  max-height: none;
  min-height: calc(var(--datos-acta-roster-content-min-h) - 38px);
  overflow: visible;
  padding-right: 0;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-roster-top-bench-section {
  margin-top: 4px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-roster-top-bench-scroll {
  max-height: none;
  overflow: visible;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-grid.is-flat {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-line-grid,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-grid,
#datos-page .datos-acta-roster-team-panel .datos-acta-real-lineup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-grid,
#datos-page .datos-acta-roster-team-panel .datos-acta-real-lineup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-player-card,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-card {
  position: relative;
  min-width: 0;
  min-height: 66px;
  height: auto;
  max-height: none;
  padding: 9px 64px 9px 56px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-acta-structured-accent, #22c55e) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(22,25,25,.96), rgba(10,13,13,.94));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  overflow: visible;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 22px rgba(0,0,0,.20);
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-rank,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-rank {
  position: absolute;
  width: 26px;
  height: 26px;
  min-width: 26px;
  left: -5px;
  top: -5px;
  font-size: 10px;
  z-index: 7;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-img,
#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-img-fallback,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-img-wrap,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-img,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-img-fallback {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-img-wrap {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  z-index: 2;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-name {
  font-size: 11px;
  line-height: 1.1;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-text,
#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-name-row {
  min-width: 0;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-text {
  align-self: start;
  padding-top: 1px;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-name {
  min-width: 0;
  font-size: 11px;
  line-height: 1.12;
  font-weight: 950;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-pos {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  min-width: 38px;
  max-width: 54px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,.30);
  background: rgba(74,222,128,.16);
  color: #4ade80;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-alert {
  display: none;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-player-card--sanction {
  border-color: rgba(248,113,113,.58);
  box-shadow:
    inset 0 0 0 1px rgba(248,113,113,.22),
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 22px rgba(0,0,0,.20);
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-player-card--risk {
  border-color: rgba(250,204,21,.58);
  box-shadow:
    inset 0 0 0 1px rgba(250,204,21,.20),
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 22px rgba(0,0,0,.20);
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-player-card--doubt {
  border-color: rgba(148,163,184,.52);
  box-shadow:
    inset 0 0 0 1px rgba(148,163,184,.18),
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 22px rgba(0,0,0,.20);
}

#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-meta,
#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-player-main-metric {
  display: none;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-goals {
  min-width: 24px;
  height: 22px;
  padding: 2px 5px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-goals-value {
  font-size: 9px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-goals-label {
  display: none;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-real-lineup-event-badges {
  gap: 3px;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-real-lineup-event-badge {
  min-height: 16px;
  padding: 2px 5px;
  font-size: 8px;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-status-badges {
  position: absolute;
  left: 56px;
  right: 66px;
  top: 31px;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  z-index: 6;
  pointer-events: none;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-status-badge {
  min-width: 26px;
  min-height: 18px;
  height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-xi-status-badge.is-captain {
  position: absolute;
  left: auto;
  right: -58px;
  top: -23px;
  min-width: 24px;
  width: 24px;
  height: 18px;
  padding: 0;
  z-index: 8;
  box-shadow: 0 6px 12px rgba(0,0,0,.24);
}

/* Plantillas del acta: ajuste final de chips dentro de la tarjeta */
#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card {
  padding: 9px 72px 9px 56px !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card .datos-team-overview-xi-text {
  position: static !important;
  min-width: 0 !important;
  padding-top: 0 !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card .datos-team-overview-xi-name {
  padding-right: 0 !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card .datos-team-overview-xi-pos {
  position: absolute !important;
  left: auto !important;
  right: 8px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
  min-width: 40px !important;
  max-width: 62px !important;
  height: 18px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(74,222,128,.34) !important;
  background: rgba(34,197,94,.20) !important;
  color: #86efac !important;
  font-size: 8px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card .datos-team-overview-xi-status-badges {
  position: absolute !important;
  left: 56px !important;
  right: 72px !important;
  top: auto !important;
  bottom: 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 3px !important;
  max-width: none !important;
  z-index: 7 !important;
  pointer-events: none !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card .datos-team-overview-xi-status-badge {
  min-width: 24px !important;
  height: 17px !important;
  min-height: 17px !important;
  padding: 0 6px !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card .datos-team-overview-xi-status-badge.is-captain {
  display: none !important;
}

#datos-page .datos-acta-possible-bench-strip .datos-acta-roster-team-panel .datos-team-overview-xi-player-card:has(.datos-team-overview-xi-status-badge.is-captain)::after {
  content: "C";
  position: absolute;
  right: 16px;
  top: 5px;
  z-index: 12;
  width: 22px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(250,204,21,.55);
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.28), transparent 38%),
    rgba(161,120,0,.78);
  color: #fde68a;
  font-size: 8.5px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(0,0,0,.26);
}

#datos-page .datos-acta-roster-team-panel .datos-acta-xi-event-badge.is-goal {
  border-color: rgba(34,197,94,.48);
  background: rgba(34,197,94,.22);
  color: #bbf7d0;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-xi-event-badge.is-yellow {
  border-color: rgba(250,204,21,.50);
  background: rgba(250,204,21,.18);
  color: #fde68a;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-xi-event-badge.is-red {
  border-color: rgba(248,113,113,.50);
  background: rgba(248,113,113,.20);
  color: #fecaca;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-xi-event-badge.is-in,
#datos-page .datos-acta-roster-team-panel .datos-acta-xi-event-badge.is-out {
  border-color: rgba(56,189,248,.42);
  background: rgba(56,189,248,.16);
  color: #bae6fd;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-key-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

#datos-page .datos-acta-roster-key-panels-row {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

#datos-page .datos-acta-roster-key-panel {
  min-width: 0;
}

#datos-page .datos-acta-roster-key-panel .datos-acta-possible-key-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

#datos-page .datos-acta-roster-team-panel .datos-acta-possible-key-section {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}

#datos-page .datos-acta-roster-team-panel .datos-team-overview-key-head {
  margin: -9px -9px 8px;
  padding: 8px 9px;
  border-radius: 10px 10px 0 0;
}

@media (max-width: 1180px) {
  #datos-page .datos-acta-roster-panels-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #datos-page .datos-acta-roster-team-panel .datos-acta-previa-xi-grid,
  #datos-page .datos-acta-roster-team-panel .datos-acta-real-lineup-grid,
  #datos-page .datos-acta-roster-team-panel .datos-acta-possible-key-strip {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-roster-tabs {
    grid-template-columns: 1fr;
  }
}
















/* =========================================================
   ACTA · PARTIDO · TIMELINE EVENTOS
   ========================================================= */
/* =========================================================
   ACTA · PARTIDO · TIMELINE MINIMALISTA
   ========================================================= */
/* =========================================================
   ACTA · PARTIDO · TIMELINE AGRUPADO
   ========================================================= */

/* =========================================================
   ACTA · PARTIDO · TIMELINE AGRUPADO · NUEVA VERSIÓN
   ========================================================= */
/* =========================================================
   ACTA · PARTIDO · TIMELINE AGRUPADO · NUEVA VERSIÓN
   ========================================================= */
/* =========================================================
   ACTA · PARTIDO · TIMELINE AGRUPADO · NUEVA VERSIÓN
   ========================================================= */
/* =========================================================
   ACTA · PARTIDO · TIMELINE EVENTOS · SIN AGRUPAR
   ========================================================= */
/* =========================================================
   ACTA · PARTIDO · TIMELINE POR MINUTO
   ========================================================= */

/* =========================================================
   ACTA · PARTIDO · TIMELINE POR MINUTO
   ========================================================= */

/* =========================================================
   ACTA · PARTIDO · TIMELINE POR MINUTO
   ========================================================= */

#datos-page .datos-acta-main-section,
#datos-page .datos-acta-main-content,
#datos-page .datos-acta-tab-content,
#datos-page .datos-acta-structured-card,
#datos-page .datos-acta-timeline-section {
  overflow: visible !important;
}

#datos-page .datos-acta-timeline-section {
  position: relative;
  z-index: 5;

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

#datos-page .datos-acta-timeline-section > .datos-acta-structured-section-head {
  display: none;
  margin-bottom: 0;
}


/* =========================================================
   LAYOUT · ESCUDOS + TRACK
   ========================================================= */

#datos-page .datos-acta-timeline-stage {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;

  overflow: visible;
}


/* =========================================================
   ESCUDOS LATERALES
   ========================================================= */

#datos-page .datos-acta-timeline-side-badges {
  width: 78px;
  min-width: 78px;
  height: 260px;

  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;

  position: relative;

  box-sizing: border-box;
  padding-top: 0;

  overflow: visible;

  transform: translateY(0);
}

#datos-page .datos-acta-timeline-side-badge {
  position: static;

  width: 62px;
  height: 62px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255,255,255,.14),
      rgba(255,255,255,.045)
    );

  border: 1px solid rgba(255,255,255,.16);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 10px 22px rgba(0,0,0,.24);
}

#datos-page .datos-acta-timeline-side-badge-logo,
#datos-page .datos-acta-timeline-side-badge-logo-fallback {
  width: 45px;
  height: 45px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 12px;
  font-weight: 950;
}


/* =========================================================
   TRACK
   ========================================================= */

#datos-page .datos-acta-timeline-track {
  position: relative;

  /* Metemos barra + eventos más dentro de la sección de escudos */
  width: calc(100% + 22px);
  min-width: 0;
  height: 280px;
  flex: var(--datos-acta-segment-flex, 1) 1 0;

  margin-left: -22px;

  box-sizing: border-box;

  overflow: visible;
}

#datos-page .datos-acta-timeline-tracks {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: calc(100% + 22px);
  min-width: 0;
  margin-left: -22px;
  overflow: visible;
}

#datos-page .datos-acta-timeline-tracks .datos-acta-timeline-track {
  width: 100%;
  margin-left: 0;
}

#datos-page .datos-acta-timeline-track.is-first,
#datos-page .datos-acta-timeline-track.is-second {
  min-width: 0;
}

#datos-page .datos-acta-timeline-track.is-extra {
  flex: var(--datos-acta-segment-flex, 30) 1 0;
  min-width: 104px;
}

#datos-page .datos-acta-timeline-track.is-full_time {
  flex: var(--datos-acta-segment-flex, 8) 1 0;
  min-width: 68px;
}

#datos-page .datos-acta-timeline-track-label {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

#datos-page .datos-acta-timeline-track.is-full_time .datos-acta-timeline-line {
  opacity: .35;
}

#datos-page .datos-acta-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;

  height: 4px;

  border-radius: 999px;

  transform: translateY(-50%);

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.14),
      color-mix(
        in srgb,
        var(--datos-acta-timeline-accent, rgba(255,255,255,.35)) 18%,
        rgba(255,255,255,.18)
      ),
      rgba(255,255,255,.14)
    );

  box-shadow:
    0 0 0 1px rgba(255,255,255,.055),
    0 6px 14px rgba(0,0,0,.18);
}


/* =========================================================
   PUNTOS DEL EJE TEMPORAL
   ========================================================= */

#datos-page .datos-acta-timeline-tick {
  position: absolute;
  left: var(--datos-acta-tick-left);
  top: 50%;

  transform: translate(-50%, -50%);
}

#datos-page .datos-acta-timeline-tick-line {
  width: 6px;
  height: 6px;

  margin: 0 auto;

  border-radius: 999px;

  background: rgba(255,255,255,.22);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 8px rgba(255,255,255,.08);
}

#datos-page .datos-acta-timeline-tick-label {
  position: absolute;
  left: 50%;
  top: 12px;

  transform: translateX(-50%);

  color: rgba(255,255,255,.46);

  font-size: 9.5px;
  font-weight: 850;
  white-space: nowrap;
}


/* =========================================================
   GRUPOS POR MINUTO
   ========================================================= */

#datos-page .datos-acta-timeline-minute-group {
  position: absolute;
  left: var(--datos-acta-event-left);

  width: 44px;

  transform: translateX(-50%);
  z-index: 5;

  overflow: visible;
}


/* ---------- Local: carriles superiores ---------- */

#datos-page .datos-acta-timeline-minute-group.is-local.lane-0 {
  bottom: calc(50% + 10px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-1 {
  bottom: calc(50% + 46px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-2 {
  bottom: calc(50% + 82px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-3 {
  bottom: calc(50% + 118px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-4 {
  bottom: calc(50% + 154px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-5 {
  bottom: calc(50% + 190px);
}


/* ---------- Visitante: carriles inferiores ---------- */

#datos-page .datos-acta-timeline-minute-group.is-away.lane-0 {
  top: calc(50% + 10px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-1 {
  top: calc(50% + 46px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-2 {
  top: calc(50% + 82px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-3 {
  top: calc(50% + 118px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-4 {
  top: calc(50% + 154px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-5 {
  top: calc(50% + 190px);
}


/* ---------- Neutral: arriba ---------- */

#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-0 {
  bottom: calc(50% + 10px);
}

#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-1 {
  bottom: calc(50% + 46px);
}

#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-2 {
  bottom: calc(50% + 82px);
}

#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-3 {
  bottom: calc(50% + 118px);
}

#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-4 {
  bottom: calc(50% + 154px);
}

#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-5 {
  bottom: calc(50% + 190px);
}


/* =========================================================
   TARJETA DE MINUTO
   ========================================================= */

#datos-page .datos-acta-timeline-minute-core {
  width: 44px;
  min-width: 44px;
  min-height: 34px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  padding: 4px 3px;

  box-sizing: border-box;
  border-radius: 11px;

  color: white;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.085),
      rgba(255,255,255,.035)
    );

  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 18px rgba(0,0,0,.16);

  cursor: pointer;

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}

#datos-page .datos-acta-timeline-minute-group.is-tone-goal .datos-acta-timeline-minute-core {
  background:
    linear-gradient(180deg, rgba(34,197,94,.30), rgba(10,60,35,.74));
  border-color: rgba(34,197,94,.46);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 18px rgba(0,0,0,.18),
    0 0 16px rgba(34,197,94,.10);
}

#datos-page .datos-acta-timeline-minute-group.is-tone-yellow .datos-acta-timeline-minute-core {
  background:
    linear-gradient(180deg, rgba(250,204,21,.28), rgba(74,58,10,.76));
  border-color: rgba(250,204,21,.52);
}

#datos-page .datos-acta-timeline-minute-group.is-tone-red .datos-acta-timeline-minute-core {
  background:
    linear-gradient(180deg, rgba(239,68,68,.30), rgba(72,18,24,.78));
  border-color: rgba(239,68,68,.54);
}

#datos-page .datos-acta-timeline-minute-group.is-tone-orange .datos-acta-timeline-minute-core {
  background:
    linear-gradient(180deg, rgba(249,115,22,.32), rgba(250,204,21,.16) 45%, rgba(80,42,10,.82));
  border-color: rgba(249,115,22,.58);
}

#datos-page .datos-acta-timeline-minute-group.is-tone-sub .datos-acta-timeline-minute-core {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-timeline-accent, rgba(255,255,255,.35)) 20%, rgba(255,255,255,.10)),
      rgba(45,48,50,.82)
    );
  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-timeline-accent, rgba(255,255,255,.35)) 28%,
      rgba(255,255,255,.14)
    );
}

#datos-page .datos-acta-timeline-minute-group:hover {
  z-index: 100;
}

#datos-page .datos-acta-timeline-minute-group:hover .datos-acta-timeline-minute-core {
  transform: translateY(-1px) scale(1.06);

  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-timeline-accent, rgba(255,255,255,.35)) 24%,
      rgba(255,255,255,.18)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 14px 26px rgba(0,0,0,.24);
}

#datos-page .datos-acta-timeline-minute-label {
  color: white;

  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}


/* =========================================================
   ICONOS ASOCIADOS AL MINUTO
   ========================================================= */

#datos-page .datos-acta-timeline-minute-events {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  max-width: 38px;
  gap: 1px;

  line-height: 1;
}

#datos-page .datos-acta-timeline-minute-event-dot {
  width: 13px;
  height: 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 5px;

  font-size: 9px;
  line-height: 1;

  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-timeline-minute-event-dot.is-goal {
  background: rgba(34,197,94,.22);
  border-color: rgba(34,197,94,.48);
}

#datos-page .datos-acta-timeline-minute-event-dot.is-yellow {
  background: rgba(250,204,21,.22);
  border-color: rgba(250,204,21,.58);
}

#datos-page .datos-acta-timeline-minute-event-dot.is-red {
  background: rgba(239,68,68,.24);
  border-color: rgba(239,68,68,.60);
}

/* =========================================================
   ACTA · TIMELINE v2 · estilo panel de eventos
   ========================================================= */

#datos-page .datos-acta-timeline-section {
  margin: -2px 0 4px;
  padding: 0 8px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-acta-timeline-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
  margin-bottom: 12px;
}

#datos-page .datos-acta-timeline-top-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#datos-page .datos-acta-timeline-title-mark {
  color: #22c55e;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 16px rgba(34,197,94,.36);
}

#datos-page .datos-acta-timeline-title {
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .02em;
  white-space: nowrap;
}

#datos-page .datos-acta-timeline-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

#datos-page .datos-acta-timeline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

#datos-page .datos-acta-timeline-legend-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
  color: white;
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

#datos-page .datos-acta-timeline-legend-icon.is-goal {
  background: linear-gradient(180deg, rgba(16,185,129,.34), rgba(5,80,49,.72));
  border-color: rgba(34,197,94,.42);
}

#datos-page .datos-acta-timeline-legend-icon.is-yellow {
  color: #fde047;
  background: linear-gradient(180deg, rgba(250,204,21,.26), rgba(83,63,8,.76));
  border-color: rgba(250,204,21,.45);
}

#datos-page .datos-acta-timeline-legend-icon.is-red {
  color: #fb7185;
  background: linear-gradient(180deg, rgba(239,68,68,.26), rgba(91,18,28,.76));
  border-color: rgba(239,68,68,.46);
}

#datos-page .datos-acta-timeline-legend-icon.is-sub {
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(63,66,70,.78));
  border-color: rgba(255,255,255,.22);
}

#datos-page .datos-acta-timeline-stage {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 4px 4px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

#datos-page .datos-acta-timeline-side-badges {
  width: 86px;
  min-width: 86px;
  height: 248px;
}

#datos-page .datos-acta-timeline-side-badge {
  width: 66px;
  height: 66px;
  border-color: rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.16), rgba(255,255,255,.055) 48%, rgba(0,0,0,.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 12px 26px rgba(0,0,0,.28);
}

#datos-page .datos-acta-timeline-side-badge-logo,
#datos-page .datos-acta-timeline-side-badge-logo-fallback {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.075);
}

#datos-page .datos-acta-timeline-tracks {
  width: 100%;
  margin-left: 0;
  gap: 0;
}

#datos-page .datos-acta-timeline-track {
  height: 248px;
  width: 100%;
  margin-left: 0;
}

#datos-page .datos-acta-timeline-track-label {
  top: calc(50% + 12px);
  z-index: 8;
  padding: 5px 9px;
  color: rgba(255,255,255,.82);
  background: rgba(6,10,16,.86);
  border-color: rgba(255,255,255,.13);
  font-size: 9px;
  text-transform: uppercase;
}

#datos-page .datos-acta-timeline-line {
  height: 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.32), rgba(255,255,255,.18));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 8px 20px rgba(0,0,0,.22);
}

#datos-page .datos-acta-timeline-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.24);
}

#datos-page .datos-acta-timeline-tick-line {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,.46);
  box-shadow:
    0 0 0 2px rgba(6,10,16,.88),
    0 0 10px rgba(255,255,255,.10);
}

#datos-page .datos-acta-timeline-tick-label {
  top: 10px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 900;
}

#datos-page .datos-acta-timeline-minute-group {
  width: 42px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-0,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-0 {
  bottom: calc(50% + 23px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-1,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-1 {
  bottom: calc(50% + 60px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-2,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-2 {
  bottom: calc(50% + 97px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-3,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-3 {
  bottom: calc(50% + 134px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-4,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-4 {
  bottom: calc(50% + 171px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-0 {
  top: calc(50% + 23px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-1 {
  top: calc(50% + 60px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-2 {
  top: calc(50% + 97px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-3 {
  top: calc(50% + 134px);
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-4 {
  top: calc(50% + 171px);
}

#datos-page .datos-acta-timeline-minute-core {
  width: 42px;
  min-width: 42px;
  min-height: 38px;
  gap: 4px;
  padding: 5px 4px;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 9px 18px rgba(0,0,0,.24);
}

#datos-page .datos-acta-timeline-minute-group::after {
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  opacity: .72;
}

#datos-page .datos-acta-timeline-minute-group.is-local::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral::after {
  top: calc(100% + 1px);
}

#datos-page .datos-acta-timeline-minute-group.is-away::after {
  bottom: calc(100% + 1px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-0::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-0::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-0::after {
  height: 21px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-1::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-1::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-1::after {
  height: 58px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-2::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-2::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-2::after {
  height: 95px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-3::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-3::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-3::after {
  height: 132px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-4::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-4::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-4::after {
  height: 169px;
}

#datos-page .datos-acta-timeline-minute-label {
  font-size: 12px;
}

#datos-page .datos-acta-timeline-minute-events {
  gap: 2px;
  max-width: 36px;
}

#datos-page .datos-acta-timeline-minute-event-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  font-size: 9px;
}

#datos-page .datos-acta-timeline-minute-event-dot.is-sub {
  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-timeline-accent, rgba(255,255,255,.35)) 16%,
      rgba(255,255,255,.10)
    );
}


/* =========================================================
   CONECTOR DE EVENTOS AL EJE
   ========================================================= */

#datos-page .datos-acta-timeline-minute-group::after {
  content: "";

  position: absolute;
  left: 50%;

  width: 1px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.28),
      rgba(255,255,255,.10)
    );

  transform: translateX(-50%);

  pointer-events: none;
}


/* ---------- Conectores local / neutral ---------- */

#datos-page .datos-acta-timeline-minute-group.is-local::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral::after {
  top: 100%;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-0::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-0::after {
  height: 10px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-1::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-1::after {
  height: 46px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-2::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-2::after {
  height: 82px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-3::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-3::after {
  height: 118px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-4::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-4::after {
  height: 154px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-5::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-5::after {
  height: 190px;
}


/* ---------- Conectores visitante ---------- */

#datos-page .datos-acta-timeline-minute-group.is-away::after {
  bottom: 100%;
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-0::after {
  height: 10px;
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-1::after {
  height: 46px;
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-2::after {
  height: 82px;
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-3::after {
  height: 118px;
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-4::after {
  height: 154px;
}

#datos-page .datos-acta-timeline-minute-group.is-away.lane-5::after {
  height: 190px;
}


/* =========================================================
   POPOVER
   ========================================================= */

#datos-page .datos-acta-timeline-popover {
  position: absolute;
  left: 50%;

  width: 280px;
  min-width: 280px;
  max-width: 280px;

  padding: 11px;

  box-sizing: border-box;
  border-radius: 15px;

  color: white;

  background: rgba(10,14,22,.98);
  border: 1px solid rgba(255,255,255,.13);

  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.06);

  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 120;

  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;
}

#datos-page .datos-acta-timeline-minute-group.is-local .datos-acta-timeline-popover,
#datos-page .datos-acta-timeline-minute-group.is-neutral .datos-acta-timeline-popover {
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
}

#datos-page .datos-acta-timeline-minute-group.is-away .datos-acta-timeline-popover {
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-8px);
}

#datos-page .datos-acta-timeline-minute-group:hover .datos-acta-timeline-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ---------- Popover pegado al borde izquierdo ---------- */

#datos-page .datos-acta-timeline-minute-group.is-edge-start .datos-acta-timeline-popover {
  left: 0;
}

#datos-page .datos-acta-timeline-minute-group.is-edge-start.is-local .datos-acta-timeline-popover,
#datos-page .datos-acta-timeline-minute-group.is-edge-start.is-neutral .datos-acta-timeline-popover {
  transform: translateX(0) translateY(8px);
}

#datos-page .datos-acta-timeline-minute-group.is-edge-start.is-away .datos-acta-timeline-popover {
  transform: translateX(0) translateY(-8px);
}

#datos-page .datos-acta-timeline-minute-group.is-edge-start:hover .datos-acta-timeline-popover {
  transform: translateX(0) translateY(0);
}


/* ---------- Popover pegado al borde derecho ---------- */

#datos-page .datos-acta-timeline-minute-group.is-edge-end .datos-acta-timeline-popover {
  left: auto;
  right: 0;
}

#datos-page .datos-acta-timeline-minute-group.is-edge-end.is-local .datos-acta-timeline-popover,
#datos-page .datos-acta-timeline-minute-group.is-edge-end.is-neutral .datos-acta-timeline-popover {
  transform: translateX(0) translateY(8px);
}

#datos-page .datos-acta-timeline-minute-group.is-edge-end.is-away .datos-acta-timeline-popover {
  transform: translateX(0) translateY(-8px);
}

#datos-page .datos-acta-timeline-minute-group.is-edge-end:hover .datos-acta-timeline-popover {
  transform: translateX(0) translateY(0);
}


/* =========================================================
   POPOVER · CONTENIDO
   ========================================================= */

#datos-page .datos-acta-timeline-popover-team-row {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 10px;
}

#datos-page .datos-acta-timeline-popover-team-logo,
#datos-page .datos-acta-timeline-popover-team-logo-fallback {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  object-fit: contain;

  color: white;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);

  font-size: 11px;
  font-weight: 950;
}

#datos-page .datos-acta-timeline-popover-team-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

#datos-page .datos-acta-timeline-popover-team-name {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: white;

  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

#datos-page .datos-acta-timeline-popover-team-subtitle {
  color: rgba(255,255,255,.52);

  font-size: 10px;
  font-weight: 800;
}

#datos-page .datos-acta-timeline-popover-events {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#datos-page .datos-acta-timeline-popover-event {
  padding: 8px 9px;

  border-radius: 12px;

  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-timeline-popover-event.is-goal {
  border-color: rgba(34,197,94,.22);
}

#datos-page .datos-acta-timeline-popover-event.is-yellow {
  border-color: rgba(250,204,21,.24);
}

#datos-page .datos-acta-timeline-popover-event.is-red {
  border-color: rgba(239,68,68,.28);
}

#datos-page .datos-acta-timeline-popover-event-top {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 4px;
}

#datos-page .datos-acta-timeline-popover-event-minute {
  color: rgba(255,255,255,.58);

  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-timeline-popover-event-icon {
  font-size: 12px;
  line-height: 1;
}

#datos-page .datos-acta-timeline-popover-event-title {
  color: white;

  font-size: 11px;
  font-weight: 950;
}

#datos-page .datos-acta-timeline-popover-event-summary {
  color: rgba(255,255,255,.86);

  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.25;
}

#datos-page .datos-acta-timeline-popover-event-detail {
  margin-top: 2px;

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

  font-size: 9.8px;
  font-weight: 700;
  line-height: 1.3;
}

/* Timeline v2 · cierre de overrides tras reglas legacy */
#datos-page .datos-acta-timeline-minute-group::after {
  width: 1px;
  opacity: .72;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
}

#datos-page .datos-acta-timeline-minute-group.is-local::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral::after {
  top: calc(100% + 1px);
}

#datos-page .datos-acta-timeline-minute-group.is-away::after {
  bottom: calc(100% + 1px);
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-0::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-0::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-0::after {
  height: 21px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-1::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-1::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-1::after {
  height: 58px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-2::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-2::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-2::after {
  height: 95px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-3::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-3::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-3::after {
  height: 132px;
}

#datos-page .datos-acta-timeline-minute-group.is-local.lane-4::after,
#datos-page .datos-acta-timeline-minute-group.is-neutral.lane-4::after,
#datos-page .datos-acta-timeline-minute-group.is-away.lane-4::after {
  height: 169px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  #datos-page .datos-acta-timeline-stage {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  #datos-page .datos-acta-timeline-side-badges {
    width: 68px;
    min-width: 68px;
    height: 280px;

    transform: translateY(0);
  }

  #datos-page .datos-acta-timeline-side-badge {
    width: 54px;
    height: 54px;
  }

  #datos-page .datos-acta-timeline-side-badge-logo,
  #datos-page .datos-acta-timeline-side-badge-logo-fallback {
    width: 39px;
    height: 39px;
  }

  #datos-page .datos-acta-timeline-track {
    width: calc(100% + 14px);
    height: 280px;

    margin-left: -14px;
  }

  #datos-page .datos-acta-timeline-popover {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
  }
}

@media (max-width: 760px) {
  #datos-page .datos-acta-timeline-stage {
    grid-template-columns: 1fr;
  }

  #datos-page .datos-acta-timeline-side-badges {
    display: none;
  }

  #datos-page .datos-acta-timeline-track {
    width: 100%;
    height: auto;
    min-height: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-left: 0;
    padding: 4px 0 0;
  }

  #datos-page .datos-acta-timeline-line,
  #datos-page .datos-acta-timeline-tick {
    display: none;
  }

  #datos-page .datos-acta-timeline-minute-group,
  #datos-page .datos-acta-timeline-minute-group.is-local.lane-0,
  #datos-page .datos-acta-timeline-minute-group.is-local.lane-1,
  #datos-page .datos-acta-timeline-minute-group.is-local.lane-2,
  #datos-page .datos-acta-timeline-minute-group.is-local.lane-3,
  #datos-page .datos-acta-timeline-minute-group.is-away.lane-0,
  #datos-page .datos-acta-timeline-minute-group.is-away.lane-1,
  #datos-page .datos-acta-timeline-minute-group.is-away.lane-2,
  #datos-page .datos-acta-timeline-minute-group.is-away.lane-3,
  #datos-page .datos-acta-timeline-minute-group.is-neutral.lane-0,
  #datos-page .datos-acta-timeline-minute-group.is-neutral.lane-1,
  #datos-page .datos-acta-timeline-minute-group.is-neutral.lane-2,
  #datos-page .datos-acta-timeline-minute-group.is-neutral.lane-3 {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;

    width: 100%;

    transform: none;
  }

  #datos-page .datos-acta-timeline-minute-group::after {
    display: none;
  }

  #datos-page .datos-acta-timeline-minute-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  #datos-page .datos-acta-timeline-minute-core {
    width: 54px;
    min-width: 54px;
  }

  #datos-page .datos-acta-timeline-popover,
  #datos-page .datos-acta-timeline-minute-group.is-edge-start .datos-acta-timeline-popover,
  #datos-page .datos-acta-timeline-minute-group.is-edge-end .datos-acta-timeline-popover {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;

    width: calc(100% - 64px);
    min-width: 0;
    max-width: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none !important;
  }

  #datos-page .datos-acta-timeline-minute-group:hover .datos-acta-timeline-popover {
    transform: none !important;
  }
}















/* =========================================================
   ACTA · ALINEACIONES · BADGES DE SUSTITUCIÓN
   ========================================================= */

#datos-page .datos-acta-real-lineup-player-card {
  grid-template-columns: 34px minmax(0, 1fr) minmax(38px, auto);
}

#datos-page .datos-acta-real-lineup-player-card.has-substitution {
  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 42%,
      rgba(255,255,255,.12)
    );
}

#datos-page .datos-acta-real-lineup-player-card.has-sub-in {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 18px rgba(0,0,0,.12),
    0 0 0 1px rgba(34,197,94,.10);
}

#datos-page .datos-acta-real-lineup-player-card.has-sub-out {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 18px rgba(0,0,0,.12),
    0 0 0 1px rgba(239,68,68,.10);
}

#datos-page .datos-acta-real-lineup-side-stack {
  min-width: 38px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#datos-page .datos-acta-real-lineup-sub-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

#datos-page .datos-acta-real-lineup-sub-badge {
  min-width: 34px;
  min-height: 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;

  padding: 2px 5px;

  border-radius: 999px;

  color: white;

  font-size: 9px;
  font-weight: 950;
  line-height: 1;

  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 10px rgba(0,0,0,.16);
}

#datos-page .datos-acta-real-lineup-sub-badge.is-in {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.34);
}

#datos-page .datos-acta-real-lineup-sub-badge.is-out {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.36);
}

#datos-page .datos-acta-real-lineup-sub-arrow {
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-real-lineup-sub-badge.is-in .datos-acta-real-lineup-sub-arrow {
  color: rgba(134,239,172,.98);
}

#datos-page .datos-acta-real-lineup-sub-badge.is-out .datos-acta-real-lineup-sub-arrow {
  color: rgba(252,165,165,.98);
}

#datos-page .datos-acta-real-lineup-sub-minute {
  color: rgba(255,255,255,.92);

  font-size: 8.8px;
  font-weight: 950;
  line-height: 1;
}

/* =========================================================
   ACTA · ALINEACIONES · EVENTOS EN TARJETA
   ========================================================= */

#datos-page .datos-acta-real-lineup-player-card {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

#datos-page .datos-acta-real-lineup-player-card.has-match-event {
  border-color:
    color-mix(
      in srgb,
      var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 42%,
      rgba(255,255,255,.12)
    );
}

#datos-page .datos-acta-real-lineup-side-stack {
  min-width: 82px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

#datos-page .datos-acta-real-lineup-event-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  max-width: 72px;
  gap: 3px;
}

#datos-page .datos-acta-real-lineup-event-badge {
  min-width: 30px;
  min-height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;

  padding: 2px 5px;

  border-radius: 999px;

  color: white;

  font-size: 9px;
  font-weight: 950;
  line-height: 1;

  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 10px rgba(0,0,0,.16);
}

#datos-page .datos-acta-real-lineup-event-badge.is-goal {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.35);
}

#datos-page .datos-acta-real-lineup-event-badge.is-yellow {
  background: rgba(250,204,21,.18);
  border-color: rgba(250,204,21,.40);
}

#datos-page .datos-acta-real-lineup-event-badge.is-red {
  background: rgba(239,68,68,.20);
  border-color: rgba(239,68,68,.42);
}

#datos-page .datos-acta-real-lineup-event-badge.is-in {
  background: rgba(34,197,94,.16);
  border-color: rgba(34,197,94,.34);
}

#datos-page .datos-acta-real-lineup-event-badge.is-out {
  background: rgba(239,68,68,.16);
  border-color: rgba(239,68,68,.36);
}

#datos-page .datos-acta-real-lineup-event-icon {
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-real-lineup-event-badge.is-yellow .datos-acta-real-lineup-event-icon {
  color: rgba(253,224,71,.98);
}

#datos-page .datos-acta-real-lineup-event-badge.is-red .datos-acta-real-lineup-event-icon {
  color: rgba(252,165,165,.98);
}

#datos-page .datos-acta-real-lineup-event-badge.is-in .datos-acta-real-lineup-event-icon {
  color: rgba(134,239,172,.98);
}

#datos-page .datos-acta-real-lineup-event-badge.is-out .datos-acta-real-lineup-event-icon {
  color: rgba(252,165,165,.98);
}

#datos-page .datos-acta-real-lineup-event-minute {
  color: rgba(255,255,255,.92);

  font-size: 8.6px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-real-lineup-side-stack .datos-acta-previa-xi-goals {
  flex: 0 0 auto;
}

/* ---------- Acta ajuste header con goleadores ---------- */
#datos-page .datos-acta-match-header-main {
  grid-template-columns: minmax(0, 1.08fr) auto minmax(0, 1.08fr);
  gap: 8px;
  padding: 10px 12px;
}

#datos-page .datos-acta-match-header-team { gap: 8px; }
#datos-page .datos-acta-match-header-team.is-local { justify-content: flex-end; }
#datos-page .datos-acta-match-header-team.is-away { justify-content: flex-start; }

#datos-page .datos-acta-match-header-team-logo,
#datos-page .datos-acta-match-header-team-logo-fallback {
  width: 46px;
  height: 46px;
}

#datos-page .datos-acta-match-header-score {
  min-width: 72px;
  padding: 9px 13px;
  border-radius: 14px;
}

#datos-page .datos-acta-match-header-goals {
  min-width: 0;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#datos-page .datos-acta-match-header-goals.is-empty { display: none; }

#datos-page .datos-acta-match-header-goal-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.58);
  font-size: 9.8px;
  font-weight: 760;
  line-height: 1.1;
}

#datos-page .datos-acta-match-header-team.is-away .datos-acta-match-header-goal-row {
  justify-content: flex-end;
}

#datos-page .datos-acta-match-header-goal-minute {
  flex: 0 0 auto;
  color: rgba(255,255,255,.82);
  font-weight: 950;
}

#datos-page .datos-acta-match-header-goal-player {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Acta campo de alineación ---------- */
#datos-page .datos-acta-pitch-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

#datos-page .datos-acta-pitch-card {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-acta-pitch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#datos-page .datos-acta-pitch-team-logo,
#datos-page .datos-acta-pitch-team-logo-fallback {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  object-fit: contain;
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 8px;
  font-weight: 950;
}

#datos-page .datos-acta-pitch-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.86);
  font-size: 11.5px;
  font-weight: 900;
}

#datos-page .datos-acta-pitch-surface {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 50%, rgba(255,255,255,.055) 50%),
    linear-gradient(180deg, rgba(34,197,94,.20), rgba(15,118,110,.12));
  background-size: 44px 44px, auto;
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-pitch-midline,
#datos-page .datos-acta-pitch-circle,
#datos-page .datos-acta-pitch-box {
  position: absolute;
  pointer-events: none;
  border-color: rgba(255,255,255,.16);
}

#datos-page .datos-acta-pitch-midline { left: 0; right: 0; top: 50%; border-top: 1px solid rgba(255,255,255,.16); }
#datos-page .datos-acta-pitch-circle { left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
#datos-page .datos-acta-pitch-box { left: 28%; width: 44%; height: 54px; border: 1px solid rgba(255,255,255,.14); }
#datos-page .datos-acta-pitch-box--top { top: -1px; border-top: 0; }
#datos-page .datos-acta-pitch-box--bottom { bottom: -1px; border-bottom: 0; }

#datos-page .datos-acta-pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 82px;
}

#datos-page .datos-acta-pitch-player-number {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.20);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-pitch-player-name {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 5px;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(0,0,0,.24);
  font-size: 8.5px;
  font-weight: 800;
}

/* ---------- Acta previa stats + ?ltimos partidos ---------- */
#datos-page .datos-acta-previa-stats-two-col,
#datos-page .datos-acta-lastmatches-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

#datos-page .datos-acta-previa-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

#datos-page .datos-acta-previa-stat-card {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-previa-stat-label {
  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

#datos-page .datos-acta-previa-stat-value {
  margin-top: 3px;
  color: white;
  font-size: 14px;
  font-weight: 950;
}

#datos-page .datos-acta-lastmatch-list {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin-top: 8px;
}

#datos-page .datos-acta-lastmatches-team-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  align-items: stretch;
}

#datos-page .datos-acta-lastmatches-team-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 2px 10px 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

#datos-page .datos-acta-lastmatches-team-logo-shell {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
}

#datos-page .datos-acta-lastmatches-team-logo,
#datos-page .datos-acta-lastmatches-team-logo-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

#datos-page .datos-acta-lastmatches-team-logo {
  object-fit: contain;
}

#datos-page .datos-acta-lastmatches-team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,.11);
  font-size: 10px;
  font-weight: 950;
  overflow: hidden;
}

#datos-page .datos-acta-referee-avatar-img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
}

#datos-page .datos-acta-lastmatches-team-title-block {
  min-width: 0;
}

#datos-page .datos-acta-lastmatch-strip-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 9px 10px 7px;
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.075);
  overflow: hidden;
}

#datos-page .datos-acta-lastmatches-block.datos-acta-previa-section-card,
#datos-page .datos-acta-history-lineup-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

#datos-page .datos-acta-lastmatches-block .datos-acta-previa-head {
  padding: 0 2px;
}

#datos-page .datos-acta-lastmatch-strip {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) rgba(255,255,255,.055);
  padding: 1px 2px 6px;
}

#datos-page .datos-acta-lastmatch-strip::-webkit-scrollbar {
  height: 7px;
}

#datos-page .datos-acta-lastmatch-strip::-webkit-scrollbar-track {
  background: rgba(255,255,255,.045);
  border-radius: 999px;
}

#datos-page .datos-acta-lastmatch-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.20);
  border-radius: 999px;
}

#datos-page .datos-acta-lastmatch-card {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 118px;
  width: 118px;
  min-height: 66px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.075);
  color: white;
  text-align: left;
  cursor: pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

#datos-page .datos-acta-lastmatch-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.065);
  border-color: color-mix(in srgb, var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 18%, rgba(255,255,255,.10));
}

#datos-page .datos-acta-lastmatch-btn.is-active {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 10%, rgba(255,255,255,.065)),
      rgba(255,255,255,.045)
    );
  border-color: color-mix(in srgb, var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 26%, rgba(255,255,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#datos-page .datos-acta-lastmatch-top,
#datos-page .datos-acta-lastmatch-main {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

#datos-page .datos-acta-lastmatch-top {
  justify-content: center;
  margin-bottom: 4px;
  min-height: 12px;
}

#datos-page .datos-acta-lastmatch-main {
  justify-content: center;
}

#datos-page .datos-acta-lastmatch-chip,
#datos-page .datos-acta-lastmatch-date,
#datos-page .datos-acta-lastmatch-round {
  color: rgba(255,255,255,.48);
  font-size: 9.5px;
  font-weight: 850;
}

#datos-page .datos-acta-lastmatch-round {
  margin-top: 3px;
  text-align: center;
  color: rgba(255,255,255,.56);
}

#datos-page .datos-acta-lastmatch-team {
  display: none;
}

#datos-page .datos-acta-lastmatch-score {
  flex: 0 0 auto;
  color: #fff;
  min-width: 38px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-lastmatch-logo,
#datos-page .datos-acta-lastmatch-logo-fallback {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

#datos-page .datos-acta-lastmatch-logo {
  object-fit: contain;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
}

#datos-page .datos-acta-lastmatch-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 7px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-insights-block {
  margin-bottom: 12px;
}

#datos-page .datos-acta-last5-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

#datos-page .datos-acta-last5-insight-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, var(--datos-acta-previa-soft, rgba(40,220,130,.10)), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.16));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  overflow: hidden;
}

#datos-page .datos-acta-last5-team-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

#datos-page .datos-acta-last5-team-logo-shell {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.13);
}

#datos-page .datos-acta-last5-team-logo,
#datos-page .datos-acta-last5-team-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

#datos-page .datos-acta-last5-team-logo {
  object-fit: contain;
}

#datos-page .datos-acta-last5-team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,.11);
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-team-title {
  min-width: 0;
}

#datos-page .datos-acta-last5-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-team-sub {
  margin-top: 2px;
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 850;
}

#datos-page .datos-acta-last5-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#datos-page .datos-acta-last5-form-dot {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 10px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.08);
}

#datos-page .datos-acta-last5-form-dot.is-v {
  background: rgba(20,155,85,.82);
  border-color: rgba(53,236,142,.36);
}

#datos-page .datos-acta-last5-form-dot.is-e {
  background: rgba(165,132,22,.82);
  border-color: rgba(255,218,69,.38);
}

#datos-page .datos-acta-last5-form-dot.is-d {
  background: rgba(150,38,46,.82);
  border-color: rgba(255,91,101,.38);
}

#datos-page .datos-acta-last5-overview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

#datos-page .datos-acta-last5-donut-wrap {
  position: relative;
  width: 82px;
  height: 82px;
}

#datos-page .datos-acta-last5-donut {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--last5-donut-bg, rgba(255,255,255,.10));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

#datos-page .datos-acta-last5-donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(5,12,13,.94);
  border: 1px solid rgba(255,255,255,.07);
}

#datos-page .datos-acta-last5-donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

#datos-page .datos-acta-last5-donut-main {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

#datos-page .datos-acta-last5-donut-sub {
  margin-top: 3px;
  color: rgba(255,255,255,.50);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

#datos-page .datos-acta-last5-kpis {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

#datos-page .datos-acta-last5-kpi {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

#datos-page .datos-acta-last5-kpi span,
#datos-page .datos-acta-last5-player-meta,
#datos-page .datos-acta-last5-bar-label {
  color: rgba(255,255,255,.50);
  font-size: 9px;
  font-weight: 900;
}

#datos-page .datos-acta-last5-kpi b {
  display: block;
  margin-top: 2px;
  color: white;
  font-size: 15px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

#datos-page .datos-acta-last5-mini-card {
  min-width: 0;
  padding: 9px;
  border-radius: 13px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-acta-last5-mini-title {
  margin-bottom: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#datos-page .datos-acta-last5-title-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.42));
}

#datos-page .datos-acta-last5-mini-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

#datos-page .datos-acta-last5-mini-title-row .datos-acta-last5-mini-title {
  margin-bottom: 0;
}

#datos-page .datos-acta-last5-mini-badge {
  flex: 0 0 auto;
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(175,126,22,.55);
  border: 1px solid rgba(255,216,77,.22);
  font-size: 9px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-player-row {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

#datos-page .datos-acta-last5-player-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.055);
  border-color: color-mix(in srgb, var(--datos-acta-previa-accent, rgba(255,255,255,.35)) 24%, rgba(255,255,255,.10));
}

#datos-page .datos-acta-last5-player-row + .datos-acta-last5-player-row {
  margin-top: 5px;
}

#datos-page .datos-acta-last5-player-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

#datos-page .datos-acta-last5-player-img,
#datos-page .datos-acta-last5-player-img-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

#datos-page .datos-acta-last5-player-img {
  object-fit: cover;
  background: rgba(255,255,255,.88);
}

#datos-page .datos-acta-last5-player-img-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,.12);
  font-size: 8px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-player-num {
  position: absolute;
  left: -4px;
  top: -4px;
  min-width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.76);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 8px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-player-text {
  min-width: 0;
}

#datos-page .datos-acta-last5-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-player-progress {
  width: 100%;
  height: 5px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

#datos-page .datos-acta-last5-player-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26df82, #20a4ff);
  box-shadow: 0 0 10px rgba(38,223,130,.18);
}

#datos-page .datos-acta-last5-player-value {
  min-width: 36px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(24,137,82,.76);
  border: 1px solid rgba(55,236,142,.25);
  font-size: 9px;
  font-weight: 950;
}

#datos-page .datos-acta-last5-bars {
  display: grid;
  gap: 5px;
  margin-bottom: 7px;
}

#datos-page .datos-acta-last5-bar-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 18px;
  gap: 6px;
  align-items: center;
}

#datos-page .datos-acta-last5-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}

#datos-page .datos-acta-last5-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #27dc82, #20a4ff);
}

#datos-page .datos-acta-last5-bar-fill.is-formation {
  background: linear-gradient(90deg, #ffe05a, #26df82);
}

#datos-page .datos-acta-last5-bar-fill.is-sub {
  background: linear-gradient(90deg, #27dc82, #20a4ff);
}

#datos-page .datos-acta-last5-bar-fill.is-goal-for {
  background: linear-gradient(90deg, #1fdc7a, #62f0a6);
}

#datos-page .datos-acta-last5-bar-fill.is-goal-against {
  background: linear-gradient(90deg, #ff5964, #ffbf47);
}

#datos-page .datos-acta-last5-bar-fill.is-card {
  background: linear-gradient(90deg, #ffdf57, #ff636d);
}

#datos-page .datos-acta-last5-bar-value {
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  text-align: right;
}

#datos-page .datos-acta-last5-goals-stack {
  display: grid;
  gap: 6px;
}

#datos-page .datos-acta-last5-goals-stack .datos-acta-last5-bars {
  margin-bottom: 0;
}

#datos-page .datos-acta-last5-subtitle-chip {
  justify-self: start;
  height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-last5-subtitle-chip.is-for {
  background: rgba(20,145,82,.62);
  border-color: rgba(55,236,142,.26);
}

#datos-page .datos-acta-last5-subtitle-chip.is-against {
  background: rgba(145,38,47,.62);
  border-color: rgba(255,91,101,.26);
}

#datos-page .datos-acta-last5-empty {
  padding: 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.035);
  border: 1px dashed rgba(255,255,255,.10);
  font-size: 10px;
  font-weight: 850;
}

@media (max-width: 1400px) {
  #datos-page .datos-acta-last5-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#datos-page .datos-acta-history-lineup-panel {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

#datos-page .datos-acta-history-lineup-panel.is-empty {
  background: transparent;
}

#datos-page .datos-acta-history-lineup-head {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  margin-bottom: 14px;
  min-height: 144px;
  padding: 14px 12px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

#datos-page .datos-acta-history-lineup-title {
  color: white;
  font-size: 12px;
  font-weight: 950;
}

#datos-page .datos-acta-history-lineup-subtitle {
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 750;
}

#datos-page .datos-acta-history-lineup-meta,
#datos-page .datos-acta-history-lineup-match {
  display: grid;
  align-items: center;
  min-width: 0;
}

#datos-page .datos-acta-history-lineup-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-start;
  align-self: start;
  padding-top: 8px;
}

#datos-page .datos-acta-history-lineup-match {
  grid-template-columns: minmax(138px, 220px) minmax(150px, 1fr) auto minmax(150px, 1fr) minmax(138px, 220px);
  width: min(100%, 900px);
  justify-content: center;
  gap: 14px;
  align-items: center;
}

#datos-page .datos-acta-history-lineup-team {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 950;
}

#datos-page .datos-acta-history-lineup-team-block {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: stretch;
}

#datos-page .datos-acta-history-lineup-team-block.is-local {
  justify-content: flex-end;
  text-align: right;
}

#datos-page .datos-acta-history-lineup-team-block.is-away {
  justify-content: flex-start;
  text-align: left;
}

#datos-page .datos-acta-history-lineup-score-pack {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  align-self: center;
  padding-top: 0;
}

#datos-page .datos-acta-history-lineup-score {
  flex: 0 0 auto;
  min-width: 66px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: 950;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.10);
}

#datos-page .datos-acta-history-lineup-logo,
#datos-page .datos-acta-history-lineup-logo-fallback {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

#datos-page .datos-acta-history-lineup-logo {
  object-fit: contain;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.16);
}

#datos-page .datos-acta-history-lineup-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 8px;
  font-weight: 950;
}

#datos-page .datos-acta-history-lineup-goals {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: visible;
}

#datos-page .datos-acta-history-lineup-goals.is-empty {
  min-height: 86px;
}

#datos-page .datos-acta-history-lineup-team-block.is-local .datos-acta-history-lineup-goals {
  align-items: flex-end;
}

#datos-page .datos-acta-history-lineup-team-block.is-away .datos-acta-history-lineup-goals {
  align-items: flex-start;
}

#datos-page .datos-acta-history-lineup-match > .datos-acta-history-lineup-goals:first-child {
  align-items: flex-end;
  justify-self: end;
}

#datos-page .datos-acta-history-lineup-match > .datos-acta-history-lineup-goals:last-child {
  align-items: flex-start;
  justify-self: start;
}

#datos-page .datos-acta-history-lineup-goal-row {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
}

#datos-page .datos-acta-history-lineup-goal-minute {
  flex: 0 0 auto;
  color: rgba(255,226,85,.96);
  font-weight: 950;
}

#datos-page .datos-acta-history-lineup-goal-player {
  min-width: 0;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#datos-page .datos-acta-history-lineup-pitch-wrap {
  display: flex;
  justify-content: center;
  align-items: start;
  margin: 4px auto 14px;
  width: 100%;
  min-height: 448px;
}

#datos-page .datos-acta-history-lineup-pitch-wrap .datos-team-overview-field {
  width: min(94%, 520px);
  max-height: none;
  min-height: 430px;
  border-radius: 22px;
}

#datos-page .datos-acta-history-lineup-pitch-wrap .datos-team-overview-field-empty {
  width: min(94%, 520px);
  min-height: 240px;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-pitch-card,
#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-team-card {
  margin-bottom: 0;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-pitch-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-team-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  overflow: visible;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-section.is-starters {
  min-height: clamp(390px, 25vw, 500px);
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-section.is-bench {
  min-height: clamp(330px, 22vw, 460px);
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-section.is-staff {
  min-height: 0;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-section {
  margin-top: 0;
  min-width: 0;
  overflow: visible;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-section-head {
  margin-bottom: 12px;
  position: relative;
  z-index: 6;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-grid,
#datos-page .datos-acta-history-lineup-panel .datos-acta-previa-xi-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block {
  display: block;
  position: relative;
  overflow: visible;
  padding-top: 2px;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block + .datos-acta-real-lineup-line-block {
  margin-top: 14px;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-acta-previa-xi-grid {
  padding-left: 24px;
  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  gap: 14px 12px;
  overflow: visible;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-player-card {
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 7px 10px;
  border-radius: 14px;
  border-color: rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 4%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(10,13,13,.98), rgba(3,6,6,.96));
  box-shadow:
    0 12px 26px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.04);
  align-items: center;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-player-card:hover {
  z-index: 3000;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 28%, rgba(255,255,255,.12));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-team-overview-accent, var(--datos-acta-accent, #22c55e)) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(16,20,20,.99), rgba(5,8,8,.98));
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-img-wrap {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-card-watermark {
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  opacity: .13;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-text,
#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-name-row {
  align-items: flex-start;
  text-align: left;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-name {
  text-align: left;
  font-size: 12px;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-rank {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

#datos-page .datos-acta-history-lineup-panel .datos-acta-real-lineup-line-block .datos-team-overview-xi-player-card:hover .datos-team-overview-card-hover {
  transform: translateY(0) scale(1);
}

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

#datos-page .datos-acta-history-lineup-empty-text {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.075);
}

@media (max-width: 900px) {
  #datos-page .datos-acta-pitch-two-col,
  #datos-page .datos-acta-previa-stats-two-col,
  #datos-page .datos-acta-lastmatches-two-col {
    grid-template-columns: 1fr;
  }

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

  #datos-page .datos-acta-previa-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ---------- Acta header refinado: nombre ? escudo ? marcador ? escudo ? nombre ---------- */
#datos-page .datos-acta-match-header-main {
  grid-template-columns: minmax(0, max-content) auto minmax(0, max-content) !important;
  justify-content: center;
  column-gap: 8px;
  row-gap: 8px;
  padding: 10px 12px !important;
}

#datos-page .datos-acta-match-header-team,
#datos-page .datos-acta-match-header-team.is-away,
#datos-page .datos-acta-match-header-team.is-local {
  width: auto;
  max-width: min(36vw, 420px);
  display: inline-flex;
  align-items: center;
  gap: 8px !important;
  flex-direction: row !important;
}

#datos-page .datos-acta-match-header-team.is-local {
  justify-content: flex-end;
  text-align: right;
}

#datos-page .datos-acta-match-header-team.is-away {
  justify-content: flex-start;
  text-align: left;
}

#datos-page .datos-acta-match-header-team-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#datos-page .datos-acta-match-header-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-acta-match-header-team-logo,
#datos-page .datos-acta-match-header-team-logo-fallback {
  width: 44px !important;
  height: 44px !important;
}

#datos-page .datos-acta-match-header-score {
  min-width: 70px !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
}

#datos-page .datos-acta-match-header-team-code {
  display: none !important;
}

#datos-page .datos-acta-match-header-team.is-local .datos-acta-match-header-goal-row {
  justify-content: flex-end;
}

#datos-page .datos-acta-match-header-team.is-away .datos-acta-match-header-goal-row {
  justify-content: flex-start;
}

#datos-page .datos-acta-previa-team-overview-stats-grid.datos-team-overview-stats-grid {
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

#datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-card {
  min-height: 122px;
  padding: 12px 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow:
    0 13px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.055);
}

#datos-page .datos-acta-previa-home-away-card-groups {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#datos-page .datos-acta-previa-home-away-section.datos-team-overview-line-card {
  border-radius: 8px;
  padding: 10px 12px 12px;
}

#datos-page .datos-acta-previa-home-away-section .datos-team-overview-line-title {
  font-size: 17px;
}

#datos-page .datos-acta-previa-home-away-section .datos-team-overview-line-items {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

#datos-page .datos-acta-previa-home-away-section .datos-team-overview-line-item {
  min-height: 84px;
  border-radius: 8px;
}

#datos-page .datos-acta-previa-xi-tactics-layout {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(430px, 680px) minmax(220px, 280px);
  gap: 12px;
  align-items: stretch;
}

#datos-page .datos-acta-previa-xi-side-panel {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--datos-acta-previa-accent, #22c55e) 4%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.024));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.050),
    0 10px 24px rgba(0,0,0,.15);
  overflow: hidden;
}

#datos-page .datos-acta-previa-xi-side-panel.is-empty {
  display: none;
}

#datos-page .datos-acta-previa-xi-side-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  max-height: clamp(460px, 66vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  scrollbar-width: thin;
}

#datos-page .datos-acta-previa-xi-side-grid::-webkit-scrollbar {
  width: 6px;
}

#datos-page .datos-acta-previa-xi-side-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
  border-radius: 999px;
}

#datos-page .datos-acta-previa-xi-side-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

#datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-field-wrap {
  min-width: 0;
  min-height: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#datos-page .datos-acta-previa-xi-tactics-layout .datos-team-overview-field {
  width: min(100%, 650px);
  max-height: clamp(520px, 72vh, 760px);
  min-height: 500px;
}

#datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-card {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 8px 8px 8px 9px;
  border-radius: 12px;
}

#datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-img-wrap,
#datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-img,
#datos-page .datos-acta-previa-xi-tactics-layout .datos-acta-previa-xi-player-img-fallback {
  width: 42px;
  height: 42px;
}

@media (max-width: 900px) {
  #datos-page .datos-acta-match-header-main {
    grid-template-columns: 1fr auto 1fr !important;
  }

  #datos-page .datos-acta-match-header-team,
  #datos-page .datos-acta-match-header-team.is-away,
  #datos-page .datos-acta-match-header-team.is-local {
    max-width: none;
  }

  #datos-page .datos-acta-previa-team-overview-stats-grid.datos-team-overview-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #datos-page .datos-acta-previa-home-away-card-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  #datos-page .datos-acta-event-team-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) and (min-width: 901px) {
  #datos-page .datos-acta-previa-team-overview-stats-grid.datos-team-overview-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-card {
    min-height: 106px;
    padding: 10px 9px 9px;
  }

  #datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-head {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  #datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  #datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-main {
    padding-left: 42px;
  }

  #datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-value {
    font-size: 28px;
  }

  #datos-page .datos-acta-previa-stats-card .datos-team-overview-stat-label {
    font-size: 9px;
    line-height: 1.05;
  }
}


#datos-page .datos-acta-pitch-head {
  align-items: center;
}

#datos-page .datos-acta-pitch-source {
  margin-left: auto;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

#datos-page .datos-acta-previa-xi-field-wrap {
  margin-top: 12px;
}

#datos-page .datos-acta-previa-xi-field-wrap .datos-team-overview-field {
  min-height: 360px;
  border-radius: 16px;
}

#datos-page .datos-acta-previa-xi-field-wrap .datos-team-overview-field-empty {
  min-height: 180px;
}

#datos-page .datos-acta-pitch-overview-field-wrap {
  margin-top: 8px;
}

#datos-page .datos-acta-pitch-overview-field-wrap .datos-team-overview-field {
  min-height: 330px;
  border-radius: 14px;
}

#datos-page .datos-acta-pitch-overview-field-wrap .datos-team-overview-field-empty {
  min-height: 160px;
}

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

#datos-page .datos-acta-pitch-overview-field-wrap .datos-team-overview-field-player-btn.is-estimated-position .datos-team-overview-field-player-name,
#datos-page .datos-acta-previa-xi-field-wrap .datos-team-overview-field-player-btn.is-estimated-position .datos-team-overview-field-player-name {
  background: rgba(140,25,25,.82);
  border: 1px solid rgba(255,95,95,.44);
}

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

#datos-page .datos-acta-pitch-overview-field-wrap .datos-team-overview-field-player-btn.is-substitution-estimated-position .datos-team-overview-field-player-name,
#datos-page .datos-acta-previa-xi-field-wrap .datos-team-overview-field-player-btn.is-substitution-estimated-position .datos-team-overview-field-player-name {
  background: rgba(135,101,18,.84);
  border: 1px solid rgba(245,198,66,.48);
}

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


/* =========================================================
   ACTA · FLATTEN BODY CONTENT
   ========================================================= */

#datos-page .datos-acta-main-content .datos-acta-structured-card {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#datos-page .datos-acta-main-content .datos-acta-structured-card > .datos-acta-structured-head {
  padding: 0 0 10px;
  margin-bottom: 10px;
}

#datos-page .datos-acta-simulated-empty-state {
  padding: 0;
  padding-bottom: clamp(12px, 1.4vh, 20px);
  margin-bottom: 10px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#datos-page .datos-acta-unavailable-fallback {
  gap: 16px;
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-xi-block {
  margin-top: 18px;
}


/* =========================================================
   MIS PARTIDOS MODAL · ACTA INLINE
   ========================================================= */

.sd-modal--match-detail .modal-dialog,
.sd-modal--match-detail .modal-content,
.sd-modal--match-detail .sd-match-modal-content,
.sd-modal--match-detail .sd-match-modal-body-shell {
  min-height: 0;
}

.sd-modal--match-detail .modal-dialog {
  height: 92vh;
  max-height: 92vh;
  margin-top: 4vh;
  margin-bottom: 4vh;
}

.sd-modal--match-detail .modal-content {
  height: 92vh !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.sd-modal--match-detail .sd-match-modal-content {
  height: 92vh !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.sd-modal--match-detail .modal-header {
  flex: 0 0 auto;
}

.sd-modal--match-detail .sd-match-modal-body-shell {
  flex: 1 1 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sd-modal--match-detail .sd-match-modal-bodywrap,
.sd-modal--match-detail .sd-match-modal-content-inner,
.sd-modal--match-detail #modal-body-content,
.sd-modal--match-detail #modal-body-content > div,
.sd-modal--match-detail #modal-body-content-mobile,
.sd-modal--match-detail #modal-body-content-mobile > div {
  height: auto;
  min-height: max-content;
}

.sd-modal--match-detail .sd-match-modal-bodywrap,
.sd-modal--match-detail .sd-match-modal-content-inner,
.sd-modal--match-detail #modal-body-content,
.sd-modal--match-detail #modal-body-content > div,
.sd-modal--match-detail #modal-body-content-mobile,
.sd-modal--match-detail #modal-body-content-mobile > div,
.sd-modal--match-detail #match-main-panes,
.sd-modal--match-detail .mp-modal-new-datos-scope {
  overflow: visible !important;
}

.sd-modal--match-detail #modal-body-content,
.sd-modal--match-detail #modal-body-content-mobile {
  width: 100%;
  min-height: 0;
}

.sd-modal--match-detail #modal-body-content > div,
.sd-modal--match-detail #modal-body-content-mobile > div {
  display: block !important;
}

.sd-modal--match-detail #modal-zoom-wrapper {
  zoom: .8 !important;
  transform: none;
  transform-origin: top center;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0;
  box-sizing: border-box;
}

.sd-modal--match-detail #match-main-panes {
  display: block !important;
  min-height: max-content;
}

.sd-modal--match-detail .modal-main-pane--partido-new,
.sd-modal--match-detail .modal-main-pane--previa-new,
.sd-modal--match-detail .modal-main-pane--plantillas-new {
  height: auto;
  max-height: none;
  min-height: max-content;
  overflow: visible !important;
  padding-bottom: 0;
  scrollbar-gutter: stable;
}

.sd-modal--match-detail .modal-main-pane--partido-new::-webkit-scrollbar,
.sd-modal--match-detail .modal-main-pane--previa-new::-webkit-scrollbar,
.sd-modal--match-detail .modal-main-pane--plantillas-new::-webkit-scrollbar {
  width: 10px;
}

.sd-modal--match-detail .modal-main-pane--partido-new::-webkit-scrollbar-track,
.sd-modal--match-detail .modal-main-pane--previa-new::-webkit-scrollbar-track,
.sd-modal--match-detail .modal-main-pane--plantillas-new::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

.sd-modal--match-detail .modal-main-pane--partido-new::-webkit-scrollbar-thumb,
.sd-modal--match-detail .modal-main-pane--previa-new::-webkit-scrollbar-thumb,
.sd-modal--match-detail .modal-main-pane--plantillas-new::-webkit-scrollbar-thumb {
  background: rgba(0,255,170,.30);
  border-radius: 999px;
}

#datos-page.mp-modal-new-datos-acta-only {
  padding: 12px clamp(12px, 1.8vw, 28px) 120px !important;
  min-height: max-content !important;
  overflow: visible !important;
}

#datos-page .mp-modal-new-datos-acta-only {
  padding: 12px clamp(12px, 1.8vw, 28px) 140px !important;
  min-height: max-content !important;
  overflow: visible !important;
}

#datos-page.mp-modal-new-datos-acta-only .datos-acta-structured-card {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible !important;
}

#datos-page .mp-modal-new-datos-acta-only .datos-acta-structured-card {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible !important;
}

#datos-page.mp-modal-new-datos-acta-only .datos-acta-structured-card > .datos-acta-structured-head {
  padding: 0 0 14px;
  margin-bottom: 12px;
}

#datos-page .mp-modal-new-datos-acta-only .datos-acta-structured-card > .datos-acta-structured-head {
  padding: 0 0 14px;
  margin-bottom: 12px;
}

#datos-page.mp-modal-new-datos-acta-only .datos-acta-structured-pills {
  max-width: 48%;
}

#datos-page .mp-modal-new-datos-acta-only .datos-acta-structured-pills {
  max-width: 48%;
}

#datos-page.mp-modal-new-datos-acta-only .datos-acta-structured-pill {
  max-width: min(520px, 100%);
}

#datos-page .mp-modal-new-datos-acta-only .datos-acta-structured-pill {
  max-width: min(520px, 100%);
}

#datos-page.mp-modal-new-datos-acta-only .datos-acta-real-lineups-block,
#datos-page.mp-modal-new-datos-acta-only .datos-acta-real-lineups-two-col,
#datos-page.mp-modal-new-datos-acta-only .datos-acta-plantillas-content {
  overflow: visible !important;
}

#datos-page .mp-modal-new-datos-acta-only .datos-acta-real-lineups-block,
#datos-page .mp-modal-new-datos-acta-only .datos-acta-real-lineups-two-col,
#datos-page .mp-modal-new-datos-acta-only .datos-acta-plantillas-content,
#datos-page .mp-modal-new-datos-acta-only .datos-acta-previa-content {
  overflow: visible !important;
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-bench-strip {
  margin-top: 22px;
  padding-inline: clamp(14px, 1.6vw, 28px);
  padding-bottom: clamp(7px, .9vh, 14px);
  box-sizing: border-box;
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-key-strip {
  margin-bottom: clamp(4px, .7vh, 9px);
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-paired-row {
  row-gap: 18px;
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-paired-row > :first-child {
  padding-right: clamp(16px, 1.5vw, 24px);
}

#datos-page .datos-acta-simulated-empty-state .datos-acta-possible-paired-row > :last-child {
  padding-left: clamp(16px, 1.5vw, 24px);
}

#datos-page .datos-acta-detail-layout--full {
  padding-bottom: 10px;
  box-sizing: border-box;
}

#datos-page .datos-acta-detail-layout--full > .datos-acta-main-section.datos-acta-content-card {
  margin-bottom: 10px !important;
}

@media (max-width: 1200px) {
  #datos-page .datos-acta-simulated-empty-state .datos-acta-possible-bench-strip {
    padding-inline: clamp(12px, 2.2vw, 24px);
  }

  #datos-page .datos-acta-simulated-empty-state .datos-acta-possible-paired-row > :first-child,
  #datos-page .datos-acta-simulated-empty-state .datos-acta-possible-paired-row > :last-child {
    padding-left: 0;
    padding-right: 0;
  }
}
