
:root { --rank-purple:#7b4db5; --rank-purple-dark:#603699; --rank-border:#dde3ec; --rank-text:#364758; --rank-muted:#7a8794; --rank-bg:#f4f7fb; }
body { background:var(--rank-bg); }
.ranking-shell { max-width:1180px; margin:0 auto; padding:28px 22px 48px; box-sizing:border-box; }
.ranking-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 30px; border:1px solid #e1d9ef; border-radius:18px; background:linear-gradient(135deg,#fff 0%,#fbf8ff 65%,#f0e8fb 100%); box-shadow:0 8px 25px rgba(74,48,112,.07); margin-bottom:22px; }
.ranking-kicker { display:inline-block; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--rank-purple); margin-bottom:6px; }
.ranking-hero h1 { margin:0 0 7px; color:var(--rank-text); font-size:30px; line-height:1.1; }
.ranking-hero p { margin:0; color:#687786; max-width:690px; line-height:1.5; }
.ranking-hero-badge { width:72px; height:72px; border-radius:22px; display:grid; place-items:center; flex:0 0 auto; font-size:34px; background:#fff; border:1px solid #e3daf0; box-shadow:0 10px 20px rgba(87,55,127,.09); }
.ranking-status { padding:20px; text-align:center; color:var(--rank-muted); }
.ranking-status.error { background:#fff3f3; color:#a33; border:1px solid #f0cece; border-radius:12px; }
.ranking-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.ranking-card { background:#fff; border:1px solid var(--rank-border); border-radius:16px; overflow:hidden; box-shadow:0 4px 18px rgba(45,61,78,.045); }
.ranking-card-featured { border-color:#d9c7ed; }
.ranking-card-head { display:flex; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid #edf0f4; background:#fbfcfe; }
.ranking-card-featured .ranking-card-head { background:#faf6ff; }
.ranking-icon { width:42px; height:42px; border-radius:12px; background:#f0e8f9; display:grid; place-items:center; font-size:20px; flex:0 0 auto; }
.ranking-card-head h2 { margin:0; color:var(--rank-text); font-size:17px; }
.ranking-card-head p { margin:3px 0 0; color:var(--rank-muted); font-size:12px; }
.ranking-list { list-style:none; padding:0; margin:0; }
.ranking-item { display:grid; grid-template-columns:34px 44px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px 16px; border-bottom:1px solid #f0f2f5; }
.ranking-item:last-child { border-bottom:0; }
.ranking-item:hover { background:#fcfbfe; }
.ranking-position { width:28px; height:28px; border-radius:9px; display:grid; place-items:center; font-weight:800; font-size:12px; color:#73808c; background:#f1f3f6; }
.ranking-item:nth-child(1) .ranking-position { background:#fff1b8; color:#8b6811; }
.ranking-item:nth-child(2) .ranking-position { background:#eef0f4; color:#596675; }
.ranking-item:nth-child(3) .ranking-position { background:#f6e3d5; color:#875b3e; }
.ranking-avatar { width:44px; height:44px; border-radius:10px; object-fit:cover; background:#edf1f5; }
.ranking-person { min-width:0; }
.ranking-name { display:block; font-weight:750; color:#405267; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ranking-name:hover { text-decoration:underline; }
.ranking-username { display:block; margin-top:2px; font-size:12px; color:#8a96a2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ranking-total { min-width:54px; text-align:right; font-weight:800; color:var(--rank-purple-dark); font-size:15px; }
.ranking-total small { display:block; color:#9aa5af; font-size:9px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; margin-top:1px; }
.ranking-empty { padding:24px 18px; color:#8a96a2; text-align:center; font-size:13px; }
@media (max-width:820px) { .ranking-shell{padding:18px 12px 34px}.ranking-grid{grid-template-columns:1fr}.ranking-hero{padding:20px}.ranking-hero-badge{width:58px;height:58px;font-size:28px}.ranking-hero h1{font-size:26px} }
@media (max-width:520px) { .ranking-hero-badge{display:none}.ranking-item{grid-template-columns:30px 40px minmax(0,1fr) auto;padding:10px 12px}.ranking-avatar{width:40px;height:40px}.ranking-card-head{padding:15px}.ranking-total{font-size:14px;min-width:44px} }
