.site-pc:has(.rank-page) { background: #eee; }
.rank-hero { height: clamp(250px, 27.2vw, 392px); display: grid; align-items: end; background: #eee url(../images/ranking-banner.png) center top no-repeat; }
.rank-tabs {
    display: grid;
    grid-template-columns: 34% 28% 38%;
    width: min(1103px, calc(100% - 24px));
    aspect-ratio: 1103 / 85;
    margin-inline: auto;
    background: url(/pc/images/game_phb_bottom.png) center top / 100% auto no-repeat;
}
.rank-tabs[data-rank-tab="hot"] { background-position-y: 50.74%; }
.rank-tabs[data-rank-tab="software"] { background-position-y: 95.93%; }
.rank-tabs a { font-size: 0; }
.rank-tabs a:focus-visible { outline: 3px solid #72520a; outline-offset: -4px; }
.rank-grid { display: grid; grid-template-columns: minmax(175px, 22%) minmax(0, 1fr); gap: 28px; }
.rank-categories { align-self: start; display: grid; background: #fff; font-size: 15px; text-align: center; }
.rank-categories a { padding: 13px 8px; border-bottom: 1px solid #eee; }
.rank-categories a[aria-current] { background: #286ae0; color: #fff; font-weight: 700; }
.rank-results { min-width: 0; background: #fff; padding: 12px; }
.rank-entry { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 145px; align-items: center; gap: 20px; min-height: 140px; padding: 18px; border-bottom: 1px solid #eee; }
.rank-entry[data-position="1"] { background: #fef0ef; }
.rank-entry[data-position="2"] { background: #faf3e8; }
.rank-entry[data-position="3"] { background: #f3f9ec; }
.rank-entry:nth-child(-n+3) { margin-bottom: 18px; border-bottom: 0; border-radius: 4px; }
.rank-place { position: absolute; top: 0; left: 17px; padding: 2px 8px; color: #fff; background: #777; border-radius: 0 0 6px 6px; z-index: 1; }
[data-position="1"] .rank-place { background: #ff292b; }
[data-position="2"] .rank-place { background: #c58c00; }
[data-position="3"] .rank-place { background: #599600; }
.rank-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fff; }
.rank-info h2 { font-size: 21px; }
.rank-info p { margin: 6px 0; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-info span { color: #666; }
.rank-action { text-align: center; display: grid; gap: 4px; }
.rank-action a { background: #fb292c; color: #fff; padding: 8px; border-radius: 4px; font-size: 15px; }
.rank-action span { color: #795026; padding: 4px; background: #fff0dc; }
@media(max-width: 730px) { .rank-grid{gap: 12px;grid-template-columns: 130px 1fr} .rank-entry{grid-template-columns:55px 1fr;gap:8px} .rank-action{grid-column:2} }

.rank-place { min-width: 80px; padding: 3px 10px; text-align: center; font-size: 17px; font-weight: 700; }
.rank-entry:nth-child(-n+3) { min-height: 163px; }
.rank-entry:nth-child(-n+3) .rank-cover { margin-top: 16px; }
.rank-info h2 { font-weight: 500; }
.rank-info p { padding-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,.075); }
