/**
 * 分类列表页 — 紫色扁平布局
 */
.dj-genre-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem 2rem;
    overflow: visible;
}

.dj-genre-page > .row.g-3 {
    overflow: visible;
}

.dj-genre-page .dj-breadcrumb {
    font-size: 13px;
    color: var(--dj-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: normal;
}

.dj-genre-page .dj-breadcrumb a {
    color: var(--dj-primary);
    display: inline;
    white-space: nowrap;
}

.dj-genre-page .dj-breadcrumb a.dj-tip,
.dj-genre-page .dj-breadcrumb a.tooltip {
    display: inline !important;
}

.dj-genre-filter-card {
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius-lg);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.dj-genre-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dj-border);
}

.dj-genre-filter-row:last-child {
    border-bottom: none;
}

.dj-genre-filter-label {
    flex: 0 0 52px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dj-text-muted);
    padding-top: 0.35rem;
}

.dj-genre-filter-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.dj-genre-filter-chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.dj-genre-chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 12px;
    line-height: 1.4;
    color: var(--dj-text-muted);
    background: var(--dj-surface-2);
    border: 1px solid var(--dj-border);
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dj-genre-chip:hover {
    color: var(--dj-primary);
    border-color: var(--dj-primary-muted);
    background: var(--dj-primary-soft);
}

.dj-genre-chip.is-active {
    color: #fff;
    background: var(--dj-primary);
    border-color: var(--dj-primary);
}

.dj-genre-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.dj-genre-sort a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 12px;
    color: var(--dj-text-muted);
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: 6px;
    text-decoration: none;
}

.dj-genre-sort a:hover {
    color: var(--dj-primary);
    border-color: var(--dj-primary);
}

.dj-genre-sort a.is-active {
    color: #fff;
    background: var(--dj-primary);
    border-color: var(--dj-primary);
}

.dj-genre-table-wrap {
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.dj-genre-table {
    width: 100%;
    margin: 0;
    font-size: 13px;
    color: var(--dj-text);
    table-layout: fixed;
}

.dj-genre-table tbody td:nth-child(3) {
    overflow: hidden;
    max-width: 0;
}

.dj-genre-table thead th {
    background: var(--dj-surface-2);
    color: var(--dj-text-muted);
    font-weight: 600;
    font-size: 12px;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--dj-border);
    white-space: nowrap;
}

.dj-genre-table tbody td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--dj-border);
    vertical-align: middle;
}

.dj-genre-table tbody tr:hover td {
    background: var(--dj-primary-soft);
}

.dj-genre-table tbody tr:last-child td {
    border-bottom: none;
}

.dj-genre-song-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dj-genre-song-cell .list_play_img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dj-genre-song-cell .list_play_img a {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
}

.dj-genre-song-cell .list_play_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dj-genre-song-cell .list_play_img .play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(91, 33, 182, 0.45);
    opacity: 0;
    transition: opacity 0.15s;
}

.dj-genre-song-cell:hover .play-icon {
    opacity: 1;
}

.dj-genre-song-meta {
    min-width: 0;
    flex: 1;
}

.dj-genre-song-meta .t1 {
    margin: 0 0 0.2rem;
    font-size: 14px;
    overflow: hidden;
    min-width: 0;
}

.dj-genre-song-meta .t1 a {
    color: var(--dj-text);
    font-weight: 500;
    opacity: 1 !important;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.dj-genre-song-meta .t2 {
    margin: 0;
    font-size: 11px;
    color: var(--dj-text-muted);
}

.dj-genre-song-meta .t2 span {
    margin-right: 0.5rem;
}

.dj-genre-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--dj-surface-2);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius);
    margin-bottom: 1rem;
}

.dj-genre-toolbar .playall,
.dj-genre-toolbar .addall {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 13px;
    color: #fff;
    background: var(--dj-primary);
    border-radius: 6px;
    cursor: pointer;
}

.dj-genre-toolbar .addall {
    background: var(--dj-surface);
    color: var(--dj-primary);
    border: 1px solid var(--dj-primary);
}

.dj-genre-sidebar .dj-card-side {
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius-lg);
    padding: 0.85rem;
    margin-bottom: 1rem;
}

.dj-genre-sidebar .dj-sidebar-slider-slot:not(:has(.dj-mix-slider)),
.dj-genre-sidebar .dj-sidebar-slider-slot.is-empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
}

/* 右侧栏 sticky（与 dj93 .mainRight 相同：sticky 在列本身） */
@media (min-width: 992px) {
    .dj-genre-page > .row.g-3 {
        align-items: stretch;
    }

    .dj-genre-page .dj-genre-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 15px;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
        overflow: visible;
    }

    .dj-genre-page .dj-genre-sidebar > .dj-card-side {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
}

