/*!
 * Camisetas South · Rediseño 2026 · "Buscar por jugador", "Camisetas retro" y "Mundial 2026"
 * Usa la portada oscura, el buscador, las tarjetas con foto y la franja de ayuda de
 * sx-leagues.css; aquí van solo las piezas nuevas.
 */

/* ===================================================================== *
 * Portadas: variaciones de color
 * ===================================================================== */
.sx-lghero--retro {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(234,147,80,.55) 0%, rgba(234,147,80,0) 55%),
    radial-gradient(80% 110% at 0% 100%, rgba(106,33,191,.55) 0%, rgba(106,33,191,0) 55%),
    linear-gradient(160deg, #2E1650 0%, #1A0B2E 58%, #120720 100%);
}
.sx-lghero--wc {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(106,33,191,.9) 0%, rgba(106,33,191,0) 58%),
    radial-gradient(70% 100% at 0% 100%, rgba(31,170,110,.28) 0%, rgba(31,170,110,0) 55%),
    linear-gradient(160deg, #2A1446 0%, #1A0B2E 58%, #120720 100%);
}

/* Caras de los jugadores (en vez de escudos) */
.sx-lghero__crests--faces li { overflow: hidden; background: linear-gradient(160deg, #F7F5FA, #E4DAF3); }
.sx-lghero__crests--faces img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: 50% 8%;
}

/* Fotos sobre la mesa (retro) */
.sx-lghero__photos { position: relative; width: 420px; height: 340px; flex: none; }
.sx-lghero__photo {
  position: absolute;
  width: 230px;
  padding: 10px 10px 34px;
  border-radius: 8px;
  background: #FBF7EF;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.7);
  transform: rotate(var(--r, 0deg));
  transition: transform .4s var(--sx-ease);
}
.sx-lghero__photo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  filter: sepia(.25) saturate(1.05) contrast(1.02);
}
.sx-lghero__photo:nth-child(1) { --r: -8deg; top: 30px; left: 0; z-index: 1; }
.sx-lghero__photo:nth-child(2) { --r: 5deg; top: 0; left: 150px; z-index: 2; }
.sx-lghero__photo:nth-child(3) { --r: -2deg; top: 120px; left: 90px; z-index: 3; }
.sx-lghero:hover .sx-lghero__photo:nth-child(1) { transform: rotate(-11deg) translateX(-8px); }
.sx-lghero:hover .sx-lghero__photo:nth-child(2) { transform: rotate(8deg) translateX(8px); }

/* Imagen del Mundial (ilustración con fondo transparente: se muestra completa) */
.sx-lghero__poster {
  position: relative;
  display: grid;
  place-items: center;
  width: 400px;
  height: 420px;
  flex: none;
}
.sx-lghero__poster::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247,185,137,.55), rgba(247,185,137,.12) 60%, rgba(247,185,137,0));
}
.sx-lghero__poster img {
  position: relative;
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.45));
}
@media (max-width: 1199px) {
  .sx-lghero__photos { width: 320px; height: 280px; }
  .sx-lghero__photo { width: 180px; }
  .sx-lghero__photo:nth-child(2) { left: 120px; }
  .sx-lghero__photo:nth-child(3) { top: 100px; left: 70px; }
  .sx-lghero__poster { width: 300px; height: 340px; }
}
@media (max-width: 999px) {
  .sx-lghero__photos { grid-row: 1; width: 100%; height: 150px; }
  .sx-lghero__photo { width: 120px; padding: 6px 6px 20px; }
  .sx-lghero__photo:nth-child(1) { top: 16px; left: 0; }
  .sx-lghero__photo:nth-child(2) { top: 0; left: 96px; }
  .sx-lghero__photo:nth-child(3) { top: 22px; left: 190px; }
  .sx-lghero__poster { grid-row: 1; width: 100%; height: 190px; }
}

/* ===================================================================== *
 * Filtros (posición, grupo)
 * ===================================================================== */
