/* =========================================================
   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;
  color:#0f172a;
}

.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;
  }
}