.dj-genre-sidebar .dj-sidebar-slider-slot {
    padding: 0;
    overflow: hidden;
}

.dj-genre-sidebar .dj-sidebar-slider-slot .dj-mix-slider,
.dj-genre-sidebar .dj-sidebar-slider-slot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--dj-radius-lg);
}

.dj-genre-sidebar .dj-genre-rank-card {
    padding: 0;
    overflow: hidden;
}

.dj-genre-sidebar .index-rank-title {
    font-weight: 600;
    color: var(--dj-text);
    border-bottom: 1px solid var(--dj-border);
    padding: 16px 14px;
    margin-bottom: 0;
}

.dj-genre-sidebar .index-rank-title span {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.dj-genre-sidebar .index-rank-title p {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--dj-text-muted);
    font-weight: normal;
    line-height: 1.2;
}

.dj-genre-sidebar .list_hot_down {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
}

.dj-genre-sidebar .list_hot_down dl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    min-height: 40px;
    line-height: 40px;
    border-bottom: none;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.dj-genre-sidebar .list_hot_down dt {
    flex-shrink: 0;
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dj-text-muted);
    background: transparent;
    border-radius: 0;
    padding: 0;
    line-height: 40px;
}

.dj-genre-sidebar .list_hot_down dt.num1 {
    color: #ffb700;
    background: transparent;
}

.dj-genre-sidebar .list_hot_down dt.num2 {
    color: #6c757d;
    background: transparent;
}

.dj-genre-sidebar .list_hot_down dt.num3 {
    color: #ff9500;
    background: transparent;
}

.dj-genre-sidebar .list_hot_down dd {
    margin: 0;
    min-width: 0;
    flex: 1;
    line-height: 40px;
}

.dj-genre-sidebar .list_hot_down dd a {
    color: var(--dj-text);
    font-size: 13px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 40px;
}

.dj-genre-sidebar .list_hot_down dd a:hover {
    color: var(--dj-primary);
}

.dj-genre-page .dj-genre-sidebar .dj-card-side:hover {
    transform: none;
}

.dj-genre-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dj-text-muted);
}

/* ---------- 分页 ---------- */
.dj-genre-page .dj-pager {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0.5rem !important;
    padding: 1rem 0 0.25rem;
}

.dj-genre-page .dj-pager__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dj-genre-page .dj-pager__list li {
    margin: 0;
    padding: 0;
}

.dj-genre-page .dj-pager__list li a,
.dj-genre-page .dj-pager__list li span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.dj-genre-page .dj-pager__list li a {
    background: var(--dj-surface);
    border: 1px dashed rgba(124, 58, 237, 0.28);
    color: var(--dj-text);
}

.dj-genre-page .dj-pager__list li a:hover {
    background: var(--dj-primary-soft);
    border-color: var(--dj-primary);
    color: var(--dj-primary);
}

.dj-genre-page .dj-pager__list li.active span,
.dj-genre-page .dj-pager__list #page_active span {
    background: var(--dj-primary);
    border: 1px solid var(--dj-primary);
    color: #fff;
}

