/* ═══════════════════════════════════════════
   Player pucks — shared by the Player Directory and the
   admin console's User Editor so both look identical.
   ═══════════════════════════════════════════ */

.players-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-puck {
  background: linear-gradient(135deg, rgba(50, 50, 100, 0.4) 0%, rgba(100, 50, 150, 0.3) 100%);
  border: 2px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 1.875rem;
  display: flex;
  align-items: center;
  gap: 1.875rem;
  transition: all 0.2s;
  min-height: 175px;
  justify-content: space-between;
}

.player-puck:hover {
  background: linear-gradient(135deg, rgba(50, 50, 100, 0.5) 0%, rgba(100, 50, 150, 0.4) 100%);
  border-color: rgba(255,255,255,0.25);
}

.player-puck.current-user {
  background: linear-gradient(90deg, #8c52ff 0%, #ff914d 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.player-picture {
  width: 114px;
  height: 114px;
  min-width: 114px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.player-name {
  font-family: 'Sugo Display Bold', 'Arial Black', sans-serif;
  font-size: 1.75rem;
  color: #fff;
  margin: 0;
  word-break: break-word;
}

.player-preferred {
  font-family: 'Lexend', Arial, sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.player-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #efd161;
  color: #000;
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.player-badge .material-icons {
  font-size: 0.9rem;
  line-height: 1;
}

.player-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Sugo Display Bold', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-primary-small {
  background: #efd161;
  color: #000;
}

.btn-primary-small:hover:not(:disabled) {
  background: #fbe884;
  transform: translateY(-1px);
}

.btn-primary-small:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary-small {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary-small:hover {
  border-color: #efd161;
  color: #efd161;
}

.player-you {
  font-family: 'Sugo Display Bold', 'Arial Black', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

.btn-profile {
  font-size: 1.2rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(90deg, #7e1ad8 0%, #992bff 50%, #d6abff 100%) !important;
  color: #fff !important;
}

.btn-profile:hover:not(:disabled) {
  background: linear-gradient(90deg, #6b139f 0%, #7f1fcc 50%, #c599e8 100%) !important;
}

.player-puck .btn-small,
.player-puck .btn-small:hover,
.player-puck .btn-small span {
  text-decoration: none;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top: 3px solid #efd161;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
  .player-puck {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    min-height: auto;
    justify-content: center;
  }

  .player-picture {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }

  .player-info {
    order: 2;
    width: 100%;
  }

  .player-actions {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

.btn-instagram-small {
  background: linear-gradient(90deg, #7e1ad8 0%, #992bff 50%, #d6abff 100%);
  color: #fff !important;
  border: none;
  gap: 0.4rem;
}

.btn-instagram-small:hover {
  background: linear-gradient(90deg, #6b139f 0%, #7f1fcc 50%, #c599e8 100%);
  opacity: 0.9;
}

.btn-instagram-small i {
  font-size: 1rem;
}

.btn-instagram-small span {
  font-size: 0.8rem;
}

/* ─── Disabled puck buttons (blank pucks) ─── */
.player-puck .btn-small:disabled,
.player-puck .btn-small:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.4);
}

/* ─── Blank player pucks (unfilled player slots) ─── */
.player-picture.skeleton {
  border-color: rgba(255, 255, 255, 0.2);
}

.blank-puck .pending-dots {
  display: inline-block;
  min-width: 1.5em;
  text-align: left;
}

/* ─── Admin puck actions ─── */
.btn-delete-small {
  background: #ff6b6b;
  color: #fff;
}

.btn-delete-small:hover:not(:disabled) {
  background: #ff8888;
  transform: translateY(-1px);
}
