.ranking-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 18px;
    padding: 28px 30px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: radial-gradient(circle at 90% 20%, rgba(57,217,138,.13), transparent 32%), linear-gradient(135deg, #15191c, #101315);
}

.ranking-header:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #39d98a;
}

.ranking-header-content {
    position: relative;
    z-index: 1;
}

.ranking-kicker {
    margin-bottom: 7px;
    color: #39d98a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.ranking-title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 750;
}

.ranking-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #aeb6ba;
    font-size: 14px;
}

.ranking-context strong {
    color: #e7ecee;
    font-weight: 600;
}

.ranking-context-separator {
    color: #555e62;
}

.ranking-update {
    margin-top: 15px;
    color: #737d82;
    font-size: 12px;
}

.ranking-filters {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: #15191b;
}

.ranking-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.ranking-filter-label {
    color: #727c80;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.ranking-sex {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
    background: #0f1214;
}

.ranking-sex a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 6px;
    color: #899297;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.ranking-sex a:hover {
    color: #fff;
}

.ranking-sex a.active {
    background: #39d98a;
    color: #0e1512;
}

.ranking-select {
    height: 36px;
    min-width: 155px;
    padding: 0 10px;
    border: 1px solid #293034;
    border-radius: 8px;
    outline: none;
    background: #0f1214;
    color: #dce2e4;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.ranking-select:focus {
    border-color: rgba(57,217,138,.65);
}

.ranking-search-wrap {
    display: flex;
    margin-left: auto;
}

.ranking-search {
    width: 230px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #293034;
    border-radius: 8px;
    outline: none;
    background: #0f1214;
    color: #dce2e4;
    font-family: inherit;
    font-size: 13px;
}

.ranking-search::placeholder {
    color: #687277;
}

.ranking-search:focus {
    border-color: rgba(57,217,138,.65);
}

.ranking-search-wrap button {
    height: 36px;
    margin-left: 6px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: #39d98a;
    color: #08120d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ranking-search-wrap button:hover {
    background: #4de59b;
}

.ranking-table-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: #15191b;
}

.ranking-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.ranking-table-title {
    color: #e8edef;
    font-size: 14px;
    font-weight: 700;
}

.ranking-count {
    color: #6f797d;
    font-size: 12px;
}

.ranking-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.ranking-table th {
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: #111416;
    color: #687277;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.ranking-table th:first-child {
    width: 70px;
    text-align: center;
}

.ranking-table th.rating-column {
    text-align: right;
}

.ranking-table td {
    height: 61px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.045);
    color: #cbd2d5;
    font-size: 13px;
    white-space: nowrap;
}

.ranking-table tbody tr {
    transition: background .12s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(57,217,138,.035);
}

.ranking-table tbody tr:last-child td {
    border-bottom: 0;
}

.rank-cell {
    width: 70px;
    text-align: center;
}

.rank-main {
    color: #e5eaec;
    font-size: 14px;
    font-weight: 750;
}

.rank-filtered {
    display: block;
    margin-top: 2px;
    color: #39d98a;
    font-size: 10px;
    font-weight: 700;
}

.player-cell {
    min-width: 220px;
}

.player-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e8edef;
    text-decoration: none;
    font-weight: 650;
}

.player-link:hover {
    color: #39d98a;
}

.player-img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    background: #252b2e;
}

.player-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fav-star {
    display: inline-block;
    margin-right: 2px;
    color: #697377;
    font-size: 17px;
    cursor: pointer;
    vertical-align: middle;
}

.fav-star:hover {
    color: #39d98a;
}

.inactive-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #e05252;
    box-shadow: 0 0 0 3px rgba(224,82,82,.10);
}

.club-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfc7ca;
    text-decoration: none;
}

.club-link:hover {
    color: #39d98a;
}

.club-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.rating-cell {
    text-align: right;
}

.rating-value {
    color: #39d98a;
    font-size: 17px;
    font-weight: 800;
}

.rating-label {
    display: block;
    margin-top: 1px;
    color: #5e686d;
    font-size: 9px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.record {
    font-weight: 650;
}

.record-win {
    color: #39d98a;
}

.record-separator {
    margin: 0 2px;
    color: #4f595d;
}

.record-loss {
    color: #d16a6a;
}

.last-game {
    color: #9ba4a8;
    font-size: 12px;
}

.last-game.inactive {
    color: #c56a6a;
}

.last-game-label {
    display: block;
    margin-top: 2px;
    color: #555f63;
    font-size: 9px;
    text-transform: uppercase;
}

.ranking-table-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255,255,255,.05);
    color: #687277;
    font-size: 11px;
}

