/* ==========================================================================
   作品页（Lifeline）· 单屏舞台
   --------------------------------------------------------------------------
   严格三分栏（各占 1/3）：左「作品信息」/ 中「播放器」/ 右「评论」。
   桌面端整页锁定一屏（页面本身不滚动），三栏各自内部滚动，
   滚动条细线化、默认隐形、悬停才显形。

   黑白模式：body.bh-play--light / body.bh-play--dark，
   由作品设置里的「显示主题」决定（theme=2 为深色）。
   播放器内部（#playScene 里的游戏内容）仍由 play1.css / play2.css 决定，这里不动。
   ========================================================================== */

/* ---------------------------------------------------------------- 基础 */

html.gamePlay {
    height: 100%;
}

body.bh-play {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--bh-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #eef1f6;
    color: #1f2023;
}

body.bh-play *,
body.bh-play *::before,
body.bh-play *::after {
    box-sizing: border-box;
}

/* 浅色 / 深色两套外壳变量 */
body.bh-play--light {
    --p-surface: #ffffff;
    --p-surface-2: #f6f8fb;
    --p-surface-3: #eef1f6;
    --p-line: #eceef2;
    --p-line-2: #e2e6ec;
    --p-txt: #1f2023;
    --p-txt-2: #676c76;
    --p-txt-3: #a3a8b3;
    --p-scene: #fbf9f5;
    --p-shadow: 0 10px 30px rgba(31, 40, 60, .07);
    background:
        radial-gradient(1200px 620px at 12% -10%, #ffe9ec 0%, rgba(255, 233, 236, 0) 62%),
        radial-gradient(1000px 560px at 96% 4%, #e6effc 0%, rgba(230, 239, 252, 0) 58%),
        #eef1f6;
    color: var(--p-txt);
}

body.bh-play--dark {
    --p-surface: #1a1d22;
    --p-surface-2: #22262d;
    --p-surface-3: #14171b;
    --p-line: rgba(255, 255, 255, .075);
    --p-line-2: rgba(255, 255, 255, .12);
    --p-txt: #e9ecf1;
    --p-txt-2: #9ba3b0;
    --p-txt-3: #6b7381;
    --p-scene: #14171b;
    --p-shadow: 0 12px 34px rgba(0, 0, 0, .38);
    background:
        radial-gradient(1100px 600px at 8% -12%, rgba(120, 84, 92, .26) 0%, rgba(20, 23, 27, 0) 60%),
        radial-gradient(1000px 560px at 96% 0%, rgba(58, 80, 116, .28) 0%, rgba(20, 23, 27, 0) 60%),
        #0f1114;
    color: var(--p-txt);
}

/* ---------------------------------------------------------------- 滚动条
   细线 + 默认透明，鼠标进入容器才浮出来，不抢视觉又随时可用。 */

.bh-scroll,
body.bh-play #playScene,
body.bh-play .comment-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .2s ease;
}

.bh-scroll:hover,
body.bh-play #playScene:hover,
body.bh-play .comment-list:hover {
    scrollbar-color: rgba(140, 150, 168, .45) transparent;
}

.bh-scroll::-webkit-scrollbar,
body.bh-play #playScene::-webkit-scrollbar,
body.bh-play .comment-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.bh-scroll::-webkit-scrollbar-track,
body.bh-play #playScene::-webkit-scrollbar-track,
body.bh-play .comment-list::-webkit-scrollbar-track {
    background: transparent;
}

.bh-scroll::-webkit-scrollbar-thumb,
body.bh-play #playScene::-webkit-scrollbar-thumb,
body.bh-play .comment-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.bh-scroll:hover::-webkit-scrollbar-thumb,
body.bh-play #playScene:hover::-webkit-scrollbar-thumb,
body.bh-play .comment-list:hover::-webkit-scrollbar-thumb {
    background: rgba(140, 150, 168, .38);
}

.bh-scroll::-webkit-scrollbar-thumb:hover,
body.bh-play #playScene::-webkit-scrollbar-thumb:hover,
body.bh-play .comment-list::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 132, 152, .62);
}

/* 深色模式下滚动条要更亮一点才看得见 */
body.bh-play--dark .bh-scroll:hover::-webkit-scrollbar-thumb,
body.bh-play--dark #playScene:hover::-webkit-scrollbar-thumb,
body.bh-play--dark .comment-list:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
}

/* ---------------------------------------------------------------- 舞台骨架 */

body.bh-play .bh-stage {
    display: grid;
    /* 中间列宽度由启动图比例算出来（--play-w 由脚本按时高写入），左右两栏均分剩下的一半 */
    grid-template-columns: minmax(0, 1fr) var(--play-w, 456px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: var(--bh-container);
    /* 头部与页脚之间的一屏。
       basis 给 0 而不是 auto：否则播放区内部的 height:100% 链条会把
       「内容高度」算回 stage，整页被撑成两倍高。 */
    flex: 1 1 0;
    min-height: 620px;
    margin: 0 auto;
    padding: 14px;
}

.bh-stage--full {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
}

/* 顶栏与页脚沿用首页样式，这里只保证它们不被压缩 */
body.bh-play .bh-header,
body.bh-play .bh-footer {
    flex: none;
}

/* ---------------------------------------------------------------- 左：作品信息
   六个等分区：① 横图封面 ② 标签/名称/作者 ③ 数据 ④⑤ 简介 ⑥ 打赏 */

body.bh-play .bh-info {
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    min-height: 0;
    min-width: 0;
    padding: 0 16px;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 16px;
    box-shadow: var(--p-shadow);
    overflow: hidden;
}

.bh-info__zone {
    display: flex;
    min-height: 0;
    min-width: 0;
    padding: 8px 0;
}

/* 列方向时子项默认会被压缩，标题会被压成 0 高，这里统一锁住 */
.bh-info__zone--meta > *,
.bh-info__zone--desc > * {
    flex: 0 0 auto;
}

.bh-info__zone + .bh-info__zone {
    border-top: 1px solid var(--p-line);
}

/* ① 横图封面：铺满整区，左右不裁剪 */
.bh-info__zone--cover {
    padding: 8px 0;
    align-items: stretch;
}

.bh-info__banner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3eaf4, #cfd9e7);
}

