.stats-new-container { max-width: 1200px; margin: 0 auto; margin-top: 20px; padding: 2rem 3rem; }
.stats-new-hero { text-align: center; margin-bottom: 2.5rem; padding: 2rem; background: linear-gradient(135deg, rgba(90, 74, 56, 0.8), rgba(61, 47, 34, 0.8)); border-radius: 12px; border: 3px solid #8b6a3e; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); }
.stats-new-hero h1 { color: #f5ebd3; font-size: 2rem; margin: 0 0 0.5rem; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); }
.stats-new-hero p { color: #d6be96; font-size: 1rem; margin: 0; }
.stats-top-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 20px; margin-bottom: 2rem; }
.stats-search-card { padding: 2rem; }
.search-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; color: #e8f4ff; }
.search-header i { font-size: 1.5rem; }
.search-header h2 { margin: 0; font-size: 1.5rem; color: #e8f4ff; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
.stats-search-card .search-input-wrapper { position: relative; }
.stats-search-card .search-input { background: linear-gradient(180deg, #e8f4ff 0%, #d0e0f0 100%); border: 2px solid #2a4a70; color: #1a3a5a; }
.stats-search-card .search-input::placeholder { color: #5a7fb8; }
.stats-search-card .search-input:focus { border-color: #1a2838; box-shadow: 0 0 0 3px rgba(90, 127, 184, 0.3); }
.stats-search-card .search-icon { color: #3d5a88; }
.stats-search-card .search-results { background: #e8f4ff; border: 2px solid #2a4a70; border-top: none; opacity: 1; }
.stats-search-card .search-result-item { color: #000; border-bottom: 1px solid #5a7fb8; }
.stats-search-card .search-result-item:hover { background: #d0e0f0; }
.stats-search-card .search-result-avatar { border: 1px solid #000; }
.stats-search-card .search-result-name { color: #000; }
.stats-search-card .search-no-results { color: #3d5a88; }
.featured-stat-card { padding: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.featured-stat-icon { font-size: 4rem; color: #f0e8ff; filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); }
.featured-stat-value { font-size: 3.5rem; font-weight: 700; color: #fff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); }
.featured-stat-label { font-size: 1.2rem; color: #c8a0d8; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.mini-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 1.5rem; }
.mini-stat { padding: 1rem; display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, 0.2); border-radius: 8px; }
.mini-stat-icon { font-size: 2rem; color: #e8f4ff; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.4)); }
.mini-stat-info { flex: 1; }
.mini-stat-value { font-size: 1.5rem; font-weight: 700; color: #fff; }
.mini-stat-label { font-size: 0.75rem; color: #d0e0f0; text-transform: uppercase; letter-spacing: 1px; }
.leaderboards-new-section { margin-bottom: 2rem; }
.leaderboards-new-section h2 { color: #fff; font-size: 2rem; margin-bottom: 1.5rem; text-align: left; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 12px; }
.leaderboards-horizontal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leaderboard-new-card { padding: 1.25rem 1.25rem; text-decoration: none; display: flex; flex-direction: row; align-items: center; gap: 1rem; transition: all 0.2s; position: relative; }
.leaderboard-new-card:hover { transform: none; }
.leaderboard-new-icon { width: 48px; height: 48px; image-rendering: pixelated; flex-shrink: 0; }
.leaderboard-new-content { flex: 1; }
.leaderboard-new-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; color: #000; text-shadow: none; }
.leaderboard-new-subtitle { font-size: 0.85rem; opacity: 0.8; color: #000; text-shadow: none; }
.leaderboard-new-arrow { font-size: 1.2rem; opacity: 0.6; color: #000; transition: transform 0.2s, opacity 0.2s; }
.leaderboard-new-card:hover .leaderboard-new-arrow { transform: translateX(8px); opacity: 1; }
.players-table-section { margin-bottom: 2rem; }
.players-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.players-table-header h2 { color: #fff; font-size: 2rem; margin: 0; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 12px; }
.search-input-wrapper { position: relative; }
.search-input { width: 100%; padding: 15px 50px 15px 20px; font-size: 1rem; border: 2px solid #8b6a3e; border-radius: 8px; background: #f5ebd3; color: #2d1f0f; font-family: "JetBrains Mono", monospace; transition: border-radius 0.2s; }
.search-input.has-results { border-radius: 8px 8px 0 0; }
.search-input:focus { outline: none; border-color: #5c4422; box-shadow: 0 0 0 3px rgba(92, 68, 34, 0.2); }
.search-input::placeholder { color: #8b6a3e; }
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #8b6a3e; font-size: 1.2rem; pointer-events: none; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: -15px; background: #f5ebd3; border: 2px solid #8b6a3e; border-top: none; border-radius: 0 0 8px 8px; max-height: 400px; overflow-y: auto; z-index: 1000; display: none; opacity: 1; }
.search-results.active { display: block; }
.search-result-item { padding: 12px 16px; border-bottom: 1px solid #d6be96; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #2d1f0f; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #d6be96; }
.search-result-avatar { width: 32px; height: 32px; border-radius: 4px; image-rendering: pixelated; border: 1px solid #000; }
.search-result-name { font-weight: 600; color: #000; }
.search-no-results { padding: 20px; text-align: center; color: #8b6a3e; }
.search-loading { padding: 20px; text-align: center; color: #8b6a3e; }
.player-stats-section { display: flex; flex-direction: column; }
.player-stats-table-container { overflow-y: auto !important; overflow-x: hidden; height: 600px; position: relative; scrollbar-width: none; -ms-overflow-style: none; background: #d6be96; }
.player-stats-table-container::-webkit-scrollbar { display: none; }
.player-stats-table { width: 100%; border-collapse: collapse; color: #000; font-size: 1.05rem; }
.player-stats-th { padding: 14px 8px; border-bottom: 1px solid #000; text-align: right; cursor: pointer; position: sticky; top: 0; background: #d6be96; color: #2d1f0f; font-weight: 600; transition: color 0.2s; z-index: 10; box-shadow: 0 1px 0 #000; }
.player-stats-th::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; background: #d6be96; }
.player-stats-th::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 6px; font-size: 0.85em; opacity: 0; }
.player-stats-th:hover { color: #5c4422; }
.player-stats-th.player-stats-active { color: #fff; text-shadow: 0 0 1px #000, 0 0 2px rgba(0, 0, 0, 0.8); }
.player-stats-th.player-stats-active::after { opacity: 1; }
.player-stats-td { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: right; }
.player-stats-th:first-child { text-align: left; }
.player-stats-td:first-child { text-align: left; }
.player-stats-name-cell { display: flex; align-items: center; gap: 10px; }
.player-stats-player-head { width: 32px; height: 32px; border-radius: 4px; image-rendering: pixelated; background: rgba(255, 255, 255, 0.05); }
.player-stats-name-link { color: inherit; text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.player-stats-name-link:hover { color: #5c4422; }
.player-stats-name-link i { font-size: 0.75rem; opacity: 0.6; }
.player-stats-loading { text-align: center; padding: 15px; color: #2d1f0f; }
.player-stats-tr { transition: background 0.2s; }
.player-stats-tr:hover { background: rgba(92, 68, 34, 0.1); }
.player-stats-fade-in { animation: fadeInRow 0.4s ease-out forwards; opacity: 0; }
@keyframes fadeInRow { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-stat-selector { display: none; margin-bottom: 1rem; margin-top: -0.5rem; margin-left: -2rem; margin-right: -2rem; padding-left: 2rem; padding-right: 2rem; align-items: center; gap: 10px; background: transparent; }
.stat-dropdown { width: 100%; padding: 10px 15px; font-size: 1rem; border: 2px solid #8b6a3e; border-radius: 8px; background: #f5ebd3; color: #2d1f0f; font-family: "JetBrains Mono", monospace; cursor: pointer; transition: border-radius 0.2s; }
.stat-dropdown:focus { outline: none; border-color: #5c4422; box-shadow: 0 0 0 3px rgba(92, 68, 34, 0.2); border-radius: 8px 8px 0 0; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid #d6be96; border-top-color: #5c4422; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1200px) { .stats-top-grid { grid-template-columns: 1fr; } .leaderboards-horizontal { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .stats-new-hero h1 { font-size: 2rem; } .stats-new-hero p { font-size: 1rem; } .mini-stats-grid { grid-template-columns: 1fr; } .featured-stat-value { font-size: 2.5rem; } .featured-stat-icon { font-size: 3rem; } .mobile-stat-selector { display: flex; } .player-stats-table { font-size: 0.85rem; } .player-stats-td { padding: 10px 8px; } }
