/* NFL Draft Lookup — Dark Theme Design System */
/* v1.1.2: Dark bg #0d1117, modern cards, team-color accents */

:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --border: #30363d;
  --border-light: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-light: #6e7681;
  --accent: #1a56db;
  --accent-hover: #1c64f2;
  --green: #4ade80;
  --green-dark: #16a34a;
  --green-light: rgba(74,222,128,0.08);
  --red: #e31837;
  --gold: #f4a000;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --radius: 8px;
  --radius-pill: 20px;
  --radius-lg: 12px;
  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  --nav-h: 60px;
  --header-bg: rgba(13,17,23,0.95);
  --header-accent: var(--accent);
  --body-bg: var(--bg);
  --alt-row: rgba(33,38,45,0.5);
  --tc: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-logo:hover { opacity: 0.9; text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.15s;
  border: none;
  padding: 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }

.header-search {
  position: relative;
  flex-shrink: 0;
  max-width: 320px;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 14px;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.header-search input:focus { border-color: var(--accent); }
.header-search input::placeholder { color: var(--text-light); }

/* ===== SEARCH RESULTS DROPDOWN ===== */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-results-dropdown.active { display: block; }

.sr-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.1s;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--bg3); text-decoration: none; }
.sr-item .sr-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.sr-empty { padding: 12px; font-size: 0.875rem; color: var(--text-muted); text-align: center; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; }
.breadcrumb-item { display: flex; align-items: center; gap: 2px; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-light); }

/* ===== MAIN CONTAINER ===== */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== HERO ===== */
.hero {
  background: radial-gradient(ellipse at top, #1a2a4a 0%, var(--bg) 70%);
  color: #fff;
  padding: 48px 20px;
  margin: -40px -20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-home {
  padding: 80px 20px 60px;
  background: radial-gradient(ellipse at top, #1a2a4a 0%, var(--bg) 70%);
}
.hero-home::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a56db' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero-subtitle, .hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-search input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 16px 20px 16px 20px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 0 0 0 transparent;
}
.hero-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
.hero-search input::placeholder { color: var(--text-light); }

/* ===== HERO VARIANTS ===== */
.hero-player {
  text-align: left;
  padding: 40px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--team-color, #1a56db) 20%, var(--bg2)) 0%, var(--bg) 100%);
}
.hero-leaders {
  padding: 32px 20px;
  text-align: left;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.player-hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-hero-photo { flex-shrink: 0; }

.hero-photo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg3);
}

.player-hero-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: none;
  -webkit-text-fill-color: var(--text);
}

.player-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-team { font-weight: 600; color: var(--text); }

