.mhr-background {
  position: fixed;
  inset: 0;
  z-index: 39;
  overflow: hidden;
  pointer-events: none;
  background: #28352e;
}
.mhr-background img, .mhr-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mhr-background video { opacity: 0; transition: opacity .25s ease; }
.mhr-background.mhr-has-frame video { opacity: 1; }
.mhr-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#101811ae 0%,transparent 26%,transparent 71%,#101811c2 100%);
}
.mhr-background[hidden], .mhr-controls[hidden] { display: none; }

.mhr-controls {
  position: fixed;
  bottom: var(--mhr-bottom, max(100px,calc(env(safe-area-inset-bottom) + 82px)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 54;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid #fff5dd38;
  border-radius: 16px;
  background: #202b24e6;
  color: #fff9ec;
  box-shadow: 0 12px 32px #0c171552;
  font-family: var(--mv-font, 'Microsoft YaHei', sans-serif);
}
.mhr-controls button { box-sizing: border-box; margin: 0; padding: 0; color: inherit; cursor: pointer; }
.mhr-thumb {
  position: relative;
  display: block;
  width: clamp(72px, 10vw, 126px);
  aspect-ratio: 1.9;
  overflow: hidden;
  border: 1px solid #fff5dd36;
  border-radius: 9px;
  background: #263129;
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.mhr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mhr-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 24%,#101611d4); }
.mhr-thumb span { position: absolute; z-index: 1; left: 7px; bottom: 5px; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1.4; }
.mhr-thumb i { position: absolute; z-index: 1; inset: auto 0 0; height: 2px; transform: scaleX(var(--mhr-progress, 0)); transform-origin: left; background: #fae2b2; }
.mhr-thumb[aria-pressed='true'] { border-color: #fae2b2; box-shadow: 0 0 0 1px #fae2b279; }
.mhr-thumb:hover { border-color: #fff9ec; transform: translateY(-2px); }
.mhr-controls button:focus-visible { outline: 2px solid #ffe8b6; outline-offset: 2px; }
.mhr-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #fff5dd55;
  border-radius: 50%;
  background: #fff5dd15;
}
.mhr-toggle:hover { background: #fff5dd2e; }
.mhr-toggle span { display: block; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; transform: translateX(1px); }
.mhr-toggle[data-playing='true'] span { width: 10px; height: 12px; border: 0; border-inline: 3px solid currentColor; transform: none; }

.mhr-sound {
  display: grid;
  place-items: center;
  color: #fff9ec;
  background: #202b24e6;
  border: 1px solid #fff5dd55;
  transition: background-color .2s, scale .2s;
}
.mhr-sound[hidden] { display: none; }
.mhr-sound svg { width: 19px; height: 19px; }
.mhr-sound:hover { background: #39463b; scale: 1.08; }
.mhr-sound:active { scale: .94; }
.mhr-sound:focus-visible { outline: 2px solid #ffe8b6; outline-offset: 2px; }
.mhr-sound[aria-pressed='false'] .mhr-sound-waves,
.mhr-sound[aria-pressed='true'] .mhr-sound-cross { display: none; }

body.mh5-home-active .mh5-copy { top: var(--mhr-copy-top, 47%); }
body.mh5-home-active .mh5-copy .mh5-description,
body.mh5-home-active .mh5-description > span:last-child { color: #fff7e9; text-shadow: 0 1px 4px #111a16, 0 1px 14px #17201c; }
body.mh5-home-active .mv-nav-v4 :is(.js-nav-item,.js-menu-toggle,.mv-contact-toggle) { color: #fff9ec; text-shadow: 0 1px 4px #18201a; }
body.mh5-home-active .mv-nav-v4 .header__logo svg { filter: brightness(0) invert(.98) drop-shadow(0 1px 3px #161c18a0); }
body.mh5-home-active .mv-nav-v4 .mv-contact-toggle { border-color: #fff9ec80; }
body.mh5-home-active .js-world-btn .world-btn__text { color: #fff9ec; text-shadow: 0 1px 4px #18201a; }

@media (max-width: 767px) {
  .mhr-controls { gap: 6px; padding: 6px; border-radius: 13px; }
  .mhr-thumb { width: clamp(60px, 18vw, 90px); border-radius: 6px; }
  .mhr-thumb span { left: 5px; bottom: 4px; font-size: 10px; }
  .mhr-toggle { width: 34px; height: 34px; }
}
@media (max-height: 550px) {
  body.mh5-home-active .mh5-copy { top: var(--mhr-copy-top, 43%); }
  .mhr-thumb { width: 74px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  body.mh5-home-active .mh5-copy .mh5-title { font-size: 29px; line-height: 1.14; }
  body.mh5-home-active .mh5-copy .mh5-description { margin-top: 10px; font-size: 11px; line-height: 1.45; }
  body.mh5-home-active .mh5-copy .mh5-native-service { margin-top: 12px; }
  body.mh5-home-active .mh5-native-service .btn__inner { padding: 8px 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mhr-background video, .mhr-thumb, .mhr-sound { transition: none; }
}
