/* OBG STREAM · Menu + Home Cards Unified UI V1
 * VISUAL ONLY. No player/audio/advertising/shop/Stripe internals.
 * Scope: header menu and HOME cards OBG SHOP / MASTERING / CLIPS / DISCOVERY.
 */
:root { --obg-ui-gold: #e9c66a; --obg-ui-tile-h: clamp(136px, 39vw, 208px); }

/* MENU: all existing buttons, their original listeners, account rights and hidden states stay intact. */
html body #obgHeaderAccountMenu > button,
html.obg-menu-auto-center body #obgHeaderAccountMenu > button,
html.obg-menu-auto-center body #obgHeaderAccountMenu > button[data-header-action],
html body #obgHeaderAccountMenu > button.obgd-menu-v219 {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 56px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) 25px !important;
  align-items: center !important;
  column-gap: 10px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border-radius: 0 !important;
  text-align: left !important;
}
html body #obgHeaderAccountMenu > button[data-obg-ui-divider="1"] {border-top:1px solid rgba(233,198,106,.38)!important;}
html body #obgHeaderAccountMenu > button[hidden],
html.obg-menu-auto-center body #obgHeaderAccountMenu > button[hidden] {display:none!important}
html body #obgHeaderAccountMenu > button > .obg-menu-specific-icon,
html body #obgHeaderAccountMenu > button > svg:first-child,
html body #obgHeaderAccountMenu > button > .obg-menu-icon,
html body #obgHeaderAccountMenu > button > i:first-child,
html.obg-menu-auto-center body #obgHeaderAccountMenu > button.obgd-menu-v219 > .obg-menu-specific-icon {
  grid-column: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  margin: 0 !important;
  color: var(--obg-ui-gold) !important;
}
html body #obgHeaderAccountMenu > button > .obg-menu-label,
html.obg-menu-auto-center body #obgHeaderAccountMenu > button > .obg-menu-label,
html.obg-menu-auto-center body #obgHeaderAccountMenu > button.obgd-menu-v219 > .obg-menu-label {
  box-sizing: border-box !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: initial !important;
  justify-self: stretch !important;
  align-self: center !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: #f8f8fb !important;
  -webkit-text-fill-color: #f8f8fb !important;
  font-size: clamp(11px, 3.05vw, 14px) !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  line-height: 1.2 !important;
}
html body #obgHeaderAccountMenu > button > .obg-menu-chevron,
html.obg-menu-auto-center body #obgHeaderAccountMenu > button.obgd-menu-v219 > .obg-menu-chevron {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  color: var(--obg-ui-gold) !important;
  font-size: 24px !important;
}
/* Unread message badge preserves its own positioning. */
html body #obgHeaderAccountMenu #obgHeaderMessageUnread[hidden] {display:none!important}
@media (max-width: 350px) {
 html body #obgHeaderAccountMenu > button > .obg-menu-label,
 html.obg-menu-auto-center body #obgHeaderAccountMenu > button > .obg-menu-label {font-size:11px!important;letter-spacing:.025em!important;white-space:normal!important}
}

/* HOME: same perimeter, responsive height and text wrapping for all four tiles.
 * No general section/card rules: checkout, account, release and studio cards remain untouched. */
html body #app > button.obgd-home-entry[data-obgd-lazy-v198="home"],
html body #app > button.obgd-home-entry[data-obgd-launch="home"],
html body #app > #obgcHomeCard button.obgc-home-promo,
html body #app > .section > button.mastering-promo,
html body #obgShopHome .obgs-fold-heading {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: var(--obg-ui-tile-h) !important;
  min-height: var(--obg-ui-tile-h) !important;
  border: 1px solid rgba(226,185,94,.82) !important;
  border-radius: 21px !important;
  box-shadow: inset 0 0 0 1px rgba(255,224,147,.08),0 10px 30px rgba(0,0,0,.25) !important;
}
/* SHOP: original details/summary semantics and full expanded content remain operative. */
html body #obgShopHome .obgs-fold {box-sizing:border-box!important;width:100%!important;border-radius:21px!important}
html body #obgShopHome .obgs-fold-heading {padding:12px 14px!important}
html body #obgShopHome .obgs-fold-title {min-width:0!important}
html body #obgShopHome .obgs-fold-title strong {font-size:clamp(16px,4.5vw,21px)!important;line-height:1.12!important;white-space:normal!important;color:#fff!important;text-shadow:0 2px 8px #050505!important}
html body #obgShopHome .obgs-fold-title small {font-size:clamp(11px,2.8vw,13px)!important;color:#edd19b!important}
html body #obgShopHome .obgs-fold-bag {opacity:.44!important}
html body #obgShopHome .obgs-fold-symbol {border-radius:15px!important}
/* Image-banner tiles: preserve the full clickable button and decorative overlay. */
html body #app > .section > button.mastering-promo,
html body #app > #obgcHomeCard button.obgc-home-promo {overflow:hidden!important;}
html body #app > .section > button.mastering-promo.obg-mastering-image-v242 > .obg-mastering-image-v242-art {background-size:100% 100%!important;}
html body #app > #obgcHomeCard button.obgc-home-promo::after {border-radius:inherit!important;}
html body #app > button.obgd-home-entry[data-obgd-lazy-v198="home"],
html body #app > button.obgd-home-entry[data-obgd-launch="home"] {align-content:center!important;justify-content:center!important;}
/* Consistent width/gutters for visual section headings and cards. */
html body #app > .section:has(> button.mastering-promo),
html body #app > #obgcHomeCard.obgc-home-card-section,
html body #app > .obgd-home-heading-v200,
html body #app > #obgShopHome {box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;}
/* Only headings explicitly identified as HOME card headings; no generic typography overrides. */
html body #app .obg-ui-v1-heading {font-size:clamp(23px,5.8vw,31px)!important;font-weight:850!important;line-height:1.12!important;letter-spacing:-.018em!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-align:left!important;}
html body #app .obg-ui-v1-heading .obg-ui-v1-heading-gold,
html body #app .obgd-home-heading-v200 .obgd-home-heading-v200-gold,
html body #obgShopHome .obgs-fold-title .obg-ui-v1-heading-gold {color:var(--obg-ui-gold)!important;-webkit-text-fill-color:var(--obg-ui-gold)!important;}
@media (max-width: 360px) {
  :root {--obg-ui-tile-h:136px}
  html body #app > button.obgd-home-entry[data-obgd-lazy-v198="home"],
  html body #app > button.obgd-home-entry[data-obgd-launch="home"],
  html body #app > #obgcHomeCard button.obgc-home-promo,
  html body #app > .section > button.mastering-promo,
  html body #obgShopHome .obgs-fold-heading {height:auto!important;min-height:var(--obg-ui-tile-h)!important}
  html body #obgShopHome .obgs-fold-title strong {font-size:15px!important}
}
@media(prefers-reduced-motion:reduce){html body #obgShopHome .obgs-fold-heading{transition:none!important}}
