body {
    background: radial-gradient(ellipse at 50% 0, #191a23 0, #0b0d13 48%);
    color: #e8eaf1;
}
body > nav { padding-inline: max(24px, calc((100% - 1320px) / 2)); }
body > main { max-width: 1368px; padding: 32px 24px; }
.main-card {
    padding: 28px;
    background: #10131c;
    border: 1px solid #262b38;
    border-radius: 20px;
    box-shadow: 0 20px 70px #0003;
}
.rankings-intro { text-align: center; margin: 0 auto 24px; }
.rankings-intro h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.035em; }
.rankings-intro p { color: #939aad; font-size: 12px; line-height: 1.7; margin-top: 8px; }
.category-links { justify-content: center; gap: 8px; margin-bottom: 22px; }
.category-links a { padding: 8px 14px; }
.mode-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding-bottom: 22px;
    margin-bottom: 18px;
}
.mode-tab {
    width: calc((100% - 90px) / 16); min-width: 0; height: 76px;
    border: 1px solid #2a303e; border-radius: 12px;
    justify-content: center; gap: 8px; padding: 10px 4px;
    transition: background .15s, border-color .15s, color .15s;
}
.mode-tab:not(.active) { opacity: 1; color: #a3aabd; background: #151924; }
.mode-tab:not(.active):hover { opacity: 1; color: #fff; background: #202534; border-color: #515b71; }
.mode-tab.active { background: #f08a1d18; border-color: #f08a1d; box-shadow: 0 0 20px #f08a1d0a; }
.mode-tab.active::after { display: none; }
.mode-tab img, .mode-tab svg { width: 30px; height: 30px; object-fit: contain; }
.mode-tab strong { font-size: 10px; line-height: 1; margin: 0; }
.ranking-toolbar { margin-bottom: 18px; }
.overall-header, .overall-row {
    grid-template-columns: 104px minmax(160px, 200px) 48px minmax(0, 1fr);
    gap: 16px;
}
.overall-header { padding: 10px 16px; font-size: 10px; letter-spacing: .12em; border: 0; }
.overall-header > :last-child { text-align: center; padding: 0; }
.overall-row {
    display: grid; min-height: 106px; margin: 10px 0; padding: 14px 16px;
    border: 1px solid #272d3a; border-radius: 14px; background: #161a24;
    transition: background .15s, border-color .15s;
}
.overall-row:hover { background: #1e2330; border-color: #485066; transform: none; }
.overall-row.top-3 { background: linear-gradient(110deg, #f08a1d0c, #161a24 45%); }
.overall-row .rank-skin-box {
    width: 104px; min-width: 0; height: 70px; padding: 0; border-radius: 10px;
    background: #222837; overflow: hidden;
}
.overall-row .rank-num { font-size: 23px; font-style: normal; bottom: auto; left: 10px; text-shadow: none; }
.overall-row .rank-skin {
    width: 48px; height: 68px; right: 6px; object-fit: contain; object-position: center;
    filter: drop-shadow(0 3px 3px #0005);
}
.overall-row .player-info { width: auto; min-width: 0; }
.player-info > :first-child { font-size: 17px; line-height: 1.4; }
.player-info > :last-child { color: #929caf; font-size: 11px; margin-top: 5px; white-space: normal; }
.overall-row .player-region { width: 42px; min-width: 0; height: 32px; margin: 0; font-size: 12px; border-radius: 8px; }
.overall-row .tiers-area { justify-content: center; gap: 5px; }
.tier-badge { width: 40px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; }
.tier-badge .icon-circle { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; }
.tier-badge .icon-circle img { width: 24px; height: 24px; object-fit: contain; }
.tier-badge .tier-label { position: static; transform: none; min-width: 34px; padding: 2px 5px; font-size: 10px; line-height: 14px; text-align: center; border-radius: 5px; }
.tier-badge .peak-status { font-size: 8px; line-height: 12px; margin: 0; color: #b8c0d1; }
.tier-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tier-col { border-radius: 12px; overflow: hidden; border: 1px solid #2a303e; background: #151924; }
.tier-col-header { height: 64px; gap: 10px; }
.tier-player-mode { height: 48px; gap: 7px; padding: 5px 8px; border-bottom: 1px solid #ffffff05; }
.tier-player-mode img { width: 25px; height: 36px; object-fit: contain; object-position: center; flex-shrink: 0; background: transparent; }
.tier-player-mode .name { font-size: 11px; min-width: 0; }
.tier-player-mode .region-bar { width: 23px; min-width: 23px; border-radius: 5px; height: 26px; }
.tier-player-mode .region-bar strong { font-size: 8px; }
.tier-player-mode .tier-tag { font-size: 9px; padding: 3px 4px; }
.nav-search { width: 215px; border-radius: 10px; background: #151924; border-color: #303747; height: 38px; }
.nav-search:focus { border-color: #f08a1d; box-shadow: 0 0 0 3px #f08a1d18; }
.search-card { border-radius: 12px; background: #171c28; padding: 12px; }
.search-card img { width: 36px; height: 48px; object-fit: contain; flex-shrink: 0; background: #242b3a; }
.modal-card {
    width: min(440px, 100%); max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto;
    padding: 28px; border-radius: 22px; background: #141924; border-color: #364052;
    box-shadow: 0 28px 100px #0009;
}
.profile-skin {
    display: block; width: 120px; height: 168px; object-fit: contain; object-position: center;
    margin: 0 auto 16px; padding: 12px; border-radius: 18px;
    background: radial-gradient(ellipse, #303b52, #1b2231 75%);
}
.profile-tiers { margin-top: 8px; padding: 0; width: 100%; max-height: 38vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #46516a transparent; }
.profile-tier-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 116px; gap: 10px; padding: 11px 12px; background: #1b2230; border-color: #30394b; }
.profile-tier-row > :first-child { min-width: 0; }
.profile-tier-row > :first-child span { font-size: 12px; }
.profile-tier-row > span:nth-child(2) { text-align: center; padding: 3px 4px; font-size: 10px; }
.profile-tier-row .peak-status { margin: 0; font-size: 10px; line-height: 1.5; white-space: normal; text-align: right; color: #adb8cc; }
.modal-backdrop { backdrop-filter: blur(8px); background: #05070cbb; }
@media (max-width: 1100px) {
    .mode-tab { width: calc((100% - 42px) / 8); }
    .overall-header, .overall-row { grid-template-columns: 88px minmax(130px, 165px) 42px minmax(0, 1fr); gap: 12px; }
    .overall-row .rank-skin-box { width: 88px; }
    .tier-grid { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
}
@media (max-width: 767px) {
    body > nav { padding: 12px 16px; height: auto; min-height: 64px; }
    body > nav > :last-child > .md\:hidden { display: none; }
    body > nav > :last-child { min-width: 0; }
    .nav-search { width: min(215px, 48vw); }
    body > main { padding: 20px 12px; }
    .main-card { padding: 18px 12px; border-radius: 16px; }
    .rankings-intro { margin-bottom: 18px; }
    .rankings-intro p { font-size: 11px; max-width: 290px; margin-inline: auto; }
    .mode-navigation { gap: 6px; padding-bottom: 18px; }
    .mode-tab { width: calc((100% - 18px) / 4); min-width: 0; height: 68px; border-radius: 10px; }
    .mode-tab img, .mode-tab svg { width: 26px; height: 26px; }
    .overall-row { grid-template-columns: 78px minmax(0, 1fr) 36px; padding: 12px; gap: 12px; }
    .overall-row .rank-skin-box { width: 78px; height: 64px; }
    .overall-row .rank-skin { width: 40px; height: 60px; right: 3px; }
    .overall-row .rank-num { font-size: 20px; left: 8px; }
    .overall-row .player-region { width: 36px; height: 28px; font-size: 10px; }
    .player-info > :first-child { font-size: 15px; }
    .overall-row .tiers-area { grid-column: 1 / -1; gap: 8px; border-top: 1px solid #2a303e; padding-top: 12px; }
    .tier-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
    .tier-player-mode .name { font-size: 13px; }
    .modal-card { padding: 24px 18px; border-radius: 18px; }
    .profile-skin { width: 100px; height: 140px; }
    .profile-tier-row { grid-template-columns: minmax(0, 1fr) 36px 100px; gap: 8px; padding: 10px; }
    .profile-tier-row .peak-status { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
