/* Estilos del formulario de upload, reutilizados dentro de #upload-modal */
.field-label {
  display: block;
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.team-search {
  width: 100%;
  padding: 0.75em 1em;
  margin-bottom: var(--space-sm);
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-base);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.team-grid__status {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  margin: 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 70px;
  background: var(--color-surface-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.team-card:hover {
  border-color: var(--color-border);
}

.team-card.is-selected {
  border-color: var(--color-accent);
  background: var(--color-surface);
  transform: scale(1.05);
}

.team-card__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.team-card__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
}

.team-card__name {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drop-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg) var(--space-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop-zone:hover,
.drop-zone.is-dragover {
  border-color: var(--color-accent);
  background: rgba(0, 255, 66, 0.05);
}

.drop-zone__cta {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.drop-zone__hint {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.preview-image {
  max-width: 100%;
  max-height: 320px;
  margin: var(--space-md) auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.preview-image[hidden] {
  display: none;
}

.form-error {
  color: #ff5c5c;
  font-size: var(--fs-sm);
  margin: var(--space-sm) 0;
}

.form-error[hidden] {
  display: none;
}

.rate-limit-msg {
  max-width: 520px;
  margin: var(--space-sm) auto 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.rate-limit-msg[hidden] {
  display: none;
}

#submit-btn {
  width: 100%;
  margin-top: var(--space-sm);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  overflow: hidden;
  margin-top: var(--space-md);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
  border-radius: inherit;
  transition: width 0.2s ease;
}

.progress-bar--indeterminate {
  width: 100% !important;
  background-size: 200% 100%;
  animation: mf-progress-pulse 1.2s ease-in-out infinite;
}

@keyframes mf-progress-pulse {
  0% {
    background-position: 200% 0;
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: -200% 0;
    opacity: 0.5;
  }
}

.result-icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}