.sx-colchips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.sx-colchips .sx-chip span { margin-left: 2px; opacity: .55; }
.sx .sx-colchips .sx-chip[aria-pressed="true"] span { opacity: .75; }
@media (max-width: 899px) {
  .sx-colchips,
  .sx-colchips--scroll {
    flex-wrap: nowrap;
    margin: -4px calc(-1 * var(--sx-gutter)) 18px;
    padding: 0 var(--sx-gutter) 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sx-colchips::-webkit-scrollbar { display: none; }
}
@media (min-width: 900px) {
  .sx-colchips--scroll { flex-wrap: wrap; }
}

/* ===================================================================== *
 * Tarjeta de jugador
 * ===================================================================== */
.sx-pc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sx-pc-grid > li { margin: 0; padding: 0; list-style: none; }
.sx-pc-grid--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1199px) {
  .sx-pc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-pc-grid--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .sx-pc-grid,
  .sx-pc-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* Fila destacada: deslizable */
  .sx-pc-grid--row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    margin: 0 calc(-1 * var(--sx-gutter)) !important;
    padding: 0 var(--sx-gutter) 4px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sx-gutter);
    scrollbar-width: none;
  }
  .sx-pc-grid--row::-webkit-scrollbar { display: none; }
  .sx-pc-grid--row > li { scroll-snap-align: start; }
}

