.song-page{margin:0;background:#fff8e6;color:#3d3226;font-family:Fredoka,sans-serif;overflow:auto}.song-scene{min-height:100svh;box-sizing:border-box;padding:20px max(20px,env(safe-area-inset-right)) 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:url('assets/scene-landscape.webp') center/cover fixed}.song-art{display:block;width:min(420px,80vw);height:clamp(140px,21vh,180px);object-fit:contain}.song-player{width:100%;max-width:640px;background:#fff8e6;border-radius:20px;padding:24px;box-sizing:border-box;text-align:center;color:#3d3226;font-family:Fredoka,sans-serif}.song-player h1,.song-player h2{font-size:clamp(27px,4vw,38px);line-height:1.12;margin:0 0 12px}.song-player p{font-size:19px;line-height:1.35;margin:10px 0 18px}.song-versions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.song-player button{font:inherit;color:inherit;min-height:56px;padding:12px 18px;border:0;border-radius:16px;background:#f6e7c8;cursor:pointer;font-size:20px}.song-versions button[aria-pressed=true]{background:#f2c141;outline:3px solid #8a552c}.song-player audio{display:block;width:100%;margin:22px 0 12px;height:54px}.song-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.song-actions button{display:flex;gap:8px;align-items:center}.song-actions img{width:40px;height:40px;object-fit:contain}.song-status{min-height:26px}.song-player button:focus-visible,.song-nav a:focus-visible{outline:4px solid #174a7e;outline-offset:4px}.song-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 24px;background:#fff8e6;padding:10px 20px;border-radius:16px}.song-nav a{color:#174a7e;min-height:44px;display:flex;align-items:center;font-size:18px}.song-rune{position:fixed;bottom:max(10px,env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));width:48px;height:48px;object-fit:contain;pointer-events:none}.song-dialog{border:0;padding:0;border-radius:20px;background:#fff8e6;max-width:min(94vw,680px);max-height:90svh;overflow:auto}.song-dialog::backdrop{background:#302515b3}.song-dialog-close{display:block;margin:0 auto 20px;font:600 20px Fredoka,sans-serif;min-height:56px;padding:12px 24px;border:0;border-radius:16px;background:#f2c141;color:#3d3226;cursor:pointer}.song-dialog-close:focus-visible{outline:4px solid #174a7e;outline-offset:3px}@media(max-width:600px){.song-scene{padding-top:16px;gap:12px;background-image:url('assets/scene-portrait.webp')}.song-player{padding:20px 16px}.song-versions{gap:10px}.song-versions button{flex:1;min-width:130px}.song-player p{font-size:18px}.song-art{height:160px}}@media(max-height:620px) and (min-width:650px){.song-scene{padding-top:16px;gap:10px}.song-art{height:110px}.song-player{padding:16px 24px}.song-player p{margin:8px 0 12px}.song-player audio{margin:12px 0}}

@media(max-height:480px) and (min-width:650px){
.song-scene{min-height:100svh;display:grid;grid-template-columns:minmax(130px,24%) minmax(0,640px);grid-template-rows:auto 44px;align-content:center;justify-content:center;gap:8px 16px;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
.song-art{grid-column:1;grid-row:1/3;width:100%;height:210px;max-height:70svh}
#song-player{grid-column:2;grid-row:1;min-width:0}
.song-scene .song-player{padding:8px 12px}
.song-scene .song-player h1{font-size:26px;line-height:1.1;margin:0 0 4px}
.song-scene .song-player p{font-size:17px;line-height:1.2;margin:0 0 6px}
.song-scene .song-player button{min-height:44px;padding:6px 12px;font-size:18px}
.song-scene .song-versions{gap:10px}
.song-scene .song-player audio{height:44px;margin:8px 0}
.song-scene .song-actions{gap:10px;flex-wrap:nowrap}
.song-scene .song-actions img{width:30px;height:30px}
.song-scene .song-player .song-status{font-size:15px;line-height:18px;min-height:18px;margin:4px 0 0}
.song-nav{grid-column:2;grid-row:2;justify-self:center;padding:0 16px;min-height:44px}
.song-nav a{font-size:17px;min-height:44px}
.song-rune{width:40px;height:40px}
}