.bh-info__bannerbg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    filter: blur(14px) saturate(1.1);
    transform: scale(1.15);
}

/* 封面：铺满整条并居中（超出部分裁掉，不留两侧空白） */
.bh-info__banner img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.bh-info__state {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 2;
    height: 18px;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 10.5px;
    line-height: 18px;
    font-weight: 500;
    color: #fff;
    background: rgba(63, 164, 91, .94);
    letter-spacing: .2px;
}

.bh-info__state--blue { background: rgba(74, 131, 214, .94); }
.bh-info__state--green { background: rgba(63, 164, 91, .94); }
.bh-info__state--red { background: rgba(255, 84, 83, .94); }
.bh-info__state--gold { background: rgba(191, 143, 41, .94); }

/* ② 三行：标签行 / 名称 / 作者（行距按区域高度均分） */
.bh-info__zone--meta {
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0;
    overflow: hidden;
}

/* 第一行：标签居左，推荐/经典居右 */
.bh-info__line--top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.bh-info__tags,
.bh-info__flags {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.bh-info__flags {
    justify-content: flex-end;
    flex: none;
}

/* 没有推荐 / 经典时整块不占位 */
.bh-info__flags:empty {
    display: none;
}

.bh-info__kind {
    flex: none;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 18px;
    color: var(--bh-primary);
    background: var(--bh-primary-light);
    white-space: nowrap;
}

.bh-info__cat {
    padding: 0 7px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 18px;
    color: var(--p-txt-2);
    background: var(--p-surface-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bh-info__flag {
    flex: none;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 18px;
    color: #fff;
    white-space: nowrap;
}

.bh-info__flag--reco { background: rgba(255, 84, 83, .92); }
.bh-info__flag--classic { background: rgba(191, 143, 41, .92); }

/* 章节预览：作品页骨架上多出的一个角标，点击回编辑器 */
.bh-info__flag--preview {
    background: rgba(38, 40, 46, .82);
    text-decoration: none;
    cursor: pointer;
}

.bh-info__flag--preview:hover,
.bh-info__flag--preview:focus {
    background: rgba(38, 40, 46, .95);
    color: #fff;
    text-decoration: none;
}

.bh-info__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--p-txt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-info__author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12.5px;
    color: var(--p-txt-2);
}

.bh-info__avatar {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--p-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bh-info__avatar::after {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--p-txt-3);
}

.bh-info__avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bh-info__aname {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ③ 数据：两段、共四行。每格「数字在上、说明在下」，
   点赞 / 收藏的按钮无框贴在该格右侧，纵向撑满「数字 + 说明」两行高 */
.bh-info__zone--nums {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.bh-nums__group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.bh-nums__group--acts {
    grid-template-columns: 1fr 1.08fr 1.08fr;
}

/* 每格：数字在上、说明在下 */
.bh-nums__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    text-align: center;
}

/* 有按钮的格子：数字+说明与按钮横向并排，整体居中 */
.bh-nums__cell--act {
    flex-direction: row;
    gap: 4px;
}

.bh-nums__kv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
}

.bh-nums__value {
    display: block;
    max-width: 100%;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--p-txt);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 日期比数字长，收一档字号 */
.bh-nums__value--date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -.3px;
}

.bh-nums__label {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    line-height: 1.3;
    color: var(--p-txt-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 点赞 / 收藏：无边框无底色，只用图标本身表达状态 */
body.bh-play .bh-act {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 30px;                 /* 约等于「数字 + 说明」两行高，视觉上与整列等高 */
    padding: 0;
    border: 0;
    background: none;
    color: #a9b1be;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

body.bh-play .bh-act svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

body.bh-play .bh-act:hover {
    color: #f0a92a;
    transform: scale(1.12);
}

body.bh-play .bh-act.is-on {
    color: #f7a81b;
}

body.bh-play .bh-act.is-on:hover {
    transform: scale(1.12);
}

/* ④⑤ 简介（占两个等区高度） */
.bh-info__zone--desc {
    grid-row: span 2;
    flex-direction: column;
    min-height: 0;
}

.bh-info__deschead {
    flex: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--p-txt);
}

.bh-info__desc {
    flex: 1;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--p-surface-2);
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--p-txt-2);
    word-break: break-word;
    /* 内容超出时底部淡出，避免出现「半行被切掉」的毛边 */
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 16px), transparent 100%);
}

.bh-info__empty {
    color: var(--p-txt-3);
}

