/* =========================================================
   SWIPER
   ========================================================= */
.swiper,
.swiper .swiper-wrapper,
.swiper .swiper-slide{
  overflow: visible !important;
}
.swiper{ padding-top: 10px; }

/* =========================================================
   CARD PARTIDO (SLIDER)
   ========================================================= */
.partido-link{
  display:block;
  width:100%;
  text-decoration:none!important;
}
.partido-inner{ padding:4px; }

/* Card exterior */
.partido_jornada_dark.partido-card{
  position:relative;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  overflow:visible;
  padding:0;
  background:transparent;
}

/* Clip interno */
.partido-card__clip{
  border-radius:14px;
  overflow:hidden;
  padding:10px 8px 8px;
  background:
    linear-gradient(90deg, #d9ab05, #11d568) top / 100% 3px no-repeat,
    #fff;
  background-clip:padding-box;
}

/* Badge esquina */
.badge-esquina{
  position:absolute;
  top:-10px;
  right:-10px;
  padding:4px 8px;
  font-size:11px;
  font-weight:800;
  border-radius:999px;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
  z-index:20;
  white-space:nowrap;
}

/* Layout flex */
.partido-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin:0;
}
.partido-col{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  min-width:0;
}

/* Laterales pequeños, centro amplio */
.partido-col--left,
.partido-col--right{
  flex:0 0 17%;
  max-width:17%;
}
.partido-col--center{
  flex:1 1 auto;
  min-width:38%;
  flex-direction:column;
  text-align:center;
  justify-content:center;
  gap:2px;
}

/* Escudos */
.team-logo__img{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
  background:none !important;
  border:none !important;
  padding:0 !important;
}
.partido-col--left img,
.partido-col--right img{ max-width:100%; }

