/* ═══ Equipos — tema “studio” (Barlow + DM Sans) + modales ═══ */
.equipos-studio,
#equipo-ficha-modal.eq-studio-modal-root,
#equipo-jugador-modal.eq-studio-modal-root {
  --eq-bg: #080c14;
  --eq-surface: #0d1220;
  --eq-card: #111827;
  --eq-border: #1e2d45;
  --eq-border2: #243352;
  --eq-text: #e8edf5;
  --eq-muted: #5a7099;
  --eq-dim: #2e4168;
  --eq-accent: #00e5a0;
  --eq-accent2: #0099ff;
  --eq-gold: #f5a623;
  --eq-danger: #ff4d6d;
  --eq-champ: #3d7fff;
  --eq-europa: #ff8c00;
  --eq-conf: #8b5cf6;
  --eq-rel: #ff4d6d;
  --eq-font-display: "Barlow Condensed", sans-serif;
  --eq-font-body: "DM Sans", sans-serif;
  --eq-font-mono: "DM Mono", monospace;
}

.equipos-studio {
  font-family: var(--eq-font-body);
  font-size: 14px;
  color: var(--eq-text);
}

.equipos-studio-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.eq-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.eq-page-title {
  font-family: var(--eq-font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  color: var(--eq-text);
}

.eq-page-title span {
  color: var(--eq-accent);
}

.eq-page-lead {
  color: var(--eq-muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.eq-hero-badge {
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.2);
  color: var(--eq-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Controls */
.eq-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.eq-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.eq-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--eq-muted);
  pointer-events: none;
}

.eq-search-input {
  width: 100%;
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  color: var(--eq-text);
  font-family: var(--eq-font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}

.eq-search-input::placeholder {
  color: var(--eq-muted);
}

.eq-search-input:focus {
  border-color: var(--eq-accent);
}

.eq-league-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.equipos-tab,
.eq-league-tabs .equipos-tab {
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  color: var(--eq-muted);
  font-family: var(--eq-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.equipos-tab:hover {
  border-color: var(--eq-border2);
  color: var(--eq-text);
}

.equipos-tab.active {
  background: rgba(0, 229, 160, 0.1);
  border-color: rgba(0, 229, 160, 0.4);
  color: var(--eq-accent);
  font-weight: 600;
}

/* Zone legend */
.eq-zone-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.74rem;
  color: var(--eq-muted);
  flex-wrap: wrap;
}

.eq-zone-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Mismo color que la franja superior de cada tarjeta (.eq-bar-*) */
.eq-zone-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.eq-dot-champ {
  background: var(--eq-champ);
}
.eq-dot-europa {
  background: var(--eq-europa);
}
.eq-dot-conf {
  background: var(--eq-conf);
}
.eq-dot-rel {
  background: var(--eq-rel);
}

.eq-legends-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.eq-legends-wrap .eq-zone-legend {
  margin-bottom: 0;
}

/* Champions / UEFA: sin leyenda de zonas de liga doméstica. */
.equipos-studio[data-eq-tab="champions"] .eq-legends-wrap,
.equipos-studio[data-eq-tab="uefa"] .eq-legends-wrap {
  display: none !important;
}

/* Grid */
#equipos-grid.eq-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.equipo-card {
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  border-radius: 12px;
  padding: 1.25rem 1rem 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s, box-shadow 0.18s;
  animation: eq-fade-up 0.35s ease both;
}

.equipo-card:hover {
  transform: translateY(-4px);
  border-color: var(--eq-border2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.equipo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.eq-zone-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}

.eq-bar-champ {
  background: var(--eq-champ);
}
.eq-bar-europa {
  background: var(--eq-europa);
}
.eq-bar-conf {
  background: var(--eq-conf);
}
.eq-bar-rel {
  background: var(--eq-rel);
}

.equipo-pos {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: auto;
  font-family: var(--eq-font-mono);
  font-size: 0.72rem;
  color: var(--eq-muted);
  font-weight: 500;
  max-width: none;
  text-align: right;
}

.crest-wrap {
  width: 56px;
  height: 56px;
  margin: 0.25rem auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.crest-abbr {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--eq-surface);
  border: 1px solid var(--eq-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eq-font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--eq-accent);
  letter-spacing: 0.05em;
}

.crest-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.equipo-nombre,
.team-name {
  font-family: var(--eq-font-display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--eq-text);
}

.equipo-pts,
.team-pts {
  text-align: center;
  font-family: var(--eq-font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--eq-text);
  line-height: 1;
  margin: 0;
}

.equipo-pts small,
.team-pts small {
  font-size: 0.7rem;
  color: var(--eq-muted);
  display: block;
  margin-top: 0.1rem;
  font-family: var(--eq-font-body);
  font-weight: 400;
}

.team-wdl,
.equipo-stats {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 0.6rem;
}

.wdl-pill,
.equipo-stats .stat-v,
.equipo-stats .stat-e,
.equipo-stats .stat-d {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--eq-font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.wdl-w,
.equipo-stats .stat-v {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.wdl-d,
.equipo-stats .stat-e {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.wdl-l,
.equipo-stats .stat-d {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.equipo-form {
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

/* Racha: bolitas (V=verde, E=ámbar/naranja, L=rojo) */
.equipo-form-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  vertical-align: middle;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -99px;
}

.equipo-form-dot.f-w {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.equipo-form-dot.f-d {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.equipo-form-dot.f-l {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.equipo-form-dot.f-u {
  background: var(--eq-muted);
  opacity: 0.45;
}

.card-footer {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--eq-border);
  display: flex;
  justify-content: center;
}

.btn-ficha,
.equipo-ver-ficha {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--eq-muted);
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  font-family: var(--eq-font-body);
  pointer-events: none;
}

.equipo-card:hover .btn-ficha,
.equipo-card:hover .equipo-ver-ficha {
  color: var(--eq-accent);
}

/* Skeleton */
.equipo-card.skeleton {
  pointer-events: none;
}

.equipo-card.skeleton .sk {
  background: var(--eq-surface);
  border-radius: 6px;
  animation: eq-pulse 1.5s ease infinite;
}

.equipo-card.skeleton .sk-circle {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin: 0.25rem auto 0.75rem;
}

.equipo-card.skeleton .sk-line {
  height: 10px;
  margin: 0 auto 0.5rem;
}

.equipo-card.skeleton .sk-w80 {
  width: 80%;
}
.equipo-card.skeleton .sk-w50 {
  width: 50%;
}
.equipo-card.skeleton .sk-w60 {
  width: 60%;
}

@keyframes eq-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes eq-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty / error */
.equipos-estado-error,
.equipos-estado-vacio,
.eq-alert-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--eq-muted);
  font-family: var(--eq-font-body);
}

.equipos-estado-error,
.eq-alert-error {
  color: var(--eq-danger);
  border: 1px solid var(--eq-border);
  border-radius: 10px;
  background: var(--eq-surface);
}

.equipos-retry {
  margin-top: 0.75rem;
  background: var(--eq-surface);
  border: 1px solid var(--eq-border2);
  color: var(--eq-text);
  border-radius: 7px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--eq-font-body);
}

.equipos-retry:hover {
  border-color: var(--eq-accent);
}

/* ═══ Modales (reutilizan .player-modal de global) ═══ */
#equipo-ficha-modal.eq-studio-modal-root .equipo-ficha-dialog.eq-studio-modal,
#equipo-jugador-modal.eq-studio-modal-root .eq-studio-modal {
  background: var(--eq-surface);
  border: 1px solid var(--eq-border2);
  border-radius: 16px;
  max-width: min(720px, 96vw);
  max-height: 88vh;
  font-family: var(--eq-font-body);
  color: var(--eq-text);
}

#equipo-jugador-modal.eq-studio-modal-root .eq-studio-modal--sm {
  max-width: min(440px, 94vw);
}

#equipo-ficha-modal.eq-studio-modal-root .player-modal-header.eq-studio-modal-head,
#equipo-jugador-modal.eq-studio-modal-root .player-modal-header.eq-studio-modal-head {
  background: var(--eq-surface);
  border-bottom: 1px solid var(--eq-border);
  align-items: flex-start;
}

#equipo-partido-modal.eq-studio-modal-root .player-modal-header.eq-studio-modal-head {
  background: var(--eq-surface);
  border-bottom: 1px solid var(--eq-border);
  align-items: center;
}

#equipo-ficha-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab,
#equipo-jugador-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab,
#equipo-partido-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab {
  z-index: 80;
  pointer-events: auto;
  color: var(--eq-text);
  background: rgba(12, 16, 22, 0.9);
  border: 1px solid var(--eq-border2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

#equipo-ficha-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab:hover,
#equipo-jugador-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab:hover,
#equipo-partido-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab:hover {
  background: rgba(22, 28, 38, 0.95);
  color: var(--eq-text);
}

#equipo-ficha-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab:focus-visible,
#equipo-jugador-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab:focus-visible,
#equipo-partido-modal.eq-studio-modal-root .eq-modal-back-fab.app-nav-back--fab:focus-visible {
  outline: 2px solid var(--eq-accent);
  outline-offset: 2px;
}

/* Hueco inferior para que el scroll no quede tapado por el FAB */
#equipo-ficha-modal .player-modal-body.equipo-ficha-body,
#equipo-jugador-modal .player-modal-body.eq-modal-body,
#equipo-partido-modal .player-modal-body.eq-modal-body {
  position: relative;
  z-index: 0;
  padding-bottom: calc(1.25rem + 2.6rem);
}

