/* ==========================================================================
   首页（v18，fhifi 杂志风：焦点大卡 + 实时收藏流 + 瓦片）
   依赖 ui.css 全局基底与 app.css 的 rank-block 等公共组件
   ========================================================================== */

/* ---------- 开屏 ---------- */
.hm-hero {
    background:
        radial-gradient(90% 130% at 92% 0%, rgba(200,170,110, .10) 0%, transparent 52%),
        radial-gradient(70% 120% at 0% 100%, rgba(212,175,55, .07) 0%, transparent 55%);
    border-bottom: 1px solid #1a1815;
    overflow: hidden;
}

.hm-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 40px;
    align-items: center;
    padding: 58px 0 54px;
}

.hm-eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c8aa6e;
}

.hm-title {
    margin: 0 0 18px;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-size: clamp(30px, 4.6vw, 46px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: 1px;
    color: #e5e6e2;
}

.hm-title em {
    font-style: normal;
    color: #d4af37;
    background: linear-gradient(transparent 68%, rgba(200,170,110, .28) 68%);
    padding: 0 2px;
}

.hm-lead {
    margin: 0 0 26px;
    max-width: 560px;
    font-size: 14.5px;
    line-height: 1.95;
    color: #d2d3cf;
}

.hm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    height: 56px;
    padding: 0 8px 0 20px;
    background: var(--surface);
    border: 1px solid #1d1c18;
    border-radius: 16px;
    box-shadow: 0 3px 8px rgba(36, 38, 31, .04), 0 18px 40px -22px rgba(36, 38, 31, .25);
    color: #8b8e81;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.hm-search:focus-within {
    border-color: #d4af37;
    box-shadow: 0 3px 8px rgba(36, 38, 31, .05), 0 18px 44px -20px rgba(212,175,55, .35);
}

.hm-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14.5px;
    color: #e5e6e2;
}

.hm-search input:focus { outline: none; }

.hm-search button {
    height: 42px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: #d4af37;
    color: #f2efe4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: filter .15s ease;
}

.hm-search button:hover { filter: brightness(1.12); }

.hm-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-size: 12px;
    color: #8b8e81;
}

.hm-chips a {
    padding: 5px 13px;
    border-radius: 99px;
    border: 1px solid #1d1c18;
    background: rgba(10,11,14,.7);
    color: #d9dad5;
    text-decoration: none;
    transition: all .14s ease;
}

.hm-chips a:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: var(--surface);
}

.hm-srcs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 22px;
    font-size: 11.5px;
    color: #8b8e81;
}

.hm-srcs span { display: inline-flex; align-items: center; gap: 6px; }

.hm-srcs i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6e8f79;
}

/* 开屏右侧装饰 */
.hm-hero-art {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    min-height: 320px;
    justify-content: center;
}

.hm-sleeve {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 10px;
    background: linear-gradient(145deg, #0f0f0a, #181711);
    border: 1px solid #1d1c18;
    box-shadow: 0 30px 60px -28px rgba(36, 38, 31, .45);
    padding: 18px;
}

.hm-sleeve-name {
    display: block;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 13px;
    letter-spacing: 2.5px;
    color: #d4af37;
}

.hm-sleeve-track {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #c8aa6e;
}

.hm-disc {
    position: absolute;
    right: -78px;
    top: 50%;
    width: 220px;
    height: 220px;
    margin-top: -110px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center, #23241f 0 2px, #1a1b17 2px 4px);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
    animation: hm-spin 9s linear infinite;
}

.hm-disc i {
    position: absolute;
    inset: 33%;
    border-radius: 50%;
    background: radial-gradient(circle, #c8aa6e 0 26%, #1a1b17 27% 32%, #171611 33% 42%, #1a1b17 43%);
}

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

@media (prefers-reduced-motion: reduce) {
    .hm-disc { animation: none; }
}

.hm-eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 46px;
}

.hm-eq i {
    width: 5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #c8aa6e, #d4af37);
    animation: hm-eq 1.15s ease-in-out calc(var(--d, 0ms) * -1) infinite alternate;
    height: calc(var(--h, 30) * 1%);
    opacity: .8;
}

@keyframes hm-eq {
    from { transform: scaleY(.35); }
    to { transform: scaleY(1); }
}

/* ---------- 数据条 ---------- */
.hm-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #1a1815;
    border: 1px solid #1a1815;
    border-radius: 16px;
    overflow: hidden;
    margin: 26px 0 0;
}

