/* =============================================
   ChecklistInfo – Player Profile & Archive
   Mobile-first · Light mode only
   ============================================= */

/* ══════════════════════════════════════════
   SINGLE PLAYER – HERO
══════════════════════════════════════════ */
.ci-player {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--ci-font, 'Inter', sans-serif);
  color: var(--ci-text, #111827);
}

.ci-player__hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--ci-border2, rgba(0,0,0,0.13));
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Photo / avatar */
.ci-player__photo-wrap {
  flex-shrink: 0;
}

.ci-player__photo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--ci-border2, rgba(0,0,0,0.13));
  display: block;
}

.ci-player__initials {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, #278C5F 0%, #1f6e4a 100%);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Info column */
.ci-player__info {
  flex: 1;
  min-width: 0;
}

.ci-player__name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ci-text, #111827);
  margin: 0 0 12px;
  line-height: 1.1;
}

/* Meta chips row */
.ci-player__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ci-player__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ci-text2, #4b5563);
  background: var(--ci-surface, #eef1f8);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.13));
  padding: 4px 10px;
  border-radius: 20px;
}

.ci-player__meta-chip--pos {
  background: rgba(39,140,95,0.10);
  color: #065f46;
  border-color: rgba(39,140,95,0.28);
}

/* Stats row */
.ci-player__stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--ci-surface, #eef1f8);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  border-radius: 12px;
  padding: 12px 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ci-player__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px;
}

.ci-player__stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ci-text, #111827);
  letter-spacing: -0.03em;
  line-height: 1;
}

