/* 未开通游戏的介绍视频弹窗（home-intro.js） + 卡片上的「看介绍」角标 */
.iv-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(12, 22, 46, .72);
  backdrop-filter: blur(6px);
  animation: home-fade .2s;
}
.iv-box {
  position: relative;
  width: 880px; max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 18, 40, .45);
  animation: home-pop .3s cubic-bezier(.34, 1.4, .64, 1);
}
.iv-close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 18px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.iv-close:hover { background: rgba(0, 0, 0, .7); transform: rotate(90deg); }

.iv-player { position: relative; aspect-ratio: 16 / 9; background: #0b1324; }
.iv-player video, .iv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0b1324; }
.iv-state {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #c9d4ea; background: #0b1324; text-align: center; padding: 16px;
}
.iv-state i { font-size: 34px; color: #7f95c4; }
.iv-state b { color: #fff; font-size: 16px; }
.iv-state small { font-size: 13px; }
.iv-state--loading { pointer-events: none; background: transparent; }
.iv-state--loading i { font-size: 26px; }

.iv-info { display: flex; align-items: center; gap: 16px; padding: 20px 24px 22px; }
.iv-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 16px rgba(35, 67, 114, .14); }
.iv-copy { flex: 1; min-width: 0; }
.iv-kicker { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; color: #c06d00; background: #fff4e2; font-size: 11px; font-weight: 700; }
.iv-copy h3 { margin-top: 6px; font-size: 20px; font-weight: 800; color: var(--g-text); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-copy p { margin-top: 3px; color: var(--g-text-muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iv-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.iv-price { color: #e8590c; font-size: 26px; font-weight: 800; line-height: 1; margin-right: 4px; }
.iv-price small { font-size: 14px; margin-right: 1px; }

/* 竖屏视频：视频在左按 9:16 撑满高度；右栏上方封面主视觉、中间文字、按钮贴底 */
.iv-box--portrait { width: auto; display: flex; overflow: hidden; }
.iv-box--portrait .iv-player { flex-shrink: 0; aspect-ratio: 9 / 16; height: min(calc(100vh - 32px), 860px); }
.iv-box--portrait .iv-info { width: 340px; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 28px; }
.iv-box--portrait .iv-icon { display: none; }
.iv-hero {
  position: relative; overflow: hidden;
  flex: 1 1 auto; min-height: 200px;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.iv-hero::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--iv-cover) center / cover no-repeat;
  filter: blur(36px) saturate(1.3);
  opacity: .55;
}
.iv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 55%, #fff); }
.iv-hero img {
  position: relative; z-index: 1;
  width: 132px; height: 132px; border-radius: 32px; object-fit: cover;
  box-shadow: 0 16px 36px rgba(20, 40, 80, .25);
}
.iv-box--portrait .iv-copy { flex: 0 0 auto; padding: 0 26px; }
.iv-box--portrait .iv-copy h3 { margin-top: 10px; font-size: 24px; white-space: normal; }
.iv-box--portrait .iv-copy p { margin-top: 6px; font-size: 14px; -webkit-line-clamp: 5; }
.iv-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--g-text-muted); font-size: 13px; }
.iv-box--portrait .iv-actions { flex-direction: column; align-items: stretch; margin-top: 28px; padding: 0 26px; }
.iv-box--portrait .iv-price { margin: 0 0 4px; }

@media (max-width: 680px) {
  .iv-box--portrait { width: 100%; flex-direction: column; overflow-y: auto; }
  .iv-box--portrait .iv-player { aspect-ratio: auto; height: calc(100vh - 260px); }
  .iv-box--portrait .iv-info { width: auto; flex-direction: row; align-items: center; gap: 12px; padding: 16px; }
  .iv-box--portrait .iv-icon { display: block; }
  .iv-hero, .iv-meta { display: none; }
  .iv-box--portrait .iv-copy { flex: 1; padding: 0; }
  .iv-box--portrait .iv-copy h3 { margin-top: 6px; font-size: 17px; }
  .iv-box--portrait .iv-copy p { font-size: 13px; -webkit-line-clamp: 2; }
  .iv-box--portrait .iv-actions { flex-direction: row; margin-top: 0; padding: 0; }
}

@media (max-width: 680px) {
  .iv-mask { padding: 12px; }
  .iv-box { border-radius: 20px; }
  .iv-info { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .iv-icon { width: 52px; height: 52px; border-radius: 14px; }
  .iv-copy h3 { font-size: 17px; }
  .iv-actions { width: 100%; }
  .iv-actions .home-btn { flex: 1; padding: 0 12px; }
  .iv-actions .home-btn--ghost { flex: 0 0 auto; }
}

/* 卡片上的「看介绍」角标 */
.iv-badge {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(14, 26, 52, .62);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(10, 20, 45, .25);
  transform: translate(-50%, -50%);
  transition: background .2s, transform .2s;
  pointer-events: none;
}
.iv-badge i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--g-orange); font-size: 9px; padding-left: 2px; }
.has-intro:hover .iv-badge { background: rgba(14, 26, 52, .78); transform: translate(-50%, -50%) scale(1.06); }
@media (max-width: 500px) { .iv-badge { font-size: 10px; padding: 6px 10px 6px 7px; } .iv-badge i { width: 18px; height: 18px; font-size: 8px; } }
.shop-item-picture.has-intro { display: block; padding: 0; cursor: pointer; }
