* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #090909;
    color: white;
    font-family: Arial, sans-serif;
}

[hidden] {
    display: none !important;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    background: #101010;
    border-bottom: 1px solid #292929;
}

.logo {
    color: #ff3030;
    font-size: 26px;
    font-weight: 900;
}

.logo span {
    color: #00d9c0;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #00d9c0;
}

.play {
    background: #00d9c0;
    color: #050505;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 85px 20px;
    min-height: 350px;
}

.top-players-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #ff3030;
    color: white;
    padding: 35px 75px;
    min-width: 500px;
    min-height: 180px;
    border: none;
    border-radius: 14px;
    font-size: 32px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 30px #ff303044;
}

.top-players-btn span {
    font-size: 16px;
    letter-spacing: 2px;
}

.top-players-btn:hover {
    background: #d92336;
    transform: scale(1.04);
}

#topPlayersView {
    min-height: 75vh;
    padding: 45px 20px 80px;
}

.back-rankings {
    display: block;
    margin: 0 auto 35px;
    padding: 12px 22px;
    background: #1b1b1b;
    color: white;
    border: 1px solid #333;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.back-rankings:hover {
    border-color: #ff3030;
    color: #ff5555;
}

.top-players-section {
    max-width: 900px;
    margin: 0 auto;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 25px;
    max-width: 850px;
    margin: 30px auto 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.podium-skin {
    width: 110px;
    height: 170px;
    object-fit: contain;
    margin-bottom: -2px;
    image-rendering: pixelated;
}

.podium-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    font-weight: 900;
    color: white;
    border-radius: 10px 10px 0 0;
}

.second .podium-block {
    height: 110px;
    background: linear-gradient(#b58a27, #624716);
    border-top: 5px solid #ffd65a;
}

.first .podium-block {
    height: 165px;
    background: linear-gradient(#2476c7, #12345e);
    border-top: 5px solid #65c5ff;
}

.third .podium-block {
    height: 80px;
    background: linear-gradient(#bd7137, #63391d);
    border-top: 5px solid #ffad65;
}

/* RANKINGS */

.rankings {
    max-width: 1100px;
    margin: 25px auto;
    padding: 25px;
}

/* MAIN TABS */

.tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tab {
    background: #1b1b1b;
    color: white;
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    background: #ff3030;
    border-color: #ff3030;
}

/* KIT ICONS */

.kits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.kit {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #171717;
    color: white;
    border: 1px solid #333;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.kit:hover,
.kit.active {
    border-color: #ff3030;
    color: #ff5555;
}

.kit-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* TABLES */

.table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #292929;
}

th {
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
}

.empty {
    text-align: center;
    color: #888;
    padding: 35px;
}

.tier {
    color: #ff55dd;
    font-weight: bold;
}

/* OVERALL TABLE */

.overall-table {
    margin-top: 22px;
    border-spacing: 0 5px;
    border-collapse: separate;
    background: transparent;
}

.overall-table th {
    background: #111722;
}

.overall-table td {
    background: #182638;
    border-bottom: 1px solid #273b53;
    padding: 15px;
}

.overall-table tr.rank-first td {
    background: #124a91;
    border-color: #2878d0;
}

.overall-table tr.rank-first .rank-number {
    color: #65c5ff;
    font-weight: 900;
}

.overall-table tr.rank-second td {
    background: #73551a;
    border-color: #b58a32;
}

.overall-table tr.rank-second .rank-number {
    color: #ffd65a;
    font-weight: 900;
}

.overall-table tr.rank-third td {
    background: #81421e;
    border-color: #bd7137;
}

.overall-table tr.rank-third .rank-number {
    color: #ffad65;
    font-weight: 900;
}

.overall-table tr.rank-other:nth-child(even) td {
    background: #202b3a;
}

.overall-table tr.rank-other:nth-child(odd) td {
    background: #343b48;
}

.rank-number {
    font-size: 17px;
    font-weight: 900;
}

.overall-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-skin {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    border-radius: 3px;
}

.combat-title {
    font-weight: bold;
    color: #e5e5e5;
}

/* COPY IP / SERVER SECTION */

.join {
    text-align: center;
    padding: 60px 20px;
    background: #101010;
    margin-top: 60px;
}

.join h2 span {
    color: #ff3030;
}

.server {
    display: inline-block;
    background: #1b1b1b;
    padding: 15px 22px;
    border: 1px solid #333;
    border-radius: 6px;
    color: #00d9c0;
    font-weight: bold;
}

.server button {
    background: #ff3030;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

footer {
    text-align: center;
    padding: 25px;
    color: #777;
}

/* MOBILE */

@media (max-width: 650px) {
    header {
        flex-direction: column;
        gap: 18px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 55px 15px;
    }

    .top-players-btn {
        min-width: 0;
        width: 100%;
        max-width: 500px;
        padding: 30px 15px;
        font-size: 23px;
    }

    .rankings {
        padding: 12px;
    }

    th,
    td {
        padding: 10px 7px;
        font-size: 12px;
    }

    .player-skin {
        width: 26px;
        height: 26px;
    }

    .overall-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .podium {
        gap: 10px;
    }

    .podium-skin {
        width: 75px;
        height: 125px;
    }

    .podium-block {
        font-size: 30px;
    }

    .player-info {
        font-size: 12px;
    }
}