.mpno {
  --mpno-accent: #f6c945;
  --mpno-bg: rgba(21, 21, 21, 0.94);
  --mpno-border: rgba(255, 255, 255, 0.15);
  --mpno-fullscreen-inset: 12px;
  --mpno-height: 75vh;
  --mpno-muted: rgba(255, 255, 255, 0.78);
  --mpno-offset-x: 0px;
  --mpno-offset-y: 0px;
  --mpno-panel-max-height: calc(100% - 126px);
  --mpno-parent-height: var(--mpno-height);
  --mpno-parent-width: 100%;
  --mpno-soft: rgba(255, 255, 255, 0.08);
  --mpno-text: #fff;
  --mpno-open-button-bg: #fff;
  --mpno-open-panel-bg: #fff;
  --mpno-open-text: #333;
  --mpno-open-hover: #e92f27;
  --mpno-open-border: rgba(51, 51, 51, 0.15);
  --mpno-open-soft: rgba(51, 51, 51, 0.08);
  --mpno-open-muted: rgba(51, 51, 51, 0.78);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--mpno-height);
  min-height: 420px;
  overflow: hidden;
  background: #171a1f;
  color: var(--mpno-text);
  font-family: inherit;
}

.mpno--parent-sized {
  width: min(100%, var(--mpno-parent-width));
  height: var(--mpno-parent-height);
  min-height: 0;
}

.mpno__viewer {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mpno__viewer[inert] {
  pointer-events: none;
}

.mpno__launch {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
}

.mpno__launch[hidden] {
  display: none;
}

.mpno__play {
  display: block;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  cursor: pointer;
}

.mpno__play img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.mpno__play:disabled {
  cursor: wait;
}

.mpno__controls,
.mpno__fullscreen,
.mpno__panel {
  position: absolute;
  z-index: 2;
}

.mpno:not(.mpno--ready) .mpno__controls,
.mpno:not(.mpno--ready) .mpno__fullscreen,
.mpno:not(.mpno--ready) .mpno__panel {
  visibility: hidden;
  pointer-events: none;
}

.mpno__feedback {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--mpno-border);
  border-radius: 4px;
  background: var(--mpno-bg);
  color: var(--mpno-text);
  font-size: 12px;
}

.mpno__feedback[hidden],
.mpno:not(.mpno--error) > .mpno__feedback {
  display: none;
}

.mpno__controls {
  display: flex;
  align-items: center;
  width: 250px;
  max-width: calc(100% - 24px);
}

