/* The transparent WASM stage fills the viewport, integrated with the original night scene. */
.lyric-atmosphere { position: absolute; z-index: 18; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: normal; transition: opacity .45s ease; }
.lyric-atmosphere.is-visible { opacity: 1; }
#folia-canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-copy, .performer, .road-sign-prop, .stage-counter, .backdrop-night { transition: opacity .8s ease; }
.music-focus .scene-copy { opacity: 0; pointer-events: none; }
.music-focus .performer { opacity: .13; }
.music-focus .road-sign-prop, .music-focus .stage-counter { opacity: .07; }
.music-focus .backdrop-night { opacity: .32; }
.music-player { position: fixed; z-index: 120; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(920px, calc(100vw - 64px)); color: #e8e7e2; font: 12px/1.5 "DM Mono", "Noto Serif SC", serif; }
.player-bar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(220px,1.2fr) auto; align-items: center; gap: 28px; min-height: 92px; padding: 12px 22px 12px 14px; border: 1px solid #c9d2df24; border-radius: 18px; background: linear-gradient(130deg, #111724ec, #0a0e17f2); box-shadow: 0 16px 65px #0009, inset 0 1px #ffffff07; backdrop-filter: blur(24px); }
.track-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-cover { flex: 0 0 104px; width: 104px; aspect-ratio: 16 / 9; height: auto; box-sizing: border-box; border-radius: 6px; overflow: hidden; position: relative; display: block; background: radial-gradient(ellipse at 60% 20%,#667283,#273041 70%); border: 1px solid #ffffff20; color: inherit; text-decoration: none; }
.track-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.track-bilibili, .track-row-bili { display: inline-flex; align-items: center; justify-content: center; color: #c9b48a; text-decoration: none; }
.track-bilibili:hover, .track-row-bili:hover { color: #ed6a60; }
.track-bilibili svg, .track-row-bili svg { width: 15px; height: 16px; display: block; }
.track-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.track-info small { font-size: 9px; letter-spacing: .18em; color: #9499a6; display: flex; align-items: center; gap: 8px; }
.track-info i { width: 4px; height: 4px; border-radius: 50%; background: #636975; }
.is-playing .track-info i { background: var(--red-bright); box-shadow: 0 0 10px #cf2f258c; }
.track-info strong { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info > span { color: #969daa; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.music-player button { font: inherit; color: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.music-player button:disabled { opacity: .35; cursor: default; }
.icon-button { width: 34px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border-radius: 8px; flex-shrink: 0; transition: background .2s, color .2s; }
.icon-button svg { width: 19px; height: 19px; flex-shrink: 0; }
.icon-button:hover { background: #ffffff0d; color: #ed6a60; }
.icon-button[aria-pressed="true"], .icon-button[aria-expanded="true"] { color: #ed6a60; }
.music-player :focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.transport-buttons { display: flex; align-items: center; justify-content: center; gap: 20px; }
.play-button { width: 36px; height: 36px; padding: 0; flex: 0 0 36px; border-radius: 50%; background: #eeeae0; color: #111622 !important; display: grid; place-items: center; box-shadow: 0 0 18px #f5eadb12; }
.play-button:hover { background: #ed6a60; }
.play-button svg { display: block; width: 20px; height: 20px; }
.seek-row { display: flex; gap: 10px; align-items: center; margin-top: 9px; font-size: 9px; font-variant-numeric: tabular-nums; color: #8993a4; }
.seek-row span { min-width: 28px; }
.seek-row span:last-child { text-align: right; }
.music-player input[type="range"] { appearance: none; -webkit-appearance: none; height: 3px; border: 0; border-radius: 4px; background: linear-gradient(to right,var(--red-bright) var(--progress,0%),#ffffff24 var(--progress,0%)); cursor: pointer; min-width: 0; margin: 8px 0; }
.music-player input[type="range"]::-webkit-slider-thumb { appearance: none; width: 9px; height: 9px; border-radius: 50%; background: #ed6a60; }
.music-player input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: #ed6a60; }
#music-seek { flex: 1; width: 100%; }
.player-options { display: flex; align-items: center; gap: 3px; }
.mode-button { position: relative; }
.mode-one { position: absolute; font: 8px "DM Mono",monospace; top: 13px; left: 15px; background: #0e131e; }
.lyric-button { font-size: 17px !important; }
.volume-control { display: flex; align-items: center; gap: 3px; color: #949dab; margin: 0 4px; }
#music-volume { width: 48px; --progress: 65%; }
.playlist-panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(400px,100%); border: 1px solid #c9d2df24; border-radius: 16px; background: #0f1522f5; padding: 12px 12px 10px; box-shadow: 0 10px 60px #0009; backdrop-filter: blur(28px); max-height: calc(100dvh - 168px); overflow-y: auto; overscroll-behavior: contain; }
[hidden] { display: none !important; }
.playlist-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.playlist-heading small { font-size: 8px; color: #8b95a7; letter-spacing: .15em; }
.playlist-heading h2 { font-size: 15px; font-weight: 400; margin: 2px 0 0; }
#track-count { color: #8993a4; font-size: 11px; margin-left: 8px; }
#track-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; max-height: min(52vh, 28rem); overflow-y: auto; }
.track-item { display: flex; align-items: center; gap: 2px; min-width: 0; border-radius: 8px; }
.track-item:hover { background: #ffffff06; }
.track-item:has([aria-current="true"]) { color: #ed6a60; background: #cf2f2514; }
.track-thumb { flex: 0 0 64px; width: 64px; aspect-ratio: 16 / 9; height: auto; box-sizing: border-box; border-radius: 4px; overflow: hidden; position: relative; display: block; background: radial-gradient(ellipse at 60% 20%,#667283,#273041 70%); border: 1px solid #ffffff18; color: inherit; text-decoration: none; }
.track-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.track-row { flex: 1; width: auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; text-align: left; background: transparent; }
.track-row:hover { background: transparent; }
.track-row[aria-current="true"] { color: inherit; background: transparent; }
.track-number { color: #7c879a; font-size: 9px; min-width: 16px; }
.track-item:has([aria-current="true"]) .track-number { color: #ed6a60; }
.track-row-info { display: grid; gap: 1px; min-width: 0; }
.track-row strong { font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row small { font-size: 9px; color: #8e97a7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-indicator { margin-left: auto; font-size: 11px; min-width: 12px; }
.track-row-bili { flex: 0 0 auto; padding: 8px 7px; }
.track-credits { border-top: 1px solid #ffffff14; margin-top: 10px; padding-top: 10px; }
.track-credits h3 { margin: 0 0 8px; color: #e8e2d4; font-size: 12px; font-weight: 400; }
.track-credits dl { display: grid; gap: 4px; margin: 0; font-size: 11px; }
.credit-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.credit-line dt { color: #8e97a7; }
.credit-line dt::after { content: " "; }
.credit-line dt:not(:first-child)::before { content: "·"; margin-right: 10px; color: #6f7684; }
.credit-line dd { margin: 0; color: #c4c8d0; overflow-wrap: anywhere; }
#lyric-status { color: #929cac; font-size: 10px; margin: 10px 0 0; }
.player-notice { position: absolute; bottom: calc(100% + 8px); left: 18px; max-width: calc(100% - 36px); border-radius: 7px; background: #101623ed; font-size: 11px; color: #e3c694; padding: 7px 12px; }
.player-notice:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 780px) {
  .music-player { width: calc(100vw - 28px); bottom: max(14px, env(safe-area-inset-bottom)); }
  .player-bar { grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; padding: 12px 14px; border-radius: 15px; }
  .track-cover { flex-basis: 72px; width: 72px; height: auto; border-radius: 5px; }
  .track-bilibili { padding: 8px 4px; margin: -8px -4px; }
  .track-info { gap: 1px; }
  .track-info strong { font-size: 13px; }
  .track-info small { font-size: 7px; }
  .track-info > span { font-size: 9px; }
  .transport-main { display: contents; }
  .transport-buttons { grid-column: 2; grid-row: 1; gap: 5px; }
  .seek-row { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .player-options { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  .volume-control { margin-left: auto; margin-right: 16px; }
  #music-volume { width: 64px; }
  .icon-button { height: 30px; }
  .mode-one { top: 10px; }
  .playlist-panel { padding: 12px; max-height: calc(100dvh - 220px); }
}
@media (prefers-reduced-motion: reduce) {
  .lyric-atmosphere, .scene-copy, .performer, .road-sign-prop, .stage-counter, .backdrop-night { transition: none; }
}
