:root {
  --bg: #080808;
  --bg-2: #0a0a0a;
  --card: #1c1c1c;
  --cover: #171616;
  --line: rgba(255, 255, 255, .08);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .65);
  --text-3: rgba(255, 255, 255, .45);
  --primary: #FFD21C;
  --primary-ink: #0d0d0d;
  --primary-soft: rgba(255, 210, 28, .1);
  --radius: 10px;
  --header-h: 56px;
  --gutter: 16px;
  --maxw: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.hg-only-pc { display: none !important; }

/* 按钮 */
.hg-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; white-space: nowrap; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; }
.hg-btn--primary { background: var(--primary); color: var(--primary-ink); }
.hg-btn--ghost { background: rgba(255, 255, 255, .08); color: var(--text-2); }
.hg-btn--block { width: 100%; }
.hg-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.hg-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.hg-link { color: var(--text-2); }

/* Logo */
.hg-logo { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.hg-logo__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary); display: inline-block; overflow: hidden; text-indent: -99px; box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .15); }
.hg-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.hg-logo__text b { color: var(--primary); font-size: 18px; font-style: italic; letter-spacing: 1px; }
.hg-logo__text sup { font-size: 9px; margin-left: 2px; }
.hg-logo__text small { font-size: 8px; color: var(--text-2); font-weight: 600; }
.hg-logo--lg .hg-logo__mark { width: 44px; height: 44px; }
.hg-logo--lg .hg-logo__text b { font-size: 26px; }

/* 年龄门 */
.hg-age { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.hg-age__box { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hg-age__title { font-size: 18px; font-weight: 600; }
.hg-age__tip { font-size: 12px; color: var(--text-3); }

/* 顶栏 */
.hg-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); background: rgba(8, 8, 8, .92); backdrop-filter: blur(10px); }
.hg-header__inner { height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.hg-header__inner > .hg-logo { position: absolute; left: 50%; transform: translateX(-50%); }
.hg-header__right { display: flex; align-items: center; gap: 12px; }

/* 抽屉 */
.hg-drawer { position: fixed; inset: 0; z-index: 50; }
.hg-drawer__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.hg-drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: 72%; max-width: 300px; background: var(--bg-2); padding: 12px var(--gutter); overflow-y: auto; animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(-100%); } }
.hg-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hg-drawer__nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.hg-drawer__nav a.is-active { color: var(--primary); }

/* 搜索浮层 */
.hg-search-layer { position: fixed; inset: 0; z-index: 50; background: var(--bg); padding: 12px var(--gutter); overflow-y: auto; }
.hg-search-layer__bar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.hg-search-layer__bar input, .hg-search input { flex: 1; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 16px; outline: none; min-width: 0; }
.hg-search-layer__title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.hg-search-layer__rank { list-style: none; }
.hg-search-layer__rank li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hg-rank { width: 20px; font-weight: 800; font-size: 16px; color: var(--text-3); }
.hg-rank.is-top { color: var(--primary); }

/* 主体 */
.hg-main { max-width: var(--maxw); margin: 0 auto; }
.hg-section { padding: 0 var(--gutter); margin-top: 28px; }
.hg-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hg-section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; line-height: 24px; }
.hg-section-accent { width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.hg-more { font-size: 12px; color: var(--text-3); }

/* 轮播 */
.hg-hero { position: relative; overflow: hidden; }
.hg-hero__track { display: flex; transition: transform .45s ease; }
.hg-hero__slide { flex: 0 0 100%; position: relative; }
.hg-hero__slide img { aspect-ratio: 16 / 8; height: auto; background: var(--cover); }
.hg-hero__info { padding: 16px var(--gutter) 8px; min-height: 140px; }
.hg-hero__brand { font-size: 12px; color: var(--text-2); }
.hg-hero__slogan { font-size: 13px; color: var(--text-2); margin: 2px 0 10px; }
.hg-hero__info h3 { font-size: 20px; font-weight: 700; }
.hg-hero__sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.hg-hero__ad { position: absolute; right: 10px; top: 10px; font-size: 11px; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 4px; color: var(--text-2); }
.hg-hero__dots { display: flex; justify-content: center; gap: 5px; padding: 12px 0; }
.hg-hero__dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s; }
.hg-hero__dots i.is-on { width: 18px; background: var(--primary); }
.hg-hero__arrow { position: absolute; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 20px; line-height: 1; z-index: 2; }
.hg-hero__arrow.is-prev { left: var(--gutter); }
.hg-hero__arrow.is-next { right: var(--gutter); }

