:root {
    --tier1: #FBB03B;
    --tier2: #B3B3B3;
    --tier3: #E38D4F;
    --tier4: #808080;
    --tier5: #5D5D5D;
    --na: #6AFF6E;
    --eu: #FF6A6E;
    --sa: #F6B26B;
    --asia: #C27BA0;
    --bg: #050505;
    --card: #0A0A0A;
    --hover: #111111;
    --header-bg: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--header-bg);
    border-radius: 12px;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6AFF6E 0%, #4ACA4E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #444;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    background: var(--header-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.gamemode-filters, .region-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-button {
    background: var(--card);
    border: none;
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #151515;
}

.filter-button:hover {
    background: var(--hover);
    transform: translateY(-2px);
    border-color: #222;
}

.filter-button.active {
    background: #6AFF6E;
    color: #000;
    border-color: #4ACA4E;
}

.region-na.active { background: var(--na); color: #000; }
.region-eu.active { background: var(--eu); color: #000; }
.region-sa.active { background: var(--sa); color: #000; }
.region-asia.active { background: var(--asia); color: #000; }

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #151515;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tier-column {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #151515;
    transition: transform 0.3s ease;
}

.tier-column:hover {
    transform: translateY(-5px);
}

.tier-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--header-bg);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #151515;
}

.tier-1 .tier-header { color: var(--tier1); }
.tier-2 .tier-header { color: var(--tier2); }
.tier-3 .tier-header { color: var(--tier3); }
.tier-4 .tier-header { color: var(--tier4); }
.tier-5 .tier-header { color: var(--tier5); }

.trophy-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.player-list {
    padding: 1rem;
}

.player-card {
    background: var(--hover);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid #151515;
}

.player-card.hidden {
    display: none;
}

.player-card:hover {
    transform: translateY(-2px);
    border-color: #222;
    background: #151515;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.player-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.player-region {
    font-size: 0.8rem;
    opacity: 0.5;
    font-weight: 500;
}

.gamemode-icons {
    display: flex;
    gap: 0.4rem;
}

.gamemode-icon {
    width: 22px;
    height: 22px;
    background: #151515;
    border-radius: 4px;
    border: 1px solid #222;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }

    .stats-bar {
        flex-wrap: wrap;
    }
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.gamemode-icon {
    width: 22px;
    height: 22px;
    background: #151515;
    border-radius: 4px;
    border: 1px solid #222;
    padding: 2px;
}

.gamemode-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
