/* Full-screen song view, shared by phone, tablet and desktop. */
.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}
dialog.immersive-song{--song-cover:none;--song-muted:#c0c0bc;color-scheme:dark;position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;padding:calc(18px + env(safe-area-inset-top)) max(32px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left));background:#202122;color:#fff;isolation:isolate;overflow:hidden}
dialog.immersive-song::before{content:'';position:absolute;inset:0;z-index:-2;background-image:linear-gradient(#17191ce8,#1a1a1bcc 55%,#5b4d36aa),var(--song-cover);background-size:cover;background-position:center;filter:blur(65px);pointer-events:none;transition:background-image .5s}
dialog.immersive-song::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#16171b55,transparent 45%,#c6a57525);pointer-events:none}
dialog.immersive-song[open]{display:flex;flex-direction:column;gap:0;animation:song-enter .3s ease-out}
.immersive-song .song-heading{width:100%;max-width:940px;margin:0 auto;flex-shrink:0;gap:20px}
.immersive-song .song-heading .quiet{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;color:#eee;background:transparent;border:0}
.song-tabs{display:flex;justify-content:center;gap:26px}
.song-tabs button{position:relative;background:none;border:0;padding:10px 3px;color:#ffffff70;font-size:14px;min-height:44px}
.song-tabs button[aria-selected=true]{color:#fff}
.song-tabs button[aria-selected=true]::after{content:'';position:absolute;left:calc(50% - 8px);bottom:2px;width:16px;height:2px;background:#fff;border-radius:2px}
.song-caption{width:100%;max-width:560px;margin:24px auto 0;flex-shrink:0}
.song-caption h2{font-size:clamp(24px,3vw,32px);font-weight:650;margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song-caption p{margin:0;color:var(--song-muted);font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.song-stage{width:100%;max-width:740px;margin:0 auto;flex:1;min-height:0;position:relative;touch-action:pan-y}
.song-panel{width:100%;height:100%;min-height:0;animation:song-panel-enter .25s ease-out}
.song-record{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:24px 0}
.turntable{position:relative;width:min(42vh,390px);width:min(42dvh,390px);max-width:85%;aspect-ratio:1;flex-shrink:1;min-height:0;display:grid;place-items:center;border-radius:30px;background:linear-gradient(145deg,#0a0c0b99,#10111133);box-shadow:0 18px 60px #0003}
.vinyl{position:relative;display:grid;place-items:center;width:90%;aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle at center,#141616 0px,#242626 1px,#141615 3px,#181a1a 4px);box-shadow:0 0 0 1px #ffffff12,0 12px 24px #0007;animation:vinyl-spin 24s linear infinite;animation-play-state:paused}
.vinyl::before{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 30deg,transparent,#ffffff30 35deg,transparent 80deg,transparent 175deg,#d6c49124 220deg,transparent 260deg)}
.vinyl img{display:block;width:56%;height:56%;object-fit:cover;border-radius:50%;border:3px solid #baa67066;background:#3c443a}
.vinyl-spindle{position:absolute;width:10px;height:10px;border-radius:50%;background:#1d2421;box-shadow:0 0 0 2px #ddd7}
.tonearm{position:absolute;right:7%;top:-2%;width:12px;height:52%;border-radius:8px;background:linear-gradient(90deg,#777,#ddd,#777);transform-origin:50% 8%;transform:rotate(-12deg);transition:transform .5s;box-shadow:3px 4px 5px #0005}
.tonearm::before{content:'';position:absolute;top:2%;left:-9px;width:30px;height:30px;border-radius:50%;background:#393d3b;border:5px solid #171b19}
.tonearm::after{content:'';position:absolute;bottom:-8px;left:-3px;width:18px;height:32px;background:#969b97;border-radius:4px}
.immersive-song.is-playing .vinyl{animation-play-state:running}.immersive-song.is-playing .tonearm{transform:rotate(16deg)}
.lyric-preview{border:0;background:none;color:#ffffff90;font-size:15px;max-width:90%;min-height:44px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:8px}
.immersive-song .song-lyrics{display:flex;flex-direction:column;padding:24px 0 8px}
.immersive-song .song-lyrics .lyric-lines{position:relative;height:100%;max-height:none;min-height:0;flex:1;color:#ffffff58;font-size:clamp(19px,2.5vw,26px);font-weight:550;line-height:1.9;padding:20px 8px 35%;scrollbar-width:none;mask-image:linear-gradient(transparent,#000 6%,#000 82%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 6%,#000 82%,transparent)}
.immersive-song .lyric-line{padding:12px 6px;line-height:1.7;transition:color .25s,background .25s;min-height:44px}
.immersive-song .lyric-line.active{color:white;background:transparent;font-weight:700}
.immersive-song .lyric-line:hover{background:#ffffff08;color:#eee}
.immersive-song .song-info{padding:28px 0;overflow:auto;color:#eee}
.song-info-card{padding:26px;background:#ffffff0c;border:1px solid #ffffff0c;border-radius:18px}
.song-info-card h3{font-size:18px;margin:0 0 22px}
.song-info-card dl{display:grid;grid-template-columns:70px minmax(0,1fr);gap:20px 18px;font-size:14px;line-height:1.7;margin:0}
.song-info-card dt{color:#ffffff70}.song-info-card dd{margin:0;overflow-wrap:anywhere}
.immersive-song .song-controls{width:100%;max-width:560px;margin:0 auto;border:0;padding:10px 0 0;flex-shrink:0}
.immersive-song .song-controls .seekbar{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:10px;margin:0 auto 16px;color:#ffffff88;font-size:11px}
.immersive-song .song-controls input{accent-color:#eee;height:32px}
.immersive-song .song-controls .transport-buttons{display:flex;justify-content:space-between;gap:14px;align-items:center}
.immersive-song .song-controls .transport-button{color:#f2f3ed;width:48px;height:48px;flex-shrink:0}
.immersive-song .song-controls .main-play{width:64px;height:64px;background:transparent;border:1.5px solid #ffffffc0;font-size:25px;color:#fff}
.immersive-song .song-controls .transport-button[aria-pressed=true]{color:#d6eea6}
.immersive-song :focus-visible{outline:2px solid #d6eea6;outline-offset:4px}
@keyframes vinyl-spin{to{transform:rotate(360deg)}}@keyframes song-enter{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}@keyframes song-panel-enter{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@media(max-width:699px){dialog.immersive-song{padding:calc(10px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}.immersive-song .song-heading{gap:8px}.song-tabs{gap:22px}.song-caption{margin-top:24px}.song-caption h2{font-size:25px}.song-caption p{font-size:13px}.song-record{gap:16px;padding:20px 0}.turntable{width:min(42dvh,350px);max-width:100%;border-radius:24px}.immersive-song .song-lyrics{padding-top:16px}.immersive-song .song-lyrics .lyric-lines{font-size:21px;padding-left:0;padding-right:0}.immersive-song .song-controls .transport-buttons{gap:8px}.immersive-song .song-controls .transport-button{width:44px;height:44px}.immersive-song .song-controls .main-play{width:64px;height:64px}.song-info-card{padding:22px}.song-info-card dl{grid-template-columns:55px minmax(0,1fr);gap:16px 14px}}
@media(max-height:600px){.song-caption{margin-top:10px}.song-caption h2{font-size:22px}.song-record{gap:4px;padding:10px 0}.turntable{width:min(32dvh,260px)}.immersive-song .song-controls .main-play{width:50px;height:50px}.immersive-song .song-controls .seekbar{margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){dialog.immersive-song[open],.song-panel,.vinyl{animation:none}.tonearm{transition:none}}
