.weirdo-leaderboard-page {
    --weirdo-orange: var(--w2w-accent);
    --weirdo-text: var(--w2w-text-on-light);
    --weirdo-muted: var(--w2w-text-on-light-muted);
    --weirdo-line: #dedede;
    --weirdo-card: #ffffff;
    --weirdo-page: #f5f3f0;
    --weirdo-boxed-width: 1200px;
    min-height: 100vh;
    background: var(--weirdo-page);
    color: var(--weirdo-text);
    font-family: var(--w2w-font-main);
    font-size: var(--w2w-fs-base);
}

.weirdo-leaderboard-page img {
    -webkit-user-drag: none;
    user-select: none;
}

.weirdo-leaderboard-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background-color: #171717;
}

.weirdo-leaderboard-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 30%;
    background-image: var(--banner-image, none);
    background-position: var(--banner-x, 50%) var(--banner-y, 50%);
    background-repeat: no-repeat;
    background-size: var(--banner-zoom, 100%) auto;
}

.weirdo-leaderboard-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 0%, #000 30%, rgba(0, 0, 0, 0.88) 38%, rgba(0, 0, 0, 0.42) 66%, rgba(0, 0, 0, 0.14) 100%);
}

.weirdo-leaderboard-hero__content {
    position: relative;
    z-index: 1;
    width: min(var(--weirdo-boxed-width), calc(100% - 32px));
    min-height: 360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    align-items: center;
    gap: 28px;
}

