.match-admin {
  padding-block: 35px 70px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #625d63;
  font-size: 11px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--magenta);
}

.admin-heading,
.saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.admin-heading {
  margin-bottom: 29px;
}

.admin-heading h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
}

.admin-heading h1 span {
  color: var(--magenta);
}

.admin-heading > div > p:last-child {
  max-width: 590px;
  margin: 13px 0 0;
  color: #625d63;
  font-size: 13px;
}

.admin-ball {
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 900;
  transform: rotate(9deg);
}

.match-form-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--cyan), var(--magenta), var(--orange)) 1;
  background: #fff;
  box-shadow: 0 15px 40px rgb(27 26 25 / 6%);
}

.form-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}

.form-index {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.form-card-heading h2,
.saved-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.form-card-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #393431;
  font-size: 11px;
  font-weight: 700;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dad6d2;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 12px var(--sans);
}

.form-field input::placeholder {
  color: #8b8581;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--cyan-ink);
  outline: 3px solid rgb(0 185 220 / 17%);
}

.result-fieldset {
  min-width: 0;
  margin: 27px 0 0;
  padding: 17px;
  border: 1px solid #e4e0e6;
  border-radius: 5px;
  background: #fcfbfa;
}

.result-fieldset legend {
  padding: 0 8px;
  color: #4f4944;
  font-size: 11px;
  font-weight: 700;
}

.result-grid {
  grid-template-columns: minmax(95px, 0.65fr) 18px minmax(95px, 0.65fr) minmax(180px, 1.5fr);
  align-items: center;
  gap: 12px;
}

.score-separator {
  align-self: center;
  margin-top: 17px;
  color: var(--magenta);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  text-align: center;
}

.mvp-field small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.result-hint {
  margin: 12px 0 0;
  color: #625d63;
  font-size: 10px;
}

.form-actions {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.form-feedback {
  color: var(--cyan-ink);
  font-size: 11px;
}

.form-feedback.is-error {
  color: #a33118;
}

.form-feedback:empty {
  display: none;
}

.submit-match {
  border: 0;
  cursor: pointer;
}

.submit-match:disabled {
  cursor: wait;
  opacity: 0.65;
}

.saved-matches {
  padding-top: 58px;
}

.saved-heading {
  margin-bottom: 18px;
}

.saved-heading .eyebrow {
  margin-bottom: 8px;
}

.saved-heading h2 {
  font-size: clamp(28px, 4vw, 39px);
}

.match-count {
  padding: 7px 9px;
  border: 1px solid #e4d1df;
  border-radius: 3px;
  background: #fff5fb;
  color: #8d0056;
  font-family: var(--mono);
  font-size: 8px;
}

.matches-status {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 10px;
}

.matches-status.is-error {
  color: #a33118;
}

.saved-matches-list {
  display: grid;
  gap: 9px;
}

.saved-match {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(145px, 1fr) minmax(130px, 0.8fr) auto minmax(135px, 0.8fr);
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.saved-match-main,
.saved-match-date,
.saved-match-result {
  display: grid;
  gap: 2px;
}

.saved-match-main strong,
.saved-match-date strong,
.saved-match-result strong {
  font-size: 11px;
}

.saved-match-main small,
.saved-match-date small,
.saved-match-result small,
.saved-match-venue {
  color: var(--muted);
  font-size: 9px;
}

.saved-match-status {
  justify-self: start;
  padding: 5px 7px;
  border-radius: 3px;
  background: #e4f8fc;
  color: #00596c;
  font-family: var(--mono);
  font-size: 8px;
}

.saved-match-status[data-status="Finalizado"] {
  background: #f9e5f2;
  color: #8d0056;
}

.saved-match-status[data-status="Suspendido"],
.saved-match-status[data-status="Cancelado"] {
  background: #f1eeeb;
  color: #5b514b;
}

.saved-matches-empty {
  padding: 22px;
  border: 1px dashed #cac4be;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.public-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  color: #625d63;
  font-size: 10px;
}

.public-note span {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--magenta);
  border-radius: 50%;
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 9px;
}

@media (max-width: 760px) {
  .result-grid {
    grid-template-columns: minmax(75px, 0.6fr) 14px minmax(75px, 0.6fr);
  }

  .mvp-field {
    grid-column: 1 / -1;
  }

  .saved-match {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .match-admin {
    padding-top: 25px;
  }

  .back-link {
    margin-bottom: 23px;
  }

  .admin-heading {
    align-items: flex-start;
  }

  .admin-heading h1 {
    font-size: clamp(42px, 11vw, 59px);
  }

  .admin-ball {
    width: 57px;
    height: 57px;
    border-width: 4px;
    font-size: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .result-fieldset {
    padding: 12px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .form-feedback {
    margin: 0;
  }

  .saved-heading {
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .saved-match {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: minmax(65px, 1fr) 12px minmax(65px, 1fr);
  }
}
