/* 心流 /flow/（2026-10-27 起）。v0.26（10-29）照心流样稿 B 沉浸式改（样稿的 page.css；Leon 10-28 看样稿定）：
   当前曲目的背景图铺满整屏（.fl-bg，position: fixed，在页面最底下），播放器是沉在底部的一条磨砂条（.fb-dock），曲目表从右边拉出（.fb-drawer）；
   唱片机拿掉，字符粒子留着，按键是细线圆圈、点缀用细金色（--fl-gold），「在线咨询」照旧朱红（页头的，不在这里写）。
   这一页一律夜色（页面开头 theme: dark，build.py 第一帧前定好），所以只写夜里的颜色：底色压到 #0a0d12（近参考站的蓝黑），别的照 ui.css 夜里的变量。
   页头、页脚、导航是全站的；页脚压在背景图上面（z-index 1）。页面里不用任何 mix-blend-mode（会让页头的毛玻璃失效）。
   字：英文、数字用 Cormorant Garamond（本站的子集，只有 500、400 斜体、500 斜体三档拉丁字，只这一页加载）；
       页面上写死的中文衬线字（曲目表的「曲目」）走 var(--serif)（FyroSerif，tools/serif-font.py 按这里收字）；
       曲名以后若有中文，落到系统宋体（--fl-en 后面那几个），不用 FyroSerif（它只收了写死在页面上的字）。
   网页画中画小窗（Document Picture-in-Picture）把 ui.css 和这一份抄进小窗，所以小窗的样式（.pip-*）和小窗里的减少动态也写在这里。 */

@font-face { font-family: "FyroCormorant"; src: url("/assets/fonts/cormorant-garamond-500.woff2?v=1") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "FyroCormorant"; src: url("/assets/fonts/cormorant-garamond-400-italic.woff2?v=1") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "FyroCormorant"; src: url("/assets/fonts/cormorant-garamond-500-italic.woff2?v=1") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --fl-en: "FyroCormorant", "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --fl-gold: #c9a86a;
  --fl-gold-rgb: 201 168 106;
  --fl-hair: rgb(var(--ink-rgb) / 0.13);
  --fl-hair-2: rgb(var(--ink-rgb) / 0.26);
  --fl-dim: rgb(var(--ink-rgb) / 0.6);
  --fl-faint: rgb(var(--ink-rgb) / 0.36);
  --fl-glass: rgb(12 15 21 / 0.42);
  --fl-glass-edge: rgb(255 255 255 / 0.07);
  --fl-shade: rgb(0 0 0 / 0.5);
}
:root[data-theme="dark"] {
  --paper: #0a0d12;
  --paper-rgb: 10 13 18;
  --glyph: #dcc79f;   /* 字符粒子：淡金，压在暗图上（浓淡 ui.css 夜里是 2，这里 1.3） */
  --glyph-dim: 1.3;
}
html { scroll-behavior: auto; }
.flow-page .i { stroke-width: 1.5; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- 底：当前曲目的背景图铺满整屏（两张图交替淡入淡出）+ 压字的渐变 + 字符粒子 ---------- */
.fl-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--paper); }
.fl-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; opacity: 0; transform-origin: 50% 45%; transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fl-bg-img.is-on { opacity: 1; }
.fl-bg-img.is-m { inset: 0; height: 100%; object-position: 50% 50%; }   /* 竖屏用竖版（flow.js 的 TALL_MQ，10-30）：图框就是整屏，压过下面窄屏那个 1100px 高的框 */
.no-fade .fl-bg-img { transition: none; }
/* 推拉：放着的时候极慢地往里推（60 秒一个来回），停了就停在那一刻 */
.fl-bg-img { animation: fl-drift 60s ease-in-out infinite alternate; animation-play-state: paused; }
.is-playing .fl-bg-img { animation-play-state: running; }
@keyframes fl-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1%, -0.8%, 0); } }
.fl-scrim { position: absolute; inset: 0; transition: opacity 1.4s ease;
  background:
    radial-gradient(120% 85% at 50% 42%, transparent 40%, rgb(10 13 18 / 0.55) 100%),
    linear-gradient(180deg, rgb(10 13 18 / 0.7) 0%, rgb(10 13 18 / 0.18) 20%, rgb(10 13 18 / 0.12) 48%, rgb(10 13 18 / 0.62) 78%, rgb(10 13 18 / 0.9) 100%); }