/* ⑥ 打赏：二维码 + 四行文案，整体居中；前两行大字号，与后两行之间按宽度留白 */
.bh-info__zone--qr {
    align-items: center;
    justify-content: center;
}

.bh-info__qrinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 7%, 26px);
    width: 100%;
    min-width: 0;
    height: 100%;
}

/* 容器透明，让二维码直接坐在卡片上（不再套一层白框） */
.bh-info__qrimg {
    flex: none;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-info__qrimg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    /* 亮色主题下把二维码自带的白底「融」进卡片，视觉上就是透明的 */
    mix-blend-mode: multiply;
}

body.bh-play--dark .bh-info__qrimg {
    background: #fff;
    padding: 3px;
}

body.bh-play--dark .bh-info__qrimg img {
    mix-blend-mode: normal;
}

.bh-info__qrtext {
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* 两组文案之间的间隔随栏宽伸缩 */
    gap: clamp(8px, 5.5%, 20px);
    text-align: left;
}

.bh-info__qrlead,
.bh-info__qrsub {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.bh-info__qrlead b {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--p-txt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 提示内容最多 20 字，允许折两行，超了再省略 */
.bh-info__qrsub span {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--p-txt-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------------------- 中：播放器 */

body.bh-play .bh-stage__play {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    /* 宽度由脚本按「播放区高度 × 启动图比例」写入，开场图正好铺满不留边 */
    width: 100%;
    min-width: 0;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 16px;
    box-shadow: var(--p-shadow);
    overflow: hidden;
}

/* 顶栏：左图标 / 中作品名 / 右菜单
   作品名用绝对定位居中，不因左右两侧宽度不同而偏移 */
body.bh-play #nbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 46px;
    padding: 0 8px 0 12px;
    background: var(--p-surface);
    border-bottom: 1px solid var(--p-line);
}

.bh-nbar__home {
    position: relative;
    z-index: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    line-height: 0;
    text-decoration: none;
    transition: var(--bh-transition);
}

.bh-nbar__home:hover {
    background: var(--p-surface-2);
}

.bh-nbar__home img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

body.bh-play #navTitle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 150px);
    font-size: 13px;
    font-weight: 600;
    color: var(--p-txt);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 标题只做展示，别挡住左右两侧的点击区 */
    pointer-events: none;
}

.bh-nbar__ops {
    position: relative;
    z-index: 1;
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.bh-nbar__back {
    padding: 0 9px;
    height: 26px;
    line-height: 26px;
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--p-txt-2);
    text-decoration: none;
    background: var(--p-surface-2);
    transition: var(--bh-transition);
    white-space: nowrap;
}

.bh-nbar__back:hover {
    color: var(--bh-primary);
    background: var(--bh-primary-light);
}

body.bh-play .bh-nbar__drop {
    position: relative;
}

body.bh-play .bh-nbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--p-line-2);
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    transition: var(--bh-transition);
}

body.bh-play .bh-nbar__menu:hover {
    border-color: var(--bh-primary);
    background: var(--bh-primary-light);
}

.bh-nbar__bars,
.bh-nbar__bars::before,
.bh-nbar__bars::after {
    display: block;
    width: 13px;
    height: 1.6px;
    border-radius: 2px;
    background: var(--p-txt-2);
    transition: var(--bh-transition);
}

.bh-nbar__bars {
    position: relative;
}

.bh-nbar__bars::before,
.bh-nbar__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.bh-nbar__bars::before {
    top: -4.5px;
}

.bh-nbar__bars::after {
    top: 4.5px;
}

body.bh-play .bh-nbar__drop .dropdown-menu {
    top: 34px;
    right: 0;
    left: auto;
    min-width: 186px;
    margin: 0;
    padding: 6px;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 28, 44, .18);
    text-align: left;
}

body.bh-play .bh-nbar__drop .dropdown-menu > li > a,
body.bh-play .bh-nbar__drop .dropdown-menu > li > .text-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--p-txt);
    text-decoration: none;
    line-height: 1.5;
}

body.bh-play .bh-nbar__drop .dropdown-menu > li > a:hover {
    background: var(--p-surface-2);
    color: var(--bh-primary);
}

body.bh-play .bh-nbar__drop .dropdown-menu .divider {
    margin: 5px 2px;
    background: var(--p-line);
}

body.bh-play .bh-nbar__drop .dropdown-menu .glyphicon {
    font-size: 12px;
    color: var(--p-txt-3);
}

body.bh-play .bh-nbar__drop .dropdown-menu .btn-xs {
    padding: 1px 6px;
    font-size: 11px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-line-2);
    color: var(--p-txt-2);
    border-radius: 6px;
}

body.bh-play .bh-nbar__drop .dropdown-menu .text-menu .btn-xs:first-of-type {
    margin-left: auto;
}

body.bh-play .bh-nbar__drop .dropdown-menu .btn-xs + .btn-xs {
    margin-left: 4px;
}

/* 播放器主体 */
body.bh-play .playContainer {
    position: relative;
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: auto;
    background: var(--p-scene);
    overflow: hidden;
}

body.bh-play .playContainer #playSceneContainer {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

body.bh-play #playScene {
    position: relative;
    height: 100%;
    display: block;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 18px;
    text-align: left;
}

body.bh-play #playScene.text-center {
    text-align: center;
}

/* 选项按钮区 */
body.bh-play #btnBox {
    flex: none;
    padding: 0;
}

