.wrapper.rt-logged-out #header .topbar-item.nav-user {
    display: none !important;
}

.rt-page,
.rt-page * {
    box-sizing: border-box;
}

.rt-page {
    position: relative;
    min-height: 100vh;
    padding-top: 24px;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(7, 8, 18, 0.72), rgba(7, 8, 18, 0.85)),
        url("../assets/images/website_background.png") center top / cover no-repeat;
}

.rt-toplistShell {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 24px 14px 60px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 14px;
    align-items: start;
}

.rt-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 10;
}

/* Side adverts */
.rt-sideAd {
    position: relative !important;
    top: auto !important;
    width: 160px !important;
    min-width: 160px !important;
    height: 600px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.rt-sideAdBox {
    width: 160px !important;
    height: 600px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: rgba(7, 10, 24, 0.86) !important;
    border: 1px solid rgba(255, 191, 0, 0.62) !important;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 16px rgba(255, 191, 0, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rt-sideAdBox a,
.rt-defaultSideAd {
    width: 160px !important;
    height: 600px !important;
    display: block !important;
}

.rt-sideAdBox img,
.rt-defaultSideAd img {
    width: 160px !important;
    height: 600px !important;
    max-width: 160px !important;
    display: block !important;
    object-fit: contain !important;
    border-radius: 14px !important;
}

.rt-adwrap {
    margin: 10px auto 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rt-adwrap img,
.rt-adwrap iframe,
.rt-adwrap video,
.rt-adwrap > * {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.rt-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Main server card */
.rt-card {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 132px;
    grid-template-areas:
        "rank main cta"
        "rank banner cta";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
    padding: 16px;
    margin: 0 auto;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(18, 22, 44, 0.82), rgba(14, 11, 34, 0.76)),
        radial-gradient(circle at 88% 35%, rgba(160, 32, 240, 0.18), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.rt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 35%, rgba(160, 32, 240, 0.1)),
        radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.05), transparent 26%);
    pointer-events: none;
}

.rt-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -110px;
    top: -100px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(160, 32, 240, 0.2), transparent 62%);
    pointer-events: none;
}

.rt-card:hover {
    transform: translateY(-1px);
    border-color: rgba(160, 32, 240, 0.3);
    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.rt-card,
.rt-btn,
.rt-banner,
.rt-icon,
.rt-rankBox {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

/* Rank */
.rt-rankCol {
    grid-area: rank;
    min-width: 0;
}

.rt-rankBox {
    min-height: 116px;
    border-radius: 18px;
    padding: 16px 10px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(9, 10, 24, 0.82), rgba(8, 8, 18, 0.62));
    border: 1px solid rgba(255, 255, 255, 0.105);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 14px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rt-rankTop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 10px;
}

.rt-rankNum {
    font-weight: 950;
    font-size: 21px;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1;
}

.rt-votes {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.68);
}

.rt-trophy {
    display: inline-flex;
    width: 19px;
    height: 19px;
}

.rt-trophy svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.rt-trophy--gold {
    color: #ffd86b;
    filter: drop-shadow(0 0 12px rgba(255, 216, 107, 0.26));
}

.rt-trophy--silver {
    color: #d7dbe2;
}

.rt-trophy--bronze {
    color: #d9a27a;
}

/* Server info */
.rt-mainCol {
    grid-area: main;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.rt-iconLink {
    flex: 0 0 auto;
    display: inline-flex;
    text-decoration: none !important;
}

.rt-icon {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.38),
        0 0 0 3px rgba(255, 255, 255, 0.035);
}

.rt-card:hover .rt-icon {
    transform: scale(1.025);
}

.rt-meta {
    min-width: 0;
    width: 100%;
}

.rt-titleRow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rt-title {
    font-weight: 950;
    font-size: 22px;
    color: #fff !important;
    letter-spacing: -0.15px;
    line-height: 1.1;
    text-decoration: none !important;
    word-break: break-word;
}

.rt-title:hover {
    color: #ffffff !important;
    text-shadow: 0 0 16px rgba(160, 32, 240, 0.34);
}

.rt-desc {
    margin-top: 7px;
    max-width: 470px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rt-tags,
.rt-ptags {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rt-tag,
.rt-ptag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    white-space: nowrap;
}

.rt-tag {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.88);
}

.rt-ptag {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.28);
    color: rgba(255, 215, 0, 0.96);
}

/* Banner */
.rt-bannerCol {
    grid-area: banner;
    min-width: 0;
    display: flex;
    align-items: center;
}

.rt-bannerCol a {
    width: 468px;
    max-width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 13px;
    text-decoration: none !important;
}

