:root { --player-height: 88px; --header-height: 76px; }
body[data-route="home"], body[data-route="like"], body[data-route="detail"] { overflow: hidden; }
.home { height: 100dvh; min-height: 0; }
.view {
  position: absolute; inset: var(--header-height) 0 var(--player-height);
  overflow: hidden; scrollbar-width: none; touch-action: none; outline: none;
}
.view:focus-visible { box-shadow: inset 0 0 0 1px var(--line); }
.records {
  display: block; position: absolute; left: 50%; top: 50%; padding: 0;
  transform: translate(-50%, -50%) rotate(45deg); transform-origin: center;
}
.record-item, .record-item:nth-child(2n), .record-item:nth-child(5n + 3) {
  position: absolute; left: 0; top: 0; width: var(--record-size); height: var(--record-size);
  text-align: center; margin: 0; will-change: transform;
}
.record-item button {
  width: 100%; height: 100%; padding: 15%; border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 55%, #80998a 45%);
  backdrop-filter: blur(6px); box-shadow: inset 0 0 0 2px #1a3d2920, 0 7px 24px #173b3309;
  transform: rotate(-45deg); transition: scale .5s var(--ease), background .3s, box-shadow .3s;
}
.record-item button:hover, .record-item button:active:not(:disabled) {
  transform: rotate(-45deg); scale: 1.035;
  box-shadow: inset 0 0 0 2px var(--accent), 0 14px 34px #173b331c;
}
.record-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.record-item button::before { inset: 5%; border: 1px solid #f7f3e270; box-shadow: 0 0 0 5px #f7f3e230; }
.record-item.active button::before, .record-item button:focus-visible::before {
  border: 2px dashed var(--accent); box-shadow: 0 0 0 5px #f7f3e250, 0 0 0 10px #f7f3e220;
  animation: record-halo 20s linear infinite;
}
.record-item .record-number { top: 6.5%; font-size: 9px; color: var(--ink); }
.view-heading {
  position: absolute; left: 7%; top: 9%; width: min(270px, 25vw); padding: 16px 0;
  pointer-events: none; text-shadow: 0 0 18px var(--paper);
}
.view-heading .eyebrow { font-size: 8px; }
.view-heading h1 { margin-top: 18px; font: 23px/1.3 Georgia, serif; }
.view-heading h1 > span { display: block; overflow-wrap: anywhere; font-size: 34px; }
.view-heading h1 i { margin-top: 13px; font-size: 14px; }
.view-heading p { margin-top: 18px; font-size: 9px; }
.view-heading .view-current { gap: 10px; margin-top: 42px; }
.view-heading #view-work-title { display: block; color: var(--accent); font-size: clamp(20px, 2.2vw, 34px); margin-top: 12px; overflow-wrap: anywhere; line-height: 1.3; }
.view-note { position: absolute; right: 7%; bottom: 12%; pointer-events: none; text-align: right; }
.view-note > span { font: 17px "SimSun", serif; letter-spacing: 3px; }
.view-note p { margin: 17px 0 10px; font: 12px Orbitron, sans-serif; }
.view-note b { margin-left: 15px; color: var(--accent); font-size: 20px; }
.view-note small { font-size: 10px; color: var(--muted); }
.catalog-state, body:not([data-route="home"]) .catalog-state { bottom: calc(var(--player-height) + 16px); z-index: 24; }
.catalog-state.success { left: 7%; right: auto; transform: none; max-width: 45%; background: none; border: 0; font-size: 9px; }

body[data-route] .transport {
  display: grid; grid-template-columns: 52px minmax(130px, 1fr) minmax(280px, 1.5fr) minmax(170px, 1fr);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: var(--player-height);
  gap: 15px; padding: 12px 5%; border: 0; border-top: 1px solid var(--line);
  color: var(--ink); background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(24px);
}
body[data-route] .transport[hidden] { display: none; }
.transport .transport-cover { display: block; width: 52px; height: 52px; padding: 0; background: none; border-radius: 8px; overflow: hidden; }
.transport-cover img { width: 100%; height: 100%; object-fit: cover; }
.transport-track { min-width: 0; width: auto; gap: 4px; }
.transport-title { display: block; width: 100%; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.transport-title:hover { color: var(--accent); }
.transport-track small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
#playback-state { font-size: 8px; opacity: .8; }
.transport-center { display: grid; justify-items: center; min-width: 0; gap: 6px; }
.transport-buttons { display: flex; align-items: center; gap: 24px; }
.transport-buttons button { width: 30px; height: 30px; padding: 0; font-size: 11px; }
.transport-buttons .transport-play { width: 35px; height: 35px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 14px; }
.transport-progress { display: grid; grid-template-columns: 35px minmax(0, 1fr) 35px; width: 100%; align-items: center; gap: 9px; }
.transport-progress .time { font: 9px Arial, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.transport #seek { height: 14px; width: 100%; accent-color: var(--accent); }
.transport-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.transport-tools button { width: 30px; height: 30px; font-size: 20px; padding: 0; }
.transport-tools #volume { width: 82px; height: 14px; margin: 0; }
.transport-queue { position: absolute; bottom: calc(100% + 12px); right: 4%; width: min(360px, 92vw); background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px #132b2326; }
.transport-queue header { padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; }
.transport-queue header button { font-size: 22px; }
#queue-tracks { max-height: min(420px, 60dvh); overflow: auto; }
#queue-tracks button { display: grid; gap: 5px; width: 100%; padding: 12px 17px; text-align: left; border-bottom: 1px solid var(--line); }
#queue-tracks strong { font-size: 12px; font-weight: 500; }
#queue-tracks small { color: var(--muted); font-size: 9px; }
#queue-tracks button:hover, #queue-tracks button.active { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
body[data-route] .playback-error { bottom: calc(var(--player-height) + 14px); z-index: 40; }

.detail.route-page { height: 100dvh; min-height: 0; padding: var(--header-height) 0 var(--player-height); overflow: hidden; color: #f4f4eb; background: #142322; }
.immersive-backdrop { position: absolute; inset: -80px; background: var(--cover-art, url('/assets/chihiro043.jpg')) center/cover; filter: blur(65px) brightness(.35) saturate(1.15); pointer-events: none; }
.immersive-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #10252277, #0c1922bb), radial-gradient(ellipse at 25% 45%, #ffffff20, transparent); }
.immersive-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 7%; }
.immersive-heading .back-link { margin: 0; color: #d1ddd4; font: 11px Arial, sans-serif; letter-spacing: 1px; }
.immersive-heading .eyebrow { font-size: 9px; color: #c0cfc4; }
.detail .detail-content { position: relative; z-index: 1; height: calc(100% - 44px); padding: 20px 8% 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(45px, 7vw, 120px); align-items: center; }
.immersive-record { position: relative; min-width: 0; width: 100%; display: grid; justify-items: center; gap: 18px; }
.immersive-cover { width: min(100%, 39dvh, 440px); margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 14px; border: 1px solid #ffffff26; box-shadow: 0 24px 70px #00000050; background: #244034; }
.immersive-cover img { width: 100%; height: 100%; object-fit: cover; }
.playing .immersive-cover img { animation: cover-breathe 16s ease-in-out infinite; }
.detail .detail-heading { position: static; text-align: center; color: #fff9ea; width: 100%; }
.detail .detail-heading h1 { font: 500 clamp(22px, 2.5vw, 40px)/1.22 Arial, "Microsoft YaHei", sans-serif; margin: 0 0 10px; letter-spacing: -.5px; overflow-wrap: anywhere; max-height: 2.5em; overflow: auto; scrollbar-width: none; }
.detail .detail-heading p { font-size: 12px; margin: 0; color: #b1c2b7; letter-spacing: 1px; }
.detail-actions { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 17px; }
.detail .detail-heading .primary-button { min-width: 0; padding: 10px 17px; font-size: 10px; color: #1d342b; background: #eff1e3; }
.detail .text-link { color: #c5d4ca; border-color: #ffffff30; font-size: 10px; padding: 7px 0; }
.detail-meta { width: min(100%, 440px); font-size: 11px; }
.detail-meta summary { color: #9db4a7; cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 5px 0; }
.detail-meta[open] { position: absolute; bottom: 0; z-index: 2; padding: 13px 18px; background: #142c27f5; border: 1px solid #ffffff25; backdrop-filter: blur(16px); }
.detail .detail-meta dl { margin: 0; }
.detail .detail-meta dl > div { grid-template-columns: 95px 1fr; padding: 7px 0; border-color: #ffffff18; }
.detail .detail-meta dt { color: #9db4a7; }
.detail .lyrics { height: 100%; min-height: 0; display: grid; grid-template-rows: 35px minmax(0, 1fr); }
.detail .lyrics-heading { align-items: center; padding-bottom: 12px; border-color: #ffffff20; }
.detail .lyrics-heading span { color: #9db4a7; font-size: 9px; }
.detail #lyrics-content { position: relative; height: 100%; min-height: 0; margin: 0; padding: 45% 15px 45% 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 14%, #000 85%, transparent); }
.detail .lyric-line { color: #95a69f; font-size: clamp(16px, 1.5vw, 22px); padding: 12px 0; line-height: 1.65; transition: color .3s, opacity .3s, transform .3s; }
.detail .lyric-line.current { color: #fffced; font-size: clamp(16px, 1.5vw, 22px); transform: scale(1.04); transform-origin: left center; font-weight: 600; }
.detail .lyric-line.past { opacity: .4; }
.detail .lyric-line:hover { color: #fffced; }
.detail .lyric-line small { color: #a1b4a8; font-size: 12px; font-weight: 400; }
.detail .lyric-empty { color: #e6ebdd; font-size: 22px; margin: 0; }
.detail .lyric-empty small, .detail .lyrics-credit { color: #9db4a7; }
body[data-route="detail"] .topbar { color: #e7ecdf; border-color: #ffffff26; background: #172921dc; }
body[data-route="detail"] .topbar button, body[data-route="detail"] .brand { color: #e7ecdf; }
body[data-route="detail"] .transport { color: #e7ecdf; background: #172921f0; border-color: #ffffff20; }
body[data-route="detail"] .transport-track small { color: #a3b8aa; }
body[data-route="detail"] .transport-play { background: #eef1e6; color: #172921; }

.about.route-page { display: block; position: relative; padding: 0; min-height: 100dvh; }
.about-stage { height: 100dvh; position: sticky; top: 0; overflow: hidden; }
.timeline-tracks { position: absolute; inset: var(--header-height) 0 var(--player-height); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(10% - 1px), var(--line) calc(10% - 1px), var(--line) 10%); }
.timeline-playhead { position: absolute; top: var(--header-height); bottom: calc(var(--player-height) + 45px); left: 50%; border-left: 1px solid var(--ink); opacity: .55; pointer-events: none; z-index: 2; }
.timeline-playhead span { position: absolute; bottom: -8px; left: -8px; font-size: 17px; }
.about-rail { position: absolute; display: flex; align-items: stretch; gap: 8vw; top: var(--header-height); height: calc(100dvh - var(--header-height) - var(--player-height) - 55px); width: max-content; padding: 0 12vw; will-change: transform; }
.about-pane { flex: 0 0 auto; width: 55vw; min-width: 300px; max-width: 850px; position: relative; padding: 8vh 0 45px; opacity: .12; transition: opacity .65s; }
.about-pane.is-visible { opacity: 1; }
.about-pane-index { position: absolute; bottom: 10px; font: 9px Orbitron, sans-serif; letter-spacing: 1px; color: var(--muted); }
.about-introduction { width: 74vw; max-width: none; padding-top: 10vh; }
.about-introduction h1 { margin: 25px 0; font: 700 clamp(45px, 6.5vw, 110px)/1.1 Orbitron, Arial, sans-serif; letter-spacing: -3px; max-width: 65vw; overflow-wrap: anywhere; }
.about-introduction h1 i { display: block; font: 26px "SimSun", serif; color: var(--accent); margin-top: 24px; letter-spacing: 4px; }
.about-introduction > p { color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.timeline-wave { width: 65%; height: 60px; margin-top: 6vh; background: repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 5px); clip-path: polygon(0 40%, 8% 20%, 14% 35%, 21% 0, 27% 30%, 34% 10%, 41% 40%, 49% 5%, 55% 30%, 63% 20%, 71% 0, 78% 30%, 87% 10%, 94% 25%, 100% 40%, 100% 60%, 94% 75%, 87% 90%, 78% 70%, 71% 100%, 63% 80%, 55% 70%, 49% 95%, 41% 60%, 34% 90%, 27% 70%, 21% 100%, 14% 65%, 8% 80%, 0 60%); opacity: .55; }
.about-portrait { width: 38vw; max-width: 580px; padding-top: 7vh; }
.about-portrait figure { width: min(31vw, 38dvh); aspect-ratio: 1; margin: 24px 0; border: 1px solid var(--line); padding: 8px; background: var(--panel); box-shadow: 12px 12px 0 color-mix(in srgb, var(--accent) 18%, transparent); }
.about-portrait figure img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .artist-identity { display: block; margin: 25px 0; }
.about-portrait .artist-identity > span { font-size: 19px; }
.about-biography { padding-top: 7vh; }
.about-biography h2, .discography-heading h2 { font: 34px/1.4 "SimSun", serif; margin: 21px 0; letter-spacing: 3px; }
.about-biography #artist-description { max-height: 24dvh; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 20px; font-size: 13px; line-height: 2; }
.about-biography .about-credit { margin-top: 24px; }
.about-discography { display: flex; width: auto; max-width: none; padding-top: 3vh; gap: 45px; }
.discography-heading { width: 240px; padding-top: 3vh; }
.discography-heading h2 { white-space: nowrap; }
.discography-heading p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.about-releases { display: flex; align-items: flex-start; gap: 50px; padding-top: 2vh; }
.release-card { width: clamp(150px, 16vw, 235px); display: grid; gap: 12px; margin-top: calc(var(--lane) * 6vh); }
.release-card time { font: 10px Orbitron, sans-serif; color: var(--accent); }
.release-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); padding: 5px; background: var(--panel); transition: transform .4s var(--ease); }
.release-card:hover img { transform: translateY(-7px); }
.release-card strong { font-size: 14px; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.release-card small { font-size: 9px; color: var(--muted); }
.timeline-end { align-self: center; display: grid; gap: 25px; width: 180px; font-size: 20px; line-height: 1.8; margin: 0 10vw 0 50px; }
.timeline-end span { color: var(--accent); font-size: 50px; }
.about-timeline-footer { position: absolute; bottom: var(--player-height); left: 5%; right: 5%; height: 45px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.about-timeline-footer::before { content: ""; height: 2px; background: var(--accent); width: calc(var(--timeline-progress, 0) * 100%); position: absolute; left: 0; top: -1px; }
.about-timeline-footer nav { display: flex; gap: 22px; }
.about-timeline-footer button { padding: 5px 0; font-size: 10px; color: var(--muted); }
.about-timeline-footer button:hover { color: var(--accent); }
.about-timeline-footer > span { font: 9px Orbitron, sans-serif; white-space: nowrap; }
#about-progress { margin-left: 18px; color: var(--accent); }
.contact { padding-bottom: calc(var(--player-height) + 35px); }

@keyframes record-halo { to { rotate: 360deg; } }
@keyframes cover-breathe { 50% { transform: scale(1.035); } }
@media (max-width: 1000px) {
  body[data-route] .transport { padding: 12px 3%; gap: 12px; grid-template-columns: 48px minmax(90px, 1fr) minmax(230px, 1.6fr) auto; }
  .transport-tools #volume { width: 55px; }
  .view-heading { left: 5%; width: 23vw; }
  .view-heading h1 > span { font-size: 26px; }
  .view-note { right: 5%; }
  .detail .detail-content { padding: 15px 6% 22px; gap: 7%; }
  .about-biography { width: 65vw; }
}
@media (max-width: 600px) {
  :root { --player-height: calc(108px + env(safe-area-inset-bottom, 0px)); --header-height: 70px; }
  body[data-route] .transport { height: var(--player-height); padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: 40px 38px; gap: 6px 10px; }
  .transport .transport-cover { width: 40px; height: 40px; border-radius: 5px; }
  .transport-title { font-size: 11px; }
  .transport-track small { font-size: 8px; }
  #playback-state { display: none; }
  .transport-center { display: contents; }
  .transport-buttons { grid-column: 3; grid-row: 1; gap: 7px; }
  .transport-buttons button { width: 24px; height: 28px; font-size: 9px; }
  .transport-buttons .transport-play { width: 32px; height: 32px; font-size: 12px; }
  .transport-progress { grid-column: 1 / -1; grid-row: 2; padding-right: 38px; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 8px; }
  .transport-tools { position: absolute; right: 17px; bottom: calc(17px + env(safe-area-inset-bottom, 0px)); }
  .transport-tools #volume, #transport-mute { display: none; }
  .transport-tools button { width: 24px; height: 24px; font-size: 22px; }
  .view-heading { top: 3%; left: 6%; width: 62%; padding: 0; }
  .view-heading .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .view-heading h1 { font-size: 16px; margin-top: 12px; }
  .view-heading h1 > span { display: inline; font-size: 19px; }
  .view-heading h1 i { font-size: 11px; margin-top: 7px; }
  .view-heading p { font-size: 8px; margin-top: 10px; }
  .view-heading .view-current { margin-top: 16px; }
  .view-heading #view-work-title { font-size: 17px; margin-top: 6px; max-width: 170px; }
  .view-note { right: 6%; bottom: 7%; }
  .view-note > span { font-size: 12px; letter-spacing: 1px; }
  .view-note p { font-size: 9px; margin-top: 12px; }
  .view-note small { font-size: 8px; }
  .record-item .record-number { font-size: 7px; }
  .catalog-state.success { font-size: 7px; max-width: 62%; left: 6%; bottom: calc(var(--player-height) + 7px); }
  .immersive-heading { height: 32px; padding: 0 6%; }
  .immersive-heading .back-link { font-size: 10px; }
  .immersive-heading .eyebrow { font-size: 7px; }
  .detail .detail-content { height: calc(100% - 32px); padding: 7px 7% 10px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 15px; }
  .immersive-record { gap: 10px; }
  .immersive-cover { width: min(43vw, 24dvh); border-radius: 9px; }
  .detail .detail-heading h1 { font-size: 21px; margin-bottom: 5px; }
  .detail .detail-heading p { font-size: 10px; letter-spacing: .5px; }
  .detail-actions { margin-top: 10px; gap: 20px; }
  .detail .detail-heading .primary-button { padding: 7px 12px; font-size: 9px; }
  .detail-meta { display: none; }
  .detail .lyrics { grid-template-rows: 25px minmax(0, 1fr); }
  .detail .lyrics-heading { padding-bottom: 6px; }
  .detail #lyrics-content { padding: 35% 8px 35% 0; }
  .detail .lyric-line, .detail .lyric-line.current { font-size: 16px; padding: 9px 0; text-align: center; transform-origin: center; }
  .detail .lyric-line small { font-size: 10px; }
  .detail .lyric-empty { font-size: 18px; text-align: center; }
  .about-rail { padding: 0 9vw; gap: 18vw; }
  .about-pane { width: 84vw; min-width: 0; padding-top: 7vh; }
  .about-introduction { width: 90vw; padding-top: 11vh; }
  .about-introduction h1 { max-width: 90vw; font-size: 42px; letter-spacing: -2px; margin-top: 30px; }
  .about-introduction h1 i { font-size: 21px; letter-spacing: 1px; }
  .about-introduction .eyebrow { font-size: 7px; }
  .timeline-wave { width: 80%; margin-top: 7vh; }
  .about-portrait figure { width: min(68vw, 35dvh); }
  .about-biography #artist-description { max-height: 26dvh; font-size: 12px; }
  .about-biography h2 { font-size: 29px; }
  .about-discography { width: auto; gap: 30px; padding-top: 4vh; }
  .discography-heading { width: 210px; }
  .discography-heading h2 { font-size: 26px; }
  .about-releases { gap: 35px; }
  .release-card { width: 150px; }
  .about-timeline-footer { left: 5%; right: 5%; height: 45px; gap: 8px; }
  .about-timeline-footer nav { gap: 12px; }
  .about-timeline-footer button { font-size: 9px; }
  .about-timeline-footer > span { font-size: 0; }
  #about-progress { font-size: 9px; margin-left: 0; }
}
@media (max-height: 680px) and (max-width: 600px) {
  .immersive-cover { width: min(30vw, 19dvh); }
  .detail-actions { display: none; }
  .detail .detail-heading h1 { font-size: 18px; }
  .immersive-record { gap: 7px; }
  .about-pane { padding-top: 3vh; }
  .about-introduction h1 { font-size: 36px; margin: 16px 0; }
  .about-introduction h1 i { font-size: 18px; }
  .timeline-wave { margin-top: 3vh; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  .record-item.active button::before, .playing .immersive-cover img { animation: none; }
  .record-item button, .about-pane, .release-card img, .detail .lyric-line { transition: none; }
}
