/* Predator Eleven — Mobile Transferts */

.m-tr-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-tr-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  align-items: end;
}

.m-tr-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-tr-filters > .m-tr-label:nth-child(1) { grid-column: 1; grid-row: 1; }
.m-tr-filters > .transferts-sort-field:nth-child(2) { grid-column: 1; grid-row: 2; }
.m-tr-filters > .m-tr-label:nth-child(3) { grid-column: 2; grid-row: 1; }
.m-tr-filters > .transferts-sort-field:nth-child(4) { grid-column: 2; grid-row: 2; }
/* Historique : filtre Club (enfants 5–6) sous Poste / Tri */
.m-tr-filters > .m-tr-label:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
.m-tr-filters > .transferts-sort-field:nth-child(6) { grid-column: 1 / -1; grid-row: 4; }

.m-tr-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--m-border);
  color: var(--m-muted);
  font-size: 0.88rem;
}

.m-tr-count strong {
  color: var(--m-text);
  font-variant-numeric: tabular-nums;
}

.poste-badge.poste-G,
.m-badge.poste-G { background: #a16207; color: #fffbeb; }
.poste-badge.poste-D,
.m-badge.poste-D { background: #1d4ed8; color: #eff6ff; }
.poste-badge.poste-M,
.m-badge.poste-M { background: #15803d; color: #ecfdf5; }
.poste-badge.poste-A,
.m-badge.poste-A { background: #b91c1c; color: #fef2f2; }

/* Carte marché : infos pleine largeur, action en dessous */
.m-list.marche-table .m-row.marche-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.m-list.marche-table .marche-joueur {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.m-list.marche-table .marche-joueur-main {
  flex: 1;
  min-width: 0;
}

.m-list.marche-table .marche-row .effectif-nom,
.m-list.marche-table .marche-row .m-row-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.m-list.marche-table .effectif-vendeur {
  margin-top: 4px;
  color: var(--m-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.m-list.marche-table .effectif-trajet {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--m-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.m-list.marche-table .effectif-trajet .effectif-vendeur,
.m-list.marche-table .effectif-trajet .effectif-acheteur {
  margin-top: 0;
}

.m-list.marche-table .effectif-action {
  width: 100%;
  display: flex;
  justify-content: stretch;
}

.m-list.marche-table .effectif-action .m-btn {
  width: 100%;
  max-width: none;
  white-space: normal;
  font-size: 0.84rem;
  padding: 0 12px;
  min-height: 40px;
}

.m-list.marche-table .marche-prix-info {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--m-muted);
  font-weight: 600;
  font-size: 0.86rem;
  text-align: center;
}

.loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
  animation: m-spin 0.8s linear infinite;
}

@keyframes m-spin {
  to { transform: rotate(360deg); }
}

.popup-vendre-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--m-safe-bottom));
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.popup-vendre-overlay[hidden] {
  display: none !important;
}

.popup-vendre-content {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, #152033 0%, #0d1524 100%);
  border: 1px solid var(--m-border);
  box-shadow: var(--m-shadow);
  animation: m-fade-up 0.28s ease both;
}

.popup-vendre-content h3 {
  margin: 0 0 10px;
  font-family: var(--m-display);
  font-size: 1.15rem;
}

.popup-vendre-nom,
.popup-vendre-prix {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-weight: 600;
}

.popup-vendre-alerte {
  margin: 0 0 18px;
  color: #fca5a5;
  font-size: 0.88rem;
}

.popup-vendre-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.popup-vendre-actions .m-btn {
  width: 100%;
}
