/* =====================================================
   PLAYERS MODULE — Isolated CSS
   /jugadores directory + /jugadores/:slug profile
   ===================================================== */

/* ── Variables ───────────────────────────────────────── */
:root {
  --pl-primary:       #667eea;
  --pl-primary-dark:  #4f63d2;
  --pl-accent:        #40f29b;
  --pl-accent-dark:   #27c97e;
  --pl-surface:       #0f172a;
  --pl-surface-2:     #1e293b;
  --pl-surface-3:     #334155;
  --pl-text:          #f1f5f9;
  --pl-text-muted:    #94a3b8;
  --pl-border:        rgba(255,255,255,0.08);
  --pl-gold:          #f59e0b;
  --pl-radius:        14px;
  --pl-radius-sm:     8px;
  --pl-shadow:        0 4px 24px rgba(0,0,0,0.18);
  --pl-shadow-lg:     0 12px 48px rgba(0,0,0,0.28);
}

/* ── Level badge colours ─────────────────────────────── */
.pl-level--BEGINNER       { --lc: #22c55e; }
.pl-level--INTERMEDIATE   { --lc: #3b82f6; }
.pl-level--INTERMEDIATE_HIGH { --lc: #8b5cf6; }
.pl-level--ADVANCED       { --lc: #f59e0b; }
.pl-level--OPEN           { --lc: #ef4444; }

/* ─────────────────────────────────────────────────────
   LIST PAGE — /jugadores
   ───────────────────────────────────────────────────── */

/* ── Hero (photo + overlay, like profesionales) ─────── */
.players-hero {
  position: relative;
  color: #fff;
  min-height: 330px;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.players-hero-bg,
.players-hero-overlay {
  position: absolute;
  inset: 0;
}

.players-hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(0.85);
}

.players-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(102, 126, 234, 0.78) 48%, rgba(102, 126, 234, 0.60));
}

.players-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
}

.players-hero-left {
  flex: 1;
  min-width: 0;
}

.players-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  flex-shrink: 0;
}

.players-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c7d2fe;
  background: rgba(102, 126, 234, 0.18);
  border: 1px solid rgba(102, 126, 234, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.players-hero h1,
.players-hero p.players-hero-title {
  max-width: 760px;
  margin: 0.75rem 0 0.5rem;
  color: #ffffff !important;
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.players-hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

/* Stats bar at the bottom of hero */
.players-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.players-stat {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.38);
}

.players-stat strong {
  display: block;
  color: #a5b4fc;
  font-size: 1.55rem;
  line-height: 1;
}

.players-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

/* ── Page wrapper ───────────────────────────────────── */
.players-page {
  background: #DCFCE7;
  padding: 2rem 0 3rem;
}

/* ── Tu perfil de jugador — summary card ──────────────
   Visible only to logged-in users, placed above the
   search panel (inside .players-page > .container).
   ─────────────────────────────────────────────────── */
.player-profile-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #f0f3ff 0%, #e8eeff 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--pl-radius, 14px);
}

.pps-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pps-avatar-wrap { flex-shrink: 0; }

.pps-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a5b4fc;
}

.pps-avatar-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pl-primary), var(--pl-accent-dark));
  border: 2px solid #a5b4fc;
  flex-shrink: 0;
}

.pps-identity {
  min-width: 0;
}

.pps-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #667eea;
  margin-bottom: 0.1rem;
}