#equipo-ficha-modal.eq-studio-modal-root .eq-modal-close-x,
#equipo-jugador-modal.eq-studio-modal-root .eq-modal-close-x,
#equipo-partido-modal.eq-studio-modal-root .eq-modal-close-x {
  color: var(--eq-muted);
}

#equipo-ficha-modal.eq-studio-modal-root .eq-modal-close-x:hover,
#equipo-jugador-modal.eq-studio-modal-root .eq-modal-close-x:hover,
#equipo-partido-modal.eq-studio-modal-root .eq-modal-close-x:hover {
  color: var(--eq-text);
}

.eq-modal-header-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0;
  margin: 0;
}

.eq-modal-crest-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-modal-crest-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.eq-modal-crest-wrap .crest-abbr {
  width: 72px;
  height: 72px;
  font-size: 1.15rem;
}

.eq-modal-info h2,
.eq-modal-info .eq-modal-title {
  font-family: var(--eq-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.25rem;
  color: var(--eq-text);
}

.eq-zone-pill {
  font-size: 0.72rem;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.eq-pill-champ {
  color: var(--eq-champ);
}

.eq-pill-europa {
  color: var(--eq-europa);
}

.eq-pill-conf {
  color: var(--eq-conf);
}

.eq-pill-rel {
  color: var(--eq-rel);
}

.eq-modal-sub {
  font-size: 0.85rem;
  color: var(--eq-muted);
  margin: 0.15rem 0 0.35rem;
}

.eq-modal-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.eq-meta-chip {
  font-size: 0.72rem;
  color: var(--eq-muted);
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* Escudo clicable → palmarés (Wikipedia vía API; solo ficha con id football-data) */
#equipo-ficha-modal .eq-modal-crest-wrap--clickable {
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease;
}
#equipo-ficha-modal .eq-modal-crest-wrap--clickable:hover {
  background: rgba(0, 229, 160, 0.08);
}
#equipo-ficha-modal .eq-modal-crest-wrap--clickable:active {
  transform: scale(0.97);
}
#equipo-ficha-modal .eq-modal-crest-wrap--clickable:focus-visible {
  outline: 2px solid var(--eq-accent);
  outline-offset: 3px;
}