.fl-glyphs { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; color: var(--glyph); opacity: var(--glyph-opacity); transition: none !important; }
/* 内容压在底上面（页头本来就是 sticky、z-index 40） */
.flow-page, .site-foot { position: relative; z-index: 1; }

/* ---------- 字 ---------- */
.fl-credit { color: var(--fl-dim); font-family: var(--fl-en); font-style: italic; font-weight: 400; letter-spacing: 0.03em; line-height: 1.3; }
.fl-credit em { color: var(--ink); font-style: italic; font-weight: 500; }
.fl-no { color: var(--fl-gold); font-family: var(--fl-en); font-size: 13px; font-weight: 500; letter-spacing: 0.34em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.np-no { display: flex; min-height: 22px; align-items: center; gap: 12px; }
.np-title { color: var(--ink); font-family: var(--fl-en); font-style: italic; font-weight: 500; letter-spacing: 0.005em; line-height: 1.12; overflow-wrap: anywhere; }
.times { display: flex; justify-content: space-between; color: var(--fl-dim); font-family: var(--fl-en); font-size: 14px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

/* 正在放：三根细柱 */
.eq { display: none; height: 10px; align-items: flex-end; gap: 2px; color: var(--fl-gold); }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; transform: scaleY(0.35); }
.is-playing .eq { display: inline-flex; }
.is-playing .eq i { animation: eq 1.1s ease-in-out infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: -0.4s; animation-duration: 0.9s; }
.is-playing .eq i:nth-child(3) { animation-delay: -0.7s; animation-duration: 1.25s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* ---------- 键：细线圆圈（上一首、播放、下一首），小图标键（播放顺序、小窗、曲目），数字键（25、50） ---------- */
.fx { display: inline-grid; flex-shrink: 0; width: 42px; height: 42px; place-items: center; border: 1px solid var(--fl-hair-2); border-radius: 50%; color: var(--ink); transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, translate 0.12s ease; }
.fx .i { width: 14px; height: 14px; }
.fx-play { width: 58px; height: 58px; border-color: rgb(var(--fl-gold-rgb) / 0.7); }
.fx-play .i { width: 19px; height: 19px; }
.fx-play:not(.is-pause) .i { translate: 1.5px 0; }
@media (hover: hover) and (pointer: fine) {
  .fx:not(:disabled):hover { border-color: rgb(var(--fl-gold-rgb) / 0.9); background: rgb(var(--ink-rgb) / 0.05); }
  .fx-ico:hover, .fx-num:hover { color: var(--ink); }
}
.fx:not(:disabled):active { translate: 0 1px; }
.fx:disabled { opacity: 0.32; cursor: default; }
.fx-ico, .fx-num { position: relative; display: inline-grid; flex-shrink: 0; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--fl-dim); transition: color 0.2s ease, border-color 0.2s ease; }
.fx-ico .i { width: 17px; height: 17px; }
.fx-ico[aria-checked="true"], .fx-ico[aria-pressed="true"] { color: var(--fl-gold); }
.fx-ico[aria-checked="true"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 3px; height: 3px; translate: -50% 0; border-radius: 50%; background: currentColor; }
.fx-num { border: 1px solid transparent; font-family: var(--fl-en); font-size: 15px; font-weight: 500; font-variant-numeric: lining-nums; }
.fx-num[aria-pressed="true"] { border-color: rgb(var(--fl-gold-rgb) / 0.7); color: var(--fl-gold); }
.fx-grp { display: inline-flex; align-items: center; gap: 2px; }
.fx-sep { width: 1px; height: 16px; margin-inline: 8px; background: var(--fl-hair-2); }
.tp { display: flex; align-items: center; gap: 14px; }

/* 进度：一根细线 + 金色的走过的那段 + 小圆点；能点、能拖、能用方向键 */
.seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.seek > .t { min-width: 2.6em; color: var(--fl-dim); font-family: var(--fl-en); font-size: 14px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.seek > .t:last-child { text-align: right; }
.bar { --p: 0; position: relative; height: 24px; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; translate: 0 -0.5px; background: var(--fl-hair-2); transition: height 0.2s ease; }
.bar-fill { position: absolute; left: 0; top: 50%; width: calc(var(--p) * 100%); height: 1px; translate: 0 -0.5px; background: var(--fl-gold); }
.bar-knob { position: absolute; left: calc(var(--p) * 100%); top: 50%; width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgb(var(--fl-gold-rgb) / 0.2); transition: scale 0.2s ease, box-shadow 0.2s ease; }
.bar.is-drag .bar-knob, .bar:focus-visible .bar-knob { scale: 1.35; box-shadow: 0 0 0 5px rgb(var(--fl-gold-rgb) / 0.2); }
@media (hover: hover) and (pointer: fine) { .bar:hover .bar-knob { scale: 1.35; box-shadow: 0 0 0 5px rgb(var(--fl-gold-rgb) / 0.2); } }
.bar:focus-visible { outline-offset: 2px; border-radius: 4px; }

/* 心流计时的读数：一圈细弧是剩下的时间，旁边分秒；音乐停着转灰；到点换成「再来一段」 */
.ft { display: flex; width: fit-content; align-items: center; gap: 8px; margin-left: auto; color: var(--ink); }
.ft-ring { width: 18px; height: 18px; flex-shrink: 0; rotate: -90deg; overflow: visible; }
.ft-ring circle { fill: none; stroke-width: 1.6; }
.ft-track { stroke: var(--fl-hair-2); }
.ft-arc { stroke: var(--fl-gold); stroke-linecap: round; stroke-dasharray: 56.55; transition: stroke-dashoffset 1s linear, stroke 300ms ease; }
.ft-time { font-family: var(--fl-en); font-size: 17px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; line-height: 1; letter-spacing: 0.04em; }
.ft[data-st="hold"] { color: var(--fl-dim); }
.ft[data-st="hold"] .ft-arc { stroke: var(--fl-faint); }
.ft-again { display: none; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgb(var(--fl-gold-rgb) / 0.6); border-radius: 999px; color: var(--fl-gold); font-family: var(--fl-en); font-size: 14px; font-weight: 500; }
.ft-again .i { width: 13px; height: 13px; }
.ft[data-st="done"] .ft-ring, .ft[data-st="done"] .ft-time { display: none; }
.ft[data-st="done"] .ft-again { display: inline-flex; }
.ft-sm .ft-ring { width: 14px; height: 14px; }
.ft-sm .ft-time { font-size: 14px; }

/* ---------- 曲目表：一行一首（编号、斜体曲名、时长，行间细线）；没放出的是下面一排空着的小框 ---------- */
.tl { border-top: 1px solid var(--fl-hair); }
.tl-row { display: grid; width: 100%; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--fl-hair); color: var(--fl-dim); text-align: left; transition: color 0.2s ease; }
.tl-no { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fl-en); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; font-variant-numeric: lining-nums tabular-nums; }
.tl-name { display: flex; min-width: 0; align-items: center; gap: 10px; font-family: var(--fl-en); font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.3; }
.tl-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-dur { font-family: var(--fl-en); font-size: 14px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.tl-row[aria-current="true"] { color: var(--ink); }
.tl-row[aria-current="true"] .tl-no { color: var(--fl-gold); }
.tl-row .eq { display: none !important; }
.tl-row.is-playing .eq { display: inline-flex !important; }
@media (hover: hover) and (pointer: fine) { .tl-row:hover { color: var(--ink); } }
.tl-row:focus-visible { outline-offset: -2px; border-radius: 4px; }
/* 空着的小框：一块磨砂的板，里面一道很淡的金色内框（等着放进封面），中间斜体的编号 */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; margin-top: 20px; }
.slot { position: relative; display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--fl-hair); border-radius: 6px;
  background:
    radial-gradient(130% 100% at 18% 0%, rgb(var(--fl-gold-rgb) / 0.12), transparent 62%),
    linear-gradient(160deg, rgb(var(--ink-rgb) / 0.06), rgb(var(--ink-rgb) / 0.012));
  box-shadow: inset 0 1px 0 var(--fl-glass-edge), 0 10px 24px -18px var(--fl-shade); }
