/* 本地静态镜像补丁：移除脚本化广告/弹窗后用于保持版式 */

html { scrollbar-gutter: auto; }

@media (min-width: 1024px) {
  body.hg-page-home .hg-main { background: #0b0b0d; }
}

#app-header .hg-header { z-index: 12; }

/* 首个区块与头部间距 */
body.hg-page-home .hg-main > .hg-section.is-first { padding-top: 30px; }
@media (max-width: 1023px) {
  body.hg-page-home .hg-main > .hg-section.is-first { padding-top: 18px; }
}

/* 卡片封面轻微缩放，补回原站 JS 的悬停效果 */
.hg-drama-card__cover img {
  transition: transform .45s ease;
}
.hg-drama-card:hover .hg-drama-card__cover img { transform: scale(1.04); }

/* 热门标签横向滚动条 */
.hg-tagrow__scroll { scroll-behavior: smooth; }
.hg-tagrow__nav[aria-disabled="true"] { opacity: .25; pointer-events: none; }

/* 搜索过滤命中 */
.hg-drama-card.is-filtered-out { display: none; }
.hg-section.is-filtered-empty { display: none; }

/* 移动端抽屉遮罩 */
.clone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.clone-overlay.in { opacity: 1; pointer-events: auto; }

body.clone-drawer-open { overflow: hidden; }

/* 图片加载失败时保持深色底 */
.hg-drama-card__cover, .hg-topic-card { background: #171616; }

/* 首屏轮播：按钮仅展示，不触发跳转 */
.hg-hero__play { cursor: default; }
.hg-hero__play:hover { opacity: 1; }
.hg-hero__thumb { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .hg-hero__panel { transition: none !important; }
}

/* 5 秒启动加载页 */
.hg-boot {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  opacity: 1;
  transition: opacity .35s ease;
}
.hg-boot.is-done { opacity: 0; pointer-events: none; }
.hg-boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transform: translateY(-2vh);
}
.hg-boot__logo {
  display: block;
  width: min(240px, 58vw);
  height: auto;
  animation: hg-boot-breathe 1.8s ease-in-out infinite;
}
.hg-boot__bar {
  width: min(220px, 52vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.hg-boot__bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd21c 0%, #f5a623 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: hg-boot-fill 5s linear forwards;
}
.hg-boot__text {
  margin: 0;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: .12em;
}
@keyframes hg-boot-fill { to { transform: scaleX(1); } }
@keyframes hg-boot-breathe {
  0%, 100% { opacity: .85; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-boot__logo { animation: none; }
}

/* 视频加载动画（点击视频卡片/立即观看时出现，不跳转） */
.video-loading {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(8, 8, 8, .92);
  opacity: 0;
  transition: opacity .25s ease;
}
.video-loading.is-on { opacity: 1; }
.video-loading[hidden] { display: none; }
.video-loading__spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 210, 28, .18);
  border-top-color: #ffd21c;
  animation: video-loading-spin .8s linear infinite;
}
.video-loading__text {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .08em;
}
@keyframes video-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .video-loading__spinner { animation-duration: 1.6s; }
}

/* 低端机优化：触摸设备取消悬停位移 */
@media (hover: none) {
  .hg-drama-card:hover { transform: none; }
  .hg-drama-card:hover .hg-drama-card__cover img { transform: none; }
}
.hg-hero__panel { will-change: auto; }

/* 桌面端隐藏移动菜单按钮（精简 CSS 时保留） */
@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
}
