.sidebar-block {
    margin-bottom: 38px;
}

.sidebar-title {
    margin: 0 0 14px;
    padding-bottom: 13px;
    font-size: 18px;
    font-weight: 700;
    color: #1b1b1b;
    background:
        linear-gradient(to right, var(--teal) 0 95px, #e6e6e6 95px 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
    margin-top: 12px;
}

.tag-grid a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-grid a:hover {
    color: #fff;
    border-color: var(--teal);
    background: var(--teal);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
}

.rank-list li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-bottom: 14px;
}

.rank-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    background: #97a8b3;
}

.rank-list li:nth-child(1) .rank-list__badge {
    background: #ff5a5a;
}

.rank-list li:nth-child(2) .rank-list__badge {
    background: #ff8757;
}

.rank-list li:nth-child(3) .rank-list__badge {
    background: #f3b44a;
}

.rank-list a {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #242424;
}

.rank-list a.is-hot {
    color: #ff2222;
}

@media (max-width: 820px) {
    .tag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tag-grid {
        grid-template-columns: 1fr;
    }
}
