/* ─── RESET & ROOT ──────────────────────────────────────────────────── */
:root {
    --bg: #080b12;
    --bg-card: #0d1018;
    --bg-item: #111520;
    --bg-row: #0f1219;
    --bg-hover: #141824;
    --primary: #ff4d4d;
    --primary-dim: rgba(255, 77, 77, 0.1);
    --accent: #6366f1;
    --text: #e8ecf5;
    --text-sub: #8892a4;
    --text-muted: #4a5265;
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 77, 77, 0.3);
    --glow: rgba(255, 77, 77, 0.4);
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Tier colors */
    --t-ht1: #ffd700;
    --t-lt1: #ffe87a;
    --t-ht2: #ff9d00;
    --t-lt2: #ffbc52;
    --t-ht3: #ff6b00;
    --t-lt3: #ff9c52;
    --t-ht4: #a855f7;
    --t-lt4: #c084fc;
    --t-ht5: #3b82f6;
    --t-lt5: #60a5fa;

    --gold: #ffd700;
    --silver: #b0bec5;
    --bronze: #cd7f32;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 184, 0, 0.05) 0%, transparent 60%);
}

/* ─── NAV ───────────────────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(8, 11, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(8, 11, 18, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(255, 184, 0, 0.25));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

.logo-x {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    letter-spacing: 0.2px;
}

.nav-item:hover {
    color: var(--text);
    background: var(--border);
}

.nav-item.active {
    color: var(--text);
    background: var(--primary-dim);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.2);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-item);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    width: 230px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: rgba(255, 184, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.08);
}

.search-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #4ade80;
    white-space: nowrap;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-green 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(74, 222, 128, 0);
    }
}

/* ─── HERO ───────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 184, 0, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 184, 0, 0.5);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero-badge {
    background: var(--primary-dim);
    border: 1px solid rgba(255, 184, 0, 0.25);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 8px 40px rgba(255, 184, 0, 0.15);
}

.hero-x {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(255, 184, 0, 0.4), 0 0 80px rgba(255, 184, 0, 0.2);
}

.hero-sub {
    color: var(--text-sub);
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
    backdrop-filter: blur(10px);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 36px;
    gap: 4px;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ─── MAIN LAYOUT ────────────────────────────────────────────────────── */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.page-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ─── SIDEBAR ────────────────────────────────────────────────────────── */
.sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.sidebar-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.kit-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kit-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-sub);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.18s;
    position: relative;
    text-align: left;
}

.kit-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.kit-btn.active {
    background: var(--primary-dim);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.18);
}

.kit-btn-active-bar {
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.18s;
}

.kit-btn.active .kit-btn-active-bar {
    opacity: 1;
}

.kit-btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kit-btn-icon img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

.kit-svg-icon {
    font-size: 0.9rem;
}

/* Server card in sidebar */
.server-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.server-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb800, #ff6b00);
    border-radius: 8px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.server-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.server-ip {
    font-size: 0.72rem;
    color: var(--text-sub);
    margin-top: 1px;
}

/* Tier guide */
.tier-guide {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.tg-label {
    font-size: 0.75rem;
    color: var(--text-sub);
}

/* ─── CONTENT AREA ───────────────────────────────────────────────────── */
.content-area {
    flex: 1;
    min-width: 0;
}

.content-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.content-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

/* ─── TABLE HEADER ───────────────────────────────────────────────────── */
.table-header-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.th-rank {
    width: 56px;
    flex-shrink: 0;
}

.th-player {
    flex: 1;
}

.th-region {
    width: 90px;
    text-align: center;
}

.th-tiers {
    width: 380px;
}

/* ─── PLAYER ROWS ────────────────────────────────────────────────────── */
#rankingsList,
#queueList {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-row {
    display: flex;
    align-items: center;
    background: var(--bg-row);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 70px;
    padding: 0 8px 0 0;
    position: relative;
    transition: border-color 0.3s, background 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    overflow: visible;
    animation: slideIn 0.3s ease both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.row-1::before {
    background: var(--gold);
    opacity: 1;
}

.row-2::before {
    background: var(--silver);
    opacity: 0.8;
}

.row-3::before {
    background: var(--bronze);
    opacity: 0.7;
}

.player-row:hover {
    background: #161b28;
    border-color: rgba(255, 184, 0, 0.4);
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 184, 0, 0.2), 0 0 30px rgba(255, 184, 0, 0.08);
    z-index: 50;
}

.top-rank {
    border-color: rgba(255, 184, 0, 0.2);
    background: linear-gradient(90deg, rgba(255, 184, 0, 0.03) 0%, var(--bg-row) 20%);
}