.slot::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgb(var(--fl-gold-rgb) / 0.18); border-radius: 3px; }
.slot-no { color: var(--fl-faint); font-family: var(--fl-en); font-size: 15px; font-style: italic; font-weight: 500; font-variant-numeric: lining-nums; letter-spacing: 0.04em; -webkit-user-select: none; user-select: none; }

/* 小封面上的「只看背景」小钮（悬停出现；没有悬停的设备一直显示） */
.cover-hint { position: absolute; right: 6px; bottom: 6px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgb(255 255 255 / 0.4); border-radius: 50%; background: rgb(10 13 18 / 0.35); color: #f2ede3; opacity: 0; translate: 0 3px; transition: opacity 0.2s ease, translate 0.2s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cover-hint .i { width: 13px; height: 13px; stroke-width: 1.8; }
@media (hover: hover) and (pointer: fine) { .fb-art:hover .cover-hint { opacity: 1; translate: 0 0; } }
.fb-art:focus-visible .cover-hint { opacity: 1; translate: 0 0; }
@media (hover: none) { .cover-hint { opacity: 0.9; translate: 0 0; } }

/* ======================================================================
 * 沉浸式：播放器沉在底部，曲目表从右边拉出
 * ====================================================================== */
.fb-stage { display: grid; min-height: calc(100svh - var(--header-h)); grid-template-rows: auto minmax(0, 1fr) auto; padding-block: clamp(18px, 4vh, 52px) clamp(14px, 3vh, 30px); }
/* 10-28 Leon「页面里不用心流两个字」：大标题只留给读屏（.sr-only），署名放进播放条，曲名下一行 */
.fb-dock .fl-credit { margin-top: 2px; font-size: clamp(14px, 1.1vw, 16px); }
.fb-dock { display: grid; grid-row: 3; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "art meta tp side" "art seek seek seek"; align-items: center; gap: 8px 26px; padding: 16px 22px 12px 16px; border: 1px solid var(--fl-hair); border-radius: 18px; background: var(--fl-glass); box-shadow: inset 0 1px 0 var(--fl-glass-edge), 0 30px 70px -36px var(--fl-shade); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); }
.fb-art { position: relative; grid-area: art; display: block; width: 100px; aspect-ratio: 1; overflow: hidden; border-radius: 9px; box-shadow: 0 0 0 1px var(--fl-hair), 0 14px 30px -18px var(--fl-shade); cursor: zoom-out; }
.fb-art img { width: 100%; height: 100%; object-fit: cover; }
.fb-meta { grid-area: meta; min-width: 0; }
.fb-dock .np-title { margin-top: 8px; overflow: hidden; font-size: clamp(24px, 2.2vw, 32px); text-overflow: ellipsis; white-space: nowrap; }
.fb-dock .tp { grid-area: tp; }
.fb-side { display: flex; grid-area: side; align-items: center; justify-self: end; }
.fb-dock .seek { grid-area: seek; }
.fb-list-btn { width: auto; padding-inline: 10px 12px; gap: 6px; grid-auto-flow: column; border-radius: 999px; font-family: var(--fl-en); font-size: 15px; font-style: italic; font-weight: 500; }
.fb-list-btn .i { width: 16px; height: 16px; }
.fb-list-btn span { font-family: var(--serif); }   /* 中文不斜（ui.css 全站 font-synthesis: none），同样稿 */
/* 曲目表的抽屉：盖在页头上面，从右边滑进来；点外面、Esc、关闭键都收回去 */
.fb-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: grid; width: min(440px, 92vw); grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid var(--fl-hair); background: rgb(var(--paper-rgb) / 0.78); box-shadow: -40px 0 90px -40px var(--fl-shade); -webkit-backdrop-filter: blur(28px) saturate(1.1); backdrop-filter: blur(28px) saturate(1.1); transform: translateX(104%); visibility: hidden; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s; }
.fb-drawer.is-open { transform: none; visibility: visible; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.fb-drawer-head { display: flex; height: var(--header-h); align-items: center; justify-content: space-between; padding: 0 16px 0 28px; border-bottom: 1px solid var(--fl-hair-2); }
.fb-drawer-head h2 { color: var(--ink); font-family: var(--serif); font-size: 19px; font-style: italic; font-synthesis: style; font-weight: 600; letter-spacing: 0.12em; line-height: 1.3; }
.fb-drawer-body { overflow-y: auto; padding: 8px 28px 32px; overscroll-behavior: contain; }
.fb-drawer .tl { border-top: 0; }
.fb-catch { position: fixed; inset: 0; z-index: 69; display: none; }
.drawer-open .fb-catch { display: block; }

/* ---------- 只看背景：收起页头、播放器、页脚，只留背景（和粒子）；点任意处、Esc、右下角的键回来 ---------- */
:is(.site-header, .flow-page, .site-foot, .mini, .fb-drawer) { transition: opacity 0.5s ease; }
.is-bare :is(.site-header, .flow-page, .site-foot, .mini, .fb-drawer) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
html.is-bare { overflow: hidden; }
.is-bare .fl-scrim { opacity: 0; }
.fl-restore { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(255 255 255 / 0.45); border-radius: 50%; background: rgb(10 13 18 / 0.3); color: #f2ede3; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fl-restore .i { width: 16px; height: 16px; }
.is-bare .fl-restore { opacity: 0.85; visibility: visible; transition: opacity 0.5s ease 0.3s, visibility 0s; }
.fl-bare-catch { position: fixed; inset: 0; z-index: 85; display: none; cursor: zoom-in; }
.is-bare .fl-bare-catch { display: block; }

/* ---------- 页内迷你播放条（两种小窗都不支持时）：播放器滑出视口后贴在底部 ---------- */
.mini { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; display: grid; width: min(520px, calc(100% - 24px)); grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; overflow: hidden; border: 1px solid var(--fl-hair); border-radius: 16px; background: var(--fl-glass); box-shadow: inset 0 1px 0 var(--fl-glass-edge), 0 20px 50px -24px var(--fl-shade); -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1); translate: -50% calc(100% + 30px); opacity: 0; visibility: hidden; transition: translate 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s; }
.mini.is-on { translate: -50% 0; opacity: 1; visibility: visible; transition: translate 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease; }
.mini-art { width: 44px; height: 44px; overflow: hidden; border-radius: 7px; box-shadow: 0 0 0 1px var(--fl-hair); cursor: pointer; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-text { min-width: 0; cursor: pointer; }
.mini .np-no { min-height: 0; gap: 8px; }
.mini .fl-no { font-size: 11.5px; }
.mini-title { overflow: hidden; color: var(--ink); font-family: var(--fl-en); font-size: 17px; font-style: italic; font-weight: 500; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.mini-tp { display: flex; align-items: center; gap: 8px; }
.mini .fx { width: 36px; height: 36px; }
.mini .fx-play { width: 42px; height: 42px; }
.mini .fx-play .i { width: 15px; height: 15px; }
.mini-line { --p: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fl-hair); }
.mini-line i { display: block; width: calc(var(--p) * 100%); height: 100%; background: var(--fl-gold); }

/* 视频画中画用的 video：要在页面里、能播，但看不见 */
.pip-video { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: 0.01; pointer-events: none; }

/* ---------- 调试角标：只在网址带 ?debug=1 时出现 ---------- */
.debug { position: fixed; right: 10px; top: calc(var(--header-h) + 8px); z-index: 90; padding: 7px 10px; border-radius: var(--r-sm); background: var(--term-bg); color: var(--term-ink); box-shadow: var(--shadow-pop); font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.6; white-space: pre; }

/* ---------- 网页画中画（Document PiP）里的小播放器：ui.css 和这一份抄进小窗；小窗的底是当前封面糊开 ---------- */
.pip-body { margin: 0; height: 100vh; overflow: hidden; background: var(--paper); }
.pip-bg { position: fixed; inset: -30px; overflow: hidden; }
.pip-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(22px) saturate(1.1); opacity: 0.5; }
.pip-bg::after { content: ""; position: absolute; inset: 0; background: rgb(var(--paper-rgb) / 0.45); }
.pip-glyphs { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; color: var(--glyph); pointer-events: none; --glyph-dim: 1; }
.pip { position: relative; z-index: 1; display: grid; height: 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px 12px 12px; }
.pip-art { width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--fl-hair), 0 10px 22px -12px var(--fl-shade); }
.pip-art img { width: 100%; height: 100%; object-fit: cover; }
.pip-main { display: grid; min-width: 0; gap: 4px; }
.pip .np-no { min-height: 0; gap: 8px; }
.pip .fl-no { font-size: 11px; }
.pip-title { overflow: hidden; color: var(--ink); font-family: var(--fl-en); font-size: 19px; font-style: italic; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pip .bar { height: 18px; }
.pip-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pip-row .times { gap: 4px; font-size: 12px; }
.pip-tp { display: flex; align-items: center; gap: 8px; }
.pip .fx { width: 32px; height: 32px; }
.pip .fx .i { width: 11px; height: 11px; }
.pip .fx-play { width: 38px; height: 38px; }
.pip .fx-play .i { width: 14px; height: 14px; }
/* 小窗拉大以后：竖排，封面放大 */
@media (min-height: 300px) and (min-width: 260px) {
  .pip { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 16px; padding: 18px 20px 20px; }
  .pip-art { width: auto; height: 100%; max-height: 62vw; }
  .pip-main { width: 100%; max-width: 420px; text-align: center; }
  .pip .np-no { justify-content: center; }
  .pip-row { flex-direction: column; gap: 12px; }
  .pip-row .times { width: 100%; justify-content: space-between; }
  .pip-sep { display: none; }
}

/* ======================================================================
 * 窄屏
 * ====================================================================== */
@media (max-width: 1023px) {
  .fb-dock { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art meta tp" "art seek seek" "side side side"; }
  .fb-side { justify-self: stretch; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--fl-hair); }
}
@media (max-width: 639px) {
  /* 手机上播放条约占下面 260px，封面主体（01 是台上的钢琴，在图高七成处）原来正好压在它底下：图框至少 1100px 高、贴着底边放，
     主体落到播放条上面约 60px（第 5 段之五）；宽屏照旧铺满。有竖版背景的曲目在竖屏上用 .is-m（10-30），不走这个框 */
  .fl-bg-img { inset: auto 0 0; height: max(100%, 1100px); }
  .fb-stage { padding-block: 22px 12px; }
  .fb-dock { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art meta" "seek seek" "tp tp" "side side"; gap: 10px 14px; padding: 12px 14px 8px 12px; border-radius: 16px; }
  .fb-art { width: 60px; border-radius: 7px; }
  .fb-dock .np-title { margin-top: 6px; font-size: 24px !important; line-height: 1.15 !important; }   /* fyro.css 手机上把 h2 都定成 28px，这里是曲名 */
  .fb-drawer-head h2 { font-size: 19px !important; line-height: 1.3 !important; }
  .fb-dock .tp { justify-self: center; gap: 22px; }
  .fb-side { padding-top: 4px; }
  .fb-list-btn { padding-inline: 8px; }
  .fx-sep { margin-inline: 2px; }
  .tl-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding-block: 13px; }
  .tl-name { font-size: 17px; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fb-drawer-head { padding-left: 20px; }
  .fb-drawer-body { padding-inline: 20px; }
}
@media (max-width: 380px) {
  .fx-ico, .fx-num { width: 31px; }
  .fb-list-btn span { display: none; }
}

/* ---------- 减少动态：背景不推拉、粒子不动（glyphs.js 自己停在一帧）、柱子不跳。页面上 fyro.css 已经把动画、过渡全站关掉；小窗里只有 ui.css 和这一份 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fl-bg-img, .eq i { animation: none !important; }
  .fl-bg-img, .fl-scrim, .fb-drawer, .fb-drawer.is-open { transition: none !important; }
  .pip-body *, .pip-body *::before, .pip-body *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .bar::before, .bar-knob, .slot { border: 1px solid CanvasText; }
}
