/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f2e;
    --surface-bg: #252b3d;
    --accent-color: #ff6b35;
    --accent-secondary: #4ecdc4;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #6c7293;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --border-color: #374151;
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(45deg, #ff6b35, #f7931e);
    --gradient-surface: linear-gradient(145deg, #1e293b, #334155);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 53, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(78, 205, 196, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 107, 53, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particle-move 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particle-move {
    from { transform: translateY(0px); }
    to { transform: translateY(-200px); }
}

/* Navigation Styles */
.navbar {
    background: var(--secondary-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 汉堡菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-toggle:hover {
    background: rgba(255, 107, 53, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡菜单动画 */
.nav-toggle-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-brand {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    transition: all 0.3s ease;
}

.nav-brand:hover {
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
    transform: scale(1.05);
}

/* 默认桌面端导航菜单样式 */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    /* 确保在移动端会被覆盖 */
    position: static;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
}



.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover i {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

/* Table container for horizontal scroll */
.table-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-dark);
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Typography */
h1 {
    font-family: 'Orbitron', monospace;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.6)); }
}

h1 a {
    text-decoration: none;
    color: inherit;
}

h2 {
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

h3 span {
    padding: 12px 24px;
    background: var(--gradient-surface);
    color: var(--text-primary);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-dark);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Latest Match Info Styles */
.latest-match-info {
    text-align: center;
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.match-time,
.match-duration,
.no-match {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gradient-surface);
    color: var(--text-primary);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-dark);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.match-time:hover,
.match-duration:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.match-time {
    border-left: 3px solid var(--accent-color);
}

.match-duration {
    border-left: 3px solid var(--accent-secondary);
}

.latest-match-info i {
    color: var(--accent-color);
    font-size: 1rem;
    opacity: 0.9;
}

.latest-match-info .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.latest-match-info .time,
.latest-match-info .duration {
    color: var(--text-primary);
    font-weight: 600;
}

.no-match {
    color: var(--text-muted);
}

.no-match i {
    color: var(--warning-color);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    margin-top: 20px;
    table-layout: fixed;
    min-width: 1100px; /* 移除图标后减少最小宽度 */
}

thead tr th {
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 8px;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
}

/* 设置各列的宽度 - 移除图标后优化 */
thead tr th:nth-child(1) { width: 60px; }  /* 排名 */
thead tr th:nth-child(2) { width: 200px; } /* 玩家 */
thead tr th:nth-child(3) { width: 70px; }  /* 积分 */
thead tr th:nth-child(4) { width: 80px; }  /* 比赛场数 */
thead tr th:nth-child(5) { width: 70px; }  /* 吃鸡数 */
thead tr th:nth-child(6) { width: 70px; }  /* 吃鸡率 */
thead tr th:nth-child(7) { width: 170px; } /* 场均排名 */
thead tr th:nth-child(8) { width: 90px; }  /* 场均击杀数 */
thead tr th:nth-child(9) { width: 90px; }  /* 场均击倒数 */
thead tr th:nth-child(10) { width: 90px; } /* 场均助攻数 */
thead tr th:nth-child(11) { width: 90px; } /* 场均伤害量 */
thead tr th:nth-child(12) { width: 110px; } /* 场均存活时间 */
thead tr th:nth-child(13) { width: 110px; } /* 场均步行距离 */
thead tr th:nth-child(14) { width: 110px; } /* 场均驾驶距离 */
thead tr th:nth-child(15) { width: 110px; } /* 场均游泳距离 */

tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}



tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: scale(1.002);
    box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.1);
}

/* Special styling for top 3 players */
tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    border-left: 4px solid #FFD700;
}

tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent);
    border-left: 4px solid #C0C0C0;
}

tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
    border-left: 4px solid #CD7F32;
}

tbody tr:nth-child(1):hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 53, 0.05));
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.2);
}

tbody tr:nth-child(2):hover {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), rgba(255, 107, 53, 0.05));
    box-shadow: inset 0 0 30px rgba(192, 192, 192, 0.2);
}

tbody tr:nth-child(3):hover {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.2), rgba(255, 107, 53, 0.05));
    box-shadow: inset 0 0 30px rgba(205, 127, 50, 0.2);
}

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

