
/* ==========================================================
   CANTAIMY v6.9 — Library features
   ========================================================== */
.compact-head{
  padding-bottom:18px !important;
}
.library-shell{
  width:min(1180px,calc(100vw - 96px));
  margin:0 auto 54px;
}
.library-toolbar{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-bottom:14px;
}
.library-empty{
  min-height:110px;
  display:grid;
  place-items:center;
  padding:24px;
  border:1px dashed rgba(255,255,255,.11);
  border-radius:16px;
  color:#949db6;
  text-align:center;
}
.library-empty[hidden]{display:none!important}

.library-song-list,
.playlist-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.library-song-row{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(160px,1fr) 100px auto;
  gap:12px;
  align-items:center;
  min-height:56px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(14,9,42,.58);
}
.library-song-row:hover{
  background:rgba(21,14,58,.76);
  border-color:rgba(0,232,255,.13);
}
.library-song-title{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.library-song-artist{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#a8b0c6;
  font-size:12px;
}
.library-song-meta{
  color:#7e88a3;
  font-size:11px;
  text-align:right;
}
.library-row-actions{
  display:flex;
  justify-content:flex-end;
  gap:6px;
}
.library-action{
  min-height:32px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:#dce0eb;
  font:700 10px/1 Inter,sans-serif;
  cursor:pointer;
}
.library-action:hover{background:rgba(255,255,255,.08)}
.library-action.play{
  width:34px;
  padding:0;
  border-radius:50%;
  background:linear-gradient(135deg,#ff3ecf,#744cff);
  border:0;
  color:#fff;
}
.library-action.remove{color:#ff8fa8}

.playlist-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(14,9,42,.62);
}
.playlist-card h3{
  margin:0 0 4px;
  font-size:15px;
}
.playlist-card p{
  margin:0;
  color:#8f98b2;
  font-size:11px;
}
.playlist-card-actions{
  display:flex;
  gap:7px;
}
.playlist-modal-card{
  width:min(640px,96vw)!important;
}
.playlist-form{
  display:flex;
  gap:8px;
}
.playlist-form input{
  flex:1;
  min-width:0;
  height:42px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:#08061e;
  color:#fff;
  padding:0 12px;
}
.playlist-choice-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.playlist-choice{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  color:#fff;
  cursor:pointer;
  text-align:left;
}
.playlist-choice:hover{background:rgba(255,255,255,.07)}

.v69-player-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
.player-mini-action{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  background:rgba(255,255,255,.035);
  color:#dfe3ee;
  font-size:16px;
  cursor:pointer;
}
.player-mini-action.active{
  color:#ff4dbd;
  border-color:rgba(255,77,189,.35);
  background:rgba(255,77,189,.09);
}

@media(max-width:820px){
  .library-shell{width:calc(100vw - 34px)}
  .library-song-row{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .library-song-artist{grid-column:1}
  .library-song-meta{display:none}
  .library-row-actions{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
  }
}


/* ==========================================================
   CANTAIMY v7.6.35 — Desktop Library Harmony
   Favorites / History / Playlist contents follow catalogue list
   ========================================================== */
@media(min-width:821px){
  #favorites .compact-head,
  #history .compact-head,
  #playlists .compact-head{
    padding-top:14px !important;
    padding-bottom:10px !important;
  }

  #favorites .library-shell,
  #history .library-shell,
  #playlists .library-shell{
    width:min(1460px,calc(100vw - 76px));
    margin-top:0;
  }

  .library-song-list{
    gap:6px;
  }

  .library-song-row{
    min-height:70px;
    display:grid;
    grid-template-columns:58px minmax(260px,1fr) minmax(210px,.55fr) 82px auto;
    align-items:center;
    gap:14px;
    padding:6px 10px;
    border:1px solid rgba(255,255,255,.065);
    border-radius:11px;
    background:rgba(255,255,255,.018);
  }

  .library-song-row:hover{
    background:rgba(255,255,255,.035);
    border-color:rgba(0,232,255,.12);
  }

  .library-song-cover{
    width:58px;
    height:58px;
    min-width:58px;
    padding:0;
    border:0;
    border-radius:9px;
    background-color:#0b0824;
    background-size:cover;
    background-position:center;
    cursor:pointer;
    box-shadow:0 7px 18px rgba(0,0,0,.20);
    transition:transform .14s ease,box-shadow .14s ease;
  }

  .library-song-cover:hover{
    transform:scale(1.035);
    box-shadow:0 0 0 1px rgba(0,232,255,.24),0 9px 22px rgba(0,0,0,.24);
  }

  .library-song-copy{
    min-width:0;
  }

  .library-song-title{
    margin:0 0 4px;
    font-size:13px;
  }

  .library-song-artist{
    font-size:10px;
  }

  .library-song-secondary{
    margin-top:3px;
    color:#68728c;
    font-size:8.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .library-song-stats{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    white-space:nowrap;
  }

  .library-song-listens{
    color:#7f8cac;
    font-size:9.5px;
  }

  .library-song-rating{
    color:#f1cc5c;
    font-size:9.5px;
  }

  .library-song-duration{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:1px;
    min-width:0;
  }

  .library-song-duration span{
    color:#566079;
    font-size:6.5px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.09em;
    opacity:.78;
  }

  .library-song-duration strong{
    color:#d8deeb;
    font-size:11px;
    font-variant-numeric:tabular-nums;
  }

  .library-row-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
  }

  .library-action.play{
    width:38px;
    height:38px;
    min-height:38px;
    padding:0;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.11);
    border-radius:50%;
    background:#09071f;
    color:#fff;
    font-size:12px;
  }

  .library-action.play:hover{
    border-color:rgba(255,55,184,.36);
    background:#0d0927;
    box-shadow:0 0 18px rgba(255,55,184,.12);
  }

  .library-action.remove{
    min-height:34px;
    padding:0 10px;
    border-radius:9px;
    color:#ff9bae;
  }

  .playlist-content-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
    padding:0 2px 9px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }

  .playlist-content-eyebrow{
    display:block;
    margin-bottom:3px;
    color:#75809c;
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.1em;
  }

  .playlist-content-head h3{
    margin:0;
    color:#fff;
    font-size:20px;
  }

  .playlist-content-count{
    color:#8791aa;
    font-size:9.5px;
  }

  .playlist-modal-card{
    width:min(1180px,94vw)!important;
    max-height:86vh!important;
  }

  .playlist-song-list{
    max-height:68vh;
    overflow:auto;
    padding-right:2px;
  }

  /* Playlist overview cards share the same surface language. */
  .playlist-card{
    min-height:70px;
    padding:12px 14px;
    border-radius:11px;
    background:rgba(255,255,255,.018);
    border-color:rgba(255,255,255,.065);
  }

  .playlist-card:hover{
    background:rgba(255,255,255,.035);
    border-color:rgba(0,232,255,.12);
  }

  .playlist-card h3{
    font-size:14px;
  }

  .playlist-card p{
    font-size:10px;
  }

  .playlist-card-actions .library-action{
    min-height:34px;
    border-radius:9px;
  }
}