/* 公告 */
.hg-notice { margin: 12px var(--gutter) 0; height: 32px; border: 1px solid rgba(255, 210, 28, .35); border-radius: 6px; display: flex; align-items: center; overflow: hidden; background: rgba(255, 210, 28, .05); }
.hg-notice__label { flex: none; height: 100%; display: flex; align-items: center; padding: 0 10px; background: var(--primary); color: var(--primary-ink); font-size: 12px; font-weight: 600; }
.hg-notice__viewport { flex: 1; overflow: hidden; }
.hg-notice__track { display: inline-flex; white-space: nowrap; gap: 16px; padding-left: 12px; font-size: 12px; color: var(--primary); animation: marquee 40s linear infinite; }
.hg-notice__track em { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 热门标签 */
.hg-tags-wrap { position: relative; }
.hg-tags { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-right: 36px; }
.hg-tags::-webkit-scrollbar { display: none; }
.hg-chip { flex: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--card); font-size: 13px; border: 1px solid var(--line); }
.hg-chip:hover { color: var(--primary); }
.hg-tags__next { position: absolute; right: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 18px; font-weight: 700; line-height: 1; }
.hg-tags-progress { position: relative; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); margin-top: 14px; }
.hg-tags-progress i { position: absolute; top: 0; height: 100%; border-radius: 2px; background: var(--primary); }

/* 剧集卡片 */
.hg-drama-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.hg-drama-card { min-width: 0; }
.hg-drama-card__cover { position: relative; aspect-ratio: 9 / 12; border-radius: var(--radius); overflow: hidden; background: var(--cover); border: 1px solid var(--line); }
.hg-drama-card__cover-link { display: block; height: 100%; }
.hg-drama-card__badges { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hg-drama-card__badge { font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--primary); color: var(--primary-ink); }
.hg-drama-card__badge.is-new { background: #ff5a1f; color: #fff; }
.hg-drama-card__score, .hg-drama-card__episode { position: absolute; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .55); }
.hg-drama-card__score { right: 6px; top: 6px; color: var(--primary); }
.hg-drama-card__episode { right: 6px; bottom: 6px; }
.hg-ep-time__at { font-style: normal; color: var(--text-2); margin-right: 4px; font-weight: 400; }
.hg-drama-card__body { padding-top: 8px; }
.hg-drama-card__title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-drama-card__desc { font-size: 10px; color: var(--text-3); line-height: 15px; height: 30px; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-drama-card__tags { display: flex; gap: 4px; height: 20px; overflow: hidden; flex-wrap: wrap; }
.hg-tag { font-size: 9px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 4px; color: var(--primary); background: var(--primary-soft); }

/* 广告行 */
.hg-ad-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 var(--gutter); margin-top: 24px; }
.hg-ad { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.hg-ad img { aspect-ratio: 4 / 1; height: auto; }
.hg-ad__tag { position: absolute; right: 6px; top: 6px; font-size: 10px; padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, .55); color: var(--text-2); }

