/* 首页攪珠直播播放器（兼容旧 WebView：不用 inset/gap 撑布局） */
.zyh-live {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 10px;
  box-sizing: border-box;
}

.zyh-live-stage {
  position: relative;
  width: 100%;
  background: #1a1a1a;
  border-radius: 0;
  overflow: hidden;
  /* 电脑端：铺满内容栏，标准 16:9 视频窗 */
  aspect-ratio: 16 / 9;
  max-height: 480px;
  min-height: 220px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 旧机无 aspect-ratio：用 padding 撑 16:9 */
.zyh-live-stage.zyh-live-stage--pad {
  height: 0;
  padding-bottom: 56.25%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}

.zyh-live-stage.is-embed-mode {
  aspect-ratio: 16 / 9;
  max-height: 480px;
  min-height: 220px;
  height: auto;
}

.zyh-live-stage.is-embed-mode.zyh-live-stage--pad {
  height: 0;
  padding-bottom: 56.25%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}

.zyh-live-stage video,
.zyh-live-stage .zyh-live-iframe {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  box-sizing: border-box;
}

.zyh-live-stage .zyh-live-iframe {
  overflow: hidden;
}

.zyh-live-stage video {
  object-fit: contain;
}

.zyh-live-stage video.is-fallback {
  display: none;
}

.zyh-live-stage.is-embed-mode video.is-fallback {
  display: none;
}

.zyh-live-tip-status {
  color: #ffb4b0;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 4px 0 0;
  max-width: 36em;
}

.zyh-live-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 16px 20px;
  text-align: center;
  background: #1a1a1a;
  background: -webkit-radial-gradient(center, ellipse, #1a1a1a 0%, #050505 75%);
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #050505 75%);
  color: #eee;
  z-index: 2;
}

.zyh-live-overlay.is-hidden {
  display: none;
}

.zyh-live-tip-title {
  color: #ffd54a;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.zyh-live-tip-schedule {
  color: #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 8px;
  max-width: 96%;
}

/* 时段说明整行不拆字（避免「敬请查 / 看」） */
.zyh-live-tip-sched-line {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.zyh-live-tip-countdown {
  color: #ff3b30;
  font-size: 1rem;
  font-weight: 700;
  margin: 4px 0 8px;
}

.zyh-live-refresh {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  padding: 8px 22px;
  border-radius: 6px;
  background: #e53935;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.45);
}

.zyh-live-refresh:active {
  background: #c62828;
}

/* 手机：沿用较满的竖向比例，避免过扁 */
@media (max-width: 480px) {
  .zyh-live-tip-title { font-size: 0.95rem; }
  .zyh-live-tip-schedule { font-size: 0.72rem; }
  .zyh-live-tip-countdown { font-size: 0.8rem; }
  .zyh-live-refresh { font-size: 0.88rem; padding: 7px 20px; }

  .zyh-live-stage,
  .zyh-live-stage.is-embed-mode {
    aspect-ratio: 796 / 575;
    max-height: none;
    min-height: 0;
  }
  .zyh-live-stage.zyh-live-stage--pad,
  .zyh-live-stage.is-embed-mode.zyh-live-stage--pad {
    padding-bottom: 72.236181%; /* 575/796 */
  }
}