/* Overlay palmarés (dentro del modal ficha; por encima del contenido) */
#equipo-ficha-modal .eq-trophies-pop {
  position: fixed;
  inset: 0;
  z-index: 1000050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}
#equipo-ficha-modal .eq-trophies-pop[hidden] {
  display: none !important;
}
#equipo-ficha-modal .eq-trophies-pop-card {
  position: relative;
  width: min(32rem, 100%);
  max-height: min(78vh, 36rem);
  display: flex;
  flex-direction: column;
  background: var(--eq-surface);
  border: 1px solid var(--eq-border2);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
#equipo-ficha-modal .eq-trophies-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--eq-border);
  background: var(--eq-card);
  flex-shrink: 0;
}
#equipo-ficha-modal .eq-trophies-pop-title {
  font-family: var(--eq-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--eq-text);
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
}
#equipo-ficha-modal .eq-trophies-pop-back-fab.app-nav-back--fab {
  z-index: 3;
  color: var(--eq-text);
  background: rgba(12, 16, 22, 0.92);
  border: 1px solid var(--eq-border2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  right: max(0.45rem, env(safe-area-inset-right, 0px));
}
#equipo-ficha-modal .eq-trophies-pop-back-fab.app-nav-back--fab:hover {
  background: rgba(22, 28, 38, 0.96);
  color: var(--eq-text);
}
#equipo-ficha-modal .eq-trophies-pop-back-fab.app-nav-back--fab:focus-visible {
  outline: 2px solid var(--eq-accent);
  outline-offset: 2px;
}
#equipo-ficha-modal .eq-trophies-pop-close {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--eq-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
#equipo-ficha-modal .eq-trophies-pop-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--eq-text);
}
#equipo-ficha-modal .eq-trophies-pop-body {
  overflow-y: auto;
  padding: 0.65rem 1rem calc(1rem + 2.5rem);
  flex: 1;
  min-height: 0;
  font-size: 0.875rem;
  color: var(--eq-text);
  -webkit-overflow-scrolling: touch;
}
#equipo-ficha-modal .eq-trophies-loading,
#equipo-ficha-modal .eq-trophies-err {
  margin: 0;
  padding: 0.35rem 0;
}
#equipo-ficha-modal .eq-trophies-err {
  color: var(--eq-danger);
}
#equipo-ficha-modal .eq-trophies-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#equipo-ficha-modal .eq-trophies-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--eq-border);
}
#equipo-ficha-modal .eq-trophies-item:last-child {
  border-bottom: none;
}
#equipo-ficha-modal .eq-trophies-line {
  line-height: 1.45;
}
#equipo-ficha-modal .eq-trophies-item--parsed .eq-trophies-parsed {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
#equipo-ficha-modal .eq-trophies-parsed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
#equipo-ficha-modal .eq-trophies-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eq-muted);
}
#equipo-ficha-modal .eq-trophies-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 229, 160, 0.12);
  color: var(--eq-accent);
  border: 1px solid rgba(0, 229, 160, 0.25);
}
#equipo-ficha-modal .eq-trophies-title-row {
  margin-top: 0.1rem;
}
#equipo-ficha-modal .eq-trophies-comp {
  font-weight: 700;
  color: var(--eq-text);
  font-size: 0.92rem;
}
#equipo-ficha-modal .eq-trophies-item--parsed .eq-trophies-seasons {
  margin: 0;
  font-size: 0.78rem;
  color: var(--eq-muted);
  line-height: 1.45;
}
#equipo-ficha-modal .eq-trophies-sub {
  font-size: 0.75rem;
  color: var(--eq-muted);
  margin-top: 0.25rem;
}
#equipo-ficha-modal .eq-trophies-pop-foot {
  font-size: 0.7rem;
  color: var(--eq-muted);
  line-height: 1.45;
  padding: 0.6rem calc(1rem + 2.25rem) 0.8rem 1rem;
  margin: 0;
  border-top: 1px solid var(--eq-border);
  background: var(--eq-card);
  flex-shrink: 0;
}