/* 分类推荐 */
.hg-category-grid { display: grid; gap: 12px; }
.hg-cate-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.hg-cate-box__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.hg-cate-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hg-cate-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hg-cate-item img { flex: none; width: 70px; height: 90px; border-radius: 6px; }
.hg-cate-item div { min-width: 0; padding-top: 8px; }
.hg-cate-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-cate-item p { font-size: 12px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 专题 */
.hg-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hg-topic { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; }
.hg-topic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .8)); }
.hg-topic__info { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; display: flex; flex-direction: column; }
.hg-topic__info span { font-size: 11px; color: var(--primary); }
.hg-topic__info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 品牌声明 */
.hg-brand-declare { margin: 32px var(--gutter) 0; padding: 18px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.hg-brand-declare h2 { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.hg-brand-declare p + p { margin-top: 6px; }
.hg-brand-declare a, .hg-footer a:hover { color: var(--primary); }
.hg-brand-declare b { color: var(--text); }

/* 页脚 */
.hg-footer { background: var(--bg-2); padding: 32px var(--gutter); margin-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.hg-footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.hg-footer__brand p { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.hg-footer__brand a { color: var(--primary); }
.hg-footer__copy { margin-top: 10px !important; }
.hg-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hg-footer__cols h4 { font-size: 13px; margin-bottom: 10px; }
.hg-footer__cols a { display: block; font-size: 12px; color: var(--text-3); padding: 3px 0; }

/* 悬浮按钮 */
.hg-float { position: fixed; right: 12px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; gap: 10px; }
.hg-float__btn { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.hg-float__btn span { font-size: 8px; font-weight: 700; line-height: 1; }

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 0px; --header-h: 60px; }
  .hg-only-m { display: none !important; }
  .hg-only-pc { display: inline-flex !important; }
  .hg-header__inner { padding: 0 16px; gap: 24px; justify-content: flex-start; }
  .hg-header__inner > .hg-logo { position: static; transform: none; }
  .hg-nav { gap: 20px; min-width: 0; overflow: hidden; font-size: 14px; color: var(--text-2); white-space: nowrap; }
  .hg-nav a:hover, .hg-nav a.is-active { color: var(--primary); }
  .hg-header__right { margin-left: auto; }
  .hg-search input { width: 220px; }
  .hg-main { padding: 0 16px; }

  .hg-hero { margin-top: 12px; border-radius: 14px; }
  .hg-hero__slide img { aspect-ratio: 1280 / 460; }
  .hg-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .75), transparent 55%); }
  .hg-hero__info { position: absolute; left: 72px; bottom: 56px; z-index: 1; max-width: 420px; padding: 0; min-height: 0; }
  .hg-hero__info h3 { font-size: 30px; }
  .hg-hero__info .hg-btn { margin-top: 16px; }
  .hg-nav { gap: 16px; }
  .hg-hero__dots { position: absolute; left: 0; right: 0; bottom: 8px; }
  .hg-hero__arrow { top: 50%; bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; }
  .hg-hero__arrow.is-prev { left: 12px; }
  .hg-hero__arrow.is-next { right: 12px; }

  .hg-drama-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
  .hg-drama-card__title { font-size: 14px; }
  .hg-drama-card__desc { font-size: 12px; line-height: 18px; height: 36px; }
  .hg-tag { font-size: 11px; }
  .hg-ad-row { grid-template-columns: 1fr 1fr; }
  .hg-category-grid { grid-template-columns: 1fr 1fr; }
  .hg-topic-grid { grid-template-columns: repeat(4, 1fr); }
  .hg-footer__inner { flex-direction: row; justify-content: space-between; }
  .hg-footer__cols { width: 50%; }
  .hg-float { right: 24px; top: 40%; bottom: auto; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hg-drama-grid { grid-template-columns: repeat(3, 1fr); }
  .hg-topic-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ================= 多页面公共组件 ================= */
.hg-btn--xs { height: 24px; padding: 0 10px; font-size: 12px; }
.hg-btn--outline { background: transparent; color: var(--primary); border: 1px solid rgba(255, 210, 28, .5); }
.hg-muted { color: var(--text-3); font-size: 13px; }
.hg-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; }
.hg-box h2 { font-size: 18px; margin-bottom: 10px; }
.hg-box h3 { font-size: 14px; margin: 14px 0 6px; }
.hg-box p { color: var(--text-2); font-size: 13px; line-height: 1.8; }
section.hg-box.hg-section { margin-left: var(--gutter); margin-right: var(--gutter); }
.hg-toast { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); z-index: 200; background: rgba(0, 0, 0, .85); border: 1px solid var(--line); padding: 10px 18px; border-radius: 8px; font-size: 13px; }

