/* Blur 音乐网站样式（从参考实现搬来，数值都已和用户确认） */
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; transition: background 1.5s; color: #fff;
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ---------- 首页拼图 ---------- */
#home { position: fixed; inset: 0; background: #0c0c10; z-index: 10; transition: opacity .6s, transform .6s; }
#home.away { opacity: 0; transform: scale(.96); pointer-events: none; }
.tile { position: absolute; overflow: hidden; border-radius: 6px; cursor: pointer; background: #1a1a20;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s; }
.tile img.ok { opacity: 1; }
.tile:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 10px 40px rgba(0,0,0,.6); }

/* 右上角小彩蛋：蔡健雅《紫》，平时淡淡的，悬停亮起来 */
.tile.egg { z-index: 6; border-radius: 50%; opacity: .55; overflow: hidden;
  border: 1px solid rgba(158,120,214,.8); box-shadow: 0 4px 18px rgba(0,0,0,.6), 0 0 0 1px rgba(158,120,214,.35); }
.tile.egg:hover { opacity: 1; z-index: 6; transform: scale(1.1); }
.tile.egg .cap { display: none; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; line-height: 1.4;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tile:hover .cap { opacity: 1; }

/* 中间的搜索格 */
.search { cursor: default; background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.search:hover { transform: none; box-shadow: none; }
.search img { position: absolute; inset: 0; }
.search.found { cursor: pointer; }
.search.found:hover { transform: scale(1.04); }
.search .hint { position: relative; font-size: 13px; letter-spacing: .3em; opacity: .6; }
.search form { position: relative; width: 80%; }
.search input { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 22px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35); color: #fff; font-size: 16px; outline: none; text-align: center; } /* 16px：小于 16px 时 iPhone 聚焦会自动放大页面 */
.search input:focus { border-color: rgba(255,255,255,.6); }
.search .who { position: relative; font-size: 14px; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.8); min-height: 1.4em; }
.search.found .hint { display: none; }
.search.found form { position: absolute; bottom: 12px; }
.search.found .who { position: absolute; top: 14px; left: 10px; right: 10px; }

/* 进入/返回时用的封面替身 */
#ghost { position: fixed; z-index: 20; object-fit: cover; pointer-events: none; border-radius: 6px; }
#toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 30; padding: 8px 16px; border-radius: 8px;
  background: rgba(0,0,0,.75); font-size: 14px; opacity: 0; transition: opacity .3s; pointer-events: none; }
#toast.on { opacity: 1; }

