.soundtrack { background: var(--cream); border-block: 1px solid #11265722; }
.sound-layout { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(32px,7vw,104px); padding-block: clamp(52px,6vw,90px); max-width: 1120px; align-items: center; }
.sound-deck h2 { color: var(--navy); font-size: clamp(36px,4.2vw,66px); line-height: 1.1; margin: 0 0 24px; }
.sound-sleeve { width: min(100%,355px); background: #ffda46; border: 2px solid var(--navy); box-shadow: 5px 5px 0 var(--navy); }
.sound-sleeve img { width: 100%; aspect-ratio: 1; }
.sound-player { max-width: 360px; margin: 23px 0 0; }
.sound-readout,.sound-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sound-readout strong { font-size: clamp(16px,2vw,21px); }
.sound-clock,.sound-row time,.sound-index,.sound-list-head>span { font: 600 .86rem/1.3 system-ui,sans-serif; font-variant-numeric: tabular-nums; }
.sound-clock { white-space: nowrap; color: #44516e; }
.sound-seek { display: block; width: 100%; margin: 0; height: 32px; cursor: pointer; accent-color: var(--blue); }
.sound-seek:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.sound-keys { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sound-key { border: 0; margin: 0; display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; color: var(--navy); background: transparent; border-radius: 50%; }
.sound-key:hover { background: #11265713; }
.sound-key.main-play { width: 60px; height: 60px; color: white; background: var(--blue); }
.sound-key.main-play:hover { background: var(--blue-dark); }
.sound-icon { display: block; position: relative; width: 16px; height: 16px; }
.icon-toggle::before,.icon-next::before,.icon-previous::before { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(15% 0,100% 50%,15% 100%); }
.icon-next::before,.icon-previous::before { right: 3px; }
.icon-previous { transform: rotate(180deg); }
.icon-next::after,.icon-previous::after { content: ''; position: absolute; right: 0; top: 0; width: 3px; height: 16px; background: currentColor; }
html[data-sound-playing] .icon-toggle::before { clip-path: none; background: linear-gradient(to right,transparent 6%, currentColor 6% 37%, transparent 37% 61%, currentColor 61% 92%,transparent 92%); }
.sound-list-head { border-bottom: 2px solid var(--navy); padding: 0 8px 13px; }
.sound-list-head h3 { font-size: clamp(23px,2.5vw,34px); }
.sound-list-head>span { white-space: nowrap; }
.sound-list ol { list-style: none; margin: 0; padding: 0; }
.sound-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto 37px; align-items: center; gap: 10px; padding: 11px 8px; min-height: 54px; border-bottom: 1px solid #1126573b; }
.sound-row:hover,.sound-row:focus-visible { background: #ffeaa6; }
.sound-row[aria-current=true] { background: #ffdf69; box-shadow: inset 3px 0 var(--navy); }
.sound-index { text-align: center; color: #53617d; }
html[data-sound-playing] .sound-row[aria-current=true] .sound-index { color: var(--blue-dark); }
.sound-name { font-size: clamp(15px,1.55vw,20px); font-weight: 900; line-height: 1.4; }
.sound-kind { font-size: .76rem; color: #424f6d; }
.sound-row time { text-align: right; }
.sound-error:not(:empty) { font-size: .9rem; padding: 12px; }
/* Compact, time-synced lyrics remain visible when the full sheet is closed. */
.sound-lyrics { margin-top: 26px; border: 2px solid var(--navy); border-radius: 20px; background: #fff; box-shadow: 4px 5px 0 var(--navy); overflow: hidden; }
.sound-lyrics-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: #d9efff; }
.sound-lyrics-label { flex: 0 0 auto; padding: 4px 10px; border: 1px solid var(--navy); border-radius: 7px; background: var(--yellow); font-size: 13px; font-weight: 900; }
.sound-lyrics-head h4 { min-width: 0; margin: 0; font-size: 16px; line-height: 1.5; }
.sound-meter { display: flex; align-items: center; justify-content: space-between; width: 25px; height: 23px; flex: none; margin-left: auto; }
.sound-meter i { width: 4px; height: 14px; border-radius: 4px; background: var(--blue); transform: scaleY(.4); }
.sound-meter i:nth-child(2) { height: 22px; animation-delay: -.17s !important; }
.sound-meter i:nth-child(3) { height: 17px; animation-delay: -.37s !important; }
.sound-meter i:nth-child(4) { height: 20px; animation-delay: -.52s !important; }
.sound-current { min-height: 160px; padding: 22px 23px 20px; background: linear-gradient(125deg,#112657,#23439b); color: #fff; font-family: 'Hiragino Sans','Yu Gothic',Meiryo,sans-serif; }
.sound-current-label { display: block; min-height: 20px; margin-bottom: 10px; color: #bfceef; font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sound-current [data-current-line] { min-height: 34px; font-size: clamp(19px,2vw,24px); font-weight: 700; line-height: 1.6; }
.sound-current.is-singing [data-current-line] { color: #ffe16b; text-shadow: 0 2px 18px #ffdb5640; }
.sound-up-next { margin-top: 9px; min-height: 25px; font-size: 14px; line-height: 1.7; color: #c9d6f4; }
.sound-lyrics-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 48px; padding: 10px 15px; border: 0; color: var(--navy); background: #fff; font-size: 13px; font-weight: 900; }
.sound-lyrics-toggle:hover { background: #fff1c4; }
.lyrics-chevron { width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.lyrics-hide { display: none; }
.sound-lyrics-toggle[aria-expanded=true] .lyrics-hide { display: inline; }
.sound-lyrics-toggle[aria-expanded=true] .lyrics-show { display: none; }
.sound-lyrics-toggle[aria-expanded=true] .lyrics-chevron { transform: rotate(225deg); }
.sound-lyrics-expand { display: grid; grid-template-rows: 0fr; opacity: 0; }
.sound-lyrics-toggle[aria-expanded=true] + .sound-lyrics-expand { grid-template-rows: 1fr; opacity: 1; }
.sound-lyrics-clip { min-height: 0; overflow: hidden; }
.sound-lyrics-body { position: relative; height: 300px; padding: 10px; border-top: 1px solid #dce3ef; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-color: #637da8 #eef5fc; font: 500 15px/1.8 'Hiragino Sans','Yu Gothic',Meiryo,sans-serif; }
.sound-lyric-line { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 10px; align-items: baseline; width: 100%; min-height: 49px; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: #45526e; text-align: left; font: inherit; }
.sound-lyric-time { font: 600 11px/1.5 system-ui,sans-serif; color: #6f7c96; font-variant-numeric: tabular-nums; }
.sound-lyric-line.is-past { color: #69758c; }
.sound-lyric-line:hover { color: var(--navy); background: #eef5ff; }
.sound-lyric-line.is-current { color: #153cbb; background: #fff0b2; box-shadow: inset 3px 0 #eabf23; font-weight: 700; }
.sound-follow-wrap { display: grid; place-items: center; height: 48px; border-top: 1px solid #e5eaf2; background: #f7faff; }
.sound-follow { min-height: 44px; padding: 6px 18px; border: 0; background: transparent; color: #52617c; font-size: 12px; }
.sound-lyrics.is-detached .sound-follow { color: var(--blue); font-weight: 900; }
.sound-lyrics button:focus-visible,.sound-lyrics-body:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
html[data-motion=on] .sound-lyrics-expand { transition: grid-template-rows .48s var(--ease),opacity .32s ease; }
html[data-motion=on] :is(.sound-row,.sound-key,.sound-lyrics-toggle,.lyrics-chevron,.sound-lyric-line,.sound-follow) { transition: transform .24s var(--ease),color .22s,background .22s,box-shadow .3s; }
html[data-motion=on] .sound-row:hover { transform: translateX(4px); }
html[data-motion=on] .sound-key:hover { transform: translateY(-3px); }
html[data-motion=on] .sound-key:active { transform: translateY(1px) scale(.94); }
html[data-motion=on][data-sound-playing] .sound-meter i { animation: sound-level .8s ease-in-out infinite alternate; }
html[data-motion=on][data-sound-playing] .main-play { animation: sound-halo 2.2s ease-out infinite; }
html[data-page-hidden=true] :is(.sound-meter i,.main-play) { animation-play-state: paused !important; }
@keyframes sound-level { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes sound-halo { 0%,100% { box-shadow: 0 0 0 0 #254edd00; } 30% { box-shadow: 0 0 0 7px #254edd1a; } 75% { box-shadow: 0 0 0 12px #254edd00; } }
@media(prefers-reduced-motion:reduce) { .soundtrack * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sound-shortcut { display: inline-flex; align-items: center; gap: 0; font-weight: 900; }
.sound-header-ready .sound-shortcut { margin-inline: -4px; }
.sound-shortcut .quick-play { display: none; color: white; width: 36px; height: 44px; border-radius: 14px; }
.sound-header-ready .quick-play { display: inline-grid; }
.sound-shortcut .quick-play:hover { background: #ffffff25; }
.sound-shortcut .quick-play .sound-icon { width: 12px; height: 12px; }
.nav nav .sound-shortcut a { padding-inline-end: 6px; min-width: 34px; justify-content: center; }
@media(max-width:760px) {
  .sound-layout { grid-template-columns: 1fr; gap: 30px; max-width: 540px; }
  .sound-deck { display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); gap: 15px 18px; align-items: center; }
  .sound-deck h2 { grid-column: 1/-1; margin: 0 0 3px; font-size: clamp(33px,7.5vw,48px); }
  .sound-player { margin: 0; }
  .sound-readout { align-items: flex-start; flex-direction: column; gap: 3px; }
  .sound-keys { justify-content: space-between; gap: 0; }
  .sound-key.main-play { width: 46px; height: 46px; }
  .sound-row { min-height: 55px; gap: 8px; grid-template-columns: 20px minmax(0,1fr) auto 33px; }
  .sound-kind { font-size: .68rem; }
  .sound-name { font-size: 15px; }
  .sound-shortcut .quick-play { width: 30px; }
  .sound-lyrics { margin-top: 24px; }
  .sound-lyrics-head { padding: 12px 15px; gap: 10px; }
  .sound-lyrics-head h4 { font-size: 15px; }
  .sound-lyrics-body { height: 275px; padding: 7px; font-size: 13px; }
  .sound-current { min-height: 162px; padding: 20px 17px; }
  .sound-current [data-current-line] { font-size: 18px; }
  .sound-up-next { font-size: 12px; }
  .sound-lyric-line { grid-template-columns: 30px minmax(0,1fr); gap: 5px; padding-inline: 8px; }
}
@media(max-width:430px) {
  .sound-row { grid-template-columns: 24px minmax(0,1fr) 39px; gap: 1px 10px; padding-block: 7px; }
  .sound-index,.sound-row time { grid-row: span 2; }
  .sound-kind { grid-column: 2; grid-row: 2; }
  .sound-row time { grid-column: 3; grid-row: 1/3; }
}
.nav nav .lang,.sound-shortcut a { white-space: nowrap; }
@media(max-width:470px) {
  html[lang=en] .nav nav>a[href="#view"] { display: none; }
  .nav nav { gap: 8px; }
}

.sound-welcome{width:min(460px,calc(100% - 36px));max-height:calc(100dvh - 36px);padding:30px;border:2px solid var(--navy);border-radius:28px;background:var(--cream);color:var(--navy);box-shadow:0 10px 0 #11265777,0 24px 80px #07184544;text-align:center;overflow:auto}
.sound-welcome::backdrop{background:#10265799;backdrop-filter:blur(6px)}
.sound-welcome-art{width:116px;height:116px;object-fit:cover;margin:0 auto 24px;border:2px solid var(--navy);border-radius:18px;box-shadow:4px 4px 0 var(--yellow);transform:rotate(-5deg)}
.sound-welcome h2{font-size:28px;line-height:1.4;letter-spacing:-.04em}
.sound-welcome p{font-size:13px;line-height:1.7;margin-top:12px}
.sound-welcome-actions{display:grid;gap:13px;margin-top:25px}
.sound-welcome-actions button{min-height:54px;border:2px solid var(--navy);border-radius:16px;font-weight:900;font-size:17px;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.sound-welcome-on{background:var(--yellow);color:var(--navy);box-shadow:0 4px 0 var(--navy)}
.sound-welcome-on span{margin-left:14px;font:14px/1 sans-serif}
.sound-welcome-off{background:white;color:var(--navy)}
.sound-welcome-actions button:hover{transform:translateY(-2px)}
html.sound-welcome-open{overflow:hidden}
html[data-motion=on] .sound-welcome[open]{animation:arrive .3s var(--ease) both}
@media(max-width:430px){.sound-welcome{padding:26px 20px}.sound-welcome h2{font-size:25px}.sound-welcome-art{width:100px;height:100px;margin-bottom:20px}.sound-welcome p{font-size:12px}}
@media(max-height:540px){.sound-welcome{padding:20px}.sound-welcome-art{display:none}.sound-welcome-actions{margin-top:18px;gap:10px}.sound-welcome h2{font-size:25px}}

/* Header music panel: the same player and timed lyrics, within reach on every section. */
.sound-panel-toggle { display: none; align-items: center; gap: 8px; min-width: 60px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 12px; color: white; background: transparent; font: inherit; cursor: pointer; }
.sound-header-ready .sound-panel-toggle { display: inline-flex; }
.sound-panel-toggle:hover,.sound-panel-toggle[aria-expanded=true] { background: #ffffff25; }
.sound-panel-toggle[aria-expanded=true] .lyrics-chevron { transform: rotate(225deg); }
.sound-shortcut .quick-play { width: 44px; }
.sound-popover { position: fixed; z-index: 60; top: 86px; right: max(20px,calc((100vw - 1240px)/2)); width: 380px; max-height: calc(100dvh - 106px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 16px 20px 10px; border: 2px solid var(--navy); border-radius: 24px; background: var(--cream); color: var(--navy); box-shadow: 5px 7px 0 #112657,0 16px 55px #09153840; visibility: hidden; opacity: 0; transform: translateY(-12px) scale(.97); transform-origin: top right; font-size: 14px; font-weight: 500; }
.sound-popover.is-open { visibility: visible; opacity: 1; transform: none; }
.sound-popover-top { display: flex; justify-content: space-between; align-items: center; margin: -9px -8px 8px 0; }
.sound-popover-label { font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.sound-popover-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1126570c; color: var(--navy); font: 30px/1 system-ui,sans-serif; }
.sound-popover-close:hover { background: #1126571b; }
.sound-mini-track { display: flex; align-items: center; gap: 14px; }
.sound-mini-track img { flex: none; width: 56px; height: 56px; border: 1px solid var(--navy); border-radius: 12px; box-shadow: 2px 3px 0 var(--yellow); }
.sound-mini-track>div { min-width: 0; }
.sound-mini-caption { display: block; margin-bottom: 4px; font-size: 10px; color: #53617d; letter-spacing: .04em; }
.sound-mini-track strong { display: block; font-size: 19px; font-weight: 900; line-height: 1.4; }
.sound-mini-keys { gap: 24px; margin: 14px 0 17px; }
.sound-mini-keys .main-play { width: 52px; height: 52px; }
.sound-volume { padding: 13px 14px 5px; border: 1px solid #c9d6e8; border-radius: 16px; background: white; }
.sound-volume-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 900; }
.sound-volume-heading output { font: 700 12px/1 system-ui,sans-serif; font-variant-numeric: tabular-nums; }
.sound-volume-controls { display: flex; align-items: center; gap: 8px; }
.sound-mute { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -6px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); flex: none; }
.sound-mute:hover { background: #edf3ff; }
.volume-cross,.sound-mute[aria-pressed=true] .volume-waves { display: none; }
.sound-mute[aria-pressed=true] .volume-cross { display: inline; }
#bgm-volume { --volume: 60%; width: 100%; min-width: 0; height: 44px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
#bgm-volume::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right,var(--blue) var(--volume),#dee6f3 var(--volume)); }
#bgm-volume::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(to right,var(--blue) var(--volume),#dee6f3 var(--volume)); }
#bgm-volume::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 2px solid var(--blue); border-radius: 50%; background: white; box-shadow: 0 2px 5px #254edd30; }
#bgm-volume::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--blue); border-radius: 50%; background: white; box-shadow: 0 2px 5px #254edd30; }
.sound-popover .sound-lyrics { margin-top: 16px; border: 0; border-radius: 16px; box-shadow: none; }
.sound-popover .sound-lyrics-head { padding: 10px 14px; }
.sound-popover .sound-lyrics-head h4 { display: none; }
.sound-popover .sound-lyrics-label { padding: 0; background: none; border: 0; font-size: 11px; }
.sound-popover .sound-current { min-height: 133px; padding: 15px 17px; }
.sound-popover .sound-current-label { margin-bottom: 5px; }
.sound-popover .sound-current [data-current-line] { font-size: 18px; line-height: 1.6; }
.sound-popover .sound-up-next { font-size: 12px; margin-top: 6px; }
.sound-popover .sound-lyrics-body { height: 230px; padding: 6px; font-size: 13px; }
.sound-popover .sound-lyric-line { grid-template-columns: 28px minmax(0,1fr); gap: 6px; padding-inline: 8px; }
.nav nav a.sound-playlist-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; font-size: 12px; }
.nav nav a.sound-playlist-link::after { display: none; }
.sound-playlist-link:hover { color: var(--blue); }
.sound-panel-toggle:focus-visible,.sound-popover button:focus-visible,#bgm-volume:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.sound-popover button:focus-visible,#bgm-volume:focus-visible { outline-color: var(--blue); }
html[data-motion=on] .sound-popover { transition: opacity .22s ease,transform .3s var(--ease),visibility .3s; }
html[data-motion=on] .sound-popover.is-open { transition: opacity .22s ease,transform .3s var(--ease),visibility 0s; }
@media(max-width:760px) {
 .sound-popover { top: 73px; right: 14px; width: min(380px,calc(100% - 28px)); max-height: calc(100dvh - 91px); padding-inline: 16px; }
 .nav nav { gap: 8px; }
 .nav nav>a[href="#view"] { display: none; }
 .sound-panel-toggle { min-width: 56px; gap: 6px; padding-inline: 6px; }
}
@media(max-width:350px) { .studio { font-size: 13px; }.nav { gap: 5px; }.nav nav { gap: 5px; }.nav nav .lang { padding-inline: 8px; } }
@media(prefers-reduced-motion:reduce) { .sound-popover,.sound-popover * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media(max-height:540px) and (min-width:600px) {
 .sound-popover { width: min(620px,calc(100% - 28px)); display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); column-gap: 18px; padding: 10px 16px 4px; }
 .sound-popover-top { grid-column: 1/-1; margin-bottom: 0; }
 .sound-mini-track { grid-column: 1; grid-row: 2; gap: 10px; }
 .sound-mini-track img { width: 44px; height: 44px; }
 .sound-mini-track strong { font-size: 16px; }
 .sound-mini-caption { display: none; }
 .sound-mini-keys { grid-column: 1; grid-row: 3; margin: 4px 0; gap: 18px; }
 .sound-mini-keys .main-play { width: 44px; height: 44px; }
 .sound-volume { grid-column: 1; grid-row: 4; padding-top: 8px; }
 [data-mini-lyrics] { grid-column: 2; grid-row: 2/5; }
 .sound-popover .sound-lyrics { margin-top: 0; }
 .sound-popover .sound-lyrics-head { padding-block: 5px; }
 .sound-popover .sound-current { min-height: 105px; padding: 9px 13px; }
 .sound-popover .sound-current [data-current-line] { font-size: 16px; min-height: 24px; }
 .sound-popover .sound-up-next { min-height: 20px; margin-top: 4px; }
 .sound-popover .sound-lyrics-toggle { min-height: 44px; }
 .sound-popover .sound-error,.nav nav a.sound-playlist-link { grid-column: 1/-1; }
 .nav nav a.sound-playlist-link { min-height: 44px; }
}
@media(max-width:350px) {
 .nav .studio { font-size: 0; gap: 0; min-width: 32px; }
 .nav .studio img { width: 28px; height: 28px; }
 .sound-shortcut { flex-shrink: 0; }
}

/* A quiet one-line lyric stays in the header, even with the player closed. */
.sound-header-ready .nav { position: relative; }
.sound-now { display: none; align-items: center; gap: 13px; width: clamp(240px,25vw,350px); min-width: 0; height: 44px; padding: 0 18px; border: 1px solid #ffffff28; border-radius: 50px; background: linear-gradient(110deg,#183cba66,#ffffff0d); color: #dbe5ff; box-shadow: inset 0 1px 0 #ffffff0d; cursor: pointer; }
.sound-header-ready .sound-now { display: flex; }
.sound-now:hover,.sound-now[aria-expanded=true] { border-color: #ffffff65; background: #ffffff15; }
.sound-now:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sound-now-clip { display: block; min-width: 0; overflow: hidden; flex: 1; text-align: center; }
[data-header-lyric] { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 13px/1.7 'Hiragino Sans','Yu Gothic',Meiryo,sans-serif; letter-spacing: .025em; }
.sound-now.is-singing { color: #fff1bc; }
.sound-now-meter { display: flex; align-items: center; gap: 3px; flex: none; height: 18px; color: #b0c9ff; }
.sound-now-meter i { display: block; width: 2px; height: 12px; background: currentColor; border-radius: 2px; transform: scaleY(.35); }
.sound-now-meter i:nth-child(2) { height: 18px; animation-delay: -.3s !important; }
.sound-now-meter i:nth-child(3) { height: 14px; animation-delay: -.6s !important; }
html[data-motion=on] .sound-now { transition: color .3s,border-color .25s,background .25s; }
html[data-motion=on][data-sound-playing] .sound-now-meter i { animation: sound-level .9s ease-in-out infinite alternate; }
html[data-page-hidden=true] .sound-now-meter i { animation-play-state: paused !important; }
.site-header { --sound-header-height: 76px; }
.sound-popover { top: calc(var(--sound-header-height) + 10px); max-height: calc(100dvh - var(--sound-header-height) - 30px); }
@media(max-width:1100px) { .nav .arcade-nav { display: none; } }
@media(max-width:950px) { .nav nav>a[href="#view"] { display: none; } }
@media(max-width:760px) {
 html.sound-header-ready { scroll-padding-top: 132px; }
 .sound-header-ready .nav { min-height: 118px; padding-bottom: 54px; }
 .sound-now { position: absolute; right: 0; bottom: 10px; width: min(100%,440px); padding-inline: 15px; }
 .site-header { --sound-header-height: 118px; }
}
@media(max-height:540px) and (min-width:600px) {
 html.sound-header-ready { scroll-padding-top: 78px; }
 .sound-header-ready .nav { gap: 12px; padding-bottom: 0; min-height: 64px; }
 .nav .studio { font-size: 0; gap: 0; }
 .nav .studio img { width: 28px; height: 28px; }
 .sound-now { position: static; width: clamp(240px,38vw,350px); }
 .site-header { --sound-header-height: 64px; }
}
/* Motion is a named switch in the footer, not a second music-style pause icon. */
footer .motion-setting { display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff4d; border-radius: 30px; color: inherit; font: inherit; white-space: nowrap; }
footer .motion-setting span,footer .motion-setting[aria-pressed=true] span { width: auto; height: auto; border: 0; margin: 0; }
footer .motion-setting .motion-setting-state { font: 700 10px/1 system-ui,sans-serif; opacity: .8; }
footer .motion-setting .motion-setting-track { display: block; position: relative; width: 27px; height: 16px; border-radius: 12px; background: #a8c3ff; }
footer .motion-setting-track::after { content: ''; position: absolute; top: 3px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
footer .motion-setting[aria-pressed=true] .motion-setting-track { background: #ffffff40; }
footer .motion-setting[aria-pressed=true] .motion-setting-track::after { left: 3px; background: #dbe5ff; }
footer .footlinks { flex-wrap: wrap; align-items: center; }
footer .motion-setting:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media(prefers-reduced-motion:reduce) { .sound-now,.sound-now * { animation: none !important; transition: none !important; } }
footer .motion-setting[aria-pressed=true] .motion-setting-track { width: 27px; height: 16px; }
@media(max-width:760px) {
 footer .fine { flex-wrap: wrap; }
 footer .footlinks { width: 100%; justify-content: space-between; gap: 10px; }
}
@media(max-width:760px) { footer { padding-bottom: 76px; } }
