/* 红果榜单站点版 · 看板同款布局，背景回归站点雾青玻璃（hg5：仅背景/配色回退，结构不动） */
.hg-main { max-width: 880px; margin: 0 auto; padding: 96px 18px 60px; }
.hg-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hg-hero h1 { font-size: 21px; margin: 0 0 4px; }
.hg-sub { margin: 0; font-size: 12.5px; opacity: .65; }
.hg-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; padding-bottom: 2px; }
#hg-date { font-size: 16.5px; font-weight: 800; }
#hg-updated { opacity: .65; }
.hg-refresh {
  border: 1px solid rgba(140, 180, 230, .35); background: rgba(120, 170, 235, .08); color: inherit;
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; cursor: pointer; margin-left: 6px;
}
.hg-refresh:active { opacity: .7; }

/* 页签（横滑胶囊）—— 右侧渐隐提示可横滑（P2-13：390 下第 4 个 tab 在屏外无提示） */
.hg-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.hg-tabs {
  display: flex; gap: 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent 100%);
}
.hg-tabs::-webkit-scrollbar { display: none; }
/* P2-13：页签横滑提示——mask 渐隐在半透明胶囊上肉眼难辨，行右缘加 › 徽标明示；
   只在还有内容可滑时显示（JS 据 scrollWidth/scrollLeft 切 .is-scrollable），滑到头消失。 */