.weirdo-leaderboard-hero__copy h1 {
    width: min(520px, 100%);
    margin: 0 0 22px;
    color: var(--w2w-text-on-dark);
    font-size: var(--title-size, 42px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.weirdo-leaderboard-hero__copy p {
    width: min(520px, 100%);
    margin: 0;
    color: var(--w2w-text-on-dark-soft);
    font-size: var(--description-size, 17px);
    line-height: 1.55;
}

.weirdo-leaderboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.weirdo-leaderboard-hero__actions a,
.weirdo-leaderboard-cta a {
    min-width: 150px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--button-color, var(--weirdo-orange));
    color: var(--w2w-text-on-dark);
    padding: 0 18px;
    font-size: var(--button-size, 13px);
    font-weight: 800;
    text-decoration: none;
}

.weirdo-leaderboard-podium {
    min-height: 280px;
    border-radius: 7px;
    background: rgba(18, 16, 13, 0.92);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    padding: 18px 22px 22px;
    color: var(--w2w-text-on-dark);
}

.weirdo-leaderboard-podium h2 {
    margin: 0 0 12px;
    color: var(--w2w-text-on-dark);
    font-size: var(--w2w-fs-sm);
    font-weight: 800;
    text-align: center;
}

.weirdo-leaderboard-podium__grid {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
}

.weirdo-leaderboard-podium__slot {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

.weirdo-leaderboard-podium__slot::after {
    content: "";
    width: 100%;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(0deg, rgba(255, 138, 0, 0) 0%, rgba(255, 138, 0, 1) 100%);
}

.weirdo-leaderboard-podium__slot.is-rank-1::after { height: 70px; }
.weirdo-leaderboard-podium__slot.is-rank-2::after { height: 54px; }
.weirdo-leaderboard-podium__slot.is-rank-3::after { height: 42px; }

.weirdo-leaderboard-podium__medal {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.weirdo-leaderboard-podium__avatar {
    width: 58px;
    height: 58px;
    display: block;
    margin: 2px 0 7px;
    border-radius: 50%;
    overflow: hidden;
    background: #d8d8d8;
}

.weirdo-leaderboard-podium__slot.is-rank-1 .weirdo-leaderboard-podium__avatar {
    width: 72px;
    height: 72px;
}

.weirdo-leaderboard-podium__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.weirdo-leaderboard-podium__name {
    max-width: 100%;
    color: var(--w2w-text-on-dark);
    font-size: var(--w2w-fs-xs);
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weirdo-leaderboard-podium__slot span {
    color: var(--weirdo-orange);
    font-size: var(--w2w-fs-xs);
    font-weight: 700;
}

.weirdo-leaderboard-podium__slot b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.weirdo-leaderboard-shell {
    width: min(var(--weirdo-boxed-width), calc(100% - 32px));
    margin: 18px auto 64px;
}

.weirdo-leaderboard-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: start;
}

.weirdo-leaderboard-card,
.weirdo-leaderboard-explain {
    border: 1px solid var(--weirdo-line);
    border-radius: 7px;
    background: var(--weirdo-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.weirdo-leaderboard-card {
    padding: 18px 26px 22px;
}

.weirdo-leaderboard-tabs {
    max-width: 470px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    overflow: visible;
    background: #ffffff;
}

.weirdo-leaderboard-tabs a {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e4e4e4;
    color: var(--w2w-text-on-light-muted);
    font-size: var(--w2w-fs-sm);
    font-weight: 600;
    text-decoration: none;
}

.weirdo-leaderboard-tabs a:first-child {
    border-left: 0;
}

.weirdo-leaderboard-tabs a.is-active {
    z-index: 1;
    border: 1px solid var(--weirdo-orange);
    border-radius: 6px;
    color: var(--weirdo-orange);
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--weirdo-orange);
}

.weirdo-leaderboard-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.weirdo-leaderboard-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.weirdo-leaderboard-table th,
.weirdo-leaderboard-table td {
    padding: 8px 10px;
    color: var(--w2w-text-on-light-soft);
    font-size: var(--w2w-fs-sm);
    text-align: center;
    vertical-align: middle;
}

.weirdo-leaderboard-table th {
    color: var(--w2w-text-on-light-muted);
    font-weight: 800;
}

.weirdo-leaderboard-table th:nth-child(2),
.weirdo-leaderboard-table td:nth-child(2) {
    text-align: left;
}

.weirdo-leaderboard-heading-icon {
    width: 17px;
    height: 17px;
    display: inline-block;
    background: currentColor;
    color: var(--w2w-text-on-light-muted);
}

.weirdo-leaderboard-heading-icon--movies {
    mask: url("../svg/phim.svg") center / contain no-repeat;
    -webkit-mask: url("../svg/phim.svg") center / contain no-repeat;
}

.weirdo-leaderboard-heading-icon--messages {
    mask: url("../svg/tin-nhan.svg") center / contain no-repeat;
    -webkit-mask: url("../svg/tin-nhan.svg") center / contain no-repeat;
}

.weirdo-leaderboard-heading-icon--ratings {
    mask: url("../svg/danh-gia.svg") center / contain no-repeat;
    -webkit-mask: url("../svg/danh-gia.svg") center / contain no-repeat;
}

.weirdo-leaderboard-rank-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.weirdo-leaderboard-rank-number {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    color: var(--w2w-text-on-light-soft);
    font-size: var(--w2w-fs-xs);
    font-weight: 700;
}

.weirdo-leaderboard-user {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.weirdo-leaderboard-user img {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: #d8d8d8;
}

.weirdo-leaderboard-user span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weirdo-leaderboard-user a {
    color: var(--w2w-text-on-light);
    font-size: var(--w2w-fs-sm);
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weirdo-leaderboard-user small {
    color: var(--w2w-text-on-light-muted);
    font-size: var(--w2w-fs-xs);
    line-height: 1.1;
}

.weirdo-leaderboard-exp {
    color: var(--weirdo-orange) !important;
    font-size: var(--w2w-fs-md) !important;
    font-weight: 900;
}

.weirdo-leaderboard-empty {
    padding: 26px !important;
    color: var(--weirdo-muted) !important;
    text-align: center !important;
}

.weirdo-leaderboard-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.weirdo-leaderboard-pagination a,
.weirdo-leaderboard-pagination span {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #ffffff;
    color: var(--w2w-text-on-light-soft);
    font: 700 var(--w2w-fs-sm)/1 var(--w2w-font-main);
    text-decoration: none;
}

.weirdo-leaderboard-pagination a.is-active {
    border-color: var(--weirdo-orange);
    background: var(--weirdo-orange);
    color: var(--w2w-text-on-dark);
}

.weirdo-leaderboard-pagination span {
    border-color: transparent;
    background: transparent;
}

.weirdo-leaderboard-explain {
    padding: 18px;
}

.weirdo-leaderboard-explain h2 {
    margin: 0 0 18px;
    color: var(--w2w-text-on-light-soft);
    font-size: var(--w2w-fs-base);
    font-weight: 800;
}

.weirdo-leaderboard-explain__list {
    display: grid;
    gap: 16px;
}

.weirdo-leaderboard-explain article,
.weirdo-leaderboard-cta > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.weirdo-leaderboard-explain article img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.weirdo-leaderboard-explain article span,
.weirdo-leaderboard-cta span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.weirdo-leaderboard-explain strong,
.weirdo-leaderboard-cta strong {
    color: var(--w2w-text-on-light-soft);
    font-size: var(--w2w-fs-sm);
    font-weight: 900;
    line-height: 1.2;
}

.weirdo-leaderboard-explain small,
.weirdo-leaderboard-cta small {
    color: var(--w2w-text-on-light-muted);
    font-size: var(--w2w-fs-xs);
    line-height: 1.35;
}

.weirdo-leaderboard-cta {
    margin-top: 22px;
    border: 1px solid var(--weirdo-orange);
    border-radius: 7px;
    padding: 14px;
    background: #fff7e8;
}

.weirdo-leaderboard-cta img {
    width: 38px;
    max-height: 36px;
    object-fit: contain;
}

.weirdo-leaderboard-cta a {
    min-width: 150px;
    min-height: 30px;
    margin: 14px auto 0;
    border: 1px solid var(--weirdo-orange);
    background: #ffffff;
    color: var(--weirdo-orange);
    font-size: var(--w2w-fs-xs);
}

@media (max-width: 900px) {
    .weirdo-leaderboard-hero__content,
    .weirdo-leaderboard-main {
        grid-template-columns: 1fr;
    }

    .weirdo-leaderboard-podium {
        margin-bottom: 24px;
    }
}

@media (max-width: 640px) {
    .weirdo-leaderboard-hero,
    .weirdo-leaderboard-hero__content {
        min-height: 280px;
    }

    .weirdo-leaderboard-hero__content {
        width: min(100% - 28px, var(--weirdo-boxed-width));
        padding: 28px 0;
    }

    .weirdo-leaderboard-hero__copy h1 {
        font-size: var(--w2w-fs-2xl);
    }

    .weirdo-leaderboard-hero__copy p {
        font-size: var(--w2w-fs-sm);
    }

    .weirdo-leaderboard-shell {
        width: min(100% - 22px, var(--weirdo-boxed-width));
    }

    .weirdo-leaderboard-card,
    .weirdo-leaderboard-explain {
        padding: 12px;
    }

    .weirdo-leaderboard-tabs {
        max-width: none;
    }

    .weirdo-leaderboard-tabs a {
        font-size: var(--w2w-fs-xs);
    }

    .weirdo-leaderboard-table-wrap {
        overflow-x: hidden;
    }

    .weirdo-leaderboard-table {
        min-width: 0;
        table-layout: fixed;
    }

    .weirdo-leaderboard-table th,
    .weirdo-leaderboard-table td {
        padding: 7px 4px;
        font-size: var(--w2w-fs-xs);
    }

    .weirdo-leaderboard-table th:first-child,
    .weirdo-leaderboard-table td:first-child {
        width: 34px;
    }

    .weirdo-leaderboard-table th:nth-child(2),
    .weirdo-leaderboard-table td:nth-child(2) {
        width: 34%;
    }

    .weirdo-leaderboard-table th:last-child,
    .weirdo-leaderboard-table td:last-child {
        width: 48px;
    }

    .weirdo-leaderboard-heading-icon {
        width: 14px;
        height: 14px;
    }

    .weirdo-leaderboard-rank-icon {
        width: 27px;
        height: 27px;
    }

    .weirdo-leaderboard-rank-number {
        width: 25px;
        height: 25px;
        font-size: var(--w2w-fs-xs);
    }

    .weirdo-leaderboard-user {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 6px;
    }

    .weirdo-leaderboard-user img {
        width: 28px;
        height: 28px;
    }

    .weirdo-leaderboard-user a {
        max-width: 100%;
        font-size: var(--w2w-fs-xs);
    }

    .weirdo-leaderboard-user small {
        font-size: var(--w2w-fs-xs);
    }

    .weirdo-leaderboard-exp {
        font-size: var(--w2w-fs-xs) !important;
        white-space: nowrap;
    }
}
