/* ==========================================================================
   音浪音乐站 - 样式
   ========================================================================== */

:root {
    --bg: #08080f;
    --bg-soft: #0d0d19;
    --card: rgba(255, 255, 255, .045);
    --card-hover: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f4f4f8;
    --text-dim: #c3c3d4;
    --muted: #8e8ea6;
    --accent: #8b5cff;
    --accent2: #ff4d7d;
    --grad: linear-gradient(135deg, #8b5cff 0%, #ff4d7d 100%);
    --radius: 20px;
    --player-h: 88px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-bottom: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px 520px at 8% -12%, rgba(139, 92, 255, .20), transparent 62%),
        radial-gradient(760px 420px at 96% 4%, rgba(255, 77, 125, .16), transparent 60%),
        radial-gradient(700px 460px at 50% 120%, rgba(32, 201, 166, .08), transparent 65%);
    background-attachment: fixed;
}

body.has-player { padding-bottom: calc(var(--player-h) + 12px); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
mark { background: transparent; color: var(--accent2); font-weight: 600; }

.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }

/* ------------------------------ 顶部导航 ------------------------------ */
.top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 8, 15, .72);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line);
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--grad);
    box-shadow: 0 6px 18px rgba(139, 92, 255, .38);
}

.logo-mark svg { width: 19px; height: 19px; color: #fff; }

.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; line-height: 1.1; }

.logo-text em {
    display: block;
    font-style: normal;
    font-size: 9px;
    letter-spacing: 2.4px;
    color: var(--muted);
    font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 22px; flex: none; }

.nav-link {
    font-size: 14px;
    color: var(--text-dim);
    transition: color .18s;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover { color: #fff; }

.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    padding: 0 14px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    transition: border-color .2s, background .2s;
}

.top-search:focus-within { border-color: rgba(139, 92, 255, .6); background: rgba(255, 255, 255, .09); }
.ts-icon { width: 17px; height: 17px; color: var(--muted); flex: none; }
.top-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    outline: none;
    font-size: 13.5px;
}
.top-search input::placeholder { color: #6d6d85; }
.top-search input::-webkit-search-cancel-button { filter: invert(.6); }

/* ------------------------------ 首页 Hero ------------------------------ */
.main { min-height: 60vh; }

.hero {
    position: relative;
    margin-top: 26px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    filter: blur(46px) saturate(150%);
    opacity: .38;
    transform: scale(1.05);
    z-index: -2;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(8, 8, 15, .96) 12%, rgba(8, 8, 15, .74) 52%, rgba(8, 8, 15, .92) 100%),
        radial-gradient(600px 300px at 92% 0%, rgba(139, 92, 255, .3), transparent 70%);
    z-index: -1;
}

.hero-inner { padding: 54px 52px 46px; max-width: 720px; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #d9d2ff;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 255, .16);
    border: 1px solid rgba(139, 92, 255, .3);
}

.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.2;
    letter-spacing: -.5px;
    font-weight: 800;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; }

.hero-search, .big-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(8px);
    transition: border-color .2s, box-shadow .2s;
}

.hero-search { max-width: 560px; }
.hero-search:focus-within, .big-search:focus-within {
    border-color: rgba(139, 92, 255, .65);
    box-shadow: 0 0 0 4px rgba(139, 92, 255, .12);
}

.hero-search svg, .big-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

.hero-search input, .big-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: none;
    color: var(--text);
    outline: none;
    font-size: 15px;
}

.hero-search input::placeholder, .big-search input::placeholder { color: #6d6d85; }

.hero-search button, .big-search button {
    flex: none;
    height: 44px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 8px 22px rgba(139, 92, 255, .35);
}

.hero-search button:hover, .big-search button:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 77, 125, .38); }

.hot-words {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
}

.hot-words > span { margin-right: 2px; }

.hot-words a {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    color: var(--text-dim);
    transition: all .18s;
}

