* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    border: none;
    outline: none;
}

body {
    font-family: "Outfit", "Segoe UI", sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 24px;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 2rem;
}

.description {
    text-align: center;
    margin-bottom: 24px;
    color: rgba(51, 51, 51, 0.8);
}

.description a {
    color: #0073b1;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.filter-box select {
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-family: inherit;
}


.search-box {
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border 0.2s;
    font-family: inherit;
}

.search-box input:focus {
    border: 1px solid #0073b1;
}

.leaderboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #0073b1;
}

.card-content {
    flex: 1;
}

.card-content a {
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: #0073b1;
}

.card-content a:hover {
    text-decoration: underline;
}

.count {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-weight: bold;
    font-size: 16px;
}

.stats div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    background-color: rgba(0, 115, 177, 0.1);
    color: #0073b1;
    padding: 24px;
    border-radius: 6px;
    border: 1px solid rgba(0, 115, 177, 0.2);
}

.stats svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.stats span {
    width: max-content;
}

.filtered-count {
    text-align: center;
    margin-bottom: 24px;
}

@media screen and (max-width: 440px) {
    body {
        padding: 16px;
    }

    h1 {
        font-size: 1.8rem;
        margin-top: 8px;
    }

    .stats {
        font-size: 14px;
    }

    .controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        max-width: 100%;
    }

    .filter-box {
        width: 100%;
    }

    .filter-box select {
        width: 100%;
    }
}