/* Marcador */
.partido-score{
  font-size:18px;
  font-weight:900;
  line-height:1;
  color:#0f172a;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}

/* Subtexto */
.partido-sub{
  font-size:10px;
  color:#64748b;
  line-height:1.1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.partido-sub strong{
  color:#0f172a;
  font-weight:700;
}

/* TV icon + imágenes en score */
.tv-icon,
.partido-score img{
  width:auto;
  height:auto;
  object-fit:contain;
  vertical-align:middle;
}

/* Ajustes específicos */
.partido-score img{
  max-width:22px;
  max-height:14px;
}

/* FIX SVG Movistar */
.tv-icon{
  display:inline-block !important;
  height:16px !important;
  max-height:none !important;
  max-width:22px;
}

/* Si ya NO quieres nada abajo del box */
.partido-status{ display:none !important; }

/* =========================================================
   RESPONSIVE CARD PARTIDO
   ========================================================= */
@media (max-width:767px){
  .partido_jornada_dark.partido-card{ border-radius:12px; }

  .partido-card__clip{
    border-radius:12px;
    padding:9px 7px 7px;
  }

  .badge-esquina{
    top:-9px;
    right:-9px;
    font-size:10.5px;
    padding:4px 7px;
  }

  .team-logo__img{
    width:30px;
    height:30px;
  }

  .partido-score{ font-size:17px; }

  .partido-score img{
    max-width:30px;
    max-height:32px;
  }
  .tv-icon{ height:14px !important; }

  .partido-col--left,
  .partido-col--right{
    flex:0 0 16%;
    max-width:16%;
  }

  .partido-col--center{
    min-width:33%;
  }
}

/* =========================================================
   MATCH PREVIA SLIM
   ========================================================= */
.match-previa-slim{
  background-color:#ffffff;
  border-radius:14px;
  width:100%;
  margin:5px auto;
  border:1px solid #eef0f2;
  box-shadow:0 4px 10px rgba(0,0,0,0.03);
  overflow:hidden;
  color:#1e293b;
}

/* CABECERA */
.header-slim{
  padding:10px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background-color:#fcfdfe;
  border-bottom:1px solid #f1f5f9;
}
.brand-slim{
  display:flex;
  align-items:center;
  gap:8px;
}
.label-jornada-slim{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}
.label-jornada-slim span{
  font-size:10px;
  font-weight:700;
  color:#94a3b8;
  text-transform:uppercase;
  margin-right:4px;
}

/* CUERPO */
.body-slim{
  padding:5px 5px 10px 5px;
  text-align:center;
}

.faceoff-slim{
  display:grid;
  grid-template-columns:1fr 100px 1fr;
  align-items:center;
      margin-bottom: 10px;
}

.team-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.logo-slim{
  width:48px;
  height:48px;
  object-fit:contain;
}
.name-slim{
  font-size:17px;
  font-weight:900;
  color:#0f172a;
}

/* Centro: VS + Hora */
.center-info{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
}
.vs-text{
  font-size:32px;
  font-weight:900;
  color:#cbd5e1;
}
.time-text{
  font-size:14px;
  font-weight:800;
  color:#854d0e;
  background:#fffde7;
  padding:2px 8px;
  border-radius:4px;
  border:1px solid #fde047;
  white-space:nowrap;
}

/* BARRA PROBABILIDADES */
.prob-container{ margin:15px 10px; }
.prob-bar{
  display:flex;
  height:8px;
  border-radius:10px;
  overflow:hidden;
  background:#eee;
  margin-bottom:5px;
}
.prob-1{ background-color:#3b82f6; }
.prob-x{ background-color:#94a3b8; }
.prob-2{ background-color:#ef4444; }

.prob-labels{
  display:flex;
  justify-content:space-between;
  font-size:9px;
  font-weight:800;
  color:#94a3b8;
  text-transform:uppercase;
}

/* Footer Meta */
.meta-slim{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 10px 0;
    padding-top: 10px;
    border-top: 1px dashed #eef0f2;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.meta-item{
  background:#f8fafc;
  padding:4px 4px;
  border-radius:20px;
  display:flex;
  align-items:center;
  border:1px solid #f1f5f9;
  white-space:nowrap;
}
.meta-item img{
  margin-right:5px;
  filter:grayscale(100%);
  opacity:0.7;
}

.btn-slim{
  display:inline-block;
  background:#10b981;
  color:#fff;
  padding:10px 30px;
  border-radius:8px;
  font-weight:800;
  font-size:12px;
  text-decoration:none;
  text-transform:uppercase;
  box-shadow:0 3px 0 #059669;
}

/* =========================================================
   SCORE / CONTADOR (UNIFICADO)
   ========================================================= */
.center-score{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  text-align:center;
  padding:0 6px;
}

.jornada-top{
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  color:#64748b;
}

.scoreline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-variant-numeric:tabular-nums;
}

.score-num{
  font-size:48px;
  font-weight:900;
  line-height:1;
}

.score-sep{
  font-size:24px;
  font-weight:900;
  line-height:1;
  color:#cbd5e1;
}

.estado-bottom{
  font-size:14px;
  font-weight:900;
  letter-spacing:.3px;
  color:#dc2626;
}

.estado-bottom.estado-live{
  color:#2563eb;
}

/* Texto del contador */
.center-score .countdown-subtitle{
  margin-top:4px;
  margin-bottom:6px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
  opacity:.85;
  line-height:1.1;
}

/* Unidades MIN/SEG */
.center-score .score-unit{
  font-size:11px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
  opacity:.85;
  margin:0 8px 0 6px;
  vertical-align:middle;
}

/* Números monoespaciados */
.center-score .score-countdown,
.center-score .score-countdown-sec{
  font-variant-numeric:tabular-nums;
}

/* Contador compacto */
.center-score .score-countdown{
  font-size:34px;
  line-height:1;
  letter-spacing:1px;
  color:#9b9b9b;
  white-space:nowrap;
}

/* =========================================================
   ESTADO: ALINEACIONES CONFIRMADAS
   ========================================================= */
.center-score .estado-confirmadas{
  font-size:16px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
  color:#0b9343;
  margin-bottom:6px;
}

/* Full con línea degradada */
.estado-confirmadas-full{
  position:relative;
  text-align:center;
  text-transform:uppercase;

  font-size:20px;
  font-weight:900;
  letter-spacing:1.2px;
  line-height:1.15;

  color:#0b9343;
  margin:8px 0 12px 0;
  padding-bottom:8px;
}

/* ✅ Optimizado: NO 100% en móvil (queda demasiado largo) */
.estado-confirmadas-full::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:min(260px, 92%);
  height:5px;
  background:linear-gradient(283deg, #ffea69 30%, #09c269 100%);
  border-radius:3px;
}

/* Desktop */
@media (min-width:768px){
  .center-score .score-countdown{ font-size:38px; }

  .estado-confirmadas-full{
    font-size:24px;
    letter-spacing:1.4px;
  }
  .estado-confirmadas-full::after{ width:140px; }
}

/* =========================================================
   BOTÓNES
   ========================================================= */
.video-row-slim{
  text-align:center;
  margin:10px 0;
}
.btn-video-slim{
  display:inline-block;
  padding:10px 18px !important;
  font-size:12px;
  font-weight:900;
  border-radius:999px;
  background:#cf1414 !important;
  box-shadow:0 3px 0 #9f0f0f !important;
  color:#fff !important;
  white-space:nowrap;
}
.btn-video-slim i{ margin-right:6px; }
.btn-video-slim:hover{ filter:brightness(1.05); }

/* Botón actualizar en DIRECTO */
.btn-refresh-live{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  border-radius:999px;
  color:#2563eb;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  cursor:pointer;
}

.btn-refresh-live i{
  font-size:12px;
}

.btn-refresh-live:hover{
  background:#dbeafe;
}


/* =========================================================
   GOLEADORES
   ========================================================= */
.goleadores-slim-wrap{ padding:8px 14px 2px 14px; }

.goleadores-center{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:6px;
  font-size:12px;
  line-height:1.3;
  color:#334155;
}
.goleadores-center strong{
  color:#0f172a;
  font-weight:900;
}

.goleadores-col{
  min-width:140px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.goleadores-col.local{
  text-align:right;
  align-items:flex-end;
}
.goleadores-col.visit{
  text-align:left;
  align-items:flex-start;
}

/* =========================================================
   MOBILE: match-previa-slim sin box y full width
   (NO afecta a .partido-card del slider)
   ========================================================= */
@media (max-width:767px){
  .match-previa-slim{
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;

    /* edge-to-edge incluso dentro de .container */
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }

  .match-previa-slim .header-slim{ border-radius:0; }

  .match-previa-slim .body-slim{
    padding-left:10px;
    padding-right:10px;
  }
}


/* =========================================================
   FANTASY SELECTOR – optimizado (sin :root)
   ========================================================= */

.fantasy-dd{
  width:100%;
}

/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.fantasy-dd-btn{
  width:100%;
  height:44px;
  padding:0 12px;

  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.08);

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

  font-weight:800;
  text-align:left; /* bootstrap-safe */
}

/* Neutralizar Bootstrap */
.fantasy-dd-btn,
.fantasy-dd-btn:hover,
.fantasy-dd-btn:focus,
.fantasy-dd-btn:active{
  outline:0!important;
  background:#fff!important;
  box-shadow:0 10px 18px rgba(0,0,0,.08)!important;
}

/* =========================================================
   LABEL FIJO
   ========================================================= */

.fantasy-dd-label{
  flex:0 0 auto;
  font-size:12px;
  font-weight:800;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.5px;
}

/* =========================================================
   CENTRO: LOGO + TEXTO + ESTRELLA
   ========================================================= */

.fantasy-dd-center{
  flex:1 1 auto;
  min-width:0;

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

/* Logo */
#fantasyDDLogo{
  width:20px;
  height:20px;
  border-radius:5px;
  object-fit:contain;
  flex-shrink:0;
}

/* Texto */
#fantasyDDText{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================================================
   FAVORITO ⭐
   ========================================================= */

.fav-btn{
  width:30px;
  height:30px;
  border-radius:10px;

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

  color:#cbd5e1;
  font-size:27px;
  line-height:1;

  cursor:pointer;
  user-select:none;
  flex-shrink:0;

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    color .12s ease;
}

.fav-btn:hover{
  box-shadow:0 10px 18px rgba(0,0,0,.12);
}

.fav-btn:active{
  transform:scale(.96);
}

.fav-btn.is-on{
  color:#f59e0b;
}

/* =========================================================
   CARET
   ========================================================= */

.fantasy-dd-btn .caret{
  margin-left:auto;
}

/* =========================================================
   MENÚ DESPLEGABLE
   ========================================================= */

.fantasy-dd-menu{
  width:100%;
  left:0;
  right:0;

  margin-top:8px;
  padding:6px 0;

  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;

  box-shadow:0 18px 40px rgba(0,0,0,.16);

  max-height:55vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

/* Items */
.fantasy-dd-menu > li > a{
  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 12px;
  font-weight:800;
  white-space:nowrap;
}

.fantasy-dd-menu > li > a img{
  width:18px;
  height:18px;
  border-radius:5px;
  object-fit:contain;
}

.fantasy-dd-menu > li > a:hover{
  background:#f3f4f6;
}

.fantasy-dd-menu .divider{
  margin:6px 0;
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width:420px){
  .fantasy-dd-label{
    display:none;
  }
}

/* =========================================================
   MODAL - ÚLTIMOS ENFRENTAMIENTOS / BALANCE H2H
   ========================================================= */
.cm-h2h-modal{
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}

.cm-h2h-modal__header{
  min-height:72px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #e9eef3;
  background:linear-gradient(135deg,#f8fafc 0%,#ffffff 58%,#f0fdf4 100%);
}

.cm-h2h-modal__title-wrap{
  min-width:0;
  text-align:left;
}

.cm-h2h-modal__eyebrow{
  display:block;
  margin-bottom:2px;
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:1.2px;
  color:#10b981;
}

.cm-h2h-modal__title{
  margin:0;
  font-size:22px;
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
}

.cm-h2h-modal__close{
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #e2e8f0;
  border-radius:50%;
  background:#fff;
  color:#64748b;
  font-size:26px;
  line-height:32px;
  font-weight:400;
  text-align:center;
  cursor:pointer;
  flex:0 0 auto;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease;
}

.cm-h2h-modal__close:hover,
.cm-h2h-modal__close:focus{
  outline:0;
  background:#f8fafc;
  border-color:#cbd5e1;
  color:#0f172a;
}

.cm-h2h-modal__close:active{ transform:scale(.96); }
.cm-h2h-modal__body{ padding:16px 18px 20px; }
.cm-h2h-alert{ margin-bottom:0; }

.cm-h2h-summary{
  margin-bottom:18px;
  padding:16px;
  border:1px solid #e7edf2;
  border-radius:16px;
  background:#fff;
}

.cm-h2h-teams{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:14px;
}

.cm-h2h-team{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.cm-h2h-team--away{ justify-content:flex-end; }
.cm-h2h-team__crest{
  width:42px;
  height:42px;
  object-fit:contain;
  flex:0 0 auto;
}
.cm-h2h-team__name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  color:#0f172a;
}

.cm-h2h-sample{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:6px 10px;
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
  text-align:center;
}
.cm-h2h-sample strong{
  font-size:18px;
  line-height:1;
  color:#0f172a;
}
.cm-h2h-sample span{
  margin-top:3px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.35px;
  text-transform:uppercase;
}

.cm-h2h-verdict{
  margin:14px 0 12px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-wrap:wrap;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#f8fbff;
  color:#475569;
  text-align:center;
}
.cm-h2h-verdict__label{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.45px;
}
.cm-h2h-verdict strong{
  font-size:13px;
  color:#0f172a;
}
.cm-h2h-verdict.is-local{
  border-color:#bfdbfe;
  background:#eff6ff;
}
.cm-h2h-verdict.is-away{
  border-color:#bbf7d0;
  background:#f0fdf4;
}
.cm-h2h-verdict.is-even{
  border-color:#e2e8f0;
  background:#f8fafc;
}

.cm-h2h-chart{ margin-top:2px; }
.cm-h2h-chart__labels{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  margin-bottom:7px;
  color:#64748b;
  font-size:10px;
  font-weight:700;
  text-align:center;
}
.cm-h2h-chart__labels span:first-child{ text-align:left; }
.cm-h2h-chart__labels span:last-child{ text-align:right; }
.cm-h2h-chart__labels strong{
  font-size:14px;
  color:#0f172a;
}

.cm-h2h-chart__bar{
  width:100%;
  height:16px;
  display:flex;
  overflow:hidden;
  border-radius:999px;
  background:#eef2f7;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.06);
}
.cm-h2h-chart__segment{
  min-width:0;
  height:100%;
  transition:filter .15s ease;
}
.cm-h2h-chart__segment:hover{ filter:brightness(.96); }
.cm-h2h-chart__segment--local{ background:#3b82f6; }
.cm-h2h-chart__segment--draw{ background:#cbd5e1; }
.cm-h2h-chart__segment--away{ background:#10b981; }

.cm-h2h-chart__grow-0{ flex:0 0 0; }
.cm-h2h-chart__grow-1{ flex:1 1 0; }
.cm-h2h-chart__grow-2{ flex:2 1 0; }
.cm-h2h-chart__grow-3{ flex:3 1 0; }
.cm-h2h-chart__grow-4{ flex:4 1 0; }
.cm-h2h-chart__grow-5{ flex:5 1 0; }
.cm-h2h-chart__grow-6{ flex:6 1 0; }
.cm-h2h-chart__grow-7{ flex:7 1 0; }
.cm-h2h-chart__grow-8{ flex:8 1 0; }
.cm-h2h-chart__grow-9{ flex:9 1 0; }
.cm-h2h-chart__grow-10{ flex:10 1 0; }

.cm-h2h-chart__legend{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
  color:#64748b;
  font-size:10px;
  font-weight:700;
}
.cm-h2h-chart__legend-item{
  position:relative;
  padding-left:12px;
}
.cm-h2h-chart__legend-item::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  transform:translateY(-50%);
}
.cm-h2h-chart__legend-item--local::before{ background:#3b82f6; }
.cm-h2h-chart__legend-item--draw::before{ background:#cbd5e1; }
.cm-h2h-chart__legend-item--away::before{ background:#10b981; }

.cm-h2h-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
.cm-h2h-metric{
  min-width:0;
  padding:10px 8px;
  border:1px solid #edf1f5;
  border-radius:12px;
  background:#fbfcfd;
  text-align:center;
}
.cm-h2h-metric__label{
  display:block;
  margin-bottom:3px;
  color:#94a3b8;
  font-size:9px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.cm-h2h-metric strong{
  display:block;
  color:#0f172a;
  font-size:17px;
  line-height:1.1;
}

.cm-h2h-empty{
  margin-bottom:16px;
  padding:18px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#f8fafc;
  color:#64748b;
  text-align:center;
}
.cm-h2h-empty strong{ color:#0f172a; }
.cm-h2h-detail{ margin-top:2px; }

.stats-modal-loading{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  font-weight:700;
  text-align:center;
}
.stats-modal-loading--error{ color:#b91c1c; }

@media (max-width:767px){
  #ultimosEnfrentamientosModal .modal-dialog{
    margin:10px;
  }
  .cm-h2h-modal{ border-radius:14px; }
  .cm-h2h-modal__header{
    min-height:62px;
    padding:13px 14px;
  }
  .cm-h2h-modal__title{ font-size:19px; }
  .cm-h2h-modal__body{ padding:12px; }
  .cm-h2h-summary{
    padding:13px 11px;
    border-radius:14px;
  }
  .cm-h2h-teams{
    grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);
    gap:7px;
  }
  .cm-h2h-team{
    flex-direction:column;
    gap:5px;
    text-align:center;
  }
  .cm-h2h-team--away{ justify-content:center; }
  .cm-h2h-team__crest{
    width:36px;
    height:36px;
  }
  .cm-h2h-team__name{
    width:100%;
    font-size:12px;
  }
  .cm-h2h-sample{
    min-width:62px;
    padding:6px 4px;
  }
  .cm-h2h-sample strong{ font-size:16px; }
  .cm-h2h-sample span{ font-size:8px; }
  .cm-h2h-chart__labels{ font-size:9px; }
  .cm-h2h-chart__labels strong{ font-size:12px; }
  .cm-h2h-chart__legend{
    gap:6px;
    font-size:9px;
  }
  .cm-h2h-chart__legend-item{ padding-left:9px; }
  .cm-h2h-metrics{ gap:6px; }
  .cm-h2h-metric{
    padding:8px 4px;
    border-radius:10px;
  }
  .cm-h2h-metric strong{ font-size:15px; }
}

@media (max-width:420px){
  .cm-h2h-chart__legend{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .cm-h2h-chart__legend-item--away{ text-align:right; }
  .cm-h2h-chart__legend-item--draw{
    grid-column:1 / -1;
    grid-row:2;
    justify-self:center;
  }
}

