/* ═══════════════════════════════════════════════════════
   CricBun — Players Directory
   Extracted from html/cricbun-players-directory.html
   Body-content styles only. Chrome owned by global-shell.css.
   ═══════════════════════════════════════════════════════ */

.nums {
  font-variant-numeric: tabular-nums;
}
main {
  padding: 30px 0 80px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 24px;
}
.eyebrow {
  font-size: 0.57rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--cyan-d);
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.07em;
  margin-top: 9px;
}
.hero p {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 9px;
  max-width: 58ch;
}
.search {
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.65rem;
}
.tabs,
.filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
}
.tabs {
  margin: 22px 0 11px;
}
.filters {
  margin-bottom: 18px;
}
.tab,
.filter {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.61rem;
  color: var(--muted);
}
.tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}
.filter.active {
  background: var(--cyan-p);
  border-color: oklch(84% 0.06 221);
  color: var(--cyan-d);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 17px;
}
.stack {
  display: grid;
  gap: 17px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.head {
  min-height: 47px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.head h2 {
  font-size: 0.8rem;
}
.head a,
.head span {
  font-size: 0.55rem;
  color: var(--cyan-d);
}
.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.featureart {
  min-height: 260px;
  padding: 24px;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.featureart:after {
  content: attr(data-score);
  position: absolute;
  right: -20px;
  top: -65px;
  font-size: 11rem;
  font-weight: 800;
  color: oklch(100% 0.01 230/0.055);
}
.portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: oklch(71% 0.06 224);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  flex: none;
}
.featurecopy {
  margin-left: 16px;
  position: relative;
  z-index: 1;
}
.featurecopy small {
  font-size: 0.51rem;
  color: var(--cyan);
  font-weight: 800;
}
.featurecopy h2 {
  font-size: 1.35rem;
  margin-top: 5px;
}
.featurecopy p {
  font-size: 0.57rem;
  color: oklch(76% 0.015 230);
  margin-top: 4px;
}
.featureinfo {
  padding: 20px;
}
.statrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 0.8rem;
}
.stat span {
  font-size: 0.48rem;
  color: var(--muted);
}
.lastmatch {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.lastmatch small {
  font-size: 0.48rem;
  color: var(--muted);
}
.lastmatch h3 {
  font-size: 0.66rem;
  margin-top: 4px;
}
.lastmatch p {
  font-size: 0.52rem;
  color: var(--muted);
  margin-top: 3px;
}
.actions2 {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.btn {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0 10px;
  font-size: 0.54rem;
  color: var(--muted);
}
.btn.primary {
  background: var(--cyan-d);
  border-color: var(--cyan-d);
  color: var(--paper);
}
.playergrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.player {
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.player:nth-child(3n) {
  border-right: 0;
}
.player:hover {
  background: var(--paper-2);
}
.playertop {
  display: flex;
  justify-content: space-between;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cyan-p);
  color: var(--cyan-d);
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
}
.follow {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}
.follow.on {
  background: var(--cyan-p);
  color: var(--cyan-d);
}
.player h3 {
  font-size: 0.69rem;
  margin-top: 11px;
}
.player p {
  font-size: 0.51rem;
  color: var(--muted);
  margin-top: 3px;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.tag {
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--cyan-p);
  color: var(--cyan-d);
  font-size: 0.45rem;
}
.recent {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.recent small {
  font-size: 0.46rem;
  color: var(--muted);
}
.recent b {
  font-size: 0.67rem;
}
.sidebody {
  padding: 14px;
}
.ranking {
  display: grid;
}
.rankrow {
  display: grid;
  grid-template-columns: 22px 32px 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.rankrow:last-child {
  border: 0;
}
.rankrow > span:first-child {
  font-size: 0.57rem;
  color: var(--muted);
  font-weight: 800;
}
.rankrow h3 {
  font-size: 0.57rem;
}
.rankrow p {
  font-size: 0.47rem;
  color: var(--muted);
}
.rankrow b {
  font-size: 0.59rem;
}
.trend {
  color: var(--green);
}
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.role {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.role b {
  font-size: 0.61rem;
}
.role span {
  display: block;
  font-size: 0.47rem;
  color: var(--muted);
  margin-top: 2px;
}
.watchlist {
  display: grid;
  gap: 9px;
}
.watch {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
}
.watch h3 {
  font-size: 0.57rem;
}
.watch p {
  font-size: 0.47rem;
  color: var(--muted);
}
.watch button {
  border: 0;
  background: transparent;
  color: var(--cyan-d);
  font-size: 0.53rem;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.page {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 0.56rem;
  color: var(--muted);
}
.page.active {
  background: var(--cyan-d);
  color: var(--paper);
  border-color: var(--cyan-d);
}
.empty,
.loading,
.error {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  font-size: 0.62rem;
}
@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .aside {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    grid-template-columns: 1fr 280px;
  }
}
@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0;
  }
  .search {
    width: 100%;
  }
  .layout,
  .stack {
    gap: 9px;
  }
  .panel {
    border-radius: 10px;
  }
  .featured {
    grid-template-columns: 1fr;
  }
  .featureart {
    min-height: 220px;
  }
  .playergrid {
    grid-template-columns: 1fr 1fr;
  }
  .player:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .player:nth-child(2n) {
    border-right: 0;
  }
  .aside {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .playergrid {
    grid-template-columns: 1fr;
  }
  .player,
  .player:nth-child(3n) {
    border-right: 0;
  }
  .featureart {
    display: grid;
    align-content: end;
  }
  .featurecopy {
    margin-left: 0;
    margin-top: 12px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}