/* ─── NAMEPLATE POPUP ────────────────────────────────────────────────── */
.player-nameplate {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 320px;
    background: #0e1219;
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 184, 0, 0.08), 0 0 40px rgba(255, 184, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.22s;
    z-index: 999;
}

.player-nameplate::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: rgba(255, 184, 0, 0.3) transparent transparent transparent;
}

.player-row:hover .player-nameplate {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.np-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.np-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    image-rendering: pixelated;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    outline: 2px solid rgba(255, 184, 0, 0.25);
    outline-offset: 2px;
    flex-shrink: 0;
}

.np-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.np-title {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.85;
}

.np-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-rank-num {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.np-kits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.np-kit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.np-kit img {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.np-kit-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-sub);
}

.np-kit-tier {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.np-tier-ht1 {
    background: #ffd700;
    color: #000;
}

.np-tier-lt1 {
    background: #ffe87a;
    color: #000;
}

.np-tier-ht2 {
    background: #ff9d00;
    color: #000;
}

.np-tier-lt2 {
    background: #ffbc52;
    color: #000;
}

.np-tier-ht3 {
    background: #ff6b00;
    color: #fff;
}

.np-tier-lt3 {
    background: #ff9c52;
    color: #000;
}

.np-tier-ht4 {
    background: #a855f7;
    color: #fff;
}

.np-tier-lt4 {
    background: #c084fc;
    color: #000;
}

.np-tier-ht5 {
    background: #3b82f6;
    color: #fff;
}

.np-tier-lt5 {
    background: #60a5fa;
    color: #000;
}

/* Rank */
.rank-box {
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-muted);
}

.row-1 .rank-text {
    color: var(--gold);
}

.row-2 .rank-text {
    color: var(--silver);
}

.row-3 .rank-text {
    color: var(--bronze);
}

/* Player info */
.col-player {
    flex: 1;
    display: flex;
    align-items: center;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

.player-row:hover .player-card {
    transform: translateX(4px);
}

.avatar-wrapper {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    position: relative;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-row:hover .avatar-wrapper img {
    transform: scale(1.18) translateY(-2px);
    position: relative;
    z-index: 5;
}

.row-1 .avatar-wrapper {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 8px;
}

.row-2 .avatar-wrapper {
    outline: 2px solid var(--silver);
    outline-offset: 2px;
    border-radius: 8px;
}

.row-3 .avatar-wrapper {
    outline: 2px solid var(--bronze);
    outline-offset: 2px;
    border-radius: 8px;
}

.player-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.player-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.title-icon {
    color: var(--primary);
}

/* Region */
.col-region {
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.region-NA {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.region-EU {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.region-AS {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Tiers column */
.col-tiers {
    width: 380px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.tiers-list {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: visible;
    transition: all 0.2s;
}

.tiers-list:hover .tier-item {
    opacity: 0.3;
    filter: grayscale(60%);
}

.tiers-list:hover .tier-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-8px) scale(1.28);
    z-index: 20;
}

.tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 32px;
    cursor: help;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.server-card-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tier-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s;
}

.tier-badge-label {
    margin-top: 3px;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.2px;
}

/* Tier tooltip */
.tier-item .tier-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111520;
    border: 1px solid #2e3250;
    padding: 8px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.tier-item .tier-tooltip strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.tier-item .tier-tooltip span {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
}

.tier-item .tier-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #2e3250 transparent transparent transparent;
}

.tier-item:hover .tier-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
}

/* Tier specific colours */
.tier-color-HT1 .tier-circle {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.06);
}

.tier-color-HT1 .tier-badge-label {
    background: #ffd700;
    color: #000;
}

.tier-color-LT1 .tier-circle {
    border-color: rgba(255, 232, 122, 0.4);
    background: rgba(255, 232, 122, 0.06);
}

.tier-color-LT1 .tier-badge-label {
    background: #ffe87a;
    color: #000;
}

.tier-color-HT2 .tier-circle {
    border-color: rgba(255, 157, 0, 0.4);
}

.tier-color-HT2 .tier-badge-label {
    background: #ff9d00;
    color: #000;
}

.tier-color-LT2 .tier-circle {
    border-color: rgba(255, 188, 82, 0.4);
}

.tier-color-LT2 .tier-badge-label {
    background: #ffbc52;
    color: #000;
}

.tier-color-HT3 .tier-circle {
    border-color: rgba(255, 107, 0, 0.4);
}

.tier-color-HT3 .tier-badge-label {
    background: #ff6b00;
    color: #fff;
}

.tier-color-LT3 .tier-circle {
    border-color: rgba(255, 156, 82, 0.4);
}

.tier-color-LT3 .tier-badge-label {
    background: #ff9c52;
    color: #000;
}

.tier-color-HT4 .tier-circle {
    border-color: rgba(168, 85, 247, 0.4);
}

.tier-color-HT4 .tier-badge-label {
    background: #a855f7;
    color: #fff;
}

.tier-color-LT4 .tier-circle {
    border-color: rgba(192, 132, 252, 0.4);
}

.tier-color-LT4 .tier-badge-label {
    background: #c084fc;
    color: #000;
}

.tier-color-HT5 .tier-circle {
    border-color: rgba(59, 130, 246, 0.4);
}

.tier-color-HT5 .tier-badge-label {
    background: #3b82f6;
    color: #fff;
}

.tier-color-LT5 .tier-circle {
    border-color: rgba(96, 165, 250, 0.4);
}

.tier-color-LT5 .tier-badge-label {
    background: #60a5fa;
    color: #000;
}

.tier-color-default .tier-circle {
    border-color: rgba(255, 255, 255, 0.08);
}

.tier-color-default .tier-badge-label {
    background: #3a3f5c;
    color: #fff;
}

/* ─── TIER COLUMN VIEW ───────────────────────────────────────────────── */
.tier-cols-grid {
    display: flex;
    gap: 10px;
    width: 100%;
}

.tier-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.tier-col-header {
    text-align: center;
    padding: 14px 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.col-icon {
    font-size: 1.1rem;
}

.tier-col-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px;
    min-height: 60px;
    background: var(--bg-card);
}

.tcp-empty {
    text-align: center;
    padding: 14px 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
}

.tcp-row {
    background: var(--bg-row);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px 7px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    overflow: visible;
}

.tcp-row:hover {
    background: var(--bg-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.tier-player-head {
    position: relative;
    width: auto;
    height: auto;
    cursor: help;
}

.tcp-avatar {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    image-rendering: pixelated;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.tcp-row:hover .tcp-avatar {
    transform: scale(1.15);
}

.tcp-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcp-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Tooltip for tcp rows */
.tier-player-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111520;
    border: 1px solid #2e3250;
    padding: 7px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    text-align: center;
}

.tier-player-tooltip strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.tier-player-tooltip span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.tier-player-head:hover .tier-player-tooltip,
.tcp-row:hover .tier-player-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
}

.tier-player-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #2e3250 transparent transparent transparent;
}

/* ─── QUEUE ───────────────────────────────────────────────────────────── */
.queue-header-banner {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.queue-header-banner.open {
    background: rgba(74, 222, 128, 0.05);
    border-color: rgba(74, 222, 128, 0.15);
}

.qb-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

#queueStatusText {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f87171;
}

.queue-header-banner.open #queueStatusText {
    color: #4ade80;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f87171;
}

