/* Players: find and rank. Scoped under .pg-players; loaded after the inline base CSS. */
.pg-players { --pl-gold: #e9c46f; --pl-tx: #eef1f6; --pl-mut: #9aa4b5; --pl-line: #ffffff14; --pl-row: #111723; max-width: 1240px; margin: 0 auto; padding: 56px 32px 72px; box-sizing: border-box; color: var(--pl-tx); font-family: Archivo, sans-serif; }
.pg-players a { color: inherit; text-decoration: none; }
:where(.pg-players) :where(h1, h2, h3, p, ol, li) { margin: 0; padding: 0; } /* zero specificity: rules below set their own spacing */
.pg-players ol { list-style: none; }

/* header: the title, one line, and the search, big and first */
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "title search" "lede count"; align-items: end; gap: 8px 48px; }
.pl-head h1 { grid-area: title; font: 800 clamp(64px, 7vw, 96px)/.85 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: #f6eedd; }
.pl-lede { grid-area: lede; max-width: 560px; margin-top: 8px; color: #c9d0db; font-size: 16px; line-height: 1.5; }
.pl-search { grid-area: search; width: 100%; }
.pl-count { grid-area: count; align-self: start; }
.pg-players .pl-search .search { border-radius: 6px; }
.pg-players .pl-search input { height: 62px; font-size: 18px; }
.pl-count { margin-top: 14px; color: var(--pl-mut); font-size: 14px; }
.pl-count b { color: var(--pl-tx); font-weight: 600; }

/* filters: three rows of quiet chips; the pressed one is filled gold */
.pl-controls { display: grid; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pl-line); }
.pl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-chips-l { min-width: 72px; color: var(--pl-mut); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pl-chips button { min-height: 38px; padding: 0 16px; border: 1px solid #ffffff2b; border-radius: 999px; background: transparent; color: #d6dce6; font: 600 14px/1 Archivo, sans-serif; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.pl-chips button:hover { border-color: var(--pl-gold); color: #fff; }
.pl-chips button[aria-pressed="true"] { background: var(--pl-gold); border-color: var(--pl-gold); color: #11141a; }
.pl-rule { margin-top: 4px; color: var(--pl-mut); font-size: 13px; }
.pg-players :is(a, button):focus-visible { outline: 2px solid var(--pl-gold); outline-offset: 3px; }

/* top three: a face and a story; #1 sits in the middle and stands taller */
.pl-results { margin-top: 36px; }
.pl-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; }
.pl-pod-1 { order: 2; } .pl-pod-2 { order: 1; } .pl-pod-3 { order: 3; }
.pl-pod a { position: relative; isolation: isolate; display: grid; justify-items: start; gap: 6px; overflow: hidden; padding: 116px 24px 24px; border-radius: 8px; background: #121825; box-shadow: inset 0 0 0 1px #ffffff10; transition: transform .2s ease, box-shadow .2s ease; }
.pl-pod-1 a { padding-top: 150px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent), 0 30px 60px -36px color-mix(in srgb, var(--acc) 60%, transparent); }
.pl-pod a:hover { transform: translateY(-4px); }
.pl-pod-art { position: absolute; inset: 0 0 auto; z-index: -2; width: 100%; height: 150px; object-fit: cover; }
.pl-pod-1 .pl-pod-art { height: 184px; }
.pl-pod a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #121825 46%, rgb(18 24 37 / .55) 66%, rgb(18 24 37 / .05) 100%); }
.pl-pod-rank { position: absolute; top: 14px; left: 20px; font: 800 64px/1 'Big Shoulders Display', sans-serif; color: #fff; text-shadow: 0 2px 18px #000a; }
.pl-pod-1 .pl-pod-rank { color: var(--pl-gold); }
.pg-players .pl-pod-av { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #121825, 0 0 0 5px var(--acc); }
.pl-pod-1 .pl-pod-av { width: 104px; height: 104px; }
.pl-pod-name { margin-top: 8px; font: 800 34px/1 'Big Shoulders Display', sans-serif; color: #fff; overflow-wrap: anywhere; }
.pl-pod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--pl-mut); font-size: 14px; }
.pl-pod-stat { display: grid; margin-top: 10px; }
.pl-pod-stat b { font: 800 52px/1 'Big Shoulders Display', sans-serif; color: var(--acc); }
.pl-pod-1 .pl-pod-stat b { font-size: 64px; }
.pl-pod-stat small { color: var(--pl-mut); font-size: 13px; }

/* role mark: a plain glyph and the word */
.role-mark { display: inline-flex; align-items: center; gap: 6px; color: #d9dfe8; font-size: 13px; font-weight: 600; }
.role-mark svg { flex: none; color: var(--acc, #e9c46f); }

/* the list: one row per player, the banner as a faint strip on the right */
.pl-list { display: grid; gap: 6px; margin-top: 28px; }
.pl-row a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 52px 44px minmax(0, 1fr) 130px 230px 76px; align-items: center; gap: 16px; min-height: 64px; padding: 8px 20px 8px 12px; border-radius: 6px; background: var(--pl-row); transition: background .15s ease; }
.pl-row a:hover { background: #172031; }
.pl-strip { position: absolute; top: 0; right: 0; z-index: -1; width: 38%; height: 100%; object-fit: cover; opacity: .13; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); transition: opacity .2s ease; }
.pl-row a:hover .pl-strip { opacity: .32; }
.pl-rank { color: #c9d0db; font: 700 22px/1 'Big Shoulders Display', sans-serif; text-align: center; }
.pg-players .pl-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pl-who { display: grid; min-width: 0; }
.pl-who b { font-size: 16px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-who small { color: var(--pl-mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-metric { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.pl-bar { height: 4px; border-radius: 2px; background: #ffffff14; overflow: hidden; }
.pl-bar i { display: block; height: 100%; border-radius: 2px; background: var(--acc); }
.pl-metric b { min-width: 64px; text-align: right; font: 700 22px/1 'Big Shoulders Display', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pl-metric b.pl-dim { grid-column: 2; color: var(--pl-mut); }
.pl-lvl { color: var(--pl-mut); font-size: 13px; text-align: right; }
.pl-row.is-unranked .pl-rank { color: #5d6778; }
.pl-break { margin: 22px 0 6px; color: var(--pl-mut); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; color: var(--pl-mut); font-size: 14px; }
.pl-more-btn { min-height: 46px; padding: 0 24px; border: 1.5px solid var(--pl-gold); border-radius: 4px; background: transparent; color: var(--pl-gold); font: 700 15px/1 Archivo, sans-serif; cursor: pointer; }
.pl-more-btn:hover { background: var(--pl-gold); color: #11141a; }
.pl-empty { padding: 40px 0; color: var(--pl-mut); }

/* loading: the same shapes, never a blank page */
.pl-skel-pod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pl-skel-pod span { height: 300px; border-radius: 8px; }
.pl-skel-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 200px; align-items: center; gap: 16px; height: 64px; margin-top: 6px; padding: 0 20px; border-radius: 6px; background: var(--pl-row); }
.pl-skel-row i { height: 14px; border-radius: 4px; }
.pl-skel-row i:first-child { height: 44px; border-radius: 50%; }
.pl-skel-pod span, .pl-skel-row i { background: linear-gradient(90deg, #ffffff0a, #ffffff17, #ffffff0a) 0 0 / 200% 100%; animation: pl-shimmer 1.4s linear infinite; }
@keyframes pl-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pl-pod a, .pl-row a, .pl-strip { transition: none; } .pl-pod a:hover { transform: none; } .pl-skel-pod span, .pl-skel-row i { animation: none; } }

@media (min-width: 1700px) { .pg-players { max-width: 1440px; } }
@media (max-width: 1080px) {
  .pl-row a { grid-template-columns: 44px 44px minmax(0, 1fr) 40px 170px; }
  .pl-role .role-mark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pl-lvl { display: none; }
}
@media (max-width: 760px) {
  .pg-players { padding: 32px 16px 56px; }
  .pl-head { grid-template-columns: 1fr; grid-template-areas: "title" "lede" "search" "count"; gap: 0; }
  .pl-head h1 { font-size: 64px; }
  .pl-lede { font-size: 15px; }
  .pl-search { margin-top: 20px; }
  .pg-players .pl-search input { height: 54px; font-size: 16px; }
  .pl-controls { margin-top: 26px; padding-top: 20px; gap: 14px; }
  /* each filter is one swipeable row on phones (the row scrolls inside itself; the page never scrolls sideways) */
  .pl-chips { flex-wrap: nowrap; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; scroll-padding-inline: 16px; }
  .pl-chips::-webkit-scrollbar { display: none; }
  .pl-chips-l { flex: none; min-width: 58px; font-size: 11px; }
  .pl-chips button { flex: none; min-height: 36px; padding: 0 13px; font-size: 13px; }
  .pl-rule { font-size: 12px; }
  .pl-podium { grid-template-columns: 1fr; gap: 10px; }
  .pl-pod-1, .pl-pod-2, .pl-pod-3 { order: 0; }
  .pl-pod a, .pl-pod-1 a { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 76px 16px 16px; }
  .pl-pod-art, .pl-pod-1 .pl-pod-art { height: 104px; }
  .pl-pod-rank { top: 10px; left: 14px; font-size: 44px; }
  .pg-players .pl-pod-av, .pg-players .pl-pod-1 .pl-pod-av { grid-row: 1 / span 3; width: 68px; height: 68px; }
  .pl-pod-name { margin-top: 0; font-size: 28px; }
  .pl-pod-stat { grid-column: 2; margin-top: 4px; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .pl-pod-stat b, .pl-pod-1 .pl-pod-stat b { font-size: 36px; }
  .pl-skel-pod { grid-template-columns: 1fr; }
  .pl-skel-pod span { height: 150px; }
  .pl-row a { grid-template-columns: 30px 40px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px 8px 6px; }
  .pg-players .pl-av { width: 40px; height: 40px; }
  .pl-rank { font-size: 18px; }
  .pl-role { display: none; }
  .pl-metric { grid-template-columns: auto; }
  .pl-bar { display: none; }
  .pl-metric b { min-width: 0; font-size: 20px; }
  .pl-strip { width: 60%; }
}
