.mh-dxlive-slot,
.mh-affiliate-tag.mh-dxlive-slot {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
}

.mh-dxlive-widget {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 633 / 472;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #1a1216;
  color: #fff;
  font-family: inherit;
  line-height: 1.2;
}

.mh-dxlive-slot .mh-dxlive-widget {
  aspect-ratio: 633 / 472;
}

.mh-dxlive-stage,
.mh-dxlive-stage.canvasHolder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  container-type: size;
}

.mh-affiliate-tag .mh-dxlive-stage > .mh-dxlive-img,
.mh-affiliate-tag .mh-dxlive-stage > .mh-dxlive-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  margin: 0;
  padding: 0;
  object-fit: cover;
  display: block;
}

.mh-dxlive-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
}

.mh-dxlive-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.mh-dxlive-live {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #e11d48;
  border-radius: 2px;
  padding: 2px 5px;
}

.mh-dxlive-viewers,
.mh-dxlive-name {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-dxlive-name {
  flex: 1 1 auto;
  min-width: 0;
}

.mh-dxlive-next,
.mh-dxlive-close {
  pointer-events: auto;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.mh-dxlive-next {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
}

[data-mh-dxlive-lock="home"] .mh-dxlive-next {
  display: none;
}

.mh-dxlive-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  line-height: 1;
  border-radius: 3px;
}

.mh-dxlive-stage > .offlineMessage {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.62);
  color: #cdcdcd;
  text-align: center;
  pointer-events: none;
}

.mh-dxlive-stage > .offlineMessage[hidden] {
  display: none;
}

.mh-dxlive-stage > .offlineMessage > div:first-child {
  padding-top: min(26cqh, 120px);
  font-size: clamp(11px, 3.8cqw, 24px);
  line-height: 1.41;
  color: #cdcdcd;
}

.mh-dxlive-stage > .offlineMessage > div {
  font-size: clamp(10px, 3.2cqw, 16px);
  line-height: 1.4;
}

.mh-dxlive-stage .nextLoginSec {
  display: block;
  margin: min(4.2cqh, 20px) 0 0;
  padding: 0;
  font-size: clamp(10px, 3.2cqw, 16px);
  color: #cdcdcd;
}

.mh-dxlive-stage .nextLoginSec[hidden] {
  display: none;
}

.mh-dxlive-stage .timeAndDateSec {
  position: relative;
  width: min(210px, 86%);
  margin: 0 auto;
  line-height: inherit;
}

.mh-dxlive-stage .timeAndDate {
  display: block;
  margin: min(3cqh, 14px) 0;
  font-weight: 900;
  color: #b2e345;
  font-size: clamp(11px, 3.4cqw, 15px);
}

.mh-dxlive-stage > .mh-dxlive-online-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 8px min(22cqh, 88px);
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.mh-dxlive-stage > .mh-dxlive-online-fallback[hidden] {
  display: none;
}

.mh-dxlive-stage > .mh-dxlive-online-fallback > div {
  font-size: clamp(12px, 4cqw, 22px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.mh-dxlive-float-host.mh-affiliate-tag:hover,
.mh-dxlive-float-host.mh-affiliate-tag:focus-within {
  transform: none;
}

.mh-dxlive-float-host {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 250px;
  max-width: min(250px, calc(100vw - 24px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(52, 37, 44, 0.28);
}

.mh-dxlive-float-host .mh-dxlive-widget {
  width: 100%;
  height: auto;
  aspect-ratio: 633 / 472;
}

@media (max-width: 781px) {
  .mh-dxlive-float-host {
    width: min(200px, 42vw);
    max-width: calc(100vw - 20px);
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .mh-dxlive-close {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .mh-dxlive-next {
    min-height: 44px;
    padding: 8px 10px;
  }
}
