.list a{color:inherit; text-decoration:none}

.top-rating {
    padding: 0;
}
    /* ---------- hero ---------- */
.top-rating .hero{
    background:linear-gradient(180deg,#fff 0%, #f5f7fa 100%);
    border-bottom:1px solid var(--line); padding:36px 0 28px;
}
.top-rating .hero .lede{margin:0 0 18px; color:var(--muted); max-width:62ch; font-size:15.5px}
.top-rating .hero .lede b{color:var(--ink); font-weight:600}

details.method{
    border:1px solid var(--line); background:var(--card); border-radius:var(--r);
    padding:2px 16px; max-width:62ch; box-shadow:var(--shadow);
}
details.method summary{
    cursor:pointer; padding:12px 0; font-size:14px; font-weight:600; color:var(--accent);
    list-style:none; display:flex; align-items:center; gap:8px;
}
details.method summary::-webkit-details-marker{display:none}
details.method summary::after{content:"›"; margin-left:auto; transition:transform .15s; color:var(--muted)}
details.method[open] summary::after{transform:rotate(90deg)}
details.method p{margin:0 0 12px; font-size:14px; color:var(--muted)}

.top-rating .stats{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.top-rating .stat{background:var(--card); border:1px solid var(--line); border-radius:10px; padding:8px 14px; font-size:13px; color:var(--muted)}
.top-rating .stat b{color:var(--ink); font-size:15px; font-variant-numeric:tabular-nums}

/* ---------- toolbar ---------- */
.toolbar{
    position:sticky; top:0; z-index:20; background:rgba(245,247,250,.92);
    backdrop-filter:blur(8px); border-bottom:1px solid var(--line);
    padding:14px 0; margin-bottom:24px;
}
.toolbar-in{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.top-rating .search{flex:1 1 260px; position:relative}
.top-rating .search input{
    width:100%; padding:11px 14px 11px 38px; border:1px solid var(--line); border-radius:10px;
    background:var(--card); font:inherit; font-size:14.5px; color:var(--ink); outline:none;
}
.top-rating .search input:focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.top-rating .search svg{position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--muted)}

.top-rating .chips{display:flex; flex-wrap:wrap; gap:6px}
.top-rating .chip{
    border:1px solid var(--line); background:var(--card); color:var(--muted);
    padding:8px 13px; border-radius:999px; font-size:13.5px; cursor:pointer; font-family:inherit;
    transition:.12s;
}
.top-rating .chip:hover{color:var(--ink); border-color:#cfd6e2}
.top-rating .chip[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:#fff}

.top-rating select{
    padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--card);
    font:inherit; font-size:14px; color:var(--ink); cursor:pointer; outline:none;
}
.toggle{display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--muted); cursor:pointer; user-select:none}
.toggle input{width:17px; height:17px; accent-color:var(--accent); cursor:pointer}
.reset{
    border:0; background:none; color:var(--accent); font:inherit; font-size:13.5px;
    cursor:pointer; padding:8px 4px; display:none;
}
.reset.on{display:block}

/* ---------- podium ---------- */
.sec-title{font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:0 0 12px; font-weight:600}
.podium{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:34px;padding: 0;}
.pcard{
    background:var(--card); border:1px solid var(--line); border-radius:var(--r);
    padding:18px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px;
    position:relative; transition:.15s;
}
.pcard:hover{transform:translateY(-2px); box-shadow:0 2px 4px rgba(16,24,40,.06), 0 14px 30px -14px rgba(16,24,40,.3)}
.pcard.first{border-color:#c9d8ff; background:linear-gradient(180deg,#fff, #f7f9ff)}
.medal{
    position:absolute; top:-10px; left:16px; background:var(--accent); color:#fff;
    font-size:12px; font-weight:700; padding:3px 9px; border-radius:999px;
}
.pcard.first .medal{background:linear-gradient(135deg,#1f4fd8,#5b7ff0)}
.pname{font-weight:600; font-size:15px; line-height:1.35; margin-top:6px}
.pmeta{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); margin-top:auto}

/* ---------- list ---------- */
.list-head{
    display:grid; grid-template-columns:32px 52px minmax(0,1fr) 120px 60px 60px 28px;
    gap:16px; padding:0 18px 10px; font-size:11.5px; text-transform:uppercase;
    letter-spacing:.07em; color:var(--muted); font-weight:600;
}
.hint{border-bottom:1px dotted var(--muted); cursor:help}

.list{display:flex; flex-direction:column; gap:8px; margin-bottom:28px;padding: 0;}
.row{
    display:grid; grid-template-columns:32px 52px minmax(0,1fr) 120px 60px 60px 28px;
    gap:16px; align-items:center; background:var(--card); border:1px solid var(--line);
    border-radius:12px; padding:14px 18px; transition:.12s;
}
.row:hover{border-color:#c9d8ff; box-shadow:var(--shadow)}
.pos{font-weight:700; font-size:17px; color:var(--muted); font-variant-numeric:tabular-nums}
.pos.top{color:var(--accent)}
.mono{
    width:40px; height:40px; border-radius:10px; background:var(--accent-soft); color:var(--accent);
    display:grid; place-items:center; font-size:11px; font-weight:700; letter-spacing:.01em;
    text-align:center; line-height:1.05; padding:2px; overflow:hidden;
}
.who{min-width:0}
.nm{font-weight:600; font-size:15px; line-height:1.35; display:block}
.sub{font-size:12.5px; color:var(--muted); margin-top:3px; display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.tag{background:#f1f3f8; border-radius:6px; padding:1px 7px; font-size:11.5px; color:#4a5568}

.score{display:flex; align-items:center; gap:8px}
.stars{
    font-size:15px; letter-spacing:1px; line-height:1;
    background:linear-gradient(90deg, var(--star) calc(var(--v)/5*100%), #dde2ea 0);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.num{font-size:14.5px; font-variant-numeric:tabular-nums}
.na{font-size:12.5px; color:#9aa3b2}
.revs{font-size:13.5px; font-variant-numeric:tabular-nums; display:flex; gap:6px}
.up{color:var(--up); font-weight:600}
.down{color:var(--down); font-weight:600}
.power{font-variant-numeric:tabular-nums; font-weight:600; font-size:15px; text-align:right}
.go{color:#c3cad6; text-align:center; font-size:18px}

.top-rating div.empty{
    text-align:center; padding:60px 20px; color:var(--muted); background:var(--card);
    border:1px dashed #cfd6e2; border-radius:var(--r); margin-bottom:28px;
    width: 100%;
    height: auto;
}
.top-rating div.empty b{display:block; color:var(--ink); margin-bottom:6px; font-size:16px}

.foot{
    border-top:1px solid var(--line); padding:22px 0 60px; font-size:13px; color:var(--muted);
    display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}

/* ---------- responsive ---------- */
@media (max-width:900px){
    .podium{grid-template-columns:1fr}
    .list-head{display:none}
    .row{
        grid-template-columns:auto minmax(0,1fr) auto;
        grid-template-areas:
        "pos who go"
        "score revs power";
        gap:10px 12px; padding:16px;
    }
    .pos{grid-area:pos; align-self:start}
    .mono{display:none}
    .who{grid-area:who}
    .score{grid-area:score}
    .revs{grid-area:revs; justify-content:center}
    .power{grid-area:power; text-align:right}
    .go{grid-area:go; align-self:start}
    .power::before{content:"вес "; font-weight:400; color:var(--muted); font-size:12px}
    .top-rating .hero{padding:24px 0 20px}
}
@media (max-width:520px){
    .toolbar-in{gap:8px}
    .chip{padding:7px 11px; font-size:13px}
    .revs{justify-content:flex-start}
}