/*!
 * Camisetas South · Rediseño 2026 · Copas internacionales
 * Página de cada copa (template-parts/sx/competition.php) y página de copas (competitions-hub.php).
 * Colores de cada copa (--c1, --c2, --cacc…) y tarjetas: sx-core.css.
 */

/* ===================================================================== *
 * Portada de la copa
 * ===================================================================== */
.sx-chero-wrap { padding-top: 6px; }
.sx-chero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "body media" "steps steps";
  gap: 26px 40px;
  overflow: hidden;
  isolation: isolate;
  padding: 54px 56px 30px;
  border-radius: 32px;
  background: linear-gradient(155deg, var(--c2) 0%, var(--c1) 62%);
  color: #fff;
}
.sx-chero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sx-chero__body { grid-area: body; align-self: center; min-width: 0; }
.sx .sx-chero__kicker { margin: 0 0 12px !important; color: var(--cacc2); font: 800 12.5px/1 var(--sx-font); letter-spacing: .16em; text-transform: uppercase; }
body.sx .sx-chero__title { margin: 0; color: #fff; font-size: clamp(54px, 7vw, 104px); line-height: .86; letter-spacing: .005em; }
.sx-chero__media { grid-area: media; display: grid; place-items: center; min-height: 260px; }
.sx-chero__logo {
  display: block;
  width: 100% !important;
  max-width: 300px;
  height: auto !important;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.sx-chero__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
/* Fondo opaco: los adornos del hero (anillos, rayos) no cruzan el texto de los chips. */
body.sx .sx-chero__nav .sx-chip { background: color-mix(in srgb, var(--c1) 86%, #fff); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
body.sx .sx-chero__nav .sx-chip:hover,
body.sx .sx-chero__nav .sx-chip:focus-visible { background: #fff; color: var(--c1); }
body.sx .sx-chero__nav .sx-chip--kit { background: var(--cacc); color: var(--c1); box-shadow: none; }
.sx-chero__nav .sx-chip--kit svg { margin-right: 4px; }
.sx-chero__nav .sx-chip__n { opacity: .75; }

/* Estado: fase, en vivo, campeón y próximo partido */
.sx-cstatus { display: grid; gap: 10px; justify-items: start; margin-top: 18px; }
.sx .sx-cstatus__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.86);
  font: 700 15px/1.2 var(--sx-font);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.sx-cstatus__pill b { color: #fff; font-weight: 900; }
.sx .sx-cstatus__pill--live { background: rgba(255,59,59,.16); box-shadow: inset 0 0 0 1px rgba(255,59,59,.5); color: #fff; }
.sx-cstatus__pill--live i { width: 10px; height: 10px; border-radius: 50%; background: #FF3B3B; animation: sx-live 1.6s infinite; }
.sx .sx-cstatus__pill--champ { background: var(--cacc); color: var(--c1); box-shadow: none; }
.sx .sx-cstatus__pill--champ b { color: var(--c1); }
.sx-cstatus__pill--champ .sx-ccrest { width: 22px !important; height: 22px !important; }
.sx .sx-cstatus__next { margin: 0 !important; color: rgba(255,255,255,.72); font: 700 14px/1.4 var(--sx-font); }
.sx-cstatus__next span { opacity: .6; }

/* Línea de fases */
.sx-chero__steps { grid-area: steps; min-width: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.sx-csteps { display: flex; gap: 0; margin: 0 !important; padding: 0 !important; list-style: none !important; overflow-x: auto; scrollbar-width: none; }
.sx-csteps::-webkit-scrollbar { display: none; }
.sx-csteps__i { position: relative; flex: 1 1 0; min-width: 104px; margin: 0; padding: 0 10px 0 0; }
.sx-csteps__i::before { content: ""; position: absolute; top: 7px; left: 16px; right: 0; height: 2px; background: rgba(255,255,255,.16); }
.sx-csteps__i:last-child::before { display: none; }
.sx-csteps__i.is-done::before { background: var(--cacc); }
.sx-csteps__dot { position: relative; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--c1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.sx-csteps__i.is-done .sx-csteps__dot { background: var(--cacc); box-shadow: none; }
.sx-csteps__i.is-now .sx-csteps__dot { background: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--cacc) 45%, transparent); }
.sx-csteps__l { display: block; margin-top: 10px; color: rgba(255,255,255,.6); font: 800 13px/1.15 var(--sx-font); }
.sx-csteps__i.is-done .sx-csteps__l { color: rgba(255,255,255,.85); }
.sx-csteps__i.is-now .sx-csteps__l { color: #fff; }
.sx-csteps__d { display: block; margin-top: 3px; color: rgba(255,255,255,.5); font: 700 11.5px/1.2 var(--sx-font); }

/* --- Champions: azul noche y estrellas --- */
.sx-chero--ucl .sx-chero__deco {
  background:
    radial-gradient(2px 2px at 8% 18%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 70%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 34% 30%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(2px 2px at 47% 12%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 55% 62%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 85%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 71% 24%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 83% 48%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 91% 80%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 96% 12%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(55% 70% at 80% 40%, rgba(91,140,255,.32), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(140,90,255,.22), transparent 70%);
}
.sx-chero--ucl .sx-chero__media::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,212,245,.18), rgba(201,212,245,0) 65%);
}
.sx-chero__media { position: relative; }
.sx-chero__media img { position: relative; }

/* --- Europa League: negro y arcos naranjos --- */
.sx-chero--uel .sx-chero__deco {
  background:
    radial-gradient(circle at 86% 46%, transparent 170px, rgba(255,106,19,.9) 171px, rgba(255,106,19,.9) 182px, transparent 183px),
    radial-gradient(circle at 86% 46%, transparent 230px, rgba(255,106,19,.28) 231px, rgba(255,106,19,.28) 236px, transparent 237px),
    radial-gradient(60% 80% at 100% 100%, rgba(255,106,19,.3), transparent 70%);
}
/* --- Conference League: verde eléctrico --- */
.sx-chero--uecl .sx-chero__deco {
  background:
    radial-gradient(circle at 86% 46%, transparent 168px, rgba(24,210,79,.95) 169px, rgba(24,210,79,.95) 180px, transparent 181px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px),
    radial-gradient(60% 80% at 100% 0%, rgba(24,210,79,.25), transparent 70%);
}
/* --- Libertadores: negro y oro, «la gloria eterna» --- */
.sx-chero--lib .sx-chero__deco {
  background:
    repeating-conic-gradient(from -90deg at 86% 50%, rgba(217,174,88,.14) 0 3deg, transparent 3deg 9deg),
    radial-gradient(45% 70% at 86% 50%, rgba(217,174,88,.35), transparent 70%),
    linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%);
}
.sx-chero--lib .sx-chero__title { background: linear-gradient(180deg, #fff 30%, var(--cacc2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
/* --- Sudamericana: azul y plata --- */
.sx-chero--sud .sx-chero__deco {
  background:
    linear-gradient(118deg, transparent 52%, rgba(79,178,255,.2) 52% 60%, transparent 60% 66%, rgba(79,178,255,.12) 66% 71%, transparent 71%),
    radial-gradient(55% 75% at 86% 46%, rgba(207,230,255,.22), transparent 70%);
}

/* ===================================================================== *
 * Escudos, equipos y botones
 * ===================================================================== */
.sx .sx-ccrest { display: block; flex: none; width: 28px; height: 28px; object-fit: contain; }
.sx-ccrest--txt {
  display: grid !important;
  place-items: center;
  width: var(--s, 28px) !important;
  height: var(--s, 28px) !important;
  border-radius: 50%;
  background: var(--sx-soft);
  color: var(--sx-night);
  font: 900 calc(var(--s, 28px) * .34)/1 var(--sx-display);
  letter-spacing: .02em;
}
body.sx .sx-cteam {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 800 14px/1.2 var(--sx-font);
  text-align: left;
  cursor: pointer;
}
.sx-cteam .sx-ccrest { width: 24px; height: 24px; }
.sx-cteam__n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sx-cteam__kit { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--cacc) 22%, #fff); color: var(--c1); }
body.sx button.sx-cteam:hover .sx-cteam__n,
body.sx button.sx-cteam:focus-visible .sx-cteam__n { text-decoration: underline; text-underline-offset: 3px; }

/* ===================================================================== *
 * Partidos del momento (carrusel) y tarjetas de partido
 * ===================================================================== */
.sx-cstrip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 14px) / 4);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sx-cstrip__track::-webkit-scrollbar { display: none; }
.sx-cstrip__track > * { scroll-snap-align: start; }
.sx-cmatch {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--sx-night);
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.08);
}
.sx-cmatch--card { min-height: 128px; }
.sx-cmatch.is-live { box-shadow: inset 0 0 0 2px #FF3B3B, 0 16px 34px -22px rgba(255,59,59,.6); }
.sx .sx-cmatch__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px !important;
  color: var(--sx-muted);
  font: 800 11.5px/1.2 var(--sx-font);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sx-cmatch__live { display: inline-flex; align-items: center; gap: 6px; color: #E5262B; font-weight: 900; letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.sx-cmatch__live i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B3B; animation: sx-live 1.6s infinite; }
.sx-cmatch__st { color: var(--sx-night); letter-spacing: 0; text-transform: none; font-size: 12px; }
.sx-cmatch__when { color: var(--sx-night); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.sx-cmatch__team { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sx-cmatch__team .sx-cteam { font-weight: 700; color: var(--sx-night); }
.sx-cmatch__team.is-win .sx-cteam { font-weight: 900; }
.sx-cmatch__score { min-width: 18px; font: 900 22px/1 var(--sx-display); text-align: right; }
.sx-cmatch__score small { margin-left: 4px; color: var(--sx-muted); font: 800 12px/1 var(--sx-font); }
.sx-cmatch.is-done .sx-cmatch__team:not(.is-win) .sx-cmatch__score { color: var(--sx-muted); }
.sx .sx-cmatch__agg { margin: 2px 0 0 !important; color: var(--sx-muted); font: 800 12px/1 var(--sx-font); }
.sx-cempty { margin: 0; padding: 26px; border-radius: 20px; background: var(--sx-soft-2); color: var(--sx-muted); font: 700 15px/1.5 var(--sx-font); text-align: center; }

/* ===================================================================== *
 * Tabla de la fase de liga y grupos
 * ===================================================================== */
.sx-ctable-wrap { overflow-x: auto; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(26,11,46,.08); }
.sx-ctable { width: 100%; margin: 0 !important; border-collapse: collapse; font: 700 14px/1.2 var(--sx-font); color: var(--sx-night); }
.sx-ctable th { padding: 12px 10px; border: 0; background: transparent; color: var(--sx-muted); font: 800 11.5px/1 var(--sx-font); letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.sx-ctable th abbr { text-decoration: none; border: 0; cursor: help; }
.sx-ctable td { padding: 9px 10px; border: 0; border-top: 1px solid rgba(26,11,46,.06); text-align: center; vertical-align: middle; }
.sx-ctable .sx-ctable__club { width: 46%; text-align: left; }
.sx-ctable__pos { width: 46px; }
.sx-ctable__pos span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font: 900 15px/1 var(--sx-display); }
.sx-ctable__row.z-r16 .sx-ctable__pos span { background: color-mix(in srgb, var(--cacc) 22%, #fff); color: var(--c1); }
.sx-ctable__row.z-po .sx-ctable__pos span { background: var(--sx-soft); color: var(--sx-night); }
.sx-ctable__row.z-sud .sx-ctable__pos span { background: #FFF1D6; color: #8A5A00; }
.sx-ctable__row.z-out .sx-ctable__pos span { color: var(--sx-muted); }
.sx-ctable__row.is-cut td { border-top: 2px dashed rgba(26,11,46,.18); }
.sx-ctable__row:hover td { background: var(--csoft, var(--sx-soft-2)); }
.sx-ctable__pts { font: 900 17px/1 var(--sx-display) !important; }
.sx-ctable__form { white-space: nowrap; }
.sx-ctable__form i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0 1px;
  border-radius: 6px;
  color: #fff;
  font: 900 10.5px/1 var(--sx-font);
  font-style: normal;
}
.sx-ctable__form .f-g { background: #1FA35B; }
.sx-ctable__form .f-e { background: #A8A3B5; }
.sx-ctable__form .f-p { background: #E5484D; }
.sx-ctable .sx-cteam { font-size: 14.5px; }
.sx-ctable .sx-cteam .sx-ccrest { width: 26px; height: 26px; }
.sx-clegend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 2px 0 !important; padding: 0 !important; list-style: none !important; color: var(--sx-muted); font: 700 13px/1.3 var(--sx-font); }
.sx-clegend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.sx-clegend span { opacity: .7; }
.sx-clegend i { width: 14px; height: 14px; border-radius: 5px; background: var(--sx-soft); }
.sx-clegend .z-r16 i { background: color-mix(in srgb, var(--cacc) 40%, #fff); }
.sx-clegend .z-sud i { background: #FFD98A; }
.sx-clegend .z-out i { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(26,11,46,.2); }

.sx-cgroups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sx-cgroup { overflow: hidden; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(26,11,46,.08); }
body.sx .sx-cgroup__h { margin: 0; padding: 14px 16px 6px; color: var(--sx-night); font-size: 24px; line-height: 1; }
/* Ancho fijo: un nombre largo («Academia Puerto Cabello») se corta con «…» y nunca empuja PTS fuera de la tarjeta. */
.sx-ctable--group { table-layout: fixed; }
.sx-ctable--group td,
.sx-ctable--group th { padding: 8px 6px; }
.sx-ctable--group .sx-ctable__pos { width: 34px; }
.sx-ctable--group .sx-ctable__club { width: auto; }
.sx-ctable--group .sx-ctable__n { width: 34px; }
.sx-ctable--group th.sx-ctable__n:last-child { width: 40px; padding-right: 12px; }
.sx-ctable--group td.sx-ctable__pts { padding-right: 12px; }
/* Con 4 grupos por fila la tarjeta es angosta: se prioriza el nombre del club (PJ vuelve en tablet y celular). */
@media (min-width: 1200px) {
  .sx-ctable--group .sx-ctable__pj { display: none; }
}
/* Nombres largos en dos líneas en vez de cortarlos. */
.sx-ctable--group .sx-cteam__n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
.sx-ctable--group .sx-ctable__pos span { width: 24px; height: 24px; font-size: 13px; border-radius: 8px; }
.sx-ctable--group .sx-cteam { font-size: 13.5px; }
.sx-ctable--group .sx-cteam .sx-ccrest { width: 22px; height: 22px; }
.sx-ctable--group .sx-cteam__kit { width: 18px; height: 18px; }

/* ===================================================================== *
 * Llave (eliminatorias)
 * ===================================================================== */
.sx-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(212px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.sx-bcol { display: flex; flex-direction: column; min-width: 0; padding: 0 10px; scroll-snap-align: start; }
.sx-bcol + .sx-bcol { border-left: 1px dashed rgba(26,11,46,.1); }
.sx-bcol__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--sx-night); }
.sx-bcol__h b { font: 900 20px/1 var(--sx-display); letter-spacing: .01em; text-transform: uppercase; }
.sx-bcol__h span { color: var(--sx-muted); font: 700 12px/1 var(--sx-font); }
.sx-bcol__ties { display: flex; flex: 1; flex-direction: column; justify-content: space-around; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sx-tie {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.09);
}
.sx-tie.is-live { box-shadow: inset 0 0 0 2px #FF3B3B; }
.sx-tie__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 30px; }
.sx-tie__row .sx-cteam { gap: 7px; font-size: 13px; font-weight: 700; }
.sx-tie__row .sx-cteam .sx-ccrest { width: 22px; height: 22px; }
.sx-tie__row .sx-cteam__kit { width: 18px; height: 18px; }
.sx-tie__row.is-win .sx-cteam { font-weight: 900; }
.sx-tie__row.is-out { opacity: .5; }
.sx-tie__legs { color: var(--sx-muted); font: 700 11.5px/1 var(--sx-font); white-space: nowrap; }
.sx-tie__sum { min-width: 16px; font: 900 18px/1 var(--sx-display); text-align: right; }
.sx-tie__sum small { margin-left: 3px; color: var(--sx-muted); font: 800 11px/1 var(--sx-font); }
.sx .sx-tie__foot { margin: 4px 0 0 !important; padding-top: 6px; border-top: 1px solid rgba(26,11,46,.07); color: var(--sx-muted); font: 700 11.5px/1.3 var(--sx-font); }
.sx-tie__live { display: inline-flex; align-items: center; gap: 6px; color: #E5262B; font-weight: 900; }
.sx-tie__live i { width: 7px; height: 7px; border-radius: 50%; background: #FF3B3B; animation: sx-live 1.6s infinite; }
.sx-tie--tbd { box-shadow: inset 0 0 0 1px rgba(26,11,46,.07); background: var(--sx-soft-2); }
.sx-tie__tbd { color: var(--sx-muted); font: 700 13px/1 var(--sx-font); }
/* Final: tarjeta grande con los colores de la copa */
.sx-bcol--final .sx-bcol__h b::after { content: " 🏆"; font-size: 16px; }
.sx-bcol--final .sx-tie { padding: 14px 14px 12px; background: linear-gradient(155deg, var(--c2), var(--c1)); color: #fff; box-shadow: 0 20px 40px -24px var(--c1); }
.sx-bcol--final .sx-tie .sx-cteam { color: #fff; font-size: 15px; }
.sx-bcol--final .sx-tie .sx-cteam .sx-ccrest { width: 34px; height: 34px; }
.sx-bcol--final .sx-tie__row { min-height: 42px; }
.sx-bcol--final .sx-tie__sum { font-size: 26px; }
.sx-bcol--final .sx-tie__sum small,
.sx-bcol--final .sx-tie__foot { color: rgba(255,255,255,.7); }
.sx-bcol--final .sx-tie__foot { border-top-color: rgba(255,255,255,.14); }
.sx-bcol--final .sx-tie--tbd { background: var(--c1); }
.sx-bcol--final .sx-tie__tbd { color: rgba(255,255,255,.6); }
.sx-bcol--final .sx-cteam__kit { background: var(--cacc); }

/* ===================================================================== *
 * Partidos por fecha
 * ===================================================================== */
.sx-cmatches__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.sx-cmatches__tabs::-webkit-scrollbar { display: none; }
.sx-cmatches__tabs .sx-chip { flex: none; }
.sx-cmatches__tabs .sx-chip.is-live::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #FF3B3B; }
.sx .sx-cmatches__day { margin: 18px 0 8px !important; color: var(--sx-night); font: 900 15px/1 var(--sx-font); }
.sx-cmatches__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sx-cmatch--row { padding: 12px 14px; border-radius: 16px; }

/* ===================================================================== *
 * Camisetas de cada club
 * ===================================================================== */
.sx-ckits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0 !important; padding: 0 !important; list-style: none !important; }
.sx-ckits > li { margin: 0; }
.sx-ckits > li[hidden] { display: none; }
body.sx .sx-ckit {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 16px 10px 14px;
  border: 0;
  border-radius: 20px;
  background: var(--sx-soft-2);
  color: var(--sx-night);
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.05);
  transition: transform .25s var(--sx-ease), box-shadow .25s, background-color .2s;
}
body.sx .sx-ckit:hover,
body.sx .sx-ckit:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(26,11,46,.05), 0 18px 36px -22px rgba(26,11,46,.45); }
body.sx .sx-ckit.has-kits { background: #fff; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cacc) 55%, transparent); }
.sx-ckit__crest { display: grid; place-items: center; width: 64px; height: 64px; }
.sx-ckit__crest .sx-ccrest { width: 56px !important; height: 56px !important; }
.sx-ckit:not(.has-kits) .sx-ckit__crest { filter: grayscale(.6); opacity: .75; }
.sx-ckit__name { font: 900 14px/1.15 var(--sx-font); }
.sx-ckit__meta { display: inline-flex; align-items: center; gap: 5px; color: var(--sx-muted); font: 700 12px/1.2 var(--sx-font); }
.sx-ckit.has-kits .sx-ckit__meta { color: var(--c1); font-weight: 900; }
.sx-ckit.has-kits .sx-ckit__meta svg { color: var(--cacc); }
.sx .sx-csource { margin: 18px 2px 0 !important; color: var(--sx-muted); font: 600 12.5px/1.5 var(--sx-font); }

/* ===================================================================== *
 * Panel de camisetas de un club
 * ===================================================================== */
.sx-cdrawer { position: fixed; inset: 0; z-index: 9990; }
.sx-cdrawer[hidden] { display: none; }
.sx-cdrawer__scrim { position: absolute; inset: 0; background: rgba(10,6,20,.5); opacity: 0; transition: opacity .22s; }
.sx-cdrawer__panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 24px));
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(10,6,20,.6);
  transform: translateX(30px);
  opacity: 0;
  transition: transform .26s var(--sx-ease), opacity .22s;
  outline: 0;
}
.sx-cdrawer.is-open .sx-cdrawer__scrim { opacity: 1; }
.sx-cdrawer.is-open .sx-cdrawer__panel { transform: none; opacity: 1; }
html.sx-cdrawer-open { overflow: hidden; }
.sx-cdrawer__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 18px 18px 20px;
  background: linear-gradient(155deg, var(--c2), var(--c1));
  color: #fff;
}
.sx-cdrawer__crest { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; }
.sx-cdrawer__crest img { width: 52px !important; height: 52px !important; object-fit: contain; }
.sx-cdrawer__crest .sx-ccrest--txt { --s: 52px !important; }
.sx .sx-cdrawer__kicker { margin: 0 0 4px !important; color: var(--cacc2); font: 800 11px/1 var(--sx-font); letter-spacing: .12em; text-transform: uppercase; }
body.sx .sx-cdrawer__title { margin: 0; color: #fff; font-size: 32px; line-height: .95; }
.sx .sx-cdrawer__info { margin: 6px 0 0 !important; color: rgba(255,255,255,.75); font: 700 13px/1.3 var(--sx-font); }
body.sx .sx-cdrawer__close { align-self: start; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.sx-cdrawer__body { flex: 1; overflow-y: auto; padding: 16px 18px 20px; }
.sx .sx-cdrawer__count { margin: 0 0 10px !important; color: var(--sx-muted); font: 800 12.5px/1 var(--sx-font); letter-spacing: .04em; text-transform: uppercase; }
.sx-cdrawer__items { display: grid; gap: 8px; margin: 0 0 16px !important; padding: 0 !important; list-style: none !important; }
.sx-cdrawer__items li { margin: 0; }
body.sx .sx-citem {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: var(--sx-soft-2);
  color: var(--sx-night) !important;
  text-decoration: none !important;
  transition: background-color .2s, box-shadow .2s;
}
body.sx .sx-citem:hover,
body.sx .sx-citem:focus-visible { background: #fff; box-shadow: inset 0 0 0 2px var(--cacc); }
.sx-citem img,
.sx-citem__ph { display: block; width: 76px !important; height: 76px !important; border-radius: 12px; background: #fff; object-fit: cover; }
.sx-citem__body { display: grid; gap: 4px; min-width: 0; }
.sx-citem__body b { font: 900 14.5px/1.2 var(--sx-font); }
.sx-citem__meta { font: 700 12px/1 var(--sx-font); }
.sx-citem__stock { color: #12823F; }
.sx-citem__order { color: var(--sx-muted); }
.sx-citem__price { font: 900 15px/1 var(--sx-font); white-space: nowrap; }
.sx-cdrawer__empty { display: grid; justify-items: center; gap: 4px; padding: 18px 6px 4px; text-align: center; }
.sx-cdrawer__empty p { margin: 0 !important; color: var(--sx-muted); font: 600 14.5px/1.5 var(--sx-font); }
.sx-cdrawer__empty p b { color: var(--sx-night); }
.sx-cdrawer__shirt { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 6px; border-radius: 50%; background: var(--csoft, var(--sx-soft)); color: var(--c2); }
.sx-cdrawer .sx-btn--block { display: flex; justify-content: center; width: 100%; margin-top: 10px; box-sizing: border-box; }
.sx-cdrawer__panel:focus,
.sx-cdrawer__panel:focus-visible { outline: none; box-shadow: 0 30px 80px -20px rgba(10,6,20,.6); }

/* ===================================================================== *
 * Página de copas
 * ===================================================================== */
.sx-chub-hero { grid-template-columns: minmax(0, 1fr) auto; }
.sx-chub-hero__logos { display: grid; grid-template-columns: repeat(3, 96px); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sx-chub-hero__logos li { display: grid; place-items: center; width: 96px; height: 96px; margin: 0; border-radius: 24px; background: rgba(255,255,255,.08); }
.sx-chub-hero__logos img { width: 70px !important; height: 70px !important; object-fit: contain; }
.sx-ctiles { display: grid; gap: 14px; }
.sx-ctiles--lg.sx-ctiles--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-ctiles--lg.sx-ctiles--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.sx .sx-ctile--lg { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body logo" "body go"; min-height: 200px; padding: 26px; border-radius: 28px; }
.sx-ctile--lg .sx-ctile__logo { grid-area: logo; width: 104px !important; height: 104px !important; }
.sx-ctile--lg .sx-ctile__body { grid-area: body; align-self: end; gap: 6px; }
.sx-ctile--lg .sx-ctile__go { grid-area: go; justify-self: end; align-self: end; }
body.sx .sx-ctile--lg .sx-ctile__name { font-size: 38px; }
.sx-ctile--lg .sx-ctile__status { font-size: 14px; }
body.sx .sx-cmatch-link { display: grid; gap: 6px; color: var(--sx-night) !important; text-decoration: none !important; }
.sx-cmatch-link__comp { color: var(--c2); font: 900 11.5px/1 var(--sx-font); letter-spacing: .1em; text-transform: uppercase; }
.sx-cmatch-link:hover .sx-cmatch { box-shadow: inset 0 0 0 2px var(--cacc); }

/* ===================================================================== *
 * Tablet y celular
 * ===================================================================== */
@media (max-width: 1199px) {
  .sx-chero { grid-template-columns: minmax(0, 1fr) 280px; padding: 44px 40px 26px; }
  .sx-cstrip__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .sx-ckits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sx-cgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-cmatches__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .sx-chero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body" "steps"; gap: 14px; padding: 26px 22px 20px; border-radius: 26px; }
  .sx-chero__media { min-height: 0; justify-items: start; }
  .sx-chero__logo { max-width: 120px; max-height: 120px; }
  .sx-chero--ucl .sx-chero__media::before { width: 180px; height: 180px; left: -30px; }
  body.sx .sx-chero__title { font-size: 54px; }
  .sx-chero--uel .sx-chero__deco,
  .sx-chero--uecl .sx-chero__deco { background-position: 30% -40px; }
  /* Los chips se reparten en dos filas: «Camisetas» siempre a la vista. */
  .sx-chero__nav { gap: 7px; margin-top: 18px; }
  .sx-chero__nav .sx-chip { flex: none; }
  .sx-csteps__i { min-width: 86px; }
  .sx-cstrip__track {
    grid-auto-columns: 78%;
    gap: 10px;
    margin: 0 calc(-1 * var(--sx-gutter));
    padding: 0 var(--sx-gutter) 4px;
    scroll-padding-inline: var(--sx-gutter);
  }
  .sx-ckits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sx-cgroups { grid-template-columns: minmax(0, 1fr); }
  .sx-cmatches__grid { grid-template-columns: minmax(0, 1fr); }
  .sx-ctable-wrap { border-radius: 18px; margin: 0 calc(-1 * var(--sx-gutter) / 2); }
  .sx-ctable { font-size: 13px; }
  .sx-ctable td,
  .sx-ctable th { padding: 8px 5px; }
  .sx-ctable .sx-cteam { font-size: 13.5px; }
  .sx-ctable .sx-cteam .sx-ccrest { width: 22px; height: 22px; }
  .sx-bracket { grid-auto-columns: 78%; margin: 0 calc(-1 * var(--sx-gutter)); padding: 4px var(--sx-gutter) 10px; scroll-padding-inline: var(--sx-gutter); scroll-snap-type: x mandatory; }
  .sx-bcol { padding: 0 8px; }
  .sx-bcol__ties { justify-content: flex-start; }
  .sx-chub-hero { grid-template-columns: minmax(0, 1fr); }
  .sx-chub-hero__logos { grid-template-columns: repeat(5, 56px); gap: 8px; }
  .sx-chub-hero__logos li { width: 56px; height: 56px; border-radius: 16px; }
  .sx-chub-hero__logos img { width: 40px !important; height: 40px !important; }
  .sx-ctiles--lg.sx-ctiles--n3,
  .sx-ctiles--lg.sx-ctiles--n2 { grid-template-columns: minmax(0, 1fr); }
  body.sx .sx-ctile--lg { min-height: 0; padding: 20px; }
  .sx-ctile--lg .sx-ctile__logo { width: 72px !important; height: 72px !important; }
  body.sx .sx-ctile--lg .sx-ctile__name { font-size: 30px; }
  .sx-cdrawer__panel { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0; transform: translateY(40px); }
}
@media (max-width: 599px) {
  .sx-hide-s { display: none; }
  .sx-ckits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sx .sx-ckit { padding: 12px 8px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-cstatus__pill--live i,
  .sx-cmatch__live i,
  .sx-tie__live i { animation: none; }
}

/* ===================================================================== *
 * Llave antes de las eliminatorias y la final
 * ===================================================================== */
.sx-bcol--preview .sx-tie { gap: 6px; padding: 14px; }
.sx .sx-tie__n { margin: 0 !important; color: var(--sx-night); font: 900 14px/1.2 var(--sx-font); }
.sx .sx-tie__note { margin: 0 !important; color: var(--sx-muted); font: 600 13px/1.4 var(--sx-font); }
.sx-bcol--preview .sx-bcol__ties { justify-content: flex-start; }
.sx-bcol--final.sx-bcol--preview .sx-tie { background: linear-gradient(155deg, var(--c2), var(--c1)); }
.sx-bcol--final.sx-bcol--preview .sx-tie__n { color: #fff; }

.sx-cfinal-box:empty { display: none; }
.sx-cfinal-box { margin-bottom: 22px; }
.sx-cfinal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 26px 30px 30px;
  border-radius: 30px;
  background: linear-gradient(155deg, var(--c2), var(--c1));
  color: #fff;
}
.sx-cfinal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 80% at 50% 0%, color-mix(in srgb, var(--cacc) 40%, transparent), transparent 70%);
}
.sx-cfinal.is-live { box-shadow: 0 0 0 3px #FF3B3B; }
.sx .sx-cfinal__kicker { margin: 0 0 16px !important; color: var(--cacc2); font: 800 12.5px/1.3 var(--sx-font); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.sx-cfinal__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.sx-cfinal__team { display: grid; justify-items: center; gap: 8px; text-align: center; }
.sx-cfinal__team.is-out { opacity: .6; }
body.sx .sx-cfinal__crest { display: grid; place-items: center; width: 132px; height: 132px; padding: 0; border: 0; border-radius: 34px; background: rgba(255,255,255,.96); cursor: pointer; box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); transition: transform .25s var(--sx-ease); }
body.sx .sx-cfinal__crest:hover { transform: translateY(-3px) rotate(-2deg); }
.sx-cfinal__crest .sx-ccrest { width: 104px !important; height: 104px !important; }
.sx-cfinal__team.is-win .sx-cfinal__crest { box-shadow: 0 0 0 4px var(--cacc), 0 18px 40px -20px rgba(0,0,0,.6); }
body.sx .sx-cfinal__name { color: #fff; font-size: 30px; line-height: .95; }
.sx-cfinal__champ { padding: 4px 10px; border-radius: 999px; background: var(--cacc); color: var(--c1); font: 900 11.5px/1 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
body.sx .sx-cfinal__kits { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
body.sx .sx-cfinal__kits:hover { background: #fff; color: var(--c1); }
.sx-cfinal__kits svg { margin-right: 5px; }
.sx-cfinal__mid { display: grid; justify-items: center; gap: 6px; min-width: 150px; }
.sx-cfinal__score { font: 900 64px/.9 var(--sx-display); letter-spacing: .02em; }
.sx-cfinal__score i { margin: 0 8px; font-style: normal; opacity: .5; }
.sx-cfinal__pens { color: var(--cacc2); font: 800 14px/1 var(--sx-font); }
.sx-cfinal__st { color: rgba(255,255,255,.7); font: 700 13px/1 var(--sx-font); }
.sx-cfinal__live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,59,59,.2); color: #fff; font: 900 13px/1 var(--sx-font); }
.sx-cfinal__live i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B3B; animation: sx-live 1.6s infinite; }
.sx-cfinal__when { padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.12); font: 900 16px/1.2 var(--sx-font); text-align: center; }
@media (max-width: 899px) {
  .sx-cfinal { padding: 20px 16px 22px; border-radius: 24px; }
  .sx-cfinal__grid { gap: 8px; }
  body.sx .sx-cfinal__crest { width: 84px; height: 84px; border-radius: 24px; }
  .sx-cfinal__crest .sx-ccrest { width: 64px !important; height: 64px !important; }
  body.sx .sx-cfinal__name { font-size: 20px; }
  .sx-cfinal__mid { min-width: 0; }
  .sx-cfinal__score { font-size: 44px; }
  .sx-cfinal__score i { margin: 0 4px; }
  body.sx .sx-cfinal__kits { padding: 0 10px; font-size: 12px; }
}