.hm-strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0f0f0a;
    padding: 18px 22px;
}

.hm-strip-item b {
    font-size: 30px;
    font-weight: 800;
    color: #d4af37;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.hm-strip-item b small { font-size: 14px; font-weight: 700; }

.hm-strip-item span {
    font-size: 12.5px;
    font-weight: 600;
    color: #dedfda;
    line-height: 1.55;
}

.hm-strip-item span i {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 400;
    color: #8b8e81;
    letter-spacing: .5px;
}

/* ---------- 区块 ---------- */
.hm-sec { margin-top: 52px; }

.hm-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.hm-sec-head > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.hm-idx {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 13px;
    font-weight: 700;
    color: #c8aa6e;
    letter-spacing: 1px;
}

.hm-sec-head h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e5e6e2;
}

.hm-sec-tag {
    font-size: 11.5px;
    color: #8b8e81;
    border: 1px solid #1d1c18;
    border-radius: 99px;
    padding: 4px 12px;
    background: rgba(10,11,14,.6);
}

.hm-sec-link {
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    text-decoration: none;
}

.hm-sec-link:hover { text-decoration: underline; }

.hm-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hm-chart-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- 焦点 · 杂志卡（fhifi 式） ---------- */
.hm-feat {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.hm-feat-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hm-card {
    display: block;
    background: var(--surface);
    border: 1px solid #1a1815;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(36, 38, 31, .04), 0 10px 26px -18px rgba(36, 38, 31, .18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(36, 38, 31, .05), 0 20px 40px -20px rgba(36, 38, 31, .3);
}

.hm-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(120% 150% at 85% -15%, rgba(200,170,110, .18) 0%, transparent 55%),
        linear-gradient(135deg, #181712, #1f1e19);
    text-decoration: none;
}

.hm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hm-card:hover .hm-card-media img { transform: scale(1.045); }

.hm-card-media.sm { aspect-ratio: 16 / 9; }

.hm-card-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: rgba(210, 205, 190, .38);
}

.hm-card-ql { position: absolute; left: 10px; top: 10px; z-index: 2; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.hm-card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(36, 38, 31, .55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: all .2s ease;
}

.hm-card:hover .hm-card-play, .hm-card-play.playing {
    opacity: 1;
    transform: translateY(0);
}

.hm-card-play.playing { background: #d4af37; }

.hm-card-body { padding: 15px 17px 16px; }

.hm-card-cat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c8aa6e;
    margin-bottom: 7px;
}

.hm-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .3px;
}

.hm-card-title a {
    color: #e5e6e2;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-card-title a:hover { color: #d4af37; }

.hm-card-title.sm { font-size: 14.5px; font-weight: 700; }

.hm-card-note {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.75;
    color: #77796d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px dashed #181713;
}

.hm-card-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #dedfda;
    text-decoration: none;
    min-width: 0;
}