/* ---------- 播放画面（定下来的那一版） ---------- */
#player { position: fixed; inset: 0; visibility: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } /* 长按全屏：不选字、不弹系统菜单 */
#player.on { visibility: visible; }
#bg { position: fixed; inset: -10%; width: 120%; height: 120%; filter: blur(25px); }
#veil { position: fixed; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0), rgba(0,0,0,.35)); }
body.light #veil { background: radial-gradient(ellipse at center, rgba(255,255,255,0), rgba(255,255,255,.18)); }
body.light { background: #fff; }
#stage { position: fixed; inset: 0; perspective: 900px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.line span { display: inline-block; }
.line span.tr { font-size: .55em; font-weight: 500; opacity: .85; }
.wall { will-change: transform, opacity, filter; }
.line { color: var(--lyric, #f0eaf2); position: absolute; transform-style: preserve-3d; max-width: 86vw; text-align: center; font-size: clamp(28px, 5vw, 64px); font-weight: 600;
  letter-spacing: .08em; /* 浅色背景上不再加光晕：白色 text-shadow 会把字边糊掉 */ will-change: transform; line-height: 1.35; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* 左下角只留歌名；一段时间没操作就隐去，鼠标悬浮变成“返回” */
#title { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; /* 不能选中文字，手机点击没有蓝色高亮 */
  position: fixed; left: 32px; bottom: 28px; z-index: 4; cursor: pointer; display: grid;
  font-size: 15px; letter-spacing: .12em; color: var(--lyric, #fff); opacity: .75; transition: opacity .8s; }
#title > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .3s, transform .3s; }
#title .ctrls { display: flex; gap: 18px; opacity: 0; transform: translateX(-6px); pointer-events: none; }
#title .ctrls span { opacity: .6; transition: opacity .2s; }
#title .ctrls span:hover { opacity: 1; }
/* 播放/暂停：SVG 符号（字符 ▶ 在 iPhone 上会变成彩色表情），颜色跟随歌词色 */
#title .pp { display: flex; align-items: center; }
/* 空格拆句开关：在“返回 · 上一曲 · 下一曲”那一行的上面，和它们一起出现/隐藏 */
#title .ctrls { position: relative; }
#title .ctrls .opts { position: absolute; left: 0; bottom: 100%; padding-bottom: 12px; opacity: 1; }
#title .ctrls .opts { display: flex; align-items: center; gap: 18px; }
/* 歌名输入框：平时就是一行字，点了能改，回车搜索并播放 */
#title .find { margin: 0; }
#title .q { font: inherit; font-size: 13px; letter-spacing: .08em; color: inherit; background: none; border: 0; border-bottom: 1px solid transparent;
  padding: 1px 0; width: 14em; outline: none; cursor: text; opacity: .6; transition: opacity .2s, border-color .2s; user-select: text; -webkit-user-select: text; }
#title .q::placeholder { color: inherit; opacity: .5; }
#title .q:hover { opacity: 1; }
#title .q:focus { opacity: 1; border-bottom-color: currentColor; }
@media (hover: none) { #title .q { font-size: 16px; } } /* 手机上小于 16px 会让 iPhone 放大页面 */
#title .split { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
#title .sw { position: relative; width: 26px; height: 14px; border-radius: 8px; border: 1px solid currentColor; box-sizing: border-box; }
#title .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transition: transform .2s; }
#title.split-on .sw::after { transform: translateX(12px); }
#title .pp svg { width: .7em; height: .84em; fill: currentColor; }
#title .i-pause, #title.is-playing .i-play { display: none; }
#title.is-playing .i-pause { display: block; }

/* 音量：小喇叭 + 滑杆（滑杆平时收起，悬停/聚焦才展开，不挤占一行） */
#title .vol { display: flex; align-items: center; gap: 8px; }
#title .vol .mute { display: flex; align-items: center; cursor: pointer; }
#title .vol svg { width: .95em; height: .95em; fill: currentColor; }
#title .i-mute, #title.muted .i-vol { display: none; }
#title.muted .i-mute { display: block; }
#title .vol .v { width: 72px; opacity: .55; margin: 0; padding: 0; accent-color: currentColor; cursor: pointer;
  transition: opacity .2s; }
#title .vol:hover .v, #title .vol:focus-within .v { opacity: .95; }
@media (max-width: 560px) {
  .line { max-width: 92vw; } /* 手机上给长句多一点宽度，少折行 */
  #title { left: 16px; bottom: 18px; }
  #title .ctrls { gap: 10px; font-size: 14px; }
  #title .vol .v { display: none; } /* 手机用系统音量键，这里只留静音开关 */
}
#title .ctrls span.off { opacity: .2; pointer-events: none; }
/* 展开按钮：鼠标靠悬停；触屏靠点一下歌名加上 .open（触屏的 :hover 会“粘住”，不用它） */
@media (hover: hover) {
  #title:hover { opacity: 1; }
  #title:hover .name { opacity: 0; transform: translateX(6px); }
  #title:hover .ctrls { opacity: 1; transform: none; pointer-events: auto; }
}
#title.open { opacity: 1; }
#title.open .name { opacity: 0; transform: translateX(6px); }
#title.open .ctrls { opacity: 1; transform: none; pointer-events: auto; }
/* 正在输入时鼠标移开也不收起 */
#title:focus-within { opacity: 1; }
#title:focus-within .name { opacity: 0; transform: translateX(6px); }
#title:focus-within .ctrls { opacity: 1; transform: none; pointer-events: auto; }
#player.idle #title:not(:focus-within) { opacity: 0; pointer-events: none; }
#player.idle { cursor: none; }