body.bh-play #btnBox:empty {
    display: none;
}

body.bh-play #btnBox .btn-group-justified,
body.bh-play #btnBox .btnGroup {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

body.bh-play #btnBox .btn {
    flex: 1 1 auto;
    min-width: 96px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--p-line-2);
    background: var(--p-surface);
    color: var(--p-txt);
    font-size: 13.5px;
    font-family: inherit;
    white-space: normal;
    transition: var(--bh-transition);
}

body.bh-play #btnBox .btn:hover,
body.bh-play #btnBox .btn:focus {
    border-color: var(--bh-primary);
    background: var(--bh-primary-light);
    color: var(--bh-primary);
}

body.bh-play #btnBox p {
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
}

/* ---------------------------------------------------------------- 开场幕布 */

.bh-curtain {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #dceaf6;
}

.bh-curtain__blur,
.bh-curtain__frame,
.bh-curtain__veil {
    position: absolute;
    display: block;
}

/* 垫底：同图放大虚化，图片没加载完也不会露白 */
.bh-curtain__blur {
    inset: -40px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(30px) saturate(1.1);
    transform: scale(1.06);
}

/* 前景：铺满整个播放区（等比放大裁切，不留黑边） */
.bh-curtain__frame {
    inset: 0;
    z-index: 1;
}

.bh-curtain__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.bh-curtain__veil {
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(8, 20, 34, 0) 62%, rgba(8, 20, 34, .26) 100%),
        radial-gradient(130% 86% at 50% 46%, rgba(255, 255, 255, 0) 58%, rgba(8, 20, 34, .12) 100%);
}

body.bh-play--dark .bh-curtain {
    background: #0d0f12;
}

body.bh-play--dark .bh-curtain__blur {
    filter: blur(30px) saturate(1) brightness(.6);
}

body.bh-play--dark .bh-curtain__frame img {
    filter: brightness(.96);
}

body.bh-play--dark .bh-curtain__veil {
    background:
        radial-gradient(126% 96% at 50% 46%, rgba(0, 0, 0, 0) 42%, rgba(8, 10, 14, .5) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .02) 62%, rgba(0, 0, 0, .32) 100%);
}

/* 载入中 */
body.bh-play .bh-scene__loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

body.bh-play .bh-scene__loading .fa {
    font-size: 15px;
}

/* 开始 / 载入 */
body.bh-play .bh-start {
    position: absolute;
    left: 12px;
    right: 12px;
    /* 启动图 608×1080，「想怎么玩 你说算」下方约 60% 处正好是空地 */
    top: 60%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
}

body.bh-play .bh-start.hidden {
    display: none !important;
}

body.bh-play .bh-start__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    max-width: 240px;
    height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7372 0%, #ef4540 100%);
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(210, 46, 40, .45);
    transition: transform .18s ease, box-shadow .18s ease;
}

body.bh-play .bh-start__main:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(210, 46, 40, .52);
}

body.bh-play .bh-start__ico {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
}

body.bh-play .bh-start__ghost {
    height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--bh-transition);
}

body.bh-play .bh-start__ghost:hover {
    background: rgba(255, 255, 255, .26);
    border-color: #fff;
}

body.bh-play #btnLoadGameBox {
    display: inline-block;
    margin: 0;
}

/* ---------------------------------------------------------------- 右：评论 */

body.bh-play .bh-stage__side {
    display: flex;
    min-height: 0;
    min-width: 0;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 16px;
    box-shadow: var(--p-shadow);
    overflow: hidden;
}

body.bh-play .bh-stage__side .game-comments {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    width: 100%;
    padding: 14px 14px 12px;
    background: transparent;
    border: none;
    overflow: hidden;
}

body.bh-play .bh-cmt__head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--p-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--p-txt);
}

body.bh-play .bh-cmt__count {
    font-size: 12px;
    font-weight: 500;
    color: var(--p-txt-3);
}

/* 列表吃掉头部与输入框之外的全部高度，超出就内部滚动，
   永远不会把底部的提交框顶出去 */
body.bh-play .comment-list {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;          /* playbase 写死了 670px，会撑破评论栏 */
    max-height: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    /* 底部淡出，避免最后一条被输入框硬切一半 */
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 18px), transparent 100%);
}

body.bh-play .comment-list .media {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--p-line);
    border-radius: 0;
}

body.bh-play .comment-list .media:last-child {
    border-bottom: none;
}

/* 头像 + 昵称/日期两行 + 内容：
   grid 两列，「昵称+日期」压在头像高度内，评论内容独占第二行且从容器左边缘起，
   也就是与头像左边缘对齐；昵称再长也只在自己的格子里省略，不会挤压日期或内容。 */