@media(min-width:821px) and (max-width:1100px){
  .library-song-row{
    grid-template-columns:58px minmax(220px,1fr) minmax(150px,.45fr) 70px auto;
    gap:10px;
  }

  #favorites .library-shell,
  #history .library-shell,
  #playlists .library-shell{
    width:calc(100vw - 48px);
  }
}


/* ==========================================================
   v7.6.49 — Artist Releases view
   ========================================================== */
#artists .artist-card{
  cursor:pointer;
  transition:border-color .14s ease,background .14s ease,transform .14s ease;
}

#artists .artist-card:hover,
#artists .artist-card:focus-visible{
  border-color:rgba(0,232,255,.18);
  background:#151238;
  outline:none;
  transform:translateY(-1px);
}

.artist-releases-shell{
  width:min(1180px,calc(100vw - 76px));
  margin:0 auto 110px;
}

.artist-releases-hero{
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px 0 18px;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.artist-releases-avatar{
  width:86px;
  height:86px;
  flex:0 0 86px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.artist-releases-identity{
  min-width:0;
}

.artist-releases-identity .eyebrow{
  margin:0 0 4px;
  color:#00e8ff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.artist-releases-identity h1{
  margin:0 0 7px;
  color:#fff;
  font:800 clamp(28px,3vw,46px)/1 Montserrat,Inter,sans-serif;
  letter-spacing:-.035em;
}

.artist-releases-meta{
  display:flex;
  align-items:center;
  gap:7px;
  color:#8f99b3;
  font-size:10.5px;
}

.artist-releases-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0 10px;
}

.artist-releases-section-head h2{
  margin:0;
  color:#fff;
  font-size:16px;
}

.artist-releases-list{
  gap:6px;
}

@media(min-width:821px){
  #artistReleases .library-song-row{
    grid-template-columns:58px minmax(260px,1fr) minmax(210px,.55fr) 82px 46px;
  }

  #artistReleases .library-row-actions{
    min-width:46px;
  }
}
