/* ==================================================================
   千云鸟 · 音乐播放器（/pages/music/）
   配色沿用站点暗色霓虹主题变量（assets/css/my.css 的 :root）
   ================================================================== */
.mp {
    --mp-line: var(--line, rgba(126, 166, 255, .16));
    --mp-line-strong: var(--line-strong, rgba(140, 190, 255, .32));
    --mp-panel-img: linear-gradient(165deg, rgba(15, 23, 44, .82) 0%, rgba(8, 12, 24, .88) 100%),
        linear-gradient(140deg, rgba(56, 189, 248, .45) 0%, rgba(139, 92, 246, .24) 45%, rgba(255, 255, 255, .05) 100%);
    color: var(--text, #e7eef9);
    font-size: 14px;
    line-height: 1.6;
}

.mp * {
    box-sizing: border-box;
}

/* ---------- 通用玻璃面板 ---------- */
.mp-panel {
    background-color: transparent;
    background-image: var(--mp-panel-img);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 18px 42px -28px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* ---------- 按钮 ---------- */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: rgba(126, 166, 255, .08);
    color: var(--text, #e7eef9);
    font-size: 13px;
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}

.mp-btn:hover {
    border-color: var(--mp-line-strong);
    background: rgba(126, 166, 255, .16);
    color: #fff;
    box-shadow: var(--glow-cyan, 0 0 24px -6px rgba(121, 196, 208, .55));
}

.mp-btn.primary {
    background: var(--grad, linear-gradient(100deg, #79c4d0 0%, #7791cf 46%, #a992cc 100%));
    border-color: transparent;
    color: #04121a;
    font-weight: 600;
}

/* ---------- 布局：左栏 = 音乐库 + 搜索 + 歌曲列表；右栏 = 正在播放舞台 ---------- */
.mp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 18px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

/* 侧边栏固定在右侧：主区在左，列表在右 */
.mp-main {
    grid-column: 1;
    grid-row: 1;
}

.mp-side {
    grid-column: 2;
    grid-row: 1;
}

.mp-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- 左侧侧边栏：歌单 + 搜索 + 歌曲列表 ---------- */
.mp-side {
    padding: 14px;
    align-self: start;
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 110px);
    overflow: hidden;
}

.mp-side h3 {
    margin: 2px 0 2px;
    padding-left: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text-mute, #74869e);
}

/* 歌单列表（紧凑竖排） */
.mp-pls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 侧栏工具行：搜索框 + 添加按钮 */
.mp-side-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mp-side-tools .mp-search {
    margin-left: 0;
    flex: 1;
    min-width: 0;
}

.mp-side-tools .mp-search input {
    width: 100%;
}

.mp-add-toggle {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

/* 侧栏内的列表小标题 */
.mp-list-head-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 4px 0;
}

.mp-list-head-mini .mp-lh-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-list-head-mini .mp-lh-desc {
    font-size: 12px;
    color: var(--text-mute, #74869e);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-pl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all .22s ease;
}

.mp-pl-item:hover {
    background: rgba(126, 166, 255, .10);
}

.mp-pl-item.active {
    background: rgba(121, 196, 208, .12);
    border-color: var(--mp-line-strong);
    box-shadow: var(--glow-cyan, 0 0 24px -6px rgba(121, 196, 208, .55));
}

.mp-pl-item i {
    width: 18px;
    text-align: center;
    color: var(--cyan, #79c4d0);
    opacity: .85;
    flex: none;
}

.mp-pl-item .mp-pl-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-pl-item .mp-pl-num {
    font-size: 12px;
    color: var(--text-mute, #74869e);
}

/* ---------- 顶部：封面 + 信息 + 频谱 ---------- */
.mp-stage {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    align-items: center;
    min-height: 340px;
}

.mp-cover-wrap {
    position: relative;
    width: 168px;
    height: 168px;
    flex: none;
}

.mp-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--mp-line-strong);
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .95), var(--glow-violet, 0 0 30px -8px rgba(169, 146, 204, .45));
    animation: mp-spin 22s linear infinite;
    animation-play-state: paused;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a1020;
    background-size: cover;
    background-position: center;
    font-size: 50px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

.mp.playing .mp-disc {
    animation-play-state: running;
}

.mp-disc::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 10, 20, .96) 0 58%, rgba(255, 255, 255, .18) 60%, transparent 62%);
}

@keyframes mp-spin {
    to {
        transform: rotate(360deg);
    }
}

.mp-meta {
    min-width: 0;
}

.mp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--mp-line-strong);
    background: rgba(121, 196, 208, .10);
    color: var(--cyan, #79c4d0);
    font-size: 12px;
    letter-spacing: .04em;
}

