/* 排行榜页面专用样式 */

/* 页面头部样式 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 搜索区域样式 */
.search-section {
    padding: 40px 0;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--background-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 121, 24, 0.12);
}

.overall-search .search-container {
    max-width: 720px;
}

.overall-search .search-box {
    margin-bottom: 0;
}

.search-box i {
    color: var(--text-secondary);
    margin-right: 15px;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 5px 0;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.search-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.search-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: transparent;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: spin 0.8s linear infinite;
}

.search-box.compact {
    padding: 10px 14px;
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.filter-select {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 模式标签样式 */
.mode-tabs {
    padding: 30px 0;
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 121, 24, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-btn i {
    font-size: 1.2rem;
}

/* 排行榜内容样式 */
.ranking-content {
    padding: 60px 0;
    background: var(--background-primary);
}

.ranking-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.ranking-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
}

.stat-item strong {
    color: var(--text-primary);
}

/* 排行榜表格样式 */
.ranking-table-container {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ranking-table thead {
    background: var(--background-tertiary);
}

.ranking-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ranking-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 121, 24, 0.055);
    transform: scale(1.01);
}

.ranking-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* 排名样式 */
.rank-number {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    width: 60px;
}

.rank-1 {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
    animation: trophyPulse 2.5s infinite;
}

.rank-2 {
    color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.12), transparent);
    box-shadow: 0 0 16px rgba(192, 192, 192, 0.3);
}

.rank-3 {
    color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12), transparent);
    box-shadow: 0 0 16px rgba(205, 127, 50, 0.25);
}

.rank-other { color: var(--text-primary); }

/* 玩家名称样式 */
.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-points {
    font-weight: 700;
    color: var(--text-primary);
}

/* 等级徽章样式 */
.rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    min-width: 40px;
}

