.index-page{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:18px 20px 110px 20px;
    box-sizing:border-box;
}

/* MAIN GRID */

.home-layout{
    display:grid;
    grid-template-columns:200px minmax(0, 1fr) 190px;
    gap:20px;
    align-items:start;
}

/* LEFT SIDEBAR */

.left-sidebar{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.categories-title-box{
    border:1px solid rgba(255,255,255,0.20);
    border-radius:10px;
    background:#2F3040;
    box-shadow:0 8px 20px rgba(0,0,0,0.16);
    padding:14px 12px;
    text-align:center;
}

.categories-title-box h2{
    margin:0;
    color:#ffffff;
    font-size:22px;
    font-weight:800;
    line-height:1.2;
}

.categories-list-box{
    border:1px solid rgba(255,255,255,0.20);
    border-radius:10px;
    background:#2F3040;
    box-shadow:0 8px 20px rgba(0,0,0,0.16);
    padding:18px 16px;
    min-height:620px;
    box-sizing:border-box;
}

.categories-list{
    list-style:none;
    margin:0;
    padding:0;
}

.categories-list li{
    border-bottom:1px solid rgba(255,255,255,0.10);
}

.categories-list li:last-child{
    border-bottom:none;
}

.categories-list li a{
    display:block;
    padding:10px 0;
    color:#ffffff;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    word-break:break-word;
    overflow-wrap:anywhere;
    transition:all .2s ease;
}

.categories-list li a:hover{
    color:#ffd22d;
    padding-left:6px;
}

/* CENTER AREA */

.center-content{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.toplist-header-box{
    width:770px;
    max-width:100%;
    margin:0 auto;
    padding:18px 20px;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:12px;
    background:#2F3040;
    box-shadow:0 8px 22px rgba(0,0,0,0.16);
    text-align:center;
    box-sizing:border-box;
}

.toplist-header-title{
    margin:0;
    color:#ffffff;
    font-size:20px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:0.01em;
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.toplist-header-copy{
    margin:8px auto 0;
    max-width:680px;
    color:#d8e6ff;
    font-size:13px;
    font-weight:500;
    line-height:1.45;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.toplist-header-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
    color:#d8e6ff;
    font-size:13px;
    font-weight:700;
    line-height:1.4;
}

/* HEADER SPONSOR AREA */

.header-sponsor-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.header-sponsor-stack:empty{
    display:none;
}

.header-sponsor-box{
    width:100%;
    max-width:728px;
    height:90px;
    margin:0 auto;
    border:1px solid rgba(255,255,255,0.20);
    border-radius:10px;
    overflow:hidden;
    background:#2F3040;
    box-shadow:0 8px 20px rgba(0,0,0,0.16);
    box-sizing:border-box;
}

.header-sponsor-box a{
    display:block;
    width:100%;
    height:100%;
}

.header-sponsor-box img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

/* TOPLIST WRAPPER */

.toplist-wrapper{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
}

/* TOPLIST CARD */

.toplist-card{
    width:770px;
    min-height:200px;
    display:flex;
    align-items:center;
    gap:20px;
    padding:14px 18px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.12);
    background:#35364d;
    box-shadow:0 8px 24px rgba(0,0,0,0.18);
    overflow:hidden;
    box-sizing:border-box;
}

/* LEFT RANK */

.toplist-rank-column{
    width:60px;
    min-width:60px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
}

.toplist-rank-circle{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffd32e;
    font-size:22px;
    font-weight:900;
    line-height:1;
    background:rgba(98, 97, 150, 0.45);
    border:1px solid rgba(255,255,255,0.16);
    border-radius:999px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
}

.toplist-details-link{
    display:none;
}

/* MAIN CONTENT */

.toplist-main-column{
    flex:1 1 auto;
    min-width:0;
    padding-top:0;
    box-sizing:border-box;
}

.toplist-banner-box{
    width:468px;
    height:60px;
    margin-bottom:10px;
    border:2px solid #151515;
    overflow:hidden;
    box-sizing:border-box;
}

.toplist-banner-box a{
    display:block;
    width:100%;
    height:100%;
}

.toplist-banner-box img{
    width:468px;
    height:60px;
    display:block;
    object-fit:cover;
}

.toplist-title{
    margin:0 0 8px 0;
    font-size:18px;
    font-weight:800;
    line-height:1.2;
}

.toplist-title a{
    color:#ffd22d;
    text-decoration:none;
}

.toplist-title a:hover{
    text-decoration:underline;
}

.toplist-description-box{
    width:100%;
    max-width:560px;
    background:transparent;
    border:none;
    border-radius:0;
    box-shadow:none;
    padding:0;
    box-sizing:border-box;
}

.toplist-description{
    margin:0;
    color:#ffffff;
    font-size:16px;
    line-height:1.6;
    word-break:break-word;
    overflow-wrap:anywhere;
}

/* RIGHT VOTES */

.toplist-votes-column{
    width:132px;
    min-width:132px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:10px 0;
    margin-left:8px;
    box-sizing:border-box;
}

.vote-badge{
    width:60px;
    height:60px;
    display:block;
    object-fit:contain;
    margin:0 0 10px 0;
}

.toplist-votes-label{
    width:100%;
    margin:0 0 6px 0;
    color:#ffffff;
    font-size:18px;
    font-weight:900;
    line-height:1;
    text-align:center;
    font-family:"Trebuchet MS", Arial, sans-serif;
}

.toplist-votes-count{
    width:100%;
    margin:0 0 10px 0;
    color:#ffd22d;
    font-size:16px;
    font-weight:900;
    line-height:1.1;
    text-align:center;
}

/* RIGHT SIDEBAR */

.right-sidebar{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.right-sponsor-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.right-sponsor-stack:empty{
    display:none;
}

.right-sponsor-box{
    width:160px;
    height:600px;
    margin:0 auto;
    border:1px solid rgba(255,255,255,0.20);
    border-radius:10px;
    overflow:hidden;
    background:linear-gradient(180deg, rgba(47,75,108,0.95) 0%, rgba(37,61,92,0.97) 100%);
    box-shadow:0 8px 20px rgba(0,0,0,0.16);
    box-sizing:border-box;
}

.right-sponsor-box a{
    display:block;
    width:100%;
    height:100%;
}

.right-sponsor-box img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

/* EMPTY */

.empty-box{
    width:770px;
    padding:30px 20px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.12);
    background:#35364d;
    color:#ffffff;
    font-size:18px;
    font-weight:700;
    text-align:center;
    box-sizing:border-box;
}

/* RESPONSIVE */

@media screen and (max-width:1300px){
    .home-layout{
        grid-template-columns:200px minmax(0, 1fr);
    }

    .right-sidebar{
        grid-column:1 / -1;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
    }

    .right-sponsor-stack{
        width:100%;
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
    }

    .right-sponsor-box{
        margin:0;
    }
}


@media screen and (max-width:980px){
    .home-layout{
        grid-template-columns:1fr;
    }

    .left-sidebar,
    .right-sidebar{
        width:100%;
    }

    .categories-list-box{
        min-height:auto;
    }

    .right-sponsor-stack{
        flex-direction:column;
        align-items:center;
    }
}

@media screen and (max-width:860px){
    .index-page{
        padding:16px 12px 90px 12px;
    }


    .toplist-card{
        width:100%;
        min-height:auto;
        flex-direction:column;
        align-items:flex-start;
    }

    .toplist-header-box,
    .empty-box{
        width:100%;
    }

    .toplist-rank-column,
    .toplist-main-column,
    .toplist-votes-column{
        width:100%;
        min-width:100%;
        padding-top:0;
        padding-right:0;
        align-items:center;
        text-align:center;
    }

    .toplist-main-column{
        text-align:center;
    }

    .toplist-banner-box{
        width:100%;
        max-width:468px;
        margin-left:auto;
        margin-right:auto;
    }

    .toplist-banner-box img{
        width:100%;
        height:60px;
    }

    .toplist-description-box{
        max-width:100%;
    }

    .vote-badge{
        margin:0 0 8px 0;
    }

    .toplist-header-title{
        font-size:24px;
    }
}



.toplist-vote-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:90px;
    min-height:38px;
    margin-top:12px;
    margin-right:0;
    border-radius:10px;
    text-decoration:none;
    background:linear-gradient(180deg, #ffe070 0%, #ffd22d 55%, #f0c21b 100%);
    color:#1a1a1a;
    font-size:13px;
    font-weight:900;
    box-shadow:0 8px 18px rgba(255,210,45,0.18);
}

.toplist-vote-button:hover{
    transform:translateY(-1px);
}


.toplist-vote-button.is-disabled{
    background: linear-gradient(180deg, #8b8b8b 0%, #6f6f6f 100%);
    color: #efefef;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.vote-success-banner{
    max-width: 1460px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(98, 140, 92, 0.92);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.vsro-pagination{
    width:min(420px, 100%);
    margin:4px auto 0;
    padding:10px 12px;
    border:1px solid rgba(255,210,45,0.42);
    border-radius:12px;
    background:linear-gradient(180deg, rgba(50,39,5,0.95) 0%, rgba(36,28,4,0.98) 100%);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    box-sizing:border-box;
    box-shadow:0 10px 20px rgba(0,0,0,0.18);
}

.vsro-pagination-btn,
.vsro-pagination-mini{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 14px;
    border-radius:10px;
    border:1px solid rgba(255,210,45,0.38);
    background:linear-gradient(180deg, #ffe070 0%, #ffd22d 55%, #f0c21b 100%);
    color:#1a1a1a;
    text-decoration:none;
    font-size:12px;
    font-weight:900;
}

.vsro-pagination-btn.is-disabled{
    pointer-events:none;
    opacity:.45;
}

.vsro-pagination-status{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    color:#ffe59d;
    font-size:13px;
    font-weight:800;
    text-align:center;
}

.vsro-pagination-mini{min-height:32px;padding:0 12px;font-size:11px;}


@media (max-width: 768px){
    .toplist-header-box{
        padding:16px 14px;
    }

    .toplist-header-title{
        font-size:17px;
    }

    .toplist-header-copy{
        font-size:12px;
    }

    .toplist-header-links{
        font-size:12px;
        gap:6px;
    }
}