.ranking-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.ranking-pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #292f32;
    border-radius: 7px;
    background: #15191b;
    color: #929b9f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.ranking-pagination a:hover {
    border-color: #39d98a;
    color: #39d98a;
}

.ranking-pagination a.active {
    border-color: #39d98a;
    background: #39d98a;
    color: #07120c;
}

.ranking-show-all {
    display: flex;
    justify-content: center;
    margin: 20px 0 5px;
}

.ranking-show-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid #293034;
    border-radius: 8px;
    background: #15191b;
    color: #aeb7ba;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.ranking-show-all a:hover {
    border-color: #39d98a;
    color: #39d98a;
}

.ranking-empty {
    width: 100%;
    padding: 45px 20px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: #15191b;
    color: #707a7e;
    text-align: center;
}

/* Layout focused on the classification, with optional filters. */
.ranking-shell{width:min(1320px,calc(100% - 32px));margin:24px auto 40px;min-width:0}
.ranking-shell,.ranking-shell *{box-sizing:border-box}.ranking-shell .ranking-page{width:100%;min-width:0}
.ranking-header{padding:28px 30px;background:linear-gradient(120deg,#17251f,#14191c)}
.ranking-intro{color:#b9c7c0;margin:12px 0 0;line-height:1.6;font-size:14px}.ranking-update{color:#a2afa8}
.ranking-filters{padding:22px;margin-bottom:24px}.ranking-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px}
.ranking-scope{display:grid;grid-template-columns:1fr 1.5fr;gap:16px;grid-column:1/-1}
.ranking-scope label,.ranking-extra label{display:flex;flex-direction:column;gap:8px;color:#c2cec7;font-size:13px;font-weight:600;min-width:0}
.ranking-select,.ranking-search{width:100%;height:44px;min-width:0;font-size:14px}.ranking-more{grid-column:1/-1;border-top:1px solid #303a34;padding-top:14px}
.ranking-more summary{cursor:pointer;color:#c6d5cc;font-size:14px;padding:6px 0}.ranking-extra{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:16px;margin-top:18px}
.ranking-search-wrap{margin:0;gap:8px}.ranking-search{flex:1}.ranking-search-wrap button{height:44px;margin:0;white-space:nowrap}
.ranking-reset{color:#b9c7c0;font-size:13px;align-self:center}.ranking-help{margin:12px 0 0;color:#a2afa8;font-size:12px;line-height:1.6}
.ranking-table{min-width:0}.ranking-table th{color:#a4b3ab}.ranking-count,.ranking-table-footer{color:#a2afa8}.ranking-table td{height:76px}
.ranking-table .player-cell{min-width:0}.player-meta{display:block;color:#a2afa8;font-size:11px;font-weight:400;margin-top:5px}.player-name{white-space:normal}
.ranking-table td:nth-child(3),.ranking-table th:nth-child(3),.ranking-table td:nth-child(4),.ranking-table th:nth-child(4){display:none}
.ranking-table td:nth-child(5){white-space:normal;max-width:220px}.rank-filtered{color:#a6b8ae}.rating-label{display:none}.last-game-label{color:#a2afa8}.ranking-record-link{text-decoration:none}
.ranking-table-wrapper:focus-visible{outline:3px solid #83f6b7;outline-offset:-3px}
@media(max-width:900px){.ranking-extra{grid-template-columns:1fr 1fr}.ranking-table td:last-child,.ranking-table th:last-child{display:none}}
@media(max-width:600px){.ranking-shell{width:calc(100% - 20px);margin-top:16px}.ranking-header{padding:22px 18px}.ranking-title{font-size:25px}.ranking-filters{padding:16px}.ranking-scope,.ranking-extra,.ranking-filter-row{grid-template-columns:1fr}.ranking-table th,.ranking-table td{padding:10px 7px}.ranking-table td:nth-child(5),.ranking-table th:nth-child(5){display:none}.ranking-table th:first-child,.rank-cell{width:38px}.player-img{display:none}.player-link{gap:0;font-size:13px}.player-name{gap:4px}.rating-value{font-size:16px}.ranking-table-header{padding:16px 12px}.ranking-table td{height:80px}.ranking-table .record{font-size:12px}.ranking-search-wrap button{padding:0 10px}.ranking-table-footer{padding:12px;line-height:1.6}}

.ranking-table th a{color:inherit;text-decoration:none;white-space:nowrap}.ranking-table th a:hover{color:#83f6b7}.ranking-table th a:focus-visible{outline:2px solid #83f6b7;outline-offset:4px}