/* S区段 - 红色 */
.rank-badge.sa {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.rank-badge.s {
    background: linear-gradient(135deg, #c62828, #d32f2f);
    color: white;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.rank-badge.s-minus {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    color: white;
    box-shadow: 0 2px 8px rgba(183, 28, 28, 0.3);
}

/* A区段 - 黄色 */
.rank-badge.aa {
    background: linear-gradient(135deg, #f57f17, #ffa000);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 127, 23, 0.3);
}

.rank-badge.a {
    background: linear-gradient(135deg, #ef6c00, #f57f17);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 108, 0, 0.3);
}

.rank-badge.a-minus {
    background: linear-gradient(135deg, #e65100, #ef6c00);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

/* B区段 - 蓝色 */
.rank-badge.ba {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.rank-badge.b {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: white;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.rank-badge.b-minus {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
}

/* C区段 - 绿色 */
.rank-badge.ca {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
}

.rank-badge.c {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.rank-badge.c-minus {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

/* D区段 - 灰色 */
.rank-badge.da {
    background: linear-gradient(135deg, #616161, #757575);
    color: white;
    box-shadow: 0 2px 8px rgba(97, 97, 97, 0.3);
}

.rank-badge.d {
    background: linear-gradient(135deg, #424242, #616161);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 66, 66, 0.3);
}

.rank-badge.d-minus {
    background: linear-gradient(135deg, #212121, #424242);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 33, 33, 0.3);
}

/* HT1/T1/LT1 - S区段梯度 (红色) */
.rank-badge.ht1 {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.rank-badge.t1 {
    background: linear-gradient(135deg, #c62828, #d32f2f);
    color: white;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.rank-badge.lt1 {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    color: white;
    box-shadow: 0 2px 8px rgba(183, 28, 28, 0.3);
}

/* HT2/T2/LT2 - A区段梯度 (黄色) */
.rank-badge.ht2 {
    background: linear-gradient(135deg, #f57f17, #ffa000);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 127, 23, 0.3);
}

.rank-badge.t2 {
    background: linear-gradient(135deg, #ef6c00, #f57f17);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 108, 0, 0.3);
}

.rank-badge.lt2 {
    background: linear-gradient(135deg, #e65100, #ef6c00);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

/* HT3/T3/LT3 - B区段梯度 (蓝色) */
.rank-badge.ht3 {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.rank-badge.t3 {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: white;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.rank-badge.lt3 {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
}

/* HT4/T4/LT4 - C区段梯度 (绿色) */
.rank-badge.ht4 {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
}

.rank-badge.t4 {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: white;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.rank-badge.lt4 {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

/* HT5/T5/LT5 - D区段梯度 (灰色) */
.rank-badge.ht5 {
    background: linear-gradient(135deg, #616161, #757575);
    color: white;
    box-shadow: 0 2px 8px rgba(97, 97, 97, 0.3);
}

.rank-badge.t5 {
    background: linear-gradient(135deg, #424242, #616161);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 66, 66, 0.3);
}

.rank-badge.lt5 {
    background: linear-gradient(135deg, #212121, #424242);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 33, 33, 0.3);
}

/* 设备标签样式 */
.device-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.device-tag.otg { border-color: #4caf50; color: #4caf50; }
.device-tag.pc { border-color: #2196f3; color: #2196f3; }
.device-tag.touch { border-color: #ff9800; color: #ff9800; }
.device-tag.new-touch { border-color: #9c27b0; color: #9c27b0; }
.device-tag.controller { border-color: #f44336; color: #f44336; }
.device-tag.pc-controller { border-color: #607d8b; color: #607d8b; }

.mode-level-list::-webkit-scrollbar {
    height: 4px;
}

.mode-level-list::-webkit-scrollbar-track {
    background: transparent;
}

.mode-level-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.mode-level-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.mode-level-chip i {
    color: var(--primary-color);
}

.overall-summary {
    padding: 40px 0;
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
}

.overall-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.summary-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-top i {
    color: var(--primary-color);
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.overall-ranking-content {
    padding: 60px 0;
    background: var(--background-primary);
}

.all-region-block {
    margin-bottom: 50px;
    background: var(--background-secondary);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.block-header h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overall-table {
    border-radius: 0;
}

.overall-row .player-points {
    font-size: 1.1rem;
}

/* 前三名模式等级列滚动条样式 */
.overall-table .ranking-table tbody tr.top-rank-row .top-rank-mode-level::-webkit-scrollbar {
    height: 3px;
}

.overall-table .ranking-table tbody tr.top-rank-row .top-rank-mode-level::-webkit-scrollbar-track {
    background: transparent;
}

.overall-table .ranking-table tbody tr.top-rank-row .top-rank-mode-level::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.player-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.player-modal .modal-content {
    position: relative;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    animation: slideInUp 0.3s ease-out;
}

.player-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.player-modal .modal-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.player-modal .modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-modal .modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.player-modal .modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.player-modal .modal-body {
    padding: 20px;
}

.player-modal .detail-section {
    margin-bottom: 25px;
}

.player-modal .detail-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.player-modal .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.player-modal .detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-modal .detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-modal .detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.player-modal .detail-value .device-tag {
    margin-right: 6px;
    margin-bottom: 4px;
}

.player-modal-level-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.modal-mode-badge i {
    color: var(--primary-color);
}


/* 积分和胜率样式 */
.score {
    font-weight: 600;
    color: var(--primary-color);
}

.win-rate {
    font-weight: 600;
}

.win-rate.high { color: var(--success-color); }
.win-rate.medium { color: var(--warning-color); }
.win-rate.low { color: var(--error-color); }
.win-rate.famous { color: var(--famous-color); }
.win-rate.media { color: var(--media-color); }
.win-rate.premium { color: var(--error-color); }
.win-rate.before { color: var(--primary-color); }
.win-rate.best { color: var(--best-color); }

/* 等级说明区域 */
.rank-explanation {
    padding: 60px 0;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
}

.explanation-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.explanation-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.explanation-title i {
    color: var(--primary-color);
}

.rank-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rank-level {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rank-level:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title i {
        font-size: 1.8rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-container {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .ranking-table {
        font-size: 0.8rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
    }
    
    .rank-levels {
        grid-template-columns: 1fr;
    }
    
    .explanation-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }

    /* Competitive leaderboard theme */
    .page-header {
        position: relative;
        padding: 142px 0 52px;
        background:
            radial-gradient(ellipse at 10% 10%, rgba(163, 230, 53, 0.075), transparent 30rem),
            linear-gradient(180deg, rgba(17, 24, 32, 0.55), rgba(11, 16, 21, 0.12));
        border-bottom-color: rgba(148, 163, 184, 0.12);
    }

    .header-content {
        text-align: left;
    }

    .page-title {
        gap: 12px;
        margin-bottom: 14px;
        font-size: clamp(2rem, 4vw, 3rem);
        letter-spacing: -0.04em;
    }

    .page-title i,
    .section-title i {
        color: var(--primary-color);
    }

    .page-description {
        max-width: 760px;
        margin: 0;
        color: #9aa8b7;
        font-size: 1rem;
    }

    .search-section,
    .mode-tabs,
    .ranking-content,
    .overall-ranking-content,
    .overall-summary {
        background: transparent;
    }

    .search-section {
        padding: 28px 0;
        border-bottom-color: rgba(148, 163, 184, 0.1);
    }

    .search-container {
        max-width: 900px;
    }

    .search-box {
        min-height: 58px;
        padding: 10px 12px 10px 18px;
        background: #111820;
        border: 1px solid #2a3743;
        border-radius: 10px;
    }

    .search-box:focus-within {
        border-color: rgba(163, 230, 53, 0.65);
        box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.1);
    }

    .search-box i {
        color: #8090a0;
    }

    .search-input::placeholder {
        color: #718092;
    }

    .search-btn {
        min-height: 40px;
        padding: 9px 17px;
        border-radius: 7px;
        background: var(--primary-color);
        color: #17200d;
    }

    .search-btn:hover {
        background: var(--primary-hover);
        transform: none;
    }

    .filter-select {
        min-height: 42px;
        background: #111820;
        border-color: #2a3743;
        border-radius: 8px;
    }

    .filter-select:focus {
        border-color: rgba(163, 230, 53, 0.65);
    }

    .mode-tabs {
        padding: 14px 0 24px;
        border-bottom-color: rgba(148, 163, 184, 0.1);
    }

    .tab-container {
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        padding: 3px 1px 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) transparent;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 11px 16px;
        background: #111820;
        border: 1px solid #26323d;
        border-radius: 8px;
        color: #aab6c4;
        font-size: 0.9rem;
    }

    .tab-btn::before {
        display: none;
    }

    .tab-btn:hover {
        background: #17212a;
        border-color: rgba(163, 230, 53, 0.4);
        color: var(--text-primary);
        transform: none;
        box-shadow: none;
    }

    .tab-btn.active {
        background: rgba(163, 230, 53, 0.12);
        border-color: rgba(163, 230, 53, 0.38);
        color: var(--primary-color);
    }

    .ranking-content,
    .overall-ranking-content {
        padding: 38px 0 64px;
    }

    .section-header {
        margin-bottom: 22px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    }

    .section-title {
        font-size: 1.55rem;
        letter-spacing: -0.025em;
    }

    .section-stats {
        gap: 18px;
    }

    .section-stats .stat-item {
        color: #8f9dad;
    }

    .section-stats .stat-item i {
        color: var(--primary-color);
    }

    .ranking-table-container {
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 12px;
        background: #10171e;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    }

    .ranking-table {
        font-size: 0.9rem;
    }

    .ranking-table thead {
        background: #151e27;
    }

    .ranking-table th {
        padding: 15px 16px;
        color: #8f9dad;
        border-bottom: 1px solid #293540;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.045em;
        text-transform: uppercase;
    }

    .ranking-table td {
        padding: 14px 16px;
        border-bottom-color: rgba(148, 163, 184, 0.1);
        color: #dce4ec;
    }

    .ranking-table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.012);
    }

    .ranking-table tbody tr:hover {
        background: rgba(163, 230, 53, 0.045);
        transform: none;
    }

    .ranking-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .rank-number {
        color: #9aa8b7;
        font-size: 0.95rem;
    }

    .rank-1,
    .rank-2,
    .rank-3 {
        background: transparent;
        box-shadow: none;
        animation: none;
    }

    .rank-badge,
    .device-tag {
        box-shadow: none;
    }

    .rank-badge {
        border-radius: 6px;
        padding: 4px 9px;
        font-size: 0.78rem;
    }

    .device-tag {
        background: rgba(255, 255, 255, 0.025);
    }

    .summary-card {
        background: #111820;
        border-color: rgba(148, 163, 184, 0.14);
        border-radius: 12px;
        box-shadow: none;
    }

    .all-region-block {
        margin-bottom: 28px;
        background: #10171e;
        border-color: rgba(148, 163, 184, 0.14);
        border-radius: 12px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    }

    .block-header {
        padding: 19px 22px;
        border-bottom-color: rgba(148, 163, 184, 0.12);
    }

    .block-header h2 {
        font-size: 1.15rem;
    }

    .block-header h2 i {
        color: var(--primary-color);
    }

    .player-modal .modal-content {
        background: #111820;
        border-color: var(--border-color);
    }

    @media (max-width: 768px) {
        .page-header {
            padding: 112px 0 36px;
        }

        .page-title {
            font-size: 2rem;
        }

        .search-filters {
            flex-wrap: wrap;
            justify-content: stretch;
        }

        .filter-select {
            flex: 1 1 150px;
        }

        .tab-container {
            justify-content: flex-start;
        }

        .section-header {
            align-items: flex-start;
            flex-direction: column;
            gap: 12px;
        }

        .ranking-table-container {
            overflow-x: auto;
        }

        .ranking-table {
            min-width: 680px;
        }

        .overall-table .ranking-table {
            min-width: 540px;
        }

        .block-header {
            padding: 16px;
        }
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .ranking-table {
        font-size: 0.7rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 8px 5px;
    }
    
    .rank-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    
    .device-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

@keyframes trophyPulse {
    0% { transform: scale(1); box-shadow: 0 0 18px rgba(255, 215, 0, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 0 24px rgba(255, 215, 0, 0.55); }
    100% { transform: scale(1); box-shadow: 0 0 18px rgba(255, 215, 0, 0.35); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 搜索高亮 */
.search-highlight {
    background: rgba(255, 235, 59, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Unified MCPVP-style kits leaderboard */
.ranking-hero {
    padding: 118px 0 28px;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(50, 67, 112, 0.22), transparent 34rem),
        var(--background-primary);
    border: 0;
}

.ranking-hero .header-content {
    text-align: left;
}

.ranking-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ff6478;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ranking-kicker i {
    color: #ed1835;
    font-size: 0.45rem;
}

.ranking-hero .page-title {
    justify-content: flex-start;
    margin-bottom: 8px;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.ranking-hero .page-description {
    margin: 0;
    font-size: 0.98rem;
}

.unified-rankings {
    padding: 0 0 64px;
    background: transparent;
}

.unified-ranking-panel {
    overflow: hidden;
    padding: 14px;
    background: #111426;
    border: 1px solid #1d263b;
    border-radius: 10px;
}

.rank-mode-tabs {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 1px 12px;
    border-bottom: 1px solid rgba(91, 107, 143, 0.19);
    scrollbar-color: #38425a transparent;
    scrollbar-width: thin;
}

.rank-mode-group {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    padding-left: 8px;
    border-left: 1px solid rgba(91, 107, 143, 0.25);
}

.rank-mode-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 13px;
    color: #9fa8bc;
    background: #0a0a1a;
    border: 1px solid #1d263b;
    border-radius: 7px;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rank-mode-tab i {
    color: #c9ceda;
    font-size: 0.9rem;
}

.rank-mode-tab:hover {
    color: #fff;
    border-color: #414c66;
}

.rank-mode-tab[aria-selected="true"] {
    color: #fff;
    background: #20273c;
    border-color: #697590;
    box-shadow: inset 0 -2px #ed1835;
}

.rank-mode-tab[aria-selected="true"] i {
    color: #ff344c;
}

.unified-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.unified-search-box {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    height: 42px;
    padding: 0 13px;
    color: #8c97ae;
    background: #0a0a1a;
    border: 1px solid #1d263b;
    border-radius: 7px;
}

.unified-search-box:focus-within {
    border-color: #66728e;
    box-shadow: 0 0 0 2px rgba(102, 114, 142, 0.12);
}

.unified-search-box input {
    width: 100%;
    min-width: 0;
    color: #e7e9ef;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.unified-search-box input::placeholder {
    color: #707b92;
}

.ranking-count {
    color: #909bb1;
    font-size: 0.8rem;
    white-space: nowrap;
}

.unified-table-wrap {
    overflow-x: auto;
    border-top: 1px solid rgba(91, 107, 143, 0.16);
}

.unified-ranking-table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0 7px;
    font-size: 0.86rem;
}

.unified-ranking-table thead {
    background: transparent;
}

.unified-ranking-table th {
    position: static;
    padding: 10px 13px;
    color: #8792a9;
    background: transparent;
    border: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.unified-ranking-table tbody tr {
    background: #0a0a1a;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.unified-ranking-table tbody tr:hover {
    background: #12162a;
}

.unified-ranking-table tbody td {
    padding: 10px 13px;
    background: inherit;
    border-top: 1px solid #1d263b;
    border-bottom: 1px solid #1d263b;
}

.unified-ranking-table tbody td:first-child {
    border-left: 1px solid #1d263b;
    border-radius: 7px 0 0 7px;
}

.unified-ranking-table tbody td:last-child {
    border-right: 1px solid #1d263b;
    border-radius: 0 7px 7px 0;
}

.unified-player-row {
    cursor: pointer;
}

.unified-player-row:focus-visible {
    outline: 2px solid #e21d38;
    outline-offset: 2px;
}

.unified-rank-cell {
    width: 52px;
    text-align: center;
}

.unified-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #a6afc2;
    background: #111426;
    border: 1px solid #252e45;
    border-radius: 6px;
    font-weight: 800;
}

.podium-1 .unified-rank-number {
    color: #f5ce54;
    border-color: rgba(245, 206, 84, 0.48);
}

.podium-2 .unified-rank-number {
    color: #d8e1ed;
    border-color: rgba(216, 225, 237, 0.35);
}

.podium-3 .unified-rank-number {
    color: #e7a270;
    border-color: rgba(231, 162, 112, 0.38);
}

.unified-player-cell {
    min-width: 185px;
    white-space: nowrap;
}

.unified-player-skin {
    width: 36px;
    height: 48px;
    margin-right: 11px;
    vertical-align: middle;
    object-fit: cover;
    object-position: top;
    background: #111426;
    border: 1px solid #25314a;
    border-radius: 5px;
}

.unified-player-name {
    color: #e7e9ef;
    font-weight: 700;
}

.unified-region-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.region-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    color: #aab4c8;
    background: #14192b;
    border: 1px solid #29344e;
    border-radius: 5px;
    font-size: 0.68rem;
    white-space: nowrap;
}

.region-cn {
    color: #ff9aa8;
    border-color: rgba(237, 24, 53, 0.3);
}

.unified-score-cell {
    color: #e7e9ef;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.unified-score-cell small {
    color: #8792a9;
    font-size: 0.7rem;
    font-weight: 500;
}

.unified-tier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 260px;
}

.unified-tier-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 3px 7px;
    color: #aeb7ca;
    background: #111426;
    border: 1px solid #242e45;
    border-radius: 6px;
    white-space: nowrap;
}

.unified-tier-chip strong {
    color: #eef0f6;
    font-size: 0.69rem;
}

.tier-kit-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #c8cede;
}

.tier-kit-icon img {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tier-kit-icon img[hidden] + i {
    display: inline-block;
}

.tier-kit-icon img:not([hidden]) + i {
    opacity: 0;
}

.tier-kit-label {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.66rem;
}

.muted-label {
    color: #7f8aa2;
}

.unified-empty {
    padding: 46px 20px !important;
    color: #909bb1;
    text-align: center;
}

.unified-empty i {
    margin-right: 9px;
    color: #ed1835;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-skin {
    width: 52px;
    height: 68px;
    object-fit: cover;
    object-position: top;
    background: #0a0a1a;
    border: 1px solid #293653;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .ranking-hero {
        padding: 112px 0 22px;
    }

    .ranking-hero .header-content {
        text-align: left;
    }

    .ranking-hero .page-title {
        justify-content: flex-start;
        font-size: 2.2rem;
    }

    .unified-ranking-panel {
        padding: 9px;
    }

    .rank-mode-tabs {
        gap: 6px;
    }

    .rank-mode-group {
        gap: 6px;
        padding-left: 6px;
    }

    .rank-mode-tab {
        min-height: 42px;
        padding: 7px 10px;
        font-size: 0.7rem;
    }

    .unified-ranking-table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .ranking-hero .page-title {
        font-size: 1.85rem;
    }

    .unified-search-row {
        gap: 8px;
    }

    .unified-search-box {
        height: 40px;
    }

    .ranking-count {
        font-size: 0.68rem;
    }
}

/* EloTiers-inspired leaderboard surfaces and controls */
.page-header {
    padding: 150px 0 48px;
    background:
        radial-gradient(ellipse at 7% 56%, rgba(255, 113, 19, 0.09), transparent 42%),
        var(--background-primary);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.header-content {
    text-align: left;
}

.page-title {
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    letter-spacing: -0.045em;
}

.page-description {
    max-width: 720px;
    margin: 0;
    font-size: 1rem;
}

.search-section,
.mode-tabs,
.ranking-content,
.overall-ranking-content,
.guild-ranking-content,
.overall-summary {
    background: transparent;
}

.search-section {
    padding: 20px 0 26px;
    border-bottom: 0;
}

.search-box,
.filter-select {
    background: #0b0c0e;
    border-color: var(--border-color);
}

.search-box {
    border-radius: 999px;
}

.search-input {
    min-width: 0;
}

.search-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.search-box:focus-within,
.filter-select:focus {
    border-color: rgba(255, 121, 24, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 121, 24, 0.12);
}

.search-btn {
    border-radius: 999px;
    background: linear-gradient(110deg, #ff6d0a, #ff9d00);
    color: #17100a;
}

.mode-tabs {
    padding: 10px 0 18px;
    border-bottom: 0;
}

.tab-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 10px 19px;
    background: #101113;
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.tab-btn::before {
    display: none;
}

.tab-btn:hover {
    background: #141517;
    border-color: rgba(255, 121, 24, 0.55);
    transform: translateY(-1px);
    box-shadow: none;
}

.tab-btn.active {
    background: linear-gradient(110deg, #ff6d0a, #ff9d00);
    border-color: transparent;
    color: #17100a;
}

.ranking-content,
.overall-ranking-content,
.guild-ranking-content {
    padding: 28px 0 64px;
}

.ranking-table-container,
.all-region-block,
.guild-ranking-container {
    background: #0b0c0e;
    border-color: var(--border-color);
    border-radius: 13px;
    box-shadow: none;
}

.ranking-table thead {
    background: #101113;
}

.ranking-table th {
    padding: 16px 15px;
    color: var(--text-secondary);
    border-bottom-color: var(--border-color);
    font-size: 0.75rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.ranking-table td {
    padding: 14px 15px;
}

.section-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom-width: 1px;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 121, 24, 0.055);
    transform: none;
}

.all-region-block {
    margin-bottom: 24px;
}

.block-header {
    padding: 20px 22px;
    border-bottom-color: var(--border-color);
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 32px;
    }

    .header-content {
        text-align: center;
    }

    .page-title {
        justify-content: center;
        font-size: 2rem;
    }

    .page-description {
        margin: 0 auto;
    }

    .search-box {
        flex-direction: row;
        gap: 12px;
        border-radius: 14px;
    }

    .search-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding-top: 108px;
    }

    .page-title {
        font-size: 1.7rem;
    }
}

/* MCPVP-style leaderboard rows */
.ranking-hero {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(34, 50, 83, 0.22), transparent 34rem),
        #0e1326;
}

.unified-ranking-panel {
    padding: 13px;
    background: #111426;
    border-color: #202942;
    border-radius: 10px;
}

.unified-ranking-table {
    min-width: 820px;
    border-spacing: 0 6px;
}

.unified-ranking-table th {
    padding: 9px 12px;
    color: #909bb1;
    letter-spacing: 0.06em;
}

.unified-ranking-table tbody tr {
    background: #0a0a1a;
}

.unified-ranking-table tbody tr:hover {
    background: #14182b;
}

.unified-ranking-table tbody td {
    padding: 8px 12px;
    border-top-color: #1d263b;
    border-bottom-color: #1d263b;
}

.unified-ranking-table tbody td:first-child {
    width: 57px;
    padding-left: 8px;
    border-left: 1px solid #1d263b;
}

.unified-rank-number {
    width: 38px;
    height: 48px;
    color: #aab4c8;
    background: #14192b;
    border: 0;
    border-radius: 6px 0 0 6px;
    clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
}

.podium-1 .unified-rank-number {
    color: #111426;
    background: linear-gradient(135deg, #f1cf4a, #bd8d12);
    border: 0;
}

.podium-2 .unified-rank-number {
    color: #1c2636;
    background: linear-gradient(135deg, #e1e8f0, #8d9eb3);
    border: 0;
}

.podium-3 .unified-rank-number {
    color: #231810;
    background: linear-gradient(135deg, #e6a16e, #a45b34);
    border: 0;
}

.unified-player-skin {
    width: 40px;
    height: 52px;
    margin-right: 10px;
    object-fit: contain;
    object-position: center bottom;
    background: #111426;
    border-color: #29344e;
}

.podium-row {
    background: #101426 !important;
}

.podium-1 {
    box-shadow: inset 2px 0 #d7ad3e;
}

.podium-2 {
    box-shadow: inset 2px 0 #9eafc2;
}

.podium-3 {
    box-shadow: inset 2px 0 #a86543;
}

.unified-tier-chip {
    min-height: 26px;
    padding: 3px 6px;
    background: #14192b;
    border-color: #29344e;
    border-radius: 5px;
}

.unified-tier-list {
    gap: 4px;
    min-width: 280px;
}

@media (max-width: 768px) {
    .unified-ranking-panel {
        padding: 8px;
    }

    .unified-ranking-table {
        min-width: 780px;
    }

    .unified-ranking-table tbody td {
        padding: 7px 8px;
    }
}

.player-modal .stats-profile-dialog {
    max-width: 680px;
    background: #0e1326;
    border-color: #28314a;
    margin: auto;
    animation: profile-dialog-enter 0.24s ease-out both;
}

.player-modal .stats-profile-dialog .modal-header {
    background: #111426;
    border-bottom-color: #202942;
}

.player-modal .stats-profile-dialog .stats-profile-heading h3 {
    margin: 2px 0;
    color: #f0f1f6;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.player-modal .stats-profile-dialog .modal-body {
    padding: 20px 22px 24px;
}

@media (max-width: 600px) {
    .player-modal .stats-profile-dialog .modal-header,
    .player-modal .stats-profile-dialog .modal-body {
        padding: 14px;
    }

    .player-modal .stats-profile-dialog .stats-profile-heading h3 {
        font-size: 1.05rem;
    }
}

.unified-ranking-table {
    min-width: 1040px;
    border-spacing: 0 8px;
}

.unified-ranking-table th {
    padding: 10px 12px;
}

.unified-ranking-table tbody tr {
    height: 98px;
    background: #080b17;
    animation: unified-row-enter 0.36s ease-out both;
    animation-delay: calc(var(--row-index, 0) * 24ms);
}

.unified-ranking-table tbody td {
    padding: 8px 12px;
    vertical-align: middle;
    border-top-color: #20263a;
    border-bottom-color: #20263a;
}

.unified-ranking-table tbody td.unified-rank-cell {
    width: 92px;
    min-width: 92px;
    height: 82px;
    padding: 0;
    border-left: 1px solid #20263a;
}

.unified-ranking-table tbody td.unified-player-cell {
    min-width: 240px;
}

.unified-ranking-table tbody td:last-child {
    min-width: 500px;
}

.unified-rank-number {
    display: flex;
    width: 90px;
    height: 100%;
    min-height: 82px;
    align-items: center;
    justify-content: center;
    color: #aab4c8;
    background: #14192b;
    border: 0;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%);
    font-size: 1.45rem;
    font-weight: 900;
}

.podium-1 .unified-rank-number {
    color: #111426;
    background: linear-gradient(135deg, #f1cf4a, #bd8d12);
}

.podium-2 .unified-rank-number {
    color: #1c2636;
    background: linear-gradient(135deg, #e1e8f0, #8d9eb3);
}

.podium-3 .unified-rank-number {
    color: #231810;
    background: linear-gradient(135deg, #e6a16e, #a45b34);
}

.unified-ranking-table tbody tr:not(.podium-row) .unified-rank-number {
    color: #aab4c8;
    background: #0c1020;
}

.unified-player-cell {
    white-space: normal;
}

.unified-player-skin {
    position: relative;
    z-index: 1;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    margin-right: 14px;
    margin-left: -48px;
    object-fit: cover;
    object-position: top;
    vertical-align: middle;
    background: #111426;
    border: 3px solid #303a53;
    border-radius: 50%;
}

.podium-1 .unified-player-skin {
    border-color: #d8bc5e;
}

.podium-2 .unified-player-skin {
    border-color: #aab8c9;
}

.podium-3 .unified-player-skin {
    border-color: #c98556;
}

.unified-player-details {
    display: inline-flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    vertical-align: middle;
}

.unified-player-name {
    overflow: hidden;
    font-size: 0.94rem;
    text-overflow: ellipsis;
}

.unified-player-summary {
    color: #d8bc5e;
    font-size: 0.73rem;
    font-weight: 700;
}

.unified-player-summary small {
    color: #8e99af;
    font-size: 0.68rem;
    font-weight: 500;
}

.unified-region-badges {
    align-items: center;
}

.unified-tier-list {
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

.unified-tier-chip {
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    height: 58px;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 6px 3px 4px;
    background: linear-gradient(180deg, #171b2d, #0d1020);
    border-color: #30384d;
    border-radius: 7px;
    box-shadow: inset 0 -2px rgba(133, 146, 171, 0.28);
}

.unified-tier-chip .tier-kit-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 0.9rem;
}

.unified-tier-chip strong {
    width: 100%;
    color: #aab4c8;
    font-size: 0.68rem;
    text-align: center;
}

.unified-tier-chip[title*="HT1"],
.unified-tier-chip[title*="LT1"] {
    box-shadow: inset 0 -2px #d8bc5e;
}

.unified-tier-chip[title*="HT2"],
.unified-tier-chip[title*="LT2"] {
    box-shadow: inset 0 -2px #8694ad;
}

.unified-tier-chip[title*="HT3"],
.unified-tier-chip[title*="LT3"] {
    box-shadow: inset 0 -2px #c98556;
}

.unified-player-row {
    cursor: pointer;
}

.unified-player-row:hover {
    background: #111426 !important;
}

.unified-player-row:focus-visible {
    outline: 2px solid #ed1835;
    outline-offset: 2px;
}

@keyframes unified-row-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .unified-ranking-table {
        min-width: 1010px;
    }

    .unified-ranking-table tbody td.unified-rank-cell,
    .unified-rank-number {
        width: 84px;
        min-width: 84px;
    }

    .unified-ranking-table tbody td.unified-player-cell {
        min-width: 210px;
    }

    .unified-ranking-table tbody td:last-child {
        min-width: 480px;
    }

    .unified-rank-number {
        width: 82px;
        font-size: 1.3rem;
    }

    .unified-player-skin {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        margin-left: -44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .unified-ranking-table tbody tr {
        animation: none;
    }
}

.rank-mode-tabs {
    align-items: center;
    gap: 8px;
    padding: 1px 1px 12px;
}

.rank-mode-group {
    gap: 8px;
    padding-left: 0;
    border-left: 0;
}

.rank-mode-tab {
    position: relative;
    width: auto;
    min-width: 104px;
    min-height: 56px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 10px 9px;
    background: #090b17;
    border: 1px solid #20263a;
    border-radius: 9px;
    font-size: 0.68rem;
}

.rank-mode-tab i {
    color: #d7dbea;
    font-size: 1.05rem;
}

.rank-mode-tab:hover {
    color: #fff;
    background: #14192b;
    border-color: #414c66;
}

.rank-mode-tab[aria-selected="true"] {
    color: #f2f4fb;
    background: #20273c;
    border-color: #697590;
    box-shadow: none;
}

.rank-mode-tab[aria-selected="true"]::after {
    position: absolute;
    right: 20px;
    bottom: 2px;
    left: 20px;
    height: 2px;
    border-radius: 2px;
    background: #f2f4fb;
    content: '';
}

.rank-mode-tab[aria-selected="true"] i {
    color: #f2f4fb;
}