.pps-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.pps-facts {
  display: flex;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.pps-fact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pps-fact__key {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.pps-fact__key i {
  font-size: 0.7rem;
  color: #a5b4fc;
}

.pps-fact__val {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.pps-fact__val--missing {
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}

.pps-fact__val--active {
  color: #16a34a;
}

.pps-cta {
  flex-shrink: 0;
  margin-left: auto;
}

.pps-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #a5b4fc;
  background: #fff;
  color: var(--pl-primary-dark);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.pps-cta-btn:hover {
  background: var(--pl-primary);
  border-color: var(--pl-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.pps-cta-btn--complete {
  background: var(--pl-primary);
  border-color: var(--pl-primary);
  color: #fff;
}

.pps-cta-btn--complete:hover {
  background: var(--pl-primary-dark);
  border-color: var(--pl-primary-dark);
}

@media (max-width: 767.98px) {
  .player-profile-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .pps-facts {
    gap: 0.5rem 1rem;
    width: 100%;
  }

  .pps-cta {
    width: 100%;
    margin-left: 0;
  }

  .pps-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .pps-name {
    max-width: 200px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .player-profile-summary {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .pps-facts {
    gap: 0.5rem 1rem;
  }
}

/* ── Panels (search, results, strips) ──────────────── */
.players-search-panel,
.players-owner-strip,
.players-results,
.players-alert-strip {
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(24, 39, 75, 0.06);
}

.players-search-panel {
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
  padding: 1.25rem;
}

.players-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.players-search-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1f2937;
}

/* Quick filter pills */
.quick-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.quick-filter:hover,
.quick-filter.active {
  border-color: var(--pl-primary);
  background: #eef2ff;
  color: var(--pl-primary-dark);
}

.pl-quick--BEGINNER.active       { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
.pl-quick--INTERMEDIATE.active   { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.pl-quick--INTERMEDIATE_HIGH.active { border-color: #8b5cf6; background: #f5f3ff; color: #6d28d9; }
.pl-quick--ADVANCED.active       { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.pl-quick--OPEN.active           { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }

/* Filter form row */
.players-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
}

.filter-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.players-partner-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  transition: all 0.15s;
  white-space: nowrap;
}

.players-partner-toggle:hover,
.players-partner-toggle.active {
  border-color: var(--pl-primary);
  color: var(--pl-primary);
  background: #eef2ff;
}

.players-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.players-active-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.players-active-chips .quick-filter {
  max-width: 100%;
  white-space: normal;
  line-height: 1.15;
}

.filter-field--sort {
  min-width: 220px;
}

.filter-field--sort form {
  margin: 0;
}

/* Owner strip */
.players-owner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-color: rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.players-owner-strip div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.players-owner-strip strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.players-owner-strip span {
  color: #64748b;
  font-size: 0.9rem;
}

/* Results section */
.players-results {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.players-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.players-section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1f2937;
}

.players-section-heading p {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Alert / CTA strip */
.players-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fff7d6;
  border-color: #f2d56b;
}

.players-alert-strip h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f2937;
}

.players-alert-strip p {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  max-width: 540px;
}

/* Empty state */
.players-empty-state {
  margin-top: 1rem;
  padding: 3rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.players-empty-state > i {
  color: #94a3b8;
  font-size: 2rem;
}

.players-empty-state h3 {
  margin: 0.75rem 0 0.35rem;
  font-weight: 800;
}

.players-empty-state p {
  max-width: 500px;
  margin: 0 auto 1rem;
  color: #64748b;
}

/* Grid */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .players-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Hero CTA buttons (anon) — layout gestionado en .players-hero-content */

.btn-accent-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 1.35rem;
  background: #40f29b;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-accent-hero:hover {
  background: #27c97e;
  color: #0f172a;
  transform: translateY(-1px);
  text-decoration: none;
}

.players-hero-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.6rem 1.35rem;
  background: rgba(64, 242, 155, 0.2);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.players-hero-login-link:hover {
  background: rgba(64, 242, 155, 0.32);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Value proposition block (anon users) */
.players-value-prop {
  background: #f0f4ff;
  border-bottom: 1px solid #dde6f7;
  padding: 1rem 0;
}

.players-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.players-value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
}

.players-value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(102, 126, 234, 0.12);
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.players-value-text {
  min-width: 0;
}

.players-value-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.players-value-text span {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .players-value-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .players-value-item {
    padding: 0.5rem 0;
  }

  .players-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .players-hero-ctas {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

/* Location hint (proximity filters disabled) */
.players-location-hint {
  font-size: 0.84rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.players-location-hint i {
  color: #94a3b8;
}

.players-location-hint a {
  color: var(--pl-primary-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* Section "Ver más" link */
.players-section-more {
  margin-top: 0.85rem;
  text-align: right;
}

.players-section-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pl-primary-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.players-section-more a:hover {
  color: var(--pl-primary);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .players-hero {
    min-height: 0;
    padding: 1.75rem 0 3.25rem;
  }

  .players-hero h1,
  .players-hero p.players-hero-title { font-size: 1.8rem; text-align: center; }
  .players-hero p  { font-size: 0.95rem; text-align: center; }

  .players-stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
  }

  .players-stat { padding: 0.7rem 0.45rem; }
  .players-stat strong { font-size: 1.25rem; }
  .players-stat span { font-size: 0.72rem; }

  .players-page { padding-top: 0; }
  .players-search-panel { margin-top: -2.75rem; }

  .players-filter-row {
    grid-template-columns: 1fr;
  }

  .players-toolbar {
    align-items: stretch;
    gap: 0.5rem;
  }

  .filter-field--sort {
    min-width: 100%;
  }

  .players-active-chips {
    gap: 0.4rem;
  }

  .players-active-chips .quick-filter {
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
    min-height: 30px;
  }

  .quick-filters {
    gap: 0.4rem;
  }

  .quick-filter {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    min-height: 30px;
  }

  .players-section-heading,
  .players-owner-strip,
  .players-alert-strip {
    flex-direction: column;
  }

  .players-search-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }
  .players-search-header h2 {
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
    overflow: visible;
    text-overflow: unset;
  }
  .players-search-header-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .players-alert-strip { align-items: stretch; }
}

/* Tablet simplification */
@media (max-width: 991.98px) and (min-width: 768px) {
  .players-hero h1,
  .players-hero p.players-hero-title { text-align: center; }
  .players-hero p { text-align: center; }

  /* Avoid duplicated level controls on tablet: keep only dropdown filters */
  .quick-filters {
    display: none;
  }

  .players-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .filter-field--action {
    grid-column: span 2;
  }

  .filter-field--action .players-partner-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile simplification */
@media (max-width: 767.98px) {
  /* Avoid duplicated level controls on mobile: keep only dropdown filters */
  .quick-filters {
    display: none;
  }
}

/* Player Card */
.player-card {
  background: #fff;
  border: 1.5px solid #e8edf2;
  border-radius: var(--pl-radius);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pl-primary), var(--pl-accent));
  opacity: 0;
  transition: opacity 0.18s;
}
.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(102,126,234,0.15);
  border-color: #c7d2fe;
  color: inherit;
  text-decoration: none;
}
.player-card:hover::before { opacity: 1; }

.player-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #e8edf2;
  flex-shrink: 0;
}
.player-card__avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pl-primary), var(--pl-accent-dark));
  border: 2.5px solid #e8edf2;
}
.player-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.player-card__meta {
  min-width: 0;
}
.player-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-card__location {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.player-card__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.player-card__level {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--lc, #667eea) 12%, transparent);
  color: var(--lc, #667eea);
  border: 1px solid color-mix(in srgb, var(--lc, #667eea) 25%, transparent);
}
.player-card__looking {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.player-card__looking--active {
  background: rgba(22,163,74,.12);
  color: #16a34a;
  border-color: rgba(22,163,74,.25);
}
.player-card__availability-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 0.1rem;
}
.player-card__stats {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}
.player-card__stat {
  text-align: left;
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}
.player-card__stat-value {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}
.player-card__stat-value--text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-card__stat-label {
  font-size: 0.64rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Player card — icono compacto solo en móvil/tablet ─────────── */
.player-card__contact-icon { display: none; }

/* ── Player card — layout compacto móvil/tablet (≤991px) ────────── */
@media (max-width: 991.98px) {

  .player-card {
    padding: 0.7rem 0.85rem;
    gap: 0.5rem;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
  }
  .player-card::before { display: none; }
  .player-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(102,126,234,0.12);
    border-color: #c7d2fe;
  }

  /* FILA 1: avatar + nombre/ubicación + badges (nivel + busca pareja) */
  .player-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }
  .player-card__avatar,
  .player-card__avatar-placeholder {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
    border-width: 1.5px;
    flex-shrink: 0;
  }
  .player-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
  }
  .player-card__name {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-card__location {
    font-size: 0.73rem;
  }
  .player-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
  }
  .player-card__level,
  .player-card__looking {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
  }

  /* FILA 2: chips de disponibilidad */
  .player-card__availability-title { display: none; }
  .player-card__schedule-chips {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow: hidden;
    padding-top: 0.35rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
  }
  .player-card__schedule-chip {
    font-size: 0.68rem;
    padding: 0.12rem 0.4rem;
    flex-shrink: 0;
  }

  /* Stats: ocultos */
  .player-card__stats { display: none; }

  /* FILA 3: acciones en fila horizontal */
  .player-card__actions {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
  }
  .player-card__view-btn,
  .player-card__contact-btn {
    flex: 1;
    justify-content: center;
    min-height: 34px;
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
  }
}

/* ─────────────────────────────────────────────────────
   DETAIL PAGE — /jugadores/:slug
   ───────────────────────────────────────────────────── */

/* Profile hero */
.player-profile-hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #0f1e2a 100%);
  padding: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
}
.player-profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 10% 50%, rgba(102,126,234,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(64,242,155,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.player-profile-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
}
@media (max-width: 576px) {
  .player-profile-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    padding-bottom: 1.5rem;
  }
}

.player-profile-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 1px rgba(102,126,234,0.4), var(--pl-shadow-lg);
  flex-shrink: 0;
}
.player-profile-hero__avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pl-primary), var(--pl-accent-dark));
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 1px rgba(102,126,234,0.4), var(--pl-shadow-lg);
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .player-profile-hero__avatar,
  .player-profile-hero__avatar-placeholder {
    width: 90px; height: 90px;
    font-size: 1.8rem;
    margin: 0 auto;
  }
}

.player-profile-hero__name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}
.player-profile-hero__chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
@media (max-width: 576px) {
  .player-profile-hero__chips { justify-content: center; }
}
.player-profile-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
}
.player-profile-hero__chip--level {
  background: color-mix(in srgb, var(--lc, var(--pl-primary)) 25%, transparent);
  border-color: color-mix(in srgb, var(--lc, var(--pl-primary)) 40%, transparent);
  color: color-mix(in srgb, var(--lc, var(--pl-primary)) 80%, #fff);
}
.player-profile-hero__chip--looking {
  background: rgba(64,242,155,0.15);
  border-color: rgba(64,242,155,0.35);
  color: var(--pl-accent);
}
.player-profile-hero__location {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 576px) {
  .player-profile-hero__location { justify-content: center; }
}
.player-profile-hero__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
@media (max-width: 576px) {
  .player-profile-hero__actions { justify-content: center; }
}

/* Stats strip */
.player-stats-strip {
  background: var(--pl-surface-2);
  border-bottom: 1px solid var(--pl-border);
}
.player-stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--pl-border);
}
@media (max-width: 576px) {
  .player-stats-strip__inner { grid-template-columns: repeat(2, 1fr); }
}
.player-stats-strip__item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--pl-border);
}
.player-stats-strip__item:last-child { border-right: none; }
.player-stats-strip__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pl-accent);
  line-height: 1;
}
.player-stats-strip__label {
  font-size: 0.72rem;
  color: var(--pl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
}

/* Profile body */
.player-profile-body {
  background: #f8fafc;
  padding: 2.5rem 0 4rem;
}

/* Section cards */
.player-section {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: var(--pl-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.player-section__header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.player-section__title i {
  color: var(--pl-primary);
  font-size: 1rem;
}
.player-section__body {
  padding: 1.25rem 1.5rem;
}

/* Bio */
.player-bio {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* Schedule chips */
.player-schedule-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.player-schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: #f0f3ff;
  color: var(--pl-primary-dark);
  border: 1px solid #c7d2fe;
}

/* Event list */
.player-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.player-event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: var(--pl-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.13s, border-color 0.13s;
}
.player-event-item:hover {
  background: #f8fafc;
  border-color: #e0e7ff;
  color: inherit;
  text-decoration: none;
}
.player-event-item__date {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  background: #f1f5f9;
  border-radius: var(--pl-radius-sm);
  padding: 0.35rem 0;
}
.player-event-item__day {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.player-event-item__month {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}
.player-event-item__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-event-item__club {
  font-size: 0.75rem;
  color: #64748b;
}
.player-event-type {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: #f0f3ff;
  color: var(--pl-primary);
}

/* Circuit rankings */
.player-circuit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.player-circuit-item:last-child { border-bottom: none; }
.player-circuit-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #475569;
}
.player-circuit-rank--gold   { background: #fef9c3; color: #a16207; }
.player-circuit-rank--silver { background: #f1f5f9; color: #475569; }
.player-circuit-rank--bronze { background: #fef3c7; color: #92400e; }
.player-circuit-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}
.player-circuit-category {
  font-size: 0.75rem;
  color: #64748b;
}
.player-circuit-points {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pl-accent-dark);
  flex-shrink: 0;
}

/* CTA sidebar card */
.player-cta-card {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border-radius: var(--pl-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  position: sticky;
  top: 80px;
}
.player-cta-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.player-cta-card__body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.player-cta-card .btn-accent {
  background: var(--pl-accent);
  color: #0f172a;
  font-weight: 700;
  border: none;
  border-radius: var(--pl-radius-sm);
  padding: 0.65rem 1.5rem;
  width: 100%;
  transition: background 0.15s, transform 0.15s;
}
.player-cta-card .btn-accent:hover {
  background: var(--pl-accent-dark);
  transform: translateY(-1px);
}
.player-cta-card__divider {
  margin: 1.25rem 0;
  border-color: rgba(255,255,255,0.1);
}
.player-cta-card__share {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Own profile banner */
.player-own-banner {
  background: linear-gradient(90deg, #f0f3ff, #e0e7ff);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--pl-radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.player-own-banner i { color: var(--pl-primary); font-size: 1.2rem; }
.player-own-banner p { margin: 0; font-size: 0.88rem; color: #3730a3; }

/* Pagination */
.players-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .players-pagination {
    padding: 1rem 0;
    gap: 0.35rem;
  }

  .players-pagination a,
  .players-pagination span {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }
}
.players-pagination a,
.players-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--pl-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  transition: all 0.15s;
}
.players-pagination a:hover {
  border-color: var(--pl-primary);
  color: var(--pl-primary);
  background: #f0f3ff;
}
.players-pagination .active {
  background: var(--pl-primary);
  border-color: var(--pl-primary);
  color: #fff;
}
.players-pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Utility: member since */
.player-member-since {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─────────────────────────────────────────────────────
   TARJETA ANÓNIMA — perfil DISCOVERABLE
   Muestra nivel + ciudad + disponibilidad sin revelar
   nombre, avatar ni enlace al perfil (RGPD)
   ───────────────────────────────────────────────────── */

.player-card--anon {
  cursor: default;
  background: #fff;
  border: 1.5px dashed #e2e8f0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--pl-radius, 14px);
  transition: box-shadow 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}
.player-card--anon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.player-card--anon:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.player-card--anon:hover::before { opacity: 1; }

/* Avatar anónimo genérico */
.player-card__avatar-anon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #94a3b8;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 2.5px dashed #cbd5e1;
}

/* Etiqueta de privacidad */
.player-card__privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

/* Botón contacto en tarjeta anónima */
.player-card__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--pl-primary, #667eea);
  background: transparent;
  color: var(--pl-primary, #667eea);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-top: auto;
}
.player-card__contact-btn:hover {
  background: var(--pl-primary, #667eea);
  color: #fff;
}
.player-card__contact-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Player card conversion-focused vertical layout overrides */
.player-card {
  gap: 0.75rem;
}

.player-card__actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed #dbe3ee;
}

.player-card__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
}

.player-card__view-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f8fafc;
}

.player-card__contact-btn {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 700;
}

.player-card__contact-btn--sent {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
  pointer-events: none;
}
.player-card__contact-btn--sent:hover {
  background: #f0fdf4;
  color: #16a34a;
}

/* Nombre anónimo */
.player-card__anon-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.15rem;
  font-style: italic;
}

/* Chips de horario en tarjeta anónima */
.player-card__schedule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}
.player-card__schedule-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.24rem 0.58rem;
  border-radius: 100px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* ── Resumen deportivo (perfil, tema claro) ── */
.player-sport-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.player-sport-summary__item {
  text-align: center;
  padding: 0.9rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
}
.player-sport-summary__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.player-sport-summary__sub {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
}
.player-sport-summary__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-top: 0.25rem;
  display: block;
}

/* ── Histórico de competiciones (perfil, tema claro) ── */
.player-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.player-history__row:last-child { border-bottom: none; }
.player-history__main { min-width: 0; flex: 1; }
.player-history__event {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}
.player-history__event:hover { color: #667eea; text-decoration: underline; }
.player-history__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.player-history__meta a { color: #667eea; text-decoration: none; }
.player-history__meta a:hover { text-decoration: underline; }
.player-history__result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-align: right;
}
.player-history__pos {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 0.4rem;
  background: #f1f5f9;
  color: #475569;
}
.player-history__pos--gold   { background: #fef9c3; color: #a16207; }
.player-history__pos--silver { background: #f1f5f9; color: #475569; }
.player-history__pos--bronze { background: #fef3c7; color: #92400e; }
.player-history__record { font-size: 0.82rem; font-weight: 600; color: #0f172a; }
.player-history__record-label { font-size: 0.68rem; color: #94a3b8; font-weight: 500; }
.player-history__points { font-size: 0.78rem; color: #16a34a; font-weight: 600; }

@media (max-width: 575.98px) {
  .player-sport-summary { grid-template-columns: repeat(2, 1fr); }
  .player-history__row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .player-history__result { width: 100%; justify-content: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   PLAYER SHOWCASE — ficha visual (inspirada en el showcase de tiendas)
   Hero oscuro tintado por nivel · KPI band claro · body en tarjetas claras
   ════════════════════════════════════════════════════════════════ */
.player-showcase { --acc: var(--lc, #667eea); background: #f7f8fb; }

/* ── HERO ── */
.player-showcase-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.25rem;
  isolation: isolate;
}
.player-showcase-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
}
.player-showcase-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 90%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 45%);
  opacity: .9;
}
.player-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.player-showcase-main { display: flex; gap: 1.5rem; align-items: flex-start; }
.player-hero-mark { flex-shrink: 0; }
.player-hero-avatar,
.player-hero-initials {
  width: 116px; height: 116px; border-radius: 24px;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--acc) 60%, #fff);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.player-hero-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #0f172a));
}
.player-hero-copy { min-width: 0; padding-top: .25rem; }
.player-hero-name {
  color: #fff; font-size: 2.1rem; font-weight: 800;
  margin: 0 0 .65rem; line-height: 1.1; letter-spacing: -.02em;
}
.player-hero-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .75rem; }
.player-hero-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 100px;
  background: rgba(255,255,255,.12); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.16);
}
.player-hero-chip i { font-size: .78rem; }
.player-hero-chip--level {
  background: color-mix(in srgb, var(--acc) 28%, transparent);
  color: #fff; border-color: color-mix(in srgb, var(--acc) 55%, transparent);
}
.player-hero-chip--looking { background: rgba(64,242,155,.2); color: #6ee7b7; border-color: rgba(64,242,155,.35); }
.player-hero-chip--verified { background: rgba(59,130,246,.22); color: #bfdbfe; border-color: rgba(59,130,246,.4); }
.player-hero-chip--active { background: rgba(22,163,74,.22); color: #bbf7d0; border-color: rgba(22,163,74,.4); }
.player-hero-chip--active i { font-size: .5rem; }
.player-hero-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.player-meta-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; color: #cbd5e1;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  padding: .3rem .65rem; border-radius: 8px;
}
.player-meta-pill i { font-size: .8rem; opacity: .85; }
.player-meta-pill--rel-high { color: #86efac; }
.player-meta-pill--rel-medium { color: #fcd34d; }
.player-meta-pill--rel-low { color: #fca5a5; }
.player-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.player-hero-actions .btn-outline-light { border-color: rgba(255,255,255,.25); }

/* Hero panel (engagement) — espejo del panel de acciones de tiendas */
.player-hero-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1.4rem;
  backdrop-filter: blur(6px);
}
.player-hero-panel__title {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; font-weight: 700; font-size: 1rem; margin: 0 0 .4rem;
}
.player-hero-panel__title i { color: var(--pl-accent); }
.player-hero-panel__body { color: #cbd5e1; font-size: .85rem; margin: 0 0 1rem; }
.player-hero-panel .btn-accent {
  background: var(--pl-accent); border-color: var(--pl-accent);
  color: #0f172a; font-weight: 700;
}
.player-hero-panel .btn-accent:hover { background: var(--pl-accent-dark); border-color: var(--pl-accent-dark); }
.player-hero-panel__note {
  font-size: .72rem; color: #94a3b8; margin: .9rem 0 0; text-align: center;
}

/* ── KPI BAND ── */
.player-kpi-band {
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  box-shadow: 0 6px 24px rgba(15,23,42,.06);
  position: relative; z-index: 1;
}
.player-kpi-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.player-kpi {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .15rem;
  padding: 1.5rem .75rem;
  border-right: 1px solid #f1f5f9;
}
.player-kpi:last-child { border-right: none; }
.player-kpi__icon { font-size: 1.15rem; color: var(--acc); margin-bottom: .2rem; }
.player-kpi__value { font-size: 1.7rem; font-weight: 800; color: #0f172a; line-height: 1; }
.player-kpi__unit { font-size: 1rem; font-weight: 700; color: #94a3b8; }
.player-kpi__label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: #94a3b8; margin-top: .35rem;
}

/* ── BODY ── */
.player-showcase-body { padding: 2.25rem 0 3rem; }
.player-section__header { display: flex; align-items: center; justify-content: space-between; }
.player-section__count {
  font-size: .75rem; font-weight: 700; color: #475569;
  background: #f1f5f9; border-radius: 100px; padding: .15rem .6rem;
}

/* Circuit rankings as cards */
.player-circuit-grid { display: grid; gap: .65rem; }
.player-circuit-card {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 12px;
}
.player-circuit-card__info { min-width: 0; flex: 1; }
.player-circuit-card__pts { text-align: right; flex-shrink: 0; }
.player-circuit-events { display: block; font-size: .72rem; color: #94a3b8; }

/* Timeline (histórico de competiciones) */
.player-timeline { display: flex; flex-direction: column; gap: .6rem; }
.player-timeline__item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; background: #f8fafc;
  border: 1px solid #f1f5f9; border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.player-timeline__item:hover { border-color: #e2e8f0; background: #fff; }
.player-timeline__pos {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #eef2f7; color: #475569;
}
.player-timeline__pos-num { font-size: 1rem; font-weight: 800; line-height: 1; }
.player-timeline__pos-cap { font-size: .58rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.player-timeline__pos--gold   { background: #fef9c3; color: #a16207; }
.player-timeline__pos--silver { background: #e2e8f0; color: #475569; }
.player-timeline__pos--bronze { background: #fde9d4; color: #9a3412; }
.player-timeline__pos--none { background: #f1f5f9; color: #cbd5e1; font-size: 1.1rem; }
.player-timeline__body { min-width: 0; flex: 1; }
.player-timeline__title {
  font-size: .95rem; font-weight: 700; color: #0f172a; text-decoration: none;
}
.player-timeline__title:hover { color: var(--acc); text-decoration: underline; }
.player-timeline__meta {
  display: flex; flex-wrap: wrap; gap: .25rem .85rem;
  margin: .3rem 0 .5rem; font-size: .76rem; color: #94a3b8;
}
.player-timeline__meta i { margin-right: .25rem; }
.player-timeline__meta a { color: var(--acc); text-decoration: none; }
.player-timeline__meta a:hover { text-decoration: underline; }
.player-timeline__stats { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: #475569; }
.player-timeline__stat strong { color: #0f172a; }
.player-timeline__stat--pts { color: #16a34a; font-weight: 600; }

/* Facts (aside) */
.player-facts { margin: 0; display: grid; gap: .8rem; }
.player-facts dt {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: #94a3b8; margin-bottom: .15rem;
}
.player-facts dd { margin: 0; font-weight: 600; color: #0f172a; font-size: .9rem; }
.player-fact-level { color: var(--acc); }
.player-fact-rel--high { color: #16a34a; }
.player-fact-rel--medium { color: #d97706; }
.player-fact-rel--low { color: #dc2626; }
.player-fact-rel__sub { color: #94a3b8; font-weight: 400; font-size: .76rem; }
.player-privacy-note {
  font-size: .72rem; color: #94a3b8; margin: 1rem 0 0;
  border-top: 1px solid #f1f5f9; padding-top: .85rem;
}
.player-privacy-note a { color: var(--pl-primary); }

/* ═════════════════════════════════════════════════════════════
   PROFILE DETAIL v2 — pd- prefix
   /jugadores/:slug  (new design, 2026)
   ═════════════════════════════════════════════════════════════ */

/* Page shell */
.pd-shell {
  background: radial-gradient(circle at top left, rgba(102,126,234,.12), transparent 28%),
              linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: calc(100vh - 80px);
}

/* ── HERO CARD ─────────────────────────────────────── */
.pd-hero {
  background: linear-gradient(135deg, #0f172a 0%, #334155 52%, #667eea 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 45px rgba(15,23,42,.09);
  overflow: hidden; position: relative; color: #fff; padding: 2rem;
}
.pd-hero::after {
  content: ''; position: absolute; right: -70px; top: -90px;
  width: 240px; height: 240px; border-radius: 999px;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.pd-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 5% 60%, rgba(102,126,234,.18) 0%, transparent 55%);
}
/* All text inside the hero must be white — the dark gradient background requires it */
.pd-hero, .pd-hero * { color: #fff; }
.pd-hero-inner { position: relative; z-index: 1; }
.pd-hero-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff; overflow: hidden;
}
.pd-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero-eyebrow {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .2rem;
}
.pd-hero-name {
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem); font-weight: 800; margin: 0 0 .5rem;
  line-height: 1.1; letter-spacing: -2px; text-shadow: 0 2px 12px rgba(15,23,42,.35);
}
.pd-hero-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .73rem; font-weight: 600; padding: .28rem .7rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88); backdrop-filter: blur(4px);
}
.pd-hero-chip--level { background: rgba(102,126,234,.3); border-color: rgba(102,126,234,.5); color: #c7d2fe; }
.pd-hero-chip--looking { background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.35); color: #6ee7b7; }
.pd-hero-stat-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pd-hero-stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: .7rem 1rem; text-align: center; flex: 1; min-width: 70px;
}
.pd-hero-stat .n { font-size: 1.4rem; font-weight: 800; line-height: 1; color: #fff; }
.pd-hero-stat .l { font-size: .58rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.pd-hero-tabs {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 1.5rem; overflow-x: auto;
}
.pd-hero-tab {
  padding: .6rem 1rem; font-size: .78rem; font-weight: 600; white-space: nowrap;
  color: rgba(255,255,255,.5); text-decoration: none; display: block;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.pd-hero-tab:hover { color: rgba(255,255,255,.85); }
.pd-hero-tab.active { color: #fff; border-bottom-color: #fff; }

/* ── SECTION CARDS ─────────────────────────────────── */
.pd-card {
  background: #fff; border-radius: 1.5rem;
  border: 1px solid rgba(15,23,42,.08); box-shadow: 0 18px 45px rgba(15,23,42,.08);
  padding: 1.5rem;
}
.pd-card-hd { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.pd-card-icon {
  width: 48px; height: 48px; border-radius: 1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.pd-card-icon--primary { background: rgba(102,126,234,.12); color: #667eea; }
.pd-card-icon--success { background: rgba(34,197,94,.12); color: #16a34a; }
.pd-card-icon--warning { background: rgba(245,158,11,.14); color: #d97706; }
.pd-card-icon--info    { background: rgba(14,165,233,.12); color: #0284c7; }
.pd-card-icon--dark    { background: rgba(15,23,42,.1); color: #0f172a; }
.pd-card-icon--purple  { background: rgba(118,75,162,.12); color: #764ba2; }
.pd-card-kicker {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #667eea; margin-bottom: .15rem;
}
.pd-card-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0; }
.pd-card-desc  { font-size: .82rem; color: #64748b; margin: .2rem 0 0; }

/* ── BAR CHART ─────────────────────────────────────── */
.pd-chart { display: flex; gap: .5rem; align-items: flex-end; height: 102px; padding: 0 .25rem; }
.pd-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.pd-chart-bar {
  width: 100%; border-radius: 6px 6px 0 0; min-height: 0;
  background: linear-gradient(180deg, #667eea 0%, #4f46e5 100%);
  transition: opacity .2s;
}
.pd-chart-bar--dim { opacity: .32; }
.pd-chart-val { font-size: .63rem; font-weight: 700; color: #94a3b8; }
.pd-chart-lbl { font-size: .62rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.pd-chart-lbl--active { color: #667eea; font-weight: 700; }

/* ── NARRATIVE BOX ─────────────────────────────────── */
.pd-narrative {
  background: linear-gradient(135deg, rgba(102,126,234,.07) 0%, rgba(118,75,162,.05) 100%);
  border: 1px solid rgba(102,126,234,.18); border-radius: 1rem;
  padding: 1rem 1.2rem; margin-top: .75rem;
}
.pd-narrative-label {
  font-size: .67rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: #667eea; margin-bottom: .35rem;
}
.pd-narrative p { font-size: .87rem; color: #334155; margin: 0; line-height: 1.65; }

/* ── MATCH HISTORY ROWS ────────────────────────────── */
.pd-streak-strip { display: flex; gap: .28rem; flex-wrap: wrap; }
.pd-streak-dot { width: 9px; height: 9px; border-radius: 50%; }
.pd-streak-dot--w { background: #16a34a; }
.pd-streak-dot--l { background: #dc2626; }
.pd-match-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 0; border-bottom: 1px solid #f1f5f9;
}
.pd-match-row:last-child { border-bottom: 0; }
.pd-match-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pd-match-dot--w { background: #16a34a; }
.pd-match-dot--l { background: #dc2626; }
.pd-match-badge {
  font-size: .68rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 6px; flex-shrink: 0; white-space: nowrap;
}
.pd-match-badge--w { background: #dcfce7; color: #15803d; }
.pd-match-badge--l { background: #fee2e2; color: #b91c1c; }
.pd-match-score { font-size: .82rem; font-weight: 700; color: #0f172a; }
.pd-match-meta  { font-size: .73rem; color: #64748b; }
.pd-match-date  { font-size: .68rem; color: #94a3b8; white-space: nowrap; margin-left: auto; }

/* ── WIN RATE RING ─────────────────────────────────── */
.pd-ring-wrap { position: relative; width: 120px; height: 120px; }
.pd-ring-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.pd-ring-label .big   { font-size: 1.45rem; font-weight: 800; color: #0f172a; line-height: 1; }
.pd-ring-label .small { font-size: .6rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.pd-winsplit { display: flex; justify-content: center; gap: 2rem; margin-top: .75rem; }
.pd-winsplit-item { text-align: center; }
.pd-winsplit-item .num { font-size: 1.2rem; font-weight: 800; }
.pd-winsplit-item .lbl { font-size: .65rem; color: #64748b; font-weight: 600; text-transform: uppercase; }

/* ── INSIGHT GRID ──────────────────────────────────── */
.pd-insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.pd-insight-card {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: .75rem; padding: .7rem .85rem;
}
.pd-insight-card .ic-l { font-size: .63rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.pd-insight-card .ic-v { font-size: 1.1rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.pd-insight-card .ic-s { font-size: .65rem; color: #64748b; margin-top: .05rem; }

/* ── ACHIEVEMENTS ──────────────────────────────────── */
.pd-achieve-item { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid #f1f5f9; }
.pd-achieve-item:last-child { border-bottom: 0; }
.pd-achieve-icon { width: 36px; height: 36px; border-radius: .75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.pd-achieve-icon--earned { background: rgba(245,158,11,.14); }
.pd-achieve-icon--locked { background: #f1f5f9; }
.pd-achieve-title { font-size: .82rem; font-weight: 700; color: #0f172a; margin-bottom: .12rem; }
.pd-achieve-desc  { font-size: .7rem; color: #64748b; }
.pd-achieve-bar   { height: 4px; background: #e2e8f0; border-radius: 4px; margin-top: .4rem; overflow: hidden; }
.pd-achieve-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #667eea, #764ba2); }
.pd-achieve-bar-fill--locked { background: #cbd5e1; }

/* ── FACT LIST ─────────────────────────────────────── */
.pd-fact-list { margin: 0; padding: 0; list-style: none; }
.pd-fact-list li { display: flex; justify-content: space-between; align-items: center; padding: .52rem 0; border-bottom: 1px solid #f1f5f9; font-size: .82rem; }
.pd-fact-list li:last-child { border-bottom: 0; }
.pd-fact-list .fk { color: #64748b; }
.pd-fact-list .fv { font-weight: 700; color: #0f172a; text-align: right; }
.pd-level-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(102,126,234,.1); color: #4338ca;
  font-size: .73rem; font-weight: 700; padding: .2rem .6rem; border-radius: 100px;
}
.pd-privacy-note { font-size: .7rem; color: #94a3b8; margin: .85rem 0 0; padding-top: .85rem; border-top: 1px solid #f1f5f9; }
.pd-privacy-note a { color: #64748b; }

/* ── COMPETITION ROWS ──────────────────────────────── */
.pd-divider {
  font-size: .67rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #94a3b8;
  margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid #e2e8f0;
}
.pd-comp-row { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid #f1f5f9; }
.pd-comp-row:last-child { border-bottom: 0; }
.pd-comp-pos {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
}
.pd-comp-pos--gold   { background: #fef3c7; color: #d97706; }
.pd-comp-pos--silver { background: #f1f5f9; color: #64748b; }
.pd-comp-pos--bronze { background: #ffedd5; color: #c2410c; }
.pd-comp-pos--none   { background: #f8fafc; color: #94a3b8; font-size: .85rem; }
.pd-comp-title { font-size: .82rem; font-weight: 700; color: #0f172a; margin-bottom: .08rem; }
.pd-comp-meta  { font-size: .7rem; color: #64748b; }
.pd-comp-stat  { font-size: .7rem; font-weight: 600; color: #334155; margin-left: auto; white-space: nowrap; }

/* ── OWN-PROFILE BANNER ────────────────────────────── */
.pd-own-banner {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(102,126,234,.08); border: 1px solid rgba(102,126,234,.18);
  border-radius: 1rem; padding: .85rem 1.1rem; font-size: .84rem; color: #334155;
}
.pd-own-banner i { color: #667eea; font-size: 1.1rem; flex-shrink: 0; }
.pd-own-banner a { color: #667eea; font-weight: 600; text-decoration: none; }

/* ── CONTACT PANEL (sidebar) ───────────────────────── */
.pd-contact-panel { border: 1px solid rgba(102,126,234,.2); background: rgba(102,126,234,.04); }
.pd-contact-title { font-size: .9rem; font-weight: 700; color: #0f172a; margin-bottom: .35rem; }
.pd-contact-body  { font-size: .82rem; color: #64748b; margin-bottom: 1rem; }
.pd-contact-note  { font-size: .7rem; color: #94a3b8; margin-top: .75rem; }

/* ── EMPTY STATE ───────────────────────────────────── */
.pd-empty { text-align: center; padding: 2rem 1rem; }
.pd-empty i { font-size: 2.5rem; color: #cbd5e1; }
.pd-empty p { font-size: .88rem; color: #94a3b8; margin: .75rem 0 0; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 575.98px) {
  .pd-hero { padding: 1.5rem; }
  .pd-hero-stat-row { gap: .4rem; }
  .pd-hero-stat { padding: .55rem .6rem; }
  .pd-hero-stat .n { font-size: 1.15rem; }
  .pd-insight-grid { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .player-showcase-grid { grid-template-columns: 1fr; }
  .player-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .player-kpi:nth-child(3) { border-right: none; }
  .player-kpi:nth-child(-n+3) { border-bottom: 1px solid #f1f5f9; }
}
@media (max-width: 575.98px) {
  .player-showcase-hero { padding: 2rem 0 2.25rem; }
  .player-showcase-main { flex-direction: column; align-items: center; text-align: center; }
  .player-hero-chips, .player-hero-meta, .player-hero-actions { justify-content: center; }
  .player-hero-avatar, .player-hero-initials { width: 92px; height: 92px; }
  .player-hero-name { font-size: 1.6rem; }
  .player-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .player-kpi { padding: 1.15rem .5rem; }
  .player-kpi:nth-child(odd) { border-right: 1px solid #f1f5f9; }
  .player-kpi:nth-child(even) { border-right: none; }
  .player-kpi:not(:nth-last-child(-n+2)) { border-bottom: 1px solid #f1f5f9; }
  .player-kpi__value { font-size: 1.4rem; }
  .player-timeline__item { flex-direction: column; gap: .6rem; }
}

/* ── Search panel collapse + sticky bar ─────────────────────────── */

/* "Filtros" toggle button — only visible on mobile/tablet */
.players-filters-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: border-color .15s, background .15s;
}
.players-filters-toggle.active,
.players-filters-toggle:hover {
  border-color: var(--pl-primary);
  background: #eef2ff;
  color: var(--pl-primary-dark);
}
.players-filters-badge {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pl-primary);
  margin-left: 2px;
  vertical-align: middle;
}

.players-search-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Collapsible body */
.players-filters-body {
  overflow: hidden;
}

/* Sticky bottom bar — hidden on desktop */
.players-sticky-bar {
  display: none;
}

@media (max-width: 991.98px) {
  /* Show toggle button */
  .players-filters-toggle { display: inline-flex; }

  /* Collapse filters by default */
  .players-filters-body {
    max-height: 0;
    transition: max-height 0.28s ease;
    overflow: hidden;
  }
  .players-filters-body--open {
    max-height: 600px;
  }

  /* Add bottom padding so sticky bar doesn't overlap cards */
  .players-page { padding-bottom: 5rem; }

  /* Sticky bottom bar */
  .players-sticky-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #e1e8f0;
    padding: 0.6rem 1rem;
    box-shadow: 0 -4px 18px rgba(24,39,75,0.08);
    transition: transform 0.22s ease;
  }
  .players-sticky-bar--hidden {
    transform: translateY(100%);
  }

  .players-sticky-levels {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .players-sticky-levels::-webkit-scrollbar { display: none; }

  .players-sticky-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: #f8fafc;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    flex-shrink: 0;
  }
  .players-sticky-chip--active,
  .players-sticky-chip:hover {
    border-color: var(--pl-primary);
    background: #eef2ff;
    color: var(--pl-primary-dark);
  }
  .pl-sticky--BEGINNER.players-sticky-chip--active       { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
  .pl-sticky--INTERMEDIATE.players-sticky-chip--active   { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
  .pl-sticky--INTERMEDIATE_HIGH.players-sticky-chip--active { border-color: #8b5cf6; background: #f5f3ff; color: #6d28d9; }
  .pl-sticky--ADVANCED.players-sticky-chip--active       { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
  .pl-sticky--OPEN.players-sticky-chip--active           { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }

  .players-sticky-location {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: #f8fafc;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color .15s, background .15s, color .15s;
  }
  .players-sticky-location.players-sticky-chip--active,
  .players-sticky-location:hover {
    border-color: var(--pl-primary);
    background: #eef2ff;
    color: var(--pl-primary-dark);
  }
}
