/* Add your styles. Minimal baseline so HTML matches your sample. */
#toplist-container { display: grid; gap: 16px; }
.toplist-item { display: grid; grid-template-columns: 80px 120px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #eee; border-radius: 10px; }
.toplist-rank { font-size: 24px; font-weight: 700; }
.toplist-rank.rank-1 .crown { margin-right: 6px; }
.toplist-logo img { max-width: 120px; height: auto; display: block; }
.toplist-text h2 { margin: 0 0 6px; font-size: 20px; }
.toplist-rating { white-space: pre-line; font-weight: 600; }
.toplist-btn a { display: inline-block; padding: 8px 14px; border-radius: 8px; text-decoration: none; margin-right: 8px; }
.toplist-btn .btn-play { background:#111; color:#fff !important; }
.toplist-btn .btn-more { background:#f3f3f3; color:#333; }


#banner-wrapper { display:flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#banner-wrapper .banner-gif-item img { display:block; height:auto; max-width:100%; }
#banner-wrapper .box_right { float: right;width: 23%; }
#banner-wrapper .box_left { float: left;width: 23%; }
#banner-wrapper .middle { width: 50%; }


.toplist-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #2e0030;
    border: 2px solid #ffd804;
    border-radius: 8px;
    padding: 12px 35px 12px 45px;
    margin-bottom: 16px;
    gap: 12px;
}
.toplist-rank {
    position: absolute;
    top: 12px;
    left: -10px;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.toplist-rank.rank-1 {
    background: linear-gradient(135deg, #ffd804, #ff63d8, #ff3d94);
    animation: pulseGlow 1.5s infinite;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.toplist-rank.rank-2 {
    background: linear-gradient(135deg, #8a4fff, #4f34ff);
}
.toplist-rank.rank-default {
    background: linear-gradient(135deg, #6a6aff, #3f3fff);
}
.toplist-rank.rank-1 .crown {
    font-size: 14px;
}
.toplist-logo img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}
.toplist-text {
    text-align: center;
    flex: 1;
}
.toplist-text h2 {
    font-size: 28px;
    color: #ffd804;
    margin: 0 0 4px;
}
.toplist-text p {
    font-size: 14px;
    color: #fff;
    margin: 0;
}
.toplist-rating {
    color: #ffd804;
    text-align: center;
    font-size: 14px;
}
.toplist-btn a {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 2px solid #ffd804;
    color: #000 !important;
    background: #ffd804;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background .3s, color .3s, transform .3s;
}
@media screen and (max-width: 640px) {
    .toplist-item{
        padding: 3px 8px 3px 5px !important;
    }
    .toplist-rating {
        position: absolute;
        top: 40px;

    }
    .toplist-btn {
        width: 30%;
    }
    .btn-more {
        font-size: 14px !important;
		margin-top:10px;
    }
	.toplist-logo {
		margin-top: 20px;
	}
	#banner-wrapper .box_right { float: right;width: 20%; }
	#banner-wrapper .box_left { float: left;width: 20%; }
	#banner-wrapper .middle { width: 50%; }
}