/* ============================================================
   欢颜TV 「蜜橘甜笑 · Honey-Tangerine Sweet-Smile」 主题层
   ------------------------------------------------------------
   定位：覆盖在 hn-core 结构层之上，将整套子站渲染为
   暖调蜜橘奶油、友善圆角、甜笑弧线的欢颜观影站点。
   - 蜜橘奶油底 + 可可暖墨正文 + 欢颜珊瑚强调 + 蜜橘 marigold 副色
   - 卡片签名：甜笑弧线 + 腮红晕染 + 弹簧悬浮
   - 详情页(hv-detail)与播放页(hv-play)为两套截然不同的骨架
   - 统一面包屑/章节序数/内链密度，利于 SEO
   ============================================================ */

/* 1. 设计令牌：将 hn-core 深色令牌重映射为蜜橘甜笑暖调体系 */
:root {
    color-scheme: light;
    --hn-bg: #fff6f0;               /* 蜜橘奶油底 */
    --hn-bg-deep: #ffeade;          /* 区块/页脚底（暖桃） */
    --hn-surface-1: #ffffff;        /* 卡片 */
    --hn-surface-2: #fff1e9;        /* 悬停/次要（蜜桃） */
    --hn-surface-3: #ffe2d3;        /* 占位图底（暖杏） */
    --hn-line: #f7d9c9;             /* 描边（暖粉线） */
    --hn-line-soft: #fdeae0;        /* 细分隔 */
    --hn-text: #35241e;             /* 可可暖墨正文 */
    --hn-text-soft: #614b41;
    --hn-text-muted: #9c8579;
    --hn-accent: #ff5845;           /* 欢颜珊瑚（填充） */
    --hn-accent-strong: #e63a26;    /* 珊瑚（文字/描边强调） */
    --hn-accent-lite: #ff9c86;      /* 珊瑚（深底上的高亮文字/描边） */
    --hn-accent-soft: rgba(255, 88, 69, .14); /* 珊瑚半透明底 */
    --hn-accent-ink: #ffffff;       /* 珊瑚底上的文字 */
    --hn-sun: #ffb02e;              /* 蜜橘 marigold（甜笑副色） */
    --hn-mint: #14b8a6;             /* 薄荷（清新对比点缀） */
    --hn-blush: #ffd9cf;            /* 腮红晕染底 */
    --hn-success: #2fae7a;
    --hn-warning: #f0930c;
    --hn-danger: #e8402c;
    --hn-shell: 1500px;
    --hn-gutter: clamp(12px, 2.6vw, 36px);
    --hn-radius-sm: 10px;
    --hn-radius-md: 14px;
    --hn-radius-lg: 18px;
    --hn-radius-xl: 24px;
    --hn-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --hn-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    --hn-ease: cubic-bezier(.22, .68, .36, 1);
    --hv-shadow: 0 2px 6px rgba(180, 90, 60, .06), 0 10px 24px rgba(230, 90, 60, .08);
    --hn-shadow-lg: 0 18px 48px rgba(150, 70, 45, .16);
}

/* 2. 全局基调覆盖（压过 ember 层的深色硬编码） */
html { color-scheme: light; }
body {
    background: var(--hn-bg);
    color: var(--hn-text);
    font-family: var(--hn-body);
    font-size: 15px;
    line-height: 1.7;
}
body::before { display: none; } /* 去掉 ember 的深色氛围光 */

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--hn-accent-strong); }
::selection { background: var(--hn-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--hn-accent); outline-offset: 2px; }

/* 描边类小组件统一收细（紧凑感） */
.hn-panel, .hn-filter, .hn-rank-card, .hn-art-side-card, .subsite-art-detail {
    box-shadow: var(--hv-shadow);
}

/* 3. 顶部导航：吸顶浅色紧凑工具栏 */
.hn-header { background: #ffffff; border-bottom: 1px solid var(--hn-line-soft); }
.hn-header.is-scrolled { background: #ffffff; box-shadow: 0 8px 22px rgba(150, 70, 45, .08); }
.hn-header__inner { min-height: 58px; }
.hn-search { border-color: var(--hn-line); background: #fff; }
.hn-search button { background: var(--hn-accent); color: #fff; }
/* PC 端：让 header 整体共享白底；移动端 .hn-nav 是 fixed drawer 必须保持不透明（用 hn-core.css 的 --hn-bg-deep）。 */
@media (min-width: 768px) {
    .hn-nav { background: transparent; border-left: none; box-shadow: none; }
}
.hn-nav__drawer-head button, .hn-icon-action:hover, .hn-menu-btn:hover,
.hn-nav > a.active, .hn-nav > a:hover, .hn-nav__item.is-active .hn-nav__link { background: var(--hn-surface-2); color: var(--hn-accent-strong); }
.hn-brand__copy strong { color: var(--hn-text); }

/* 4. 章节标题：带下边线、紧凑 */
.hn-block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--hn-line-soft); padding-bottom: 10px; margin-bottom: 14px; }
.hn-block-title h2, .hn-section__head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--hn-text); }
.hn-block-title > a, .hn-section__head > a { color: var(--hn-accent-strong); font-size: .84rem; font-weight: 600; }
.hn-section { padding: 20px 0; }
.hn-section__head { margin-bottom: 10px; }