.sx .sx-pc {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(106,33,191,.95) 0%, rgba(106,33,191,0) 70%),
    linear-gradient(180deg, #2E1650 0%, #1A0B2E 100%);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 18px 36px -24px rgba(26,11,46,.7);
  transition: transform .35s var(--sx-ease), box-shadow .35s var(--sx-ease);
}
.sx-pc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, rgba(255,255,255,0) 2px 20px);
}
.sx-pc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(18,7,32,.95) 0%, rgba(18,7,32,.55) 28%, rgba(18,7,32,0) 52%);
  pointer-events: none;
}
.sx .sx-pc:hover,
.sx .sx-pc:focus-visible { color: #fff; text-decoration: none; transform: translateY(-4px); box-shadow: 0 26px 46px -24px rgba(26,11,46,.75); }
.sx-pc__media { position: absolute; inset: 30px 0 0; z-index: -1; }
.sx-pc__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: 50% 100%;
  transition: transform .7s var(--sx-ease);
  transform-origin: 50% 100%;
}
.sx-pc:hover .sx-pc__media img { transform: scale(1.06); }
.sx-pc__top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sx-pc__flag {
  display: block;
  width: 28px !important;
  height: 20px !important;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 4px 10px rgba(0,0,0,.35);
}
.sx-pc__pos {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18,7,32,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  font: 800 11px/1 var(--sx-font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sx-pc__body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.sx-pc__country { color: var(--sx-orange-soft); font: 800 11.5px/1 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
body.sx .sx-pc__name { color: #fff; font-size: clamp(24px, 2.1vw, 30px); line-height: .9; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.sx-pc__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font: 800 13px/1.3 var(--sx-font);
  opacity: 0;
  transition: max-height .3s var(--sx-ease), opacity .25s;
}
.sx-pc:hover .sx-pc__go,
.sx-pc:focus-visible .sx-pc__go { max-height: 24px; opacity: 1; }
@media (max-width: 899px) {
  .sx .sx-pc { border-radius: 18px; }
  .sx-pc__top { top: 10px; left: 10px; right: 10px; }
  .sx-pc__pos { height: 22px; padding: 0 8px; font-size: 10px; }
  .sx-pc__body { left: 12px; right: 12px; bottom: 12px; }
  .sx-pc__country { font-size: 10.5px; }
  body.sx .sx-pc__name { font-size: 22px; }
  .sx-pc__go { display: none; }
}

/* ===================================================================== *
 * Tarjetas con foto (ligas retro y regiones)
 * ===================================================================== */
.sx-rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sx-rc-grid--nations,
.sx-rc-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.sx .sx-rc-grid--nations .sx-lgc__name,
body.sx .sx-rc-grid--five .sx-lgc__name { overflow-wrap: normal; word-break: normal; hyphens: manual; }
body.sx .sx-rc-grid--nations .sx-lgc__name,
body.sx .sx-rc-grid--five .sx-lgc__name { font-size: clamp(24px, 2vw, 30px); }
.sx-rc-grid > .sx-lgc { grid-column: auto !important; min-height: 280px; }
body.sx .sx-lgc--photo .sx-lgc__name { font-size: clamp(28px, 2.4vw, 36px); }
.sx-lgc--photo .sx-lgc__bg { filter: saturate(1.05); }
.sx-lgc--photo .sx-lgc__go { margin-top: 12px; }
.sx-lg__group + .sx-lg__group { margin-top: 44px; }
@media (max-width: 1199px) {
  .sx-rc-grid,
  .sx-rc-grid--nations,
  .sx-rc-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-rc-grid > .sx-lgc { min-height: 250px; }
}
@media (max-width: 899px) {
  .sx-rc-grid,
  .sx-rc-grid--nations,
  .sx-rc-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.sx .sx-rc-grid--nations .sx-lgc__name,
  body.sx .sx-rc-grid--five .sx-lgc__name { font-size: 21px; }
  body.sx .sx-rc-grid--nations > .sx-lgc:first-child .sx-lgc__name,
  body.sx .sx-rc-grid--five > .sx-lgc:last-child .sx-lgc__name { font-size: 26px; }
  .sx-rc-grid > .sx-lgc { min-height: 200px; }
  body.sx .sx-lgc--photo .sx-lgc__name { font-size: 26px; }
  .sx-lgc--photo .sx-lgc__go { display: none; }
  .sx-rc-grid--nations > .sx-lgc:first-child,
  .sx-rc-grid--five > .sx-lgc:last-child { grid-column: 1 / -1 !important; }
}

/* ===================================================================== *
 * Mundial: tarjetas de selección
 * ===================================================================== */
.sx-wc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sx-wc-grid > li { margin: 0; padding: 0; list-style: none; }
@media (max-width: 1199px) { .sx-wc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .sx-wc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.sx-wc {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sx-soft-2);
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.06);
  transition: box-shadow .25s, transform .3s var(--sx-ease);
}
.sx-wc:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(26,11,46,.08), 0 18px 36px -22px rgba(26,11,46,.45); transform: translateY(-3px); }
.sx .sx-wc__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.sx-wc__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transition: transform .5s var(--sx-ease);
}
.sx-wc__img[hidden] { display: none !important; }
.sx-wc:hover .sx-wc__img { transform: scale(1.04); }
.sx-wc__host {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sx-night);
  color: #fff;
  font: 800 11.5px/1 var(--sx-font);
}
.sx-wc__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 14px 14px 14px; }
.sx-wc__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sx-wc__flag {
  display: block;
  flex: none;
  width: 32px !important;
  height: 22px !important;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(26,11,46,.12);
}
body.sx .sx-wc__name { flex: 1; min-width: 0; margin: 0; color: var(--sx-night); font: 900 17px/1.15 var(--sx-font); text-transform: none; overflow-wrap: anywhere; }
.sx-wc__grp { flex: none; color: var(--sx-muted); font: 800 12px/1 var(--sx-font); white-space: nowrap; }
.sx-wc__kits { display: flex; gap: 6px; }
body.sx .sx-wc__kit {
  flex: 1;
  height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--sx-line);
  color: var(--sx-night);
  font: 800 12.5px/1 var(--sx-font);
  white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