.dj-genre-page .dj-pager__jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dj-genre-page .dj-pager__input {
    width: 50px;
    height: 36px;
    padding: 0 6px;
    border: 1px dashed rgba(124, 58, 237, 0.28);
    border-radius: 8px;
    background: var(--dj-surface);
    color: var(--dj-text);
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dj-genre-page .dj-pager__input:focus {
    border-color: var(--dj-primary);
    box-shadow: 0 0 0 3px var(--dj-primary-soft);
}

.dj-genre-page .dj-pager__go {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1px dashed var(--dj-primary);
    border-radius: 8px;
    background: transparent;
    color: var(--dj-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dj-genre-page .dj-pager__go:hover {
    background: var(--dj-primary);
    border-color: var(--dj-primary);
    color: #fff;
}

.dj-genre-table .contorl_menu_ico {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    padding-top: 0;
}

.dj-genre-table .icodown a,
.dj-genre-table .icocar a,
.dj-genre-table .icofav a {
    display: block;
    width: 25px;
    height: 28px;
    background-image: url(../images/sort_list.png);
    background-repeat: no-repeat;
}

.dj-genre-table .icodown a {
    background-position: -32px -188px;
}

.dj-genre-table .icodown a:hover {
    background-position: -31px -151px;
}

.dj-genre-table .icocar a {
    background-position: -57px -188px;
}

.dj-genre-table .icocar a:hover {
    background-position: -56px -151px;
}

.dj-genre-table .icofav a {
    background-position: -82px -188px;
}

.dj-genre-table .icofav a:hover {
    background-position: -81px -151px;
}

/* ---------- dj93 式 flex 歌曲列表（仅手机端） ---------- */
@media (min-width: 769px) {
    .dj-song-list-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .dj-song-list-desktop {
        display: none !important;
    }
}

.dj-song-list-wrap.dj-song-list-mobile {
    background: var(--dj-surface);
    border: 1px solid var(--dj-border);
    border-radius: var(--dj-radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.dj-song-list-mobile .songList {
    padding: 0;
    width: 100%;
}

.dj-song-list-header {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--dj-border);
    background: var(--dj-surface-2);
    color: var(--dj-text-muted);
    font-weight: 600;
    font-size: 12px;
    width: 100%;
}

.dj-song-list-mobile .col-check {
    width: 36px;
    flex-shrink: 0;
    text-align: center;
}

.dj-song-list-mobile .col-cover {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-right: 8px;
}

.dj-song-list-mobile .col-cover--head {
    visibility: hidden;
    pointer-events: none;
    margin-right: 8px;
}

.dj-song-list-mobile .col-cover a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.dj-song-list-mobile .col-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dj-song-list-mobile .col-cover .play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    background: rgba(91, 33, 182, 0.55);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
}

.dj-song-list-mobile .col-cover:hover .play-icon {
    opacity: 1;
}

.dj-song-list-mobile .col-name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.dj-song-list-mobile .col-rank {
    width: 48px;
    flex-shrink: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--dj-text-muted);
}

.dj-song-list-mobile .col-rank.is-top {
    color: var(--dj-primary);
}

.dj-song-list-mobile .col-hot {
    width: 72px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
    color: var(--dj-text-muted);
}

.dj-song-list-mobile .col-time {
    width: 96px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
    color: var(--dj-text-muted);
}

.dj-song-list-mobile .col-coin {
    width: 72px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
}

.dj-song-list-mobile .col-op {
    width: 88px;
    flex-shrink: 0;
    text-align: center;
}

.dj-song-list-mobile .songItem {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--dj-border);
    width: 100%;
    position: relative;
}

.dj-song-list-mobile .songItem:last-child {
    border-bottom: none;
}

.dj-song-list-mobile .songItem:hover {
    background: var(--dj-primary-soft);
}

.dj-song-list-mobile .songItemRow {
    display: flex;
    align-items: center;
    width: 100%;
}

.dj-song-list-mobile .song-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--dj-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.dj-song-list-mobile .song-title:hover {
    color: var(--dj-primary);
}

.dj-song-list-mobile .song-info {
    font-size: 10px;
    color: var(--dj-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-song-list-mobile .hot-icon {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    border-radius: 10px;
    font-size: 10px;
}

.dj-song-list-mobile .col-op .contorl_menu_ico {
    justify-content: center;
    padding-top: 0;
}

.dj-song-list-mobile .more-btn {
    display: none;
    width: 28px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dj-text-muted);
    cursor: pointer;
}

.dj-song-list-mobile .song-more-bar {
    width: 100%;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    background: var(--dj-surface-2);
    border-radius: 6px;
    margin-top: 0;
    transition: height 0.25s ease, margin-top 0.25s ease, padding 0.25s ease;
}

.dj-song-list-mobile .song-more-bar.show {
    height: 44px;
    margin-top: 8px;
    padding: 0 10px;
}

.dj-song-list-mobile .song-more-action {
    font-size: 13px;
    color: var(--dj-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    text-decoration: none;
}

.dj-song-list-mobile .song-more-action:hover {
    color: var(--dj-primary);
}

@media (max-width: 768px) {
    .dj-song-list-mobile .col-hot,
    .dj-song-list-mobile .col-time,
    .dj-song-list-mobile .col-coin,
    .dj-song-list-mobile .col-rank,
    .dj-song-list-header .col-hot,
    .dj-song-list-header .col-time,
    .dj-song-list-header .col-coin,
    .dj-song-list-header .col-rank,
    .dj-song-list-header .col-cover--head {
        display: none;
    }

    .dj-song-list-mobile .col-op .contorl_menu_ico {
        display: none;
    }

    .dj-song-list-mobile .more-btn {
        display: flex;
    }

    .dj-song-list-mobile .col-op {
        width: 0;
        overflow: hidden;
    }

    .dj-song-list-header .col-op {
        width: 28px;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .dj-genre-filter-label {
        flex: 0 0 100%;
    }

    .dj-genre-page .dj-genre-sidebar {
        position: static;
        display: block;
    }

    .dj-genre-page .dj-pager {
        justify-content: center;
    }
}
