/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #101820, #050505 60%);
    color: #eaeaea;
}

/* ===== TITLE ===== */
h1 {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 36px;
    letter-spacing: 1px;
    color: #00ffd5;
    text-shadow: 0 0 12px rgba(0, 255, 213, 0.6);
}

/* ===== LAYOUT ===== */
.container {
    width: 82%;
    margin: auto;
}

/* ===== SEARCH ===== */
.search-box {
    text-align: center;
    margin-bottom: 25px;
}

.search-box input {
    width: 55%;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    outline: none;
    background: #0f1720;
    color: #fff;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px #1e293b;
    transition: 0.25s;
}

.search-box input:focus {
    box-shadow: 0 0 0 2px #00ffd5, 0 0 20px rgba(0, 255, 213, 0.4);
}

/* ===== TABLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(180deg, #0f1720, #0b1118);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

th, td {
    padding: 18px;
    text-align: center;
}

th {
    background: #0b1320;
    color: #00ffd5;
    font-weight: 600;
    letter-spacing: 0.5px;
}

tr {
    transition: 0.25s ease;
}

tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

tr:hover {
    background: rgba(0, 255, 213, 0.08);
}

/* ===== PLAYER ===== */
.player {
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* ===== RANKS ===== */
.ranks {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.rank {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== ICONS ===== */
.icon {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}

/* ===== TIERS ===== */
.tier {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
}

/* DT */
.DT {
    background: linear-gradient(135deg, #ff3b3b, #b31212);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.4);
}

/* CT */
.CT {
    background: linear-gradient(135deg, #ff8c3b, #b85a12);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 140, 59, 0.4);
}

/* BT */
.BT {
    background: linear-gradient(135deg, #ffd43b, #b89b12);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 212, 59, 0.4);
}

/* AT */
.AT {
    background: linear-gradient(135deg, #3bff6f, #12b83f);
    color: #000;
    box-shadow: 0 0 12px rgba(59, 255, 111, 0.4);
}

/* ST */
.ST {
    background: linear-gradient(135deg, #3bbcff, #1266b8);
    color: #fff;
    box-shadow: 0 0 14px rgba(59, 188, 255, 0.6);
}

/* ===== SEARCH RESULT ===== */
.search-result {
    margin-top: 30px;
    text-align: center;
    font-size: 20px;
    animation: fadeIn 0.25s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
h1 {
    animation: pageFadeIn 0.8s ease forwards;
}
/* ===== PAGE FADE-IN ===== */
.page-fade {
    animation: pageFadeIn 0.9s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== TOP 3 PLAYER STYLES ===== */

.player-name {
    font-size: 17px;
}

.player-title {
    font-size: 12px;
    margin-top: 2px;
    letter-spacing: 0.6px;
    opacity: 0.85;
}

/* 🥇 TOP 1 — GOLD */
.rank-1 .player-name {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.rank-1 .player-title {
    color: #ffe27a;
}

/* 🥈 TOP 2 — SILVER */
.rank-2 .player-name {
    color: #cfd8dc;
    text-shadow: 0 0 10px rgba(207, 216, 220, 0.6);
}

.rank-2 .player-title {
    color: #e0e0e0;
}

/* 🥉 TOP 3 — BRONZE */
.rank-3 .player-name {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.6);
}

.rank-3 .player-title {
    color: #e0a96d;
}
.icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.ranks {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.rank {
    display: flex;
    align-items: center;
    gap: 4px;
}