/* Ficha equipo — pantallas estrechas: modal más usable + escudo visible */
@media (max-width: 768px) {
  #equipo-ficha-modal.eq-studio-modal-root .equipo-ficha-dialog.eq-studio-modal {
    top: max(0.25rem, env(safe-area-inset-top, 0px));
    transform: translate(-50%, 0) scale(0.98);
    max-height: min(94vh, calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.5rem));
    max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.5rem));
  }
  #equipo-ficha-modal.player-modal-open .equipo-ficha-dialog.eq-studio-modal {
    transform: translate(-50%, 0) scale(1);
  }
  #equipo-ficha-modal .player-modal-header.eq-studio-modal-head {
    padding: 0.65rem 0.75rem 0.65rem 0.85rem;
    overflow: visible;
  }
  #equipo-ficha-modal .eq-modal-header-inner {
    gap: 0.75rem;
    overflow: visible;
    padding-top: 0.35rem;
    align-items: flex-start;
    min-width: 0;
  }
  #equipo-ficha-modal .eq-modal-crest-wrap {
    width: 56px;
    height: 56px;
    align-self: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  #equipo-ficha-modal .eq-modal-crest-img {
    width: 52px;
    height: 52px;
    min-width: 48px;
    min-height: 48px;
    max-width: none;
    display: block;
    object-fit: contain;
  }
  #equipo-ficha-modal .eq-modal-crest-wrap .crest-abbr {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }
  #equipo-ficha-modal .eq-modal-info h2,
  #equipo-ficha-modal .eq-modal-info .eq-modal-title {
    font-size: 1.35rem;
  }
  #equipo-ficha-modal .eq-modal-sub {
    font-size: 0.8rem;
    margin: 0.1rem 0 0.25rem;
  }
  #equipo-ficha-modal .eq-modal-stats-bar .eq-stat-box {
    padding: 0.45rem 0.28rem;
  }
  #equipo-ficha-modal .eq-modal-stats-bar .eq-stat-box span {
    font-size: 0.6rem;
  }
  #equipo-ficha-modal .eq-modal-stats-bar .eq-stat-box strong {
    font-size: 1rem;
  }
  #equipo-ficha-modal .equipo-ficha-tabs.eq-modal-tabs {
    padding: 0 0.25rem;
  }
  #equipo-ficha-modal .equipo-ficha-tabs.eq-modal-tabs .equipo-mtab,
  #equipo-ficha-modal .equipo-ficha-tabs.eq-modal-tabs button[data-tab] {
    padding: 0.5rem 0.5rem;
    font-size: 0.74rem;
  }
  #equipo-ficha-modal .eq-modal-body.equipo-ficha-body {
    padding: 0.85rem 0.85rem calc(1.5rem + 2.6rem);
  }
}

/* Barra estadísticas modal */
.eq-modal-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--eq-border);
  margin: 0;
  border-bottom: 1px solid var(--eq-border);
}

.eq-stat-box {
  background: var(--eq-card);
  padding: 0.75rem;
  text-align: center;
}

.eq-stat-box span {
  display: block;
  font-size: 0.68rem;
  color: var(--eq-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eq-stat-box strong {
  font-family: var(--eq-font-mono);
  font-size: 1.25rem;
  color: var(--eq-text);
}

.eq-stat-box strong.eq-dg-pos {
  color: var(--eq-accent);
}

.eq-stat-box strong.eq-dg-neg {
  color: var(--eq-danger);
}

.eq-stat-box strong.eq-pts-highlight {
  color: var(--eq-accent);
}

/* Tabs modal */
.equipo-ficha-tabs.eq-modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--eq-border);
  padding: 0 0.5rem;
  background: var(--eq-surface);
  flex-wrap: wrap;
}

.equipo-ficha-tabs.eq-modal-tabs .equipo-mtab,
.equipo-ficha-tabs.eq-modal-tabs button[data-tab] {
  background: none;
  border: none;
  color: var(--eq-muted);
  font-family: var(--eq-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  border-radius: 0;
}

.equipo-ficha-tabs.eq-modal-tabs .equipo-mtab:hover,
.equipo-ficha-tabs.eq-modal-tabs button[data-tab]:hover {
  color: var(--eq-text);
}

.equipo-ficha-tabs.eq-modal-tabs .equipo-mtab.active,
.equipo-ficha-tabs.eq-modal-tabs button[data-tab].active {
  color: var(--eq-accent);
  border-bottom-color: var(--eq-accent);
}

.eq-modal-body.equipo-ficha-body,
.eq-modal-body#equipo-jugador-body {
  background: var(--eq-surface);
  color: var(--eq-text);
}

.eq-jugador-modal-title {
  font-family: var(--eq-font-display) !important;
  color: var(--eq-text) !important;
}

/* Resumen cards inside modal */
.eq-resumen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .eq-resumen-grid {
    grid-template-columns: 1fr;
  }
}

.eq-resumen-card {
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  border-radius: 10px;
  padding: 1rem;
}

.eq-resumen-card h5 {
  font-size: 0.7rem;
  color: var(--eq-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

/* Últimos partidos (Resumen): mismas estadísticas que pestaña Partidos */
.eq-resumen-ultimos-wrap {
  margin-bottom: 1.25rem;
}
.eq-resumen-ultimos-h4 {
  font-family: var(--eq-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eq-muted);
  margin: 0 0 0.5rem;
}
.eq-resumen-ultimos-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--eq-text);
}
.eq-resumen-ultimo-item {
  margin: 0.35rem 0;
}
.eq-resumen-ultimo-item--click {
  cursor: pointer;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  margin-left: -0.35rem;
  transition: background 0.15s ease;
}
.eq-resumen-ultimo-item--click:hover {
  background: rgba(0, 229, 160, 0.08);
}
.eq-resumen-ultimo-item--click:focus-visible {
  outline: 2px solid var(--eq-accent);
  outline-offset: 2px;
}

/* Tablas partidos */
.tabla-partidos-equipos {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.tabla-partidos-equipos th {
  text-align: left;
  color: var(--eq-muted);
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--eq-border);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tabla-partidos-equipos td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--eq-border);
  color: var(--eq-text);
}