tbody tr:nth-child(even):hover {
    background: rgba(255, 107, 53, 0.05);
}

td {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: middle;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    word-wrap: break-word;
}

td:last-child {
    border-right: none;
}

/* 玩家名字列特殊处理 */
td:nth-child(2) {
    text-align: left;
    padding-left: 12px;
}

td:nth-child(2) a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Player links */
td a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

td a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Badge Styles */
.badge {
    background: var(--gradient-accent);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Rank badges with enhanced styling */
.rank {
    font-size: 0.7rem;
    color: var(--text-primary);
    margin: 1px;
    padding: 2px 4px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.rank:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px currentColor;
}

.rank-1 { 
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-2 { 
    background: linear-gradient(45deg, #C0C0C0, #A8A8A8);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.rank-3 { 
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.rank-4 { 
    background: linear-gradient(45deg, #4169E1, #0000FF);
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.5);
}

.rank-5 { 
    background: linear-gradient(45deg, #228B22, #32CD32);
    box-shadow: 0 0 20px rgba(34, 139, 34, 0.5);
}

.rank-6 { 
    background: linear-gradient(45deg, #FF4500, #FF6347);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.rank-7 { 
    background: linear-gradient(45deg, #8A2BE2, #9370DB);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.rank-8 { 
    background: linear-gradient(45deg, #A0522D, #D2691E);
    box-shadow: 0 0 20px rgba(160, 82, 45, 0.5);
}

/* 重构后的称号系统 */
.badge-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    margin: 1px 2px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
    
    /* 默认样式 - 普通称号 */
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #e5e7eb;
    border: 1px solid #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.badge-title:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.badge-title:hover::before {
    left: 100%;
}

/* 吃鸡称号 - 金色主题 */
.badge-chicken {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #1f2937 !important;
    border: 1px solid #d97706 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    animation: chicken-glow 2s ease-in-out infinite alternate;
}

.badge-chicken:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.7), 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

/* 助攻称号 - 蓝色主题 */
.badge-assist {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 存活称号 - 绿色主题 */
.badge-survived {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: 1px solid #047857 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 移动称号 - 青色主题 */
.badge-walk,
.badge-ride {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    color: #ffffff !important;
    border: 1px solid #0e7490 !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 击杀相关称号 - 红色主题 */
.badge-kill-dbnos,
.badge-kill-damage {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    border: 1px solid #b91c1c !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 特殊称号 - 紫色主题 */
.badge-damage-min,
.badge-female-kill {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    border: 1px solid #6d28d9 !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 稀有度等级称号样式 */

/* 金色称号 - 最高等级 */
.badge-title.gold,
.badge-headshot,
.badge-sniper,
.badge-revive,
.badge-kill-streak,
.badge-killer,
.badge-damage-dealer,
.badge-survivor,
.badge-winner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
    color: #1f2937 !important;
    border: 1px solid #d97706 !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    animation: gold-shine 3s ease-in-out infinite;
    position: relative;
    font-weight: 700;
}

@keyframes gold-shine {
    0%, 100% {
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8), 0 6px 16px rgba(0, 0, 0, 0.5);
    }
}

/* 银色称号 - 高等级 */
.badge-title.silver,
.badge-headshot-rate,
.badge-weapon-efficiency,
.badge-total-distance,
.badge-medicine,
.badge-support,
.badge-teamwork,
.badge-stable {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db, #9ca3af) !important;
    color: #1f2937 !important;
    border: 1px solid #9ca3af !important;
    box-shadow: 0 0 15px rgba(229, 231, 235, 0.6), 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600;
}

/* 铜色称号 - 中等级 */
.badge-title.bronze,
.badge-road-kill,
.badge-vehicle-destroy,
.badge-swim,
.badge-collector {
    background: linear-gradient(135deg, #cd7f32, #b8860b, #a0522d) !important;
    color: #ffffff !important;
    border: 1px solid #a0522d !important;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3) !important;
    font-weight: 500;
}

/* 特殊称号 - 独特样式 */
.badge-title.special,
.badge-friendly-fire,
.badge-peaceful,
.badge-aggressive,
.badge-camper {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
    border: 1px solid #6d28d9 !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5), 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    animation: special-glow 2s ease-in-out infinite alternate;
    font-weight: 600;
}

@keyframes special-glow {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(1.1);
        transform: scale(1.02);
    }
}

/* 个性化称号特殊效果 */
.badge-friendly-fire {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b) !important;
    animation: danger-pulse 1.5s ease-in-out infinite;
}

.badge-peaceful {
    background: linear-gradient(135deg, #10b981, #059669, #047857) !important;
    animation: peaceful-float 3s ease-in-out infinite;
}

.badge-aggressive {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c) !important;
    animation: aggressive-shake 2s ease-in-out infinite;
}

.badge-camper {
    background: linear-gradient(135deg, #6b7280, #4b5563, #374151) !important;
    opacity: 0.9;
    animation: camper-hide 4s ease-in-out infinite;
}

@keyframes danger-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 38, 38, 0.8);
    }
}

@keyframes peaceful-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes aggressive-shake {
    0%, 100% {
        transform: translateX(0px);
    }
    25% {
        transform: translateX(-1px);
    }
    75% {
        transform: translateX(1px);
    }
}

@keyframes camper-hide {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.6;
    }
}

/* 称号容器样式 */
.title-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
    align-items: center;
}

/* 称号图标样式 */
.title-icon {
    width: 12px;
    height: 12px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 动画效果 */
@keyframes chicken-glow {
    0% {
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.8), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* 稀有度等级系统 */
.badge-title.legendary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24) !important;
    background-size: 200% 200% !important;
    animation: legendary-shine 3s ease-in-out infinite;
}

.badge-title.epic {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #8b5cf6) !important;
    background-size: 200% 200% !important;
    animation: epic-pulse 2s ease-in-out infinite;
}

.badge-title.rare {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

@keyframes legendary-shine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes epic-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

/* 称号悬浮提示 */
.badge-title[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-bg);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    z-index: 1000;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 称号释义链接样式 */
.title-info-link {
    display: inline-block;
    margin-left: 8px;
    text-decoration: none;
}

.title-info-badge {
    font-size: 0.65rem;
    background: var(--gradient-surface);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.title-info-badge:hover {
    opacity: 1;
    background: var(--secondary-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Ranking sequence numbers */
.seq {
    background: var(--gradient-primary);
    font-weight: 700;
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px auto;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.seq:hover {
    transform: scale(1.1) rotate(5deg);
}

.seq-top {
    background: var(--gradient-accent);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: top-rank-glow 2s infinite ease-in-out alternate;
}

@keyframes top-rank-glow {
    from { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    to { 
        box-shadow: 0 0 40px rgba(255, 215, 0, 1);
        transform: scale(1.05);
    }
}

/* Date selector */
.date-selector {
    text-align: center;
    margin: 20px 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.recent-days {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.history-day {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--accent-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
}

.history-day:hover {
    background: var(--accent-secondary);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.history-day.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.btn-more-dates {
    background: var(--gradient-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-more-dates:hover {
    background: var(--secondary-bg);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.date-picker {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-dark);
    z-index: 1000;
    margin-top: 10px;
}

.more-dates {
    position: relative;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    max-width: 400px;
    max-height: 200px;
    overflow-y: auto;
}

.date-option {
    padding: 6px 12px;
    background: var(--gradient-surface);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.date-option:hover {
    background: var(--accent-secondary);
    color: var(--primary-bg);
    transform: scale(1.05);
}

/* Stats Cards */
.stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--gradient-surface);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    margin-bottom: 15px;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: var(--gradient-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--secondary-bg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer-time {
    background: var(--gradient-surface);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    margin-left: 10px;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

/* No data state */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.3rem;
    background: var(--surface-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin: 40px 0;
}

/* Error page styles */
.error-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-dark);
}

.error-container h1 {
    color: var(--danger-color);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 10px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    color: var(--text-secondary);
}

/* Player detail specific styles */
.player-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.player-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
}

.player-header h1 {
    margin-bottom: 15px;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.player-id {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.player-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
}

.page-info {
    margin: 0 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* 使用简化的表头文字 */
    th[data-mobile]:not(:nth-child(2))::after {
        content: attr(data-mobile);
        display: block;
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0.5px;
    }
    
    th[data-mobile]:not(:nth-child(2)) {
        font-size: 0;
        position: relative;
    }
    
    /* 玩家列保持原样但隐藏称号释义链接 */
    th:nth-child(2) .title-info-link {
        display: none;
    }
    
    /* 移动端导航菜单样式 */
    .nav-container {
        height: 60px;
        padding: 0 15px;
        justify-content: space-between; /* 确保左右对齐 */
    }
    
    .nav-toggle {
        display: flex !important; /* 强制显示汉堡菜单 */
        order: 2; /* 确保在右侧 */
    }
    
    .nav-brand {
        font-size: 1.5rem;
    }
    
    /* 移动端菜单样式 - 清晰的定义 */
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -300px; /* 默认隐藏 */
        width: 250px;
        height: calc(100vh - 60px);
        background: var(--secondary-bg);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
        display: flex;
    }
    
    /* 菜单展开状态 */
    .nav-menu-open,
    .nav-menu.nav-menu-open {
        right: 0 !important; /* 菜单展开时显示 */
    }
    
    .nav-link {
        padding: 20px 30px;
        font-size: 1.1rem;
        text-transform: none;
        letter-spacing: 0.5px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: flex-start;
        gap: 15px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--gradient-accent);
        transform: translateX(10px);
        color: var(--text-primary);
        border-left: 4px solid var(--accent-secondary);
    }
    
    .nav-link:hover::before {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.2rem;
        width: 20px;
        text-align: center;
    }
    
    /* 当前页面导航链接样式 */
    .nav-link.active {
        background: var(--gradient-accent);
        color: var(--text-primary);
        border-left: 4px solid var(--accent-secondary);
    }
    
    .nav-link.active i {
        color: var(--text-primary);
        opacity: 1;
    }
    
    /* 防止菜单打开时页面滚动 */
    .nav-open {
        overflow: hidden;
    }
    
    /* 遮罩层 */
    .nav-menu-open::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        width: calc(100vw - 280px);
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* 移动端菜单项进入动画 */
    .nav-menu-open .nav-link {
        animation: slideInRight 0.3s ease forwards;
    }
    
    .nav-menu-open .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu-open .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu-open .nav-link:nth-child(3) { animation-delay: 0.2s; }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 20px 10px;
    }
    
    table {
        font-size: 0.85rem;
        min-width: 450px; /* 进一步减少最小宽度适应移动端 */
    }
    
    th, td {
        padding: 6px 4px; /* 减少内边距 */
        line-height: 1.2;
    }
    
    /* 移动端数据显示优化 */
    td {
        font-size: 0.8rem;
    }
    
    /* 积分列特殊样式 */
    td:nth-child(3) .badge {
        padding: 2px 6px;
        font-size: 0.75rem;
    }
    
    /* 移动端最近比赛信息优化 */
    .latest-match-info {
        flex-direction: column;
        gap: 12px;
        margin: 15px 0 20px 0;
    }
    
    .match-time,
    .match-duration,
    .no-match {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 6px;
        border-radius: 20px;
        min-width: 0; /* 允许收缩 */
        flex: 1;
        max-width: 280px;
    }
    
    .latest-match-info .label {
        font-size: 0.8rem;
    }
    
    .latest-match-info .time,
    .latest-match-info .duration {
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .latest-match-info i {
        font-size: 0.9rem;
    }
    
    .seq {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .recent-days {
        gap: 6px;
    }
    
    .history-day {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .date-picker {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
    }
    
    .rank-details {
        max-width: 120px;
        max-height: 40px;
    }
    
    .rank {
        font-size: 0.6rem;
        padding: 1px 3px;
        margin: 0.5px;
    }
    
    /* 移动端称号优化 */
    .badge-title {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin: 1px;
        border-radius: 4px;
    }
    
    .title-container {
        gap: 2px;
        margin-top: 2px;
    }
    
    .title-icon {
        width: 10px;
        height: 10px;
    }
    
    /* 移动端隐藏称号悬浮提示 */
    .badge-title[title]:hover::after {
        display: none;
    }
    
    .rank-summary {
        min-height: 70px;
        gap: 2px;
    }
    
    .avg-rank {
        font-size: 0.85rem;
        padding: 2px 4px;
    }
    
    .table-container {
        margin: 0 -10px;
        width: calc(100% + 20px);
        -webkit-overflow-scrolling: touch; /* 平滑滚动 */
    }
    
    /* 移动端隐藏部分列 - 只保留最核心的6列 */
    thead tr th:nth-child(n+7), /* 隐藏第7列及以后的所有列 */
    tbody tr td:nth-child(n+7) {
        display: none;
    }
    
    /* 调整保留列的宽度 */
    thead tr th:nth-child(1) { width: 50px; }  /* 排名 */
    thead tr th:nth-child(2) { width: 150px; } /* 玩家 */
    thead tr th:nth-child(3) { width: 60px; }  /* 积分 */
    thead tr th:nth-child(4) { width: 60px; }  /* 比赛场数 */
    thead tr th:nth-child(5) { width: 60px; }  /* 吃鸡数 */
    thead tr th:nth-child(6) { width: 70px; }  /* 吃鸡率 */
    
    /* 优化玩家名称列在移动端的显示 */
    td:nth-child(2) {
        max-width: 150px;
        overflow: hidden;
        text-align: left;
        padding-left: 10px;
    }
    
    td:nth-child(2) a {
        font-size: 0.85rem;
        line-height: 1.2;
        font-weight: 600;
    }
    
    /* 移动端称号显示优化 - 只显示1-2个最重要的称号 */
    .title-container {
        gap: 1px;
        margin-top: 2px;
        max-height: 20px;
        overflow: hidden;
        flex-wrap: nowrap; /* 不换行 */
    }
    
    .title-container .badge-title:nth-child(n+3) {
        display: none; /* 隐藏第3个及以后的称号 */
    }
    
    /* 优化玩家ID显示 */
    td:nth-child(2) a span {
        font-size: 0.65rem;
        color: var(--text-muted);
        display: block;
        margin-left: 0;
        margin-top: 1px;
        opacity: 0.7;
    }
}

/* 更小屏幕（手机竖屏）的进一步优化 */
@media screen and (max-width: 480px) {
    /* 小屏幕菜单调整 */
    .nav-menu {
        right: -100vw; /* 完全隐藏在小屏幕 */
        width: 90vw;
        max-width: 300px;
    }
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 400px; /* 进一步减少最小宽度 */
    }
    
    th, td {
        padding: 6px 4px;
    }
    
    /* 进一步减少列宽 */
    thead tr th:nth-child(1) { width: 45px; }  /* 排名 */
    thead tr th:nth-child(2) { width: 140px; } /* 玩家 */
    thead tr th:nth-child(3) { width: 55px; }  /* 积分 */
    thead tr th:nth-child(4) { width: 50px; }  /* 比赛场数 */
    thead tr th:nth-child(5) { width: 50px; }  /* 吃鸡数 */
    thead tr th:nth-child(6) { width: 60px; }  /* 吃鸡率 */
    
    /* 隐藏玩家ID，只显示昵称 */
    td:nth-child(2) a span {
        display: none;
    }
    
    /* 进一步压缩称号显示 */
    .badge-title {
        font-size: 0.55rem;
        padding: 1px 3px;
        margin: 0;
        border-radius: 3px;
    }
    
    .title-container .badge-title:nth-child(n+2) {
        display: none; /* 480px下只显示1个称号 */
    }
    
    .seq {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin: 3px auto;
    }
    
    /* 压缩排名详情显示 */
    .rank-summary {
        min-height: 60px;
    }
    
    .rank-details {
        max-width: 100px;
        max-height: 35px;
    }
    
    /* 小屏幕最近比赛信息进一步优化 */
    .latest-match-info {
        margin: 10px 0 15px 0;
        gap: 8px;
    }
    
    .match-time,
    .match-duration,
    .no-match {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 4px;
        max-width: 260px;
    }
    
    .latest-match-info .label {
        font-size: 0.75rem;
    }
    
    .latest-match-info .time,
    .latest-match-info .duration {
        font-size: 0.8rem;
    }
    
    .latest-match-info i {
        font-size: 0.8rem;
    }
    
    /* 小屏幕导航菜单优化已在上面统一定义 */
    
    .nav-menu-open::before {
        display: none; /* 小屏幕不需要遮罩 */
    }
    
    .nav-link {
        padding: 18px 25px;
        font-size: 1rem;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
}

/* 桌面端导航菜单样式重置 */
@media screen and (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: none;
        z-index: auto;
        overflow: visible;
    }
    
    .nav-menu-open {
        right: auto;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 8px;
        border-bottom: none;
        border-left: none;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link:hover {
        background: rgba(255, 107, 53, 0.1);
        transform: translateY(-2px);
        border-left: none;
    }
    
    .nav-link i {
        font-size: 1rem;
        width: auto;
        text-align: left;
    }
    
    /* 桌面端当前页面样式 */
    .nav-link.active {
        background: rgba(255, 107, 53, 0.15);
        color: var(--accent-color);
        border-left: none;
    }
    
    .nav-link.active::before {
        width: 100%;
    }
    
    .nav-link.active i {
        color: var(--accent-color);
        opacity: 1;
    }
    
    /* 桌面端不需要这些移动端类 */
    .nav-menu-open::before {
        display: none;
    }
    
    .nav-open {
        overflow: auto;
    }
}

/* 横屏模式优化 - 显示更多列 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    table {
        min-width: 700px;
    }
    
    /* 横屏时显示8列 */
    thead tr th:nth-child(7),
    thead tr th:nth-child(8),
    tbody tr td:nth-child(7),
    tbody tr td:nth-child(8) {
        display: table-cell;
    }
    
    /* 调整横屏时的列宽 */
    thead tr th:nth-child(2) { width: 120px; } /* 玩家列可以稍小 */
    thead tr th:nth-child(7) { width: 100px; } /* 场均排名 */
    thead tr th:nth-child(8) { width: 70px; }  /* 场均击杀数 */
    
    /* 横屏时允许显示更多称号 */
    .title-container .badge-title:nth-child(n+4) {
        display: none; /* 横屏时最多显示3个称号 */
    }
    
    .title-container .badge-title:nth-child(-n+3) {
        display: inline-flex;
    }
    
    /* 横屏模式最近比赛信息优化 */
    .latest-match-info {
        flex-direction: row;
        gap: 20px;
        margin: 15px 0 25px 0;
    }
    
    .match-time,
    .match-duration {
        padding: 8px 16px;
        font-size: 0.85rem;
        max-width: none;
    }
}



/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

table {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Icon Styling */
span svg {
    height: 16px;
    width: 16px;
    fill: currentColor;
    vertical-align: middle;
    margin-right: 4px;
}

th i {
    margin-right: 6px;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    vertical-align: middle;
}

.stat-icon i {
    font-size: 3rem;
    color: var(--accent-color);
}

h1 i {
    margin-right: 15px;
    color: var(--accent-color);
}

/* Rank summary styling */
.rank-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 80px;
    padding: 4px;
}

.avg-rank {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--gradient-surface);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 2px;
    flex-shrink: 0;
}

.rank-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
    width: 100%;
    max-width: 160px;
    max-height: 50px;
    overflow: hidden;
    position: relative;
}

.rank-more {
    font-size: 0.6rem;
    background: var(--text-muted);
    color: var(--text-primary);
    padding: 2px 4px;
    border-radius: 6px;
    font-weight: 500;
    cursor: help;
    opacity: 0.8;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

.rank-more:hover {
    opacity: 1;
    background: var(--accent-color);
}

/* Enhanced hover effects for data cells */
td:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
    border-radius: 8px;
}

/* Special styling for score badges */
.badge[style*="background-color:red"] {
    background: linear-gradient(45deg, #dc3545, #e74c3c) !important;
    animation: score-positive 2s ease-in-out infinite alternate;
}

.badge[style*="background-color:green"] {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    animation: score-negative 2s ease-in-out infinite alternate;
}

@keyframes score-positive {
    from { box-shadow: 0 0 10px rgba(220, 53, 69, 0.5); }
    to { box-shadow: 0 0 20px rgba(220, 53, 69, 0.8); }
}

@keyframes score-negative {
    from { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
    to { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
} 