.rt-banner {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 468 / 60;
    max-height: 54px;
    display: block;
    object-fit: cover !important;
    object-position: center;
    padding: 0 !important;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(0, 0, 0, 0.3);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.rt-banner--contain {
    object-fit: cover !important;
    padding: 0 !important;
}

.rt-banner--fallback {
    object-fit: contain !important;
    padding: 9px !important;
    background: rgba(0, 0, 0, 0.36);
}

.rt-card:hover .rt-banner {
    filter: brightness(1.06) saturate(1.06);
    border-color: rgba(255, 255, 255, 0.16);
}

/* CTA button */
.rt-ctaCol {
    grid-area: cta;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rt-btn {
    width: 100%;
    max-width: 132px;
    min-width: 118px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.28px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #fff !important;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.rt-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.rt-btn--purple {
    background:
        linear-gradient(180deg, rgba(181, 39, 255, 0.98), rgba(111, 11, 204, 0.98)),
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.2), transparent 36%);
}

.rt-btn--gold {
    background:
        linear-gradient(135deg, #ffe083, #ffbf00, #ffe083);
    border-color: rgba(255, 215, 0, 0.42);
    color: #2e1f00 !important;
}

/* Badges */
.rt-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 23px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.92);
}

.rt-badge--vip {
    background: rgba(255, 215, 0, 0.13);
    border-color: rgba(255, 215, 0, 0.3);
    color: rgba(255, 215, 0, 0.96);
}

.rt-badge--sotm {
    background: rgba(160, 32, 240, 0.16);
    border-color: rgba(160, 32, 240, 0.32);
}

.rt-vipIcon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: rgba(255, 215, 0, 0.95);
    filter: drop-shadow(0 0 9px rgba(255, 215, 0, 0.22));
}

.rt-vipIcon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* VIP and SOTM styling */
.rt-row--vip {
    background:
        linear-gradient(135deg, rgba(38, 28, 6, 0.82), rgba(18, 14, 6, 0.76)),
        radial-gradient(circle at 86% 35%, rgba(255, 215, 0, 0.14), transparent 36%);
    border-color: rgba(255, 215, 0, 0.24);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.48),
        inset 0 0 20px rgba(255, 215, 0, 0.07);
}

.rt-rankBox--vip {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.24);
}

.rt-icon--vip {
    border-color: rgba(255, 215, 0, 0.32);
    box-shadow:
        0 0 18px rgba(255, 215, 0, 0.16),
        0 14px 28px rgba(0, 0, 0, 0.42);
}

.rt-sotm {
    margin-bottom: 16px;
    border-color: rgba(160, 32, 240, 0.4);
    background:
        linear-gradient(135deg, rgba(22, 22, 50, 0.86), rgba(18, 10, 42, 0.8)),
        radial-gradient(circle at 90% 35%, rgba(160, 32, 240, 0.24), transparent 36%);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.54),
        inset 0 0 22px rgba(160, 32, 240, 0.11);
}

.rt-rankBox--sotm {
    background: rgba(160, 32, 240, 0.12);
    border-color: rgba(160, 32, 240, 0.38);
}

.rt-sotmMark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 9px;
}

.rt-sotmIcon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: rgba(189, 79, 255, 0.98);
    filter: drop-shadow(0 0 12px rgba(160, 32, 240, 0.38));
    animation: rtPulse 2.2s ease-in-out infinite;
}

@keyframes rtPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.95;
    }

    50% {
        transform: translateY(-1px);
        opacity: 1;
    }
}

.rt-sotmIcon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.rt-sotmText {
    font-weight: 950;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.96);
}

.rt-icon--sotm {
    border-color: rgba(160, 32, 240, 0.56);
    box-shadow:
        0 0 0 3px rgba(160, 32, 240, 0.12),
        0 14px 28px rgba(0, 0, 0, 0.42);
}

/* Keep side ads visible on desktop, hide only when it gets tight */
@media (max-width: 1180px) {
    .rt-toplistShell {
        display: block;
        max-width: 980px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .rt-sideAd {
        display: none !important;
    }

    .rt-container {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .rt-card {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-areas:
            "rank main"
            "banner banner"
            "cta cta";
        min-height: 0;
    }

    .rt-ctaCol {
        justify-content: flex-start;
        align-self: auto;
    }

    .rt-btn {
        width: auto;
        max-width: none;
        min-width: 160px;
    }

    .rt-bannerCol a {
        width: min(100%, 420px);
    }

    .rt-banner {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .rt-toplistShell {
        padding: 16px 12px 50px;
    }

    .rt-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "rank"
            "main"
            "banner"
            "cta";
        gap: 14px;
        padding: 15px;
        border-radius: 20px;
    }

    .rt-rankCol {
        width: 100%;
    }

    .rt-rankBox {
        min-height: auto;
        padding: 14px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .rt-rankTop {
        margin-bottom: 0;
    }

    .rt-mainCol {
        align-items: center;
    }

    .rt-icon {
        width: 64px;
        height: 64px;
    }

    .rt-title {
        font-size: 21px;
    }

    .rt-desc {
        -webkit-line-clamp: 3;
    }

    .rt-bannerCol a {
        width: 100%;
    }

    .rt-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .rt-mainCol {
        flex-direction: column;
        align-items: flex-start;
    }

    .rt-rankBox {
        flex-direction: column;
        align-items: flex-start;
    }

    .rt-rankTop {
        justify-content: flex-start;
    }
}