.eq-result-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.eq-result-w {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.eq-result-d {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.eq-result-l {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.eq-comp-tag {
  font-size: 0.68rem;
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  color: var(--eq-muted);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}

.tabla-partidos-equipos tbody tr.eq-partido-row--clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}

.tabla-partidos-equipos tbody tr.eq-partido-row--clickable:hover {
  background: rgba(0, 229, 160, 0.06);
}

.tabla-partidos-equipos tbody tr.eq-partido-row--clickable:focus-visible {
  outline: 2px solid var(--eq-accent);
  outline-offset: -2px;
}

/* Detalle partido (modal anidado) */
.eq-partido-modal-head-text {
  flex: 1;
  min-width: 0;
}

.eq-partido-detail-score {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--eq-text);
}

.eq-partido-detail-h3 {
  font-family: var(--eq-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.1rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--eq-border);
  color: var(--eq-text);
}

.eq-partido-detail-h3:first-of-type {
  margin-top: 0;
}

.eq-partido-detail-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.match-event-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.35rem;
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: middle;
}

.eq-partido-detail-events li {
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--eq-border);
  font-size: 0.84rem;
  color: var(--eq-text);
}

.eq-partido-ev-time {
  display: inline-block;
  min-width: 2.6rem;
  font-weight: 700;
  color: var(--eq-accent);
  font-variant-numeric: tabular-nums;
}

.eq-partido-lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.35rem;
}

@media (max-width: 520px) {
  .eq-partido-lineup-grid {
    grid-template-columns: 1fr;
  }
}

.eq-partido-lineup-team-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.eq-partido-lineup-formation {
  font-size: 0.75rem;
  color: var(--eq-muted);
  margin-bottom: 0.5rem;
}

.eq-partido-lineup-list {
  font-size: 0.8rem;
}

.eq-partido-lineup-player {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(30, 45, 69, 0.6);
}

.eq-partido-lineup-dorsal {
  font-family: var(--eq-font-mono);
  font-size: 0.72rem;
  color: var(--eq-muted);
  min-width: 1.5rem;
}

.eq-partido-lineup-pos {
  font-size: 0.68rem;
  color: var(--eq-muted);
  margin-left: auto;
}

.eq-partido-lineup-bench-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eq-muted);
  margin: 0.65rem 0 0.35rem;
}

.eq-partido-detail-footnote {
  font-size: 0.75rem;
  color: var(--eq-muted);
  margin-top: 1rem;
  line-height: 1.45;
}

/* Comparativa local / visitante */
.eq-partido-compare {
  margin-bottom: 1.25rem;
}

.eq-partido-compare--partial {
  margin-bottom: 1rem;
}

.eq-partido-stats-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--eq-muted);
  margin: 0 0 0.5rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 153, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.2);
  border-radius: 8px;
}

.eq-partido-compare-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--eq-border2);
}

.eq-partido-compare-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  min-width: 0;
}

.eq-partido-compare-side--home {
  align-items: flex-start;
  text-align: left;
}

.eq-partido-compare-side--away {
  align-items: flex-end;
  text-align: right;
}

.eq-partido-compare-crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.eq-partido-compare-crest-ph {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
}

.eq-partido-compare-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--eq-muted);
  font-weight: 600;
}

.eq-partido-compare-team-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--eq-text);
  line-height: 1.2;
  display: block;
  max-width: 100%;
}

.eq-partido-compare-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eq-partido-compare-score {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--eq-accent);
  line-height: 1;
}

.eq-partido-compare-vs {
  font-size: 0.65rem;
  color: var(--eq-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eq-partido-compare-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eq-partido-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(30, 45, 69, 0.65);
  font-size: 0.84rem;
}

.eq-partido-compare-val {
  font-family: var(--eq-font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--eq-text);
}

.eq-partido-compare-val--home {
  text-align: right;
}

.eq-partido-compare-val--away {
  text-align: left;
}

.eq-partido-compare-metric {
  text-align: center;
  font-size: 0.68rem;
  color: var(--eq-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  max-width: 8.5rem;
}

.eq-partido-comp-source {
  font-size: 0.68rem;
  color: var(--eq-dim);
  margin: 0.65rem 0 0;
  text-align: center;
}

.eq-partido-comp-fallback {
  margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
  .eq-partido-compare-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .eq-partido-compare-side--home,
  .eq-partido-compare-side--away {
    align-items: center;
    text-align: center;
  }

  .eq-partido-compare-center {
    order: -1;
    margin-bottom: 0.25rem;
  }
}

#equipo-partido-modal.equipo-partido-nested-modal.player-modal {
  z-index: 1000040;
}

/* Plantilla */
.plantilla-grupo-equipos h4 {
  font-family: var(--eq-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eq-muted);
  margin: 1rem 0 0.5rem;
}

.plantilla-grupo-equipos h4:first-child {
  margin-top: 0;
}

.plantilla-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.jugador-chip-eq {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 999px;
}

button.jugador-chip-eq {
  font: inherit;
  color: var(--eq-text);
  cursor: pointer;
}

button.jugador-chip-eq:hover {
  border-color: var(--eq-border2);
}

.jugador-chip-eq .dorsal {
  font-family: var(--eq-font-mono);
  font-size: 0.7rem;
  color: var(--eq-accent);
  min-width: 16px;
  text-align: right;
}

.jugador-chip-nombre {
  font-weight: 500;
}

.equipo-jugador-detail .jugador-detail-row {
  border-color: var(--eq-border);
}

.equipo-jugador-detail .label {
  color: var(--eq-muted);
}

.equipo-jugador-detail .value {
  color: var(--eq-text);
}

.equipo-h2h-row .auth-input,
.eq-h2h-select {
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  color: var(--eq-text);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
  font-family: var(--eq-font-body);
  font-size: 0.85rem;
}

/* Head to head: línea a la izquierda, bolita V/E/D a la derecha (verde / ámbar / rojo) */
.eq-h2h-table .eq-h2h-result-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  vertical-align: middle;
  width: 100%;
  box-sizing: border-box;
}

