/* GraoeRankings · Ladder / CBA v21 Team Game.
   Unique gl- prefix so the redesign cannot change player profiles,
   matches, awards or the PySide6 client. */
body.gr-ladder-page{
  --gl-bg:#030a12;--gl-panel:#081320;--gl-panel2:#101e2c;
  --gl-line:#596c80;--gl-gold:#e6ba55;--gl-gold-hi:#ffe49c;
  --gl-text:#eef4fb;--gl-muted:#a9b8c8;
  background:#02070e!important;color:var(--gl-text);
}
body.gr-ladder-page .topbar.topbarPlayerStyle{
  height:auto!important;min-height:56px;background:#050b14!important;
  box-shadow:none!important;backdrop-filter:none!important;
  border-bottom:1px solid #6c7d9755;
}
.gl-page{font-family:Inter,"Segoe UI",Arial,sans-serif;min-height:70vh;overflow:hidden}
.gl-page *,.gl-page *::before,.gl-page *::after{box-sizing:border-box}
.gl-page a{text-decoration:none}
.gl-page button,.gl-page select,.gl-page input{font-family:inherit}
.gl-page button:focus-visible,.gl-page a:focus-visible,
.gl-page select:focus-visible,.gl-page input:focus-visible{
  outline:2px solid var(--gl-gold-hi);outline-offset:2px
}
.gl-hero{
  height:clamp(142px,14vw,216px);position:relative;
  display:flex;align-items:center;justify-content:center;
  background:#0d1420 url("/static/ui_images/ladder_wallpaper.png?v=20261108") center 49%/cover no-repeat;
  isolation:isolate;overflow:hidden;border-bottom:0;
}
.gl-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,#07101a1e 0%,#08111b00 45%,#02070e64 88%,#02070ee4 100%),
             linear-gradient(90deg,#06111b25,transparent 28% 72%,#06111b25)
}
.gl-hero::after{
  /* Soft, continuous end to the picture: removes stray bright streaks
     at the lower edge instead of painting a harsh horizontal bar. */
  content:"";position:absolute;left:0;right:0;bottom:0;height:17px;
  background:linear-gradient(180deg,transparent,#02070ed9 85%,#02070e);
  pointer-events:none;z-index:1
}
.gl-hero__center{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:8px 16px}
.gl-hero__title-row{display:flex;align-items:center;justify-content:center;gap:17px;max-width:100%}
.gl-hero__title{
  margin:0;color:#ffe2a2;font:900 clamp(38px,5vw,72px)/1 Georgia,"Times New Roman",serif;
  letter-spacing:.055em;text-shadow:0 3px 1px #17100c,0 4px 18px #000e;text-align:center
}
.gl-hero__rule{
  display:block;flex:0 1 110px;width:min(12vw,110px);height:2px;
  background:linear-gradient(90deg,transparent,#ffe29a)
}
.gl-hero__rule--right{transform:rotate(180deg)}
.gl-hero__gem{color:#f8c95e;font-size:15px;filter:drop-shadow(0 1px 5px #000)}
.gl-hero__mode{
  display:inline-flex;align-items:center;justify-content:center;gap:14px;
  max-width:100%;min-width:min(350px,85vw);
  padding:6px 17px;border:1.5px solid #e4b958;
  clip-path:polygon(0 50%,7% 0,93% 0,100% 50%,93% 100%,7% 100%);
  background:linear-gradient(180deg,#142232ee,#060d18ed);
  color:#fff;text-align:center;font-weight:900;font-size:clamp(12px,1.3vw,17px);
  box-shadow:inset 0 0 0 1px #dbaf5055;text-shadow:0 2px 5px #000
}
.gl-hero__mode svg{height:20px;width:20px;color:#f2d06c;flex:none}
.gl-layout{
  display:grid;grid-template-columns:minmax(0,2.1fr) minmax(340px,.95fr);
  gap:17px;max-width:1520px;margin:0 auto;padding:14px 20px 65px;align-items:start;
}
.gl-left,.gl-sidebar{min-width:0}
.gl-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.gl-tab{
  display:flex;justify-content:center;align-items:center;gap:10px;
  min-width:0;min-height:48px;padding:10px 7px;
  border:1px solid #61738a;border-radius:11px;
  background:linear-gradient(180deg,#122334,#0a1320);
  color:#d9e2eb;font-weight:850;font-size:13px;
  transition:background .16s,border-color .16s;line-height:1.2
}
.gl-tab svg{width:24px;height:24px;flex:none;color:#d2e0ed}
.gl-tab--active{
  color:#fff5d2;border:2px solid #ebbd53;
  background:linear-gradient(180deg,#514322,#2b2417);
  box-shadow:inset 0 0 18px #b38a3547,0 0 12px #d7a53634
}
.gl-tab--active svg{color:#ffe1a0}
.gl-tab--disabled{opacity:.57;cursor:not-allowed}
.gl-tab__text{min-width:0;white-space:normal}
.gl-tab small{display:block;color:#b6bec9;font-size:10px;font-weight:600;margin-top:1px}
.gl-panel{
  border:1.5px solid #cba23e;border-radius:16px;
  background:linear-gradient(150deg,#0c1a29,#060d17 70%);
  box-shadow:0 12px 30px #0008,inset 0 0 0 1px #edbc3525;
  overflow:hidden;min-width:0
}
.gl-ranking{padding:13px 13px 12px}
.gl-ranking__head{border-bottom:1px solid #6e79874d;padding:0 4px 11px}
.gl-ranking__head h2{
  margin:0;color:#ffdf91;font-size:clamp(18px,1.55vw,26px);
  line-height:1.1;font-weight:950;letter-spacing:.032em
}
.gl-ranking__head p{margin:5px 0 0;color:#bfcbd9;font-size:12px}
.gl-controls{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;
  align-items:center;padding:14px 1px 12px;border-bottom:1px solid #344558
}
.gl-controls__inputs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;flex:1;min-width:0}
.gl-control{
  display:flex;align-items:center;gap:9px;min-height:38px;min-width:0;
  padding:6px 11px;border:1px solid #586d83;border-radius:10px;
  background:linear-gradient(180deg,#142333,#0b1623);color:#e9f0f9;font-weight:780
}
.gl-control:focus-within{border-color:#e2bd68}
.gl-control svg{width:18px;height:18px;flex:none;color:#f0be50}
.gl-control--search{flex:1 1 190px;max-width:290px}
.gl-control--search input{
  min-width:0;width:100%;height:22px;border:0;background:transparent;
  color:#f2f6fb;font-size:12px;outline:0
}
.gl-control--search input::placeholder{color:#b6c1d0}
.gl-control--select{flex:0 1 auto}
.gl-control--select span{font-size:12px;white-space:nowrap}
.gl-control select{
  min-width:0;max-width:140px;padding:1px 12px 1px 2px;border:0;outline:0;
  color:#f3f6fa;background:transparent;cursor:pointer;font-weight:850;font-size:12px
}
.gl-control select option{background:#0e1926;color:#e9f0f8}
.gl-count{font-size:11px;color:#c8d1dc;white-space:nowrap}
.gl-count strong{color:#ffe0a0}
.gl-table-scroll{overflow-x:auto;max-width:100%;scrollbar-color:#546982 #07101c}
.gl-table{width:100%;border-collapse:collapse;min-width:770px;font-size:12px}
.gl-table th{
  color:#ffdc7e;font-size:11px;line-height:1.15;letter-spacing:.012em;
  font-weight:900;text-transform:uppercase;text-align:left;padding:12px 7px 10px;
  border-bottom:1px solid #b38d3654;white-space:nowrap
}
.gl-table th:first-child,.gl-table td:first-child{text-align:center}
.gl-table td{padding:5px 7px;color:#eff4fa;border-bottom:1px solid #67768d37;vertical-align:middle}
.gl-table tbody tr{height:41px;transition:background .12s}
.gl-table tbody tr:hover{background:#25324475}
.gl-table tbody tr.gl-row--leader{
  background:linear-gradient(90deg,#89672d6e,#362d1b85 68%,#1a231d70);
  box-shadow:inset 0 0 0 1px #d9ac4d98;border-radius:8px
}
.gl-table tbody tr.gl-row--leader:hover{background:#65502b}
.gl-table .gl-col-rank{width:49px;font-weight:900}
.gl-medal--gold{display:inline-flex;align-items:center;justify-content:center;color:#ffc64a;filter:drop-shadow(0 1px 3px #000)}
.gl-rank-crown{display:block;width:25px;height:24px}
/* Match the silver and bronze rank badges on the Divisions page. */
.gl-placement{
  display:inline-grid;place-items:center;margin:auto;width:29px;height:29px;
  border:2px solid #aeb8c5;border-radius:50%;box-shadow:0 0 8px #dce9f645;
  background:#1e2c39;font-size:18px;font-weight:900;
}
.gl-placement--bronze{border-color:#e7a46a;box-shadow:0 0 7px #c47f40}
.gl-rank-text{white-space:nowrap;font-weight:900}
.gl-player{
  display:flex;align-items:center;gap:7px;min-width:0;max-width:100%
}
.gl-player__flag{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 29px;height:23px;border-radius:4px;background:#223b55;overflow:hidden
}
.gl-player__flag img{width:25px;height:20px;object-fit:contain}
.gl-player__name{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-weight:900;font-size:12px;color:#f8f7f2
}
.gl-player__name:hover{color:#ffe19a;text-decoration:underline}
.gl-division-cell{display:flex;align-items:center;gap:8px}
.gl-division-cell img{width:26px;height:27px;object-fit:contain;flex:none}
.gl-division-cell a{color:#e5e5ec;font-size:11px}
.gl-division-cell a:hover{text-decoration:underline}
.gl-elo{color:#61b1ff!important;font-weight:950;font-size:15px}
.gl-winloss{display:flex;align-items:center;gap:7px;white-space:nowrap}
.gl-winloss strong{font-size:12px}
.gl-winloss__bar{height:7px;min-width:35px;flex:1;background:#4c5c70;border-radius:99px;overflow:hidden}
.gl-winloss__bar span{display:block;height:100%;background:linear-gradient(90deg,#dfab3f,#ffe196);border-radius:99px}
.gl-rate{font-weight:950;white-space:nowrap}
.gl-rate--pos{color:#51db83}
.gl-rate--neg{color:#fb7373}
.gl-rate--neutral{color:#b2bac6}
.gl-move{display:inline-flex;gap:3px;align-items:center;font-weight:900;white-space:nowrap}
.gl-move--up{color:#4fe18c}.gl-move--down{color:#ff686e}.gl-move--same{color:#abb6c4}
.gl-move svg{width:14px;height:14px}
.gl-empty{padding:30px 12px!important;text-align:center;color:#afbdcb!important}
.gl-pagination{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:7px;padding:15px 2px 1px;border-top:1px solid #405063;margin-top:10px
}
.gl-pages{display:flex;align-items:center;gap:6px}
.gl-page-button{
  height:31px;min-width:31px;padding:4px 7px;
  display:inline-grid;place-items:center;border:1px solid #4d5f73;border-radius:8px;
  color:#d9e3ed;background:#132031;cursor:pointer;font-size:12px;font-weight:850
}
.gl-page-button:disabled{opacity:.35;cursor:default}
.gl-page-button--current{
  color:#261904;border-color:#eac464;
  background:linear-gradient(#ffe8ae,#e9b348);font-weight:950
}
.gl-pagesize{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:11px;color:#cbd5e0}
.gl-pagesize select{color:#f4f8fc;background:#0b1624;border:1px solid #55697d;border-radius:8px;padding:6px 10px}
.gl-sidebar{display:flex;flex-direction:column;align-items:stretch;gap:13px;padding-top:1px}
.gl-sidebar .gl-sidepanel{width:100%;min-width:0;max-width:100%;align-self:stretch}
.gl-sidepanel{padding:10px 11px 12px}
.gl-sidepanel h2{
  margin:0 0 9px;padding:1px 4px 10px;border-bottom:1px solid #c4a35084;
  display:flex;align-items:center;gap:10px;color:#f8f5ea;
  text-transform:uppercase;font-size:14px;letter-spacing:.02em;font-weight:900
}
.gl-sidepanel h2 svg{width:21px;height:21px;color:#f1c857;flex:none}
.gl-info{margin:0}
.gl-info__row{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;min-height:41px;padding:7px 6px;border-bottom:1px solid #5b6d7c39
}
.gl-info__row:last-child{border-bottom:0}
.gl-info dt{display:flex;align-items:center;gap:9px;min-width:0;font-size:11px;font-weight:750}
.gl-info dt svg{width:18px;height:18px;flex:none;color:#f0d07e}
.gl-info dd{margin:0;text-align:right;font-size:11px;font-weight:800;color:#e0e9f3}
.gl-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 5px;padding:6px 1px 2px}
.gl-tier{
  display:flex;align-items:center;flex-direction:column;gap:4px;
  text-align:center;min-width:0;padding:4px 0;border-radius:8px;
  transition:background .15s
}
.gl-tier:hover{background:#1c2d3f}
.gl-tier img{width:58px;height:52px;object-fit:contain;filter:drop-shadow(0 5px 4px #0009)}
.gl-tier__name{color:#ffe0a0;text-transform:uppercase;font-weight:900;font-size:10px}
.gl-tier__range{color:#d4dce6;font-size:10px;white-space:nowrap}
.gl-recent-head{display:flex;align-items:center;justify-content:space-between;gap:9px}
.gl-sidepanel .gl-recent-head h2{border:0;padding-bottom:0;margin-bottom:7px}
.gl-recent-head a{font-size:11px;color:#f5d579;font-weight:850;white-space:nowrap}
.gl-recent-head a:hover{text-decoration:underline}
.gl-recent-list{display:flex;flex-direction:column;gap:7px;border-top:1px solid #c4a35084;padding-top:8px}
.gl-recent{
  display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:9px 10px;
  min-width:0;background:linear-gradient(140deg,#0d1a29,#070e18);
  border:1px solid #475970;border-radius:9px;transition:border-color .2s
}
.gl-recent:hover{border-color:#e0b55e}
.gl-recent__summary{display:flex;align-items:center;gap:9px;min-width:0;width:100%}
.gl-recent__map{width:62px;height:44px;object-fit:contain;flex:none}
.gl-recent__meta{flex:1;min-width:0}
.gl-recent__title{display:flex;align-items:baseline;gap:8px;font-size:11px;font-weight:850;white-space:nowrap}
.gl-recent__title strong{color:#ffda76}
.gl-recent__title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-recent__details{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#c1cfdb;font-size:10px;margin-top:4px}
.gl-recent__teams{
  display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;
  border-top:1px solid #66799155;padding:7px 3px 0
}
.gl-recent__team{
  display:grid;grid-template-columns:61px minmax(0,1fr);align-items:start;
  gap:7px;min-width:0;color:#d8e3f0
}
.gl-recent__team-label{font:850 10px/1.45 Inter,"Segoe UI",sans-serif;white-space:nowrap}
.gl-recent__team--blue .gl-recent__team-label{color:#69bdff}
.gl-recent__team--red .gl-recent__team-label{color:#f49aa1}
.gl-recent__names{
  min-width:0;color:#e5edf7;font:650 10px/1.45 Inter,"Segoe UI",sans-serif;
  display:block;white-space:normal;overflow-wrap:anywhere
}
.gl-recent__dot{color:#8c9daf;padding:0 3px}
.gl-state{
  display:inline-flex;align-items:center;flex:none;gap:4px;
  padding:6px 7px;border:1px solid #465f79;border-radius:18px;
  background:#14202c;font-weight:900;font-size:10px;line-height:1;
  white-space:nowrap
}
.gl-state--finished{color:#6cbbff;border-color:#397bb3;background:#0d2539}
.gl-state--void{color:#ffbf71;border-color:#d5963a;background:#39240d}
.gl-state--live{color:#69df98;border-color:#2b9361;background:#143723}
.gl-state--unknown{color:#abb6c3}
.gl-state__dot{width:6px;height:6px;background:#4de487;border-radius:50%;animation:glBlink 1.2s infinite}
@keyframes glBlink{50%{opacity:.25}}
.gl-side-empty{font-size:11px;padding:12px 3px;color:#9eafc1;line-height:1.5}
@media(max-width:1250px){
  .gl-layout{grid-template-columns:minmax(0,1.85fr) minmax(290px,.85fr);padding-inline:14px}
  .gl-tier img{width:49px;height:46px}
  .gl-control--search{flex-basis:155px}
}
@media(max-width:1040px){
  .gl-layout{grid-template-columns:minmax(0,1fr)}
  .gl-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .gl-sidebar .gl-sidepanel--recent{grid-column:1/-1}
  .gl-tier-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:700px){
  .gl-hero{height:170px;background-position:50% 50%}
  .gl-hero__title{font-size:clamp(35px,9vw,58px)}
  .gl-hero__title-row{gap:8px}
  .gl-hero__rule{flex-basis:28px}
  .gl-hero__mode{min-width:0;width:min(335px,95vw);font-size:12px}
  .gl-layout{padding:11px 9px 35px;gap:14px}
  .gl-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:12px}
  .gl-tab{min-height:46px;font-size:12px}
  .gl-ranking{padding:10px 8px}
  .gl-ranking__head h2{font-size:19px}
  .gl-controls{align-items:stretch}
  .gl-controls__inputs{width:100%}
  .gl-control--search{max-width:none;flex:1 1 100%;width:100%}
  .gl-control--select{flex:1 1 calc(50% - 7px);justify-content:space-between}
  .gl-control--select select{max-width:112px}
  .gl-count{width:100%;text-align:right}
  .gl-pagination{justify-content:center}
  .gl-pagesize{width:100%;justify-content:flex-end}
  .gl-sidebar{display:flex;flex-direction:column;align-items:stretch;width:100%}
  .gl-sidebar .gl-sidepanel{width:100%!important;min-width:0;max-width:100%!important;align-self:stretch}
  .gl-sidebar .gl-sidepanel:nth-child(2){min-height:290px;padding:13px 15px 18px}
  .gl-tier-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px;padding:13px 4px 5px}
  .gl-tier img{width:min(73px,100%);height:64px}
  .gl-tier__name{font-size:11px}
  .gl-tier__range{font-size:10px}
}
@media(max-width:390px){
  .gl-hero__title{font-size:35px}
  .gl-hero__gem{font-size:11px}
  .gl-recent{gap:6px;padding:8px}
  .gl-recent__summary{gap:5px}
  .gl-recent__map{width:49px;height:38px}
  .gl-recent__team{grid-template-columns:55px minmax(0,1fr);gap:5px}
  .gl-recent__team-label,.gl-recent__names{font-size:9.5px}
  .gl-state{font-size:9px;padding:6px}
}
@media(prefers-reduced-motion:reduce){.gl-state__dot{animation:none}.gl-tab,.gl-recent{transition:none}}