body.bh-play .new-comment-body {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
        "thumb meta"
        "body  body";
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

body.bh-play .comment-thumb {
    grid-area: thumb;
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--p-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.bh-play .comment-thumb::after {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--p-txt-3);
}

body.bh-play .comment-thumb img {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* 昵称 + 日期：两行、左对齐，整体高度控制在头像高度以内 */
body.bh-play .comment-meta {
    grid-area: meta;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

body.bh-play .new-comment-body .user-name {
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--p-txt-2);
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户名只是署名，不做可点击链接 */
body.bh-play .new-comment-body span.user-name {
    cursor: default;
    color: var(--p-txt-3);
    font-weight: 500;
}

body.bh-play .comment-date {
    font-size: 11px;
    line-height: 1.2;
    color: var(--p-txt-3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    opacity: .85;
}

body.bh-play .new-comment-body .media-body {
    grid-area: body;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    top: 0;
}

body.bh-play .new-comment-body .media-body p {
    margin: 0;
}

body.bh-play .comment_content {
    display: block;
    font-size: 12.5px;
    line-height: 1.72;
    color: var(--p-txt);
    word-break: break-word;
    white-space: pre-wrap;
}

body.bh-play .bh-cmt__empty {
    margin: 0;
    padding: 34px 0;
    text-align: center;
    font-size: 12px;
    color: var(--p-txt-3);
}

/* 评论输入 */
body.bh-play .new_add_comment {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;                       /* 盖掉 playbase 的 300px，与评论栏等宽 */
    height: auto;
    margin: auto 0 0;
    padding-top: 12px;
    overflow: visible;
    border-top: 1px solid var(--p-line);
    background: var(--p-surface);
}

body.bh-play .new_add_comment .comment-box {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 7px 12px;
    line-height: 18px;
    border: 1px solid var(--p-line-2);
    border-radius: 999px;
    background: var(--p-surface-2);
    color: var(--p-txt);
    font-size: 12.5px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: var(--bh-transition);
}

body.bh-play .new_add_comment .comment-box::placeholder {
    color: var(--p-txt-3);
}

body.bh-play .new_add_comment .comment-box:focus {
    border-color: #ffc9cc;
    background: var(--p-surface);
}

body.bh-play .new_add_comment .btn {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    margin-left: auto;                 /* 按钮靠右 */
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: var(--bh-primary);
    color: #fff;
    font-size: 12.5px;
    font-family: inherit;
    line-height: 34px;
    text-decoration: none;
    transition: var(--bh-transition);
}

body.bh-play .new_add_comment .btn:hover {
    background: var(--bh-primary-hover);
    color: #fff;
}

/* 窄屏评论按钮 */
.bh-cmt-fab {
    display: none;
}

/* ---------------------------------------------------------------- 存储点提示 */

body.bh-play #fixTip {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 80;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(24, 28, 36, .82);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

body.bh-play #fixTip .text-info {
    color: #fff;
}

/* ---------------------------------------------------------------- 窄屏 / 矮屏
   放弃「锁一屏」：播放器给 72vh，其余自然排列，评论收进抽屉。 */

@media (max-width: 1119px) {
    body.bh-play .bh-stage {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        flex: none;
        max-width: none;
        padding: 10px 10px 76px;
        gap: 10px;
    }

    body.bh-play .bh-stage__play {
        order: -2;
        height: auto;
        min-height: 0;
    }

    /* 播放区按启动图比例（608:1080）定高，最高不超过 74vh */
    body.bh-play #playSceneContainer {
        aspect-ratio: 608 / 1080;
        height: auto;
        max-height: 74vh;
    }

    body.bh-play .bh-info {
        order: -1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        padding: 0 14px;
    }

    body.bh-play .bh-info__zone {
        flex: none;
        padding: 14px 0;
    }

    body.bh-play .bh-info__zone--desc {
        display: flex;
        flex-direction: column;
    }

    body.bh-play .bh-info__desc {
        flex: none;
        max-height: 34vh;
        overflow-y: auto;
    }

    /* 窄屏下等分区变成自然高度，封面/二维码改由自身比例撑开 */
    body.bh-play .bh-info__banner {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* 窄屏等分区是自然高度，行距靠 gap，二维码按固定边长 */
    body.bh-play .bh-info__zone--meta {
        justify-content: flex-start;
        gap: 8px;
    }

    body.bh-play .bh-info__zone--nums {
        gap: 12px;
    }

    body.bh-play .bh-info__qrinner {
        height: auto;
    }

    body.bh-play .bh-info__qrimg {
        width: 78px;
        height: 78px;
    }

    body.bh-play .bh-info__qrtext {
        text-align: center;
    }

    /* 评论：右侧抽屉 */
    body.bh-play .bh-stage__side {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        width: min(86vw, 360px);
        border-radius: 0;
        border: none;
        box-shadow: -18px 0 50px rgba(12, 18, 30, .28);
        transform: translateX(104%);
        transition: transform .26s cubic-bezier(.22, .61, .36, 1);
    }

    body.bh-play .bh-stage__side.is-open {
        transform: none;
    }

    body.bh-play .bh-cmt-fab {
        position: fixed;
        right: 16px;
        bottom: 18px;
        z-index: 91;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        height: 42px;
        padding: 0 16px;
        border: none;
        border-radius: 999px;
        background: var(--p-surface);
        color: var(--p-txt);
        font-size: 13px;
        font-family: inherit;
        box-shadow: 0 10px 26px rgba(20, 28, 44, .22);
        cursor: pointer;
    }

    body.bh-play .bh-cmt-fab b {
        font-weight: 600;
        color: var(--bh-primary);
    }

    body.bh-play .bh-cmt-fab.is-on {
        background: var(--bh-primary);
        color: #fff;
    }

    body.bh-play .bh-cmt-fab.is-on b {
        color: #fff;
    }
}

@media (max-width: 900px) {
    body.bh-play .bh-reco__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.bh-play .bh-reco__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.bh-play .bh-info__cover {
        width: 82px;
    }

    body.bh-play .bh-info__title {
        font-size: 17px;
    }

    body.bh-play .bh-start {
        top: 60%;
        bottom: auto;
    }

    body.bh-play .bh-start__main {
        height: 42px;
        font-size: 14.5px;
    }

    body.bh-play .bh-start__ghost {
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* ---------------------------------------------------------------- 全屏模式 */
body.bh-play--full .bh-stage {
    padding: 0;
    gap: 0;
    max-width: none;
}

body.bh-play--full .bh-stage__play {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---------------------------------------------------------------- 深色模式细节 */
body.bh-play--dark .bh-info__kind {
    background: rgba(255, 84, 83, .16);
    color: #ff8b8a;
}

body.bh-play--dark .bh-nbar__back {
    background: rgba(255, 255, 255, .06);
}

body.bh-play--dark .bh-stat__btn:hover,
body.bh-play--dark .bh-stat__btn.is-on {
    background: rgba(255, 84, 83, .12);
}

body.bh-play--dark .bh-info__cover {
    background: linear-gradient(150deg, #2a2f38, #1c2027);
}

body.bh-play--dark .bh-info__coverbg {
    filter: blur(16px) saturate(1) brightness(.55);
}

body.bh-play--dark .bh-info__desc {
    background: rgba(255, 255, 255, .035);
}

body.bh-play--dark .new_add_comment .comment-box:focus {
    border-color: rgba(255, 107, 106, .5);
}

/* ---------------------------------------------------------------- 底部：随便看看
   随机推荐其他作品，通栏一条，放在舞台与页脚之间。 */

body.bh-play .bh-reco {
    flex: none;
    width: 100%;
    max-width: var(--bh-container);
    margin: 0 auto;
    padding: 0 14px 14px;
}

body.bh-play .bh-reco__inner {
    padding: 11px 16px 13px;
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 16px;
    box-shadow: var(--p-shadow);
}

.bh-reco__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 9px;
}

.bh-reco__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--p-txt);
    letter-spacing: .3px;
}

.bh-reco__sub {
    font-size: 11.5px;
    color: var(--p-txt-3);
}

.bh-reco__row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.bh-reco__card {
    display: block;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.bh-reco__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3eaf4, #cfd9e7);
}

.bh-reco__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .3s ease;
}

/* 占位封面同样铺满居中，不留白边 */
.bh-reco__cover.is-default img {
    object-fit: cover;
    background: transparent;
}

.bh-reco__card:hover .bh-reco__cover img {
    transform: scale(1.05);
}

.bh-reco__name {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: var(--p-txt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bh-reco__card:hover .bh-reco__name {
    color: var(--bh-primary);
}


/* ---------------------------------------------------------------- 深色模式：顶栏 / 页脚
   作品设置成深色主题时，站点框架也要跟着深，否则一块白顶栏压在深色页面上很割裂。 */

body.bh-play--dark .bh-header {
    background: linear-gradient(180deg,
        #14171b 0%,
        #14171b 58%,
        rgba(20, 23, 27, .76) 84%,
        rgba(20, 23, 27, 0) 100%);
}

body.bh-play--dark .bh-header.is-stuck {
    background: #14171b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

body.bh-play--dark .bh-nav__item {
    color: rgba(255, 255, 255, .76);
}

body.bh-play--dark .bh-nav__item:hover {
    color: #ff8b8a;
}

body.bh-play--dark .bh-nav__item.is-active {
    color: #fff;
}

/* 未上线入口在深色舞台页上也别跟着变红，统一按普通文字色 */
body.bh-play--dark .bh-nav__item--soon:hover {
    color: rgba(255, 255, 255, .76);
}

body.bh-play--dark .bh-header__link,
body.bh-play--dark .bh-header__logout {
    color: rgba(255, 255, 255, .7);
}

body.bh-play--dark .bh-header__link:hover {
    color: #ff8b8a;
}

body.bh-play--dark .bh-me__name {
    color: rgba(255, 255, 255, .82);
}

body.bh-play--dark .bh-me__ph {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

body.bh-play--dark .bh-me__menu {
    background: #1f232a;
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

body.bh-play--dark .bh-me__menu a {
    color: rgba(255, 255, 255, .8);
}

body.bh-play--dark .bh-me__menu a:hover {
    color: #ff8b8a;
}

body.bh-play--dark .bh-footer {
    margin-top: 0;
    background: #14171b;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

body.bh-play--dark .bh-footer__links {
    color: rgba(255, 255, 255, .46);
}

body.bh-play--dark .bh-footer__links--nav a {
    color: rgba(255, 255, 255, .72);
}

body.bh-play--dark .bh-footer__links a:hover {
    color: #ff8b8a;
}

body.bh-play--dark .bh-footer__links > a + a::before,
body.bh-play--dark .bh-footer__links > span + a::before,
body.bh-play--dark .bh-footer__links > span + span::before {
    color: rgba(255, 255, 255, .16);
}

body.bh-play--dark .bh-footer__copy {
    color: rgba(255, 255, 255, .32);
}

body.bh-play--dark .bh-qr__box {
    background: #fff;
}

body.bh-play--dark .bh-qr__label {
    color: rgba(255, 255, 255, .5);
}


/* ==========================================================================
   播放页弹窗体系（2026-12-06）
   --------------------------------------------------------------------------
   原先是 Bootstrap 默认外观：直角、灰边、蓝字按钮，和站内圆角 + 品牌红完全两张皮。
   这里统一成：16px 圆角、卡片投影、品牌红主按钮、细描边次按钮、12.5px 正文字号，
   并跟随 --p-* 主题变量（浅色 / 黑白模式自动切换）。
   ========================================================================== */

body.bh-play .modal-backdrop.in {
    background: rgba(12, 14, 18, .56);
    opacity: 1;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

body.bh-play .modal-dialog {
    width: auto;
    max-width: 420px;
    margin: 12vh auto 40px;
    padding: 0 16px;
}

body.bh-play .modal-content {
    background: var(--p-surface);
    border: 1px solid var(--p-line);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(12, 14, 18, .38);
    overflow: hidden;
}

body.bh-play .modal-header {
    position: relative;
    padding: 18px 20px 10px;
    border-bottom: 0;
    min-height: 0;
}

body.bh-play .modal-title {
    margin: 0;
    padding-right: 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--p-txt);
}

body.bh-play .modal-header .close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--p-txt-3);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    transition: var(--bh-transition);
}

body.bh-play .modal-header .close:hover,
body.bh-play .modal-header .close:focus {
    background: var(--p-surface-2);
    color: var(--bh-primary);
    opacity: 1;
}

body.bh-play .modal-body {
    padding: 2px 20px 8px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--p-txt-2);
}

body.bh-play .modal-body p {
    margin: 0 0 8px;
}

body.bh-play .modal-body p:last-child {
    margin-bottom: 0;
}

body.bh-play .modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--p-line);
}

body.bh-play .modal-footer .btn {
    height: 34px;
    padding: 0 16px;
    border: 1px solid var(--p-line-2);
    border-radius: 999px;
    background: var(--p-surface-2);
    color: var(--p-txt-2);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 32px;
    box-shadow: none;
    transition: var(--bh-transition);
}

body.bh-play .modal-footer .btn:hover,
body.bh-play .modal-footer .btn:focus {
    border-color: var(--bh-primary);
    background: var(--bh-primary-light);
    color: var(--bh-primary);
}

body.bh-play .modal-footer .btn-primary {
    border-color: var(--bh-primary);
    background: var(--bh-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 84, 83, .26);
}

body.bh-play .modal-footer .btn-primary:hover,
body.bh-play .modal-footer .btn-primary:focus {
    border-color: var(--bh-primary-hover);
    background: var(--bh-primary-hover);
    color: #fff;
}

/* 弹窗里的下拉「选择存储点」 */
body.bh-play .modal .dropdown-menu {
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--p-line);
    border-radius: 12px;
    background: var(--p-surface);
    box-shadow: 0 16px 40px rgba(12, 14, 18, .26);
}

body.bh-play .modal .dropdown-menu > li > a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--p-txt-2);
    font-size: 12.5px;
    line-height: 1.5;
    transition: var(--bh-transition);
}

body.bh-play .modal .dropdown-menu > li > a:hover,
body.bh-play .modal .dropdown-menu > li > a:focus {
    background: var(--bh-primary-light);
    color: var(--bh-primary);
}

/* 选择进度：一列可点的「卡片行」 */
body.bh-play #modelDlg2 .list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 6px;
    padding: 0;
}