.hm-card-user:hover { color: #d4af37; }

.hm-mini-ava {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    background: #181713;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.hm-mini-ava img { width: 100%; height: 100%; object-fit: cover; }
.hm-mini-ava i { font-style: normal; font-size: 12px; font-weight: 700; color: #434440; }

.hm-card-date { font-size: 11px; color: #434440; flex: none; }

.hm-share-acts { display: inline-flex; align-items: center; gap: 10px; }

.hm-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #8b8e81;
    cursor: pointer;
}

.hm-act:hover { color: #d4af37; }
.hm-act.on { color: #e2604f; }
.hm-act.on svg { fill: #e2604f; }
.hm-act b { font-weight: 600; }

/* ---------- 大家在听：收藏流 + 瓦片 ---------- */
.hm-listen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.hm-feed, .hm-tiles {
    background: var(--surface);
    border: 1px solid #1a1815;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(36, 38, 31, .04);
}

.hm-feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e5e6e2;
    margin-bottom: 6px;
}

.hm-feed-head span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8aa6e;
}

.hm-feed-row {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #181713;
}

.hm-feed-row:last-child { border-bottom: 0; }

.hm-feed-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #181713;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    text-decoration: none;
}

.hm-feed-ava img { width: 100%; height: 100%; object-fit: cover; }
.hm-feed-ava i { font-style: normal; font-size: 15px; font-weight: 700; color: #434440; }

.hm-feed-main { min-width: 0; flex: 1; }

.hm-feed-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #77796d;
}

.hm-feed-user {
    font-weight: 700;
    color: #e5e6e2;
    text-decoration: none;
}

.hm-feed-user:hover { color: #d4af37; }

.hm-feed-song {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    cursor: pointer;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-feed-song:hover { text-decoration: underline; }
.hm-feed-song.playing { color: #c8aa6e; }

.hm-feed-ago { font-size: 11px; color: #3c3d39; }

.hm-feed-empty { margin: 16px 0; font-size: 12.5px; color: #3c3d39; }

.hm-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 14px 10px;
    margin-top: 8px;
}

.hm-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
}

.hm-tile-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #181712, #1f1e19);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hm-tile:hover .hm-tile-art img { transform: scale(1.06); }
.hm-tile-art i { font-size: 24px; color: rgba(210, 205, 190, .38); font-style: normal; }

.hm-tile-nm {
    font-size: 12px;
    font-weight: 600;
    color: #e5e6e2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-tile:hover .hm-tile-nm { color: #d4af37; }

.hm-tile-sub { font-size: 10.5px; color: #3c3d39; }

/* ---------- 为什么好用 ---------- */
.hm-mods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hm-mod {
    background: var(--surface);
    border: 1px solid #1a1815;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 1px 2px rgba(36, 38, 31, .04);
}

.hm-mod-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #d4af37;
    color: #f2efe4;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hm-mod h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #e5e6e2;
}

.hm-mod p {
    margin: 0;
    font-size: 12.8px;
    line-height: 1.9;
    color: #77796d;
}

/* ---------- 结尾 ---------- */
.hm-cta {
    margin: 52px 0 0;
    background: linear-gradient(120deg, #d4af37 0%, #12151a 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hm-cta::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(242, 239, 228, .12);
    pointer-events: none;
}

.hm-cta-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 38px 44px;
    flex-wrap: wrap;
}

.hm-cta h2 {
    margin: 0 0 6px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f2efe4;
}

.hm-cta p { margin: 0; font-size: 13px; color: rgba(242, 239, 228, .65); }

.hm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 30px;
    border-radius: 99px;
    background: #16140f;
    color: #d4af37;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hm-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
    .hm-hero-in { grid-template-columns: 1fr; padding: 44px 0 40px; }
    .hm-hero-art { display: none; }
    .hm-feat { grid-template-columns: 1fr; }
    .hm-listen { grid-template-columns: 1fr; }
    .hm-chart-grid, .hm-chart-grid.three { grid-template-columns: 1fr 1fr; }
    .hm-mods { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .hm-strip { grid-template-columns: 1fr 1fr; }
    .hm-chart-grid, .hm-chart-grid.three { grid-template-columns: 1fr; }
    .hm-feat-side { grid-template-columns: 1fr; }
    .hm-title { font-size: 27px; }
    .hm-cta-in { padding: 28px 24px; }
    .hm-search button { padding: 0 16px; letter-spacing: 1px; }
}

/* ==========================================================================
   正在播放 · 大播放器卡（参考 5sing hero player）
   ========================================================================== */

.hm-player {
    margin: -14px 0 34px;
    padding: 18px 22px 20px;
    border: 1px solid #262419;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, .10), rgba(212, 175, 55, .02) 42%, transparent),
        #11141a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 24px 48px -28px rgba(0, 0, 0, .85);
}

.hmp-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 12px;
}

.hmp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4af37;
    animation: hmp-pulse 1.6s ease-in-out infinite;
}

.hm-player.is-playing .hmp-dot { animation-duration: .9s; }

@keyframes hmp-pulse {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

.hmp-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hmp-art {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(150deg, #1c1a15, #26221c);
    border: 1px solid #2a271e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #6f6647;
    overflow: hidden;
}

.hmp-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hmp-spin 14s linear infinite;
    animation-play-state: paused;
}

.hm-player.is-playing .hmp-art img { animation-play-state: running; }

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

.hmp-info { flex: 1 1 auto; min-width: 0; }

.hmp-title {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 19px;
    font-weight: 700;
    color: #f2efe7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmp-sub {
    font-size: 12.5px;
    color: #95958d;
    margin: 3px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmp-progress {
    height: 5px;
    border-radius: 99px;
    background: #1d2129;
    cursor: pointer;
    overflow: hidden;
}

.hmp-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #a8862a, #d4af37);
    transition: width .25s linear;
}

.hmp-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6f6f68;
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

.hmp-btn {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .4);
    background: linear-gradient(135deg, #d4af37, #b8912f);
    color: #16130a;
    font-size: 20px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 8px 22px -10px rgba(212, 175, 55, .6);
}

.hmp-btn:hover { transform: scale(1.05); }
.hmp-btn:active { transform: scale(.97); }

@media (max-width: 640px) {
    .hm-player { padding: 14px 16px 16px; }
    .hmp-art { width: 60px; height: 60px; font-size: 22px; }
    .hmp-title { font-size: 16px; }
    .hmp-btn { width: 50px; height: 50px; }
}

/* ==========================================================================
   v21：播放器 × 本周热榜 同行布局
   热榜限高内部滚动，行高不随歌曲数膨胀；播放器内容垂直居中
   ========================================================================== */

.hm-playrow {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
    margin: -14px 0 34px;
}

.hm-playrow .hm-player {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hm-playrow .hm-player .hmp-main {
    flex: 1 1 auto;
    min-height: 120px;
    align-items: center;
}

.hm-playrow .hm-player .hmp-art {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    font-size: 34px;
}

.hmp-hint {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(232, 147, 74, .22);
    font-size: 11.5px;
    letter-spacing: .5px;
    color: #9a8c6e;
}

.hmp-hint span { color: #6f6656; }

.hm-playrow-chart {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(232, 147, 74, .28);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(240, 201, 106, .08), rgba(232, 147, 74, .04) 45%, transparent),
        #11141a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 24px 48px -28px rgba(0, 0, 0, .85);
    overflow: hidden;
}

.hm-playrow-chart .rank-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: none;
    border: 0;
}

.hm-playrow-chart .sec-head {
    padding: 14px 16px 4px;
    margin: 0;
}

.hm-playrow-chart .sec-more {
    background: linear-gradient(120deg, #f5d488, #e8934a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hm-playrow-chart .rank-card {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 380px;
    border: 0;
    background: none;
    box-shadow: none;
    overflow-y: auto;
    padding: 6px 10px 8px;
    scrollbar-width: thin;
    scrollbar-color: #3a3428 transparent;
}

.hm-playrow-chart .rank-card::-webkit-scrollbar { width: 6px; }
.hm-playrow-chart .rank-card::-webkit-scrollbar-track { background: transparent; }
.hm-playrow-chart .rank-card::-webkit-scrollbar-thumb {
    background: #3a3428;
    border-radius: 99px;
}

/* 榜单前三：渐变金章 */
.theme-paper .rank-item .num.n1,
.theme-paper .rank-item .num.n2,
.theme-paper .rank-item .num.n3 {
    flex: 0 0 32px;
    width: 32px;
    height: 22px;
    line-height: 22px;
    margin: 0 auto;
    border-radius: 7px;
    background: var(--grad);
    color: #16130a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px -4px rgba(232, 147, 74, .55);
}

/* ---------- 歌手榜 × 热门搜索：双卡布局 ---------- */

.hm-artgrid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 20px;
    align-items: stretch;
}

.hm-artlist { display: flex; }

.hm-artlist .rank-block {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.hm-artlist .rank-card { flex: 1 1 auto; }

.hm-tagcard {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid #1a1815;
    border-radius: 16px;
    padding: 18px 20px 20px;
    box-shadow: 0 1px 2px rgba(36, 38, 31, .04), 0 10px 26px -18px rgba(36, 38, 31, .18);
    position: relative;
    overflow: hidden;
}

.hm-tagcard::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, .1) 0%, transparent 68%);
    pointer-events: none;
}

.hm-tag-note {
    margin: 4px 0 14px;
    font-size: 12px;
    color: #77796d;
}

.hm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    flex: 1;
}

.hm-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 99px;
    border: 1px solid #1d1c18;
    background: rgba(10, 11, 14, .6);
    color: #dedfda;
    text-decoration: none;
    font-size: calc(12px + var(--tw, 1) * .5px);
    font-weight: 600;
    transition: all .15s ease;
}

.hm-tag:hover {
    border-color: #d4af37;
    color: #f5d488;
    background: var(--surface);
    transform: translateY(-2px);
}

.hm-tag i {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: #c8aa6e;
    background: rgba(212, 175, 55, .12);
    border-radius: 99px;
    padding: 1px 7px;
    font-variant-numeric: tabular-nums;
}

.hm-tag-artists {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #1a1815;
}

@media (max-width: 1020px) {
    .hm-playrow {
        grid-template-columns: 1fr;
    }
    .hm-playrow .hm-player .hmp-main {
        height: auto;
    }
    .hm-playrow-chart .rank-card { max-height: 320px; }
    .hm-artgrid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v22：沉浸式开屏 + 听歌工作台 + 双榜统一卡头
   ========================================================================== */

/* ---------- 沉浸式开屏（居中式） ---------- */
.hm2-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(75% 95% at 50% -12%, rgba(240, 201, 106, .13) 0%, transparent 56%),
        radial-gradient(55% 75% at 88% 108%, rgba(226, 96, 79, .07) 0%, transparent 62%),
        linear-gradient(180deg, #101218 0%, #0a0b0e 100%);
    border-bottom: 1px solid #1a1815;
}

.hm2-glow {
    position: absolute;
    left: 50%;
    top: -220px;
    width: 720px;
    height: 720px;
    margin-left: -360px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .10);
    box-shadow: 0 0 0 90px rgba(212, 175, 55, .025), 0 0 0 220px rgba(212, 175, 55, .015);
    pointer-events: none;
}

.hm2-hero-in {
    position: relative;
    text-align: center;
    padding: 66px 0 0;
}

.hm2-title {
    margin: 0 0 18px;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-size: clamp(30px, 4.6vw, 50px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #f2efe7;
}

.hm2-title em {
    font-style: normal;
    background: linear-gradient(120deg, #f5d488 10%, #e8934a 55%, #e2604f 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 3px;
}

.hm2-lead {
    max-width: 640px;
    margin: 0 auto 30px;
    font-size: 14.5px;
    line-height: 1.95;
    color: #d2d3cf;
}

.hm2-search {
    max-width: 680px;
    margin: 0 auto;
    height: 62px;
    border-radius: 18px;
    background: rgba(10, 11, 14, .72);
    backdrop-filter: blur(8px);
    border-color: #2a2619;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .4), 0 24px 54px -26px rgba(0, 0, 0, .9);
}

.hm2-search button {
    height: 46px;
    padding: 0 34px;
    letter-spacing: 3px;
}

.hm2-chips {
    justify-content: center;
    margin-top: 20px;
    font-size: 12px;
}

.hm2-srcs {
    justify-content: center;
    margin-top: 20px;
}

/* 数据条：融入开屏底部的玻璃质感 */
.hm2-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 42px;
    border-top: 1px solid rgba(38, 36, 25, .85);
    background: rgba(255, 255, 255, .012);
}

.hm2-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 12px;
    border-left: 1px solid rgba(38, 36, 25, .55);
    text-align: left;
}

.hm2-strip-item:first-child { border-left: 0; }

.hm2-strip-item b {
    font-size: 28px;
    font-weight: 800;
    color: #d4af37;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.hm2-strip-item b small { font-size: 13px; font-weight: 700; }

.hm2-strip-item span {
    font-size: 12.5px;
    font-weight: 600;
    color: #dedfda;
    line-height: 1.55;
}

.hm2-strip-item span i {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 400;
    color: #8b8e81;
    letter-spacing: .5px;
}

/* ---------- 听歌工作台：正在播放 × 本周热榜 ---------- */
.hm2-dock {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: 18px;
    align-items: stretch;
    margin: 32px 0 0;
    height: 500px;
}

.hm2-player {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px 20px 12px;
    border: 1px solid #262419;
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(212, 175, 55, .10), rgba(212, 175, 55, .02) 45%, transparent),
        #11141a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 24px 48px -28px rgba(0, 0, 0, .85);
    overflow: hidden;
}

.hm2-player .hmp-label { margin-bottom: 10px; }

.hm2-player .hmp-main {
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
    padding: 4px 0 14px;
    border-bottom: 1px dashed rgba(232, 147, 74, .2);
}

.hm2-player .hmp-art {
    width: 104px;
    height: 104px;
    border-radius: 14px;
    font-size: 36px;
}

.hm2-player.is-playing .hmp-art img { animation-play-state: running; }

.hm2-player .hmp-title { font-size: 20px; }

/* 本次试听队列：填充播放器下半部分，播放中不再有大片空白 */
.hmp-queue {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.hmp-qhead {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e5e6e2;
    flex: none;
}

.hmp-qhead span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8aa6e;
}

.hmp-qhead em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: #c8aa6e;
    font-variant-numeric: tabular-nums;
}

.hmp-qlist {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-top: 4px;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #3a3428 transparent;
}

.hmp-qlist::-webkit-scrollbar { width: 6px; }
.hmp-qlist::-webkit-scrollbar-track { background: transparent; }
.hmp-qlist::-webkit-scrollbar-thumb { background: #3a3428; border-radius: 99px; }

.hmp-qempty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.9;
    color: #8a8273;
}

.hmp-qempty i {
    font-style: normal;
    font-size: 11px;
    color: #5e594d;
}

.hmp-qeq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
}

