/* NBA player predictability pages (mig 045): hub board + player profile. */

.npp-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.2rem 1rem 3rem;
  color: #e2e8f0;
}

.npp-breadcrumb {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}
.npp-breadcrumb a { color: #38bdf8; text-decoration: none; }
.npp-breadcrumb a:hover { text-decoration: underline; }

/* Hero */
.npp-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.npp-hero-main { display: flex; align-items: center; gap: 1.1rem; }
.npp-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(140deg, #0ea5e9 0%, #1e293b 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  flex-shrink: 0;
}
.npp-hero h1 { margin: 0 0 0.15rem; font-size: 1.7rem; }
.npp-team { margin: 0 0 0.5rem; color: #94a3b8; }
.npp-bio { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.npp-chip {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.npp-score-card {
  text-align: center;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  min-width: 150px;
}
.npp-score-value { display: block; font-size: 2rem; font-weight: 700; color: #38bdf8; }
.npp-score-label { display: block; font-size: 0.8rem; color: #cbd5e1; }
.npp-score-sub { display: block; font-size: 0.72rem; color: #64748b; margin-top: 0.2rem; }

/* Season selector */
.npp-season-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1.2rem;
}
.npp-season-title { font-size: 0.8rem; color: #64748b; margin-right: 0.2rem; }
.npp-season-pill {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  text-decoration: none;
}
a.npp-season-pill:hover { border-color: #38bdf8; color: #38bdf8; }
.npp-season-active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #04121c;
  font-weight: 600;
}
.npp-source-tag {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}

/* Cards */
.npp-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.npp-card h2 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.npp-card-sub { margin: 0 0 0.9rem; font-size: 0.85rem; color: #94a3b8; }
.npp-footnote { margin: 0.8rem 0 0; font-size: 0.78rem; color: #64748b; }

.npp-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1.2rem;
}
@media (max-width: 760px) { .npp-grid { grid-template-columns: 1fr; } }

/* Model vs naive table */
.npp-naive-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.npp-naive-table th, .npp-naive-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.npp-naive-table th { color: #94a3b8; font-weight: 600; font-size: 0.78rem; }

.npp-skill { font-weight: 700; }
.npp-skill-pos { color: #4ade80; }
.npp-skill-neg { color: #f87171; }

/* Timeline */
.npp-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.npp-stat-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.npp-stat-tab {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
}
.npp-stat-tab:hover { border-color: #38bdf8; color: #38bdf8; }
.npp-stat-tab-active {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #04121c;
  font-weight: 600;
}
.npp-chart-wrap { position: relative; height: 300px; }

/* Games + board tables */
.npp-games-wrap { overflow-x: auto; }
.npp-games-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; white-space: nowrap; }
.npp-games-table th, .npp-games-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-align: left;
}
.npp-games-table th {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.76rem;
  position: sticky;
  top: 0;
  background: #0f172a;
}
.npp-expected { color: #64748b; font-size: 0.78rem; }
/* Top-10 most predictable: highlighted but everyone stays visible.
   The class rides the row, so it follows the player through sorting. */
.npp-top10 { background: rgba(56, 189, 248, 0.07); }
.npp-top10 td:first-child { border-left: 3px solid #38bdf8; }
.npp-top10-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.npp-sortable { cursor: pointer; user-select: none; }
.npp-sortable:hover { color: #38bdf8; }
.npp-sort-asc::after { content: " \2191"; color: #38bdf8; }
.npp-sort-desc::after { content: " \2193"; color: #38bdf8; }
.npp-th-sub { display: block; font-weight: 400; font-size: 0.66rem; color: #64748b; }
.npp-player-link { color: #38bdf8; text-decoration: none; font-weight: 600; }
.npp-player-link:hover { text-decoration: underline; }

/* Hub hero */
.npp-hub-hero { margin-bottom: 1.2rem; }
.npp-hub-hero h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.npp-hub-sub { max-width: 62rem; color: #94a3b8; font-size: 0.92rem; line-height: 1.55; }
.npp-filter {
  margin-top: 0.9rem;
  width: 100%;
  max-width: 22rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}
.npp-filter:focus { outline: none; border-color: #38bdf8; }

.npp-methodology p { margin: 0; font-size: 0.88rem; color: #94a3b8; line-height: 1.55; }
.npp-methodology a { color: #38bdf8; }
