/* score input dentro dos match cards */
.match-score-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-input {
  width: 54px;
  height: 46px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(244, 197, 66, 0.28);
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.score-input:focus {
  border-color: rgba(244, 197, 66, 0.7);
  background: rgba(255, 255, 255, 0.11);
}

.score-sep {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 0 10px rgba(255,200,80,0.3);
}

/* rodapé do match card com botão salvar */
.match-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
}

.save-btn {
  padding: 7px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #F4C542, #D4A017);
  color: #0A1F44;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 4px 14px rgba(244, 197, 66, 0.35),
    0 0 18px rgba(244, 197, 66, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.save-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-100%) rotate(25deg);
  z-index: 1;
}

.save-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(244, 197, 66, 0.50),
    0 0 24px rgba(244, 197, 66, 0.22);
}

.save-btn:hover::after {
  animation: shine 0.9s ease;
}

.save-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(244, 197, 66, 0.25);
}

.match-error {
  font-size: 12px;
  font-weight: 600;
  color: #e05555;
  text-align: center;
}

.page-footer {
  margin-top: 2rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#btnNextRound {
  display: none;
}

@media (max-width: 768px) {
  .score-input {
    width: 44px;
    height: 40px;
    font-size: 18px;
  }

  #btnNextRound {
    display: flex;
  }

  .score-sep {
    font-size: 16px;
  }

  .match-score-form {
    gap: 6px;
  }

  .match-team-name {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .score-input {
    width: 38px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
  }

  .score-sep {
    font-size: 14px;
  }

  .match-score-form {
    gap: 4px;
  }

  .match-team-name {
    font-size: 0.82rem;
  }
}