.hmp-qeq i {
    width: 5px;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, #c8aa6e, #e8934a);
    transform-origin: bottom;
    animation: hm-eq 1.15s ease-in-out calc(var(--d, 0ms) * -1) infinite alternate;
    opacity: .75;
}

.hmp-qitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 10px;
    border: 0;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: background .15s ease;
}

.hmp-qitem:hover { background: rgba(240, 201, 106, .06); }

.hmp-qthumb {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: #161a21;
    border: 1px solid #262a32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #5c5a4e;
}

.hmp-qthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hmp-qmain { flex: 1 1 auto; min-width: 0; }

.hmp-qname {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #dedfda;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmp-qsub {
    display: block;
    font-size: 10.5px;
    color: #6f6f68;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.hmp-qitem.on .hmp-qname { color: #f5d488; }

.hmp-qact {
    flex: none;
    font-size: 11px;
    color: #c8aa6e;
    opacity: 0;
    transition: opacity .15s ease;
}

.hmp-qitem:hover .hmp-qact { opacity: 1; }

/* 热榜列（与播放器等高，内部滚动） */
.hm2-chart {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid rgba(232, 147, 74, .28);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(240, 201, 106, .08), rgba(232, 147, 74, .04) 45%, transparent),
        #11141a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 24px 48px -28px rgba(0, 0, 0, .85);
    overflow: hidden;
}