.eq-h2h-table .eq-h2h-result-cell .eq-h2h-line {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.eq-h2h-table .eq-h2h-result-cell .equipo-form-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  flex-shrink: 0;
}

.eq-h2h-out {
  margin-top: 0.75rem;
}

#equipo-jugador-modal.equipo-jugador-nested-modal.player-modal {
  z-index: 1000030;
}

#equipo-stats-chart-wrap {
  max-height: 220px;
  margin-top: 0.5rem;
}

/* Solo dentro del estudio Equipos / modales: --eq-* no existe en Inicio u otras páginas. */
.equipos-studio .text-muted,
#equipo-ficha-modal .text-muted,
#equipo-jugador-modal .text-muted,
#equipo-partido-modal .text-muted {
  color: var(--eq-muted) !important;
}

.eq-coach-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.eq-coach-ico {
  font-size: 1.25rem;
}

.eq-coach-label {
  font-size: 0.7rem;
  color: var(--eq-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eq-coach-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--eq-text);
}

.eq-link-jugadores {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  border: 1px solid var(--eq-border2);
  background: var(--eq-card);
  color: var(--eq-text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.eq-link-jugadores:hover {
  border-color: var(--eq-accent);
  color: var(--eq-accent);
}

.eq-btn-primary {
  background: var(--eq-accent);
  color: #080c14;
  border: none;
  border-radius: 7px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--eq-font-body);
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.eq-btn-primary:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .equipos-studio-inner {
    padding: 1.25rem 1rem 3rem;
  }

  .eq-modal-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Ficha equipo: mantener una sola fila PJ/GF/GC/DG/Pts (no 3+2 del grid genérico) */
  #equipo-ficha-modal .eq-modal-stats-bar {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Predicciones (MLP servidor) */
.eq-pred-wrap {
  font-size: 0.88rem;
  line-height: 1.45;
}

.eq-pred-lead {
  color: var(--eq-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.eq-pred-next {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08), rgba(0, 153, 255, 0.06));
  border: 1px solid var(--eq-border2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.eq-pred-next-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eq-muted);
  margin-bottom: 0.35rem;
}

.eq-pred-next-main {
  font-weight: 700;
  font-size: 1rem;
  color: var(--eq-text);
}

.eq-pred-next-meta {
  font-size: 0.78rem;
  color: var(--eq-muted);
  margin-top: 0.35rem;
}

.eq-pred-elo-panel {
  border: 1px solid var(--eq-border2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.35);
}

.eq-pred-elo-head {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eq-muted);
  margin-bottom: 0.6rem;
}

.eq-pred-elo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.eq-pred-elo-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.eq-pred-elo-n {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--eq-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-pred-elo-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--eq-accent);
  line-height: 1.1;
}

.eq-pred-info-panel {
  border: 1px solid var(--eq-border2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.28);
}

.eq-pred-info-panel--stats {
  background: rgba(148, 163, 184, 0.06);
}

.eq-pred-info-head {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eq-muted);
  margin-bottom: 0.65rem;
}

.eq-pred-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
}

.eq-pred-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.eq-pred-stat-cell--wide {
  grid-column: 1 / -1;
}

.eq-pred-stat-lbl {
  font-size: 0.72rem;
  color: var(--eq-muted);
  line-height: 1.25;
}

.eq-pred-stat-val {
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--eq-text);
  word-break: break-word;
}

.eq-pred-stat-cell--wide .eq-pred-stat-val {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.eq-pred-info-note {
  font-size: 0.68rem;
  color: var(--eq-dim);
  margin: 0.65rem 0 0;
  line-height: 1.35;
}

.eq-pred-muted {
  margin: 0 0 1rem;
}

.eq-pred-form {
  font-size: 0.8rem;
  color: var(--eq-muted);
  margin-bottom: 1rem;
}

.eq-pred-norm-note {
  font-size: 0.72rem;
  color: var(--eq-dim);
  margin: -0.35rem 0 0.65rem;
  line-height: 1.35;
}

.eq-pred-mlp-hint {
  font-size: 0.75rem;
  color: var(--eq-muted);
  margin: 0 0 0.65rem;
  font-variant-numeric: tabular-nums;
}

.eq-pred-feats--norm {
  margin-bottom: 1.1rem;
}

.eq-pred-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.eq-pred-expected {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--eq-border2);
  background: rgba(148, 163, 184, 0.06);
}

.eq-pred-expected--win {
  background: rgba(0, 229, 160, 0.09);
  border-color: rgba(0, 229, 160, 0.35);
}

.eq-pred-expected--loss {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
}

.eq-pred-expected--draw {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.35);
}

.eq-pred-expected-kicker {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--eq-muted);
  margin-bottom: 0.35rem;
}

.eq-pred-expected-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--eq-text);
  font-variant-numeric: tabular-nums;
}