.queue-header-banner.open .status-dot {
    background: #4ade80;
    animation: pulse-green 1.5s infinite;
}

.qb-sub {
    color: var(--text-sub);
    font-size: 0.88rem;
}

#queueContainer {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── LOADING ─────────────────────────────────────────────────────────── */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-sub);
}

.footer-sep {
    opacity: 0.4;
}

/* ─── INTERACTIVITY ─────────────────────────────────────────────────── */
.player-row {
    cursor: pointer;
}

/* ─── LIVE TOAST SYSTEM ─────────────────────────────────────────────── */
.live-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.toast-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
}

/* ─── PREMIUM PLAYER MODAL ──────────────────────────────────────────── */
.player-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-modal.modal-open {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-card {
    position: relative;
    width: 440px;
    max-width: 95vw;
    background: #0d111b;
    border: 1px solid rgba(255, 184, 0, 0.25);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 80px rgba(255, 184, 0, 0.08);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.player-modal.modal-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-sub);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    position: relative;
    background: linear-gradient(135deg, #151c2d 0%, #0d121c 100%);
    padding: 50px 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.modal-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 184, 0, 0.15) 0%, transparent 75%);
}

.modal-avatar {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    image-rendering: pixelated;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.modal-rank-badge {
    position: absolute;
    top: 20px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary), #ff6b00);
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.modal-body {
    padding: 30px 32px 40px;
}

.modal-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-subtitle.ip-highlight {
    color: var(--primary);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

.modal-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-tag-kits {
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.modal-kits-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
}

.modal-kits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.modal-kit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s;
}

.modal-kit-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(6px);
    border-color: rgba(255, 184, 0, 0.2);
}

