/* Bibliothèque inspirée de la référence : lignes ouvertes et actions circulaires. */
.library-section-header { display:flex; flex:0 0 auto; gap:18px; align-items:center; border-bottom:1px solid var(--line); margin-bottom:20px; }
.library-sections { display:flex; flex:1; gap:24px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.library-sections::-webkit-scrollbar { display:none; }
.library-sections button { position:relative; flex-shrink:0; padding:20px 0 17px; border:0; border-bottom:3px solid transparent; background:none; color:var(--muted); font-size:14px; font-weight:700; white-space:nowrap; }
.library-sections button:is(:hover,.is-current) { color:var(--text); }
.library-sections button.is-current { border-bottom-color:var(--text); }
.library-audio-button { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 20px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--text); font-size:13px; font-weight:800; }
.library-audio-button:hover { background:var(--surface); }
#tab-content-songs .library-workspace-context { display:flex !important; margin-bottom:16px; gap:10px; }
#tab-content-songs .library-workspace-context p { font-size:11px; letter-spacing:0; color:var(--muted); }
#tab-content-songs .library-workspace-context strong { cursor:pointer; }
#tab-content-songs .new-workspace { height:32px; padding:0 12px; font-size:10px; }
#tab-content-songs .library-controls { display:flex; flex-wrap:nowrap; gap:12px; margin:0 0 18px; }
#tab-content-songs .search-box { flex:1; min-width:0; min-height:54px; margin:0; padding:0 20px; border-radius:999px; background:var(--surface); }
#tab-content-songs .search-box svg { width:23px; height:23px; flex-shrink:0; color:var(--text); }
#tab-content-songs .search-box input { background:transparent; font-size:14px; }
#tab-content-songs .library-controls>.control-button { min-height:54px; height:auto; padding:0 19px; gap:10px; font-size:13px; white-space:nowrap; }
#tab-content-songs .library-controls>.control-button.emphasis { background:var(--accent); color:var(--bg); border-color:var(--accent); }
#tab-content-songs .filter-menu { z-index:6; top:62px; right:110px; }
#tab-content-songs .list-heading { padding:0 8px 12px; color:var(--muted); font-size:11px; }
#song-list { display:flex; flex-direction:column; flex-wrap:nowrap; gap:10px; padding:2px 10px 16px 0; }
#song-list .song { display:grid !important; grid-template-columns:10px 96px minmax(0,1fr) 48px; gap:14px; min-height:120px; flex-shrink:0; padding:10px 8px; border:0 !important; border-radius:14px !important; background:transparent !important; overflow:visible; }
#song-list .song:is(:hover,.selected) { background:var(--surface) !important; }
#song-list .song-status-dot { width:9px; height:9px; box-shadow:none; }
#song-list .song-status-dot.complete { background:var(--danger); }
#song-list .song-status-dot:is(.processing,.pending) { background:var(--pending); }
#song-list .song-status-dot.failed { background:#ff6060; }
#song-list .song-artwork { position:relative; display:block; width:96px; height:96px; padding:0; border:0; border-radius:12px; overflow:hidden; background:var(--surface); color:var(--text); }
#song-list .song-artwork:disabled { cursor:default; }
#song-list .song-cover { display:grid; width:100% !important; height:100% !important; min-width:0 !important; flex:none; border:0; border-radius:0 !important; object-fit:cover; box-shadow:none; }
#song-list .song-duration { position:absolute; bottom:7px; right:7px; padding:4px 7px; border-radius:999px; background:rgba(28,24,22,.58); color:#fff; font-size:11px; font-weight:800; line-height:1.2; font-variant-numeric:tabular-nums; backdrop-filter:blur(6px); }
#song-list .song-content { min-width:0; overflow:hidden; }
#song-list .song-top { gap:12px; margin:0; align-items:center; }
#song-list .song-title { min-width:0; font-size:16px !important; color:var(--text) !important; font-weight:800 !important; letter-spacing:-.035em; }
#song-list .song-title-button { display:block; max-width:100%; overflow:hidden; padding:0; border:0; background:none; color:inherit; font:inherit; letter-spacing:inherit; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
#song-list .song-title-button:hover { text-decoration:underline; }
#song-list .song-model { flex-shrink:0; color:#ff4a67; font:11px "DM Mono",monospace; }
#song-list .song-top .status { padding:2px 5px; font-size:9px !important; }
#song-list .song-details { margin:6px 0 10px; color:var(--muted) !important; font-size:12px !important; line-height:1.5; }
#song-list .song-quick-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
#song-list .song-quick-action { display:grid; place-items:center; width:38px !important; height:38px !important; min-width:38px !important; margin:0; padding:0; border:0 !important; border-radius:50% !important; background:var(--surface-raised) !important; color:var(--muted) !important; box-shadow:none; cursor:pointer; }
#song-list .song-quick-action:is(:hover,.is-active,.is-playing) { background:var(--line) !important; color:var(--text) !important; }
#song-list .song-quick-action.is-active { color:var(--danger) !important; }
#song-list .song-quick-action:disabled { opacity:.35; cursor:not-allowed; }
#song-list .song-quick-action svg { width:17px !important; height:17px !important; stroke:currentColor; stroke-width:1.8; }
#song-list .song-download-cta { display:flex; width:max-content; max-width:100%; margin-inline:auto; flex-shrink:0; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:9px 13px; border:1px solid #e9a67f; border-radius:10px; background:#c05818; color:#fff; font-size:12px; font-weight:800; line-height:1.3; white-space:nowrap; box-shadow:0 2px 8px rgba(0,0,0,.1); transition:background .18s,transform .18s,box-shadow .18s; }
#song-list .song-download-cta:not(:disabled):hover { background:#b84608; box-shadow:0 4px 12px rgba(0,0,0,.18); transform:translateY(-1px); }
#song-list .song-download-cta:not(:disabled):active { transform:translateY(0); }
#song-list .song-download-cta:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
#song-list .song-download-cta[aria-busy="true"] { opacity:.85; cursor:progress; }
#song-list .song-download-cta-icon { display:grid; place-items:center; }
#song-list .song-download-cta-icon svg { width:16px; height:16px; }
#song-list .song-download-format { padding:3px 5px; border-radius:5px; background:#ffffff24; font-size:9px; letter-spacing:.04em; }
@media (max-width:900px) { #song-list .song-download-cta { min-height:34px; padding:8px 10px; gap:6px; } }
@media (max-width:380px) { #song-list .song-download-format { display:none; } }
#song-list .song-play .icon-play { fill:currentColor; stroke:none; }
#song-list .song-play .icon-pause { display:none; }
#song-list .song-play.is-playing .icon-play { display:none; }
#song-list .song-play.is-playing .icon-pause { display:block; }
#song-list .song-actions { display:block; }
#song-list .song-menu { width:48px !important; height:48px !important; min-width:48px !important; border:0 !important; border-radius:50%; background:var(--surface) !important; color:var(--muted) !important; }
#song-list .song-menu:is(:hover,[aria-expanded="true"]) { background:var(--line) !important; color:var(--text) !important; }
#song-list .song-audio { display:none; }
#song-details-lyrics { white-space:pre-wrap; }
.desktop-volume-control { display:flex; align-items:center; gap:10px; justify-self:end; }
.desktop-volume-control input { width:72px; height:4px; padding:0; accent-color:var(--text); }
.desktop-player-timeline { position:absolute; bottom:7px; left:30px; right:30px; display:grid; grid-template-columns:34px minmax(0,1fr) 34px; align-items:center; gap:12px; font-size:9px; font-variant-numeric:tabular-nums; }
.desktop-player-timeline input { width:100%; height:4px; padding:0; accent-color:var(--text); }
.desktop-player-timeline span:last-child { text-align:right; }
.player-bar { padding-bottom:15px; }
.player-song { min-width:0; }
#player-title { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
:is(.library-sections,.library-section-header,#tab-content-songs,#song-list) :is(button,input):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (min-width:901px) { body[data-library-mode="songs"] .workspace-content { padding-top:8px; overflow:hidden !important; } body[data-library-mode="songs"] #tab-content-songs { display:flex; flex-direction:column; flex:1; min-height:0; height:100%; } body[data-library-mode="songs"] #song-list { min-height:0; flex:1; overflow-y:auto; } }
@media (min-width:1300px) { #song-list .song { grid-template-columns:10px 112px minmax(0,1fr) 48px; min-height:136px; gap:18px; } #song-list .song-artwork { width:112px; height:112px; } #song-list .song-quick-action { width:42px !important; height:42px !important; min-width:42px !important; } #song-list .song-title { font-size:17px !important; } #song-list .song-details { font-size:12px !important; } }
@media (min-width:901px) and (max-width:1000px) { .library-sections { gap:18px; } .library-sections button { font-size:12px; } .library-audio-button { padding:10px 14px; } #tab-content-songs .library-controls { flex-wrap:wrap; gap:8px; } #tab-content-songs .search-box { flex-basis:100%; } #tab-content-songs .library-controls>.control-button { min-height:42px; } #tab-content-songs .filter-menu { top:108px; right:auto; left:0; } #song-list .song { grid-template-columns:6px 88px minmax(0,1fr) 36px; gap:10px; } #song-list .song-artwork { width:88px; height:88px; } #song-list .song-menu { width:36px !important; height:36px !important; min-width:36px !important; } #song-list .song-title { font-size:14px !important; } #song-list .song-quick-actions { gap:5px; } #song-list .song-quick-action { width:30px !important; height:30px !important; min-width:30px !important; } }
@media (max-width:900px) { .library-section-header { gap:10px; margin-bottom:14px; } .library-sections { gap:18px; } .library-sections button { padding:15px 0 13px; font-size:12px; } .library-audio-button { min-height:36px; padding:8px 12px; font-size:11px; } .library-audio-button svg { width:14px; } #tab-content-songs .library-workspace-context { margin-bottom:12px; } #tab-content-songs .library-controls { flex-wrap:wrap; gap:8px; margin-bottom:14px; } #tab-content-songs .search-box { flex-basis:100%; min-height:46px; padding:0 16px; } #tab-content-songs .search-box input { font-size:16px; } #tab-content-songs .library-controls>.control-button { flex:1; min-height:40px; padding:0 14px; font-size:12px; } #tab-content-songs .filter-menu { top:96px; right:auto; left:0; } #song-list { gap:8px; padding-right:0; overflow:visible; } #song-list .song { grid-template-columns:5px 76px minmax(0,1fr) 30px; gap:9px; padding:10px 0; min-height:110px; } #song-list .song-artwork { width:76px; height:86px; border-radius:12px; } #song-list .song-status-dot { width:5px; height:5px; } #song-list .song-title { font-size:13px !important; } #song-list .song-top { gap:6px; } #song-list .song-model { font-size:9px; } #song-list .song-details { margin:6px 0 10px; font-size:10px !important; } #song-list .song-duration { right:4px; bottom:4px; font-size:9px; padding:3px 5px; } #song-list .song-quick-actions { flex-wrap:wrap; gap:5px; } #song-list .song-quick-action { width:28px !important; height:28px !important; min-width:28px !important; } #song-list .song-quick-action svg { width:14px !important; height:14px !important; } #song-list .song-menu { width:30px !important; height:30px !important; min-width:30px !important; } #song-list .song-menu svg { width:15px; height:15px; } }
@media (prefers-reduced-motion:reduce) { #song-list .song,#song-list button { transition:none; } }
