/* XAURAL Luxe 1.4.38 — center the contents, not just the outer layout.
   Dedicated overrides loaded LAST after studio/discovery/rework/identity.
   Music rows intentionally stay left-aligned for readability. */
/* SONG: the tiny genre eyebrow must sit on the same visual axis as the cover and title. */
.aiw-shell-content .xaural-centered-song .aiw-song-head .aiw-song-identity>.aiw-kicker{
 display:block!important;position:static!important;float:none!important;align-self:center!important;
 width:fit-content!important;max-width:100%!important;text-align:center!important;
 margin:0 auto 12px!important;padding:0!important;white-space:normal!important;
}
/* PROFILE: main action bar and EACH statistic's number + caption must be centered. */
.aiw-shell-content .xaural-centered-profile .aiw-artist-toolbar{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 justify-content:center!important;gap:12px!important;text-align:center!important;
}
.aiw-shell-content .xaural-centered-profile .aiw-artist-toolbar-primary,
.aiw-shell-content .xaural-centered-profile .aiw-artist-toolbar-socials{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
 margin-inline:0!important;text-align:center!important;
}
.aiw-shell-content .xaural-centered-profile .aiw-artist-quickstats{
 width:100%!important;max-width:880px!important;margin:0 auto 30px!important;
}
.aiw-shell-content .xaural-centered-profile .aiw-artist-quickstats>div{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;text-align:center!important;gap:7px!important;
 padding:clamp(12px,2vw,22px)!important;
}
.aiw-shell-content .xaural-centered-profile .aiw-artist-quickstats>div>strong,
.aiw-shell-content .xaural-centered-profile .aiw-artist-quickstats>div>span{
 display:block!important;width:100%!important;text-align:center!important;margin-inline:auto!important;
}
/* PLAYLIST: centered summary cards, editor, and management actions, while song rows remain Spotify-style. */
.aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:10px!important;max-width:720px!important;width:100%!important;
 margin:0 auto 24px!important;justify-content:center!important;
}
.aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip>.xaural-stat-item{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;text-align:center!important;
 gap:5px!important;min-width:0!important;width:100%!important;
 padding:14px 12px!important;
}
.aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip>.xaural-stat-item>*{
 display:block!important;text-align:center!important;width:100%!important;margin:0 auto!important;
}
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-cover-editor{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:12px!important;
 width:min(100%,760px)!important;max-width:760px!important;
 margin:15px auto 18px!important;text-align:center!important;
}
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-cover-editor>label:first-of-type{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:8px!important;flex:0 1 auto!important;
 width:100%!important;max-width:520px!important;text-align:center!important;
}
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-cover-editor input[type=file]{
 display:block!important;width:min(100%,460px)!important;max-width:100%!important;
 margin:0 auto!important;box-sizing:border-box!important;
}
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-cover-editor .aiw-cover-remove{
 display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
 flex:0 0 auto!important;margin:0 auto!important;text-align:center!important;
}
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-cover-editor button{margin:0 auto!important;align-self:center!important;}
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-visibility,
.aiw-shell-content .xaural-centered-playlist>.aiw-playlist-bookmark,
.aiw-shell-content .xaural-centered-playlist>.aiw-inline-share{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;gap:10px!important;width:fit-content!important;
 max-width:100%!important;margin:12px auto 18px!important;text-align:center!important;
}
.aiw-shell-content .xaural-centered-playlist>.aiw-muted:not(.xaural-trackline-streams){
 text-align:center!important;margin:12px auto!important;max-width:800px!important;
}
/* STUDIO: each KPI icon, value and caption centered as a unified compact group. */
.aiw-shell-content .xaural-studio-v2 .xaural-studio-primary-metrics>.aiw-member-metric{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;text-align:center!important;
 gap:10px!important;padding:18px 12px!important;
}
.aiw-shell-content .xaural-studio-v2 .xaural-studio-primary-metrics>.aiw-member-metric>.aiw-member-icon{
 display:block!important;align-self:center!important;margin:0 auto!important;flex:none!important;
}
.aiw-shell-content .xaural-studio-v2 .xaural-studio-primary-metrics>.aiw-member-metric>strong{
 display:block!important;text-align:center!important;align-self:center!important;
 width:100%!important;line-height:1.08!important;margin:0 auto!important;
}
.aiw-shell-content .xaural-studio-v2 .xaural-studio-primary-metrics>.aiw-member-metric>span{
 display:block!important;text-align:center!important;align-self:center!important;
 width:100%!important;margin:0 auto!important;line-height:1.35!important;
}
@media(max-width:520px){
 .aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip{gap:8px!important;}
 .aiw-shell-content .xaural-centered-profile .aiw-artist-quickstats>div{padding:12px 6px!important;}
 .aiw-shell-content .xaural-studio-v2 .xaural-studio-primary-metrics>.aiw-member-metric{gap:7px!important;padding:14px 8px!important;}
 .aiw-shell-content .xaural-centered-playlist>.aiw-playlist-cover-editor{padding:15px 10px!important;}
}