.eq-pred-expected-score {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.eq-pred-expected--win .eq-pred-expected-score,
.eq-pred-expected--win .eq-pred-expected-lbl {
  color: #4ade80;
}

.eq-pred-expected--loss .eq-pred-expected-score,
.eq-pred-expected--loss .eq-pred-expected-lbl {
  color: #f87171;
}

.eq-pred-expected--draw .eq-pred-expected-score,
.eq-pred-expected--draw .eq-pred-expected-lbl {
  color: #94a3b8;
}

.eq-pred-expected-sep {
  color: var(--eq-muted);
  font-weight: 500;
  margin: 0 0.2rem;
}

.eq-pred-expected-lbl {
  font-weight: 600;
}

.eq-pred-expected-sub {
  font-size: 0.72rem;
  color: var(--eq-dim);
  margin: 0.45rem 0 0;
  line-height: 1.35;
}

.eq-pred-bar-row {
  display: grid;
  grid-template-columns: 5rem 1fr 3.25rem;
  align-items: center;
  gap: 0.5rem;
}

.eq-pred-lbl {
  font-size: 0.78rem;
  color: var(--eq-muted);
}

.eq-pred-bar {
  height: 10px;
  background: var(--eq-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--eq-border);
}

.eq-pred-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  transition: width 0.35s ease;
}

.eq-pred-fill--win {
  background: linear-gradient(90deg, #00c853, var(--eq-accent));
}

.eq-pred-fill--draw {
  background: linear-gradient(90deg, #5a7099, #8b9dc3);
}

.eq-pred-fill--loss {
  background: linear-gradient(90deg, #c62828, var(--eq-danger));
}

.eq-pred-pct {
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--eq-text);
}

.eq-pred-h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--eq-text);
}

.eq-pred-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.eq-pred-feats li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.5rem;
  background: var(--eq-card);
  border-radius: 6px;
  border: 1px solid var(--eq-border);
  font-size: 0.78rem;
}

.eq-pred-feats li span:first-child {
  color: var(--eq-muted);
}

.eq-pred-foot {
  font-size: 0.72rem;
  color: var(--eq-dim);
  margin: 0;
  line-height: 1.4;
}

/* Próximos 5 enfrentamientos (misma red neuronal) */
.eq-pred-five {
  margin: 1.25rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--eq-border2);
}

.eq-pred-five-title {
  margin-bottom: 0.35rem;
}

.eq-pred-five-lead {
  font-size: 0.78rem;
  color: var(--eq-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.eq-pred-five-note {
  margin: 1rem 0 0;
}

.eq-pred-five-row {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--eq-card);
  border: 1px solid var(--eq-border);
  border-radius: 8px;
}

.eq-pred-five-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.eq-pred-five-vs {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--eq-text);
}

.eq-pred-five-when {
  font-size: 0.72rem;
  color: var(--eq-muted);
}

.eq-pred-five-h2h {
  font-size: 0.68rem;
  color: var(--eq-dim);
  margin: 0.15rem 0 0.25rem;
  width: 100%;
}

.eq-pred-odds-hint {
  font-size: 0.78rem;
  color: var(--eq-dim);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.4;
}

.eq-pred-odds-hint code {
  font-size: 0.72em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.eq-pred-odds-hint--muted {
  color: var(--eq-muted);
}

.eq-pred-five-bm {
  font-size: 0.68rem;
  color: var(--eq-dim);
  margin: 0.15rem 0 0.25rem;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.eq-pred-five-elo {
  font-size: 0.65rem;
  color: var(--eq-muted);
  margin: 0.1rem 0 0.2rem;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.eq-pred-five-elo--clean {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--eq-text);
  margin: 0.2rem 0 0.35rem;
}

.eq-pred-five-elo-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.eq-pred-five-elo-lbl {
  color: var(--eq-muted);
  font-weight: 500;
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-pred-five-elo-val {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--eq-accent);
}

.eq-pred-five-ml {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.35rem 0 0.25rem;
  font-variant-numeric: tabular-nums;
}

.eq-pred-five-ml-score {
  font-size: 0.95rem;
}

.eq-pred-five-ml-out {
  color: var(--eq-text);
}

.eq-pred-five-ml--win .eq-pred-five-ml-score,
.eq-pred-five-ml--win .eq-pred-five-ml-out {
  color: #4ade80;
}

.eq-pred-five-ml--loss .eq-pred-five-ml-score,
.eq-pred-five-ml--loss .eq-pred-five-ml-out {
  color: #f87171;
}

.eq-pred-five-ml--draw .eq-pred-five-ml-score,
.eq-pred-five-ml--draw .eq-pred-five-ml-out {
  color: #94a3b8;
}

.eq-pred-five-mini {
  display: flex;
  gap: 0.75rem;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--eq-muted);
  margin-bottom: 0.35rem;
}

.eq-pred-five-stack {
  display: flex;
  width: 100%;
  height: 9px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--eq-border);
}

.eq-pred-five-seg {
  display: block;
  height: 100%;
  min-width: 2px;
}

