/* 歌单橱窗 · 前台样式（明暗跟随模板/系统，自适应） */
.fsc-root {
  --fsc-bg: transparent;
  --fsc-card: #ffffff;
  --fsc-text: #1d1d1f;
  --fsc-sub: #6e6e73;
  --fsc-faint: #aeaeb2;
  --fsc-line: rgba(0, 0, 0, .07);
  --fsc-accent: #FA243C;
  --fsc-sheet-bg: #F5F5F7;
  --fsc-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --fsc-cover-shadow: 0 14px 30px rgba(0, 0, 0, .22), 0 3px 8px rgba(0, 0, 0, .10);
  --fsc-thumb-bg: rgba(0, 0, 0, .09);
  --fsc-ph-bg: #ECECF0;
  --fsc-ph-ink: rgba(0, 0, 0, .16);
  --fsc-ph-sh: rgba(255, 255, 255, .65);
  color: var(--fsc-text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .fsc-root {
    --fsc-card: #1c1c1e;
    --fsc-text: #f5f5f7;
    --fsc-sub: #a1a1a6;
    --fsc-faint: #636366;
    --fsc-line: rgba(255, 255, 255, .09);
    --fsc-sheet-bg: #000000;
    --fsc-shadow: 0 2px 10px rgba(0, 0, 0, .4);
    --fsc-cover-shadow: 0 14px 30px rgba(0, 0, 0, .6), 0 3px 8px rgba(0, 0, 0, .45);
    --fsc-thumb-bg: rgba(255, 255, 255, .20);
    --fsc-ph-bg: #1C1C1E;
    --fsc-ph-ink: rgba(0, 0, 0, .55);
    --fsc-ph-sh: rgba(255, 255, 255, .07);
  }
}
html[data-theme="dark"] .fsc-root, html[data-fy-theme="dark"] .fsc-root,
html[data-bs-theme="dark"] .fsc-root, html.dark .fsc-root,
body.dark .fsc-root, body.dark-mode .fsc-root, .dark-theme .fsc-root,
html.fsc-dark-manual .fsc-root, .fsc-root.fsc-dark {
  --fsc-card: #1c1c1e;
  --fsc-text: #f5f5f7;
  --fsc-sub: #a1a1a6;
  --fsc-faint: #636366;
  --fsc-line: rgba(255, 255, 255, .09);
  --fsc-sheet-bg: #000000;
  --fsc-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  --fsc-cover-shadow: 0 14px 30px rgba(0, 0, 0, .6), 0 3px 8px rgba(0, 0, 0, .45);
  --fsc-thumb-bg: rgba(255, 255, 255, .20);
  --fsc-ph-bg: #1C1C1E;
  --fsc-ph-ink: rgba(0, 0, 0, .55);
  --fsc-ph-sh: rgba(255, 255, 255, .07);
}
html[data-theme="light"] .fsc-root, html[data-fy-theme="light"] .fsc-root,
html[data-bs-theme="light"] .fsc-root, html.fsc-light-manual .fsc-root {
  --fsc-card: #ffffff;
  --fsc-text: #1d1d1f;
  --fsc-sub: #6e6e73;
  --fsc-faint: #aeaeb2;
  --fsc-line: rgba(0, 0, 0, .07);
  --fsc-sheet-bg: #F5F5F7;
  --fsc-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --fsc-cover-shadow: 0 14px 30px rgba(0, 0, 0, .22), 0 3px 8px rgba(0, 0, 0, .10);
  --fsc-thumb-bg: rgba(0, 0, 0, .09);
  --fsc-ph-bg: #ECECF0;
  --fsc-ph-ink: rgba(0, 0, 0, .16);
  --fsc-ph-sh: rgba(255, 255, 255, .65);
}

.fsc-root * { box-sizing: border-box; }
.fsc-loading, .fsc-error { padding: 28px 0; text-align: center; color: var(--fsc-sub); font-size: 14px; }
.fsc-dots { display: inline-flex; gap: 6px; align-items: center; }
.fsc-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--fsc-faint); animation: fscDot 1.2s ease-in-out infinite; }
.fsc-dots i:nth-child(2) { animation-delay: .15s; }
.fsc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fscDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
/* 挂有橱窗的页面：去掉歌单下方那条分隔横线（模板评论区的顶边线） */
body:has([data-fsc-root]) .fy-comments-area { border-top: none; }
.fsc-error button { margin-left: 8px; border: 1px solid var(--fsc-line); background: var(--fsc-card); color: var(--fsc-text); border-radius: 99px; padding: 4px 14px; cursor: pointer; }

