/**
 * 分类页 genre-filter 结构（全站基础见 theme-default.css）
 */
#f2 .genre-filter-panel {
    margin-bottom: 6px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

#f2 .genre-filter-panel--cate {
    border-left: none;
}

#f2 .genre-filter-head {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#f2 .genre-filter-label {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: normal;
    color: #999;
    letter-spacing: 0;
}

#f2 .genre-filter-label::before {
    display: none;
}

#f2 .genre-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#f2 .genre-filter-chips li {
    float: none;
    margin: 0;
    padding: 0;
    white-space: normal;
}

#f2 .genre-chip {
    display: inline-block;
    padding: 3px 8px;
    line-height: 1.35;
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    max-width: 100%;
    word-break: break-word;
    box-sizing: border-box;
}

#f2 .genre-chip:hover {
    color: #d1cfcf;
    background: none;
    border: none;
    text-decoration: none;
}

#f2 .genre-chip.is-active,
#f2 .genre-filter-chips .flon .genre-chip,
#f2 .genre-filter-chips .flon a {
    color: #fff !important;
    background: var(--primary-color, #db1d40) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#f2 .genre-filter-chips .flof a:not(.genre-chip) {
    display: inline-block;
    padding: 3px 8px;
    line-height: 1.35;
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
}

#f2 .genre-filter-chips .flon {
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
}

#f2 .genre-filter-chips .flof {
    float: none;
    margin: 0;
    padding: 0;
}

/* 兼容未改完的 list_fenlei 结构 */
#f2 .list_fenlei.genre-filter-legacy .list_tr {
    width: auto;
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

#f2 .list_fenlei.genre-filter-legacy .list_tl {
    float: none;
    width: auto;
    text-indent: 0;
    background: none;
    margin: 0 0 10px 0;
    padding: 0;
    font-weight: 600;
    color: #e8e8e8;
}

/* 分类页 / 独家页：标签与分类同一行，紧凑不换行 */
#f2 .genre-filter-compact .genre-filter-panel {
    display: flex;
    align-items: flex-start;
    gap: 0 10px;
    margin-bottom: 6px;
    padding: 4px 0 6px;
}

#f2 .genre-filter-compact .genre-filter-panel--cate {
    flex-wrap: wrap;
}

#f2 .genre-filter-compact .genre-filter-head {
    flex: 0 0 34px;
    margin: 0;
    padding: 4px 0 0;
    border-bottom: none;
}

#f2 .genre-filter-compact .genre-filter-label {
    font-size: 12px;
    white-space: nowrap;
}

#f2 .genre-filter-compact .genre-filter-label::before {
    display: none;
}

#f2 .genre-filter-compact .genre-filter-panel:not(.genre-filter-panel--cate) .genre-filter-chips {
    flex: 1;
    min-width: 0;
    gap: 5px 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

#f2 .genre-filter-compact .genre-filter-panel--cate .genre-filter-chips {
    flex: 1;
    min-width: 0;
    gap: 5px 6px;
    flex-wrap: wrap;
    overflow: visible;
}

#f2 .genre-filter-compact .genre-filter-panel:not(.genre-filter-panel--cate) .genre-filter-chips li {
    white-space: nowrap;
}

#f2 .genre-filter-compact .genre-filter-panel--cate .genre-filter-chips li {
    white-space: normal;
}

#f2 .genre-filter-compact .genre-filter-panel:not(.genre-filter-panel--cate) .genre-chip {
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    word-break: keep-all;
}

#f2 .genre-filter-compact .genre-filter-panel--cate .genre-chip {
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

#f2.genre-list-page #hothaomenu,
#f2.page-ranks-sole #hothaomenu {
    margin-bottom: 10px;
}

#f2 .list_musiclist {
    font-size: 12px;
}

#f2 .rank-side-empty {
    margin: 8px 4px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

#f2 .h8 {
    height: 8px;
    clear: both;
}

@media screen and (max-width: 991px) {
    #f2 .genre-filter-panel {
        padding: 0;
    }

    #f2 .genre-chip {
        padding: 3px 8px;
        font-size: 11px;
    }

    #f2 .genre-filter-compact .genre-filter-panel {
        flex-wrap: wrap;
    }

    #f2 .genre-filter-compact .genre-filter-head {
        flex: 0 0 100%;
        margin-bottom: 4px;
        padding-bottom: 0;
        border-bottom: none;
    }
}