.eq-pred-five-seg--win {
  background: linear-gradient(90deg, #00a050, var(--eq-accent));
}

.eq-pred-five-seg--draw {
  background: linear-gradient(90deg, #5a7099, #8b9dc3);
}

.eq-pred-five-seg--loss {
  background: linear-gradient(90deg, #b71c1c, var(--eq-danger));
}

/* Cruce eliminatorio (Champions / UEFA) */
.eq-knockout-wrap {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--eq-radius, 12px);
  border: 1px solid rgba(90, 112, 153, 0.22);
  background: linear-gradient(165deg, rgba(18, 26, 48, 0.92), rgba(10, 14, 28, 0.88));
}

.eq-knockout-heading {
  font-family: var(--eq-font-display, "Barlow Condensed", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.eq-knockout-lead {
  font-size: 0.82rem;
  margin: 0 0 1rem;
}

.eq-knockout-round {
  margin-bottom: 1.35rem;
}

.eq-knockout-round:last-child {
  margin-bottom: 0;
}

.eq-knockout-round-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--eq-accent, #00e5a0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eq-knockout-matches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eq-knockout-match {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(90, 112, 153, 0.15);
}

.eq-ko-meta {
  font-size: 0.72rem;
  color: var(--eq-muted, #7a8bad);
  margin-bottom: 0.35rem;
}

.eq-ko-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.88rem;
}

.eq-ko-t {
  font-weight: 600;
  line-height: 1.25;
}

.eq-ko-t--home {
  text-align: right;
}

.eq-ko-t--away {
  text-align: left;
}

.eq-ko-s {
  font-family: var(--eq-font-mono, "DM Mono", monospace);
  font-weight: 700;
  color: #e8eefe;
  white-space: nowrap;
}

/* Bracket horizontal + tarjetas de cruce (ida/vuelta) + mini Sankey */
.eq-ko-bracket-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin: 0 -0.25rem;
}

.eq-ko-bracket-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(272px, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: min-content;
}

.eq-ko-round-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eq-ko-ties-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.eq-ko-tie-card {
  border-radius: 12px;
  border: 1px solid rgba(90, 112, 153, 0.22);
  background: linear-gradient(160deg, rgba(12, 18, 36, 0.95), rgba(6, 10, 22, 0.88));
  padding: 0.65rem 0.75rem 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.eq-ko-tie-sankey {
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.eq-ko-sankey-svg {
  width: 100%;
  height: 44px;
  display: block;
}

.eq-ko-sankey-svg--single {
  height: 32px;
}

.eq-ko-sankey-path {
  filter: drop-shadow(0 0 6px rgba(0, 229, 160, 0.12));
}

.eq-ko-sankey-node {
  fill: var(--eq-accent, #00e5a0);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.eq-ko-leg-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) minmax(4.5rem, auto);
  gap: 0.35rem 0.45rem;
  align-items: center;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.25;
  min-width: 0;
}

.eq-ko-leg-row--done {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(90, 112, 153, 0.12);
}

.eq-ko-leg-row--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eq-ko-leg-row--clickable:hover {
  border-color: rgba(0, 229, 160, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 229, 160, 0.12);
}

.eq-ko-leg-row--clickable:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 229, 160, 0.45);
}

.eq-ko-leg-row--pending {
  background: rgba(0, 153, 255, 0.06);
  border: 1px dashed rgba(0, 153, 255, 0.22);
  color: var(--eq-muted, #7a8bad);
}

.eq-ko-leg-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eq-accent, #00e5a0);
  white-space: nowrap;
}

.eq-ko-tname {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eq-ko-tname--home {
  text-align: right;
}

.eq-ko-tname--away {
  text-align: left;
}

.eq-ko-team--passes {
  font-weight: 800 !important;
  color: #f0f4ff;
  text-shadow: 0 0 12px rgba(0, 229, 160, 0.25);
}

.eq-ko-leg-score {
  font-family: var(--eq-font-mono, "DM Mono", monospace);
  font-weight: 700;
  font-size: 0.8rem;
  color: #e8eefe;
  white-space: nowrap;
  text-align: center;
}

.eq-ko-leg-row--pending .eq-ko-leg-score {
  color: var(--eq-muted, #7a8bad);
}

.eq-ko-leg-when {
  font-size: 0.65rem;
  color: var(--eq-muted, #7a8bad);
  white-space: nowrap;
  text-align: right;
  min-width: 4.5rem;
}

.eq-ko-tie-footer {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(90, 112, 153, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.eq-ko-agg {
  font-size: 0.8rem;
  color: var(--eq-muted, #9aa8c4);
}

.eq-ko-agg-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  color: var(--eq-muted, #7a8bad);
}

.eq-ko-agg-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  font-size: 0.88rem;
  color: var(--eq-text, #e8edf5);
}

.eq-ko-agg-team {
  font-weight: 600;
  color: #c8d4ec;
}

.eq-ko-agg-team--win {
  font-weight: 800;
  color: #fff;
}

.eq-ko-agg-num {
  font-family: var(--eq-font-mono, "DM Mono", monospace);
  font-weight: 700;
}

.eq-ko-agg-sep {
  opacity: 0.5;
  padding: 0 0.15rem;
}

.eq-ko-agg--partial .eq-ko-agg-label {
  color: var(--eq-gold, #f5a623);
}

.eq-ko-passes {
  font-size: 0.85rem;
  color: var(--eq-muted, #9aa8c4);
}

.eq-ko-passes-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eq-accent, #00e5a0);
}

.eq-ko-tie-banner {
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.eq-ko-tie-banner--wait {
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  color: #e8c48a;
}

.eq-ko-tie-banner--soon {
  background: rgba(90, 112, 153, 0.12);
  border: 1px solid rgba(90, 112, 153, 0.2);
  color: var(--eq-muted, #9aa8c4);
}

.eq-ko-tie-banner--tie {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.22);
  color: #f0a8b8;
}

.equipo-card--noid {
  opacity: 0.88;
  cursor: default;
}

.equipo-card--noid .btn-ficha {
  opacity: 0.5;
}