/* 5. 视频卡片：欢颜甜笑卡（弹簧悬浮 + 腮红晕染 + 笑弧签名） */
.hn-vod-card { position: relative; transition: transform .38s var(--hn-ease); }
.hn-vod-card:hover { transform: translateY(-6px); }
.hn-vod-card > a { display: block; }
/* 海报：友善圆角（顶大底小）+ 悬浮暖阴影 */
.hn-vod-card__pic { border-radius: var(--hn-radius-lg) var(--hn-radius-lg) var(--hn-radius-sm) var(--hn-radius-sm); background: var(--hn-surface-3); transition: box-shadow .38s var(--hn-ease); }
.hn-vod-card:hover .hn-vod-card__pic { box-shadow: 0 14px 30px rgba(230, 90, 60, .2); }
.hn-vod-card__pic img { transition: transform .5s var(--hn-ease), filter .4s ease; }
.hn-vod-card:hover .hn-vod-card__pic img { transform: scale(1.06); filter: saturate(1.08); }
/* 底部暖调渐隐（替代结构层冷绿渐变），保证备注可读 */
.hn-vod-card__pic::after { background: linear-gradient(0deg, rgba(53, 36, 30, .82), transparent); }
/* 腮红晕染签名：悬停时自底部浮现的珊瑚暖光 */
.hn-vod-card__pic::before { position: absolute; inset: auto 0 0 0; z-index: 1; height: 62%; content: ""; pointer-events: none; opacity: 0; background: radial-gradient(120% 82% at 50% 118%, rgba(255, 88, 69, .5), rgba(255, 176, 46, .16) 46%, transparent 72%); transition: opacity .42s var(--hn-ease); }
.hn-vod-card:hover .hn-vod-card__pic::before { opacity: .92; }
/* 序号：蜜橘 marigold 胶囊（左上） */
.hn-vod-card__serial { position: absolute; top: 7px; left: 7px; z-index: 3; display: inline-flex; align-items: center; min-height: 22px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, var(--hn-sun), #ff8a4c); color: #3a1c06; font-size: .7rem; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 3px 10px rgba(255, 138, 45, .4); }
/* 备注：暖可可半透明胶囊 */
.hn-vod-card__note { background: rgba(53, 36, 30, .8); color: #ffe9dd; }
/* 评分：圆形腮红徐章（珊瑚渐变 + 白环） */
.hn-vod-card__score { top: 7px; right: 7px; min-width: 34px; height: 34px; padding: 0; justify-content: center; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; background: linear-gradient(140deg, #ff7a5c, var(--hn-accent-strong)); color: #fff; box-shadow: 0 4px 12px rgba(230, 58, 38, .38); font-size: .78rem; transition: transform .34s var(--hn-ease); }
.hn-vod-card:hover .hn-vod-card__score { transform: scale(1.12) rotate(-4deg); }
/* 文案区 + 笑弧签名 */
.hn-vod-card__body { position: relative; padding-top: 9px; padding-bottom: 11px; }
.hn-vod-card h3 { font-size: .94rem; line-height: 1.35; white-space: nowrap; color: var(--hn-text); transition: color .2s ease; }
.hn-vod-card:hover h3 { color: var(--hn-accent-strong); }
.hn-vod-card p { font-size: .72rem; color: var(--hn-text-muted); }
/* 甜笑弧线：悬停时在标题下画出的珊瑚笑弧（签名） */
.hn-vod-card__body::after { position: absolute; bottom: 0; left: 50%; width: 46px; height: 13px; content: ""; border-bottom: 3px solid var(--hn-accent); border-radius: 0 0 46px 46px / 0 0 15px 15px; opacity: 0; transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform .4s var(--hn-ease), opacity .3s ease; }
.hn-vod-card:hover .hn-vod-card__body::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
.hn-vod-grid, .hn-card-grid, .hn-channel-grid { gap: 18px 14px; }
@media (prefers-reduced-motion: reduce) {
    .hn-vod-card:hover { transform: none; }
    .hn-vod-card:hover .hn-vod-card__pic img { transform: none; }
    .hn-vod-card:hover .hn-vod-card__score { transform: none; }
}

/* 列表行：分隔线、编号 */
.hn-hot-board__item, .hn-mini-rank li a, .hn-art-side-list li a,
.hn-trending__item, .hn-art-home-item > a { border-color: var(--hn-line-soft); }
.hn-hot-board__index, .hn-mini-rank li span, .hn-art-side-list li span,
.hn-rank-index, .hn-trending__rank { color: var(--hn-accent-strong); }

/* 6. 筛选器紧凑化 - PC 自动换行（覆盖 ember 层强制 nowrap） */
.hn-filter { padding: 12px; margin-bottom: 16px; border-radius: var(--hn-radius-md); }
.hn-filter__row strong { color: var(--hn-text-muted); }
.hn-filter__items a { color: var(--hn-text-soft); border-radius: 6px; }
.hn-filter__items a:hover, .hn-filter__items a.active { background: var(--hn-accent); color: #fff; }
@media (min-width: 768px) {
    .hn-filter__items,
    .hn-filter__extra .hn-filter__items,
    .hn-directory-body .hn-filter__items { flex-wrap: wrap !important; overflow: visible !important; }
}

/* 7. 分页 */
.hn-pagination a, .hn-pagination span { border-color: var(--hn-line); color: var(--hn-text-soft); background: #fff; border-radius: 6px; }
.hn-pagination .active, .hn-pagination .current { background: var(--hn-accent); border-color: var(--hn-accent); color: #fff; }

/* 8. 按钮/徽章 */
.hn-btn--primary, .hn-action--dark, .hn-action--acid { background: var(--hn-accent); color: #fff; border-color: var(--hn-accent); }
.hn-btn--ghost, .hn-action--line, .hn-action--transparent { border-color: var(--hn-line); color: var(--hn-text); background: #fff; }
.hn-meta span, .hn-meta a, .hn-meta strong { border-color: var(--hn-line); background: #fff; color: var(--hn-text-muted); }
.hn-meta strong { border-color: var(--hn-accent); color: var(--hn-accent-strong); }

/* 9. 长正文阅读排版（SEO 友好） */
.hn-copy, .subsite-art-detail__content { color: var(--hn-text); font-size: 1rem; line-height: 2; max-width: 78ch; }
.hn-copy p { margin: 0 0 1em; }

/* 10. 页脚：欢颜笑弧页脚（暖珊瑚-暮色渐变 + 甜笑光束 + 圆形回顶） */
.hn-footer { position: relative; overflow: hidden; margin-top: clamp(28px, 6vw, 72px); border-top: 0; background: linear-gradient(160deg, #3a1d18 0%, #5c2a1e 58%, #7a3521 100%); color: #ffe6d8; }
.hn-footer__beam { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--hn-accent), var(--hn-sun), var(--hn-accent)); }
.hn-footer__inner { position: relative; padding-block: clamp(30px, 4vw, 46px) 0; }
.hn-footer__grid { display: grid; padding-block: 0; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .hn-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 34px; } }
.hn-footer__brand { display: grid; justify-items: start; align-content: start; gap: 12px; }
.hn-footer__logo { display: block; max-width: 190px; max-height: 52px; object-fit: contain; }
.hn-footer__brand strong { display: block; margin: 0; font-family: var(--hn-display); font-size: 1.6rem; font-weight: 900; color: #fff; }
.hn-footer__brand p { max-width: 48ch; margin: 0; color: rgba(255, 230, 216, .72); font-size: .84rem; line-height: 1.8; }
.hn-footer__links, .hn-footer__meta { display: grid; align-content: start; gap: 12px; color: rgba(255, 230, 216, .78); font-size: .84rem; }
.hn-footer__links strong, .hn-footer__meta strong { margin-bottom: 2px; color: var(--hn-sun); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.hn-footer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hn-footer__chips a { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid rgba(255, 176, 46, .38); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #ffe6d8; font-size: .82rem; transition: background .2s ease, border-color .2s ease, transform .2s var(--hn-ease); }
.hn-footer__chips a:hover { background: var(--hn-accent); border-color: var(--hn-accent); color: #fff; transform: translateY(-2px); }
.hn-footer__meta span, .hn-footer__meta a { color: rgba(255, 230, 216, .72); }
.hn-footer__meta a:hover { color: var(--hn-sun); }
.hn-footer__bottom { position: relative; display: grid; justify-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 34px); padding: 26px 0 24px; }
.hn-footer__smile { position: absolute; top: 0; left: 50%; width: min(320px, 62%); height: 15px; transform: translateX(-50%); border-bottom: 2px solid rgba(255, 176, 46, .42); border-radius: 0 0 320px 320px / 0 0 30px 30px; }
.hn-footer__note { margin: 0; color: rgba(255, 230, 216, .62); font-size: .82rem; text-align: center; }
.hn-footer__totop { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: linear-gradient(140deg, var(--hn-accent), var(--hn-accent-strong)); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .3s var(--hn-ease); }
.hn-footer__totop:hover { transform: translateY(-3px) scale(1.06); }
.hn-footer__totop svg { width: 20px; height: 20px; fill: currentColor; }

/* ============================================================
   A. hv-detail 详情页骨架（资料文档式，双栏，强调结构化信息）
   与 hv-play 完全不同：以「影片资料卡 + 规格表 + 剧情正文」为核心
   ============================================================ */
.hv-detail { padding: 16px 0 30px; }
.hv-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--hn-text-muted); font-size: .8rem; }
.hv-breadcrumb a { color: var(--hn-text-muted); }
.hv-breadcrumb a:hover { color: var(--hn-accent-strong); }
.hv-breadcrumb span { color: var(--hn-line); }
.hv-breadcrumb .on { color: var(--hn-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30ch; }

.hv-detail__head { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; margin: 0 0 16px; }
.hv-detail__kicker { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 2px 0; }
.hv-detail__kicker a { color: var(--hn-accent-strong); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.hv-detail h1 { margin: 2px 0 6px; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; color: var(--hn-text); }
.hv-detail__sub { color: var(--hn-text-muted); font-size: .9rem; max-width: 80ch; }

.hv-detail__body { display: grid; gap: 20px; }
@media (min-width: 1024px) { .hv-detail__body { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }

.hv-card { background: #fff; border: 1px solid var(--hn-line-soft); border-radius: var(--hn-radius-lg); box-shadow: var(--hv-shadow); }
.hv-detail__main { min-width: 0; }

.hv-media { padding: 18px 18px 16px; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "poster body" "facts facts"; gap: 14px; }
@media (min-width: 560px) {
    .hv-media { grid-template-columns: 168px minmax(0, 1fr); grid-template-areas: "poster body" "facts facts"; gap: 18px; }
}
@media (min-width: 880px) {
    .hv-media { grid-template-columns: 180px minmax(0, 1fr); grid-template-areas: "poster body" "facts facts"; column-gap: 20px; }
}
.hv-poster { position: relative; grid-area: poster; width: 100%; aspect-ratio: 2/3; overflow: hidden; border-radius: 6px; background: var(--hn-surface-3); }
.hv-poster img { width: 100%; height: 100%; object-fit: cover; }
.hv-poster__score { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, rgba(0,0,0,.78), rgba(0,0,0,.5)); color: #fff; line-height: 1; box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.hv-poster__score strong { font-size: 1.2rem; font-weight: 900; color: #ffcf6a; }
.hv-poster__score em { font-style: normal; font-size: .68rem; opacity: .85; }
@media (max-width: 559.98px) {
    /* 移动端评分胶囊缩小：海报在窄屏本来就窄，避免胶囊占满右上角 */
    .hv-poster__score { top: 6px; right: 6px; padding: 3px 7px; gap: 1px; }
    .hv-poster__score strong { font-size: .78rem; }
    .hv-poster__score em { font-size: .55rem; }
}
.hv-media__info { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hv-media__title { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -.005em; color: var(--hn-text); }
.hv-media__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--hn-text-muted); font-size: .78rem; }
.hv-media__meta strong { color: var(--hn-accent-strong); font-weight: 700; }
.hv-media__blurb { margin: 0; color: var(--hn-text-soft); font-size: .9rem; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hv-media__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hv-media__facts { grid-area: facts; }
.hv-btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; padding: 0 18px; border-radius: 6px; font-weight: 700; font-size: .9rem; border: 1px solid transparent; }
.hv-btn--primary { background: var(--hn-accent)!important; color: #fff; }
.hv-btn--primary:hover { background: var(--hn-accent-strong); color: #fff; }
.hv-btn--ghost { background: #fff; border-color: var(--hn-line); color: var(--hn-text); }
.hv-btn--ghost:hover { border-color: var(--hn-accent); color: var(--hn-accent-strong); }

.hv-facts { border-top: 1px solid var(--hn-line-soft); }
/* 紧凑两列（PC），单列（窄屏）；标签加浅底；值同行 */
.hv-facts dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 560px) {
    .hv-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
}
@media (min-width: 880px) {
    .hv-facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
}
.hv-facts .r { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px; padding: 9px 10px; border-bottom: 1px dashed var(--hn-line-soft); align-items: start; }
.hv-facts dt { margin: 0; color: var(--hn-text-muted); font-size: .78rem; white-space: nowrap; }
.hv-facts dd { margin: 0; color: var(--hn-text); font-size: .86rem; min-width: 0; line-height: 1.7; word-break: break-word; overflow-wrap: anywhere; }
.hv-facts dd.full { white-space: normal; overflow: visible; }
.hv-facts dd a { display: inline-block; padding: 0; color: var(--hn-accent-strong); }
/* 链接间分隔符统一由 CSS 控制：避免字面拼接和 ::before 双重叠加造成"周末沉浸/·下饭"叠字 */
.hv-facts dd a + a::before { content: "/"; color: var(--hn-text-muted); margin: 0 6px; opacity: .55; font-weight: 400; }
@media (max-width: 559.98px) {
    .hv-facts .r { grid-template-columns: 64px minmax(0, 1fr); }
}

.hv-copy { padding: 18px 18px 22px; }
.hv-copy h2, .hv-copy h3 { font-size: 1.05rem; margin: 0 0 10px; color: var(--hn-text); }
.hv-copy .hv-story { color: var(--hn-text-soft); font-size: .96rem; line-height: 1.95; white-space: pre-wrap; }

/* 详情页播放源列表：紧凑，行标题+选集 chips */
.hv-sources { padding: 16px 18px 18px; }
.hv-sources h2 { font-size: 1.05rem; margin: 0 0 12px; }
.hv-source + .hv-source { margin-top: 14px; }
.hv-source h3 { font-size: .8rem; color: var(--hn-text-muted); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.hv-source h3 b { color: var(--hn-accent-strong); font-weight: 700; }
.hv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hv-chips a { display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px; border: 1px solid var(--hn-line); border-radius: 6px; color: var(--hn-text-soft); font-size: .82rem; background: #fff; }
.hv-chips a:hover, .hv-chips a.active { border-color: var(--hn-accent); background: var(--hn-accent); color: #fff; }

.hv-detail__side { display: grid; gap: 16px; min-width: 0; }
.hv-widget { padding: 16px; }
.hv-widget h2 { font-size: .98rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--hn-text); display: flex; align-items: center; justify-content: space-between; }
.hv-widget h2 a { font-size: .74rem; color: var(--hn-accent-strong); }
.hv-rank-list, .hv-tiny-list { list-style: none; margin: 0; padding: 0; }
.hv-rank-list li a, .hv-tiny-list li a { padding: 7px 0; border-bottom: 1px solid var(--hn-line-soft); }
.hv-rank-list li a { display: grid; grid-template-columns: 22px 40px minmax(0,1fr); align-items: center; gap: 9px; }
.hv-rank-list .no { color: var(--hn-accent-strong); font-weight: 800; font-size: .9rem; }
.hv-rank-list .ph { width: 40px; aspect-ratio: 2/3; overflow: hidden; border-radius: 4px; background: var(--hn-surface-3); }
.hv-rank-list .ph img, .hv-tiny-list .ph img { width: 100%; height: 100%; object-fit: cover; }
.hv-rank-list .tt, .hv-tiny-list .tt { min-width: 0; }
.hv-rank-list .tt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.hv-rank-list .tt em, .hv-tiny-list .tt em { color: var(--hn-text-muted); font-size: .72rem; font-style: normal; }
.hv-tiny-list li a { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 10px; }
.hv-tiny-list .ph { width: 60px; aspect-ratio: 3/2; }
.hv-tiny-list .tt b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .84rem; line-height: 1.4; }
.hv-tiny-list .tt em { display: block; margin-top: 2px; }

/* ============================================================
   B. hv-play 播放页骨架（沉浸观看流）
   与 hv-detail 截然不同：播放器占据主视觉，选集贴近播放器
   ============================================================ */
.hv-play { padding: 14px 0 30px; }
.hv-play .hv-breadcrumb { margin-bottom: 12px; }

.hv-player-card { background: #1a1210; border-radius: var(--hn-radius-lg); overflow: hidden; box-shadow: 0 10px 30px rgba(26,18,16,.2); }
.hv-player-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; color: #fff; background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.08); }
.hv-player-title a.back { color: #c9b3a6; font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.hv-player-title a.back:hover { color: #fff; }
.hv-player-title .tt { min-width: 0; flex: 1; }
.hv-player-title h1 { font-size: 1.1rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-player-title .cur { font-size: .78rem; color: var(--hn-accent-lite, #ff9c86); }
.hv-player-box { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.hv-player-box iframe, .hv-player-box video { width: 100% !important; height: 100% !important; }

/* 选集：浅色独立面板，位于播放器正下方（紧贴、可滚动） */
.hv-episodes { margin-top: 14px; background: #fff; border: 1px solid var(--hn-line-soft); border-radius: var(--hn-radius-lg); box-shadow: var(--hv-shadow); }
.hv-episodes__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--hn-line-soft); flex-wrap: wrap; }
.hv-episodes__head h2 { font-size: .98rem; margin: 0; }
.hv-episodes__head .hint { color: var(--hn-text-muted); font-size: .76rem; }
.hv-sources-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hv-sources-tabs button { min-height: 30px; padding: 0 12px; border: 1px solid var(--hn-line); background: #fff; color: var(--hn-text-soft); border-radius: 6px; cursor: pointer; font-size: .82rem; }
.hv-sources-tabs button.active { background: var(--hn-accent); border-color: var(--hn-accent); color: #fff; }
.hv-episodes__body { max-height: 46vh; overflow-y: auto; padding: 12px 14px; }
.hv-episodes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.hv-episodes__grid a { display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--hn-line); border-radius: 6px; color: var(--hn-text-soft); font-size: .84rem; background: #fff; }
.hv-episodes__grid a:hover, .hv-episodes__grid a.active { border-color: var(--hn-accent); background: var(--hn-accent); color: #fff; }

.hv-play__body { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 1024px){ .hv-play__body { grid-template-columns: minmax(0,1fr) 300px; align-items: start; } }
.hv-play__meta { padding: 14px 16px; }
.hv-play__meta h2 { font-size: 1.3rem; margin: 0 0 6px; }
.hv-play__meta p { color: var(--hn-text-muted); font-size: .88rem; margin: 0 0 10px; }
.hv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hv-tags a { font-size: .76rem; color: var(--hn-accent-strong); border: 1px solid var(--hn-line); border-radius: 999px; padding: 2px 10px; background: #fff; }
.hv-play__intro { padding: 14px 16px; }
.hv-play__intro h3 { font-size: .98rem; margin: 0 0 8px; }
.hv-play__intro .story { color: var(--hn-text-soft); font-size: .9rem; line-height: 1.9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hv-play__intro .more { color: var(--hn-accent-strong); font-size: .8rem; }

/* ============================================================
   C. 通用 SEO / 顶部编辑推荐工具类
   ============================================================ */
.hv-feature { display: grid; gap: 14px; }
@media (min-width: 980px){ .hv-feature { grid-template-columns: minmax(0,1fr) 340px; } }
.hv-feature__lead { position: relative; min-height: 260px; overflow: hidden; border-radius: var(--hn-radius-lg); background: var(--hn-bg-deep); }
/* 轮播 slides */
.hv-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .55s var(--hn-ease); }
.hv-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; }
.hv-slide .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-slide .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(38,20,14,.92), rgba(38,20,14,.05) 80%); }
.hv-slide .cap { position: absolute; z-index: 1; padding: 20px; color: #fff; inset: auto 0 64px 0; }
.hv-slide .cap .k { font-size: .74rem; letter-spacing: .14em; color: #ffcf6a; }
.hv-slide .cap h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin: 6px 0 4px; }
.hv-slide .cap p { margin: 0 0 10px; color: #f0dccf; font-size: .84rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* 整图可点：透明覆盖层接管鼠标点击，buttons 在它之下但仍可点 */
.hv-slide__link { position: absolute; inset: 0; z-index: 1; }
.hv-slide__link:focus-visible { outline: 2px solid var(--hn-accent, #fff); outline-offset: -2px; }
/* 按钮条单独定位在右下角 */
.hv-slide .acts { position: absolute; right: 14px; bottom: 56px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hv-slide .acts .hv-btn { background: rgba(255,255,255,.14); color: #fff; }
.hv-slide .acts .hv-btn:hover { background: rgba(255,255,255,.24); }
.hv-hero__controls { position: absolute; right: 14px; bottom: 14px; left: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hv-hero__arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.hv-hero__arrow:hover { background: rgba(0,0,0,.55); border-color: #fff; }
.hv-hero__dots { display: flex; flex: 1; gap: 5px; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; }
.hv-hero__dots li button { width: 22px; height: 4px; border: 0; background: rgba(255,255,255,.35); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.hv-hero__dots li button.is-active { background: #fff; }
.hv-hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.15); }
.hv-hero__progress span { display: block; height: 100%; width: 100%; background: var(--hn-accent); transform: scaleX(0); transform-origin: left; }
.hv-hero__progress span.is-running { animation: hv-hero-progress 6s linear both; }
@keyframes hv-hero-progress { to { transform: scaleX(1); } }
@media (max-width: 559.98px) {
    .hv-hero__arrow { width: 28px; height: 28px; font-size: .9rem; }
    /* 移动端：隐藏剧情简介，按钮随之上移，紧贴底部控件条之上 */
    .hv-slide .cap p { display: none; }
    .hv-slide .cap { inset: auto 0 56px 0; padding: 14px; }
    .hv-slide .cap h2 { font-size: 1.1rem; margin: 4px 0 2px; }
    .hv-slide .acts { bottom: 44px; right: 12px; gap: 6px; }
    .hv-slide .acts .hv-btn { padding: 6px 12px; font-size: .82rem; }
}
.hv-feature__list { display: grid; gap: 10px; align-content: start; }
.hv-feature__row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--hn-line-soft); border-radius: 8px; box-shadow: var(--hv-shadow); }
.hv-feature__row .no { font-weight: 900; color: var(--hn-accent-strong); font-size: 1rem; }
.hv-feature__row .tt { min-width: 0; }
.hv-feature__row .tt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.hv-feature__row .tt em { color: var(--hn-text-muted); font-size: .72rem; font-style: normal; }
.hv-feature__row .sc { color: var(--hn-warning); font-weight: 700; }

.hv-textrank { list-style: none; margin: 0; padding: 0; }
.hv-textrank li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--hn-line-soft); font-size: .88rem; }
.hv-textrank li i { flex: 0 0 20px; color: var(--hn-accent-strong); font-weight: 800; font-style: normal; }
.hv-textrank li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-textrank li em { margin-left: auto; color: var(--hn-text-muted); font-size: .76rem; font-style: normal; }

/* ============================================================
   C2. 首页(hv-home)紧凑编排
   ============================================================ */
.hv-home { padding: 18px 0 28px; }
.hv-channels { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; padding: 12px; background: #fff; border: 1px solid var(--hn-line-soft); border-radius: 10px; box-shadow: var(--hv-shadow); }
.hv-channels a { font-size: .9rem; color: var(--hn-text-soft); padding: 6px 12px; border-radius: 6px; background: var(--hn-surface-2); font-weight: 600; }
.hv-channels a:hover { background: var(--hn-accent); color: #fff; }
/* 移动端隐藏分类入口（移动端顶部 banner + 抽屉菜单已含导航，避免重复占位） */
@media (max-width: 767.98px) { .hv-channels { display: none; } }
.hv-sections { display: grid; gap: 1px; margin-top: 0px; }
.hv-home-sec { margin-top: 26px; }
.hv-sec-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--hn-text); padding-bottom: 8px; margin-bottom: 14px; }
.hv-sec-head .no { color: var(--hn-accent-strong); font-weight: 900; font-size: .95rem; }
.hv-sec-head h2 { font-size: 1.25rem; margin: 0; }
.hv-sec-head h2 a { color: var(--hn-text); }
.hv-sec-head h2 a:hover { color: var(--hn-accent-strong); }
.hv-sec-head .more { margin-left: auto; color: var(--hn-accent-strong); font-size: .82rem; }
.hv-sec-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
@media (min-width: 900px){ .hv-sec-body { grid-template-columns: minmax(0,1fr) 280px; } }
/* 左侧海报墙与右侧文字榜统一白卡容器，去掉 dashed 视觉错位 */
.hv-posterwall, .hv-textrank { background: #fff; border: 1px solid var(--hn-line-soft); border-radius: 10px; padding: 14px; }
.hv-posterwall { padding: 16px; }
/* 最新更新专用宽松布局：跟随全局响应式列数（2/3/4/6/8），≥1500 也封顶 8 列；
   每档只显示两行（借 nth-child 规则），随分辨率自动裁掉多余卡片 */
@media (min-width: 1500px) {
    .hv-posterwall--wide { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; }
    .hv-posterwall--wide > *:nth-child(n+17) { display: none; }
}
.hv-textrank li { border-bottom: 1px solid var(--hn-line-soft); }
.hv-textrank li:last-child { border-bottom: 0; }
.hv-newslist { list-style: none; margin: 0; padding: 0; }
.hv-newslist li a { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hn-line-soft); }
.hv-newslist li em { color: var(--hn-text-muted); font-size: .74rem; white-space: nowrap; font-style: normal; }
.hv-newslist li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9rem; }

/* 资讯板块：紧凑卡片网格，桌面 3 列 / 平板 2 列 / 手机 1 列 */
.hv-news-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hv-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .hv-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.hv-news-card { display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 12px 14px; background: #fff; border: 1px solid var(--hn-line-soft); border-radius: 8px; box-shadow: var(--hv-shadow); transition: transform .15s ease, border-color .15s ease; }
.hv-news-card:hover { transform: translateY(-1px); border-color: var(--hn-accent); color: inherit; }
.hv-news-card .k { color: var(--hn-text-muted); font-size: .72rem; font-style: normal; }
.hv-news-card strong { font-size: .94rem; font-weight: 700; line-height: 1.4; color: var(--hn-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hv-news-card em { color: var(--hn-text-soft); font-size: .78rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-style: normal; }

/* 首页海报墙：每区最大 18 个，分两行展示；按窗口宽度断点自适应列数 */
.hn-poster-wall,
.hv-posterwall { display: grid; gap: 14px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
@media (min-width: 560px) { .hn-poster-wall, .hv-posterwall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .hn-poster-wall, .hv-posterwall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .hn-poster-wall, .hv-posterwall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hn-poster-wall, .hv-posterwall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .hn-poster-wall, .hv-posterwall { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
/* 第 9 个之后统一隐藏（强制两行 18 个展示：断点 col * 2 = max 18） */
@media (min-width: 1500px) { .hn-poster-wall > *:nth-child(n+19), .hv-posterwall > *:nth-child(n+19) { display: none; } }
@media (min-width: 1200px) and (max-width: 1499.98px) { .hn-poster-wall > *:nth-child(n+17), .hv-posterwall > *:nth-child(n+17) { display: none; } }
@media (min-width: 960px) and (max-width: 1199.98px) { .hn-poster-wall > *:nth-child(n+13), .hv-posterwall > *:nth-child(n+13) { display: none; } }
@media (min-width: 760px) and (max-width: 959.98px) { .hn-poster-wall > *:nth-child(n+9), .hv-posterwall > *:nth-child(n+9) { display: none; } }
@media (min-width: 560px) and (max-width: 759.98px) { .hn-poster-wall > *:nth-child(n+7), .hv-posterwall > *:nth-child(n+7) { display: none; } }
@media (max-width: 559.98px) { .hn-poster-wall > *:nth-child(n+5), .hv-posterwall > *:nth-child(n+5) { display: none; } }

/* ============================================================
   D. 资讯/榜单/用户等公共覆盖（浅色统一保底）
   ============================================================ */
.hn-art-page-head, .hn-search-hero, .hn-latest-hero, .hn-rank-hero { background: var(--hn-bg-deep); border-color: var(--hn-line-soft); }
/* 压紧 hero 高度：hn-core.css 默认 font-size: clamp(2rem, 6vw, 4rem) 在 1280 视口下 6vw=76.8px，clamp 上限 64px 太大；padding clamp(32px, 6vw, 80px) 占位过多。 */
.hn-art-page-head, .hn-search-hero, .hn-latest-hero, .hn-rank-hero { padding: 10px; }
.hn-art-page-head h1, .hn-search-hero h1, .hn-latest-hero h1, .hn-rank-hero h1 { color: var(--hn-text); font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.01em; line-height: 1.2; font-weight: 800; }
.hn-art-side-card, .hn-rank-card, .hn-box, .hn-card { background: #fff; }
/* 登录页 stage/panel 由 hn-core.css 单独配深/浅背景，这里不再覆盖 */
.hn-rank-tabs { border-color: var(--hn-line); background: #fff; }
.hn-rank-tabs__btn.is-active { background: var(--hn-accent); color: #fff; }
.hn-auth-form .hn-form input, .hn-form input, .hn-form select, .hn-form textarea { border: 1px solid var(--hn-line); background: #fff; color: var(--hn-text); }
/* solar 登录页在 hn-core.css 里自定义了更精致的字段样式，这里排除避免冲突 */
.hn-auth-form .hn-auth-field input { background: #fff; border: 1px solid #f0d3c4; border-radius: 12px; padding: 0 44px 0 42px; height: 50px; }

table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border-bottom: 1px solid var(--hn-line-soft); padding: 9px 10px; text-align: left; font-size: .86rem; }
th { background: var(--hn-surface-2); color: var(--hn-text); }

/* 详情页"猜你喜欢"海报墙：auto-fill 自适应列数 + 强制两行（分辨率大→多列，1440≈9 列、1024≈7 列、768≈5 列、480≈3 列；多余的卡片被 grid-auto-rows:0 隐藏） */
/* 详情页“猜你喜欢”海报墙：grid 自然排版，box maxHeight 由 JS 锁 2 行 */
.hv-guesswall { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 10px; }
.hv-guesswall > * { min-width: 0; min-height: 0; }
/* 兜底：超过 18 条也只显示 18（两行） */
.hv-guesswall > *:nth-child(n+19) { display: none; }

/* 移动端悬浮播放按钮（桌面隐藏） */
.hv-mobile-play { display: none; }
@media (max-width: 767.98px) {
    .hv-mobile-play {
        position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; z-index: 70;
        display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px;
        border-radius: 10px; background: var(--hn-accent); color: #fff; font-weight: 800;
        box-shadow: 0 12px 30px rgba(180, 90, 60, .3);
    }
    .hv-mobile-play svg { width: 1.15em; height: 1.15em; fill: currentColor; stroke: none; }
}

/* 移动端细节：更紧凑 */
@media (max-width: 767.98px) {
    body { font-size: 14.5px; }
    .hv-detail h1 { font-size: 1.4rem; }
    .hv-media { grid-template-columns: 84px minmax(0,1fr); gap: 12px; }
    .hv-feature__lead { min-height: 200px; }
}

/* ========================================================================
   hv-play 播放页骨架：深色沉浸、紧凑、对比度优化
   ======================================================================== */
.hv-play { padding: 14px 0 30px; }
.hv-player-card { background: #1a1210; border-radius: var(--hn-radius-lg); overflow: hidden; box-shadow: 0 8px 24px rgba(26,18,16,.22); }
.hv-player-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; color: #f6ece6; background: linear-gradient(180deg, #241a16, #1a1210); }
.hv-player-title .back { color: #e6d5cb; font-size: .82rem; text-decoration: none; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,.06); }
.hv-player-title .back:hover { color: #fff; background: rgba(255,255,255,.12); }
.hv-player-title h1 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
.hv-player-title .cur { color: var(--hn-accent-lite, #ff9c86); font-size: .82rem; font-weight: 600; }
.hv-player-title > span[style*="color:#9fb0c3"] { color: #e6d5cb !important; font-size: .78rem; }
/* 播放区行：播放器 70% + 相似影片 30%（无相似数据时单列铺满） */
.hv-player-main { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; background: #120c0a; }
.hv-player-main--split { grid-template-columns: minmax(0, 75fr) minmax(0, 25fr); }
.hv-player-box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(540px, 60vh); background: #120c0a; overflow: hidden; }
.hv-player-box > * { width: 100%; height: 100%; }
.hv-player-box iframe { display: block; border: 0; }
/* 第三方观看平台面板（hn-third-party）由 hn-core.css 提供，hn-theme.css 仅保证外框尺寸 */
.hv-player-box .hn-third-party { border-radius: 0; }
/* 三方面板是"信息面板"而非 16:9 视频：高度始终由内容决定，避免被比例裁切 */
.hv-player-box--panel { aspect-ratio: auto; height: auto; max-height: none; min-height: 0; }
.hv-player-box--panel > .hn-third-party { height: auto; min-height: 0; }
.hv-player-box--panel > .hn-third-party .hn-third-party__layout { height: auto; }

/* 相似影片栏：与播放器等高，内容超高时内部滚动 */
.hv-similar { display: flex; min-height: 0; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, #241a16, #1a1210); }
.hv-similar__head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hv-similar__head h2 { margin: 0; font-size: .92rem; font-weight: 800; color: #fff; }
.hv-similar__head a { color: #d8a98f; font-size: .76rem; text-decoration: none; transition: color .15s ease; }
.hv-similar__head a:hover { color: #fff; }
.hv-similar__list { display: grid; min-height: 0; flex: 1; gap: 2px; align-content: start; overflow-y: auto; margin: 0; padding: 6px; list-style: none; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.hv-similar__list::-webkit-scrollbar { width: 6px; }
.hv-similar__list::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(255, 255, 255, .18); }
.hv-similar__list a { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px; border-radius: 8px; text-decoration: none; transition: background .15s ease; }
.hv-similar__list a:hover { background: rgba(255, 255, 255, .07); }
.hv-similar__list .ph { display: block; width: 44px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.hv-similar__list .ph img { width: 100%; height: 100%; object-fit: cover; }
.hv-similar__list .tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv-similar__list .tt b { overflow: hidden; color: #f6ece6; font-size: .84rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hv-similar__list a:hover .tt b { color: var(--hn-accent-lite, #ff9c86); }
.hv-similar__list .tt em { overflow: hidden; color: #b39a8c; font-size: .72rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

/* 窄屏：相似影片移到播放器下方通栏 */
@media (max-width: 1023.98px) {
    .hv-player-main--split { grid-template-columns: minmax(0, 1fr); }
    .hv-similar { border-top: 1px solid rgba(255, 255, 255, .08); border-left: 0; }
    .hv-similar__list { overflow-y: visible; }
    .hv-similar__list a { grid-template-columns: 40px minmax(0, 1fr); }
    .hv-similar__list .ph { width: 40px; }
}

/* 移动端：相似影片栏整体隐藏，播放区独占整屏（移动端信息过载，优先保证播放器） */
@media (max-width: 767.98px) {
    .hv-similar { display: none; }
    /* 标题栏空间不足时片名会被压成单个字（CJK 最小宽度=1 字），显示不全无意义 → 直接隐藏；
       片名在下方面板 / 剧情卡片 / 面包屑中均有完整展示 */
    .hv-player-title .tt { display: none; }
}

/* 选集面板：默认折叠，点击展开 */
.hv-episodes { background: #fff; border: 1px solid var(--hn-line-soft); border-radius: var(--hn-radius-lg); margin-top: 16px; box-shadow: var(--hv-shadow); }
.hv-episodes__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hn-line-soft); }
.hv-episodes__head h2 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--hn-text); }
.hv-episodes__head .hint { color: var(--hn-accent-strong); font-size: .82rem; font-weight: 700; }
.hv-episodes__head .ep-count { color: var(--hn-text-muted); font-size: .78rem; margin-left: auto; }
.hv-episodes__toggle { appearance: none; border: 1px solid var(--hn-line); background: #fff; color: var(--hn-text); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.hv-episodes__toggle:hover { border-color: var(--hn-accent); color: var(--hn-accent-strong); }
.hv-episodes__toggle .t-close { display: none; }
.hv-episodes[data-collapsed="1"] .hv-episodes__toggle .t-open { display: inline; }
.hv-episodes[data-collapsed="1"] .hv-episodes__toggle .t-close { display: none; }
.hv-episodes[data-collapsed="0"] .hv-episodes__toggle .t-open { display: none; }
.hv-episodes[data-collapsed="0"] .hv-episodes__toggle .t-close { display: inline; }
.hv-episodes__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}
.hv-episodes__body > .hv-episodes__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: padding .35s cubic-bezier(.4, 0, .2, 1);
}
.hv-episodes[data-collapsed="0"] .hv-episodes__body {
  grid-template-rows: 1fr;
}
.hv-episodes[data-collapsed="0"] .hv-episodes__body > .hv-episodes__inner {
  padding: 14px 18px 18px;
}
.hv-episodes__body .hv-source { padding: 8px 0; }
.hv-episodes__body .hv-source + .hv-source { border-top: 1px dashed var(--hn-line-soft); margin-top: 4px; padding-top: 14px; }
.hv-episodes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.hv-episodes__grid a { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 6px; border: 1px solid var(--hn-line-soft); border-radius: 4px; color: var(--hn-text-soft); font-size: .82rem; text-align: center; background: #fafbfc; transition: all .15s ease; }
.hv-episodes__grid a:hover { color: var(--hn-accent-strong); border-color: var(--hn-accent); background: #fff; }
.hv-episodes__grid a.active { background: var(--hn-accent); color: #fff; border-color: var(--hn-accent); font-weight: 700; }

/* 播放页主内容区：单栏 + 右侧栏 */
.hv-play__body { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 1024px) { .hv-play__body { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.hv-play__meta h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 900; color: var(--hn-text); }
.hv-play__meta h2 a { color: inherit; }
.hv-play__meta p { margin: 0 0 8px; color: var(--hn-text-soft); font-size: .9rem; line-height: 1.7; }
.hv-play__intro h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: var(--hn-text); }
.hv-play__intro .story { color: var(--hn-text-soft); font-size: .88rem; line-height: 1.75; }
.hv-play__intro .more { display: inline-block; margin-top: 8px; color: var(--hn-accent-strong); font-size: .82rem; font-weight: 700; }
.hv-play__same { padding: 16px; }
.hv-play__same .hv-sec-head { margin: 0 0 12px; padding: 0; }
/* 同类型推荐：grid 自然排版，box maxHeight 由 JS 锁 2 行（避免 grid auto 计算偏差导致第 3 行残留） */
.hv-play__same .hv-sametype { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px 10px; }
.hv-play__same .hv-sametype > * { min-width: 0; min-height: 0; }
/* 兜底：即使模板调用超过 16 条也只显示 16（两行）。 */
.hv-play__same .hv-sametype > *:nth-child(n+17) { display: none; }


/* WB-ART-INDENT-20260914 */
/* 资讯正文排版：每个段落首行缩进两个中文字符（2em 即两个汉字宽度） */
.subsite-art-detail__content p {
    text-indent: 2em;
}
/* 纯媒体段落不缩进，避免图片/视频被右推 */
.subsite-art-detail__content p:has(> img:only-child),
.subsite-art-detail__content p:has(> a:only-child),
.subsite-art-detail__content p:has(> iframe:only-child),
.subsite-art-detail__content p:has(> video:only-child) {
    text-indent: 0;
}
