/* Common LIVE FLOAT host. Provider surfaces keep internal aspect. */

body > .mh-live-float-host[data-mh-live-float="v1"] {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

body > .mh-live-float-host[data-mh-live-float-provider="stripchat"] {
  width: 250px;
  max-width: min(250px, calc(100vw - 24px));
  box-shadow: 0 8px 24px rgba(52, 37, 44, 0.28);
}

body > .mh-live-float-host[data-mh-live-float-provider="stripchat"] .mh-stripchat-slot {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

body > .mh-live-float-host > .mh-live-float-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 10, 12, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body > .mh-live-float-host[data-mh-live-float-provider="dxlive"] > .mh-live-float-close {
  display: none;
}

.mh-stripchat-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #120c10;
}

.mh-live-hub__cell--stripchat .mh-stripchat-placeholder {
  flex: 1 1 auto;
}

@media (max-width: 781px) {
  body > .mh-live-float-host[data-mh-live-float-provider="stripchat"] {
    width: min(168px, 42vw);
    max-width: min(168px, calc(100vw - 20px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  body > .mh-live-float-host > .mh-live-float-close {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}
