.killfeed-leaderboard-page {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Rajdhani", "Oswald", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        linear-gradient(90deg, rgba(4, 6, 10, 0.94), rgba(4, 6, 10, 0.58) 48%, rgba(4, 6, 10, 0.9)),
        url("images/Killfeed_Images/LeaderBoard_BG.png") center top / cover fixed no-repeat !important;
    color: #f3f5f8 !important;
}

.killfeed-leaderboard-page::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        repeating-linear-gradient(90deg, rgba(232, 0, 60, 0.04) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px);
    opacity: 0.8;
}

.leaderboard-shell {
    position: relative;
    width: min(1640px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 28px 225px;
}

.season-rail {
    position: absolute;
    left: 4px;
    top: 24px;
    width: 190px;
    min-height: 520px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.season-rail img {
    width: 184px;
    max-width: 100%;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.62));
}

.leaderboard-hero {
    position: relative;
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 32px;
    padding: 18px 20px 18px 0;
}

.hero-copy {
    min-width: 0;
    max-width: 100%;
}

.command-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    color: #cdd3dc;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 11, 16, 0.62);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.leaderboard-hero h1 {
    margin: 16px 0 6px;
    font-family: "Teko", "Rajdhani", "Oswald", sans-serif;
    font-size: clamp(3rem, 8vw, 5.8rem);
    font-weight: 700;
    line-height: 0.9;
    color: #f2f4f8 !important;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.72);
}

.leaderboard-hero h1 span {
    color: #dce2ea;
}

.leaderboard-hero h1 strong {
    color: #e8003c;
}

.leaderboard-hero p {
    max-width: 700px;
    margin: 0 0 24px;
    color: #c6ccd6 !important;
    font-size: 1.02rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hero-killfeed-logo {
    width: min(250px, 28vw);
    justify-self: center;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.68));
}

.leaderboard-tabs {
    width: min(720px, 100%);
    min-height: 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 14, 19, 0.78);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.leaderboard-tabs button,
.panel-actions button {
    min-height: 46px;
    color: #dce2ea;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0 !important;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.leaderboard-tabs button.is-active,
.leaderboard-tabs button:hover,
.panel-actions button:hover {
    color: #ff2d59;
    background: linear-gradient(90deg, rgba(232, 0, 60, 0.18), rgba(232, 0, 60, 0.04));
}

.leaderboard-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 18px;
    border: 1px solid rgba(232, 0, 60, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.leaderboard-summary div {
    min-height: 76px;
    padding: 16px 18px;
    background: rgba(8, 11, 16, 0.82);
}

.leaderboard-summary span {
    display: block;
    color: #87909e;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.leaderboard-summary strong {
    display: block;
    margin-top: 6px;
    color: #f3f5f8;
    font-size: 0.95rem;
}

.top-player-showcase {
    position: relative;
    margin: 0 0 18px;
    border: 1px solid rgba(232, 0, 60, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(232, 0, 60, 0.11), transparent 35%, rgba(232, 0, 60, 0.05)),
        linear-gradient(180deg, rgba(18, 22, 29, 0.94), rgba(8, 11, 16, 0.9));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.top-player-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, 0.028) 55px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
    opacity: 0.72;
    pointer-events: none;
}

.showcase-head,
.showcase-body {
    position: relative;
    z-index: 1;
}

.showcase-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-head h2 {
    margin: 2px 0 0;
    color: #eef2f7 !important;
    font-family: "Teko", "Rajdhani", "Oswald", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
}

.showcase-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9da6b4;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.showcase-status i {
    color: #41d45c;
    font-size: 0.6rem;
    filter: drop-shadow(0 0 8px rgba(65, 212, 92, 0.8));
}

.showcase-body {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.showcase-feature,
.showcase-list {
    background: rgba(8, 11, 16, 0.86);
}

.showcase-feature {
    min-height: 236px;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 24px;
}

.feature-rank-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-rank-line .rank-cell {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
}

.feature-rank-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.62));
}

