.pred-compare-btn {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 25;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #060606;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateX(-50%);
  animation: etCompareFloat 2.35s ease-in-out infinite;
  isolation: isolate;
}

.pred-compare-btn::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,204,21,0.42), rgba(250,204,21,0) 66%);
  filter: blur(7px);
  animation: etCompareGlow 1.9s ease-in-out infinite;
}

.pred-compare-btn .gold-football {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: visible;
  background-image: url("/assets/img/gold-football-icon-128.png");
  background-image: image-set(
    url("/assets/img/gold-football-icon-128.png") 1x,
    url("/assets/img/gold-football-icon.png") 2x
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.46),
    0 0 20px rgba(250,204,21,0.34),
    0 0 0 1px rgba(255,236,138,0.28);
  animation: etGoldBallWobble 2.45s ease-in-out infinite;
}

.pred-compare-btn .gold-football::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(250,204,21,0), rgba(250,204,21,0.45), rgba(250,204,21,0));
  filter: blur(4px);
  opacity: 0.42;
  animation: etGoldBallAura 2s ease-in-out infinite;
}

.pred-compare-btn .gold-football::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9c4 0 24%, #facc15 46%, rgba(250,204,21,0) 72%);
  box-shadow: 0 0 14px rgba(250,204,21,0.9);
  animation: etGoldBallSpark 1.75s ease-in-out infinite;
}

.pred-compare-btn .gold-football i {
  position: absolute;
  left: -45%;
  top: -20%;
  width: 42%;
  height: 150%;
  transform: rotate(23deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  animation: etGoldBallShine 2.8s ease-in-out infinite;
}

.pred-compare-btn:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.05);
}

.pred-compare-btn:hover .gold-football {
  animation-duration: 1.25s;
  box-shadow:
    0 16px 34px rgba(0,0,0,0.52),
    0 0 34px rgba(250,204,21,0.58),
    0 0 0 1px rgba(255,236,138,0.45);
}

.pred-compare-btn:focus-visible {
  outline: 3px solid rgba(96,165,250,0.72);
  outline-offset: 3px;
}

.et-compare-modal[hidden] {
  display: none !important;
}

.et-compare-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.et-compare-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}

.et-compare-panel {
  position: relative;
  width: min(1180px, calc(100vw - 44px));
  max-height: min(90vh, 980px);
  overflow: auto;
  border: 1px solid rgba(212,175,55,0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(212,175,55,0.18), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(34,197,94,0.13), transparent 32%),
    rgba(12,12,10,0.96);
  box-shadow: 0 34px 80px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.06);
}

.et-compare-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  touch-action: manipulation;
}

.et-compare-body {
  padding: 26px;
}

.et-compare-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(440px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 20px 64px 20px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.et-compare-head p,
.et-compare-head h2,
.et-compare-head span {
  margin: 0;
}

.et-compare-head p {
  color: #d4af37;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.et-compare-head h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  margin-top: 5px;
}

.et-compare-head span {
  color: rgba(255,255,255,0.58);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
}

.et-compare-score {
  width: 100%;
  min-width: 0;
  padding: 14px 18px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(34,197,94,0.12));
  color: #fff8e8;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.18);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 14px;
}

.et-compare-score strong {
  display: block;
  color: #fff8e8;
  font-size: clamp(2.15rem, 3.8vw, 3.5rem);
  font-weight: 950;
  line-height: 1;
  min-width: 94px;
  text-align: center;
}

.et-compare-score .et-compare-score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.et-compare-score .et-compare-score-name {
  display: block;
  width: 100%;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,0.82);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
  margin: 0;
}

.et-compare-score .et-compare-score-team img {
  width: 58px;
  height: 58px;
  margin-top: 8px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  padding: 5px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.et-compare-score .et-compare-half {
  display: block;
  grid-column: 1 / -1;
  margin-top: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-align: center;
}

.et-compare-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}

.et-compare-team {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  padding: 15px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.et-compare-team.away {
  direction: rtl;
}

.et-compare-team img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  padding: 6px;
}

.et-compare-team strong,
.et-compare-team span {
  direction: ltr;
  min-width: 0;
}

.et-compare-team strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.et-compare-team span {
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 3px;
  display: block;
}

.et-compare-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
}

.et-compare-tabs button {
  min-width: 48px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font-weight: 950;
  cursor: pointer;
}

