/**
 * 列表页右侧栏 — 与分类页 /genre 统一（sticky + 榜单 + 广告位）
 */
.dj-page > .row.g-3,
.dj-genre-page > .row.g-3 {
    overflow: visible;
}

.dj-list-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-list-sidebar .dj-sidebar-slider-slot:not(:has(.dj-mix-slider)),
.dj-list-sidebar .dj-sidebar-slider-slot.is-empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
}

@media (min-width: 992px) {
    .dj-page > .row.g-3,
    .dj-genre-page > .row.g-3 {
        align-items: stretch;
    }

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

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

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

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

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

.dj-list-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-list-sidebar .index-rank-title span {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.dj-list-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-list-sidebar .list_hot_down {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
}

.dj-list-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-list-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-list-sidebar .list_hot_down dt.num1 { color: #ffb700; }
.dj-list-sidebar .list_hot_down dt.num2 { color: #6c757d; }
.dj-list-sidebar .list_hot_down dt.num3 { color: #ff9500; }

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

.dj-list-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-list-sidebar .list_hot_down dd a:hover {
    color: var(--dj-primary);
}

/* 侧栏下载榜 — 桌面编号列表 / 手机 flex 列表 */
@media (min-width: 769px) {
    .dj-sidebar-rank-mobile {
        display: none !important;
    }
}

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

.dj-sidebar-rank-mobile.dj-song-list-wrap {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent;
}

.dj-sidebar-rank-mobile .songList {
    padding: 0 0.35rem 0.65rem;
    width: 100%;
}

.dj-sidebar-rank-mobile .songItem {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.dj-sidebar-rank-mobile .songItemRow {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.35rem;
}

.dj-sidebar-rank-mobile .sidebar-rank-item {
    border-bottom: 1px solid var(--dj-border);
}

.dj-sidebar-rank-mobile .sidebar-rank-item:last-child {
    border-bottom: none;
}

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

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

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

.dj-sidebar-rank-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-sidebar-rank-mobile .col-cover:hover .play-icon {
    opacity: 1;
}

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

.dj-sidebar-rank-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-sidebar-rank-mobile .song-title:hover {
    color: var(--dj-primary);
}

.dj-sidebar-rank-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-sidebar-rank-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-sidebar-rank-mobile .col-op {
    width: 0;
    overflow: hidden;
}

.dj-sidebar-rank-mobile .col-op .contorl_menu_ico {
    display: none;
}

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

.dj-sidebar-rank-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-sidebar-rank-mobile .song-more-bar.show {
    height: 44px;
    margin-top: 8px;
    padding: 0 10px;
}

.dj-sidebar-rank-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-sidebar-rank-mobile .song-more-action:hover {
    color: var(--dj-primary);
}

.dj-list-sidebar .dj-sidebar-songs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    margin: 0;
    list-style: none;
}

.dj-list-sidebar .dj-sidebar-songs li a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: var(--dj-text);
    font-size: 13px;
    text-decoration: none;
    overflow: hidden;
}

.dj-list-sidebar .dj-sidebar-songs li a:hover {
    color: var(--dj-primary);
}

.dj-list-sidebar .dj-sidebar-songs li img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.dj-list-sidebar .dj-sidebar-songs li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

@media (max-width: 991.98px) {
    .dj-list-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .dj-list-sidebar > .dj-card-side {
        margin-bottom: 0 !important;
    }
}
