.toast-stack-partidos{
  position: fixed;
  top: 72px;
  right: 34px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;

  width: 430px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

/* Wrapper animable para que el hueco se cierre de forma fluida */
.toast-stack-partidos .toast-partido-shell{
  width: 100%;
  overflow: hidden;
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 10px;
  box-sizing: border-box;
  transition:
    max-height 0.38s ease,
    opacity 0.28s ease,
    transform 0.38s ease,
    margin 0.38s ease,
    padding 0.38s ease;
}

.toast-stack-partidos .toast-partido-shell.toast-partido-shell--closing{
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.toast-stack-partidos .toast-partido-item{
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;

  pointer-events: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: toastSlideInUp 0.35s ease-out forwards;

  color: white;
  border-radius: 15px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.38);
  backdrop-filter: blur(14px);
  overflow: hidden;
  padding: 0 !important;
}

.toast-stack-partidos .toast-partido-item .toast-body{
  padding: 0 !important;
  background: transparent !important;
}

/* =========================
   Colores por estado
   ========================= */
.toast-stack-partidos .toast-partido-item--added{
  background:
    radial-gradient(circle at 18% 0%, rgba(57,255,20,0.18), transparent 38%),
    linear-gradient(180deg, rgba(8,20,17,0.97) 0%, rgba(5,13,14,0.98) 100%);
  border: 1px solid rgba(57,255,120,0.72);
  box-shadow:
    0 20px 44px rgba(0,0,0,0.42),
    0 0 0 1px rgba(57,255,120,0.12) inset,
    0 0 28px rgba(57,255,120,0.22);
}

.toast-stack-partidos .toast-partido-item--removed{
  background:
    radial-gradient(circle at 18% 0%, rgba(255,73,73,0.18), transparent 38%),
    linear-gradient(180deg, rgba(25,12,12,0.97) 0%, rgba(10,9,11,0.98) 100%);
  border: 1px solid rgba(255,73,73,0.72);
  box-shadow:
    0 20px 44px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,73,73,0.12) inset,
    0 0 28px rgba(255,73,73,0.20);
}

.toast-stack-partidos .toast-partido-item--updated{
  background:
    radial-gradient(circle at 18% 0%, rgba(255,211,40,0.18), transparent 38%),
    linear-gradient(180deg, rgba(25,19,7,0.97) 0%, rgba(12,11,8,0.98) 100%);
  border: 1px solid rgba(255,211,40,0.72);
  box-shadow:
    0 20px 44px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,211,40,0.12) inset,
    0 0 28px rgba(255,211,40,0.20);
}

/* =========================
   HEADER REAL DEL TOAST
   ========================= */
.toast-stack-partidos .toast-partido-item .toast-header{
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 0;
  background: transparent;
  color: #F8FBFF;
}

.toast-partido-item--added .toast-header{
  background: transparent !important;
}

.toast-partido-item--removed .toast-header{
  background: transparent !important;
}

.toast-partido-item--updated .toast-header{
  background: transparent !important;
}

.toast-partido-head-inner{
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.toast-partido-head-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}

.toast-partido-head-title{
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1;
  color: #F8FBFF;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.toast-partido-head-datepill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.94);
  background: rgba(255,255,255,0.08);
}

.toast-partido-item--added .toast-partido-head-datepill{
  color: #39ff78;
  border-color: rgba(57,255,120,0.26);
  background: rgba(57,255,120,0.10);
}

.toast-partido-item--updated .toast-partido-head-datepill{
  color: #ffd328;
  border-color: rgba(255,211,40,0.28);
  background: rgba(255,211,40,0.10);
}

.toast-partido-item--removed .toast-partido-head-datepill{
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,73,73,0.28);
  background: rgba(255,73,73,0.12);
}

.toast-partido-item--added .toast-partido-head-dot{
  background: #39FF14;
  box-shadow: 0 0 10px rgba(57,255,20,0.55);
}

.toast-partido-item--removed .toast-partido-head-dot{
  background: #FF5A5F;
  box-shadow: 0 0 10px rgba(255,90,95,0.55);
}

.toast-partido-item--updated .toast-partido-head-dot{
  background: #FFD54A;
  box-shadow: 0 0 10px rgba(255,213,74,0.55);
}

/* =========================
   Body del toast
   ========================= */
.toast-single-item-body{
  display: flex;
  flex-direction: column;
}

