.rankings-hero { padding: 34px 0 20px; }
.rankings-hero h1 { font-size: clamp(31px, 4vw, 46px); margin-bottom: 8px; }
.rankings-subhead { margin: 0; color: var(--muted); font-size: 15px; }
.fixture-banner { margin: 18px 0 0; }

.controls {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}
.control-group { min-width: 0; }
.control-label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.week-select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 0 36px 0 12px;
  font-weight: 750;
}
.control-stack { display: flex; flex-direction: column; gap: 14px; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #3b424c;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.toggle:hover { border-color: var(--line-strong); }
.toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.snapshot-bar {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.snapshot-item { padding: 12px 14px; min-width: 0; }
.snapshot-item + .snapshot-item { border-left: 1px solid var(--line); }
.snapshot-key { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.snapshot-value { display: block; font-size: 13px; font-weight: 750; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 12px;
}
.board-title { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.board-help { color: var(--muted); font-size: 12px; max-width: 420px; text-align: right; }

.tier-board { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.tier-section + .tier-section { border-top: 0; }
.tier-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--fill);
  border-bottom: 1px solid var(--line);
}
.tier-name { font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.tier-meta { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.player-row { border-bottom: 1px solid var(--line); }
.player-row:last-child { border-bottom: 0; }
.player-summary {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1.7fr) minmax(130px, .8fr) 90px 115px 85px 90px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.player-summary::-webkit-details-marker { display: none; }
.player-summary:hover { background: #fbfcfd; }
.col-labels {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1.7fr) minmax(130px, .8fr) 90px 115px 85px 90px;
  gap: 12px;
  padding: 0 16px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rank-num { font-size: 16px; font-weight: 900; }
.player-name { font-size: 15px; font-weight: 850; }
.player-sub { display: none; color: var(--muted); font-size: 12px; margin-top: 2px; }
.team-opp { color: #3e4651; font-size: 13px; font-weight: 700; }
.tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}
.confidence { font-size: 13px; font-weight: 850; }
.confidence small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 1px; }
.move { font-size: 13px; font-weight: 850; }
.move.up { color: var(--success); }
.move.down { color: var(--danger); }
.move.flat { color: var(--muted); }
.status { font-size: 12px; font-weight: 800; }
.status.questionable { color: var(--warning); }
.chevron { display: none; }
.player-detail {
  padding: 0 16px 17px 84px;
  background: #fbfcfd;
  border-top: 1px solid var(--line);
}
.detail-grid {
  display: grid;
  grid-template-columns: 170px 170px 1fr;
  gap: 14px;
  padding-top: 14px;
}
.detail-card { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: var(--white); }
.detail-key { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.detail-value { margin-top: 2px; font-size: 15px; font-weight: 850; }
.basis { margin: 13px 0 0; color: #343b45; font-size: 14px; max-width: 780px; }

.boundary {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.boundary::before, .boundary::after { content: ""; height: 1px; flex: 1; margin: 0 12px; }
.boundary.strong::before, .boundary.strong::after { background: var(--ink); }
.boundary.fuzzy::before, .boundary.fuzzy::after {
  background: linear-gradient(90deg, rgba(17,20,24,.08), rgba(30,70,200,.55), rgba(17,20,24,.08));
  height: 5px;
  filter: blur(2px);
}
.boundary.medium::before, .boundary.medium::after { background: var(--line-strong); }

.empty-state {
  padding: 54px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--fill);
}
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 5px; }

.legend {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.legend-item { border: 1px solid var(--line); border-radius: 9px; padding: 12px; font-size: 12px; color: var(--muted); }
.legend-item strong { color: var(--ink); display: block; margin-bottom: 2px; }

@media (max-width: 900px) {
  .col-labels { display: none; }
  .player-summary { grid-template-columns: 42px minmax(0, 1fr) 78px 88px 20px; gap: 10px; }
  .team-opp { display: none; }
  .move { display: none; }
  .status { display: none; }
  .player-sub { display: block; }
  .chevron { display: block; color: var(--muted); font-size: 16px; text-align: right; }
  details[open] .chevron { transform: rotate(180deg); }
  .player-detail { padding-left: 16px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid .detail-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .rankings-hero { padding-top: 26px; }
  .controls { grid-template-columns: 1fr; gap: 14px; }
  .snapshot-bar { grid-template-columns: 1fr 1fr; }
  .snapshot-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .snapshot-item:nth-child(4) { border-top: 1px solid var(--line); }
  .board-head { align-items: flex-start; flex-direction: column; }
  .board-help { text-align: left; }
  .tier-board { border-radius: 10px; }
  .player-summary { grid-template-columns: 34px minmax(0, 1fr) 70px 20px; padding: 12px; gap: 8px; }
  .rank-num { font-size: 14px; }
  .player-name { font-size: 14px; }
  .tier-pill { min-width: 46px; font-size: 11px; padding: 3px 7px; }
  .confidence { display: none; }
  .player-detail { padding: 0 12px 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .detail-card:last-child { grid-column: auto; }
  .legend { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .snapshot-value { white-space: normal; overflow: visible; text-overflow: clip; }
}
