/* Keep the original editorial home from style.css and responsive.css.
   This layer adds Now Playing and shared, accessible song-card motion. */
[hidden] { display:none!important; }
.song-card {
    transition: transform 240ms ease, box-shadow 240ms ease,
                background-color 240ms ease, border-color 240ms ease;
}
.song-card-cover img { transition: transform 400ms ease; }
.play-btn-overlay {
    transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
@media (hover:hover) and (pointer:fine) {
    .song-card:hover {
        transform: translateY(-6px);
        border-color: #a871f466;
        box-shadow: 0 12px 28px #09051166, 0 0 18px #a855f71a;
    }
    .song-card:hover .song-card-cover img { transform: scale(1.035); }
    .song-card:hover .play-btn-overlay {
        opacity: 1;
        transform: translateY(0) scale(1.06);
        box-shadow: 0 5px 18px #a855f755;
    }
}
.song-card:focus-within {
    border-color: var(--purple-400);
    box-shadow: 0 0 0 2px #c084fc33;
}
.bottom-player { z-index:1030; gap:18px; height:90px; flex-wrap:nowrap; }
.now-playing-toggle { font-size:12px; white-space:nowrap; margin-left:auto; }
.spotify-mode .player-controls-center { display:none; }
.spotify-mode .spotify-navigation { display:flex; margin-left:auto; }
.spotify-navigation a { font-size:12px; }
.now-playing-panel { position:fixed; top:0; right:0; bottom:90px; width:360px; overflow-y:auto; padding:24px; background:#15101e; border-left:1px solid #ffffff10; z-index:1025; box-shadow:-15px 0 60px #0003; }
.now-playing-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.now-playing-heading h2 { font-size:15px; font-weight:600; margin:0; }
.sonify-canvas { position:relative; isolation:isolate; overflow:hidden; height:310px; border-radius:16px; background:#302041; display:grid; place-items:center; }
.canvas-artwork { position:absolute; inset:-15%; width:130%; height:130%; object-fit:cover; filter:blur(30px); opacity:.4; animation:art-drift 14s ease-in-out infinite alternate; }
.sonify-canvas:after { content:''; position:absolute; inset:0; background:linear-gradient(transparent 50%,#180e29b3); pointer-events:none; }
.canvas-orb { position:absolute; width:260px; height:260px; border-radius:50%; filter:blur(40px); opacity:.55; animation:orb-drift 9s ease-in-out infinite alternate; }
.canvas-orb-one { background:var(--purple-500); left:-130px; top:-90px; }
.canvas-orb-two { background:var(--purple-800); right:-120px; bottom:-70px; animation-delay:-4s; }
.now-playing-cover { width:62%; aspect-ratio:1; object-fit:cover; border-radius:10px; box-shadow:0 14px 40px #0007; z-index:1; }
.canvas-label { position:absolute; bottom:18px; left:20px; z-index:2; font-size:9px; letter-spacing:2px; color:#f4e9ff; }
.sonify-canvas .canvas-artwork,.sonify-canvas .canvas-orb { animation-play-state:paused; }
.sonify-canvas.is-playing:not(.motion-paused) .canvas-artwork,.sonify-canvas.is-playing:not(.motion-paused) .canvas-orb { animation-play-state:running; }
@keyframes art-drift { to { transform:scale(1.2) rotate(12deg); } }
@keyframes orb-drift { to { transform:translate(85px,100px) scale(1.25); } }
.now-playing-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:22px 0 12px; }
.now-playing-meta>div { min-width:0; }
.now-playing-meta h3 { font-size:22px; letter-spacing:-.5px; font-weight:600; overflow-wrap:anywhere; margin:0 0 6px; }
.now-playing-meta p { color:var(--text-secondary); font-size:14px; margin:0; }
.playback-status { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--purple-300); margin:0 0 20px; }
#motionToggle { margin-left:auto; background:none; border:0; color:var(--text-secondary); font-size:11px; white-space:nowrap; }
#spotifyEmbedHost { min-height:152px; border-radius:12px; background:#21192b; }
#spotifyEmbedHost iframe { display:block; width:100%; height:152px!important; border:0; border-radius:12px; }
.embed-help { font-size:11px; color:var(--text-secondary); line-height:1.7; margin:12px 0 0; }
#uploadedPlayback audio { width:100%; height:42px; color-scheme:dark; }
.up-next { margin-top:24px; padding-top:20px; border-top:1px solid #ffffff0d; }
.up-next button { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; background:none; border:0; color:var(--text-primary); text-align:left; font-size:13px; line-height:1.6; padding:12px 0; }
.visual-credit { color:var(--text-muted); font-size:10px; margin:16px 0 0; }
@media(min-width:1200px) {
 .has-now-playing .main-content { margin-right:360px; padding-left:28px; padding-right:28px; }
}
@media(min-width:1200px) and (max-width:1499px) {
 .has-now-playing .hero-copy { width:60%; padding:30px 24px; }
 .has-now-playing .hero-copy h2 { font-size:36px; letter-spacing:-1.8px; }
 .has-now-playing .hero-art { width:44%; transform:scale(.65); transform-origin:right center; }
 .has-now-playing .hero-actions { flex-wrap:wrap; gap:14px; }
 .has-now-playing .mood-grid { grid-template-columns:1fr; gap:10px; }
 .has-now-playing .mood-card { min-height:85px; }
 .has-now-playing .songs-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
 .has-now-playing .songs-grid>.col { width:100%; }
}
@media(max-width:1199px) { .now-playing-panel { width:360px; z-index:1035; } }
@media(max-width:768px) {
 .main-content { padding-bottom:130px; }
 .bottom-player,.bottom-player.spotify-mode { height:90px; padding:10px 14px; gap:10px; flex-wrap:nowrap; }
 .player-song-info,.spotify-mode .player-song-info { min-width:0; max-width:none; flex:1; flex-basis:auto; }
 .player-cover,.spotify-mode .player-cover { width:40px; height:40px; }
 .spotify-mode .spotify-navigation { display:none; }
 .now-playing-toggle { padding:9px; font-size:11px; }
 .player-controls-center { flex:1; }
 .player-buttons { gap:8px; }
 .player-progress-wrapper { display:none; }
 .now-playing-panel { top:60px; bottom:90px; width:min(100%,400px); border-radius:18px 0 0 0; padding:20px; }
 .sonify-canvas { height:240px; }
 .now-playing-cover { width:150px; }
 .toast-container { bottom:100px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
@media(hover:none) { .play-btn-overlay { opacity:1; transform:none; } }

.panel-spotify-navigation { display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.panel-spotify-navigation a { font-size:12px; color:var(--purple-300); }
@media(min-width:769px) and (max-height:850px) { .sonify-canvas { height:200px; }.now-playing-cover { width:135px; }.now-playing-meta { margin-top:16px; }.now-playing-heading { margin-bottom:16px; } }

/* Preserve a visible static hover treatment when motion is reduced. */
@media(prefers-reduced-motion:reduce) {
 .song-card:hover,.song-card:hover .song-card-cover img,
 .song-card:hover .play-btn-overlay { transform:none; }
}
/* One persistent music dock; the sidebar is a visual companion only. */
body { --dock-height:100px; }
body.spotify-track { --dock-height:210px; }
.main-content { padding-bottom:calc(var(--dock-height) + 32px); transition:margin-right 280ms ease; }
.sidebar { bottom:var(--dock-height); }
.bottom-player,.bottom-player.spotify-mode {
    height:var(--dock-height); padding:12px 22px; display:flex;
    flex-direction:column; justify-content:center; align-items:stretch; gap:10px;
    z-index:1030; overflow:auto;
}
.dock-main { display:flex; align-items:center; gap:20px; width:100%; min-height:68px; }
.dock-main .player-song-info { min-width:150px; max-width:260px; flex:1; }
.dock-main .now-playing-toggle { order:4; margin-left:0; padding:10px; }
.dock-main .player-controls-center,.spotify-mode .player-controls-center { display:flex; max-width:600px; flex:2; }
.dock-main .audio-player-section { display:flex; }
.dock-main .player-progress-wrapper { display:flex; }
.player-volume { display:flex; position:relative; min-width:130px; flex:1; max-width:180px; padding-bottom:16px; }
.volume-help { position:absolute; bottom:-3px; right:0; color:var(--text-secondary); font-size:10px; white-space:nowrap; }
.volume-slider:disabled { opacity:.4; cursor:not-allowed; }
.player-btn-play:disabled { opacity:.45; cursor:wait; }
.progress-bar-container:disabled { opacity:.4; cursor:default; }
.dock-spotify { display:grid; grid-template-columns:minmax(260px,1.4fr) minmax(200px,1fr); align-items:center; gap:18px; width:100%; }
#spotifyEmbedHost { min-height:80px; }
#spotifyEmbedHost iframe { height:80px!important; width:100%; }
.dock-spotify-help { min-width:0; }
.dock-spotify-help .embed-help { margin:0 0 6px; font-size:11px; }
.dock-spotify-help a { font-size:11px; color:var(--purple-300); margin-right:12px; }
.dock-spotify-help .btn { font-size:11px; padding:5px 10px; }
.now-playing-panel {
    bottom:var(--dock-height); transform:translateX(105%); opacity:0; visibility:hidden;
    transition:transform 280ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease, visibility 0s 280ms;
}
.now-playing-panel.is-open { transform:translateX(0); opacity:1; visibility:visible; transition-delay:0s; }
.track-video { margin-top:24px; }
.video-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.video-muted { font-size:10px; color:var(--text-secondary); }
.youtube-host { width:100%; height:210px; min-width:200px; background:#0e0c14; }
.youtube-host iframe { display:block; width:100%; height:100%; border:0; }
.video-links { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.video-links a { color:var(--purple-300); font-size:11px; }
.video-links .btn-icon { width:auto; font-size:12px; gap:5px; }
.up-next p { font-size:13px; color:var(--text-secondary); margin:12px 0 0; }
.toast-container { bottom:calc(var(--dock-height) + 12px); }
@media(max-width:900px) {
 .dock-main { gap:12px; }
 .dock-main .player-song-info { min-width:120px; }
 .dock-main .now-playing-toggle { font-size:10px; }
 .player-volume { min-width:105px; }
 .volume-slider { width:65px; }
}
@media(max-width:768px) {
 body { --dock-height:160px; }
 body.spotify-track { --dock-height:285px; }
 .bottom-player,.bottom-player.spotify-mode { padding:10px 14px; gap:10px; }
 .dock-main { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; min-height:125px; }
 .dock-main .player-song-info { grid-column:1; max-width:none; min-width:0; }
 .dock-main .now-playing-toggle { grid-column:2; grid-row:1; justify-self:end; }
 .dock-main .player-controls-center { grid-column:1; grid-row:2; width:100%; }
 .dock-main .player-volume { grid-column:2; grid-row:2; display:flex; width:115px; min-width:0; }
 .dock-main .player-progress-wrapper { display:flex; }
 .dock-main .player-buttons { gap:18px; }
 .dock-main .player-time { width:28px; }
 .dock-spotify { display:flex; flex-direction:column; gap:5px; }
 #spotifyEmbedHost { width:100%; }
 .dock-spotify-help { width:100%; display:flex; align-items:center; justify-content:space-between; gap:5px; }
 .dock-spotify-help .embed-help { font-size:9px; margin:0; flex:1; line-height:1.4; }
 .dock-spotify-help a { font-size:9px; margin:0; white-space:nowrap; }
 .dock-spotify-help .btn { padding:2px 5px; font-size:9px; }
 .now-playing-panel { bottom:var(--dock-height); }
 .sidebar { bottom:var(--dock-height); }
 .main-content { padding-bottom:calc(var(--dock-height) + 30px); }
}

.now-playing-heading { position:sticky; top:-24px; z-index:5; background:#15101e; padding:12px 0; }
@media(max-width:768px) { .now-playing-heading { top:-20px; } }

/* Reference-inspired compact dock. All selectors stay within the player. */
body, body.spotify-track { --dock-height:104px; }
.bottom-player, .bottom-player.spotify-mode {
    padding:12px 20px; overflow:visible; gap:0;
    background:#15101def; border-top:1px solid #3a2947;
}
.dock-main {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,1.5fr) minmax(0,1fr);
    align-items:center; gap:28px; min-height:0; height:100%;
}
.dock-main .player-song-info { min-width:0; max-width:none; gap:14px; }
.dock-main .player-cover { width:60px; height:60px; border-radius:6px; }
.dock-main .player-text { min-width:0; }
.dock-main .player-title { font-size:14px; line-height:1.5; margin:0; }
.dock-main .player-artist { font-size:12px; line-height:1.6; }
.dock-main .dock-add { flex-shrink:0; font-size:18px; margin-left:4px; }
.dock-main .player-controls-center { width:100%; max-width:none; min-width:0; }
.dock-main .audio-player-section { max-width:none; }
.dock-main .player-buttons { gap:24px; margin:0 0 7px; }
.dock-main .player-btn-play { width:40px; height:40px; font-size:26px; box-shadow:none; }
.dock-main .player-btn { width:32px; height:32px; flex-shrink:0; padding:4px; }
.dock-main .player-btn:disabled { opacity:.35; cursor:default; transform:none; }
.dock-main .player-btn[aria-expanded="true"] { color:var(--purple-400); }
.dock-main .player-progress-wrapper { gap:8px; }
.dock-main .player-time { font-size:11px; width:34px; flex-shrink:0; }
.dock-main .progress-bar-container { min-width:0; margin:0; height:4px; }
.dock-main .dock-utilities { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-width:0; }
.dock-main .now-playing-toggle { order:initial; margin:0; padding:4px; font-size:18px; }
.dock-main .player-volume { min-width:0; max-width:155px; padding:0; gap:9px; flex:1; }
.dock-main .volume-slider { width:100%; min-width:30px; max-width:110px; }
.dock-main #volumeIcon { font-size:19px; cursor:pointer; }
.dock-main #volumeIcon[aria-disabled="true"] { opacity:.45; cursor:default; }
.dock-main .volume-help { bottom:-20px; font-size:9px; }
.dock-main .player-volume:not(:has(input:disabled)) .volume-help { display:none; }
.bottom-player button:focus-visible, .bottom-player input:focus-visible, .bottom-player [role="button"]:focus-visible {
    outline:2px solid var(--purple-400); outline-offset:4px;
}
.bottom-player .dock-spotify {
    position:absolute; bottom:calc(100% + 12px); right:20px;
    width:min(380px,calc(100vw - 28px)); display:flex; flex-direction:column;
    align-items:stretch; gap:10px; padding:14px;
    background:#21192b; border:1px solid #4b355f; border-radius:14px;
    box-shadow:0 12px 40px #0006; transform:translateY(0); opacity:1; visibility:visible;
    transition:transform 180ms ease, opacity 180ms ease, visibility 0s;
}
.bottom-player .dock-spotify.is-collapsed {
    transform:translateY(8px); opacity:0; visibility:hidden;
    transition:transform 180ms ease, opacity 180ms ease, visibility 0s 180ms;
}
.spotify-tray-heading { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--purple-300); }
.spotify-tray-heading .player-btn { font-size:14px; }
.bottom-player .dock-spotify-help { display:block; }
.bottom-player .dock-spotify-help .embed-help { font-size:11px; margin:0 0 6px; line-height:1.6; }
.bottom-player .dock-spotify-help a { font-size:11px; }
@media(max-width:1000px) and (min-width:769px) {
 .dock-main { grid-template-columns:minmax(0,1fr) minmax(240px,1.3fr) minmax(180px,.8fr); gap:16px; }
 .dock-main .player-cover { width:48px; height:48px; }
 .dock-main .dock-utilities { gap:4px; }
 .dock-main .player-song-info { gap:9px; }
}
@media(max-width:768px) {
 body, body.spotify-track { --dock-height:168px; }
 .bottom-player, .bottom-player.spotify-mode { padding:12px 14px; }
 .dock-main { grid-template-columns:minmax(0,1fr) auto; gap:10px; min-height:0; }
 .dock-main .player-song-info { grid-column:1; grid-row:1; }
 .dock-main .player-cover { width:44px; height:44px; }
 .dock-main .player-title { font-size:12px; }
 .dock-main .player-artist { font-size:11px; }
 .dock-main .dock-add { margin:0; width:26px; }
 .dock-main .dock-utilities { grid-column:2; grid-row:1; gap:5px; }
 .dock-main .player-controls-center { grid-column:1 / -1; grid-row:2; max-width:560px; justify-self:center; }
 .dock-main .player-buttons { gap:26px; margin-bottom:5px; }
 .dock-main .player-volume { grid-column:auto; grid-row:auto; width:72px; max-width:72px; gap:5px; }
 .dock-main .volume-slider { width:44px; min-width:0; }
 .dock-main .volume-help { font-size:8px; bottom:-15px; }
 .dock-main .now-playing-toggle { grid-column:auto; grid-row:auto; }
 .bottom-player .dock-spotify { right:14px; }
}
@media(max-width:380px) {
 .dock-main .player-song-info { gap:7px; }
 .dock-main .dock-utilities { gap:0; }
 .dock-main .player-btn { width:28px; }
 .dock-main .player-volume { width:60px; }
}
