/* Desktop settings share the mobile controls, while retaining a desktop modal. */
#desktop-settings-modal { color:var(--text);background:var(--bg);width:min(560px,calc(100vw - 32px));height:min(90dvh,960px);max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:24px;overflow:hidden; }
#desktop-settings-modal::backdrop { background:#0006; }
#desktop-settings-modal #settings-dialog { display:flex;flex-direction:column;position:static;width:100%;height:100%;min-height:0;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:hidden; }
#desktop-settings-modal .settings-head { display:flex;flex:none;position:static;z-index:1;align-items:center;justify-content:space-between;padding:20px;background:var(--bg); }
#desktop-settings-modal .settings-head .eyebrow { display:none; }
#desktop-settings-modal .settings-head h2 { font-size:24px; }
#desktop-settings-modal .settings-body { flex:1;min-height:0;margin:0 8px 8px 0;padding:0 12px 12px 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain; }
#desktop-settings-modal .settings-section { padding:18px;margin:0 0 12px;border:0;border-radius:20px;background:var(--panel); }
#desktop-settings-modal .settings-section h3 { font-size:18px; }
#desktop-settings-modal .settings-row { min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px; }
#desktop-settings-modal .settings-row small { display:block;font-size:13px;color:var(--muted); }
#desktop-settings-modal .web-actions { flex-direction:column;align-items:flex-start;gap:6px; }
#desktop-settings-modal .settings-description,#desktop-settings-modal p[role=status] { color:var(--muted);font-size:13px;line-height:1.6; }
.roytools-select-trigger { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border:1px solid var(--line);color:var(--text);background:var(--panel);font:inherit; }
.filters select[hidden] { display:none!important; }
.filters .roytools-select-trigger { width:100%; }
.filters .roytools-select-trigger:after { content:'⌄';color:var(--muted); }
#desktop-settings-modal .roytools-select-trigger { color:var(--blue);min-width:88px; }
#desktop-settings-modal button.primary,#desktop-settings-modal button.secondary { min-height:40px;padding:10px 16px; }
#desktop-settings-modal textarea { width:100%;padding:12px;box-sizing:border-box;border-radius:16px; }
#fixed-playlists .music-entry { background:none;display:flex;gap:13px;align-items:center;text-align:left;padding:14px 13px;width:100%;border-radius:12px;color:var(--muted);margin-bottom:7px;font-size:13px; }
#fixed-playlists .music-entry-icon { display:flex;flex:none;width:20px;height:20px; }
#fixed-playlists svg { width:20px;height:20px; }
#fixed-playlists .music-entry-copy { min-width:0;flex:1; }
#fixed-playlists .music-entry-copy strong { font-weight:400; }
#fixed-playlists .music-entry-count { font-size:11px; }
#fixed-playlists .music-entry-arrow { display:none; }
#fixed-playlists .music-entry.active { color:var(--blue);background:var(--soft); }
#full-player .full-shell { position:relative; }
#full-player .full-view-bar { display:block;position:absolute;top:12px;right:16px;z-index:8; }
#full-player .full-view-bar .full-tabs { display:none!important; }
#full-player .full-more-menu { min-width:200px; }
#web-download-tray { bottom:calc(var(--player-height) + 12px); }
#songs .download-row { grid-template-columns:28px minmax(0,1fr) 44px; }
#songs .download-row.confirming-delete { grid-template-columns:28px minmax(0,1fr) 88px; }
#songs .download-delete { color:#d70015;background:transparent;border-radius:999px;min-height:44px; }
#songs .download-delete svg { width:22px;height:22px; }
#songs .download-delete.is-confirming { background:#ff3b3014; }
#desktop-settings-modal #settings-dialog[hidden],#desktop-downloads-page[hidden] { display:none; }
#desktop-downloads-page { display:flex;flex-direction:column;height:100%;min-height:0; }
#desktop-downloads-page .settings-head { justify-content:flex-start;gap:8px;padding:16px; }
#desktop-downloads-page h2 { margin:0;font-size:22px; }
#settings-downloads-back { display:grid;place-items:center;width:44px;height:44px;padding:10px;color:var(--blue);border-radius:50%;background:transparent; }
#settings-downloads-back svg { width:24px;height:24px; }
#desktop-downloads-page .search-tools { display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;margin:0 0 16px; }
#desktop-downloads-page .search { width:auto;flex:1;min-width:0; }
#desktop-downloads-page .search input { width:100%;min-width:0; }
#desktop-downloads-page .search kbd { display:none; }
#desktop-downloads-page .filters { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px; }
#desktop-downloads-page .filters label { width:100%;min-width:0; }
#desktop-downloads-page .filters>span { grid-column:1/-1;justify-self:end;padding:0; }
#desktop-downloads-page .track-row { gap:8px;padding:12px 4px; }
#desktop-downloads-page .download-row { grid-template-columns:28px minmax(0,1fr) 44px; }
#desktop-downloads-page .download-row.confirming-delete { grid-template-columns:28px minmax(0,1fr) 88px; }
#desktop-downloads-page .track-start { gap:10px;min-width:0; }
#desktop-downloads-page .track-copy strong { white-space:normal;overflow-wrap:anywhere; }
#desktop-downloads-page .download-delete { width:44px;height:44px;padding:10px;justify-self:end;color:#d70015;background:transparent;border-radius:999px; }
html[data-theme="dark"] #desktop-downloads-page .download-delete { color:#ff453a; }
#desktop-downloads-page .download-delete svg { width:22px;height:22px; }
#desktop-downloads-page .download-delete.is-confirming { width:88px;padding:8px;background:#ff3b3014; }
#desktop-downloads-page .download-delete:focus-visible { outline:2px solid var(--blue);outline-offset:2px; }
#desktop-downloads-page .empty { padding:32px 8px; }
.music-queue-backdrop { position:fixed;inset:0;z-index:6;background:#0005;border:0;padding:0; }
.queue-panel,.full-queue { z-index:7; }
#full-queue-backdrop { position:absolute; }
#open-full-copy { cursor:pointer; }
#desktop-settings-modal #close-settings svg { width:24px;height:24px; }
#album-detail>.detail-heading>img { grid-row:1 / span 2; }
#album-detail .album-play-actions { grid-column:2; }
@media(max-width:600px) {
 #album-detail>.detail-heading>img { grid-row:1; }
 #album-detail .album-play-actions { grid-column:1 / -1; }
}
/* A desktop session may become narrow without reloading or replacing the player. */
@media(max-width:700px) {
 #full-player .full-view-bar { display:grid;position:relative;top:auto;right:auto;grid-template-columns:minmax(44px,1fr) minmax(0,190px) minmax(44px,1fr);min-height:44px; }
 #full-player .full-view-bar .full-tabs { display:flex!important;align-items:stretch;height:44px;padding:4px;gap:4px;border:0;border-radius:999px;background:var(--panel); }
 #full-player .full-tab { height:36px;min-height:36px;color:var(--muted);background:transparent; }
 #full-player .full-tab.is-active { color:var(--blue);background:var(--soft); }
 #full-player #full-more { position:static;align-self:center;justify-self:end;margin:0; }
 #full-player .full-content>img { width:min(100%,30dvh);height:auto;max-height:34dvh;aspect-ratio:1; }
}
