/* Distribution picker. Brand artwork keeps its original proportions and color. */
#music .section-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
#music .header-title { margin-bottom: 0; }
.kg-dsp-open {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #111;
  border-radius: 99px;
  background: #111;
  color: #fff;
  font: 14px/1.5 "Jost", sans-serif;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.kg-dsp-open span { color: inherit; }
.kg-dsp-open__icon { font-size: 22px; font-weight: 300; }
.kg-dsp-open:hover { background: transparent; color: #111; }
/* An open logo gallery, with optical sizing for each mark. */
.kg-dsp-dialog {
  --kg-ink: #171717;
  width: min(880px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #171717;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7c7c3 transparent;
  box-shadow: 0 30px 120px #0004;
}
.kg-dsp-dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(10px);
}
.kg-dsp-panel { padding: 0 48px 40px; }
.kg-dsp-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 -48px;
  padding: 28px 32px 24px 48px;
  background: #fff;
}
.kg-dsp-brand { display: block; width: 112px; height: auto; filter: brightness(0); }
.kg-dsp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.kg-dsp-close {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #171717;
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s;
}
.kg-dsp-close svg { width: 16px; height: 16px; }
.kg-dsp-close:hover { opacity: 1; }
.kg-dsp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.kg-dsp-grid > li { min-width: 0; }
.kg-dsp-service {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #171717;
  text-decoration: none;
}
.kg-dsp-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
}
.kg-dsp-logo img {
  display: block;
  width: auto;
  max-width: min(116px, 100%);
  height: auto;
  max-height: 32px;
  object-fit: contain;
  filter: var(--kg-dsp-filter, grayscale(1));
  opacity: .74;
  transition: filter .25s, opacity .25s, transform .25s;
}
.kg-dsp-logo img[src$=".svg"] { --kg-dsp-filter: brightness(0); }
.kg-dsp-service--amazon .kg-dsp-logo img { max-height: 44px; }
.kg-dsp-service--awa .kg-dsp-logo img { max-width: 86px; }
.kg-dsp-service--dwango .kg-dsp-logo img { max-height: 36px; }
.kg-dsp-service--symbol .kg-dsp-logo img { width: 36px; height: 36px; max-height: none; }
.kg-dsp-service[href]:focus-visible img {
  filter: var(--kg-dsp-filter, grayscale(0));
  opacity: 1;
  transform: translateY(-2px);
}
@media (hover: hover) and (pointer: fine) {
  .kg-dsp-service[href]:hover img {
    filter: var(--kg-dsp-filter, grayscale(0));
    opacity: 1;
    transform: translateY(-2px);
  }
}
.kg-dsp-service--static { cursor: default; }
.kg-dsp-open:focus-visible,
.kg-dsp-dialog :focus-visible { outline: 1px solid #917035; outline-offset: 3px; }
@media (max-width: 640px) {
  #music .section-header { gap: 16px; margin-bottom: 28px; }
  .kg-dsp-open { min-height: 44px; gap: 20px; padding: 0 16px; font-size: 13px; }
  .kg-dsp-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 2px; }
  .kg-dsp-panel { padding: 0 24px 24px; }
  .kg-dsp-header { margin: 0 -24px; padding: 20px 14px 18px 24px; gap: 16px; }
  .kg-dsp-brand { width: 96px; }
  .kg-dsp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .kg-dsp-service { min-height: 64px; padding: 8px 4px; }
  .kg-dsp-logo img { max-height: 26px; opacity: .84; }
  .kg-dsp-service--amazon .kg-dsp-logo img { max-height: 38px; }
  .kg-dsp-service--awa .kg-dsp-logo img { max-width: min(66px, 100%); }
  .kg-dsp-service--dwango .kg-dsp-logo img { max-height: 32px; }
  .kg-dsp-service--symbol .kg-dsp-logo img { width: 32px; height: 32px; }
}
/* Touch and small-screen layouts show the original logo colors immediately. */
@media (max-width: 640px), (hover: none), (pointer: coarse) {
  .kg-dsp-logo img {
    filter: var(--kg-dsp-filter, grayscale(0));
    opacity: 1;
  }
}
@media (min-width: 361px) and (max-width: 640px) {
  .kg-dsp-grid > li:last-child:nth-child(3n + 1) { grid-column: 2; }
}
@media (max-width: 360px) {
  .kg-dsp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .kg-dsp-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kg-dsp-logo img { max-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .kg-dsp-open, .kg-dsp-logo img, .kg-dsp-close { transition: none; }
  .kg-dsp-service[href]:hover img,
  .kg-dsp-service[href]:focus-visible img { transform: none; }
}
