/* OBG STREAM SHOP V48: scoped presentation and pagination visibility repair.
   Supports the original V10 cards and existing V46/V47 headers.
   No script or product-data changes. */

#obgShopPage #obgShopProductList.obg-mp3-grid-v10{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10{
  min-width:0!important;
  border-color:rgba(224,184,83,.36)!important;
  border-radius:14px!important;
  background:#111318!important;
  box-shadow:inset 0 1px rgba(255,229,161,.055)!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10::before{
  display:none!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head){
  display:grid!important;
  grid-template-columns:minmax(0,36%) minmax(0,1fr)!important;
  column-gap:7px!important;
  row-gap:5px!important;
  align-items:start!important;
  min-width:0!important;
  padding:10px 9px 9px!important;
  background:radial-gradient(ellipse at 65% 0%,rgba(224,177,60,.18),transparent 78%),linear-gradient(120deg,#18191c,#131519)!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head)::before{
  content:none!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head)>.obg-mp3-art-v10{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  aspect-ratio:1!important;
  border:1px solid rgba(225,190,104,.3)!important;
  border-radius:8px!important;
  overflow:hidden!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-identity,.obg-shop-v47-identity){
  display:contents!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-identity,.obg-shop-v47-identity)>.obg-mp3-title-v10{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  font-size:clamp(12px,2.85vw,16px)!important;
  font-weight:750!important;
  line-height:1.25!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  -webkit-line-clamp:unset!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-identity,.obg-shop-v47-identity)>.obgs-badge{
  grid-column:1 / -1!important;
  grid-row:1!important;
  justify-self:start!important;
  width:fit-content!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:3px 5px!important;
  font-size:9px!important;
  line-height:1.2!important;
  letter-spacing:.025em!important;
  border-color:rgba(224,184,83,.32)!important;
}
/* Full-width real badge prevents long labels squeezing the title into a sliver.
   Identity wrappers stay in the DOM; only their CSS box is removed. */
#obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head):has(.obgs-badge)>.obg-mp3-art-v10{
  grid-row:2 / span 2!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head):has(.obgs-badge) .obg-mp3-title-v10{
  grid-row:2!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-identity,.obg-shop-v47-identity)>.obgs-artist{
  grid-column:2!important;
  grid-row:2!important;
}
#obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head):has(.obgs-badge) .obgs-artist{
  grid-row:3!important;
}
/* V10 can classify an artist name as a badge; the original artist class wins. */
#obgShopPage #obgShopProductList .obg-mp3-card-v10 .obgs-artist{
  display:block!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  color:#bfc0c7!important;
  font-size:clamp(10px,2.5vw,12px)!important;
  font-weight:500!important;
  line-height:1.3!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10>.obg-mp3-body-v10{
  padding:8px 9px 10px!important;
  gap:6px!important;
}
#obgShopPage #obgShopProductList .obg-mp3-card-v10 .obgs-includes{
  margin:0 0 3px!important;
  font-size:11px!important;
  line-height:1.35!important;
}
#obgShopPage #obgShopProductList .obg-mp3-card-v10 .obgs-preview{
  margin:0 0 6px!important;
  gap:6px!important;
}
#obgShopPage #obgShopProductList .obg-mp3-card-v10 :is(.obg-mp3-preview-v10,.obg-mp3-buy-v10){
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  max-height:none!important;
  margin:0!important;
  padding:8px 5px!important;
  gap:5px!important;
  font-size:clamp(11px,2.8vw,14px)!important;
  line-height:1.25!important;
  white-space:normal!important;
}
#obgShopPage #obgShopProductList .obg-mp3-card-v10 .obgs-price{
  margin:0 0 8px!important;
  gap:6px!important;
}
#obgShopPage #obgShopProductList .obg-mp3-card-v10 .obgs-price strong{
  margin:0!important;
  font-size:clamp(19px,4.7vw,24px)!important;
  line-height:1.2!important;
}
#obgShopPage #obgShopProductList .obg-mp3-card-v10 .obgs-footnote{
  margin:6px 0 0!important;
}