.hm2-chart .rank-block {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: none;
    border: 0;
}

.hm2-chart .sec-head {
    flex: none;
    padding: 14px 16px 4px;
    margin: 0;
}

.hm2-chart .sec-more {
    background: linear-gradient(120deg, #f5d488, #e8934a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hm2-chart .rank-card {
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow-y: auto;
    padding: 6px 10px 8px;
    scrollbar-width: thin;
    scrollbar-color: #3a3428 transparent;
}

.hm2-chart .rank-card::-webkit-scrollbar { width: 6px; }
.hm2-chart .rank-card::-webkit-scrollbar-track { background: transparent; }
.hm2-chart .rank-card::-webkit-scrollbar-thumb { background: #3a3428; border-radius: 99px; }

/* ---------- 双榜统一卡头（歌手榜 × 热门搜索） ---------- */
.hm2-dual {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 20px;
    align-items: stretch;
}

.hm2-dualcard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface);
    border: 1px solid #1a1815;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(36, 38, 31, .04), 0 10px 26px -18px rgba(36, 38, 31, .18);
}

.hm2-cardhead {
    flex: none;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 15px 18px 12px;
    border-bottom: 1px solid #1a1815;
    background: linear-gradient(135deg, rgba(240, 201, 106, .05), transparent 60%);
}