body.bh-play #modelDlg2 .list-group-item {
    display: block;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: var(--p-surface-2);
    color: var(--p-txt-2);
    font-size: 12.5px;
    line-height: 1.6;
    text-decoration: none;
    transition: var(--bh-transition);
}

body.bh-play #modelDlg2 .list-group-item:hover,
body.bh-play #modelDlg2 .list-group-item:focus {
    border-color: var(--bh-primary);
    background: var(--bh-primary-light);
    color: var(--bh-primary);
    text-decoration: none;
}

body.bh-play #modelDlg2 .list-group-item strong {
    color: var(--p-txt);
    font-weight: 600;
}

/* 存档提示：改成带品牌圆点的浅卡片，不再是一块纯黑药丸 */
body.bh-play #fixTip .text-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--p-line);
    border-radius: 999px;
    background: var(--p-surface);
    color: var(--p-txt);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(12, 14, 18, .22);
}

body.bh-play #fixTip .text-info::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bh-primary);
    box-shadow: 0 0 0 3px rgba(255, 84, 83, .16);
}

body.bh-play #fixTip strong {
    font-weight: 500;
}

/* 窄屏：弹窗贴底更像 App 面板，按钮平分一行更好点 */
@media (max-width: 640px) {
    body.bh-play .modal-dialog {
        max-width: none;
        margin: 8vh auto 24px;
        padding: 0 14px;
    }

    body.bh-play .modal-header {
        padding: 16px 16px 8px;
    }

    body.bh-play .modal-body {
        padding: 2px 16px 6px;
    }

    body.bh-play .modal-footer {
        padding: 12px 16px 16px;
        gap: 8px;
    }

    body.bh-play .modal-footer .btn {
        flex: 1 1 auto;
        min-width: 96px;
        padding: 0 12px;
        line-height: 32px;
        text-align: center;
    }

    /* 顶栏标题在 360px 宽下要留出图标与菜单的空间 */
    body.bh-play #navTitle {
        max-width: calc(100% - 120px);
        font-size: 12.5px;
    }
}

