/* Moroccan All-Time XI — pitch with 4 rows of slots (4-3-3), plus a
   player picker modal and community aggregate view. */

.axi-views {
  display: flex;
  gap: 0;
  background: var(--tg-surface);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.axi-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--tg-dim);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.axi-tab.active {
  background: var(--tg-gold);
  color: #0a1122;
}

.axi-pitch {
  background:
    linear-gradient(180deg, #2a7a3c 0%, #205e2f 100%);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
  min-height: 420px;
}
.axi-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.axi-slot {
  width: 72px;
  height: 92px;
  background: rgba(0,0,0,0.3);
  border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 10px;
  text-align: center;
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.axi-slot.filled {
  background: rgba(255,255,255,0.95);
  color: #0a1122;
  border-style: solid;
  border-color: var(--tg-gold);
}
.axi-slot img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.1);
}
.axi-slot .n { font-weight: 700; font-size: 10px; text-align: center; line-height: 1.1; }
.axi-slot .p { font-size: 9px; color: var(--tg-dim); letter-spacing: 1px; }

.axi-picker {
  position: fixed;
  inset: 0;
  background: rgba(10,17,34,0.92);
  z-index: 100;
  padding: 16px;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}
.axi-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--tg-gold);
  font-family: inherit;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}

/* Formation picker — shown before the pitch. */
.axi-formation-picker {
  text-align: center;
  padding: 10px 4px 24px;
}
.axi-formation-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tg-dim);
  margin-bottom: 16px;
}
.axi-formation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.axi-formation-btn {
  background: var(--bg-card, #000);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  color: var(--text, #fff);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.axi-formation-btn:hover { border-color: var(--ma-red, #ceff28); }
.axi-formation-btn__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ma-red, #ceff28);
  letter-spacing: 1px;
}
.axi-formation-btn__sub {
  font-size: 11px;
  color: var(--tg-dim, rgba(255,255,255,0.65));
  font-weight: 600;
  letter-spacing: 0.5px;
}

.axi-chosen-formation {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--ma-red, #ceff28);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
