/* OBG STREAM · SHOP-BILD RAHMENLOS + OBG DISCOVERY BÜNDIG · V4 · 2026-10-29.
   Scoped visual changes only. Audio logic is installed separately by same guarded installer.
   Requires the existing OBG SHOP fold tile and OBG Discovery V219 menu row.
*/

/* 1) OBG SHOP: the Merch photo is a full-bleed part of the existing outer tile.
      The gold OUTER tile perimeter, details/summary toggling and click target stay unchanged. */
html:root body #obgShopHome .obgs-fold-heading {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  overflow: hidden !important;
  gap: 6px !important;
  padding: 10px 12px 10px clamp(134px, 41%, 215px) !important;
  background-color: #111014 !important;
}
html:root body #obgShopHome .obgs-fold-symbol {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: clamp(134px, 43%, 225px) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  /* Use the existing picture from V2, cropping the small baked-in arc around the source image. */
  background-size: auto 127% !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  -webkit-mask-image: linear-gradient(to right,#000 0%,#000 63%,rgba(0,0,0,.90) 74%,transparent 100%) !important;
  mask-image: linear-gradient(to right,#000 0%,#000 63%,rgba(0,0,0,.90) 74%,transparent 100%) !important;
  pointer-events: none !important;
}
html:root body #obgShopHome .obgs-fold-title {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html:root body #obgShopHome .obgs-fold-title strong {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  font-size: clamp(15px, 4vw, 22px) !important;
  line-height: 1.16 !important;
  text-shadow: 0 1px 7px rgba(0,0,0,.92) !important;
}
html:root body #obgShopHome .obgs-fold-title small {
  display: block !important;
  white-space: normal !important;
  font-size: clamp(10px, 2.7vw, 13px) !important;
  line-height: 1.3 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.9) !important;
}
html:root body #obgShopHome .obgs-fold-arrow {
  z-index: 3 !important;
  position: relative !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
html:root body #obgShopHome .obgs-fold-bag { z-index: -1 !important; }
/* Existing V1 UI explicitly draws the OUTER border: do not remove it. */
html:root body #obgShopHome .obgs-fold { overflow: hidden !important; }

/* 2) MENU: align OBG DISCOVERY's label with the text column of all other rows.
      The old V219 Discovery flex/margin rules can shift this row ~20px to the right. */
html:root body #obgHeaderAccountMenu > button.obgd-menu-v219,
html:root body #obgHeaderAccountMenu > button[data-obgd-lazy-v198="menu"],
html:root body #obgHeaderAccountMenu > button[data-obgd-launch="menu"] {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) 25px !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  text-align: left !important;
  transform: none !important;
  translate: none !important;
}
html:root body #obgHeaderAccountMenu > button.obgd-menu-v219 > .obg-menu-specific-icon,
html:root body #obgHeaderAccountMenu > button[data-obgd-lazy-v198="menu"] > .obg-menu-specific-icon,
html:root body #obgHeaderAccountMenu > button[data-obgd-launch="menu"] > .obg-menu-specific-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  width: 25px !important;
  height: 25px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
}
html:root body #obgHeaderAccountMenu > button.obgd-menu-v219 > .obg-menu-label,
html:root body #obgHeaderAccountMenu > button[data-obgd-lazy-v198="menu"] > .obg-menu-label,
html:root body #obgHeaderAccountMenu > button[data-obgd-launch="menu"] > .obg-menu-label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  position: static !important;
  inset: auto !important;
  left: auto !important;
  transform: none !important;
  translate: none !important;
  text-indent: 0 !important;
  flex: none !important;
  text-align: left !important;
  white-space: nowrap !important;
  font-size: clamp(11px,3.05vw,14px) !important;
  letter-spacing: .055em !important;
}
html:root body #obgHeaderAccountMenu > button.obgd-menu-v219 > .obg-menu-chevron,
html:root body #obgHeaderAccountMenu > button[data-obgd-lazy-v198="menu"] > .obg-menu-chevron,
html:root body #obgHeaderAccountMenu > button[data-obgd-launch="menu"] > .obg-menu-chevron {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
html:root body #obgHeaderAccountMenu > button[hidden] { display: none !important; }

@media (max-width: 355px) {
  html:root body #obgShopHome .obgs-fold-heading {
    padding-left: 122px !important;
    gap: 3px !important;
    padding-right: 9px !important;
  }
  html:root body #obgShopHome .obgs-fold-symbol { width: 132px !important; }
  html:root body #obgShopHome .obgs-fold-title strong { font-size: 14px !important; }
  html:root body #obgShopHome .obgs-fold-arrow { width: 27px !important; height: 27px !important; }
  html:root body #obgHeaderAccountMenu > button.obgd-menu-v219 {grid-template-columns: 36px minmax(0,1fr) 22px !important;column-gap: 8px !important;padding-inline: 10px !important;}
}
@media (prefers-reduced-motion:reduce) {
  html:root body #obgShopHome .obgs-fold-symbol { transition: none !important; }
}