/* 分区选项卡：无整条背景，只有一块滑块在选中项下滑动 */
.fsc-tabs { position: relative; display: flex; margin: 0 0 16px; }
.fsc-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--fsc-thumb-bg); border-radius: 99px; transition: transform .32s cubic-bezier(.3, .9, .3, 1), width .32s cubic-bezier(.3, .9, .3, 1); }
.fsc-tab { position: relative; z-index: 1; flex: 1; border: none; background: transparent; color: var(--fsc-sub); font-size: 13.5px; font-weight: 600; padding: 9px 4px; border-radius: 99px; cursor: pointer; white-space: nowrap; transition: color .25s ease; }
.fsc-tab.fsc-on { color: var(--fsc-text); }
/* 与标题同行时：标题变弹性行，选项卡靠右、自适应宽度 */
.fsc-head-flex { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 15px !important; }
.fsc-tabs.fsc-inline { flex: none; margin: 0; }
.fsc-tabs.fsc-inline .fsc-tab { flex: none; padding: 7px 12px; font-size: 15px; }
.fsc-group { font-size: 12.5px; color: var(--fsc-sub); letter-spacing: .06em; margin: 16px 0 8px; }
.fsc-pane > .fsc-group:first-child { margin-top: 0; }

/* 歌单卡片 */
.fsc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .fsc-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.fsc-card { background: transparent; border-radius: 16px; padding: 0; cursor: pointer; transition: transform .15s ease; min-width: 0; }
.fsc-card:active { transform: scale(.98); }
.fsc-card-cover { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; box-shadow: var(--fsc-cover-shadow); background: var(--fsc-ph-bg); margin-bottom: 9px; }
.fsc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .05em; color: var(--fsc-ph-ink); text-shadow: 0 1px 0 var(--fsc-ph-sh), 0 -1px 1px rgba(0, 0, 0, .05); pointer-events: none; }
.fsc-card-cover .fsc-ph { font-size: 21px; }
.fsc-song-cover .fsc-ph { font-size: 10px; }
.fsc-ci { opacity: 0; filter: blur(14px); transform: scale(1.07); transition: opacity .5s ease, filter .55s ease, transform .55s ease; background-size: cover; background-position: center; background-repeat: no-repeat; }
.fsc-loaded > .fsc-ci { opacity: 1; filter: blur(0); transform: scale(1); }
.fsc-song-cover .fsc-ci { position: absolute; inset: 0; width: 100%; height: 100%; display: block; margin: 0; }
.fsc-root .fsc-card .fsc-card-cover .fsc-ci { position: absolute; inset: 0; width: 100%; height: 100%; display: block; margin: 0; }
.fsc-card-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 9px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .48)); color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); pointer-events: none; }
.fsc-card-namerow { display: flex; align-items: center; gap: 8px; }
.fsc-card-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsc-root .fsc-card-link { flex: none; font-size: 14.5px; font-weight: 700; color: var(--fsc-text); text-decoration: none; }
.fsc-card-link .fsc-arr { font-size: 12.5px; font-weight: 400; margin-left: 2px; }

