/* P119: dimensions, palette and composition from Player_Approval_2026_10_09. */
.player-screen{--player-ink:#232840;--player-muted:#798099;--player-accent:#4b57ce;--player-panel:#ffffffb8;--player-line:#dfe3f5;--player-bg:#f8f9ff;--player-glow:#e6e9ff}
:root[data-theme=dark] .player-screen{--player-ink:#f2f4ff;--player-muted:#a0aac5;--player-accent:#b4baff;--player-panel:#252e47;--player-line:#394360;--player-bg:#151c30;--player-glow:#283051}
.player-screen.audio-inline,.player-screen.audio-panel{position:fixed;inset:0;z-index:40;width:100%;height:100dvh;max-width:none;max-height:none;min-width:0;border:0;border-radius:0;margin:0;padding:var(--safe-top) max(22px,calc((100vw - 476px)/2)) calc(24px + var(--safe-bottom));overflow:auto;background:radial-gradient(ellipse at 100% 0%,var(--player-glow),transparent 60%),var(--player-bg);color:var(--player-ink);box-shadow:none;display:flex;flex-direction:column;gap:0;align-items:stretch;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.player-screen.player-screen .player-toolbar{flex:none;display:flex;justify-content:space-between;align-items:center;height:66px;margin:0 0 6px;gap:12px}.player-screen.player-screen .player-toolbar>span{font-size:13px;color:var(--player-accent)}
.player-screen.player-screen .player-minimize{display:flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;border-radius:50%;border:1px solid var(--player-line);background:var(--player-panel);color:var(--player-accent);padding:8px}.player-minimize svg{width:22px;height:22px}
.player-screen.player-screen .song-cover-image{flex:none;width:min(100%,42dvh);max-width:100%;height:auto;align-self:center;object-fit:cover;aspect-ratio:1;border-radius:24px;display:block;margin:0 auto;box-shadow:0 12px 25px #151c3020}
.player-screen.player-screen .player-heading{display:flex;align-items:center;gap:12px;margin:25px 0 0;min-height:66px;flex:none}.player-heading>div:first-child{min-width:0;flex:1}.player-heading h1{font-size:22px;line-height:1.25;letter-spacing:-.6px;overflow-wrap:anywhere;margin:0;font-weight:700}.player-heading .subtitle{margin:7px 0 0;color:var(--player-muted);font-size:13px}
.player-screen.player-screen .song-like{flex:none;margin:0}.player-screen.player-screen .song-like .soft-button{display:flex;align-items:center;justify-content:center;gap:0;width:44px;height:44px;min-height:44px;padding:0;font-size:0;line-height:0;border:0;box-shadow:none;background:none;border-radius:50%;color:#8c92ac}
.player-screen.player-screen .song-like .interface-icon{display:block;flex:none;width:24px;height:24px;margin:0;stroke-width:1.8}.player-screen.player-screen .song-like [aria-pressed=true]{color:#ef5278}.player-screen.player-screen .song-like [aria-pressed=true] svg{fill:currentColor}
.player-screen.player-screen input[type=range]{appearance:none;-webkit-appearance:none;flex:none;display:block;width:100%;height:24px;min-height:24px;padding:0;margin:20px 0 0;border:0;box-shadow:none;background:transparent;direction:ltr;cursor:pointer}
.player-screen.player-screen input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(to right,var(--player-accent) var(--played),var(--player-line) var(--played))}
.player-screen.player-screen input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-3.5px;border:2px solid var(--player-panel);border-radius:50%;background:var(--player-accent)}
.player-screen.player-screen input[type=range]::-moz-range-track{height:5px;border-radius:8px;background:var(--player-line)}.player-screen.player-screen input[type=range]::-moz-range-progress{height:5px;border-radius:8px;background:var(--player-accent)}.player-screen.player-screen input[type=range]::-moz-range-thumb{width:8px;height:8px;border:2px solid var(--player-panel);border-radius:50%;background:var(--player-accent)}
.player-times{display:flex;justify-content:space-between;direction:ltr;font-size:11px;color:var(--player-muted);font-variant-numeric:tabular-nums}
.player-screen.player-screen>.audio-toggle{display:flex;align-items:center;justify-content:center;flex:none;align-self:center;width:72px;height:72px;min-height:72px;margin:22px auto 24px;padding:0;border:0;border-radius:50%;background:#4b57ce;color:#fff;box-shadow:0 8px 20px #4b57ce30}.player-screen.player-screen>.audio-toggle svg{width:28px;height:28px}:root[data-theme=dark] .player-screen.player-screen>.audio-toggle{background:#b4baff;color:#18203b}
.player-screen.player-screen .media-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:0}.player-screen.player-screen .media-actions .text-button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px;border:1px solid var(--player-line);border-radius:18px;background:var(--player-panel);color:var(--player-accent);font-size:13px;font-weight:600;text-decoration:none}.player-screen.player-screen .media-actions svg{width:18px;height:18px;flex:none}
.player-screen.player-screen .player-status{margin:15px 0 0;font-size:11px;text-align:center;color:var(--player-muted)}.player-screen.player-screen .share-unavailable{flex-basis:100%;text-align:center;font-size:12px;color:var(--player-muted);line-height:1.5}
.dock-metadata{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1}.dock-metadata>.dock-title{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.dock-metadata>small{font-size:11px;line-height:1.3;margin:3px 0 0;text-align:start;color:var(--muted);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dock-art{display:block;width:46px;height:46px;flex:none}.audio-dock .dock-art .song-cover-image{width:46px;height:46px;object-fit:cover;border-radius:12px;margin:0}.app>.audio-dock>.audio-toggle{width:38px;min-width:38px;height:38px;min-height:38px;border-radius:50%;padding:8px}

/* Approved Player_Review_2026_10_09_v2; scoped additions. */
.player-screen.player-screen{isolation:isolate;background:var(--player-bg)}
.player-screen>.player-art-background{position:fixed;inset:-40px;z-index:-1;pointer-events:none;background-position:center;background-size:cover;filter:blur(40px);opacity:.12}
:root[data-theme=dark] .player-screen>.player-art-background{opacity:.22}
.player-screen.player-screen .player-heading{margin-top:17px;min-height:66px}
.player-screen.player-screen .song-like .soft-button{width:48px;height:62px;min-height:62px;gap:3px;flex-direction:column;border:1px solid #ec527b40;border-radius:18px;background:var(--player-panel);color:#ec527b;line-height:1.4}
.player-screen .like-count{font-size:12px;line-height:1.4}
.player-transport{display:flex;align-items:center;justify-content:center;gap:25px;margin:14px 0;flex:none}
.player-screen.player-screen .player-transport button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid var(--player-line);background:var(--player-panel);color:var(--player-accent);padding:10px;margin:0;box-shadow:none}
.player-transport svg{width:22px;height:22px}
.player-screen.player-screen .player-transport .audio-toggle{width:64px;height:64px;min-width:64px;min-height:64px;background:var(--player-accent);color:#fff;border:0}
:root[data-theme=dark] .player-screen.player-screen .player-transport .audio-toggle{color:#1b2340}
.player-transport button:disabled{opacity:.4}
.player-screen .player-lyrics-open,.player-screen .lyrics-fold{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--player-line);border-radius:18px;background:var(--player-panel);color:var(--player-accent);min-height:44px;padding:8px;font:inherit;flex:none}
.player-lyrics-open svg{width:22px;height:22px}.player-screen .player-lyrics-open{font-size:14px;width:100%}.player-lyrics-open:disabled{opacity:.45}
.player-screen.player-screen .media-actions{margin-top:10px;flex:none}.player-screen.player-screen .media-actions .text-button{min-height:44px;height:44px;font-size:13px;padding:8px;font-weight:500}.media-actions button:disabled{opacity:.6}
.player-screen.player-screen .player-status{margin:10px 0;font-size:11px}
.player-screen:has(.player-lyrics-scroll){overflow:hidden}
.player-lyrics-header{display:flex;align-items:center;gap:10px;min-height:90px;flex:none;color:var(--player-accent)}.player-lyrics-header img{width:45px;height:45px;object-fit:cover;border-radius:12px}.player-lyrics-header>div{flex:1;min-width:0;font-size:13px}.player-lyrics-header strong{overflow-wrap:anywhere;padding:0}.player-lyrics-header small{font-size:11px;color:var(--player-muted);text-align:start;direction:inherit}.player-screen .lyrics-fold{width:66px;min-height:54px;border-radius:16px;flex-direction:column;gap:0;font-size:9px;line-height:1.3}.lyrics-fold svg{width:17px;height:17px}
.player-lyrics-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;font-size:24px;line-height:1.5;font-weight:650;padding:10px 2px 20px;touch-action:pan-y}
.player-screen .player-timeline{flex:none}
.app:has(>.audio-dock-v2){--audio-dock-space:120px}
.app>.audio-dock-v2{display:block;padding:12px;--player-accent:var(--accent);--player-line:var(--line);--player-muted:var(--muted);--player-panel:var(--paper)}
.audio-dock-v2 .dock-row{display:flex;gap:6px;align-items:center}.audio-dock-v2 .audio-waves{gap:8px;flex:1;min-width:0;padding:0}.audio-dock-v2 .dock-art,.audio-dock-v2 .dock-art .song-cover-image{width:40px;height:40px}.audio-dock-v2 .dock-metadata>small{font-size:10px}
.audio-dock-v2 .player-transport{gap:4px;margin:0}.audio-dock-v2 .player-transport button,.audio-dock-v2 .dock-clear{display:flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:30px;min-height:30px;border-radius:50%;padding:4px;background:var(--soft)}.audio-dock-v2 .player-transport .audio-toggle{width:36px;height:36px;background:var(--accent);color:var(--paper)}.audio-dock-v2 .player-transport svg,.audio-dock-v2 .dock-clear svg{width:16px;height:16px}.audio-dock-v2 .player-times{font-size:10px}
.audio-dock-v2 .player-timeline input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:18px;min-height:18px;padding:0;margin:6px 0 0;border:0;background:transparent;direction:ltr}
.audio-dock-v2 input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(to right,var(--accent) var(--played),var(--line) var(--played))}.audio-dock-v2 input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:10px;height:10px;margin-top:-2.5px;border:0;border-radius:50%;background:var(--accent)}.audio-dock-v2 input[type=range]::-moz-range-track{height:5px;background:var(--line);border-radius:8px}.audio-dock-v2 input[type=range]::-moz-range-progress{height:5px;background:var(--accent)}.audio-dock-v2 input[type=range]::-moz-range-thumb{width:10px;height:10px;border:0;background:var(--accent)}
@media(max-width:360px){.app>.audio-dock-v2{inset-inline:10px;padding:10px}.audio-dock-v2 .dock-art,.audio-dock-v2 .dock-art .song-cover-image{width:32px;height:32px}.audio-dock-v2 .dock-row{gap:3px}.audio-dock-v2 .audio-waves{gap:5px}.audio-dock-v2 .player-transport{gap:2px}}

/* Keep the count centered in both inline and reopened (audio-panel) players. */
.player-screen.player-screen .song-like .like-count{display:block;padding:0;margin:0;width:100%;text-align:center;direction:ltr;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.player-screen.player-screen{overscroll-behavior-y:contain}
.player-screen .synced-lyrics{white-space:normal;position:relative}
.player-screen .lyric-section{font-size:12px;letter-spacing:1px;font-weight:700;color:var(--player-accent);margin:22px 0 10px;text-transform:uppercase}
.player-screen .lyric-line{display:block;width:100%;border:0;padding:10px 0;min-height:44px;text-align:start;font:inherit;letter-spacing:-.35px;background:none;color:var(--player-muted);opacity:.6;transition:opacity .25s,color .25s}
.player-screen .lyric-line[aria-current=true]{opacity:1;color:var(--player-ink)}
.player-screen .lyric-line:hover{opacity:1}
.player-screen .lyric-follow{align-self:center;border:1px solid var(--player-line);background:var(--player-panel);color:var(--player-accent);border-radius:13px;padding:7px 13px;font-size:12px;min-height:44px}
.player-screen .lyric-status{font-size:13px;font-weight:400;color:var(--player-muted)}

.player-screen{animation:player-enter 240ms ease-out;will-change:transform}@keyframes player-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.player-screen{animation:none;transition:none!important}}

/* Cover paging keeps the open sheet and its controls stationary. */
.player-cover-viewport{position:relative;overflow:hidden;flex:none;width:100%}
.player-cover-viewport .player-swipe-preview{position:absolute!important;margin:0!important;max-width:none!important;pointer-events:none;object-fit:cover;aspect-ratio:1}
.player-cover-viewport.swiping .player-cover-frame,.player-cover-viewport.swiping .player-swipe-preview{will-change:transform}
.player-cover-viewport.swiping .player-persistent-cover{visibility:hidden}
@media(max-width:800px){.player-cover-viewport{touch-action:pan-y}.player-cover-viewport img{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}