/* 弹窗里的次要文字（存储点时间等）：bootstrap 的 .text-muted 在深色下几乎看不见 */
body.bh-play .modal .text-muted {
    color: var(--p-txt-3);
}

/* 评论列表：窄屏头像缩小一档，昵称/日期同步收一点，避免内容区被挤窄 */
@media (max-width: 640px) {
    body.bh-play .new-comment-body {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 7px;
    }

    body.bh-play .comment-thumb,
    body.bh-play .comment-thumb img {
        width: 32px;
        height: 32px;
    }

    body.bh-play .comment-thumb::after {
        font-size: 12px;
    }

    body.bh-play .new-comment-body .user-name {
        font-size: 12px;
    }

    body.bh-play .comment-date {
        font-size: 10.5px;
    }
}

/* ==========================================================================
   窄屏评论抽屉：补齐关闭入口与层级（2026-12）
   --------------------------------------------------------------------------
   抽屉原先 z-index 90、顶栏 100，打开时顶部被顶栏压住，第一条评论和「评论 N」
   标题都被遮一截；浮动按钮又压住底部「登录后评论」。这里：
     · 抽屉提到顶栏之上（120），并自带右上角关闭按钮
     · 抽屉打开时浮动按钮淡出，不再遮挡输入区
   桌面端（>1119px）不受影响：关闭按钮不显示。
   ========================================================================== */