body.sx .sx-wc__kit:hover { box-shadow: inset 0 0 0 1.5px var(--sx-night); }
body.sx .sx-wc__kit.is-on { background: var(--sx-night); box-shadow: none; color: #fff; }
.sx-wc__cta { margin-top: auto; }
@media (max-width: 899px) {
  .sx-wc { border-radius: 18px; }
  .sx .sx-wc__media { margin: 6px 6px 0; border-radius: 13px; }
  .sx-wc__host { top: 6px; left: 6px; height: 22px; padding: 0 8px; font-size: 10.5px; }
  .sx-wc__body { gap: 10px; padding: 10px; }
  .sx-wc__head { flex-wrap: wrap; gap: 6px 8px; }
  .sx-wc__flag { width: 26px !important; height: 18px !important; }
  body.sx .sx-wc__name { font-size: 15px; }
  .sx-wc__grp { flex-basis: 100%; font-size: 11px; }
  .sx-wc__kits { gap: 4px; }
  body.sx .sx-wc__kit { height: 30px; padding: 0 2px; font-size: 11px; }
  .sx-wc__cta.sx-btn { height: 40px; padding: 0 10px; font-size: 13px; white-space: normal; text-align: center; line-height: 1.1; }
}

/* ===================================================================== *
 * Ropa de entrenamiento
 * ===================================================================== */
.sx-lghero--train {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(106,33,191,.95) 0%, rgba(106,33,191,0) 58%),
    radial-gradient(80% 110% at 0% 100%, rgba(234,147,80,.38) 0%, rgba(234,147,80,0) 55%),
    linear-gradient(160deg, #2A1446 0%, #1A0B2E 58%, #120720 100%);
}
/* Buscador con botón */
body.sx .sx-lgsearch__go { flex: none; height: 48px; padding: 0 22px; }

/* Tres productos recién llegados, como tarjetas sobre la mesa */
.sx-trstack { position: relative; width: 430px; height: 380px; flex: none; }
.sx-trstack__card {
  position: absolute;
  width: 230px;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 60px -22px rgba(0,0,0,.75);
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--sx-ease);
}
.sx-trstack__card img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: var(--sx-soft);
}
.sx-trstack__card:nth-child(1) { --r: -7deg; top: 46px; left: 0; z-index: 2; }
.sx-trstack__card:nth-child(2) { --r: 6deg; top: 0; left: 190px; z-index: 1; }
.sx-trstack__card:nth-child(3) { --r: -1deg; top: 150px; left: 150px; z-index: 3; }
.sx-lghero:hover .sx-trstack__card:nth-child(1) { transform: rotate(-10deg) translate(-10px, -4px); }
.sx-lghero:hover .sx-trstack__card:nth-child(2) { transform: rotate(9deg) translate(10px, -6px); }
.sx-trstack__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sx-violet);
  color: #fff;
  font: 900 12px/1 var(--sx-font);
  letter-spacing: .02em;
}

/* Recién llegadas */
.sx-trnew__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px !important;
  color: var(--sx-violet);
  font: 900 13px/1 var(--sx-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sx-livedot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--sx-orange); }
.sx-livedot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--sx-orange);
  opacity: 0;
  animation: sx-live 2s ease-out infinite;
}
@keyframes sx-live {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.sx-trnew__tabs { margin: -6px 0 22px !important; }
/* Pestañas: las tarjetas que no son del tipo elegido se ocultan (le gana a display:flex de la tienda) */
body.sx ul.products.sx-rail__track > li.product[hidden] { display: none !important; }

/* Tipos: tarjetas en mosaico (la primera, grande) */
.sx-trgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sx-trc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--sx-soft-2);
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.05);
  transition: transform .3s var(--sx-ease), box-shadow .3s;
}
.sx-trc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(26,11,46,.05), 0 24px 50px -28px rgba(26,11,46,.45); }
.sx-trc--big { grid-column: span 2; grid-row: span 2; }
.sx .sx-trc__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sx-soft); line-height: 0; }
.sx-trc--big .sx-trc__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.sx-trc__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .6s var(--sx-ease);
}
.sx-trc__img--product { object-fit: contain; padding: 6%; box-sizing: border-box; }
.sx-trc:hover .sx-trc__img { transform: scale(1.04); }
.sx-trc__body { padding: 18px 20px 20px; }
.sx-trc--big .sx-trc__body { padding: 24px 28px 28px; }
.sx .sx-trc__count { margin: 0 0 8px !important; color: var(--sx-violet); font: 900 12px/1 var(--sx-font); letter-spacing: .08em; text-transform: uppercase; }
body.sx .sx-trc__name { margin: 0; font-size: 36px; line-height: .9; }
body.sx .sx-trc--big .sx-trc__name { font-size: 64px; }
.sx .sx-trc__name a { color: var(--sx-night); text-decoration: none; }
.sx .sx-trc__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sx .sx-trc__text { margin: 8px 0 0 !important; color: var(--sx-muted); font: 600 14.5px/1.45 var(--sx-font); }
.sx-trc__subs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 !important; padding: 0 !important; list-style: none !important; }
.sx-trc__subs li { margin: 0; }
.sx .sx-trc__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--sx-night);
  font: 800 13.5px/1 var(--sx-font);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.08);
  transition: background-color .2s, color .2s;
}
.sx .sx-trc__sub span { color: var(--sx-muted); font-weight: 700; font-size: 12px; }
.sx .sx-trc__sub:hover,
.sx .sx-trc__sub:focus { background: var(--sx-night); color: #fff; }
.sx .sx-trc__sub:hover span,
.sx .sx-trc__sub:focus span { color: rgba(255,255,255,.7); }
.sx .sx-trc__go {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--sx-violet);
  font: 800 14px/1 var(--sx-font);
  text-decoration: none;
}