/* 详情：整页层，打开时圆形波浪揭开；封面飞成圆落在左上角（点头部返回） */
.fsc-detail { position: fixed; inset: 0; z-index: 9990; background: var(--fsc-sheet-bg); display: none; flex-direction: column; }
.fsc-detail.fsc-on { display: flex; }
.fsc-d-head { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) var(--fsc-pad-r, 16px) 10px var(--fsc-pad-l, 16px); cursor: pointer; }
.fsc-detail.fsc-undernav .fsc-d-head { padding-top: 10px; }
.fsc-d-backbtn { order: 3; flex: none; margin-left: auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; cursor: pointer; color: var(--fsc-ink); -webkit-tap-highlight-color: transparent; }
.fsc-d-t { flex: 1; min-width: 0; }
.fsc-d-t b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsc-d-t span { display: block; font-size: 12px; color: var(--fsc-sub); margin-top: 1px; }
/* 关闭时的辉光克隆层（照「类苹果AI触发」：高亮滤镜 + plus-lighter 混合，只露出波前环） */
.fsc-glow { z-index: 9997; pointer-events: none; filter: contrast(104%) brightness(122%) hue-rotate(18deg); mix-blend-mode: plus-lighter; }
.fsc-pageglow { position: fixed; inset: 0; z-index: 99995; pointer-events: none; mix-blend-mode: plus-lighter; }
/* 装有灵动岛时：歌曲列表底部留白，让最后一行能滚到胶囊上方 */
.fsc-detail.fsc-with-player .fsc-songs { padding-bottom: 128px; }
.fsc-songs { overflow-y: auto; overscroll-behavior: contain; padding: 6px var(--fsc-pad-r, 16px) 20px var(--fsc-pad-l, 16px); -webkit-overflow-scrolling: touch; flex: 1; }
.fsc-song { display: flex; gap: 11px; align-items: center; background: transparent; padding: 8px 2px; margin-bottom: 0; cursor: pointer; }
/* 歌曲加载成功：从上往下逐行过渡显示（延迟由 JS 按行序写入，封顶 560ms） */
.fsc-songs.fsc-cascade .fsc-song { animation: fscRowIn .45s cubic-bezier(.25, .8, .3, 1) both; }
@keyframes fscRowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fsc-songs.fsc-cascade .fsc-song { animation: none; } }
.fsc-song:active { transform: scale(.99); }
.fsc-song-cover { position: relative; flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--fsc-ph-bg); }
.fsc-sg { flex: 1; min-width: 0; }
.fsc-sg .n { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsc-sg .a { font-size: 12px; color: var(--fsc-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.fsc-song.fsc-playing .n { color: var(--fsc-accent); }
.fsc-eq { flex: none; display: flex; align-items: center; gap: 3px; height: 30px; margin-right: 14px; }
.fsc-eq span { display: block; width: 3px; border-radius: 999px; background: var(--fsc-accent); transform-origin: center; flex-shrink: 0; animation: fscDiBar 2.1s cubic-bezier(.45, .05, .25, 1) infinite; }
.fsc-eq span:nth-child(1) { height: 11px; animation-duration: 1.85s; animation-delay: 0s; }
.fsc-eq span:nth-child(2) { height: 19px; animation-duration: 2.35s; animation-delay: .22s; }
.fsc-eq span:nth-child(3) { height: 26px; animation-duration: 1.9s; animation-delay: .08s; }
.fsc-eq span:nth-child(4) { height: 15px; animation-duration: 2.2s; animation-delay: .35s; }
.fsc-eq span:nth-child(5) { height: 21px; animation-duration: 2.05s; animation-delay: .14s; }
@keyframes fscDiBar { 0%, 100% { transform: scaleY(.32); opacity: .5; } 20% { transform: scaleY(.58); opacity: .72; } 38% { transform: scaleY(.88); opacity: .9; } 52% { transform: scaleY(.4); opacity: .65; } 68% { transform: scaleY(1); opacity: 1; } 84% { transform: scaleY(.52); opacity: .78; } }

.fsc-toast { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%) translateY(-14px); z-index: 9999; background: rgba(28, 28, 30, .92); color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: all .3s ease; max-width: 86vw; text-align: center; }
.fsc-toast.fsc-show { opacity: 1; transform: translateX(-50%) translateY(0); }