body.bh-play .bh-cmt__close {
    display: none;
}

@media (max-width: 1119px) {
    body.bh-play .bh-stage__side {
        z-index: 120;
    }

    body.bh-play .bh-stage__side .bh-cmt__head {
        padding-right: 44px;
    }

    body.bh-play .bh-cmt__close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--p-surface-2);
        color: var(--p-txt-2);
        font-family: inherit;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        transition: var(--bh-transition);
    }

    body.bh-play .bh-cmt__close:hover,
    body.bh-play .bh-cmt__close:focus {
        background: var(--bh-primary-light);
        color: var(--bh-primary);
        outline: none;
    }

    body.bh-play .bh-cmt-fab {
        transition: opacity .18s ease, transform .18s ease, background .18s ease;
    }

    body.is-cmt-open .bh-cmt-fab {
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
    }
}

/* 抽屉收起时不渲染关闭按钮（避免它在屏外仍进入可聚焦序列） */
@media (max-width: 1119px) {
    body.bh-play .bh-stage__side:not(.is-open) .bh-cmt__close {
        display: none;
    }
}

/* 评论昵称行：昵称 +（作者本人的评论）红框「作者」标识 */
body.bh-play .comment-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body.bh-play .comment-name-row .user-name {
    min-width: 0;
}

body.bh-play .comment-author-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 4px;
    border: 1px solid rgba(255, 84, 83, .55);
    border-radius: 4px;
    background: rgba(255, 84, 83, .12);
    color: var(--bh-primary);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* ==========================================================================
   评论分页 + 评分徽标（2026-12，TapTap 评论同步后置顶行为）
   ========================================================================== */

body.bh-play .bh-cmt__more {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 9px 10px;
    border: 1px dashed var(--p-line-2);
    border-radius: 10px;
    background: transparent;
    color: var(--p-txt-3);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: var(--bh-transition);
}

body.bh-play .bh-cmt__more span {
    color: var(--p-txt-3);
    opacity: .8;
}

body.bh-play .bh-cmt__more:hover,
body.bh-play .bh-cmt__more:focus {
    border-color: var(--bh-primary);
    background: var(--bh-primary-light);
    color: var(--bh-primary);
    outline: none;
}

body.bh-play .bh-cmt__more[disabled] {
    cursor: progress;
    opacity: .7;
}

body.bh-play .bh-cmt__more[hidden] {
    display: none !important;
}


/* 评论头部：标题左侧、仅看作者靠右 */
body.bh-play .bh-cmt__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

body.bh-play .bh-cmt__author {
    flex: none;
    margin-left: auto;
    height: 24px;
    padding: 0 10px;
    border: 1px solid var(--p-line-2);
    border-radius: 999px;
    background: transparent;
    color: var(--p-txt-3);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: var(--bh-transition);
}

body.bh-play .bh-cmt__author:hover,
body.bh-play .bh-cmt__author:focus {
    border-color: var(--bh-primary);
    background: var(--bh-primary-light);
    color: var(--bh-primary);
    outline: none;
}

body.bh-play .bh-cmt__author.is-active {
    border-color: var(--bh-primary);
    background: var(--bh-primary);
    color: #fff;
}

body.bh-play .bh-cmt__empty[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------------- 作品广告位（页边）
   三个模式的作品页都有左右竖幅广告位：轻小说 / 对话小说在 work.css 里用三栏页边实现，
   LifeLine 这里不动一屏舞台（宽度、栅格、内部样式全部保持原样），
   只把两块竖幅固定到舞台两侧的空白里——宽屏才有空间，窄屏直接隐藏。 */
.bh-play-rails {
    display: none;
}

@media (min-width: 1520px) {
    .bh-play-rails {
        display: block;
    }

    .bh-play-rails .bh-ad-rail {
        position: fixed;
        top: calc(var(--bh-header-h) + 18px);
        width: 116px;
        z-index: 5;
    }

    .bh-play-rails .bh-ad-rail--left {
        left: calc(50% - (var(--bh-container) / 2) - 138px);
    }

    .bh-play-rails .bh-ad-rail--right {
        right: calc(50% - (var(--bh-container) / 2) - 138px);
    }
}