.ci-player__stat-label {
  font-size: 0.68rem;
  color: var(--ci-text3, #9ca3af);
  font-weight: 500;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ci-player__stat-div {
  width: 1px;
  height: 32px;
  background: var(--ci-border2, rgba(0,0,0,0.13));
  flex-shrink: 0;
}

/* Bio */
.ci-player__bio {
  font-size: 0.925rem;
  color: var(--ci-text2, #4b5563);
  line-height: 1.75;
  margin: 0;
  max-width: 600px;
}

/* ══════════════════════════════════════════
   SETS SECTION
══════════════════════════════════════════ */
.ci-player__sets-section {
  margin-bottom: 60px;
}

.ci-player__sets-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ci-text, #111827);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ci-player__sets-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--ci-gradient, linear-gradient(135deg, #278C5F 0%, #1f6e4a 100%));
  color: #fff;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0;
}

.ci-player__sets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual set card */
.ci-player__set-card {
  background: var(--ci-bg2, #ffffff);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  border-radius: 12px;
  overflow: hidden;
  /* CSS grid for main row */
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ci-player__set-card:hover {
  border-color: rgba(39,140,95,0.4);
  box-shadow: 0 4px 20px rgba(39,140,95,0.12);
}

/* Thumbnail */
.ci-player__set-thumb {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  align-self: center;
  padding: 16px 0 16px 16px;
}

.ci-player__set-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
}

.ci-player__set-thumb-ph {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--ci-surface, #eef1f8);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ci-text3, #9ca3af);
}

/* Info */
.ci-player__set-info {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  padding: 16px 12px 16px 14px;
  min-width: 0;
}

.ci-player__set-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ci-text, #111827);
  text-decoration: none;
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.15s ease;
}
.ci-player__set-name:hover { color: var(--ci-accent, #278C5F); }

.ci-player__set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.ci-player__set-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ci-surface, #eef1f8);
  color: var(--ci-text2, #4b5563);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
}

.ci-player__set-types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Action column */
.ci-player__set-action {
  grid-row: 1 / 2;
  grid-column: 3 / 4;
  padding: 16px 16px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.ci-player__set-total {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(39,140,95,0.10);
  color: var(--ci-accent, #278C5F);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(39,140,95,0.25);
}

.ci-player__set-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ci-text2, #4b5563);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.ci-player__set-link:hover { color: var(--ci-accent, #278C5F); }

/* Toggle button — spans full width below main row */
.ci-player__cards-toggle {
  grid-row: 2 / 3;
  grid-column: 1 / 4;
  border-top: 1px solid var(--ci-border, rgba(0,0,0,0.07));
}

.ci-player__cards-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ci-font, inherit);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ci-text3, #9ca3af);
  transition: color 0.15s ease, background 0.15s ease;
  text-align: left;
}
.ci-player__cards-btn:hover {
  color: var(--ci-accent, #278C5F);
  background: rgba(0,0,0,0.03);
}

.ci-player__cards-chevron {
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

/* Cards body table */
.ci-player__cards-body {
  grid-row: 3 / 4;
  grid-column: 1 / 4;
  border-top: 1px solid var(--ci-border, rgba(0,0,0,0.07));
  overflow-x: auto;
}

.ci-player__cards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 320px;
}

.ci-player__cards-table thead th {
  background: var(--ci-surface, #eef1f8);
  padding: 9px 14px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ci-text3, #9ca3af);
  border-bottom: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  white-space: nowrap;
}

.ci-player__cards-table tbody tr {
  border-bottom: 1px solid var(--ci-border, rgba(0,0,0,0.07));
  transition: background 0.15s ease;
}
.ci-player__cards-table tbody tr:last-child { border-bottom: none; }
.ci-player__cards-table tbody tr:hover { background: #f9faff; }
.ci-player__cards-table td { padding: 8px 14px; vertical-align: middle; }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.ci-player__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ci-text3, #9ca3af);
  font-size: 0.95rem;
}
.ci-player__empty a {
  color: var(--ci-accent, #278C5F);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   ARCHIVE – header
══════════════════════════════════════════ */
.ci-player-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: var(--ci-font, 'Inter', sans-serif);
  color: var(--ci-text, #111827);
}

.ci-archive__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 24px;
  flex-wrap: wrap;
}

.ci-archive__title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ci-text, #111827);
  letter-spacing: -0.04em;
  margin: 0 0 4px;
}

.ci-archive__subtitle {
  font-size: 0.875rem;
  color: var(--ci-text3, #9ca3af);
  margin: 0;
}

.ci-archive__search {
  flex: 0 0 280px;
}

/* Sport filter pills */
.ci-archive__sport-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ci-archive__sport-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.13));
  color: var(--ci-text2, #4b5563);
  background: transparent;
  transition: all 0.15s;
}
.ci-archive__sport-pill:hover {
  border-color: var(--ci-accent, #278C5F);
  color: var(--ci-accent, #278C5F);
}
.ci-archive__sport-pill--active {
  background: var(--ci-accent, #278C5F);
  border-color: var(--ci-accent, #278C5F);
  color: #fff;
}

/* Alphabet nav */
.ci-archive__alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}

.ci-archive__alpha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ci-text2, #4b5563);
  background: var(--ci-surface, #eef1f8);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  text-decoration: none;
  transition: all 0.15s ease;
}
.ci-archive__alpha-btn:hover,
.ci-archive__alpha-btn.is-active {
  background: var(--ci-accent, #278C5F);
  color: #fff;
  border-color: transparent;
}
.ci-archive__alpha-all { width: auto; padding: 0 10px; font-size: 0.72rem; }

/* ══════════════════════════════════════════
   PLAYER GRID (archive)
══════════════════════════════════════════ */
.ci-player-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci-player-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 0;
  background: var(--ci-bg2, #ffffff);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ci-player-card:hover {
  border-color: rgba(39,140,95,0.4);
  background: var(--ci-surface, #eef1f8);
  transform: translateX(3px);
}

.ci-player-card__photo {
  padding: 10px 0 10px 12px;
}

.ci-player-card__photo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--ci-border2, rgba(0,0,0,0.12));
}

.ci-player-card__initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #278C5F 0%, #1f6e4a 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.ci-player-card__info {
  padding: 12px 12px 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ci-player-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ci-text, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-player-card__sub {
  font-size: 0.72rem;
  color: var(--ci-text3, #9ca3af);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-player-card__count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ci-accent, #278C5F);
}

.ci-player-card__arrow {
  color: var(--ci-text3, #9ca3af);
  margin-right: 14px;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.ci-player-card:hover .ci-player-card__arrow {
  transform: translateX(3px);
  color: var(--ci-accent, #278C5F);
}

/* Pagination */
.ci-archive__pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.ci-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ci-text2, #4b5563);
  background: var(--ci-surface, #eef1f8);
  border: 1px solid var(--ci-border2, rgba(0,0,0,0.12));
  text-decoration: none;
  transition: all 0.15s ease;
}
.ci-archive__pagination .page-numbers.current,
.ci-archive__pagination .page-numbers:hover {
  background: var(--ci-accent, #278C5F);
  color: #fff;
  border-color: transparent;
}

/* ══════════════════════════════════════════
   RESPONSIVE – mobile
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .ci-player__hero { gap: 18px; }
  .ci-player__photo, .ci-player__initials { width: 100px; height: 100px; font-size: 2rem; border-radius: 12px; }
  .ci-player__name { font-size: 1.5rem; }
  .ci-player__stats { padding: 10px 16px; }
  .ci-player__stat { padding: 0 12px; }
  .ci-player__stat-num { font-size: 1.3rem; }

  /* Set card – stack on mobile */
  .ci-player__set-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .ci-player__set-thumb { padding: 12px 0 12px 12px; }
  .ci-player__set-info { padding: 12px 12px 0 12px; grid-column: 1 / 3; grid-row: 2 / 3; }
  .ci-player__set-action {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 12px 12px;
    gap: 12px;
    align-items: center;
  }
  .ci-player__cards-toggle { grid-column: 1 / 3; }
  .ci-player__cards-body { grid-column: 1 / 3; }

  .ci-archive__header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ci-archive__search { flex: 1 1 100%; }
}