.hm2-cardhead b {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f0ead8;
}

.hm2-cardhead span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8aa6e;
}

.hm2-cardhead em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #f5d488;
    border: 1px solid rgba(232, 147, 74, .35);
    border-radius: 99px;
    padding: 2px 11px;
    background: rgba(240, 201, 106, .08);
}

.hm2-dualbody {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 6px 16px 14px;
    position: relative;
}

.hm2-dualcard .rank-block {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

/* render_rank 自带头部隐藏，统一用外层 hm2-cardhead */
.hm2-dualcard .sec-head { display: none; }

.hm2-dualcard .rank-card {
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    background: none;
    box-shadow: none;
    padding: 6px 0 0;
}

.hm2-dualcard--tags .hm2-dualbody::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -50px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, .09) 0%, transparent 68%);
    pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
    .hm2-dock {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hm2-chart .rank-card { max-height: 340px; }
    .hmp-qlist { max-height: 250px; }
    .hmp-qempty { padding: 26px 0; }
    .hm2-dual { grid-template-columns: 1fr; }
    .hm2-strip { grid-template-columns: 1fr 1fr; }
    .hm2-strip-item { border-left: 0; border-top: 1px solid rgba(38, 36, 25, .55); }
    .hm2-strip-item:nth-child(-n+2) { border-top: 0; }
    .hm2-hero-in { padding-top: 46px; }
}

/* ==========================================================================
   v23：焦点区自适应 —— 分享少时整行平铺，不再右边空白
   ========================================================================== */

.hm-feat--row { grid-template-columns: repeat(3, 1fr); }

.hm-feat--n1 { grid-template-columns: 1fr; }

.hm-feat--n2 { grid-template-columns: repeat(2, 1fr); }

/* 单条分享：横向大卡占满整行（图左文右） */
.hm-feat--n1 .hm-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
}

.hm-feat--n1 .hm-card-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
}

.hm-feat--n1 .hm-card-media img { height: 100%; }

.hm-feat--n1 .hm-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
}

.hm-feat--n1 .hm-card-title { font-size: 20px; }

.hm-feat--n1 .hm-card-note { margin-bottom: 4px; }

.hm-feat--n1 .hm-card-meta { margin-top: 6px; }

@media (max-width: 1020px) {
    .hm-feat--row, .hm-feat--n1, .hm-feat--n2 { grid-template-columns: 1fr; }
    .hm-feat--n1 .hm-card { grid-template-columns: 1fr; }
    .hm-feat--n1 .hm-card-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .hm-feat--n1 .hm-card-body { padding: 18px 20px; }
}