.mpno__toggle,
.mpno__fullscreen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--mpno-border);
  border-radius: 4px;
  background: var(--mpno-bg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  color: var(--mpno-text);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mpno__toggle {
  flex: 1 1 auto;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 34px;
  padding: 0;
  overflow: hidden;
}

.mpno__toggle-leading {
  display: grid;
  align-self: stretch;
  flex: 0 0 39px;
  width: 39px;
  border-right: 1px solid var(--mpno-border);
  overflow: hidden;
  place-items: center;
}

.mpno__toggle-leading svg,
.mpno__toggle-leading img {
  max-width: none;
  max-height: none;
  transform: translate(var(--mpno-icon-offset-x, 0px), var(--mpno-icon-offset-y, 0px));
}

.mpno__toggle-leading svg {
  width: calc(14px * var(--mpno-icon-scale, 1));
  height: calc(14px * var(--mpno-icon-scale, 1));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpno__toggle-leading img {
  display: block;
  width: calc(16px * var(--mpno-icon-scale, 1));
  height: calc(16px * var(--mpno-icon-scale, 1));
  object-fit: contain;
}

.mpno__toggle-label {
  flex: 1 1 auto;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpno__fullscreen {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.mpno__fullscreen[hidden] {
  display: none;
}

.mpno__fullscreen--top-right,
.mpno__fullscreen--bottom-right {
  right: calc(var(--mpno-fullscreen-inset) + var(--mpno-safe-right, 0px) - var(--mpno-fullscreen-offset-x, 0px));
}

.mpno__fullscreen--top-left,
.mpno__fullscreen--bottom-left {
  left: calc(var(--mpno-fullscreen-inset) + var(--mpno-safe-left, 0px) + var(--mpno-fullscreen-offset-x, 0px));
}

.mpno__fullscreen--top-right,
.mpno__fullscreen--top-left {
  top: calc(var(--mpno-fullscreen-inset) + var(--mpno-safe-top, 0px) + var(--mpno-fullscreen-offset-y, 0px));
}

.mpno__fullscreen--bottom-right,
.mpno__fullscreen--bottom-left {
  bottom: calc(var(--mpno-fullscreen-inset) + var(--mpno-safe-bottom, 0px) - var(--mpno-fullscreen-offset-y, 0px));
}

.mpno__fullscreen svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mpno__fullscreen-exit {
  display: none;
}

.mpno--fullscreen .mpno__fullscreen-enter {
  display: none;
}

.mpno--fullscreen .mpno__fullscreen-exit {
  display: block;
}

.mpno--top-right .mpno__controls,
.mpno--top-right .mpno__panel,
.mpno--bottom-right .mpno__controls,
.mpno--bottom-right .mpno__panel {
  right: calc(12px - var(--mpno-offset-x));
}

.mpno--top-left .mpno__controls,
.mpno--top-left .mpno__panel,
.mpno--bottom-left .mpno__controls,
.mpno--bottom-left .mpno__panel {
  left: calc(12px + var(--mpno-offset-x));
}

.mpno--top-right .mpno__controls,
.mpno--top-left .mpno__controls {
  top: calc(12px + var(--mpno-offset-y));
}

.mpno--top-right .mpno__panel,
.mpno--top-left .mpno__panel {
  top: calc(51px + var(--mpno-offset-y));
}

.mpno--bottom-right .mpno__controls,
.mpno--bottom-left .mpno__controls {
  bottom: calc(12px - var(--mpno-offset-y));
}

.mpno--bottom-right .mpno__panel,
.mpno--bottom-left .mpno__panel {
  bottom: calc(51px - var(--mpno-offset-y));
}

.mpno__toggle-icon {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin: 0 12px 3px 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.mpno--open .mpno__toggle-icon {
  transform: rotate(225deg) translate(-2px, -2px);
}

.mpno__panel {
  box-sizing: border-box;
  width: min(210px, calc(100% - 63px));
  max-height: var(--mpno-panel-max-height);
  overflow: auto;
  padding: 4px 0;
  border: 1px solid var(--mpno-border);
  border-radius: 2px;
  background: var(--mpno-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mpno--top-left .mpno__panel,
.mpno--bottom-left .mpno__panel {
  margin-left: 39px;
}

.mpno--bottom-right .mpno__panel,
.mpno--bottom-left .mpno__panel {
  transform: translateY(8px);
}

.mpno--open .mpno__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mpno__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px 0 10px;
}

.mpno__heading {
  margin: 0;
  color: var(--mpno-open-hover);
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpno__close {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  opacity: 0;
}

.mpno__panel-header:hover .mpno__close,
.mpno__close:focus-visible {
  opacity: 1;
}

.mpno__status {
  margin: 0;
  padding: 9px 8px;
  color: var(--mpno-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.mpno__items {
  display: grid;
  gap: 0;
}

.mpno__group {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
}

.mpno__group[open] {
  border-color: transparent;
  background: transparent;
}

.mpno__group-title {
  position: relative;
  min-height: 32px;
  padding: 7px 32px 7px 9px;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.mpno__group-title::-webkit-details-marker {
  display: none;
}

.mpno__group-title::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: translateY(-65%) rotate(45deg);
}

.mpno__group[open] > .mpno__group-title::after {
  transform: translateY(-25%) rotate(225deg);
}

.mpno__group-items {
  display: grid;
  gap: 3px;
  padding: 0 5px 5px;
}

.mpno__group-items .mpno__item {
  padding-left: 12px;
  font-size: 10px;
}

.mpno__item {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.mpno__item::after {
  content: none;
}

.mpno__item:hover {
  border-color: transparent;
  background: transparent;
}

.mpno__item.is-active {
  border-color: color-mix(in srgb, var(--mpno-accent), transparent 45%);
  background: color-mix(in srgb, var(--mpno-accent), transparent 84%);
  color: var(--mpno-accent);
}

/* Scope open colors to navigation, not the independent fullscreen/Play tools. */
.mpno--open .mpno__toggle {
  --mpno-border: var(--mpno-open-border);
  background: var(--mpno-open-button-bg);
  color: var(--mpno-open-text);
  border-radius: 2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.mpno--open .mpno__panel {
  --mpno-bg: var(--mpno-open-panel-bg);
  --mpno-text: var(--mpno-open-text);
  --mpno-border: var(--mpno-open-border);
  --mpno-soft: var(--mpno-open-soft);
  --mpno-muted: var(--mpno-open-muted);
  --mpno-accent: var(--mpno-open-text);
  background: var(--mpno-open-panel-bg);
  color: var(--mpno-open-text);
}

.mpno__toggle-leading .mpno__icon-filter {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.mpno__icon-filter feFlood {
  flood-color: currentColor;
}

.mpno--open .mpno__toggle-leading img {
  filter: var(--mpno-open-icon-filter, none);
}

.mpno--open .mpno__item.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--mpno-open-hover);
}

.mpno--open .mpno__toggle:hover,
.mpno--open .mpno__toggle:focus-visible,
.mpno--open .mpno__item:hover,
.mpno--open .mpno__item:focus-visible,
.mpno--open .mpno__group-title:hover,
.mpno--open .mpno__group-title:focus-visible,
.mpno--open .mpno__close:hover,
.mpno--open .mpno__close:focus-visible {
  color: var(--mpno-open-hover);
}

.mpno--open .mpno__toggle:focus-visible,
.mpno--open .mpno__panel :focus-visible {
  outline-color: var(--mpno-open-hover);
}

.mpno__toggle:focus-visible,
.mpno__go:focus-visible,
.mpno__play:focus-visible,
.mpno__fullscreen:focus-visible,
.mpno__close:focus-visible,
.mpno__group-title:focus-visible,
.mpno__item:focus-visible {
  outline: 3px solid var(--mpno-accent);
  outline-offset: 2px;
}

/* The opt-in flag is a separate button, never a button nested in the toggle. */
.mpno__controls--deferred .mpno__toggle {
  width: calc(100% - 39px);
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

.mpno__go {
  display: grid;
  box-sizing: border-box;
  align-self: stretch;
  flex: 0 0 39px;
  width: 39px;
  height: 34px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mpno-border);
  border-radius: 4px 0 0 4px;
  background: var(--mpno-bg);
  color: var(--mpno-text);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.mpno__go .mpno__toggle-leading {
  box-sizing: border-box;
  width: 37px;
  border-right: 0;
}

.mpno__go:disabled { cursor: default; }
.mpno__go:disabled .mpno__toggle-leading { opacity: 1; }
.mpno:not(.mpno--open) .mpno__go,
.mpno:not(.mpno--open) .mpno__go:hover,
.mpno:not(.mpno--open) .mpno__go:focus-visible { color: var(--mpno-text); }
.mpno--pending .mpno__go img { filter: var(--mpno-open-icon-filter, none); }
.mpno--open .mpno__go {
  background: var(--mpno-open-button-bg);
  color: var(--mpno-open-text);
  border-color: var(--mpno-open-border);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
}
.mpno--open .mpno__controls--deferred .mpno__toggle { border-radius: 0 2px 2px 0; }
.mpno__go:not(:disabled):hover,
.mpno__go:focus-visible,
.mpno--open .mpno__item.is-selected { color: var(--mpno-open-hover); }

.mpno--navigating .mpno__items {
  opacity: 0.72;
}

.mpno__item:disabled {
  cursor: wait;
}

.mpno-error {
  padding: 12px 14px;
  border-left: 4px solid #b32d2e;
  background: #fcf0f1;
  color: #50575e;
}

/* Native fullscreen and the viewport fallback share sizing and exit icons.
   Override theme iframe heights (including !important) only in fullscreen. */
.mpno.mpno--fullscreen {
  --mpno-panel-max-height: calc(100vh - 126px) !important;
  box-sizing: border-box;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.mpno.mpno--fullscreen > .mpno__viewer {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.mpno.mpno--expanded {
  --mpno-safe-top: env(safe-area-inset-top, 0px);
  --mpno-safe-right: env(safe-area-inset-right, 0px);
  --mpno-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mpno-safe-left: env(safe-area-inset-left, 0px);
  --mpno-panel-max-height: calc(var(--mpno-expanded-height, 100vh) - 126px) !important;
  position: fixed !important;
  z-index: 2147483647 !important;
  top: var(--mpno-expanded-top, 0px) !important;
  left: var(--mpno-expanded-left, 0px) !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--mpno-expanded-width, 100vw) !important;
  height: var(--mpno-expanded-height, 100vh) !important;
  transform: none !important;
}

.mpno.mpno--expanded.mpno--top-left .mpno__controls,
.mpno.mpno--expanded.mpno--top-right .mpno__controls {
  top: calc(12px + var(--mpno-safe-top) + var(--mpno-offset-y));
}

.mpno.mpno--expanded.mpno--top-left .mpno__panel,
.mpno.mpno--expanded.mpno--top-right .mpno__panel {
  top: calc(51px + var(--mpno-safe-top) + var(--mpno-offset-y));
}

.mpno.mpno--expanded.mpno--bottom-left .mpno__controls,
.mpno.mpno--expanded.mpno--bottom-right .mpno__controls {
  bottom: calc(12px + var(--mpno-safe-bottom) - var(--mpno-offset-y));
}

.mpno.mpno--expanded.mpno--bottom-left .mpno__panel,
.mpno.mpno--expanded.mpno--bottom-right .mpno__panel {
  bottom: calc(51px + var(--mpno-safe-bottom) - var(--mpno-offset-y));
}

.mpno.mpno--expanded.mpno--top-left .mpno__controls,
.mpno.mpno--expanded.mpno--bottom-left .mpno__controls,
.mpno.mpno--expanded.mpno--top-left .mpno__panel,
.mpno.mpno--expanded.mpno--bottom-left .mpno__panel {
  left: calc(12px + var(--mpno-safe-left) + var(--mpno-offset-x));
}

.mpno.mpno--expanded.mpno--top-right .mpno__controls,
.mpno.mpno--expanded.mpno--bottom-right .mpno__controls,
.mpno.mpno--expanded.mpno--top-right .mpno__panel,
.mpno.mpno--expanded.mpno--bottom-right .mpno__panel {
  right: calc(12px + var(--mpno-safe-right) - var(--mpno-offset-x));
}

@media (max-width: 640px) {
  .mpno__play {
    width: 64px;
    height: 64px;
  }

  .mpno {
    --mpno-fullscreen-inset: 10px;
    min-height: 520px;
  }

  .mpno--parent-sized {
    min-height: 0;
  }

  .mpno__controls {
    max-width: calc(100% - 24px);
  }

  .mpno__panel {
    width: min(210px, calc(100% - 63px));
    max-height: var(--mpno-panel-max-height);
  }

  .mpno--top-right .mpno__controls,
  .mpno--top-left .mpno__controls {
    top: calc(10px + var(--mpno-offset-y));
  }

  .mpno--top-right .mpno__panel,
  .mpno--top-left .mpno__panel {
    top: calc(56px + var(--mpno-offset-y));
  }

  .mpno--bottom-right .mpno__controls,
  .mpno--bottom-left .mpno__controls {
    bottom: calc(10px - var(--mpno-offset-y));
  }

  .mpno--bottom-right .mpno__panel,
  .mpno--bottom-left .mpno__panel {
    bottom: calc(56px - var(--mpno-offset-y));
  }

  .mpno--top-right .mpno__controls,
  .mpno--top-right .mpno__panel,
  .mpno--bottom-right .mpno__controls,
  .mpno--bottom-right .mpno__panel {
    right: calc(10px - var(--mpno-offset-x));
  }

  .mpno--top-left .mpno__controls,
  .mpno--top-left .mpno__panel,
  .mpno--bottom-left .mpno__controls,
  .mpno--bottom-left .mpno__panel {
    left: calc(10px + var(--mpno-offset-x));
  }

  .mpno--open .mpno__panel {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mpno__toggle-icon,
  .mpno__panel,
  .mpno__item {
    transition: none;
  }
}

@supports not (color: color-mix(in srgb, black, white)) {
  .mpno__item.is-active {
    border-color: var(--mpno-accent);
    background: rgba(246, 201, 69, 0.16);
  }
}
