/* 手机 UA / 窄屏：强制还原竖版首屏，不依赖媒体查询是否命中 */
html.is-sp .header-3 {
  display: none !important;
}
html.is-sp .main-cover-movie-pc {
  display: none !important;
}
html.is-sp .main-visual-image {
  display: none !important;
}
html.is-sp .main-cover-movie-sp {
  display: block !important;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
html.is-sp .main-visual-cover-wrap {
  height: 100svh;
  height: 100dvh;
  min-height: 560px;
  max-height: 740px;
  position: relative;
  overflow: hidden;
}
html.is-sp .main-visual-cover {
  position: absolute;
  inset: 0;
}
html.is-sp .wrap.main-cover-movie {
  position: relative;
}
html.is-sp .reg-login-btn-wrap,
html.is-sp .other-login-area {
  display: flex !important;
}
html.is-sp .main-catch,
html.is-sp .main-price {
  display: none !important;
}
html.is-sp .main-visual-cover-status {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  bottom: 65px;
  z-index: 3;
  pointer-events: none;
}
html.is-sp .main-visual-cover-status a {
  pointer-events: auto;
}
html.is-sp .main-visual-cover-status .reg-login-btn-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
}
html.is-sp .main-visual-cover-status .login-btn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 320px;
  max-width: calc(100% - 32px);
  margin-top: 10px;
}
html.is-sp .main-visual-cover-status .men-reg {
  width: 320px;
  max-width: calc(100% - 32px);
  text-align: center;
  height: 56px;
  line-height: 56px;
  background: #0043D7;
  color: #fff;
  border-radius: 28px;
  letter-spacing: 4px;
  text-indent: 4px;
}
html.is-sp .main-visual-cover-status .men-login {
  width: 153px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #fff;
  color: #0047E5;
  border-radius: 21px;
}
html.is-sp .main-visual-cover-status .girl-reg-login {
  width: 153px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #F54078;
  color: #fff;
  border-radius: 21px;
  font-size: 13px;
}
html.is-sp .main-visual-cover-status .men-reg,
html.is-sp .main-visual-cover-status .men-login,
html.is-sp .main-visual-cover-status .girl-reg-login {
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
}
html.is-sp .main-visual-cover-status .girl-reg-login p {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.35;
}
html.is-sp .main-cover-movie .other-login-area {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 15px;
}

/* 放大图 + 浏览器深链引导 */
#dl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 8vh;
}
#dl-overlay.open {
  display: flex;
}

.dl-zoom-wrap {
  width: min(86vw, 380px);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.38);
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  background: #222 center / cover no-repeat;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
#dl-overlay.zoomed .dl-zoom-wrap {
  transform: scale(1);
  opacity: 1;
}
#dl-overlay.sheet .dl-zoom-wrap {
  transform: scale(0.72) translateY(-6px);
}

.dl-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
#dl-overlay.sheet .dl-sheet {
  transform: translateY(0);
}

.dl-handle {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: #ddd;
  margin: 0 auto 12px;
}
.dl-sheet h3 {
  margin: 0 0 6px;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
}
.dl-sheet p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.6;
}
.dl-browsers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}
.dl-browser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 11px;
  color: #333;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dl-browser:active {
  opacity: 0.7;
}
.dl-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.dl-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dl-close {
  display: block;
  margin: 16px auto 0;
  width: 100%;
  height: 44px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  border-radius: 22px;
  font-size: 14px;
}

@media (min-width: 751px) {
  html:not(.is-sp) #dl-overlay {
    display: none !important;
  }
}
