.stats-homepage-container { max-width: 1200px; margin: 0 auto; margin-top: 0; padding: 2rem; }
.stats-hero { text-align: center; margin-bottom: 3rem; }
.stats-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.stats-hero p { color: #ddd; font-size: 1.1rem; }
.player-search-section { margin-bottom: 2rem; }
.search-container { max-width: 600px; margin: 0 auto; position: relative; }
.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; }
.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; }
.search-result-name { font-weight: 600; }
.search-no-results { padding: 20px; text-align: center; color: #8b6a3e; }
.search-hint { text-align: center; margin-top: 8px; font-size: 0.85rem; color: #ddd; }
.stats-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 2rem; }
.stat-card { padding: 20px 15px; text-align: center; transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-5px); }
.stat-card-icon { font-size: 2.2rem; margin-bottom: 10px; color: #5c4422; }
.stat-card-title { font-size: 0.8rem; color: #5c4422; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-value { font-size: 1.6rem; color: #2d1f0f; font-weight: 700; }
.stat-card-subtitle { font-size: 0.75rem; color: #8b6a3e; margin-top: 4px; }
.bottom-layout-container { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; margin-bottom: 2.5rem; }
.leaderboards-section { display: flex; flex-direction: column; }
.section-title { color: #fff; font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.player-stats-section .section-title { text-align: right; }
.leaderboard-cards-grid { display: flex; flex-direction: column; gap: 15px; }
.leaderboard-card { padding: 12px 16px; text-decoration: none; display: flex; align-items: center; justify-content: flex-start; }
.leaderboard-card-header { display: flex; align-items: center; gap: 12px; width: 100%; }
.leaderboard-card-icon { width: 40px; height: 40px; image-rendering: pixelated; flex-shrink: 0; }
.leaderboard-card-title { font-size: 1.2rem; color: #fff; font-weight: 700; }
.leaderboard-card-description { color: #5c4422; line-height: 1.6; margin-bottom: 15px; }
.leaderboard-card-cta { color: #6b4423; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.leaderboard-card-cta i { transition: transform 0.2s; }
.leaderboard-card:hover .leaderboard-card-cta i { transform: translateX(5px); }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.action-card { padding: 20px; text-align: center; text-decoration: none; display: block; transition: transform 0.2s; }
.action-card:hover { transform: translateY(-5px); }
.action-card-icon { font-size: 2rem; color: #5c4422; margin-bottom: 10px; }
.action-card-title { color: #2d1f0f; font-weight: 600; font-size: 1.1rem; }
.player-stats-section { display: flex; flex-direction: column; }
.player-stats-table-container { overflow-y: auto !important; overflow-x: hidden; max-height: 600px; position: relative; scrollbar-width: none; -ms-overflow-style: none; }
.player-stats-table-container::-webkit-scrollbar { display: none; }
.player-stats-table { width: 100%; border-collapse: collapse; color: #000; font-size: 0.9rem; }
.player-stats-th { padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: right; cursor: pointer; position: sticky; top: 0; background: #d6be96; color: #2d1f0f; font-weight: 600; transition: color 0.2s; z-index: 10; }
.player-stats-th:hover { color: #5c4422; }
.player-stats-th.player-stats-active { color: #fff; }
.player-stats-td { padding: 12px 6px; 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: 24px; height: 24px; 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; }
.search-loading { padding: 20px; text-align: center; color: #8b6a3e; }
.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: 1024px) { .stats-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .stats-hero h1 { font-size: 2rem; } .stats-cards-grid { grid-template-columns: 1fr; } .bottom-layout-container { grid-template-columns: 1fr; } .leaderboard-cards-grid { flex-direction: column; } .quick-actions { grid-template-columns: 1fr; } .mobile-stat-selector { display: flex; } .player-stats-table { font-size: 0.85rem; } .player-stats-td { padding: 10px 8px; } }