/* =========================
   PLAYER LIST · FECOD PRO
========================= */

:root {
  --pl-brand-ink: #010729;
  --pl-brand-navy: #001e46;
  --pl-brand-blue: #004b9c;
  --pl-brand-blue-soft: #afdff9;
  --pl-brand-border: rgba(132, 170, 227, 0.28);
  --pl-surface-card: linear-gradient(155deg, rgba(7, 20, 42, 0.92), rgba(3, 10, 23, 0.96));
  --pl-surface-item: linear-gradient(145deg, rgba(8, 24, 51, 0.85), rgba(4, 14, 32, 0.88));
  --pl-surface-item-hover: linear-gradient(145deg, rgba(9, 33, 72, 0.92), rgba(6, 20, 47, 0.94));
}

.custom-grey {
  background: var(--pl-surface-card) !important;
  border: 1px solid var(--pl-brand-border) !important;
}

.player-list {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pl-brand-border);
  background: linear-gradient(150deg, rgba(8, 24, 50, 0.78), rgba(4, 14, 33, 0.86));
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* ITEM */
.player-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(132, 170, 227, 0.2);
  background: var(--pl-surface-item);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.player-list-item:last-child {
  border-bottom: 0;
}

.player-list-item:hover {
  background: var(--pl-surface-item-hover);
  border-bottom-color: rgba(173, 223, 249, 0.42);
  transform: translateY(-1px);
}

/* IZQUIERDA */
.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Avatar */
.player-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.player-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

/* Nombre */
.player-name {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: .15rem;
  transition: color .15s ease, text-shadow .15s ease;
}

.player-list-item:hover .player-name {
  color: #93c5fd;
  text-shadow: 0 0 14px rgba(59,130,246,.25);
}

/* Meta */
.player-meta {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* DERECHA */
.player-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badge puntos */
.player-points {
  background: rgba(59,130,246,.18) !important;
  border: 1px solid rgba(59,130,246,.45) !important;
  color: #dbeafe !important;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.player-list-item:hover .player-points {
  box-shadow: 0 0 26px rgba(59,130,246,.45);
  transform: scale(1.04);
}


/* =========================
   FILTER BAR (FECOD STYLE)
========================= */

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  background: linear-gradient(155deg, rgba(8, 24, 51, 0.7), rgba(4, 13, 30, 0.82));
  border: 1px solid var(--pl-brand-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(173, 223, 249, 0.08);
}

.filter-label {
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
}

.filter-input,
.filter-select {
  background: linear-gradient(140deg, rgba(5, 20, 44, 0.7), rgba(3, 14, 31, 0.8));
  border: 1px solid rgba(132, 170, 227, 0.26);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: .6rem .75rem;
}

.filter-input:focus,
.filter-select:focus {
  background: rgba(5,7,13,.75);
  border-color: rgba(59,130,246,.55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.btn-filter-submit {
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
}

.btn-clear-filter {
  position: absolute;
  top: 50%;
  right: 2.8rem;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  border-radius: 10px;
}

.btn-clear-filter:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.filter-action-btn {
  min-width: 130px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(64, 126, 224, .55);
  background: rgba(7, 20, 46, .72);
  color: #edf4ff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.filter-action-btn:hover,
.filter-action-btn:focus-visible {
  color: #fff;
  border-color: rgba(116, 182, 255, .82);
  background: rgba(11, 36, 82, .84);
  box-shadow: 0 0 0 2px rgba(64, 126, 224, .22);
}

.filter-action-search {
  min-width: 150px;
  background: rgba(2, 13, 34, .58);
  border-color: transparent;
}

.filter-action-clear {
  min-width: 168px;
}

/* =========================
   PAGINATION (DARK)
========================= */

.pagination .page-link {
  background-color: rgba(5,7,13,.65);
  border: 1px solid rgba(255,255,255,.12);
  color: #e5e7eb;
}

.pagination .page-link:hover {
  background-color: rgba(59,130,246,.25);
  border-color: rgba(59,130,246,.5);
  color: #fff;
}

.pagination .page-item.active .page-link {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #020409;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .filter-action-btn {
    min-width: 140px;
  }
}

@media (max-width: 576px) {
  .player-thumb {
    width: 44px;
    height: 44px;
  }

  .player-name {
    font-size: .9rem;
  }

  .player-points {
    padding: 6px 10px;
    font-size: .8rem;
  }
}