.hg-crumb { font-size: 12px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hg-crumb i { font-style: normal; color: var(--text-3); }
.hg-crumb span { color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.hg-page-head { margin-top: 14px; }
.hg-h1 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.hg-h1--accent { border-left: 4px solid var(--primary); padding-left: 10px; line-height: 1.2; }
.hg-h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.hg-intro { margin-top: 14px; padding: 16px; border-radius: 10px; background: linear-gradient(90deg, #141414, #1a1410); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.8; }

/* 页签 */
.hg-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.hg-tabs button { flex: none; padding: 8px 0; color: var(--text-2); font-size: 14px; position: relative; }
.hg-tabs button.is-on { color: var(--primary); font-weight: 600; }
.hg-tabs--line { border-bottom: 1px solid var(--line); }
.hg-tabs--line button.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); }
.hg-tabs--center { justify-content: center; margin-bottom: 16px; }
.hg-tabs--bar { background: var(--card); border: 1px solid var(--line); border-radius: 10px; gap: 0; }
.hg-tabs--bar button { flex: 1; padding: 10px 0; }
.hg-tabs--bar button.is-on::after { content: ""; position: absolute; left: 40%; right: 40%; bottom: 4px; height: 2px; background: var(--primary); }

/* 弹窗 / 登录 */
.hg-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hg-modal__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.hg-modal__box { position: relative; width: 100%; max-width: 380px; background: #151515; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; }
.hg-modal__x { position: absolute; right: 12px; top: 10px; color: var(--text-3); font-size: 18px; }
.hg-modal__tip { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 12px; }
.hg-form { display: flex; flex-direction: column; gap: 12px; }
.hg-form input { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 14px; outline: none; }

/* 分页 */
.hg-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.hg-pager a, .hg-pager span { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.hg-pager a.is-on, .hg-pager a.is-arrow { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.hg-pager a.is-dis { opacity: .4; }
.hg-pager input { width: 60px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-align: center; }
.hg-pager em { font-style: normal; color: var(--text-3); }

/* FAQ */
.hg-faq__title { font-size: 18px; margin-bottom: 12px; }
.hg-faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.hg-faq__item summary { padding: 12px 14px; cursor: pointer; font-size: 13px; list-style: none; display: flex; justify-content: space-between; }
.hg-faq__item summary::after { content: "+"; color: var(--text-3); }
.hg-faq__item[open] summary::after { content: "-"; }
.hg-faq__item p { padding: 0 14px 14px; color: var(--text-3); font-size: 13px; }

.hg-drama-card--ad { display: block; }
.hg-drama-card--ad .hg-drama-card__cover { aspect-ratio: 9 / 12; }
.hg-chip--sm { height: 24px; padding: 0 10px; font-size: 11px; }

/* ================= 详情 / 播放页 ================= */
.hg-vm { position: fixed; inset: 0; z-index: 25; background: #000; overflow: hidden; }
.hg-vm__top { position: absolute; left: 0; right: 0; top: 0; height: 52px; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 4px; }
.hg-vm__top .hg-link { color: #fff; font-weight: 600; padding: 0 8px; }
.hg-vm__ep { font-size: 13px; color: var(--text-2); }
.hg-vm__video { position: absolute; left: 0; right: 0; top: 80px; bottom: 90px; }
.hg-vm__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 40px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.hg-vm__wm { position: absolute; right: 12px; top: 36%; font-size: 12px; color: rgba(255, 255, 255, .55); }
.hg-vm__ad { position: absolute; left: 8px; top: 45%; width: 100px; height: 100px; z-index: 3; border-radius: 6px; overflow: hidden; }
.hg-vm__ad i { position: absolute; left: 4px; top: 2px; font-size: 10px; font-style: normal; }
.hg-vm__ad b { position: absolute; right: 4px; top: 0; }
.hg-vm__side { position: absolute; right: 10px; bottom: 190px; z-index: 3; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.hg-vm__side button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.hg-vm__side button svg { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.hg-vm__side button:first-child svg { color: #ff4d6d; }
.hg-vm__speed { width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .35); justify-content: center; }
.hg-vm__info { position: absolute; left: 16px; right: 70px; bottom: 78px; z-index: 3; }
.hg-vm__info h1 { font-size: 18px; }
.hg-vm__info p { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-vm__progress { position: absolute; left: 16px; right: 16px; bottom: 58px; height: 2px; background: rgba(255, 255, 255, .25); z-index: 3; }
.hg-vm__progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); }
.hg-vm__progress i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.hg-vm__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 3; display: flex; align-items: center; padding: 0 16px; gap: 16px; background: #0d0d0d; }
.hg-vm__bar button:first-child { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-align: left; }
.hg-vm__bar span { color: var(--text-3); }

.hg-sheet { position: fixed; inset: 0; z-index: 60; }
.hg-sheet__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hg-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow-y: auto; background: #151515; border-radius: 16px 16px 0 0; padding: 16px; animation: sheetUp .2s ease; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.hg-sheet__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hg-sheet__head span { color: var(--text-3); font-size: 12px; flex: 1; }
.hg-sheet__sub { font-size: 14px; margin: 18px 0 10px; }
.hg-sheet__rec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hg-sheet__rec img { aspect-ratio: 3 / 4; height: auto; border-radius: 6px; }
.hg-sheet__rec span { display: block; font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-ep-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hg-ep { height: 36px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.hg-ep.is-on { background: var(--primary); color: var(--primary-ink); font-weight: 700; border-color: var(--primary); }

.hg-icon-ads { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 16px 0; }
.hg-icon-ads--sm { grid-template-columns: repeat(5, 1fr); }
.hg-icon-ad { text-align: center; font-size: 10px; color: var(--text-2); }
.hg-icon-ad img { width: 48px; height: 48px; margin: 0 auto 4px; border-radius: 10px; }

.hg-comments__head { display: flex; justify-content: space-between; align-items: baseline; }
.hg-comments__head span { font-size: 12px; color: var(--text-3); }
.hg-comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hg-comment b { font-size: 13px; }
.hg-comment p { color: var(--text-2); font-size: 13px; }
.hg-comment small { color: var(--text-3); font-size: 11px; }
.hg-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2d6a4f; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; }
.hg-comments__input { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.hg-comments__input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); }
.hg-addr { list-style: none; font-size: 13px; color: var(--text-2); line-height: 2; }
.hg-addr a { color: var(--primary); }

.hg-vp__top { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.hg-vp__titlebar { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 14px; margin-bottom: 8px; }
.hg-vp__player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.hg-vp__ad { position: absolute; left: 10px; top: 30%; width: 110px; height: 110px; border-radius: 6px; overflow: hidden; }
.hg-vp__ad i { position: absolute; left: 4px; top: 2px; font-size: 10px; font-style: normal; }
.hg-vp__actions { display: flex; gap: 8px; margin-top: 12px; }
.hg-vp__actions > * { flex: 1; height: 36px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.hg-vp__eps { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; align-self: start; }
.hg-vp__eps-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.hg-vp__eps-head b { display: block; font-size: 15px; }
.hg-vp__eps-head small { color: var(--text-3); font-size: 11px; }
.hg-vp__eps-head em { font-style: normal; color: var(--primary); font-size: 11px; }
.hg-vp__eps .hg-ep-list { grid-template-columns: repeat(5, 1fr); }
.hg-vp__card { display: grid; grid-template-columns: 140px 1fr 280px; gap: 24px; margin-top: 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.hg-vp__cover img { aspect-ratio: 3 / 4; height: auto; border-radius: 8px; }
.hg-vp__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.hg-vp__meta dl { border-left: 2px solid rgba(255, 210, 28, .4); padding-left: 12px; }
.hg-vp__meta dt { font-size: 12px; color: var(--text-3); }
.hg-vp__meta dd { font-size: 13px; }
.hg-vp__tags { grid-column: 1 / -1; display: flex; gap: 6px; }
.hg-vp__score { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hg-vp__score div { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 13px; }
.hg-vp__score b { font-size: 36px; color: var(--primary); }
.hg-vp__score b small { font-size: 14px; }
.hg-stars { font-style: normal; font-size: 20px; color: #555; letter-spacing: 2px; }
.hg-vp .hg-box { margin-top: 8px; }

/* ================= 专题 ================= */
.hg-topic-banner { position: relative; border-radius: 12px; overflow: hidden; margin-top: 4px; }
.hg-topic-banner img { position: absolute; inset: 0; opacity: .5; }
.hg-topic-banner div { position: relative; padding: 20px 16px; background: linear-gradient(90deg, rgba(0, 0, 0, .7), transparent); }
.hg-topic-banner h1 { font-size: 20px; }
.hg-topic-banner p { font-size: 13px; color: var(--text-2); }

/* ================= 排行榜 ================= */
.hg-rank-head { position: relative; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #1a1a1a, #101010); border: 1px solid var(--line); }
.hg-rank-head__title { display: flex; align-items: center; gap: 10px; }
.hg-rank-head__title i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 210, 28, .15); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.hg-rank-head__title h1 { font-size: 22px; }
.hg-rank-head__sub { font-size: 12px; color: var(--text-3); margin: 8px 0; }
.hg-rank-head__sub em { font-style: normal; color: var(--primary); }
.hg-rank-head__desc { font-size: 12px; color: var(--text-2); line-height: 1.8; }
.hg-rank-head__tabs { display: flex; gap: 8px; margin-top: 12px; }
.hg-rank-head__tabs a { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; }
.hg-rank-head__tabs a.is-on { background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.hg-rank-list .hg-ad-row { padding: 0; margin: 6px 0 16px; }
.hg-rank-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.hg-rank-row__no { width: 28px; font-size: 18px; font-weight: 800; color: var(--text-3); font-style: italic; }
.hg-rank-row.is-top .hg-rank-row__no { color: var(--primary); }
.hg-rank-row > img { flex: none; width: 48px; height: 64px; border-radius: 6px; }
.hg-rank-row__info { flex: 1; min-width: 0; }
.hg-rank-row__info h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-rank-row__meta { font-size: 11px; color: var(--text-3); }
.hg-rank-row__meta em, .hg-rank-row__heat em { font-style: normal; color: var(--primary); }
.hg-rank-row__heat { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.hg-rank-row__desc { font-size: 12px; color: var(--text-2); margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-rank-row__badge { position: absolute; right: 12px; top: 12px; font-size: 11px; display: inline-flex; gap: 3px; align-items: center; padding: 2px 8px; border-radius: 999px; background: rgba(255, 210, 28, .15); color: var(--primary); }
.hg-rank-row.is-first > img { width: 84px; height: 112px; }

/* ================= 吃瓜 ================= */
.hg-post-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hg-post { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--card); }
.hg-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .85)); }
.hg-post--ad::after { display: none; }
.hg-post__info { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; }
.hg-post__info p { display: flex; gap: 10px; font-size: 11px; color: var(--text-2); }
.hg-post__info h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hg-article__title { font-size: 20px; line-height: 1.4; margin: 6px 0 10px; }
.hg-article__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.hg-article__body p { color: var(--text-2); line-height: 1.9; margin: 12px 0; font-size: 15px; }
.hg-article__body h2 { font-size: 17px; margin: 22px 0 8px; }
.hg-article__body figure { margin: 12px 0; border-radius: 8px; overflow: hidden; }
.hg-article__body figure img { height: auto; aspect-ratio: 3 / 4; }
.hg-article__video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin: 16px 0; }
.hg-article__tags { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-3); margin: 18px 0; }
.hg-article__tags a { color: var(--primary); }
.hg-article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hg-article__nav a { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-article__nav small { display: block; color: var(--primary); font-size: 11px; }

/* ================= 作者页 ================= */
.hg-author { position: relative; border-radius: 12px; overflow: hidden; margin: 4px 0 14px; border: 1px solid var(--line); }
.hg-author__bg { position: absolute; inset: 0; opacity: .25; }
.hg-author__in { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; }
.hg-author__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); }
.hg-author__info { flex: 1; min-width: 0; }
.hg-author__info h1 { font-size: 18px; }
.hg-author__info p { font-size: 12px; color: var(--text-3); }
.hg-author__info ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.hg-author__info ul b { color: var(--text); margin-right: 2px; }

/* ================= 回家的路 ================= */
.hg-gh-hero { text-align: center; padding: 0 16px 28px; background: radial-gradient(ellipse at top, rgba(255, 210, 28, .12), transparent 70%); }
.hg-gh-hero .hg-section { text-align: left; padding: 14px 0 0; margin: 0; }
.hg-gh-hero__badge { display: inline-block; margin: 18px 0; font-size: 12px; color: var(--primary); border: 1px solid rgba(255, 210, 28, .5); padding: 4px 12px; border-radius: 6px; }
.hg-gh-hero .hg-logo--lg { display: flex; justify-content: center; }
.hg-gh-hero h1 { font-size: 20px; margin: 14px 0 8px; }
.hg-gh-hero__btns { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.hg-gh-box { margin-left: var(--gutter); margin-right: var(--gutter); padding: 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hg-gh-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hg-gh-box__head i { font-style: normal; font-size: 20px; }
.hg-gh-box__head h2 { font-size: 16px; }
.hg-gh-box__head em { font-style: normal; color: var(--primary); font-size: 13px; }
.hg-gh-box > .hg-muted { margin-bottom: 14px; font-size: 12px; }
.hg-lines, .hg-doms, .hg-contacts, .hg-steps, .hg-devs { display: grid; gap: 12px; }
.hg-line, .hg-dom, .hg-contact, .hg-step, .hg-dev { background: #121212; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.hg-line__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.hg-line__top em { font-style: normal; }
.is-ok { color: #3ecf6e !important; }
.is-mid { color: var(--primary) !important; }
.is-warn { color: #ff9f43 !important; }
.hg-line > b { display: block; font-size: 16px; margin: 10px 0 14px; }
.hg-line__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hg-line__btns .hg-btn { width: 100%; }
.hg-dom { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.hg-dom span { color: var(--text-3); }
.hg-dom b { flex: 1; font-size: 13px; }
.hg-contact h3, .hg-step h3, .hg-dev h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.hg-contact h3 i { font-style: normal; }
.hg-contact p, .hg-step p { font-size: 12px; color: var(--text-3); margin: 6px 0 12px; }
.hg-step h3 em { font-style: normal; color: var(--primary); }
.hg-step p { margin-bottom: 0; }
.hg-dev p { font-size: 12px; margin-top: 8px; }

/* ================= 文档页 ================= */
.hg-doc { margin-top: 14px; }
.hg-doc-h1 { font-size: 24px; margin-bottom: 12px; }
.hg-doc-hero { padding: 18px 16px; border-radius: 12px; border: 1px solid rgba(255, 210, 28, .3); background: linear-gradient(135deg, #1d1a10, #121212); margin-bottom: 16px; }
.hg-doc-hero__badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.hg-doc-hero h2 { font-size: 22px; margin: 10px 0 6px; }
.hg-doc-hero p { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.hg-doc-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.hg-doc-toc a { font-size: 12px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-doc-toc em { font-style: normal; color: var(--primary); margin-right: 6px; }
.hg-doc-sec { padding: 24px 0 8px; border-bottom: 1px solid var(--line); }
.hg-doc-sec h2 { font-size: 18px; margin-bottom: 12px; border-left: 4px solid var(--primary); padding-left: 10px; line-height: 1.2; }
.hg-doc-sec p { font-size: 13px; color: var(--text-2); line-height: 1.9; margin-bottom: 10px; }
.hg-doc code { background: rgba(255, 210, 28, .15); color: var(--primary); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.hg-doc-note { border-left: 3px solid rgba(255, 210, 28, .5); background: #111; padding: 10px 12px; font-size: 12px !important; color: var(--text-3) !important; }
.hg-doc-ul { padding-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.9; margin-bottom: 10px; }
.hg-doc-ul b { color: var(--text); }
.hg-doc-table { overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; }
.hg-doc-table table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 480px; }
.hg-doc-table th { background: #1a1a1a; color: var(--text-3); text-align: left; font-weight: 500; }
.hg-doc-table th, .hg-doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hg-doc-table a { color: var(--primary); }
.hg-doc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.hg-doc-stats div { text-align: center; padding: 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--text-3); }
.hg-doc-stats b { display: block; font-size: 22px; color: var(--primary); }
.hg-doc-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.hg-doc-channels div { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.hg-doc-channels i { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-style: normal; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.hg-doc-channels small { display: block; font-size: 11px; color: var(--text-3); }
.hg-doc-cards { display: grid; gap: 12px; margin-bottom: 10px; }
.hg-doc-card { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hg-doc-card em { font-style: normal; color: var(--primary); font-weight: 700; }
.hg-doc-card h3 { font-size: 16px; margin: 4px 0 8px; }
.hg-doc-card p { margin: 0; }
.hg-doc-links { list-style: none; font-size: 13px; color: var(--text-2); line-height: 2; }
.hg-doc-links a { color: var(--primary); }
.hg-timeline { list-style: none; border-left: 2px solid rgba(255, 210, 28, .4); padding-left: 16px; margin-bottom: 10px; }
.hg-timeline li { position: relative; padding-bottom: 14px; }
.hg-timeline li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.hg-timeline em { font-style: normal; font-size: 11px; color: var(--primary); }
.hg-timeline b { display: block; font-size: 14px; }
.hg-doc-updated { margin-top: 24px; padding: 12px 14px; border-left: 3px solid rgba(255, 210, 28, .5); background: #111; font-size: 12px; color: var(--text-3); }

/* 移动端：播放页隐藏顶栏/页脚/悬浮，只留沉浸式播放器 */
@media (max-width: 1023px) {
  .hg-video-page .hg-header, .hg-video-page .hg-footer, .hg-video-page .hg-float, .hg-only-pc-block { display: none !important; }
  .hg-video-page { overflow: hidden; }
}

/* ---------- 多页面 PC ---------- */
@media (min-width: 1024px) {
  .hg-only-pc-block, .hg-vp.hg-only-pc { display: block !important; }
  .hg-page-head { margin-top: 24px; }
  .hg-h1 { font-size: 24px; }
  .hg-drama-grid--list { grid-template-columns: repeat(3, 1fr); }
  .hg-topic-grid--page { grid-template-columns: repeat(4, 1fr); }
  .hg-topic-grid--page .hg-topic { aspect-ratio: 16 / 9; }
  .hg-topic-banner div { padding: 26px 30px; }
  .hg-rank-row { padding: 14px 20px; }
  .hg-rank-row > img { display: none; }
  .hg-rank-row.is-first > img { display: block; width: 110px; height: 140px; }
  .hg-rank-row__no { width: 50px; font-size: 22px; }
  .hg-rank-head { padding: 22px 26px; }
  .hg-rank-head__tabs { position: absolute; right: 26px; top: 60px; margin: 0; }
  .hg-rank-head__desc { max-width: 60%; }
  .hg-post-grid { grid-template-columns: 1fr 1fr; }
  .hg-post-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hg-article { max-width: 860px; margin-left: auto; margin-right: auto; }
  .hg-article__title { font-size: 28px; }
  .hg-gh-box { padding: 22px 24px; }
  .hg-lines { grid-template-columns: repeat(3, 1fr); }
  .hg-doms, .hg-contacts { grid-template-columns: 1fr 1fr; }
  .hg-steps, .hg-devs { grid-template-columns: repeat(3, 1fr); }
  .hg-gh-hero h1 { font-size: 26px; }
  .hg-doc-toc { grid-template-columns: repeat(5, 1fr); }
  .hg-doc-stats, .hg-doc-channels { grid-template-columns: repeat(4, 1fr); }
  .hg-doc-cards { grid-template-columns: 1fr 1fr; }
  .hg-doc-h1 { font-size: 34px; }
}

/* ================= 接入真实数据后的补充（51hub-mirror DW_THEME=hg） ================= */
body.hg { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
body.hg main { padding-bottom: 0; }
.hg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hg-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2412, #141414); }
.hg-empty { padding: 40px 0; text-align: center; color: var(--text-3); }
.hg-mb { margin-bottom: 12px; }
.hg-cate-box__title a:hover, .hg-drama-card__title a:hover, .hg-rank-row:hover h3 { color: var(--primary); }

/* 轮播：库里只有竖版封面 → 虚化封面做底 + 海报 */
.hg-hero__slide { overflow: hidden; }
.hg-hero__bg { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 8; overflow: hidden; background: #111; }
.hg-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.55); transform: scale(1.2); }
.hg-hero__poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; }
.hg-hero__poster img, .hg-hero__poster .hg-noimg { position: absolute; left: 50%; top: 8%; height: 84%; width: auto; aspect-ratio: 3 / 4; transform: translateX(-50%); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); object-fit: cover; }
.hg-hero__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hg-drama-card__score svg { vertical-align: -1px; }
.hg-drama-card__cover img { width: 100%; height: 100%; object-fit: cover; }
a.hg-tag:hover { background: rgba(255, 210, 28, .2); }

/* 分页 */
.hg-pager span.is-on { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.hg-pager__jump { display: inline-flex; align-items: center; gap: 8px; }

/* 专题页 */
.hg-topic-wrap { min-width: 0; }
.hg-topic img { width: 100%; height: 100%; object-fit: cover; }
.hg-topic-reps { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.hg-topic-reps a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-topic-reps a:hover { color: var(--primary); }

/* 选集按钮：锁 / 未上传 */
.hg-ep { position: relative; }
.hg-ep i { position: absolute; right: 2px; top: -4px; font-size: 10px; font-style: normal; }
.hg-ep.is-off { opacity: .35; }
.hg-ep.is-lock { color: var(--text-2); }

/* 详情页 */
.hg-vp__titlebar { font-size: 16px; font-weight: 700; }
.hg-vp__player--poster { display: block; }
.hg-vp__player--poster .hg-hero__bg { aspect-ratio: auto; bottom: 0; }
.hg-vp__player--poster > img, .hg-vp__player--poster > .hg-noimg { position: absolute; left: 50%; top: 6%; height: 88%; width: auto; aspect-ratio: 3 / 4; transform: translateX(-50%); border-radius: 8px; object-fit: cover; }
.hg-vp__player--poster .hg-vm__play { width: 64px; height: 64px; line-height: 64px; text-align: center; font-size: 26px; border-radius: 50%; background: rgba(255, 210, 28, .9); color: #000; text-shadow: none; }
.hg-vp__wide { grid-column: 1 / -1; }
.hg-vp__score em { font-style: normal; color: var(--primary); font-weight: 600; }
.hg-vp__score b { font-size: 30px; }
.hg-vp__cover img { width: 100%; object-fit: cover; }
.hg-hl { padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.9; }
.hg-faq__item[open] summary { color: var(--text); }

/* 播放页：手机首屏竖屏沉浸式（不 fixed，往下滑还有正文），PC 常规布局 */
.hg-play__stage { position: relative; background: #000; }
.hg-play__player { position: relative; background: #000; }
.hg-play__player video { display: block; width: 100%; background: #000; }
.hg-play__bar, .hg-play__side, .hg-play__info, .hg-play__epbar { display: none; }
@media (max-width: 1023px) {
  body:has(.hg-play) .hg-header { display: none; }
  .hg-play .hg-section.hg-play__top { padding: 0; margin-top: 0; }
  .hg-play__stage { height: 100vh; height: 100svh; display: flex; flex-direction: column; }
  .hg-play__bar { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 8px 0 4px; font-size: 13px; color: var(--text-2); flex: none; }
  .hg-play__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hg-play__player { flex: 1; min-height: 0; display: flex; align-items: center; }
  .hg-play__player video { height: 100%; object-fit: contain; }
  .hg-play__side { display: flex; position: absolute; right: 10px; bottom: 150px; z-index: 3; flex-direction: column; gap: 16px; }
  .hg-play__side button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #fff; }
  .hg-play__side svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
  .hg-play__info { display: block; flex: none; padding: 8px 16px 6px; }
  .hg-play__info h1 { font-size: 17px; }
  .hg-play__info p { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hg-play__epbar { display: flex; flex: none; align-items: center; gap: 12px; height: 52px; padding: 0 16px; background: #0d0d0d; font-size: 14px; font-weight: 600; }
  .hg-play__epbar button { flex: 1; display: flex; align-items: center; gap: 8px; text-align: left; font-weight: 600; }
  .hg-play__epbar a, .hg-play__epbar span { font-size: 13px; color: var(--primary); }
  .hg-play__epbar .is-off { color: var(--text-3); }
}
@media (min-width: 1024px) {
  .hg-play__top { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
  .hg-play__player { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
  .hg-play__player video { height: 100%; object-fit: contain; }
  .hg-vp__actions .is-off { opacity: .4; }
}

/* 旧页面正文（登录/会员/支付/指南/关于）放进新外壳 */
.hg-legacy { max-width: 760px; margin: 20px auto 0; padding: 0 var(--gutter, 16px); }
.hg-legacy h1 { font-size: 22px; margin: 8px 0 12px; }
.hg-legacy h2 { font-size: 17px; margin: 18px 0 10px; }
.hg-legacy p { color: var(--text-2); }
.hg-legacy .wrap { padding: 0; }
@media (min-width: 1024px) { .hg-legacy { padding: 0; } }
@media (min-width: 1024px) {
  .hg-hero__bg, .hg-hero__poster { aspect-ratio: 1280 / 460; }
  .hg-hero__poster img, .hg-hero__poster .hg-noimg { left: auto; right: 8%; transform: none; }
  .hg-vp__player--poster { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  /* .hg-only-pc 默认 inline-flex，块级容器要改回来 */
  div.hg-only-pc, aside.hg-only-pc, section.hg-only-pc { display: block !important; }
  .hg-vp__actions.hg-only-pc { display: flex !important; }
}
@media (max-width: 1023px) {
  /* 底部下载栏（fixed，58px）在时，沉浸式首屏让出它的高度，选集条别被盖住 */
  body.has-dlbar .hg-play__stage { height: calc(100vh - 62px); height: calc(100svh - 62px); }
}
/* 专题卡：封面绝对定位，别把 aspect-ratio 撑破 */
.hg-topic > img, .hg-topic > .hg-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hg-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-tagcloud em { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: 4px; }
.hg-topic { display: block; }