.hero-pick {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.player-hero-details {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.player-hero-details a { color: var(--text-muted); }
.player-hero-details a:hover { color: var(--accent); }

/* Hero player count (homepage) */
.hero-player-count { text-align: center; margin: 24px 0 16px; }
.hero-player-count-link { text-decoration: none; color: inherit; display: inline-block; transition: transform 0.2s; }
.hero-player-count-link:hover { transform: scale(1.05); }
.hero-big-number {
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-big-label {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

/* ===== SECTION ===== */
.section { margin-bottom: 48px; }
h1 {
  background: linear-gradient(135deg, #fff 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section h2, .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

/* ===== CARD ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg2);
  box-shadow: var(--shadow-sm);
}
.card h2, .card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: none;
  color: var(--text);
}

/* ===== DRAFT DETAILS GRID ===== */
.draft-details-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.draft-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
  text-align: center;
}
.draft-detail { background: var(--bg2); padding: 10px 8px; }
.draft-detail .label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.draft-detail .value { font-size: 0.9rem; font-weight: 700; margin-top: 2px; color: var(--text); }
.detail-item { background: var(--bg2); padding: 10px 12px; text-align: center; }
.detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.detail-value { font-size: 0.95rem; font-weight: 700; margin-top: 2px; color: var(--text); }
.detail-value a { color: var(--text); }
.detail-value a:hover { color: var(--accent); }

/* ===== CAREER SUMMARY ===== */
.career-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.summary-stat { text-align: center; min-width: 80px; }
.summary-value { font-size: 1.2rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.summary-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

/* ===== DATA TABLE ===== */
.player-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.player-table th, .data-table th {
  background: var(--bg3);
  color: var(--text-muted);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.player-table td, .data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.player-table tbody tr:nth-child(even) { background: transparent; }
.player-table tbody tr:hover, .data-table tbody tr:hover { background: var(--bg3); }
.player-table a { color: var(--text); font-weight: 500; }
.player-table a:hover { color: var(--accent); text-decoration: none; }
.player-table .round-1 { background: rgba(244,160,0,0.06); }

.table-wrap { overflow-x: hidden; border-radius: var(--radius); border: 1px solid var(--border); max-width: 100%; }
.table-wrap table { width: 100%; table-layout: auto; }
.table-wrap th, .table-wrap td { white-space: nowrap; padding: 8px 6px; }
.table-wrap tbody tr { background: var(--bg); }
.table-wrap tbody tr:nth-child(even) { background: var(--bg2); }
.table-wrap tbody tr:hover { background: var(--bg3); }
.table-wrap td .has-tooltip { cursor: help; border-bottom: 1px dotted #58a6ff; position: relative; }
.table-wrap td .has-tooltip:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 0; background: #30363d; color: #e6edf3; padding: 6px 10px; border-radius: 6px; white-space: pre-line; font-size: 13px; z-index: 10; min-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.table-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; margin-right: 6px; background: var(--bg3); }

/* ===== STATS TABLE ===== */
.stats-section { margin-bottom: 20px; }
.stats-section h2 {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  text-transform: none;
}
.stats-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.stats-table thead th { background: var(--bg3); border-bottom: 2px solid var(--accent); }
.stats-table th {
  background: var(--bg3);
  color: var(--text-muted);
  padding: 10px 8px;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.stats-table th:first-child { text-align: left; }
.stats-table th:hover { background: var(--bg2); }
.stats-table th.sorted { border-bottom: 2px solid var(--accent); }
.sort-arrow { margin-left: 3px; font-size: 8px; opacity: 0.4; }
.stats-table th.sorted .sort-arrow { opacity: 1; color: var(--accent); }
.sortable-table th, .stats-table th { cursor: pointer; user-select: none; }
.sortable-table th.sort-asc::after, .stats-table th.sort-asc::after { content: " ▲"; font-size: 10px; }
.sortable-table th.sort-desc::after, .stats-table th.sort-desc::after { content: " ▼"; font-size: 10px; }
.stats-table td {
  padding: 8px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text);
}
.stats-table td:first-child { text-align: left; font-weight: 600; }
.stats-table tbody tr:nth-child(even) { background: rgba(33,38,45,0.3); }
.stats-table tbody tr:hover { background: var(--bg3); }
.stats-table tfoot td, .career-totals-row td { font-weight: 700; background: var(--bg3); border-top: 2px solid var(--text-muted); }
.stats-table a { color: var(--text); }
.stats-table a:hover { color: var(--accent); }

/* ===== LEADERBOARD TABLE ===== */
#lb-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
#lb-table thead { position: sticky; top: 60px; z-index: 10; }
#lb-table th { background: var(--bg3); color: var(--text-muted); padding: 10px 8px; text-align: right; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; user-select: none; white-space: nowrap; }
#lb-table th:first-child, #lb-table th:nth-child(2) { text-align: left; }
#lb-table td { padding: 8px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text); }
#lb-table td:first-child, #lb-table td:nth-child(2) { text-align: left; }
#lb-table tbody tr { background: var(--bg); }
#lb-table tbody tr:nth-child(even) { background: var(--bg2); }
#lb-table tbody tr:hover { background: var(--bg3); }
#lb-table a { color: var(--text); }
#lb-table a:hover { color: var(--accent); text-decoration: none; }

/* ===== POPULAR PLAYERS GRID ===== */
.pop-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.pop-card { flex: 0 0 110px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.pop-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pop-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg3); margin-bottom: 8px; }
.pop-name { font-size: 0.8rem; font-weight: 600; line-height: 1.2; margin-bottom: 2px; }
.pop-sub { font-size: 0.65rem; color: var(--text-muted); }

/* ===== COMPARE TABLE OVERRIDES ===== */
.compare-table thead th { position: static; top: auto; z-index: auto; background: var(--bg3); color: var(--text-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 10px 8px; border-bottom: 2px solid var(--border); }

/* ===== COMBINE ===== */
.combine-section { margin-bottom: 20px; }
.combine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.combine-item, .combine-card { background: var(--bg2); padding: 14px 8px; text-align: center; }
.combine-val, .combine-value { font-size: 1.2rem; font-weight: 800; color: var(--text); display: block; font-variant-numeric: tabular-nums; }
.combine-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 2px; }

/* ===== LEADER PILLS ===== */
.leader-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.leader-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.leader-pill:hover, .leader-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== RANK BADGE ===== */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg3);
  color: var(--text-muted);
}
.rank-gold, .rank-1 { background: var(--gold); color: #1a1a2e; }
.rank-silver, .rank-2 { background: var(--silver); color: #1a1a2e; }
.rank-bronze, .rank-3 { background: var(--bronze); color: #fff; }

/* ===== STAT BAR ===== */
.stat-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.stat-bar-fill { height: 100%; background: var(--border); border-radius: 3px; transition: width 0.3s ease; }
.stat-bar-fill.stat-bar-leader, .stat-bar-leader { background: var(--accent); }

/* ===== LEADER TABLE ===== */
.leader-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.leader-table th {
  background: var(--bg3);
  color: var(--text-muted);
  padding: 10px 8px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.leader-table td { padding: 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.leader-table tbody tr:nth-child(even) { background: rgba(33,38,45,0.3); }
.leader-table tbody tr:hover { background: var(--bg3); }
.leader-player-cell { display: flex; align-items: center; gap: 8px; }
.leader-player-cell img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.leader-player-cell a { font-weight: 600; color: var(--text); }
.leader-player-cell a:hover { color: var(--accent); text-decoration: none; }
.leader-table .team-col { display: flex; align-items: center; gap: 4px; }
.leader-table .games-col { color: var(--text-muted); font-size: 0.78rem; }
.position-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pos-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
}
.pos-pill:hover, .pos-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.leader-rank { width: 40px; text-align: center; }
.leader-val, .stat-value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.stat-value-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
.stat-bar-wrap { flex: 1; min-width: 60px; height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.stat-bar-blue { height: 100%; background: linear-gradient(90deg, #1565C0, #42A5F5); border-radius: 4px; transition: width 0.3s; min-width: 4px; }
.stat-value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 60px; text-align: right; }

/* ===== BROWSE GRID ===== */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.browse-grid a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg2);
  transition: all 0.15s;
}
.browse-grid a:hover { border-color: var(--accent); background: var(--bg3); text-decoration: none; }
.browse-grid .count { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

/* ===== FEATURED GRID (homepage) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  overflow: visible;
}
.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c, var(--accent));
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all 0.2s;
}
.featured-card:hover {
  border-top-color: var(--c, var(--accent));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.featured-card img, .featured-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}
.featured-info { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.featured-name { font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-meta { font-size: 0.78rem; color: var(--text-muted); }
.featured-team { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }

/* ===== BROWSE CARDS (colored blocks) ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.browse-card {
  display: block;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.browse-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #fff;
}
.browse-card-count { font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.browse-card-title { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.browse-card-desc { font-size: 0.78rem; opacity: 0.7; }

/* ===== LEADER INDEX ===== */
.leader-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.leader-category-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.leader-category-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.leader-card-header {
  background: var(--bg3);
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.leader-card-header a { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; }
.leader-card-header a:hover { color: var(--accent); text-decoration: none; }
.leader-card-body { padding: 0; }
.leader-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.leader-card-row:last-child { border-bottom: none; }
.leader-card-row:hover { background: var(--bg3); }
.leader-card-row .rank-badge { flex-shrink: 0; }
.leader-card-row .leader-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.leader-card-row a.leader-name { font-weight: 600; color: var(--text); flex: 1; font-size: 0.875rem; }
.leader-card-row a.leader-name:hover { color: var(--accent); text-decoration: none; }
.leader-card-row .leader-stat-val { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9rem; min-width: 60px; text-align: right; color: var(--text); }
.leader-card-footer { padding: 8px 16px; text-align: center; border-top: 1px solid var(--border); }
.leader-card-footer a { font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.leader-card-footer a:hover { color: var(--accent-hover); text-decoration: none; }
.leader-preview { font-size: 0.78rem; color: var(--text-muted); }

/* ===== QUICK ANSWER (questions) ===== */
.quick-answer {
  background: linear-gradient(135deg, #1a2a4a 0%, var(--bg2) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.quick-answer h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  border: none;
  padding: 0;
}
.quick-answer p { font-size: 1.05rem; font-weight: 500; color: var(--text); }
.answer-detail { font-size: 0.95rem; line-height: 1.7; margin: 12px 0; color: var(--text-muted); }

/* ===== COMPARE ===== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.compare-player {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  background: var(--bg2);
}
.compare-player img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; background: var(--bg3); }
.compare-player h2, .compare-player h3 { font-size: 1rem; margin-bottom: 4px; text-transform: none; color: var(--text); }
.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 8px 0;
  overflow: hidden;
}
.compare-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.vs-text { font-size: 0.9rem; font-weight: 800; color: var(--text-muted); margin: 0 8px; }

/* Compare tool */
.compare-tool { max-width: var(--max-w); margin: 0 auto; }
.compare-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.compare-slot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 180px;
  flex: 1;
  max-width: 250px;
  background: var(--bg2);
}
.slot-input-wrap { display: flex; align-items: center; gap: 4px; }
.slot-input { width: 100%; border: none; outline: none; font-size: 0.875rem; padding: 4px 0; background: transparent; color: var(--text); }
.slot-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 14px; padding: 2px 4px; line-height: 1; }
.slot-remove:hover { color: var(--red); }
.slot-selected { display: flex; align-items: center; gap: 6px; }
.slot-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.slot-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.slot-dropdown.active { display: block; }
.dd-item { padding: 8px 10px; cursor: pointer; font-size: 0.875rem; border-bottom: 1px solid var(--border); color: var(--text); }
.dd-item:hover { background: var(--bg3); }
.dd-name { font-weight: 600; }
.dd-meta { font-size: 0.78rem; color: var(--text-muted); }
.dd-empty { padding: 8px; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.btn-add-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-add-slot:hover { border-color: var(--accent); color: var(--accent); }
.btn-clear { font-size: 0.78rem; color: var(--text-muted); cursor: pointer; background: none; border: none; text-decoration: underline; }
.btn-clear:hover { color: var(--red); }
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); }

/* Compare results */
.compare-header {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.compare-header > div { background: var(--bg3); color: var(--text); padding: 12px 8px; text-align: center; }
.compare-header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin: 0 auto 4px; background: var(--bg3); }
.compare-header .name { font-size: 0.875rem; font-weight: 700; }
.compare-header .meta { font-size: 0.72rem; color: var(--text-muted); }
.compare-stat-row { display: grid; gap: 1px; background: var(--border); }
.compare-stat-row > div, .compare-stat-row > td {
  background: var(--bg2);
  padding: 6px 8px;
  font-size: 0.875rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.compare-stat-row .label { text-align: left; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.compare-stat-row .leader, .leader { background: rgba(26,86,219,0.1); font-weight: 700; }
.compare-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  display: block;
  margin-top: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}
.compare-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; border-color: var(--accent); }

/* Compare suggestion */
.compare-suggestion, .popular-comparisons { margin-top: 16px; }
.compare-suggestion a, .compare-names {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 3px;
  color: var(--text);
  transition: border-color 0.15s;
}
.compare-suggestion a:hover { border-color: var(--accent); text-decoration: none; }

/* ===== RELATED LINKS ===== */
.related-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.related-links a {
  padding: 6px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text);
  transition: all 0.15s;
}
.related-links a:hover { border-color: var(--accent); background: var(--bg3); text-decoration: none; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 8px 0; }
.related-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  transition: border-color 0.15s;
  background: var(--bg2);
  color: var(--text);
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.related-name { font-weight: 600; font-size: 0.78rem; color: var(--text); }
.related-meta { font-size: 0.68rem; color: var(--text-muted); }

/* ===== VIEW ALL LINK ===== */
.view-all, .view-all-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.view-all:hover, .view-all-link:hover { color: var(--accent-hover); text-decoration: none; }

/* ===== TEAM LOGO ===== */
.team-logo { width: 24px; height: 24px; display: inline-block; vertical-align: middle; object-fit: contain; background: rgba(255,255,255,0.5); border-radius: 50%; padding: 2px; }
.col-college a, .col-team a, .team-col { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.team-logo[width="20"] { width: 20px; height: 20px; }
.team-logo[width="28"] { width: 28px; height: 28px; }
.team-logo[width="32"] { width: 32px; height: 32px; background: rgba(255,255,255,0.5); border-radius: 50%; padding: 3px; }
.team-logo[width="48"] { width: 48px; height: 48px; }
.team-logo[width="80"] { width: 80px; height: 80px; }

/* ===== PLAYER PHOTO ===== */
.player-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg3);
}

/* ===== BIG ANSWER (pick number pages) ===== */
.big-answer {
  background: linear-gradient(135deg, #1a2a4a 0%, var(--bg2) 100%);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.big-answer h1 { font-size: 1.2rem; font-weight: 800; background: none; -webkit-text-fill-color: var(--text); }
.pick-number { font-size: 3rem; font-weight: 900; color: var(--accent); display: block; margin: 8px 0; font-variant-numeric: tabular-nums; }

/* ===== WINNER BADGE ===== */
.winner-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== PEOPLE ALSO SEARCH ===== */
.people-also-search { margin: 12px 0; }
.people-also-search h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ===== FAQ ===== */
.faq-section details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq-section summary { font-size: 0.95rem; font-weight: 600; cursor: pointer; padding: 4px 0; color: var(--text); }
.faq-section summary:hover { color: var(--accent); }
.faq-section p { font-size: 0.875rem; padding: 8px 0; color: var(--text-muted); }

/* ===== QUESTION LINKS ===== */
.question-links { display: flex; flex-direction: column; gap: 8px; }
.question-link {
  display: block;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all 0.15s;
}
.question-link:hover { border-color: var(--accent); color: var(--accent); padding-left: 22px; }

/* ===== PAGINATION ===== */
#players-pagination button {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
}
#players-pagination button:hover:not(:disabled) { background: var(--accent); color: #fff; }
#players-pagination button.active { background: var(--accent); color: #fff; font-weight: 700; }
#players-pagination button:disabled { opacity: 0.4; cursor: default; }

/* ===== STAT TOGGLE ===== */
.stat-toggle { display: flex; gap: 6px; margin-bottom: 12px; }
.stat-toggle button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.stat-toggle button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.stat-toggle button:hover:not(.active) { background: var(--bg3); color: var(--text); }

/* ===== TOOLTIP ===== */
.tooltip-wrap { position: relative; cursor: default; border-bottom: 1px dashed var(--text-muted); }
.tooltip-wrap .tooltip-content {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: nowrap;
  z-index: 100;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.tooltip-wrap:hover .tooltip-content { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 20px 20px;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  list-style: none;
}

.footer-links a, .footer-links li a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.12s;
}
.footer-links a:hover, .footer-links li a:hover { color: var(--text); text-decoration: none; }

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.25s ease; }

/* ===== Inline style overrides for homepage leader list ===== */
[style*="display:flex"][style*="align-items:center"][style*="gap:10px"] {
  border-color: var(--border) !important;
}
[style*="font-weight:600"][style*="flex:1"] { color: var(--text); }
[style*="font-weight:600"][style*="flex:1"]:hover { color: var(--accent); }
[style*="font-variant-numeric:tabular-nums"] { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-search { max-width: none; flex: 1; }
  .header-inner { gap: 16px; }

  .hero { padding: 32px 16px; margin: -24px -16px 24px; }
  .hero-home { padding: 48px 16px 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-search input { font-size: 16px; }

  .player-hero-content { gap: 12px; }
  .hero-photo { width: 64px; height: 64px; }
  .player-hero-info h1 { font-size: 1.4rem; }
  .player-hero-meta { flex-wrap: wrap; gap: 4px; }
  .player-hero-details { flex-wrap: wrap; gap: 6px; }

  .table-wrap, .stats-table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }

  .compare-grid { grid-template-columns: 1fr; overflow: visible; }
  .compare-slots { flex-direction: column; }
  .compare-slot { max-width: 100%; min-width: 0; }

  .draft-details-grid { grid-template-columns: repeat(3, 1fr); }
  .draft-details { grid-template-columns: repeat(3, 1fr); }
  .leader-index-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .browse-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr 1fr; }

  .career-summary { gap: 12px; padding: 12px; }
  .summary-value { font-size: 1rem; }

  main { padding: 24px 16px; }

  .footer-inner { gap: 16px; }
}

@media (max-width: 480px) {
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .browse-card-count { font-size: 1.8rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .combine-grid { grid-template-columns: repeat(3, 1fr); }
  .draft-details-grid { grid-template-columns: repeat(2, 1fr); }
  .draft-details { grid-template-columns: repeat(2, 1fr); }
  .hero-big-number { font-size: 2.5rem; }
  .hero-stats { gap: 16px; }
  .hero-stat .value { font-size: 1.1rem; }
  .player-hero-content { flex-direction: column; text-align: center; }
  .hero-player { text-align: center; }
  .player-hero-meta { justify-content: center; }
  .player-hero-details { justify-content: center; }
  .compare-vs { flex-wrap: wrap; }
  .footer-links { gap: 12px; }
}

/* ===== PICK NUM STYLE ===== */
.pick-num { font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.round-num { color: var(--text-light); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent); }