.feature-player-name {
    max-width: 100%;
    color: #fff;
    font-family: "Teko", "Rajdhani", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 0.96;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.feature-meta {
    color: #9ea7b4;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-kills {
    display: inline-flex;
    width: max-content;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid rgba(232, 0, 60, 0.46);
    border-radius: 5px;
    background: rgba(232, 0, 60, 0.13);
}

.feature-kills strong {
    color: #ff2d59;
    font-size: 1.55rem;
    line-height: 1;
}

.showcase-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-list li {
    min-height: 236px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 8px;
    padding: 16px;
    background: rgba(12, 16, 22, 0.78);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.showcase-list li.is-active {
    background: linear-gradient(180deg, rgba(232, 0, 60, 0.24), rgba(12, 16, 22, 0.92));
    box-shadow: inset 0 0 0 1px rgba(232, 0, 60, 0.36), inset 0 -4px 0 rgba(232, 0, 60, 0.55);
}

.showcase-list .mini-rank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-list .rank-icon {
    width: 34px;
    height: 34px;
    margin: 0;
}

.mini-name {
    max-width: 100%;
    color: #fff;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-stat {
    color: #aab3c0;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mini-stat strong {
    color: #ff2d59;
    font-size: 1.16rem;
}

/* Compact live tracker override: small tactical window, not a full board. */
.top-player-showcase {
    position: absolute;
    right: clamp(210px, 15vw, 290px);
    bottom: 18px;
    z-index: 3;
    width: min(100%, 360px);
    margin: 0;
    border-color: rgba(232, 0, 60, 0.34);
}

.showcase-head {
    min-height: 40px;
    display: block;
    padding: 7px 10px;
}

.showcase-head h2 {
    font-size: 0.9rem;
}

.showcase-status {
    display: none;
    font-size: 0.58rem;
}

.showcase-body {
    display: block;
    background: rgba(8, 11, 16, 0.88);
}

.showcase-feature {
    min-height: 62px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    gap: 8px;
    padding: 10px;
}

.feature-rank-line {
    gap: 8px;
}

.feature-rank-line .rank-cell {
    width: 24px;
    height: 24px;
    font-size: 0.82rem;
}

.feature-rank-icon {
    width: 28px;
    height: 28px;
}

.feature-player-name {
    font-size: 1.08rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feature-meta {
    display: none;
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-kills {
    width: auto;
    padding: 3px 7px;
}

.feature-kills strong {
    font-size: 0.92rem;
}

.showcase-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-list li {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 6px;
}

.showcase-list .rank-icon {
    display: none;
}

.showcase-list .rank-cell {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 0.68rem;
}

.mini-name {
    display: none;
    font-size: 0.62rem;
}

.mini-stat {
    font-size: 0.54rem;
}

.mini-stat strong {
    font-size: 0.66rem;
}

.showcase-list li .mini-stat:last-child {
    display: none;
}

.board-stack {
    display: grid;
    gap: 18px;
}

.leaderboard-panel {
    position: relative;
    border: 1px solid rgba(232, 0, 60, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18, 22, 29, 0.92), rgba(8, 11, 16, 0.9)),
        linear-gradient(90deg, rgba(232, 0, 60, 0.08), transparent 40%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.leaderboard-panel.is-muted {
    display: none;
}

.panel-head {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-kicker {
    color: #ff2d59;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.panel-head h2 {
    margin: 2px 0 0;
    font-family: "Teko", "Rajdhani", "Oswald", sans-serif;
    font-size: 1.22rem;
    font-weight: 600;
    color: #eef2f7 !important;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-actions input {
    width: 190px;
    min-height: 40px;
    padding: 0 12px;
    color: #eef2f7;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    outline: none;
}

.page-size-control {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: #9da6b4;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 1px solid rgba(232, 0, 60, 0.42);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
}

.page-size-control select {
    min-width: 82px;
    min-height: 30px;
    padding: 0 28px 0 10px;
    color: #f3f5f8;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    background: rgba(5, 7, 10, 0.82);
}

.panel-actions input:focus {
    border-color: rgba(232, 0, 60, 0.72);
    box-shadow: 0 0 0 3px rgba(232, 0, 60, 0.14);
}

.panel-actions button {
    min-width: 156px;
    padding: 0 16px;
    border: 1px solid rgba(232, 0, 60, 0.44);
    border-radius: 6px;
}

.table-wrap {
    max-height: 680px;
    overflow: auto;
}

.leaderboard-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    table-layout: fixed;
}

.leaderboard-table .col-rank {
    width: 82px;
}

.leaderboard-table .col-tier {
    width: 96px;
}

.leaderboard-table .col-name {
    width: 300px;
}

.leaderboard-table .col-stat {
    width: 112px;
}

.leaderboard-table .col-stat-wide {
    width: 138px;
}

.leaderboard-table th,
.leaderboard-table td {
    height: 48px;
    padding: 0 12px;
    color: #eef2f7;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-table th {
    color: #bcc4cf;
    font-size: 0.72rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

.leaderboard-table th::after {
    content: " ^";
    color: rgba(232, 0, 60, 0.72);
}

.leaderboard-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.leaderboard-table tbody tr:hover {
    background: rgba(232, 0, 60, 0.09);
}

.leaderboard-table tbody tr {
    cursor: pointer;
}

.rank-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.12);
}

.rank-cell.rank-1 {
    background: linear-gradient(180deg, #f8c35b, #9f620f);
}

.rank-cell.rank-2 {
    background: linear-gradient(180deg, #d8dde4, #747d89);
}

.rank-cell.rank-3 {
    background: linear-gradient(180deg, #d98449, #803d1d);
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.rank-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.tier-cell {
    text-align: center;
}

.tier-name {
    display: block;
    margin-top: 3px;
    color: #9ea7b4;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-cell .entry-name {
    display: block;
    min-width: 0;
    color: #fff;
    font-weight: 900;
}

.name-cell span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-hint {
    display: block;
    margin-top: 3px;
    color: #7f8896;
    font-size: 0.66rem;
    font-weight: 700;
}

.loading-cell,
.empty-cell {
    height: 90px !important;
    color: #aeb6c2 !important;
    text-align: center !important;
}

.leaderboard-footer {
    width: min(1500px, calc(100% - 48px));
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
    padding: 8px 0 28px;
    color: #98a1ad;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 800;
}

.leaderboard-footer img {
    width: 220px;
    max-width: 42vw;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    padding: 18px;
}

.rank-card {
    min-height: 210px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(18, 22, 29, 0.92), rgba(8, 11, 16, 0.92));
    box-shadow: inset 0 0 0 1px rgba(232, 0, 60, 0.08), 0 18px 28px rgba(0, 0, 0, 0.3);
}

.rank-card img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.rank-card span {
    color: #ff2d59;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rank-card h3 {
    margin: 5px 0 10px;
    color: #f3f5f8 !important;
    font-size: 1rem;
}

.rank-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 0;
}

.rank-card dt {
    color: #8d96a4;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.rank-card dd {
    margin: 3px 0 0;
    color: #fff;
    font-weight: 900;
}

.leaderboard-detail {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.leaderboard-detail[hidden] {
    display: none;
}

.detail-card {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid rgba(232, 0, 60, 0.5);
    border-radius: 8px;
    background:
        linear-gradient(165deg, rgba(18, 22, 29, 0.98), rgba(7, 9, 13, 0.98)),
        linear-gradient(90deg, rgba(232, 0, 60, 0.12), transparent);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.68), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.detail-close:hover {
    color: #ff2d59;
    border-color: rgba(232, 0, 60, 0.58);
}

.detail-head {
    padding: 24px 68px 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-head span {
    color: #ff2d59;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-head h2 {
    margin: 6px 0 4px;
    color: #f3f5f8 !important;
    font-size: 1.6rem;
    overflow-wrap: anywhere;
}

.detail-head p {
    margin: 0;
    color: #aab3c0 !important;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-stat {
    min-height: 76px;
    padding: 16px;
    background: rgba(8, 11, 16, 0.92);
}

.detail-stat span {
    display: block;
    color: #8d96a4;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-stat strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .leaderboard-shell {
        width: min(100% - 28px, 980px);
        padding-left: 0;
    }

    .season-rail {
        display: none;
    }

    .leaderboard-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 20px;
    }

    .hero-killfeed-logo {
        width: 180px;
        justify-self: start;
    }

    .top-player-showcase {
        position: static;
        width: min(100%, 360px);
        margin: 12px 0 0;
    }

    .leaderboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-body,
    .showcase-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .showcase-list li {
        min-height: 36px;
    }
}

@media (max-width: 720px) {
    .leaderboard-shell {
        width: min(100% - 18px, 620px);
        padding-top: 20px;
    }

    .leaderboard-hero h1 {
        font-size: clamp(2.65rem, 18vw, 4rem);
    }

    .leaderboard-hero p {
        max-width: min(330px, calc(100vw - 28px));
        font-size: 0.96rem;
    }

    .leaderboard-tabs,
    .panel-head,
    .panel-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .leaderboard-tabs {
        grid-template-columns: 1fr;
    }

    .panel-actions input,
    .panel-actions button {
        width: 100%;
        min-width: 0;
    }

    .leaderboard-summary {
        grid-template-columns: 1fr;
    }

    .showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .showcase-feature {
        min-height: 62px;
        padding: 10px;
    }

    .leaderboard-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .detail-stats {
        grid-template-columns: 1fr;
    }
}