.hot-words a:hover { color: #fff; border-color: rgba(139, 92, 255, .55); background: rgba(139, 92, 255, .16); }

/* ------------------------------ 区块 ------------------------------ */
.section { margin-top: 46px; scroll-margin-top: 88px; }
.section-tight { margin-top: 34px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-head .sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    color: #d9d2ff;
    background: rgba(139, 92, 255, .18);
    border: 1px solid rgba(139, 92, 255, .28);
}

.head-actions { display: flex; gap: 10px; flex: none; }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all .18s;
    white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.i-btn { width: 14px; height: 14px; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(139, 92, 255, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 77, 125, .34); }

.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: var(--line-strong); }

/* ------------------------------ 歌曲列表 ------------------------------ */
.daily-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 26px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
}

.song-list { display: flex; flex-direction: column; }

.song {
    display: grid;
    grid-template-columns: 22px 30px 44px minmax(0, 1fr) 200px 56px 34px;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .16s;
}

.song:hover { background: var(--card-hover); }
.song.playing { background: rgba(139, 92, 255, .13); }

.s-idx {
    position: relative;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.s-idx .i-play { display: none; width: 15px; height: 15px; color: var(--accent2); }

.song:hover .s-idx span { display: none; }
.song:hover .s-idx .i-play { display: block; }
.song.playing .s-idx span { display: none; }
.song.playing .s-idx .i-play { display: block; color: var(--accent2); }

.s-cover {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    background: #16162a;
}

.s-main { min-width: 0; }

.s-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song.playing .s-name { color: #c9b8ff; }

.s-sub {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.s-album {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-dur {
    font-size: 12.5px;
    color: var(--muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.s-dl {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: var(--muted);
    opacity: 0;
    transition: all .16s;
}

.s-dl svg { width: 16px; height: 16px; }
.song:hover .s-dl { opacity: 1; }
.s-dl:hover { background: rgba(139, 92, 255, .22); color: #fff; }

/* ------------------------------ 榜单卡片 ------------------------------ */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.chart-card {
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 16px 14px 10px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
}

.chart-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.chart-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 12px;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chart-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: none;
    background: rgba(139, 92, 255, .18);
    background: color-mix(in srgb, var(--c, #8b5cff) 26%, transparent);
    color: var(--c, #8b5cff);
}

.chart-ico svg { width: 18px; height: 18px; }

.chart-title b { display: block; font-size: 15px; }
.chart-title em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }

.mini-play {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    flex: none;
    transition: all .18s;
}

.mini-play svg { width: 13px; height: 13px; }
.mini-play:hover { background: var(--grad); transform: scale(1.06); }

.chart-rows { display: flex; flex-direction: column; flex: 1; }

.chart-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.chart-row:hover { background: rgba(255, 255, 255, .06); }

.cr-rank {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.cr-rank.top { color: var(--c, #8b5cff); font-weight: 700; }

.cr-main { min-width: 0; }

.cr-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-row.playing .cr-name { color: #c9b8ff; }

.cr-artist {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-play { display: grid; place-items: center; opacity: 0; color: var(--accent2); }
.cr-play svg { width: 13px; height: 13px; }
.chart-row:hover .cr-play { opacity: 1; }

.chart-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 9px 6px 6px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
    transition: color .18s;
}

.chart-more:hover { color: #fff; }

/* ------------------------------ 歌单网格 ------------------------------ */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 20px;
}

.pl-card { min-width: 0; }

.pl-cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #16162a;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

.pl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.pl-card:hover .pl-cover img { transform: scale(1.06); }

.pl-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
    opacity: 0;
    transition: opacity .25s;
}

.pl-card:hover .pl-cover::after { opacity: 1; }

.pl-count {
    position: absolute;
    left: 10px;
    bottom: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    z-index: 2;
}

.i-mini { width: 11px; height: 11px; }

.pl-name {
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pl-card:hover .pl-name { color: #c9b8ff; }

.pl-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ------------------------------ 今日歌单 ------------------------------ */
.daily-pl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.daily-pl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: background .2s, transform .2s;
}

.daily-pl-item:hover { background: var(--card-hover); transform: translateY(-2px); }
.daily-pl-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.dpi-name { font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.dpi-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ------------------------------ 搜索页 ------------------------------ */
.page-head { margin-top: 34px; }
.big-search { max-width: 720px; }
.big-search input { height: 50px; font-size: 16px; }
.big-search button { height: 50px; padding: 0 30px; }

.result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13.5px;
}

.result-meta b { color: var(--text); }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 10px;
    flex-wrap: wrap;
}

.pg {
    min-width: 36px;
    height: 36px;
    padding: 0 13px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 13px;
    transition: all .16s;
}

.pg:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pg.active { background: var(--grad); color: #fff; border-color: transparent; }
.pg.disabled { opacity: .38; pointer-events: none; }
.pg-info { margin-left: 6px; color: var(--muted); font-size: 12.5px; }

/* ------------------------------ 歌单详情 ------------------------------ */
.pl-head {
    display: flex;
    gap: 30px;
    margin-top: 34px;
    padding: 26px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
}

.pl-cover-lg { flex: none; width: 200px; }

.pl-cover-lg img {
    width: 200px;
    height: 200px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.pl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.pl-tag {
    align-self: flex-start;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #d9d2ff;
    background: rgba(139, 92, 255, .18);
    border: 1px solid rgba(139, 92, 255, .28);
}

.pl-info h1 { margin: 12px 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; letter-spacing: -.3px; }

.pl-desc { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 720px; }

.pl-stats { display: flex; gap: 18px; color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }

.pl-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

.tip-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(139, 92, 255, .08);
    border: 1px solid rgba(139, 92, 255, .18);
    color: var(--muted);
    font-size: 12.5px;
}

.tip-bar strong { color: #d9d2ff; flex: none; }

/* ------------------------------ 空态 / 提示 ------------------------------ */
.alert, .empty-box {
    padding: 44px 28px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    text-align: center;
}

.alert strong { display: block; font-size: 16px; margin-bottom: 8px; }
.alert p { margin: 0; color: var(--muted); font-size: 13.5px; }

.empty-ico {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    font-size: 24px;
    color: var(--accent);
}

.empty-ico svg { width: 26px; height: 26px; }
.empty-box h3 { margin: 0 0 8px; font-size: 17px; }
.empty-box p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* ------------------------------ 页脚 ------------------------------ */
.foot {
    margin-top: 64px;
    padding: 34px 0 46px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.foot-inner { display: flex; flex-direction: column; gap: 6px; }
.foot-brand { color: var(--text-dim); font-weight: 600; letter-spacing: 1px; font-size: 13px; }
.foot-note, .foot-copy { margin: 0; }
.foot a:hover { color: #fff; }

/* ------------------------------ 下载音质菜单 ------------------------------ */
.dl-menu {
    position: fixed;
    z-index: 200;
    min-width: 168px;
    padding: 6px;
    border-radius: 14px;
    background: #17172a;
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    animation: pop .14s ease;
}

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

.dl-menu .dm-title {
    padding: 6px 10px 8px;
    font-size: 11.5px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.dl-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--text-dim);
    transition: background .15s, color .15s;
}

.dl-menu button:hover { background: rgba(139, 92, 255, .2); color: #fff; }
.dl-menu button small { color: var(--muted); font-size: 11px; }

/* ------------------------------ 播放器 ------------------------------ */
.player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(13, 13, 25, .86);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.player[data-ready="1"] { transform: translateY(0); }

.player-bar {
    width: min(1400px, 100% - 32px);
    margin: 0 auto;
    height: var(--player-h);
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(180px, 1fr);
    align-items: center;
    gap: 20px;
}

.pb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.pb-cover {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    flex: none;
    background: #16162a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.pb-cover img { width: 100%; height: 100%; object-fit: cover; }
.player.is-playing .pb-cover { animation: spinCover 14s linear infinite; }
@keyframes spinCover { to { transform: rotate(360deg); } }
.player.is-playing .pb-cover { border-radius: 50%; }

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

.pb-name {
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-artist {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.pb-center { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }

.pb-controls { display: flex; align-items: center; gap: 14px; }

.pb-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    transition: color .16s, background .16s;
}

.pb-btn svg { width: 18px; height: 18px; }
.pb-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pb-btn.is-on { color: var(--accent2); }

.pb-main {
    width: 42px;
    height: 42px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 92, 255, .35);
}

.pb-main svg { width: 19px; height: 19px; }
.pb-main:hover { transform: scale(1.05); background: var(--grad); }
.pb-main .ic-pause { display: none; }
.player.is-playing .pb-main .ic-play { display: none; }
.player.is-playing .pb-main .ic-pause { display: block; }

.pb-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; }

.pb-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; width: 38px; text-align: center; }

.pb-seek { flex: 1; padding: 8px 0; cursor: pointer; }

.pb-seek-bg {
    position: relative;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .14);
}

.pb-seek-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    border-radius: 3px;
    background: var(--grad);
}

.pb-seek-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 255, .25);
    opacity: 0;
    transition: opacity .16s;
}

.pb-seek:hover .pb-seek-dot { opacity: 1; }

.pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.pb-quality {
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.pb-quality option { background: #17172a; color: #fff; }

.pb-dl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 12.5px;
    transition: all .18s;
}

.pb-dl svg { width: 15px; height: 15px; }
.pb-dl:hover { color: #fff; border-color: rgba(139, 92, 255, .5); background: rgba(139, 92, 255, .18); }

.pb-vol { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pb-vol svg { width: 17px; height: 17px; }
.pb-vol input { width: 74px; accent-color: var(--accent); cursor: pointer; }

/* 歌词面板 */
.lyric-panel {
    height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: height .3s ease, border-color .3s;
    background: rgba(10, 10, 18, .96);
}

.lyric-panel.open { height: 300px; border-top-color: var(--line); }

.lyric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(900px, 100% - 40px);
    margin: 0 auto;
    padding: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.lyric-head button { font-size: 12px; color: var(--muted); }
.lyric-head button:hover { color: #fff; }

.lyric-body { height: 250px; overflow-y: auto; padding: 10px 0 40px; scrollbar-width: thin; }

.lyric-body::-webkit-scrollbar { width: 5px; }
.lyric-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }

.lyric-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
}

.lyric-line {
    font-size: 14px;
    color: #7c7c95;
    text-align: center;
    transition: color .2s, transform .2s;
    line-height: 1.6;
}

.lyric-line.active { color: #fff; font-size: 16px; font-weight: 600; transform: scale(1.02); }
.lyric-line.sub { font-size: 12.5px; color: #61617a; }
.lyric-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 60px 0; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1080px) {
    .nav { display: none; }
    .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s-album { display: none; }
    .song { grid-template-columns: 22px 30px 44px minmax(0, 1fr) 56px 34px; }
    .daily-pl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    :root { --player-h: 76px; }
    .wrap { width: calc(100% - 28px); }
    .top-inner { height: 60px; gap: 14px; }
    .top-search { width: 180px; }
    .hero { margin-top: 16px; border-radius: 20px; }
    .hero-inner { padding: 34px 22px 30px; }
    .hero-sub { font-size: 13px; }
    .daily-box { grid-template-columns: 1fr; padding: 10px; }
    .pl-head { flex-direction: column; gap: 18px; padding: 18px; border-radius: 18px; margin-top: 20px; }
    .pl-cover-lg, .pl-cover-lg img { width: 132px; height: 132px; border-radius: 14px; }
    .pl-info h1 { font-size: 20px; }
    .pl-desc { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .pl-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
    .daily-pl { grid-template-columns: 1fr; }
    .player-bar { grid-template-columns: 1fr auto; gap: 10px; height: var(--player-h); }
    .pb-center { display: none; }
    .pb-right { gap: 6px; }
    .pb-vol { display: none; }
    .pb-dl span { display: none; }
    .pb-dl { padding: 0 10px; }
    .lyric-panel.open { height: 240px; }
    .lyric-body { height: 196px; }
}

@media (max-width: 560px) {
    .top-search { width: 40px; padding: 0; justify-content: center; }
    .top-search input { display: none; }
    .logo-text em { display: none; }
    .section { margin-top: 34px; }
    .section-head h2 { font-size: 19px; }
    .btn { height: 34px; padding: 0 14px; font-size: 12.5px; }
    .daily-box { gap: 0; }
    .song { grid-template-columns: 18px 22px 40px minmax(0, 1fr) 30px; gap: 8px; padding: 6px 4px; }
    .s-cover { width: 40px; height: 40px; }
    .s-dur { display: none; }
    .s-dl { opacity: 1; }
    .chart-grid { grid-template-columns: 1fr; }
    .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero h1 { font-size: 26px; }
    .hero-search button, .big-search button { padding: 0 16px; }
    .result-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pb-cover { width: 44px; height: 44px; }
    .pb-quality { display: none; }
}

/* ------------------------------ 轻提示 ------------------------------ */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--player-h) + 26px);
    z-index: 300;
    transform: translate(-50%, 12px);
    max-width: min(78vw, 460px);
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(23, 23, 42, .95);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 13px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
}

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

/* ------------------------------ 勾选 ------------------------------ */
.s-check {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.s-check input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.s-check i {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid var(--line-strong);
    background: rgba(255, 255, 255, .03);
    transition: background .15s, border-color .15s;
    position: relative;
}

.s-check:hover i { border-color: var(--accent2); }

.s-check input:checked + i {
    background: linear-gradient(135deg, #8b5cff, #ff4d7d);
    border-color: transparent;
}

.s-check input:checked + i::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

.s-check input:focus-visible + i { outline: 2px solid var(--accent2); outline-offset: 2px; }

.song.picked { background: rgba(139, 92, 255, .1); }

/* 下载菜单里的「默认」标记 */
.dm-def {
    font-style: normal;
    font-size: 10.5px;
    line-height: 1.6;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(255, 77, 125, .2);
    color: #ff8aa9;
    vertical-align: 1px;
}

/* ------------------------------ 已选工具条 ------------------------------ */
.meta-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.pick-bar {
    position: fixed;
    left: 50%;
    bottom: calc(var(--player-h) + 14px);
    transform: translateX(-50%);
    z-index: 190;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 18px;
    border-radius: 999px;
    background: rgba(22, 22, 40, .97);
    border: 1px solid var(--line-strong);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
    animation: pickIn .18s ease-out;
}

.pick-bar[hidden] { display: none; }

@keyframes pickIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.pick-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pick-count b { color: #fff; font-size: 15px; margin: 0 2px; }

.pick-clear {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

.pick-clear:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* ------------------------------ 打包等待 ------------------------------ */
.packing {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 6, 14, .74);
    backdrop-filter: blur(6px);
}

.packing[hidden] { display: none; }

.packing-box {
    width: min(420px, 100%);
    background: #14141f;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}

.packing-box h3 { margin: 16px 0 10px; font-size: 17px; }
.packing-box h3 b { color: var(--accent2); }
.packing-box p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.packing-tip { font-size: 12px !important; color: #6d6d88 !important; }
.packing-box .btn { margin-top: 14px; }

.packing-spin {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 255, .22);
    border-top-color: #8b5cff;
    animation: pkSpin .8s linear infinite;
}

@keyframes pkSpin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .pick-bar {
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
        justify-content: space-between;
        gap: 6px;
        padding: 7px 8px 7px 12px;
        overflow: hidden;
    }
    @keyframes pickIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .pick-count { flex: 1 1 auto; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pick-count b { font-size: 14px; }
    .pick-clear { flex: 0 0 auto; font-size: 12px; padding: 4px 2px; }
    .pick-bar .btn { flex: 0 0 auto; padding: 0 10px; font-size: 12px; height: 30px; white-space: nowrap; }
    .pick-bar .btn svg { width: 13px; height: 13px; }
    .s-check { width: 18px; }
    .s-check i { width: 15px; height: 15px; border-radius: 4px; }
    .s-check input:checked + i::after { left: 4px; top: 1px; }
}