#obgShopPage>.obg-mp3-pager-v45{
  display:flex!important;
  position:relative!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  max-width:100%!important;
  margin:18px 0 calc(130px + env(safe-area-inset-bottom,0px))!important;
  padding:0!important;
  box-sizing:border-box!important;
}
#obgShopPage>.obg-mp3-pager-v45>button{
  flex:0 0 auto!important;
  min-width:44px!important;
  min-height:44px!important;
  height:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:8px 10px!important;
  font-size:12px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}

@media(max-width:375px){
  #obgShopPage #obgShopProductList :is(.obg-shop-v46-head,.obg-shop-v47-head){padding:9px 7px 8px!important;column-gap:6px!important}
  #obgShopPage #obgShopProductList>.obg-mp3-card-v10>.obg-mp3-body-v10{padding:8px 7px 10px!important}
}
@media(min-width:761px){
  #obgShopPage #obgShopProductList.obg-mp3-grid-v10{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
}

/* V10 tags asynchronously rendered offers after the V46/V47 child observers.
   Present the original nodes directly when those optional headers are absent.
   The visibility conditions prevent this grid rule from reviving paged-out cards. */
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)):not([hidden]):not(.obg-mp3-page-hidden-v45):not(.obg-mp3-page-hidden-v11){
  display:grid!important;
  grid-template-columns:minmax(0,36%) minmax(0,1fr)!important;
  grid-template-areas:"badge badge" "art title" "art artist" "description description" "includes includes" "preview preview" "bottom bottom"!important;
  grid-template-rows:min-content min-content min-content min-content min-content min-content 1fr!important;
  gap:6px 7px!important;
  align-items:start!important;
  padding:9px!important;
  background:radial-gradient(ellipse at 65% 0%,rgba(224,177,60,.14),transparent 45%),#111318!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head))>.obg-mp3-body-v10{
  display:contents!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head))>.obg-mp3-art-v10{
  grid-area:art!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  aspect-ratio:1!important;
  align-self:start!important;
  border:1px solid rgba(225,190,104,.3)!important;
  border-radius:8px!important;
  overflow:hidden!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-badge{
  grid-area:badge!important;
  justify-self:start!important;
  width:fit-content!important;
  max-width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:3px 5px!important;
  font-size:9px!important;
  line-height:1.2!important;
  letter-spacing:.025em!important;
  overflow-wrap:anywhere!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-type{
  display:none!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obg-mp3-title-v10{
  grid-area:title!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  font-size:clamp(12px,2.85vw,16px)!important;
  font-weight:750!important;
  line-height:1.25!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  -webkit-line-clamp:unset!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-artist{
  grid-area:artist!important;
  min-width:0!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-description{
  grid-area:description!important;
  min-width:0!important;
  margin:0!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-includes{
  grid-area:includes!important;
  min-width:0!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-preview{
  grid-area:preview!important;
  min-width:0!important;
}
#obgShopPage #obgShopProductList>.obg-mp3-card-v10:not(:has(>.obg-shop-v46-head,>.obg-shop-v47-head,>.obg-shop-v48-head)) .obgs-product-bottom{
  grid-area:bottom!important;
  min-width:0!important;
  align-self:end!important;
}

/* Visibility must outrank V46/V47 display:flex!important, including ready cards.
   Keep these rules after all presentation rules. The V45 pager owns the state. */
#obgShopPage #obgShopProductList>.obg-mp3-card-v10[hidden],
#obgShopPage #obgShopProductList>.obg-mp3-card-v10.obg-mp3-page-hidden-v45,
#obgShopPage #obgShopProductList>.obg-mp3-card-v10.obg-mp3-page-hidden-v11,
#obgShopPage>:is(.obg-mp3-pager-v45,.obg-mp3-pager-v11)[hidden]{
  display:none!important;
}
