/* ==========================================
   MODALS & INLINE ACTION BUTTONS
   ========================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 48, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card.mini-modal { max-width: 400px; }
.modal-card.full-article-modal { max-width: 680px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close::before, .modal-close::after { display: none !important; }

.goals-management-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.team-goals-column {
  background: #f9fafb;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.team-goals-column h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 10px;
}

.scorers-chip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
  margin-bottom: 12px;
}

.scorer-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scorer-chip button {
  background: transparent;
  border: none;
  color: var(--red-accent);
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.add-goal-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-goal-box select {
  font-size: 0.75rem;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--navy-primary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-light); border-radius: 8px; font-size: 0.85rem; outline: none; background: #fff;
}

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; }

.club-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.club-detail-header img { width: 50px; height: 50px; object-fit: contain; }
.players-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.players-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }

/* FIX 2: PERFECT FLEX ALIGNMENT FOR PLAYER LIST ITEMS & DELETE BUTTONS */
.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 0.85rem;
}

.player-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon-action {
  background: #f3f4f6;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-delete-inline {
  background: #fee2e2;
  color: var(--red-accent);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.add-player-form { display: flex; gap: 8px; margin-top: 12px; }
.add-player-form input { flex: 1; padding: 6px 10px; border: 1px solid var(--border-light); border-radius: 6px; font-size: 0.8rem; }