.top10-sidebar-widget {
    --top10-red-dark: #c03933;
    --top10-red-light: #da463c;
    --top10-blue-dark: #2e6385;
    --top10-yellow-dark: #d9ac45;
    --top10-orange-dark: #e06e38;
    --top10-green-dark: #4b7f4f;
    --top10-green-light: #719d52;
    --top10-border: rgba(0, 0, 0, 0.08);
    --top10-bg: #f7f9fc;
    --top10-card: #ffffff;
    --top10-text: #1a2230;
    margin: 0 0 1.2rem;
    padding: 0.8rem;
    border: 2px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(180deg, var(--top10-green-dark), var(--top10-blue-dark), var(--top10-yellow-dark), var(--top10-orange-dark), var(--top10-red-dark)) border-box;
    box-shadow: 0 8px 22px -16px rgba(0, 0, 0, 0.2);
    color: var(--top10-text);
}

.top10-sidebar-heading {
    margin: -0.8rem -0.8rem 0.55rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff !important;
    background: var(--top10-green-dark);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.top10-sidebar-list + .top10-sidebar-list {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #cfd7e1;
}

.top10-sidebar-list-title {
    margin: 0 0 0.6rem;
    font-size: 0.88rem;
    line-height: 1.25;
    color: #1f2d3f;
    font-weight: 700;
}

.top10-sidebar-items {
    margin: 0 -0.8rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
}

.top10-sidebar-item {
    display: block;
}

.top10-sidebar-item:not(:last-child) {
    border-bottom: 1px solid #e3e7ee;
}

.top10-sidebar-row-link {
    display: grid;
    grid-template-columns: 28px 1fr;
    padding: 1.5rem 0.75rem;
    gap: 0.45rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: background-color .18s ease;
}

.top10-sidebar-row-link,
.top10-sidebar-row-link:hover,
.top10-sidebar-row-link:focus,
.top10-sidebar-row-link:active {
    text-decoration: none !important;
    color: inherit;
}

.top10-sidebar-widget .top10-sidebar-row-link *,
.top10-sidebar-widget .top10-sidebar-title {
    text-decoration: none !important;
}

.top10-sidebar-row-link:hover,
.top10-sidebar-row-link:focus-visible {
    background: #f1f3f5;
}

.top10-sidebar-rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--top10-rank-color, var(--top10-green-dark));
    color: #fff;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 12px -8px rgba(26, 34, 48, 0.35);
}

.top10-sidebar-items .top10-sidebar-item:nth-child(1) .top10-sidebar-rank { --top10-rank-color: #4b7f4f; }
.top10-sidebar-items .top10-sidebar-item:nth-child(2) .top10-sidebar-rank { --top10-rank-color: #3d716a; }
.top10-sidebar-items .top10-sidebar-item:nth-child(3) .top10-sidebar-rank { --top10-rank-color: #2e6385; }
.top10-sidebar-items .top10-sidebar-item:nth-child(4) .top10-sidebar-rank { --top10-rank-color: #858865; }
.top10-sidebar-items .top10-sidebar-item:nth-child(5) .top10-sidebar-rank { --top10-rank-color: #d9ac45; }
.top10-sidebar-items .top10-sidebar-item:nth-child(6) .top10-sidebar-rank { --top10-rank-color: #dc8d3f; }
.top10-sidebar-items .top10-sidebar-item:nth-child(7) .top10-sidebar-rank { --top10-rank-color: #e06e38; }
.top10-sidebar-items .top10-sidebar-item:nth-child(8) .top10-sidebar-rank { --top10-rank-color: #d55c36; }
.top10-sidebar-items .top10-sidebar-item:nth-child(9) .top10-sidebar-rank { --top10-rank-color: #ca4b35; }
.top10-sidebar-items .top10-sidebar-item:nth-child(10) .top10-sidebar-rank { --top10-rank-color: #c03933; }

.top10-sidebar-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.top10-sidebar-thumb {
    display: block;
    width: 46px;
    height: 46px;
}

.top10-sidebar-thumb img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--top10-border);
    object-fit: contain;
    background: #fff;
}

.top10-sidebar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    min-width: 0;
}

.top10-sidebar-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0 0 0.26rem;
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 700;
    color: #1f2d3f;
    text-decoration: none;
    width: 100%;
}

.top10-sidebar-title:hover {
    color: #2b6aa8;
}

.top10-sidebar-stat {
    margin: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    line-height: 1.2;
    color: #44576c;
}

.top10-sidebar-stat strong {
    color: #1a2230;
    font-weight: 700;
}

.top10-sidebar-prime {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.top10-sidebar-prime.is-prime {
    background: transparent;
    color: #3b74a1;
}

.top10-sidebar-prime.is-prime::before {
    content: "\2713";
    margin-right: 0.25em;
}

.top10-sidebar-prime.not-prime {
    display: none;
}

@media (max-width: 1200px) {
    .top10-sidebar-row-link {
        grid-template-columns: 24px 1fr;
    }

    .top10-sidebar-rank {
        width: 24px;
        height: 24px;
        font-size: 0.66rem;
    }

    .top10-sidebar-card {
        grid-template-columns: 40px 1fr;
        gap: 0.4rem;
    }

    .top10-sidebar-thumb,
    .top10-sidebar-thumb img {
        width: 40px;
        height: 40px;
    }
}