.hg-tabs-wrap { position: relative; }
.hg-tabs-hint {
  display: none; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(242, 73, 47, .94); color: #fff; font-size: 16px; line-height: 1;
  pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); z-index: 2;
}
.hg-tabs-wrap.is-scrollable .hg-tabs-hint { display: flex; }
.hg-tab {
  border: 1px solid rgba(140, 180, 230, .35); background: rgba(120, 170, 235, .08); color: inherit; white-space: nowrap;
  border-radius: 999px; padding: 10px 18px; font-size: 15px; cursor: pointer; flex: none;
}
.hg-tab .hg-top { opacity: .6; font-size: 12.5px; margin-left: 2px; }
.hg-tab.is-active { background: linear-gradient(135deg, #f2492f, #d93625); border-color: transparent; color: #fff; font-weight: 700; }
.hg-tab.is-active .hg-top { opacity: .85; }
.hg-search {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(140, 180, 230, .35); background: rgba(120, 170, 235, .07); border-radius: 999px; padding: 0 18px;
}
.hg-search input { flex: 1; border: 0; background: none; color: inherit; font-size: 16px; padding: 13px 0; outline: none; min-width: 0; }
.hg-search input::placeholder { color: inherit; opacity: .5; }
.hg-boardmeta { font-size: 12.5px; opacity: .65; margin: 2px 2px 16px; }

/* 领奖台（海报 + 金色大数字） */
.hg-podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 10px 0 24px; }
.hg-podium:empty { display: none; }
.hg-pod { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; width: 29%; max-width: 200px; text-align: center; }
.hg-pod.first { width: 36%; max-width: 238px; margin-top: 14px; }
.hg-champion {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(180deg, #f6c445, #e8a91c); color: #231600; font-size: 12px; font-weight: 800;
  padding: 4px 13px; border-radius: 999px; white-space: nowrap;
}
.hg-poster-wrap { position: relative; display: block; width: 100%; }
.hg-poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; background: rgba(140, 180, 230, .15); }
.hg-pod.first .hg-poster { border: 2px solid #e6b93f; box-shadow: 0 0 26px rgba(230, 185, 63, .22); }
.hg-bignum {
  position: absolute; left: 7px; bottom: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 44px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #ffe9a8, #dfa52e); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
}
.hg-pod.first .hg-bignum { font-size: 54px; }
.hg-missing { visibility: hidden; }
.hg-pod-title { margin-top: 10px; font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* P1-07：热度整块不折行（390 下“度”掉行且暗灰）；“度”字对比度提高 */
.hg-pod-heat { margin-top: 5px; color: #ef4b28; font-size: 13px; white-space: nowrap; }
.hg-pod-heat b { font-size: 16.5px; }
.hg-unit { opacity: .85; font-size: 12px; font-weight: 400; margin-left: 3px; }
.hg-pod .hg-chg { margin-top: 3px; }

/* 名次涨跌 */
.hg-chg { font-size: 12.5px; opacity: .55; }
.hg-chg.is-up { color: #ef4b28; font-weight: 700; opacity: 1; }
.hg-chg.is-down { color: #2f9e63; font-weight: 700; opacity: 1; }
.hg-chg.is-new { color: #ef4b28; font-weight: 800; opacity: 1; }

/* 榜单（整块容器 + 分隔线行） */
.hg-list { background: rgba(120, 170, 235, .06); border: 1px solid rgba(140, 180, 230, .16); border-radius: 18px; overflow: hidden; }
.hg-loading, .hg-empty { text-align: center; padding: 28px 0; opacity: .6; margin: 0; }
.hg-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid rgba(140, 180, 230, .14); }
.hg-row:last-child { border-bottom: 0; }
.hg-rank { font-size: 26px; font-weight: 800; opacity: .5; min-width: 36px; text-align: center; padding-top: 16px; }
.hg-cover { width: 52px; height: 69px; object-fit: cover; border-radius: 8px; flex: none; background: rgba(140, 180, 230, .15); }
.hg-body { flex: 1; min-width: 0; }
.hg-title-line { display: flex; align-items: center; gap: 8px; }
/* P2-15：标题链接上下补 padding，点按高 22px→≥28px（视觉字号不变） */
.hg-title { color: inherit; text-decoration: none; font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding: 3px 0; }
.hg-title:hover { text-decoration: underline; }
.hg-newtag { background: rgba(242, 73, 47, .14); color: #d93625; border-radius: 5px; padding: 2px 6px; font-size: 12px; font-weight: 700; flex: none; }
.hg-tags { font-size: 12.5px; opacity: .62; margin-top: 3px; }
.hg-nums { display: flex; gap: 13px; align-items: baseline; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.hg-heatline { color: #ef4b28; }
.hg-heatline b { font-size: 15px; }
.hg-score { color: #cf9514; }
.hg-fav { opacity: .85; }
.hg-likes { font-size: 12.5px; opacity: .62; margin-top: 3px; }
.hg-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; padding-top: 2px; }
/* P2-15：展开钮触摸区扩到 ≥28×28（padding 补足，⌄ 视觉符号不变）；功能已实测可用，只改尺寸 */
.hg-expand { background: none; border: 0; color: inherit; opacity: .6; font-size: 19px; line-height: 1; cursor: pointer; min-width: 28px; min-height: 28px; padding: 4px 8px; display: inline-flex; align-items: center; justify-content: center; transition: transform .18s; }
.hg-expand.open { transform: rotate(180deg); }
.hg-syn-wrap { display: none; }
.hg-row.open .hg-syn-wrap { display: block; }
.hg-syn { margin: 8px 0 0; font-size: 12.5px; line-height: 1.65; opacity: .75; }
.hg-more[hidden] { display: none; }
.hg-note { margin-top: 20px; font-size: 12px; opacity: .55; line-height: 1.7; }

/* 全站搜索区（hg6） */
.hg-full { margin-top: 22px; }
.hg-full-head { font-weight: 800; font-size: 15.5px; margin: 0 0 10px; }
.hg-full-loading { opacity: .6; text-align: center; padding: 18px 0; margin: 0; }
.hg-full-note { font-size: 12px; opacity: .65; margin-top: 12px; line-height: 1.7; }
.hg-full-note a { color: #ef4b28; }
.hg-rank.hg-rank-all { font-size: 12px; letter-spacing: 1px; padding-top: 27px; min-width: 36px; }
@media (max-width: 640px) {
  .hg-main { padding: 14px 12px 40px; }
  .hg-bignum { font-size: 33px; }
  .hg-pod.first .hg-bignum { font-size: 40px; }
  .hg-pod-title { font-size: 13px; }
  /* P1-07：窄卡上热度数字略缩，与 nowrap 一起保证“🔥数字+热度”一行放得下 */
  .hg-pod-heat { font-size: 12px; }
  .hg-pod-heat b { font-size: 15px; }
  .hg-rank { font-size: 21px; min-width: 28px; }
  .hg-cover { width: 46px; height: 61px; }
  .hg-row { padding: 12px; gap: 10px; }
}
@media (max-width: 480px) {
  /* P2-13：390 下页签略缩，让第 3 个 tab 露出更多字（4 个全同屏仍放不下，横滑提示为主） */
  .hg-tabs { gap: 8px; }
  .hg-tab { padding: 9px 14px; font-size: 14px; }
}

/* 2026-11-11 PC 体检优化（站主整包点选）： 栏宽 880→1080；页头由左右分栏改为居中（与多数栏目页一致）。 */
.hg-main { max-width: 1080px; }
.hg-hero { flex-direction: column; align-items: center; text-align: center; }
.hg-meta { justify-content: center; }
