body:has(> #ubm-common-header) { margin: 0 }
#ubm-common-header {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 8px max(16px, calc((100% - 1400px) / 2));
  border-bottom: 1px solid #263a30;
  background: #060e09;
  color: #e7f6ec;
  font: 700 14px/1.25 Arial, sans-serif;
}
#ubm-common-header a { color: inherit; text-decoration: none }
#ubm-common-header a:hover, #ubm-common-header a[aria-current] { color: #41f595 }
#ubm-common-header :focus-visible { outline: 2px solid #41f595; outline-offset: 4px }
#ubm-common-header .ubm-wordmark { display: inline-flex; align-items: center; gap: 10px; color: #f5faf6 }
#ubm-common-header .ubm-wordmark strong { font-size: 34px; letter-spacing: -.06em }
#ubm-common-header .ubm-wordmark span { font-size: 9px; line-height: 1.15; letter-spacing: .08em }
#ubm-common-header .ubm-header-links { display: flex; margin-left: auto; align-items: center; gap: clamp(12px, 1.55vw, 22px) }
#ubm-common-header .ubm-header-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; white-space: nowrap }
#ubm-common-header small { color: #8fac9c; font-size: .75em }
#ubm-common-header .ubm-header-menu { position: relative; flex: none; margin: 0 }
#ubm-common-header summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #43815f;
  border-radius: 999px;
  color: #77ffad;
  background: #101e16;
  cursor: pointer;
  list-style: none;
}
#ubm-common-header summary::-webkit-details-marker { display: none }
#ubm-common-header .ubm-menu-icon {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-block: 2px solid currentColor;
}
#ubm-common-header .ubm-header-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  box-sizing: border-box;
  width: min(240px, calc(100vw - 32px));
  max-height: calc(100vh - 76px);
  max-height: calc(100dvh - 76px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #31573d;
  border-radius: 14px;
  background: #0c1810;
  box-shadow: 0 10px 32px #0008;
}
#ubm-common-header .ubm-header-menu nav a { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 10px; border-radius: 8px }
#ubm-common-header .ubm-header-menu nav a:hover, #ubm-common-header .ubm-header-menu nav a[aria-current] { background: #173724 }
#ubm-playlists, #ubm-about, #ubm-charts { scroll-margin-top: 84px !important }
@media (max-width: 1040px) {
  #ubm-common-header .ubm-header-links { display: none }
}
