/* Unified library: collection shortcuts above the account's recent work. */
.studio:has(.creation-library) > .studio-top { display:none }
.creation-library { --collection-lime:#d4ff27; --collection-pink:#ff268b; display:grid; gap:clamp(20px,2vw,36px); min-width:0 }
.creation-library .collection-heading,.creation-library .collection-toolbar,.collection-search,.collection-caption,.collection-tabs { display:flex; align-items:center; gap:12px }
.creation-library .collection-heading { justify-content:space-between; flex-wrap:wrap }
body.platform .creation-library h1 { font-size:clamp(32px,3.8vw,64px); line-height:1.05; margin:0; letter-spacing:-.05em }
body.platform .creation-library h2 { font-size:clamp(22px,2.2vw,36px); line-height:1.15; margin:0; letter-spacing:-.04em }
.creation-library #library-filters { width:min(100%,530px); max-width:none; margin:0; padding:0; border:0; background:none }
.collection-search input { min-width:0; flex:1 }
.creation-library .collection-search .button { width:auto; min-height:44px; background:var(--collection-pink); color:#100810 }
.creation-library .library-filter-options { margin:5px 0 0; font-size:12px }
.creation-library .library-filter-options summary { color:var(--vv-muted); cursor:pointer }
.creation-library .collection-section-title { display:flex; align-items:center; gap:16px }
.collection-section-title::after { content:""; height:1px; background:var(--vv-border); flex:1 }
.collection-shelf { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-top:14px }
.collection-cover { position:relative; display:block; isolation:isolate; aspect-ratio:1.45; overflow:hidden; border-radius:12px; color:white; background:#18181a; border-bottom:3px solid #861045 }
.collection-cover img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; z-index:-2 }
.collection-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent 40%,#000c); z-index:-1 }
.collection-cover strong { position:absolute; left:5%; bottom:6%; font-size:clamp(16px,1.9vw,32px); line-height:1.15; letter-spacing:-.035em }
.collection-cover:hover,.collection-cover:focus-visible { border-color:var(--collection-pink) }
.creation-library .collection-toolbar { flex-wrap:wrap; gap:12px 20px }
.collection-tabs { flex-wrap:wrap; gap:3px }
.collection-tabs button { background:transparent; color:inherit; border:0; border-radius:8px; padding:9px 12px; font:inherit; cursor:pointer }
.collection-tabs button[aria-pressed=true] { background:var(--vv-accent); color:var(--vv-on-accent); font-weight:700 }
.creation-library #library-sort { margin-left:auto; width:auto; max-width:100% }
.creation-library .library-summary { margin:8px 0; font-size:12px; color:var(--vv-muted) }
.creation-library #library-error:empty { display:none }
.creation-library .unified-library { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start }
.creation-library .library-card { border-radius:12px }
.creation-library .library-preview { display:block; aspect-ratio:16/9 }
.creation-library .library-preview img { inset:0; object-fit:cover }
.creation-library .library-detail { padding:12px }
.collection-caption { justify-content:space-between; gap:8px }
body.platform .creation-library .library-detail h3 { font-size:clamp(15px,1.1vw,20px); margin:0 0 3px; line-height:1.25 }
.collection-caption a { color:inherit; text-decoration:none }
.collection-caption small { color:var(--vv-muted) }
.collection-status { font-size:12px; display:inline-flex; align-items:center; gap:5px }
.collection-status::before { content:""; width:8px; height:8px; flex:none; border-radius:100%; background:var(--collection-pink) }
.collection-status[data-ready=true]::before { background:var(--collection-lime) }
.collection-actions { margin-top:6px; font-size:12px }
.collection-actions > summary { cursor:pointer; color:var(--collection-pink); width:fit-content; padding:5px 0 }
@media(max-width:1000px) {
  .creation-library .unified-library { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .collection-shelf { gap:8px }
}
@media(max-width:760px) {
  .creation-library #library-filters { width:100% }
  .collection-shelf { grid-template-columns:repeat(6,minmax(0,1fr)) }
  .collection-cover { grid-column:span 2 }
  .collection-cover:nth-last-child(-n+2) { grid-column:span 3; aspect-ratio:2.2 }
  .creation-library .unified-library { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .creation-library .collection-toolbar { gap:10px }
  .collection-tabs { order:1; width:100% }
  .collection-tabs button { min-height:42px; padding:7px 9px }
}
@media(max-width:500px) {
  .collection-shelf { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .collection-cover,.collection-cover:nth-last-child(-n+2) { grid-column:auto; aspect-ratio:1.75 }
  .collection-cover:last-child { grid-column:1/-1; aspect-ratio:3.7 }
  .creation-library .unified-library { grid-template-columns:1fr }
  .creation-library #library-sort { font-size:12px; padding:6px }
  .collection-search { gap:6px }
}

/* Preserve the narrated-gallery subject in the wide mobile cover. */
.collection-cover img[src$="/canal-dark-darkmovie-v3.webp"] { object-position: center top; }