.toast-single-body-content{
  padding: 0 10px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-rich-subtitle{
  display: none;
}

.toast-single-thumb-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  width: 100%;
}

.toast-single-thumb-wrap--full{
  width: 100%;
}

.toast-mini-match-thumb{
  width: 100%;
  justify-content: center !important;
}

.toast-mini-match-thumb--rich{
  min-height: 96px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px 10px 10px !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.065), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.012)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 12px 22px rgba(0,0,0,0.22) !important;
}

.toast-mini-match-thumb--option-a{
  background:
    radial-gradient(circle at 50% 0%, rgba(57,255,20,0.11), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
  border-color: rgba(57,255,20,0.26) !important;
}

.toast-mini-match-thumb--option-b{
  background:
    radial-gradient(circle at 50% 0%, rgba(255,213,74,0.12), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
  border-color: rgba(255,213,74,0.30) !important;
}

.toast-rich-team{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.toast-rich-team-shield{
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  padding: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.022));
  border: 1px solid rgba(255,255,255,0.095);
  filter: drop-shadow(0 9px 14px rgba(0,0,0,0.36));
}

.toast-rich-team-name{
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,0.90);
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
}

.toast-rich-center{
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.toast-rich-agecat-wrap{
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-rich-competition{
  display: none !important;
}

.toast-rich-center::before,
.toast-rich-center::after{
  content: "";
  width: 28px;
  height: 1px;
  display: block;
  background: currentColor;
  opacity: .36;
}

.toast-partido-item--added .toast-rich-center{
  color: #39ff78;
}

.toast-partido-item--updated .toast-rich-center{
  color: #ffd328;
}

.toast-partido-item--removed .toast-rich-center{
  color: #ff4949;
}

.toast-rich-time{
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

.toast-mini-shield{
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 auto;
}

.toast-mini-time{
  color: #E9FFF7;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  font-weight: 800;
}

.toast-single-field-row{
  display: flex;
  justify-content: center;
  width: 100%;
}

.toast-single-foot-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  color: #F3FAFF;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
}

.toast-single-foot-chip--field{
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: flex;
  gap: 7px;
}

.toast-single-field-icon{
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
}

.toast-single-field-text{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mini badges edad/categoría */
.toast-mini-agecat{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 2px;
  max-width: 100%;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden;
}

.toast-mini-agecat img{
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: 0 0 auto;
}

/* =========================
   Cambio de opción A/B
   ========================= */
.toast-option-transition-wrap{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
}

.toast-option-state-block{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
}

.toast-option-state-label{
  font-size: 10.5px;
  font-weight: 900;
  color: #ffd328;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.toast-option-state-block .toast-mini-match-thumb{
  width: 100%;
  min-width: 0;
  justify-content: center !important;
}

.toast-option-state-block .toast-mini-match-thumb--no-names{
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 5px;
  padding: 9px 7px !important;
}

.toast-option-state-block .toast-mini-match-thumb--no-names .toast-rich-team{
  gap: 0;
}

.toast-option-state-block .toast-mini-match-thumb--no-names .toast-rich-team-shield{
  width: 34px;
  height: 34px;
  padding: 3px;
}

.toast-option-state-block .toast-mini-match-thumb--no-names .toast-rich-time{
  font-size: 18px;
}

.toast-option-state-block .toast-mini-match-thumb--no-names .toast-rich-agecat-wrap{
  min-height: 18px;
}

.toast-option-state-block .toast-mini-match-thumb--no-names .toast-mini-agecat img{
  border-radius: 50% !important;
}

.toast-option-arrow{
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.toast-option-arrow-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 8px rgba(255,211,40,0.56))
    drop-shadow(0 2px 4px rgba(0,0,0,0.34));
}

/* Cerrar toast */
.toast-stack-partidos .toast-partido-item .btn-close{
  filter: invert(1);
  opacity: 0.66;
  margin-left: 10px !important;
}

.toast-stack-partidos .toast-partido-item .btn-close:hover{
  opacity: 1;
}

@keyframes toastSlideInUp{
  0%{
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOutDown{
  0%{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100%{
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

.toast-stack-partidos .toast-partido-item.toast-closing{
  animation: toastSlideOutDown 0.28s ease-in forwards;
  pointer-events: none;
}













.sd-summary-event-card{
  display: flex;
  width: 100%;
  min-width: 0;
}

.sd-summary-event-card .toast-mini-event-thumb{
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
