/*
 * Sidebar widgets (inc/widgets.php): the Popular tabs, rank numbers and
 * scores. Lists reuse the .widgetseries / .genre styles of style.css.
 */

/* Weekly / Monthly / All */
.sh-wtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    padding: 3px;
    border-radius: 4px;
    background-color: #ffffff0d;
}

.sh-wtabs button {
    flex: 1;
    padding: 6px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.sh-wtabs button:hover {
    color: #fff;
}

.sh-wtabs button.is-active {
    background-color: var(--color-brand-primary);
    color: #fff;
}

/* Ranked rows */
.widgets .widgetseries li.sh-ranked {
    align-items: center;
}

.sh-rank {
    flex-shrink: 0;
    width: 24px;
    color: #777;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.sh-rank.is-top {
    color: var(--color-brand-primary);
}

.widgets .widgetseries .lftinfo span.sh-wscore {
    color: #f5c518;
    font-weight: 600;
}

/* Genre widget: wrap like a tag cloud */
.widgets ul.genre {
    margin: 0;
    padding: 0;
    list-style: none;
}