.modal-kit-row img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.modal-kit-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.modal-kit-tier {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

body.modal-active {
    overflow: hidden;
}

/* ─── CHAMPION PODIUM ───────────────────────────────────────────────── */
.podium-section {
    margin: 10px 0 25px;
    background: linear-gradient(180deg, rgba(255, 184, 0, 0.04) 0%, transparent 100%);
    border: 1px solid rgba(255, 184, 0, 0.1);
    border-radius: 20px;
    padding: 24px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.podium-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.podium-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
}

.podium-spot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    animation: podium-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes podium-bounce {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rank-1 {
    z-index: 3;
}

.rank-2 {
    z-index: 2;
    animation-delay: 0.1s;
}

.rank-3 {
    z-index: 1;
    animation-delay: 0.2s;
}

.podium-crown {
    font-size: 1.5rem;
    margin-bottom: -8px;
    filter: drop-shadow(0 0 15px rgba(255, 184, 0, 0.6));
    animation: crown-float 3s ease-in-out infinite;
}

@keyframes crown-float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

.podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    image-rendering: pixelated;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.rank-1 .podium-avatar {
    width: 72px;
    height: 72px;
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.rank-2 .podium-avatar {
    width: 60px;
    height: 60px;
    outline: 2px solid var(--silver);
    outline-offset: 3px;
}

.rank-3 .podium-avatar {
    width: 54px;
    height: 54px;
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

.podium-ign {
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 10px;
    border-radius: 20px;
}

.podium-block {
    width: 100%;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    font-size: 2rem;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.rank-1 .podium-block {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 0%, rgba(26, 21, 5, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: none;
    height: 100px;
}

.rank-2 .podium-block {
    background: linear-gradient(180deg, rgba(158, 167, 173, 0.2) 0%, rgba(13, 14, 16, 0.6) 100%);
    border: 1px solid rgba(158, 167, 173, 0.25);
    border-bottom: none;
    height: 75px;
}

.rank-3 .podium-block {
    background: linear-gradient(180deg, rgba(139, 90, 43, 0.2) 0%, rgba(18, 12, 6, 0.6) 100%);
    border: 1px solid rgba(139, 90, 43, 0.25);
    border-bottom: none;
    height: 55px;
}

.podium-block span {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

/* ─── ADMIN STYLES ───────────────────────────────────────────────────── */
.admin-btn-nav {
    background: var(--bg-item);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.admin-btn-nav:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-dim);
}

.admin-modal-card {
    width: 360px;
}

.admin-icon {
    font-size: 3rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.admin-input {
    background: var(--bg-item);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: var(--primary);
}

.admin-submit-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s, background 0.2s;
}

.admin-submit-btn:hover {
    background: #ffcc33;
    transform: translateY(-2px);
}

.remove-tier-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
}

.is-admin .remove-tier-btn {
    opacity: 1;
    pointer-events: all;
}

.remove-tier-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* ─── MOBILE RESPONSIVENESS ───────────────────────────────────────────── */

/* Mobile Toggle Button */
.mobile-menu-btn {
    display: none;
    background: var(--bg-item);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
        gap: 20px;
    }

    .search-box {
        width: 180px;
    }

    .page-layout {
        gap: 16px;
    }

    .th-tiers,
    .col-tiers {
        width: 300px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
        gap: 0;
    }

    .sidebar-section {
        width: 100%;
        min-width: 0;
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .kit-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .kit-btn {
        justify-content: center;
        padding: 12px 8px;
        flex-direction: column;
        height: auto;
    }

    .kit-btn span {
        font-size: 0.75rem;
    }

    /* Mobile Search Fix */
    .nav-right .search-box {
        display: flex !important;
        width: 150px !important;
    }
    .nav-right .live-pill {
        display: none !important;
    }

    .container {
        padding: 0 16px 40px;
    }

    .hero-section {
        padding: 100px 20px 60px;
    }
}

@media (max-width: 768px) {
    .nav-right .search-box {
        display: flex !important;
        width: 120px !important;
    }
    .nav-right .live-pill {
        display: none !important;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    .stat-card {
        padding: 14px;
        width: 100%;
    }

    .table-header-row {
        display: none !important;
    }

    .player-row {
        height: auto;
        padding: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .rank-box {
        width: 30px;
        font-size: 1rem;
    }

    .col-player {
        flex: 1;
        min-width: 0;
    }

    .col-region {
        width: auto;
    }

    .col-tiers {
        width: 100%;
        order: 4;
        margin-top: 5px;
    }

    .tiers-list {
        flex-wrap: wrap;
    }

    /* Podium Adjustments */
    .podium-stage {
        gap: 10px;
    }

    .podium-block {
        font-size: 1.5rem;
    }

    .podium-block span {
        font-size: 1.2rem;
    }

    .rank-1 .podium-avatar { width: 60px; height: 60px; }
    .rank-2 .podium-avatar { width: 50px; height: 50px; }
    .rank-3 .podium-avatar { width: 45px; height: 45px; }

    /* Admin Modal */
    .admin-modal-card {
        width: 90%;
        margin: 0 5%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .podium-stage {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .podium-spot {
        width: 100% !important;
        max-width: 240px;
    }

    .podium-block {
        height: 60px !important;
    }
}