/* Desktop banner composition — user's horizontal reference. Keep mobile vertical.
   Explicitly beat legacy selectors (which force column with !important). */
@media(min-width:821px){
 .aiw-shell-content .xaural-centered-song>.aiw-song-head{
  display:grid!important;grid-template-columns:minmax(170px,255px) minmax(0,1fr)!important;
  align-items:center!important;justify-items:stretch!important;justify-content:center!important;
  gap:clamp(20px,3vw,42px)!important;min-height:300px!important;
  padding:clamp(25px,4vw,48px)!important;box-sizing:border-box!important;
 }
 .aiw-shell-content .xaural-centered-song>.aiw-song-head>.aiw-art{
  width:clamp(165px,20vw,245px)!important;height:clamp(165px,20vw,245px)!important;
  max-width:245px!important;max-height:245px!important;justify-self:center!important;
  margin:0!important;flex:0 0 auto!important;
 }
 .aiw-shell-content .xaural-centered-song .aiw-song-identity{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;
  margin:0!important;text-align:center!important;min-width:0!important;
 }
 .aiw-shell-content .xaural-centered-song .aiw-song-identity h1{max-width:100%!important;margin:10px auto!important;text-align:center!important;}
 .aiw-shell-content .xaural-centered-playlist>.aiw-profile-head.xaural-identity-head{
  display:grid!important;grid-template-columns:minmax(160px,230px) minmax(0,1fr)!important;
  align-items:center!important;justify-items:center!important;gap:clamp(22px,3vw,45px)!important;
  min-height:295px!important;padding:clamp(26px,4vw,44px)!important;
 }
 .aiw-shell-content .xaural-centered-playlist>.xaural-identity-head>.aiw-playlist-cover{
  width:clamp(165px,18vw,220px)!important;height:clamp(165px,18vw,220px)!important;
  max-width:220px!important;max-height:220px!important;justify-self:center!important;margin:0!important;
 }
 .aiw-shell-content .xaural-centered-playlist>.xaural-identity-head>div:last-child{
  width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;text-align:center!important;margin:0!important;
 }
 .aiw-shell-content .xaural-centered-profile>.aiw-public-profile.xaural-identity-head{min-height:315px!important;}
 .aiw-shell-content .xaural-centered-profile .aiw-public-profile-summary{
  display:grid!important;grid-template-columns:clamp(92px,11vw,135px) minmax(0,1fr)!important;
  justify-items:center!important;align-items:center!important;gap:clamp(15px,3vw,35px)!important;
  min-height:315px!important;padding:clamp(25px,3.6vw,42px)!important;
 }
 .aiw-shell-content .xaural-centered-profile .aiw-public-profile-avatar{align-self:center!important;margin:0!important;}
 .aiw-shell-content .xaural-centered-profile .aiw-public-profile-details{
  width:100%!important;max-width:100%!important;margin:0!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;
 }
}
/* Center figures INSIDE the cards — number and label on the same vertical axis. */
.aiw-shell-content .xaural-centered-song .xaural-stat-strip,
.aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip{
 display:grid!important;gap:10px!important;align-items:stretch!important;justify-content:center!important;
}
.aiw-shell-content .xaural-centered-song .xaural-stat-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;max-width:660px!important;margin:18px auto 0!important;}
.aiw-shell-content .xaural-centered-song .xaural-stat-item,
.aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip>.xaural-stat-item{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;text-align:center!important;gap:5px!important;
 min-width:0!important;padding:14px 9px!important;
}
.aiw-shell-content .xaural-centered-song .xaural-stat-item :is(strong,span),
.aiw-shell-content .xaural-centered-playlist>.xaural-stat-strip>.xaural-stat-item :is(strong,span){
 display:block!important;width:100%!important;max-width:100%!important;
 text-align:center!important;margin:0 auto!important;overflow-wrap:anywhere!important;
}
@media(max-width:820px){
 .aiw-shell-content .xaural-centered-song>.aiw-song-head,
 .aiw-shell-content .xaural-centered-playlist>.aiw-profile-head.xaural-identity-head{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 }
 .aiw-shell-content .xaural-centered-profile .aiw-public-profile-summary{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 }
}