@media (max-width: 1199px) {
  .sx-trstack { width: 330px; height: 300px; }
  .sx-trstack__card { width: 180px; }
  .sx-trstack__card:nth-child(2) { left: 140px; }
  .sx-trstack__card:nth-child(3) { top: 120px; left: 110px; }
}
@media (max-width: 999px) {
  .sx-trstack { display: none; }
  .sx-trgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sx-trc--big { grid-column: 1 / -1; grid-row: auto; }
  .sx-trc--big .sx-trc__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  body.sx .sx-trc--big .sx-trc__name { font-size: 52px; }
}
@media (max-width: 599px) {
  .sx-trgrid { gap: 10px; }
  .sx-trc { border-radius: 20px; }
  .sx-trc__body { padding: 14px 14px 16px; }
  .sx-trc--big .sx-trc__body { padding: 18px 18px 20px; }
  body.sx .sx-trc__name { font-size: 28px; }
  .sx .sx-trc__text { font-size: 13.5px; }
  .sx-trc:not(.sx-trc--big) .sx-trc__text { display: none; }
  .sx .sx-trc__sub { height: 32px; padding: 0 11px; font-size: 12.5px; }
  body.sx .sx-lgsearch__go { padding: 0 16px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-livedot::after { animation: none; }
}
@media (min-width: 1200px) {
  body.sx .sx-trteams { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  body.sx .sx-trteams { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  body.sx .sx-trc:not(.sx-trc--big) .sx-trc__name { font-size: 23px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
}

/* ===================================================================== *
 * Fórmula 1 y NBA (template-parts/sx/sport.php)
 * ===================================================================== */
.sx-lghero--f1 {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(220,0,0,.78) 0%, rgba(220,0,0,0) 56%),
    radial-gradient(80% 110% at 0% 100%, rgba(255,128,0,.34) 0%, rgba(255,128,0,0) 55%),
    linear-gradient(160deg, #24101F 0%, #160A1A 58%, #0E0610 100%);
}
.sx-lghero--nba {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(29,66,138,.95) 0%, rgba(29,66,138,0) 58%),
    radial-gradient(80% 110% at 0% 100%, rgba(200,16,46,.42) 0%, rgba(200,16,46,0) 55%),
    linear-gradient(160deg, #13183A 0%, #0D1029 58%, #080A1C 100%);
}
.sx .sx-chip__n { margin-left: 2px; opacity: .65; font-weight: 700; font-size: .86em; }

/* Equipos: tarjetas con los colores de cada uno */
.sx-steams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sx-steams > li { margin: 0; }
.sx-steams--sm { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.sx .sx-steam {
  position: relative;
  display: block;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: linear-gradient(150deg, var(--c1) 0%, var(--c1) 45%, var(--c2) 140%);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .3s var(--sx-ease), box-shadow .3s;
}
body.sx .sx-steam:hover,
body.sx .sx-steam:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 50px -26px rgba(26,11,46,.6); }
body.sx .sx-steam--sm { min-height: 200px; border-radius: 20px; }
.sx-steam::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%);
}
.sx-steam__abbr {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: -2;
  color: rgba(255,255,255,.16);
  font-size: 96px;
  line-height: .85;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.sx-steam--sm .sx-steam__abbr { font-size: 72px; }
.sx-steam__media {
  position: absolute;
  top: 18px;
  right: -14px;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  transform: rotate(6deg);
  transition: transform .45s var(--sx-ease);
}
.sx-steam:hover .sx-steam__media { transform: rotate(2deg) translateY(-4px); }
.sx-steam__media img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 12px; }
.sx-steam__body { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; }
.sx-steam__crest {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #fff;
  color: var(--c1);
  font: 900 12px/1 var(--sx-font);
  letter-spacing: .02em;
}
.sx-steam__crest img { width: 30px !important; height: 30px !important; object-fit: contain; }
.sx-steam__name { font: 900 21px/1.05 var(--sx-display); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.sx-steam--sm .sx-steam__name { font-size: 18px; }
.sx-steam__count { color: rgba(255,255,255,.85); font: 800 12.5px/1.2 var(--sx-font); }

/* NBA: conferencias */
.sx-sgroup + .sx-sgroup { margin-top: 36px; }
.sx-sgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
body.sx .sx-sgroup__title { margin: 0; color: var(--sx-night); font-size: 34px; line-height: .95; }

/* NBA: ediciones */
.sx-sfacets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.sx-sfacets > li { margin: 0; }
body.sx .sx-sfacet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: var(--sx-soft-2);
  color: var(--sx-night) !important;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px rgba(26,11,46,.05);
  transition: background-color .2s, color .2s, transform .3s var(--sx-ease);
}
body.sx .sx-sfacet:hover,
body.sx .sx-sfacet:focus-visible { background: var(--sx-night); color: #fff !important; transform: translateY(-3px); }
.sx-sfacet__n { color: var(--sx-violet); font: 900 12px/1 var(--sx-font); letter-spacing: .08em; }
.sx-sfacet:hover .sx-sfacet__n { color: var(--sx-orange); }
body.sx .sx-sfacet__name { font-size: 30px; line-height: .92; text-transform: uppercase; }
.sx-sfacet__text { color: var(--sx-muted); font: 600 14px/1.4 var(--sx-font); }
.sx-sfacet:hover .sx-sfacet__text { color: rgba(255,255,255,.75); }
.sx-sfacet__go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; color: var(--sx-violet); font: 800 14px/1 var(--sx-font); }
.sx-sfacet:hover .sx-sfacet__go { color: #fff; }

@media (max-width: 1199px) {
  .sx-steams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-steams--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sx-sfacets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .sx-steams,
  .sx-steams--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.sx .sx-steam { min-height: 210px; border-radius: 20px; }
  body.sx .sx-steam--sm { min-height: 156px; }
  .sx-steam--sm .sx-steam__media { width: 50%; }
  .sx-steam__abbr { font-size: 70px; }
  .sx-steam--sm .sx-steam__abbr { font-size: 56px; }
  .sx-steam__media { width: 60%; top: 14px; right: -10px; padding: 6px; border-radius: 14px; }
  .sx-steam__body { left: 12px; right: 12px; bottom: 12px; }
  .sx-steam__crest { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
  .sx-steam__name { font-size: 17px; }
  .sx-steam--sm .sx-steam__name { font-size: 15.5px; }
  .sx-sfacets {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 10px;
    margin: 0 calc(-1 * var(--sx-gutter)) !important;
    padding: 0 var(--sx-gutter) 4px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sx-gutter);
    scrollbar-width: none;
  }
  .sx-sfacets::-webkit-scrollbar { display: none; }
  .sx-sfacets > li { scroll-snap-align: start; }
  body.sx .sx-sgroup__title { font-size: 28px; }
}
