/* El Contraataque · Football Pro v14
 * Previa avanzada API-Football + navegación vectorial inspirada en apps deportivas.
 */

.bottom-nav .nav-icon,
.prediction-hub-nav button > span:first-child {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  margin: 0 auto 0.18rem;
  color: currentColor;
}

.bottom-nav .nav-icon svg,
.prediction-hub-nav button > span:first-child svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav button,
.prediction-hub-nav button {
  color: #6b665d;
}

.bottom-nav button.is-active,
.prediction-hub-nav button.is-active {
  color: var(--gold, #bf842b) !important;
}

.bottom-nav button.is-active .nav-icon svg,
.prediction-hub-nav button.is-active > span:first-child svg {
  stroke-width: 2.05;
}

.football-pro-v14 {
  display: grid;
  gap: 0.8rem;
  margin: 0.9rem 0;
}

.football-pro-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0.15rem 0;
}

.football-pro-title > div {
  min-width: 0;
}

.football-pro-title span,
.football-pro-title h3,
.football-pro-title small {
  display: block;
}

.football-pro-title span {
  color: var(--gold-2, #9c681d);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.football-pro-title h3 {
  margin: 0.14rem 0 0;
  color: var(--text, #171512);
  font-size: 1.25rem;
  line-height: 1.08;
}

.football-pro-title small {
  max-width: 10.5rem;
  color: var(--muted, #5f5a51);
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: right;
}

.football-pro-rank-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border: 1px solid rgba(191, 132, 43, 0.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff, #fbf7ef);
  box-shadow: 0 0.45rem 1rem rgba(65, 50, 25, 0.055);
}

.football-pro-rank-strip > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.football-pro-rank-strip > div:last-child {
  justify-content: flex-end;
  text-align: right;
}

.football-pro-rank-strip > span {
  color: var(--gold-2, #9c681d);
  font-size: 0.8rem;
  font-weight: 900;
}

.football-pro-rank-strip .football-team-logo,
.football-pro-rank-strip img,
.football-pro-team-head .football-team-logo,
.football-pro-team-head img,
.football-pro-comparison-head .football-team-logo,
.football-pro-comparison-head img,
.football-pro-fixture-row .football-team-logo,
.football-pro-fixture-row img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.football-pro-rank-strip strong,
.football-pro-rank-strip small {
  display: block;
}

.football-pro-rank-strip strong {
  overflow: hidden;
  color: var(--text, #171512);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-pro-rank-strip small {
  margin-top: 0.08rem;
  color: var(--muted, #5f5a51);
  font-size: 0.66rem;
}

.football-pro-card {
  overflow: hidden;
  border: 1px solid rgba(24, 22, 19, 0.095);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.4rem 1.1rem rgba(65, 50, 25, 0.04);
}

.football-pro-card > summary {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.football-pro-card > summary::-webkit-details-marker {
  display: none;
}

.football-pro-card > summary span {
  color: var(--text, #171512);
  font-size: 0.88rem;
  font-weight: 850;
}

.football-pro-card > summary strong {
  color: var(--gold-2, #9c681d);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
}

.football-pro-card > summary::after {
  content: "⌄";
  color: #8f887d;
  font-size: 0.92rem;
  transition: transform 160ms ease;
}

.football-pro-card[open] > summary::after {
  transform: rotate(180deg);
}

.football-pro-card__body {
  border-top: 1px solid rgba(24, 22, 19, 0.075);
  padding: 0.8rem 0.9rem 0.9rem;
}

.football-pro-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.football-pro-recent-grid > div {
  min-width: 0;
}

.football-pro-team-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.45rem;
}

.football-pro-team-head .football-team-logo,
.football-pro-team-head img {
  width: 1.65rem;
  height: 1.65rem;
}

.football-pro-team-head strong,
.football-pro-team-head small {
  display: block;
}

.football-pro-team-head strong {
  overflow: hidden;
  color: var(--text, #171512);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-pro-team-head small {
  margin-top: 0.05rem;
  color: var(--muted, #5f5a51);
  font-size: 0.61rem;
}

.football-pro-fixture-row {
  display: grid;
  grid-template-columns: 1.28rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.8rem;
  border-top: 1px solid rgba(24, 22, 19, 0.06);
}

.football-pro-fixture-row:first-of-type {
  border-top: 0;
}

.football-pro-result {
  display: grid;
  width: 1.22rem;
  height: 1.22rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #9e978d;
  font-size: 0.56rem;
  font-weight: 900;
}

.football-pro-result--v { background: #258658; }
.football-pro-result--e { background: #c58b22; }
.football-pro-result--d { background: #b94b52; }

.football-pro-fixture-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
}

.football-pro-fixture-teams > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.22rem;
}

.football-pro-fixture-teams > span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.football-pro-fixture-teams .football-team-logo,
.football-pro-fixture-teams img {
  width: 1rem;
  height: 1rem;
}

.football-pro-fixture-teams small {
  overflow: hidden;
  color: #48433d;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.football-pro-fixture-teams strong {
  color: var(--text, #171512);
  font-size: 0.62rem;
  white-space: nowrap;
}

.football-pro-fixture-row time {
  color: #8c867c;
  font-size: 0.55rem;
  white-space: nowrap;
}

.football-pro-empty {
  margin: 0.55rem 0 0;
  color: var(--muted, #5f5a51);
  font-size: 0.68rem;
}

.football-pro-comparison-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.football-pro-comparison-head > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  color: var(--text, #171512);
  font-size: 0.7rem;
  font-weight: 850;
}

.football-pro-comparison-head > span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.football-pro-comparison-head .football-team-logo,
.football-pro-comparison-head img {
  width: 1.45rem;
  height: 1.45rem;
}

.football-pro-comparison-row {
  display: grid;
  grid-template-columns: minmax(2.5rem, 1fr) 1.4fr minmax(2.5rem, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  border-top: 1px solid rgba(24, 22, 19, 0.06);
}

.football-pro-comparison-row span {
  color: #777168;
  font-size: 0.64rem;
  font-weight: 750;
  text-align: center;
}

.football-pro-comparison-row strong {
  color: var(--text, #171512);
  font-size: 0.78rem;
}

.football-pro-comparison-row strong:last-child {
  text-align: right;
}

.football-pro-probabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.football-pro-probabilities > div {
  padding: 0.65rem 0.4rem;
  border: 1px solid rgba(191, 132, 43, 0.16);
  border-radius: 0.8rem;
  background: #fbf7ef;
  text-align: center;
}

.football-pro-probabilities span,
.football-pro-probabilities strong {
  display: block;
}

.football-pro-probabilities span {
  color: #756e64;
  font-size: 0.58rem;
}

.football-pro-probabilities strong {
  margin-top: 0.15rem;
  color: var(--gold-2, #9c681d);
  font-size: 0.92rem;
}

.football-pro-card--probability p,
.football-pro-card--probability small {
  display: block;
  margin: 0.65rem 0 0;
  color: var(--muted, #5f5a51);
  font-size: 0.68rem;
  line-height: 1.4;
}

.football-pro-injuries {
  display: grid;
  gap: 0.4rem;
}

.football-pro-injuries > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1.2fr);
  gap: 0.45rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(24, 22, 19, 0.06);
}

.football-pro-injuries > div:first-child {
  border-top: 0;
}

.football-pro-injuries strong {
  color: var(--text, #171512);
  font-size: 0.7rem;
}

.football-pro-injuries span {
  color: var(--muted, #5f5a51);
  font-size: 0.65rem;
  text-align: right;
}

@media (max-width: 430px) {
  .football-pro-title {
    align-items: start;
  }

  .football-pro-title small {
    max-width: 8rem;
    font-size: 0.61rem;
  }

  .football-pro-recent-grid {
    gap: 0.48rem;
  }

  .football-pro-card__body {
    padding-inline: 0.68rem;
  }

  .football-pro-fixture-row {
    grid-template-columns: 1.15rem minmax(0, 1fr);
  }

  .football-pro-fixture-row time {
    display: none;
  }

  .football-pro-fixture-teams small {
    max-width: 4.2rem;
  }
}

@media (max-width: 355px) {
  .football-pro-recent-grid {
    grid-template-columns: 1fr;
  }
}