.et-compare-tabs button.active {
  background: linear-gradient(135deg, #d4af37, #8ed36b);
  color: #050505;
  box-shadow: 0 8px 18px rgba(212,175,55,0.2);
}

.et-compare-table {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
}

.et-compare-table-head,
.et-compare-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.et-compare-table-head {
  background: rgba(15,23,42,0.58);
}

.et-compare-table-head span {
  padding: 13px 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.et-compare-table-head span:last-child {
  text-align: right;
}

.et-compare-metric {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.et-compare-metric-label {
  order: 2;
  padding: 16px;
  color: #f6eecf;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(212,175,55,0.045);
}

.et-compare-value-box {
  position: relative;
  min-width: 0;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.et-compare-value-box:first-of-type {
  order: 1;
}

.et-compare-value-box:last-of-type {
  order: 3;
  text-align: right;
}

.et-compare-value-box strong {
  position: relative;
  z-index: 1;
  color: #d4af37;
  font-size: 1.18rem;
  font-weight: 950;
}

.et-compare-value-box span {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.44);
  font-size: 0.72rem;
  font-weight: 750;
}

.et-compare-value-box i {
  position: absolute;
  left: 16px;
  right: auto;
  bottom: 9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #78d66e);
  opacity: 0.78;
}

.et-compare-value-box:last-of-type i {
  left: auto;
  right: 16px;
}

.et-compare-empty {
  color: rgba(255,255,255,0.28);
}

.et-compare-state {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #fff;
}

.et-compare-state h2,
.et-compare-state p {
  margin: 0;
}

.et-compare-state p {
  max-width: 520px;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
}

.et-compare-state-icon {
  font-size: 2.2rem;
}

.et-compare-limit-state p {
  max-width: 620px;
  margin: 8px auto 0;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  line-height: 1.55;
}

.et-compare-limit-note {
  color: #d4af37 !important;
  font-size: 0.86rem;
}

.et-compare-limit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.et-compare-limit-primary,
.et-compare-limit-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 950;
  cursor: pointer;
}

.et-compare-limit-primary {
  background: linear-gradient(135deg, #f5d76e, #78c764);
  color: #050505;
  box-shadow: 0 14px 30px rgba(212,175,55,0.2);
}

.et-compare-limit-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.et-compare-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12);
  border-top-color: #d4af37;
  animation: etCompareSpin 0.85s linear infinite;
}

.et-compare-retry {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #8ed36b);
  color: #050505;
  font-weight: 950;
  padding: 12px 22px;
  cursor: pointer;
}

.et-compare-open {
  overflow: hidden;
}

@keyframes etCompareFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

@keyframes etCompareGlow {
  0%, 100% { opacity: 0.58; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes etGoldBallWobble {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  45% { transform: rotate(5deg) scale(1.07); }
  70% { transform: rotate(-2deg) scale(1.02); }
}

@keyframes etGoldBallAura {
  0%, 100% { opacity: 0.28; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 0.68; transform: scale(1.12) rotate(70deg); }
}

@keyframes etGoldBallSpark {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.28); }
}

@keyframes etGoldBallShine {
  0%, 42% { left: -46%; opacity: 0; }
  52% { opacity: 1; }
  78%, 100% { left: 104%; opacity: 0; }
}

@keyframes etCompareSpin {
  to { transform: rotate(360deg); }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .et-compare-panel {
    width: min(940px, calc(100vw - 36px));
  }

  .et-compare-head {
    grid-template-columns: 1fr;
    padding: 18px 58px 18px 18px;
  }

  .et-compare-score {
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  }
}

@media (max-width: 760px) {
  .pred-compare-btn {
    top: 22px;
    width: 52px;
    height: 52px;
  }

  .pred-compare-btn .gold-football {
    width: 43px;
    height: 43px;
  }

  .et-compare-modal {
    padding: 58px 10px 10px;
    padding-top: max(58px, calc(env(safe-area-inset-top) + 48px));
    align-items: end;
  }

  .et-compare-panel {
    width: 100%;
    max-height: 88vh;
    max-height: calc(100dvh - 70px);
    border-radius: 20px 20px 0 0;
  }

  .et-compare-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    z-index: 100002;
    width: 46px;
    height: 46px;
    background: rgba(23,30,24,0.96);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  }

  .et-compare-body {
    padding: 16px 10px 18px;
  }

  .et-compare-head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 46px 12px 12px;
    border-radius: 16px;
  }

  .et-compare-head p {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .et-compare-head h2 {
    font-size: 1.22rem;
    margin-top: 3px;
  }

  .et-compare-head span {
    font-size: 0.76rem;
    margin-top: 4px;
  }

  .et-compare-score {
    width: 100%;
    min-width: 0;
    padding: 12px 10px 10px;
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    align-items: center;
    gap: 6px;
    border-radius: 14px;
  }

  .et-compare-score strong {
    font-size: 1.55rem;
    min-width: 50px;
    text-align: center;
  }

  .et-compare-score .et-compare-score-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: center;
  }

  .et-compare-score .et-compare-score-name {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
  }

  .et-compare-score .et-compare-score-team.away {
    text-align: center;
  }

  .et-compare-score .et-compare-score-team img {
    width: 25px;
    height: 25px;
    margin-top: 6px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    padding: 2px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.28);
  }

  .et-compare-score .et-compare-half {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: 0.72rem;
    text-align: center;
  }

  .et-compare-teams {
    display: block;
    margin: 10px 0 12px;
  }

  .et-compare-team {
    display: none;
  }

  .et-compare-tabs {
    justify-content: center;
    width: 100%;
    padding: 4px;
    border-radius: 18px;
  }

  .et-compare-tabs button {
    height: 34px;
    min-width: 54px;
  }

  .et-compare-limit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .et-compare-limit-primary,
  .et-compare-limit-secondary {
    width: 100%;
  }

  .et-compare-table-head {
    display: none;
  }

  .et-compare-metric {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .et-compare-metric-label {
    grid-column: 1 / -1;
    order: 0;
    justify-content: flex-start;
    border-left: 0;
    border-right: 0;
    padding: 13px 14px 4px;
    background: transparent;
    text-align: left;
  }

  .et-compare-value-box {
    padding: 12px 14px 18px;
  }
}
