/* ============================================================
   ÚLTIMOS VISTOS · PARTIDOS / EVENTOS
   ============================================================ */

.his-match2-card-shell{
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: visible;
  display: block;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 4px;
  padding-bottom: 8px;
}

/* =========================
   TARJETA BASE
   ========================= */

.his-match2-card{
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 98px;
  border-radius: 16px;
  border: 1px solid rgba(41,217,163,.34);
  background:
    radial-gradient(circle at left center, rgba(41,217,163,.08), transparent 22%),
    radial-gradient(circle at right center, rgba(41,217,163,.08), transparent 22%),
    linear-gradient(180deg, rgba(8,29,24,.82), rgba(9,20,18,.92)),
    linear-gradient(90deg, rgba(6,190,132,.14), rgba(6,190,132,.06));
  box-shadow:
    0 8px 18px rgba(0,0,0,.22),
    0 0 0 1px rgba(41,217,163,.06) inset,
    0 0 12px rgba(41,217,163,.08);
  padding: 18px 16px 16px 18px;
  box-sizing: border-box;
  overflow: visible;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.his-match2-card:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(41,217,163,.12),
    0 0 18px rgba(41,217,163,.14);
}

/* variante evento */
.his-match2-card--event{
  border: 1px solid rgba(130, 211, 255, .28);
  background:
    radial-gradient(circle at left center, rgba(130,211,255,.08), transparent 22%),
    radial-gradient(circle at right center, rgba(130,211,255,.08), transparent 22%),
    linear-gradient(180deg, rgba(10,24,34,.84), rgba(11,18,26,.94)),
    linear-gradient(90deg, rgba(72,160,255,.12), rgba(72,160,255,.04));
  box-shadow:
    0 8px 18px rgba(0,0,0,.22),
    0 0 0 1px rgba(130,211,255,.06) inset,
    0 0 12px rgba(130,211,255,.08);
}

.his-match2-card--event:hover{
  box-shadow:
    0 12px 24px rgba(0,0,0,.28),
    0 0 0 1px rgba(130,211,255,.12),
    0 0 18px rgba(130,211,255,.14);
}

/* =========================
   WATERMARK
   ========================= */

.his-match2-wm{
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.his-match2-wm-img{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 0;
  transform: translate(-50%, -50%);
  opacity: .11;
  filter: grayscale(.16) contrast(1.02) brightness(1.03) drop-shadow(0 0 8px rgba(0,0,0,.22));
  user-select: none;
}

.his-match2-card--event .his-match2-wm-img{
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 0;
  opacity: .10;
  filter: grayscale(.10) contrast(1.02) brightness(1.04) drop-shadow(0 0 8px rgba(0,0,0,.20));
}

/* =========================
   CHIPS SUPERIORES
   ========================= */

.his-match2-top-chips{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -28%);
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: calc(100% - 32px);
  overflow: visible;
  pointer-events: none;
}

.his-match2-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f5fff9;
  border: 1px solid rgba(83,255,173,.34);
  background: rgba(2,87,64,.96);
  box-shadow:
    0 2px 8px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.05);
  pointer-events: auto;
}

.his-match2-card--event .his-match2-chip{
  border: 1px solid rgba(139,214,255,.34);
  background: rgba(21,74,118,.94);
}

.his-match2-chip-field{
  max-width: 280px;
  justify-content: flex-start;
  text-align: left;
  padding-left: 10px;
  padding-right: 8px;
}

/* =========================
   WRAP PRINCIPAL
   ========================= */

.his-match2-main-wrap{
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding-left: 28px;
}

/* =========================
   BADGES LATERALES
   ========================= */

.his-match2-side-badges{
  position: absolute;
  top: 50%;
  left: -24px;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: visible;
  pointer-events: auto;
}

.his-match2-side-badge{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #06BE84;
  background: #023e2f;
  box-shadow:
    0 2px 6px rgba(0,0,0,.35),
    0 0 10px rgba(6,190,132,.10);
  overflow: visible;
}

.his-match2-card--event .his-match2-side-badge{
  border-color: #7ccfff;
  background: #163e5d;
  box-shadow:
    0 2px 6px rgba(0,0,0,.35),
    0 0 10px rgba(124,207,255,.10);
}

/* =========================
   FILA PRINCIPAL PARTIDO
   ========================= */

.his-match2-main-row{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) 42px 34px 42px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  width: 100%;
  min-width: 0;
}

.his-match2-team{
  min-width: 0;
  display: flex;
  align-items: center;
}

.his-match2-team--left{
  justify-content: flex-end;
  padding-right: 4px;
}

.his-match2-team--right{
  justify-content: flex-start;
  padding-left: 4px;
}

.his-match2-team-name{
  font-size: .97rem;
  font-weight: 800;
  line-height: 1.08;
  color: #f5fff9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  text-wrap: balance;
  word-break: break-word;
}

.his-match2-team-name--left{
  text-align: right;
}

.his-match2-team-name--right{
  text-align: left;
}