.mp-title {
    margin: 12px 0 6px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    background-image: var(--grad, linear-gradient(100deg, #79c4d0 0%, #7791cf 46%, #a992cc 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-sub {
    margin: 0;
    color: var(--text-dim, #a6b6cd);
    font-size: 14px;
}

.mp-album {
    margin: 4px 0 0;
    color: var(--text-mute, #74869e);
    font-size: 13px;
}

.mp-viz {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 64px;
    margin-top: 16px;
}

.mp-viz i {
    flex: 1;
    min-width: 3px;
    height: 12%;
    border-radius: 3px;
    background: linear-gradient(180deg, #79c4d0 0%, #7791cf 55%, #a992cc 100%);
    opacity: .55;
    transition: height .18s ease;
}

.mp.playing .mp-viz i {
    opacity: .95;
}

/* ---------- 列表头部 ---------- */
.mp-list-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
}

.mp-list-head .mp-lh-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.mp-list-head .mp-lh-desc {
    color: var(--text-mute, #74869e);
    font-size: 13px;
}

.mp-search {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
}

.mp-search i {
    position: absolute;
    left: 12px;
    color: var(--text-mute, #74869e);
    font-size: 13px;
}

.mp-search input {
    width: 220px;
    height: 34px;
    padding: 0 12px 0 30px;
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: rgba(8, 12, 24, .72);
    color: var(--text, #e7eef9);
    font-size: 13px;
    outline: none;
    transition: all .22s ease;
}

.mp-search input:focus {
    border-color: var(--mp-line-strong);
    box-shadow: var(--glow-cyan, 0 0 24px -6px rgba(121, 196, 208, .55));
}

/* ---------- 歌曲列表 ---------- */
.mp-list {
    list-style: none;
    margin: 0;
    padding: 0 6px 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.mp-list > li {
    display: grid;
    grid-template-columns: 34px 40px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
}

.mp-list > li:hover {
    background: rgba(126, 166, 255, .10);
    border-color: var(--mp-line);
}

.mp-list > li.active {
    background: rgba(121, 196, 208, .10);
    border-color: var(--mp-line-strong);
}

.mp-list > li.active .mp-li-title {
    color: var(--cyan, #79c4d0);
}

.mp-li-no {
    text-align: center;
    color: var(--text-mute, #74869e);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.mp-list > li.active .mp-li-no {
    color: transparent;
    position: relative;
}

.mp-list > li.active .mp-li-no::after {
    content: "\f001";
    position: absolute;
    inset: 0;
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    color: var(--cyan, #79c4d0);
    animation: mp-blink 1.4s ease-in-out infinite;
}

@keyframes mp-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.mp-li-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    border: 1px solid var(--mp-line);
}

.mp-li-main {
    min-width: 0;
}

.mp-li-title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-li-sub {
    font-size: 12px;
    color: var(--text-mute, #74869e);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-li-time {
    font-size: 13px;
    color: var(--text-mute, #74869e);
    font-variant-numeric: tabular-nums;
}

.mp-li-ops {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .2s ease;
}

.mp-list > li:hover .mp-li-ops,
.mp-list > li.active .mp-li-ops {
    opacity: 1;
}

.mp-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(126, 166, 255, .10);
    color: var(--text-dim, #a6b6cd);
    cursor: pointer;
    transition: all .2s ease;
}

.mp-icon-btn:hover {
    background: rgba(121, 196, 208, .18);
    color: var(--cyan, #79c4d0);
}

.mp-icon-btn.on {
    color: #ff5b7f;
}

.mp-empty {
    display: block !important;
    padding: 34px 10px;
    text-align: center;
    color: var(--text-mute, #74869e);
}

/* ---------- 控制条（吸底） ---------- */
.mp-bar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.mp-bar-progress {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    order: -1;
}

.mp-time {
    font-size: 12px;
    color: var(--text-mute, #74869e);
    font-variant-numeric: tabular-nums;
    width: 42px;
    text-align: center;
    flex: none;
}

.mp-bar-track {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(126, 166, 255, .16);
    cursor: pointer;
}

.mp-bar-track::before {
    content: "";
    position: absolute;
    inset: -8px 0;
}

.mp-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 999px;
    background: var(--grad, linear-gradient(100deg, #79c4d0 0%, #7791cf 46%, #a992cc 100%));
    box-shadow: var(--glow-cyan, 0 0 24px -6px rgba(121, 196, 208, .55));
}

.mp-bar-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #eafcff;
    box-shadow: 0 0 10px rgba(121, 196, 208, .9);
    pointer-events: none;
}

.mp-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-ctrl .mp-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
}

.mp-play {
    width: 48px !important;
    height: 48px !important;
    font-size: 18px !important;
    background: var(--grad, linear-gradient(100deg, #79c4d0 0%, #7791cf 46%, #a992cc 100%)) !important;
    color: #04121a !important;
    box-shadow: var(--glow-cyan, 0 0 24px -6px rgba(121, 196, 208, .55));
}

.mp-play:hover {
    filter: brightness(1.08);
    color: #04121a !important;
}

.mp-now {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.mp-now .mp-now-title {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-now .mp-now-sub {
    font-size: 12px;
    color: var(--text-mute, #74869e);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 130px;
}

.mp-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(126, 166, 255, .22);
    outline: none;
    cursor: pointer;
}

.mp-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan, #79c4d0);
    box-shadow: 0 0 8px rgba(121, 196, 208, .8);
}

.mp-volume input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--cyan, #79c4d0);
}

/* ---------- 添加歌曲表单 ---------- */
.mp-add {
    padding: 14px 16px;
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.mp-add.show {
    display: flex;
}

.mp-add input[type="text"],
.mp-add input[type="url"] {
    height: 34px;
    min-width: 150px;
    flex: 1 1 150px;
    padding: 0 12px;
    border: 1px solid var(--mp-line);
    border-radius: 8px;
    background: rgba(8, 12, 24, .72);
    color: var(--text, #e7eef9);
    font-size: 13px;
    outline: none;
}

.mp-add input:focus {
    border-color: var(--mp-line-strong);
}

.mp-add-file {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: 1px dashed var(--mp-line-strong);
    border-radius: 999px;
    color: var(--text-dim, #a6b6cd);
    font-size: 13px;
    cursor: pointer;
}

.mp-add-file input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ---------- 提示条 ---------- */
.mp-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 20px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(10, 16, 32, .95);
    border: 1px solid var(--mp-line-strong);
    color: var(--text, #e7eef9);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all .26s ease;
    z-index: 9999;
}

.mp-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- 页面说明 ---------- */
.mp-tip {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 3px solid var(--cyan, #79c4d0);
    border-radius: 0 8px 8px 0;
    background: rgba(121, 196, 208, .07);
    color: var(--text-dim, #a6b6cd);
    font-size: 13px;
}

.mp-tip code {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(126, 166, 255, .14);
    color: var(--cyan, #79c4d0);
}

.mp-kbd {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 2px;
    border: 1px solid var(--mp-line-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-dim, #a6b6cd);
}

/* ---------- 响应式 ---------- */
@media only screen and (max-width: 992px) {
    .mp {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 窄屏恢复单列：播放器在上，列表在下 */
    .mp-main {
        grid-column: 1;
        grid-row: 1;
    }

    .mp-side {
        grid-column: 1;
        grid-row: 2;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .mp-pls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mp-list {
        max-height: 320px;
    }
}

@media only screen and (max-width: 700px) {
    .mp-stage {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .mp-viz {
        justify-content: center;
    }

    .mp-title {
        white-space: normal;
    }

    .mp-list > li {
        grid-template-columns: 26px 40px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .mp-li-time {
        display: none;
    }

    .mp-search {
        margin-left: 0;
        width: 100%;
    }

    .mp-search input {
        width: 100%;
    }

    .mp-volume {
        width: 100%;
    }

    .mp-bar {
        padding: 12px;
    }
}


/* ---------- 横幅已删：给内容垫开固定导航栏（64px）的高度 ---------- */
main.content {
    padding-top: 84px;
}

/* ---------- 顶部横幅收窄：40vh 大横幅压成一行标题高度 ---------- */
/* my.css 里 .bg-cover.pd-header.post-cover 是 height:40vh（1080p≈430px），
   只有一行标题导致大片空白。music.css 仅音乐页加载，这里覆盖掉。 */
.bg-cover.pd-header.post-cover {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 96px;
    padding-bottom: 24px;
}

.bg-cover.pd-header.post-cover .post-title {
    font-size: 1.7rem;
    margin: 0;
}
