a.prediction-add-forecast-button {
  position: relative;
  z-index: 4;
  display: inline-flex;
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #e2683c;
  border-radius: 9px;
  outline: 0;
  background: #fdf0ec;
  box-shadow: 0 1px 2px rgba(226, 104, 60, .08);
  color: #e2683c;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

a.prediction-add-forecast-button:hover,
a.prediction-add-forecast-button:focus {
  border-color: #d75b31;
  background: #fbe5dd;
  box-shadow: 0 5px 13px rgba(226, 104, 60, .2);
  color: #d75b31;
  text-decoration: none;
  transform: translateY(-1px);
}

a.prediction-add-forecast-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(226, 104, 60, .22);
}

a.prediction-add-forecast-button:active {
  background: #f9dbd0;
  box-shadow: 0 1px 2px rgba(226, 104, 60, .12);
  transform: translateY(0);
}

a.prediction-add-forecast-button[hidden] {
  display: none !important;
}

a.prediction-add-forecast-button > i {
  width: auto;
  color: inherit !important;
  font-size: inherit;
  line-height: 1;
}

a.prediction-feature-card-primary,
a.prediction-compact-primary,
a.prediction-catalog-primary {
  position: absolute;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  inset: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

a.prediction-feature-card-primary:focus,
a.prediction-compact-primary:focus,
a.prediction-catalog-primary:focus {
  outline: 0;
}

a.prediction-feature-card-primary:focus-visible,
a.prediction-compact-primary:focus-visible,
a.prediction-catalog-primary:focus-visible {
  outline: 2px solid #e2683c;
  outline-offset: 2px;
}

/* The count keeps its original style; the new control occupies a sibling slot. */
.prediction-feature-footer {
  display: flex;
  min-width: 0;
  height: 38px;
  flex: 0 0 38px;
  align-items: stretch;
  gap: 8px;
  margin: auto 12px 12px;
}

.prediction-feature-footer .prediction-feature-count {
  height: auto;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
}

.prediction-feature-footer .prediction-add-forecast-button {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 11px;
}

.prediction-feature-card:focus-within {
  color: #1b2430;
  box-shadow: 0 14px 26px rgba(16, 24, 40, .14);
  text-decoration: none;
  transform: translateY(-3px);
}

/* Compact rows used by Popular matches and related matches. */
.prediction-compact-row {
  position: relative;
}

.prediction-compact-actions {
  display: flex;
  min-width: 112px;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.prediction-compact-actions .prediction-compact-count-mobile {
  display: none;
}

.prediction-compact-row:focus-within {
  background: #fafbfd;
  color: #14181f;
  text-decoration: none;
}

/* /predictions cards. */
.prediction-catalog-page .prediction-catalog-card {
  position: relative;
}

.prediction-catalog-page .prediction-catalog-card:focus-within {
  border-color: #bfe0cd;
  box-shadow: 0 8px 22px rgba(16, 23, 32, .08);
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.prediction-catalog-page .prediction-catalog-actions {
  display: flex;
  min-width: 0;
  align-self: stretch;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding-left: 8px;
  border-left: 1px solid #eef1f5;
}

.prediction-catalog-page .prediction-catalog-actions .prediction-catalog-count {
  align-self: auto;
  padding: 0;
  border: 0;
}

/* Match-banner actions: the commercial CTA keeps its desktop dimensions. */
.prediction-banner-ad-actions {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.prediction-banner-ad-actions .prediction-banner-ad-button {
  grid-column: auto;
  grid-row: auto;
}

.prediction-banner-ad-actions .prediction-add-forecast-button {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 11px;
  font-size: 17px;
}

.prediction-banner-ad--forecast-only .prediction-banner-ad-actions {
  grid-column: 2;
  grid-row: 1;
}

.prediction-banner-ad--forecast-only[hidden] {
  display: none !important;
}

.prediction-forecast-auth-notice {
  margin-bottom: 16px;
}

.prediction-forecast-closed-alert {
  margin-bottom: 18px;
}

@media (max-width: 767px) {
  .prediction-feature-footer {
    height: 44px;
    flex-basis: 44px;
  }

  .prediction-feature-footer .prediction-add-forecast-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
    font-size: 17px;
  }

  .prediction-feature-card:focus-within {
    box-shadow: none;
    transform: none;
  }

  .prediction-home-list > .prediction-compact-row,
  .prediction-related-list > .prediction-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .prediction-compact-row > .prediction-compact-body {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .prediction-compact-actions {
    min-width: 104px;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    gap: 8px;
  }

  .prediction-compact-actions .prediction-compact-count-mobile {
    display: inline-flex;
  }

  .prediction-compact-actions .prediction-compact-count-desktop {
    display: none;
  }

  .prediction-compact-actions .prediction-add-forecast-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .prediction-catalog-page .prediction-catalog-card {
    grid-template-areas:
      'top actions'
      'teams actions'
      'event event'
      'odds odds';
  }

  .prediction-catalog-page .prediction-catalog-actions {
    min-width: 104px;
    grid-area: actions;
    align-self: start;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border: 0;
  }

  .prediction-catalog-page .prediction-catalog-actions .prediction-catalog-count {
    align-self: auto;
    grid-area: auto;
  }

  .prediction-catalog-page .prediction-catalog-actions .prediction-add-forecast-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .prediction-banner-ad-actions {
    width: 100%;
    grid-column: 1;
    grid-row: 4;
    align-items: stretch;
    gap: 9px;
    margin-top: 7px;
  }

  .prediction-banner-ad-actions .prediction-banner-ad-button {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    margin-top: 0;
  }

  .prediction-banner-ad-actions .prediction-add-forecast-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .prediction-banner-ad--forecast-only .prediction-banner-ad-actions {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }
}

@media (max-width: 374px) {
  .prediction-catalog-page .prediction-catalog-card {
    grid-template-areas:
      'top actions'
      'teams actions'
      'event event'
      'odds odds';
  }
}