.his-match2-shield-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.his-match2-shield{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.8px solid #E9FFF7;
  box-shadow: 0 1px 4px rgba(0,0,0,.34);
  background: #0d1516;
}

.his-match2-vs{
  min-width: 34px;
  text-align: center;
  font-size: .98rem;
  font-weight: 900;
  color: rgba(245,255,249,.92);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* =========================
   FILA PRINCIPAL EVENTO
   ========================= */

.his-match2-event-row{
  position: relative;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  width: 100%;
  min-width: 0;
}

.his-match2-event-center{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 0 20px;
}

.his-match2-event-icon{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.28));
}

.his-match2-event-title{
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.08;
  color: #f5fff9;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =========================
   BADGES INFERIORES
   ========================= */

.his-match2-bottom-badges{
  position: absolute;
  right: 10px;
  bottom: 0;
  transform: translateY(38%);
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: calc(100% - 20px);
  overflow: visible;
}

.his-match2-badge{
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(14,20,22,.96);
  border: 2px solid rgba(255,255,255,.22);
  box-shadow:
    0 2px 8px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}

.his-match2-badge--text{
  width: auto;
  max-width: 180px;
  padding: 0 8px;
  background: radial-gradient(circle at 30% 30%, rgba(120,255,190,.95), rgba(28,180,95,.96));
  border: 2px solid rgba(195,255,220,.95);
}

.his-match2-badge--competition{
  background: radial-gradient(circle at 30% 30%, rgba(168,255,220,.96), rgba(55,210,150,.96));
}

.his-match2-card--event .his-match2-badge--text{
  background: radial-gradient(circle at 30% 30%, rgba(168,220,255,.96), rgba(92,176,233,.96));
  border-color: rgba(220,242,255,.95);
}

.his-match2-card--event .his-match2-badge--competition{
  background: radial-gradient(circle at 30% 30%, rgba(191,233,255,.96), rgba(112,190,241,.96));
}

.his-match2-badge-text{
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #04160c;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 860px){
  .his-match2-card-shell{
    padding-left: 10px;
    padding-right: 3px;
    padding-bottom: 7px;
  }

  .his-match2-card{
    min-height: 100px;
    padding: 18px 13px 15px 15px;
  }

  .his-match2-main-wrap{
    padding-left: 22px;
  }

  .his-match2-main-row{
    grid-template-columns: minmax(0,1fr) 36px 28px 36px minmax(0,1fr);
    gap: 8px;
  }

  .his-match2-team-name{
    font-size: .90rem;
  }

  .his-match2-shield{
    width: 34px;
    height: 34px;
  }

  .his-match2-vs{
    min-width: 28px;
    font-size: .90rem;
  }

  .his-match2-event-icon{
    width: 30px;
    height: 30px;
  }

  .his-match2-event-title{
    font-size: .92rem;
  }

  .his-match2-top-chips{
    gap: 5px;
    max-width: 94%;
    transform: translate(-50%, -24%);
  }

  .his-match2-chip{
    font-size: 10px;
    min-height: 21px;
    padding: 0 7px;
    max-width: 180px;
  }

  .his-match2-chip-field{
    max-width: 180px;
    padding-left: 9px;
    padding-right: 7px;
  }

  .his-match2-side-badges{
    left: -20px;
    gap: 3px;
  }

  .his-match2-side-badge{
    width: 28px;
    height: 28px;
  }

  .his-match2-bottom-badges{
    right: 8px;
    gap: 5px;
    transform: translateY(32%);
  }

  .his-match2-badge{
    height: 22px;
  }

  .his-match2-badge--text{
    max-width: 130px;
    padding: 0 7px;
  }

  .his-match2-badge-text{
    font-size: 9px;
  }

  .his-match2-wm-img{
    width: 74px;
    height: 74px;
  }

  .his-match2-card--event .his-match2-wm-img{
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 640px){
  .his-match2-card-shell{
    padding-left: 7px;
    padding-right: 2px;
    padding-bottom: 6px;
  }

  .his-match2-card{
    min-height: 92px;
    padding: 18px 11px 14px 13px;
  }

  .his-match2-main-wrap{
    padding-left: 18px;
  }

  .his-match2-main-row{
    grid-template-columns: minmax(0,1fr) 32px 24px 32px minmax(0,1fr);
    gap: 7px;
  }

  .his-match2-team-name{
    font-size: .84rem;
  }

  .his-match2-shield{
    width: 30px;
    height: 30px;
  }

  .his-match2-vs{
    min-width: 24px;
    font-size: .82rem;
  }

  .his-match2-event-icon{
    width: 28px;
    height: 28px;
  }

  .his-match2-event-title{
    font-size: .86rem;
  }

  .his-match2-chip{
    max-width: 130px;
  }

  .his-match2-chip-field{
    max-width: 140px;
  }

  .his-match2-side-badges{
    left: -17px;
  }

  .his-match2-side-badge{
    width: 26px;
    height: 26px;
  }

  .his-match2-badge--text{
    max-width: 100px;
  }
}