/* =========================================================
   觅知放映厅 · 前台
   墨黑影院 / 暖铜光 / 细线排版
   ========================================================= */

:root {
    --bg: #07080a;
    --panel: #0b0d10;
    --panel-2: #101318;
    --text: #f2f1ee;
    --text-2: #c7c8c4;
    --muted: #8c9098;
    --muted-2: #6a6f77;
    --line: rgba(255, 255, 255, .085);
    --line-2: rgba(255, 255, 255, .14);
    --accent-default: #e8b76a;
    --danger: #d27266;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
    --head-h: 68px;
    --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { background: var(--bg); }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 90% at 82% -10%, rgba(232, 183, 106, .10), transparent 58%),
        radial-gradient(90% 80% at 8% 108%, rgba(38, 64, 76, .18), transparent 60%),
        url("./../img/bg.jpg") center / cover no-repeat;
    opacity: .52;
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(7, 8, 10, .55), rgba(7, 8, 10, .86) 55%, #07080a 100%);
    pointer-events: none;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: rgba(232, 183, 106, .28); color: #fff; }

.eyebrow {
    margin: 0 0 8px;
    font-size: 9.5px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
}

/* ---------------- 顶栏 ---------------- */
.site-head {
    position: relative;
    z-index: 2;
    height: var(--head-h);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 clamp(16px, 3.4vw, 46px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 10, .42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text b {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand__text em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--muted-2);
    letter-spacing: .04em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.head-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 8px;
    font-size: 11.5px;
    letter-spacing: .06em;
    color: var(--muted);
}
.head-nav a { position: relative; padding: 4px 0; }
.head-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .2s;
}
.head-nav a:hover { color: var(--text); }
.head-nav a:hover::after { width: 100%; }
.head-sep { width: 1px; height: 12px; background: var(--line-2); }
.head-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted-2); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.clock {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ---------------- 页面 ---------------- */
.page {
    position: relative;
    z-index: 3;
    max-width: 1560px;
    margin: 0 auto;
    padding: 26px clamp(16px, 3.4vw, 46px) 0;
}

/* ---------------- 放映区 ---------------- */
.stage-wrap { margin: 0 auto; }
.stage-shell { position: relative; width: 100%; }

.stage {
    position: relative;
    height: min(56.25vw, calc(100vh - 238px), 843px);
    aspect-ratio: 16 / 9;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
    isolation: isolate;
}
.player-mount { position: absolute; inset: 0; }
/* 海报兜底层：首帧出来前盖住 video，避免部分浏览器 video 未加载时显白屏 */
.stage-poster {
    position: absolute;
    inset: 0;
    z-index: 41;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    opacity: 1;
    transition: opacity .26s ease;
    pointer-events: none;
}
.stage-poster.is-out { opacity: 0; }
/* video 元素黑底，杜绝未加载时的白/灰底 */
.art-video-player .art-video,
.stage video { background: #000; }

.stage-shell:fullscreen,
.stage-shell:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
}
.stage-shell:fullscreen .stage,
.stage-shell:-webkit-full-screen .stage {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    box-shadow: none;
}
/* 剧场全屏：不用系统全屏，控件与面板始终可见 */
.stage-shell.is-theater {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9990;
    width: var(--tw, 100vw);
    height: var(--th, 100vh);
    background: #000;
}
.stage-shell.is-theater .stage {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
/* 竖屏设备：整体旋转成横向，默认右转；is-flip 为左转 */
.stage-shell.is-theater.is-rotated {
    width: var(--th, 100vh);
    height: var(--tw, 100vw);
    transform-origin: top left;
    transform: translateX(var(--tw, 100vw)) rotate(90deg);
}
.stage-shell.is-theater.is-rotated.is-flip {
    transform: translateY(var(--th, 100vh)) rotate(-90deg);
}
.stage-shell.is-theater .stage-chrome { padding: 16px 22px 0; }
.stage-shell.is-theater .stage-chrome__left { gap: 8px; }

/* 抽屉在全屏内铺满，方向随画面 */
.stage-shell.is-theater .drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 100%);
    height: 100%;
    max-height: none;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
}
.stage-shell.is-theater .scrim { position: absolute; inset: 0; }

html.mz-noscroll, html.mz-noscroll body { overflow: hidden; height: 100%; }

/* 顶部信息层 */
.stage-chrome {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 45;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .18) 55%, transparent);
    pointer-events: none;
    transition: opacity .25s ease;
}
.stage-chrome__left { display: flex; align-items: center; gap: 10px; min-width: 0; padding-top: 2px; }
.stage-chrome__right { display: flex; align-items: center; gap: 10px; flex: none; }
.stage-title {
    font-size: 12.5px;
    letter-spacing: .03em;
    color: rgba(242, 241, 238, .78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 18px;
    padding: 0 7px;
    border-radius: 4px;
    background: rgba(210, 58, 58, .92);
    color: #fff;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
}
.live-dot::before {
    content: "";
    width: 5px; height: 5px; border-radius: 50%;
    background: #fff;
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.stage-chip {
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: .06em;
    color: rgba(242, 241, 238, .62);
    background: rgba(0, 0, 0, .25);
}
.stage-clock {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(242, 241, 238, .6);
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}
.stage.is-idle .stage-chrome { opacity: 0; }
.stage.is-idle { cursor: none; }

/* 加载 */
.stage-loading {
    position: absolute;
    inset: 0;
    z-index: 72;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s;
}
.stage-loading.is-hidden { opacity: 0; visibility: hidden; }
/* 加载层不铺背景图：仅留一层极淡的暗色遮罩，保证动画与文字清晰 */
.stage-loading__bg { display: none; }
.stage-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #07080a;
}
.stage-loading__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.stage-loading__gif { width: 58px; height: 58px; opacity: .95; }
.stage-loading__text {
    margin: 0;
    font-size: 11.5px;
    letter-spacing: .22em;
    color: rgba(242, 241, 238, .62);
}
.stage-loading__bar {
    width: 148px;
    height: 1px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
    position: relative;
}
.stage-loading__bar i {
    position: absolute;
    top: 0; left: -40%;
    width: 40%;
    height: 100%;
    background: var(--accent);
    animation: barSlide 1.25s cubic-bezier(.55, .1, .35, .9) infinite;
}
@keyframes barSlide { 0% { left: -40%; } 100% { left: 100%; } }

/* 中央播放按钮 */
.stage-play {
    position: absolute;
    z-index: 46;
    left: 50%;
    top: 50%;
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(8, 10, 13, .45);
    color: #f4f2ec;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: scale(.94);
    transition: opacity .2s, visibility .2s, transform .2s, background .2s;
}
.stage-play svg { width: 26px; height: 26px; margin-left: 3px; }
.stage-play.is-on { opacity: 1; visibility: visible; transform: none; }
.stage-play:hover { background: rgba(232, 183, 106, .24); border-color: rgba(232, 183, 106, .55); }
.stage-play:active { transform: scale(.97); }

/* 错误 */
.stage-error {
    position: absolute;
    inset: 0;
    z-index: 74;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    background: radial-gradient(circle at 50% 40%, #12151b, #08090c 70%);
    text-align: center;
}
.stage-error__icon { width: 108px; opacity: .85; margin-bottom: 4px; }
.stage-error h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.stage-error p { margin: 0; max-width: 430px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.stage-error__actions { display: flex; gap: 10px; margin-top: 12px; }

/* 下一集 */
.next-overlay {
    position: absolute;
    inset: 0;
    z-index: 66;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 5, 7, .55);
    backdrop-filter: blur(3px);
}
.next-overlay__card {
    width: min(340px, 86%);
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(12, 14, 18, .88);
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.next-overlay__card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 500; }
.next-ring { position: relative; width: 60px; height: 60px; margin: 0 auto 14px; }
.next-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.next-ring .ring-bg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.next-ring .ring-fg {
    fill: none; stroke: var(--accent); stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 119.4;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.next-ring span {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-family: var(--mono); font-size: 18px; color: var(--text);
}
.next-overlay__actions { display: flex; gap: 8px; justify-content: center; }

.stage-notice {
    position: absolute;
    z-index: 62;
    left: 18px;
    bottom: 84px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(560px, 82%);
    padding: 8px 13px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(10, 12, 15, .78);
    backdrop-filter: blur(8px);
    font-size: 11.5px;
    color: rgba(242, 241, 238, .78);
    animation: noticeIn .3s ease;
}
.stage-notice svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
@keyframes noticeIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------------- 播放器皮肤 ---------------- */
.art-video-player {
    font-family: var(--font) !important;
    background: #000;
}
.art-video-player .art-bottom {
    padding: 0 14px 8px;
    background: linear-gradient(180deg, transparent, rgba(4, 5, 7, .55) 40%, rgba(4, 5, 7, .88));
}
.art-video-player .art-bottom .art-controls {
    height: 42px;
}
.art-video-player .art-bottom .art-controls .art-control {
    min-width: 34px;
    min-height: 34px;
    opacity: .78;
    transition: opacity .15s, color .15s;
}
.art-video-player .art-bottom .art-controls .art-control:hover { opacity: 1; }
.art-video-player .art-bottom .art-controls .art-control .art-icon { width: 34px; height: 34px; }
.art-video-player .art-bottom .art-controls .art-control .art-icon svg { width: 18px; height: 18px; }
.art-video-player .art-bottom .art-controls .art-control-time {
    display: flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(242, 241, 238, .7);
    padding: 0 8px;
    font-variant-numeric: tabular-nums;
}
.art-video-player .art-bottom .art-controls .art-control-time .art-control-time-current { color: #fff; }

/* 进度条 */
.art-video-player .art-bottom .art-progress { padding: 0 4px; }
.art-video-player .art-bottom .art-progress .art-control-progress {
    height: 16px;
    padding-top: 6px;
}
.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner {
    height: 3px;
    background: rgba(255, 255, 255, .18);
    border-radius: 3px;
    transition: height .15s;
}
.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded {
    background: rgba(255, 255, 255, .24);
}
.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played {
    background: var(--accent);
}
.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator {
    width: 10px;
    height: 10px;
    right: -5px;
    top: -3.5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(232, 183, 106, .18);
    display: none;
}
.art-video-player .art-bottom .art-progress:hover .art-control-progress .art-control-progress-inner { height: 4px; }
.art-video-player .art-bottom .art-progress:hover .art-progress-indicator { display: block; }

/* 大播放键 */
.art-video-player .art-mask .art-state {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(10, 12, 15, .55);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    opacity: 1;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    transition: background .2s, transform .2s;
}
.art-video-player .art-mask .art-state:hover { background: rgba(232, 183, 106, .22); transform: translate(50%, 50%) scale(1.04); }
.art-video-player .art-mask .art-state svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.art-video-player.art-mobile .art-mask .art-state { position: absolute; }

/* 音量条 */
.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:before,
.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:after { background: rgba(255, 255, 255, .25); }
.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle { background: var(--accent); }
.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:before { background: var(--accent); }

/* 提示 */
.art-video-player .art-notice { font-family: var(--font); border-radius: 6px; }
.art-video-player .art-loading { display: none !important; }

/* 自定义控件 */
.art-control { position: relative; }
.art-control .mz-ico { width: 18px; height: 18px; display: flex; }
.art-control .mz-ico svg { width: 18px; height: 18px; }
.art-control .mz-label {
    font-size: 11px;
    padding-left: 5px;
    letter-spacing: .04em;
    color: rgba(242, 241, 238, .72);
}
.art-control.is-active { color: var(--accent); }
.art-control.is-active .mz-label { color: var(--accent); }
.art-control .mz-badge {
    position: absolute;
    top: 1px; right: 2px;
    height: 13px;
    min-width: 13px;
    padding: 0 3px;
    border-radius: 7px;
    background: var(--accent);
    color: #1a1409;
    font-size: 9px;
    line-height: 13px;
    text-align: center;
    font-family: var(--mono);
}

/* ---------------- 标题与操作 ---------------- */
.under {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px 4px;
}
.under__main { min-width: 0; }
.video-title {
    margin: 0 0 8px;
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(232, 183, 106, .12);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.meta-chip--ghost { background: rgba(255, 255, 255, .05); color: var(--muted); }
.meta-note { font-size: 11px; color: var(--muted-2); margin-left: 4px; letter-spacing: .02em; }
.under__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .04);
    color: var(--text-2);
    font-size: 12.5px;
    letter-spacing: .02em;
    transition: background .16s, border-color .16s, color .16s, transform .12s;
    white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn--solid {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1409;
    font-weight: 600;
}
.btn--solid:hover { background: #f0c47f; border-color: #f0c47f; color: #1a1409; }
.btn--sm { height: 34px; padding: 0 13px; font-size: 12px; border-radius: 7px; }

.icon-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    transition: color .16s, background .16s;
}
.icon-action svg { width: 16px; height: 16px; }
.icon-action:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.icon-action.is-on { color: var(--accent); }

/* ---------------- 下方信息 ---------------- */
.below {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin-top: 26px;
}
.below__card {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .012));
}
.below__card h2 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.below__card p { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--muted); max-width: 620px; }
.below__links { display: flex; gap: 18px; margin-top: 16px; font-size: 11.5px; color: var(--muted-2); }
.below__links a { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 1px; }
.below__links a:hover { color: var(--accent); border-color: var(--accent); }
.notes { margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.notes li { position: relative; padding: 6px 0 6px 16px; }
.notes li::before {
    content: "";
    position: absolute;
    left: 0; top: 14px;
    width: 5px; height: 1px;
    background: var(--accent);
}

/* ---------------- footer ---------------- */
.site-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding: 20px 4px 26px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted-2);
    letter-spacing: .02em;
}
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--accent); }
.foot-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.foot-spacer { flex: 1; }

/* ---------------- 空状态 ---------------- */
.empty-hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    padding: clamp(24px, 6vh, 64px) 0 clamp(20px, 4vh, 40px);
}
.empty-hero__visual { position: relative; }
.empty-hero__frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 80px -40px #000;
    background: #0b0d10;
}
.empty-hero__frame > img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.empty-hero__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px);
    mix-blend-mode: overlay;
}
.empty-hero__mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.empty-hero__mark img { width: 64px; height: 64px; object-fit: contain; opacity: .9; }
.empty-hero__no {
    position: absolute;
    left: 12px; bottom: -24px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    color: var(--muted-2);
}
.empty-hero__copy { max-width: 560px; }
.empty-hero__copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.22;
    font-weight: 500;
    letter-spacing: -.025em;
}
.empty-hero__copy .lead { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 430px; }
.empty-hero__copy code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    background: rgba(232, 183, 106, .1);
    padding: 1px 6px;
    border-radius: 4px;
}
.empty-code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    max-width: 640px;
    margin-bottom: 22px;
}
.empty-code__label {
    font-size: 9.5px;
    letter-spacing: .16em;
    color: var(--muted-2);
    text-transform: uppercase;
    flex: none;
}
.empty-code code {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-2);
    background: none;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.empty-code__copy {
    border: 0;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    height: 26px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 10.5px;
    flex: none;
}
.empty-code__copy:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 抽屉 ---------------- */
.scrim {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(3, 4, 6, .34);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0; right: 0;
    z-index: 90;
    width: 388px;
    max-width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: rgba(11, 13, 17, .78);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    backdrop-filter: blur(28px) saturate(140%);
    border-left: 1px solid rgba(255, 255, 255, .1);
    box-shadow: -30px 0 70px rgba(0, 0, 0, .5);
    transform: translateX(102%);
    transition: transform .32s cubic-bezier(.32, .72, .24, 1);
}
.drawer.is-open { transform: none; }
.drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.drawer__head h3 span { color: var(--muted-2); font-size: 12px; font-family: var(--mono); margin-left: 4px; }
.drawer__head-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dm-tabs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .03); flex: none; }
.dm-tab {
    height: 22px;
    padding: 0 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    transition: color .15s, background .15s;
}
.dm-tab:hover { color: var(--text); }
.dm-tab.is-on { background: var(--accent); color: #1a1409; font-weight: 600; }
.drawer__close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
}
.drawer__close:hover { color: var(--text); border-color: var(--line-2); }
.drawer__close svg { width: 15px; height: 15px; }
.drawer__foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); }

.dm-list { flex: 1; overflow-y: auto; padding: 10px 10px 10px 18px; }
.dm-list::-webkit-scrollbar { width: 4px; }
.dm-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }
.dm-list__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 60px 10px;
    color: var(--muted-2);
    text-align: center;
}
.dm-list__empty img { width: 92px; opacity: .6; margin-bottom: 8px; }
.dm-list__empty p { margin: 0; font-size: 12.5px; color: var(--muted); }
.dm-list__empty span { font-size: 11px; }
.dm-item {
    display: flex;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s;
}
.dm-item:hover { background: rgba(255, 255, 255, .045); }
.dm-item__t {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted-2);
    padding-top: 3px;
    flex: none;
    width: 40px;
    font-variant-numeric: tabular-nums;
}
.dm-item__text { font-size: 12.5px; line-height: 1.6; color: var(--text-2); word-break: break-word; }
.dm-item__text b { color: var(--accent); font-weight: 500; }
.dm-item__mine {
    flex: none;
    font-size: 10px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--accent);
    border: 1px solid rgba(232, 183, 106, .35);
    background: rgba(232, 183, 106, .1);
}
.dm-item.is-mine .dm-item__text { color: var(--text); }

.dm-quick { display: flex; gap: 8px; }
.dm-quick input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .04);
    outline: none;
    font-size: 12.5px;
    color: var(--text);
}
.dm-quick input::placeholder { color: var(--muted-2); }
.dm-quick input:focus { border-color: rgba(232, 183, 106, .5); }

/* 设置 */
.set-body { flex: 1; overflow-y: auto; padding: 8px 22px 26px; }
.set-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-group:last-child { border-bottom: 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.set-row--stack { display: block; }
.set-row__label b { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.set-row__label small { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.set-row__head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: var(--text-2); }
.set-row__head em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.set-row--stack .range { width: 100%; }
.set-group--quiet { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.set-tip { margin: 0; font-size: 10.5px; line-height: 1.9; color: var(--muted-2); }

.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
    width: 38px; height: 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .13);
    position: relative;
    transition: background .18s;
}
.switch__track::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #d9d9d5;
    transition: transform .18s, background .18s;
}
.switch input:checked + .switch__track { background: rgba(232, 183, 106, .85); }
.switch input:checked + .switch__track::after { transform: translateX(16px); background: #1a1409; }

.range {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .14);
    outline: none;
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #0b0d10;
    box-shadow: 0 0 0 1px var(--accent);
    cursor: pointer;
}
.range::-moz-range-thumb {
    width: 14px; height: 14px;
    border: 3px solid #0b0d10;
    border-radius: 50%;
    background: var(--accent);
}

.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.segmented button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10.5px;
    padding: 5px 9px;
    border-radius: 6px;
}
.segmented button.is-on { background: rgba(255, 255, 255, .1); color: var(--text); }
.segmented button:hover { color: var(--text); }

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 120;
    transform: translate(-50%, 12px);
    max-width: 82vw;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(16, 19, 24, .94);
    color: var(--text);
    font-size: 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 弹幕图层 */
.mz-dm-layer {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 34;
    contain: strict;
}
.mz-dm-item {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    will-change: transform;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .45);
    transform: translate3d(0, 0, 0);
    letter-spacing: .01em;
}
.mz-dm-item.is-self {
    outline: 1px solid rgba(232, 183, 106, .7);
    outline-offset: 2px;
    border-radius: 3px;
}
/* 顶部 / 底部弹幕：居中固定，4 秒后淡出 */
.mz-dm-item--top, .mz-dm-item--bottom {
    left: 50%;
    transform: translateX(-50%);
    transition: opacity .3s;
}
.mz-dm-item--top.is-out, .mz-dm-item--bottom.is-out { opacity: 0 !important; }

/* 跑马灯 */
.mz-marquee {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 36;
    pointer-events: none;
    overflow: hidden;
    height: 1.9em;
    display: flex;
    align-items: center;
}
.mz-marquee__inner {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    font-weight: 600;
    letter-spacing: .02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
.mz-marquee__item { pointer-events: auto; }
.mz-marquee__item a { pointer-events: auto; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.mz-marquee__sep { opacity: .5; margin: 0 .9em; }

/* ---------------- 弹幕输入 ---------------- */
.composer {
    position: absolute;
    z-index: 47;
    left: 50%;
    bottom: 78px;
    transform: translate(-50%, 10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(560px, 88%);
    padding: 8px 8px 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 12, 15, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
}
.composer.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.composer__row { display: flex; align-items: center; gap: 10px; }
.composer__colors { display: flex; gap: 6px; flex: none; }
.composer__dot {
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--c);
    border: 0;
    padding: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
    opacity: .7;
    transition: opacity .15s, transform .15s;
}
.composer__dot:hover { opacity: 1; }
.composer__dot.is-on { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.composer__modes { display: flex; gap: 4px; flex: none; margin-left: auto; }
.composer__mode {
    height: 20px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    transition: color .15s, border-color .15s, background .15s;
}
.composer__mode:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.composer__mode.is-on {
    color: #1a1409;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}
.composer input {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--text);
    font-size: 12.5px;
}
.composer input::placeholder { color: var(--muted-2); }
.composer__send {
    flex: none;
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #1a1409;
    font-size: 12px;
    font-weight: 600;
}
.composer__send:hover { background: #f0c47f; }

/* 剧场/横屏：输入条去掉背景板，只留输入框与发送钮，横竖屏观感一致 */
.stage-shell.is-theater .composer {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 8px;
}
.stage-shell.is-theater .composer input {
    height: 38px;
    padding: 0 14px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(10, 12, 15, .55);
}
.stage-shell.is-theater .composer__send {
    height: 38px;
    border-radius: 19px;
    padding: 0 20px;
}

/* ---------------- 内嵌模式（苹果 CMS iframe） ---------------- */
.is-embedded .site-head,
.is-embedded .below,
.is-embedded .site-foot,
.is-embedded .under { display: none; }
.is-embedded .page { padding: 0; max-width: none; }
.is-embedded .stage {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}
.is-embedded .stage-wrap { height: 100vh; }
.is-embedded .stage-shell { height: 100vh; }
.is-embedded body, body.is-embedded { overflow: hidden; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
    .below { grid-template-columns: 1fr; }
    .empty-hero { grid-template-columns: 320px 1fr; }
    .under { flex-wrap: wrap; }
    .under__actions { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
}

@media (max-width: 760px) {
    :root { --head-h: 58px; }
    body::before { opacity: .4; }
    .site-head { gap: 12px; padding: 0 16px; }
    .brand__text em { display: none; }
    .head-nav { display: none; }
    .clock { font-size: 11px; }
    .page { padding: 14px 0 0; }
    .stage {
        width: 100%;
        height: 56.25vw;
        aspect-ratio: auto;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        max-width: none;
    }
    .stage-chrome { padding: 10px 12px 30px; }
    .stage-title { max-width: 56vw; font-size: 11.5px; }
    .stage-clock { display: none; }
    .stage-chip { font-size: 9px; }
    .stage-loading__gif { width: 46px; height: 46px; }
    .stage-loading__text { font-size: 10.5px; letter-spacing: .18em; }
    .stage-error h2 { font-size: 17px; }
    .stage-error p { font-size: 11.5px; }
    .stage-error__icon { width: 84px; }
    .stage-notice { left: 10px; bottom: 62px; font-size: 10.5px; max-width: calc(100% - 20px); }
    .mz-dm-layer { top: 24px; }
    .next-overlay__card { padding: 18px; }

    .art-control-volume,
    .art-control-pip { display: none !important; }
    .art-control .mz-label { display: none; }
    .art-bottom .art-controls .art-control { min-width: 32px; min-height: 32px; }
    .art-control-time { font-size: 10px !important; padding: 0 4px !important; }
    .under { padding: 14px 16px 4px; gap: 10px; }
    .video-title { font-size: 17px; white-space: normal; line-height: 1.4; }
    .meta-note { display: none; }
    .under__actions { gap: 4px; }
    .icon-action { padding: 0 9px; height: 34px; font-size: 11px; }
    .icon-action span { display: none; }
    .icon-action svg { width: 17px; height: 17px; }
    .btn { height: 34px; padding: 0 13px; font-size: 12px; }

    .below { padding: 0 16px; margin-top: 18px; gap: 10px; }
    .below__card { padding: 18px; }
    .site-foot { margin: 22px 16px 0; padding: 16px 0 22px; font-size: 10px; }
    .foot-spacer { display: none; }

    .drawer {
        top: auto;
        bottom: 0;
        width: 100%;
        height: min(78dvh, 680px);
        border-left: 0;
        border-top: 1px solid var(--line);
        border-radius: 16px 16px 0 0;
        transform: translateY(102%);
    }
    .drawer.is-open { transform: none; }
    .drawer__head { padding: 18px 18px 14px; }
    .drawer__head-main { gap: 8px; }
    .dm-tab { padding: 0 9px; }
    .set-body { padding: 6px 18px 24px; }
    .dm-list { padding: 8px 8px 8px 12px; }

    .empty-hero { grid-template-columns: 1fr; gap: 34px; padding: 18px 16px 40px; }
    .empty-hero__visual { max-width: 240px; }
    .empty-hero__copy h1 { font-size: 30px; }
    .empty-hero__copy .lead { font-size: 12.5px; }
    .empty-code { max-width: 100%; }
    .empty-actions { width: 100%; }

    .stage-shell.is-rotated .stage-chrome { padding: 14px 20px 36px; }

    .composer { left: 10px; right: 10px; bottom: 62px; width: auto; transform: translateY(10px); padding: 6px 6px 6px 10px; }
    .composer.is-open { transform: none; }
    .composer__colors { display: none; }
}

/* 横屏/矮窗口：以画面为优先 */
@media (max-height: 560px) and (orientation: landscape) {
    .site-head, .below, .site-foot { display: none; }
    .page { padding: 0; max-width: none; }
    .stage-wrap { height: 100vh; }
    .stage {
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }
    .under {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 50;
        padding: 10px 16px;
        background: linear-gradient(transparent, rgba(4, 5, 7, .8));
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
    }
    .stage:hover ~ .under, .stage:focus-within ~ .under { opacity: 1; pointer-events: auto; }
    .video-title { font-size: 14px; margin: 0; }
    .video-meta { display: none; }
    .under__actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* hidden 属性优先 */
.stage-error[hidden],
.next-overlay[hidden],
.stage-notice[hidden] { display: none !important; }

/* 隐藏播放器自带的左上信息层（清晰度/分辨率浮层） */
.art-video-player .art-info { display: none !important; }

/* 视频默认完整显示，设置里可切换为铺满 */
.art-video-player .art-video { object-fit: contain; }


/* =========================================================
   V2 修补：B 站式控件 / 遮罩 / LOGO / 陪聊 / 弹幕操作
   ========================================================= */

* { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(232, 183, 106, .55); outline-offset: 2px; }
.btn:active, .icon-action:active, .stage-play:active { transform: none; }

/* 只保留自定义中央播放键，隐藏 ArtPlayer 自带播放态按钮 */
.art-video-player .art-mask { display: none !important; }

/* 进度条：细线视觉 + 大拖动热区 */
.art-video-player .art-bottom {
    height: 78px !important;
    padding: 12px 14px 4px !important;
    justify-content: flex-end;
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.45) 42%, rgba(0,0,0,.78));
}
.art-video-player .art-bottom .art-progress {
    flex: 0 0 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin: 0;
    touch-action: none;
}
.art-video-player .art-bottom .art-control-progress {
    height: 18px !important;
    padding: 0 !important;
    align-items: center;
}
.art-video-player .art-bottom .art-control-progress-inner {
    height: 6px !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, .3);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
    overflow: visible;
    transition: height .12s ease;
}
.art-video-player .art-progress-loaded {
    background: rgba(255, 255, 255, .42) !important;
    border-radius: 6px;
}
.art-video-player .art-progress-played {
    background: var(--accent) !important;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(232, 183, 106, .3);
}
.art-video-player .art-progress-indicator {
    width: 14px !important;
    height: 14px !important;
    top: 50% !important;
    margin-top: -7px;
    background: var(--accent) !important;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .35);
    visibility: visible;
    opacity: 1;
    transition: transform .12s ease;
}
.art-video-player .art-control-progress:active .art-progress-indicator,
.art-video-player .art-progress:hover .art-progress-indicator { transform: scale(1.18); }
.art-video-player .art-bottom .art-progress:hover .art-control-progress-inner { height: 8px !important; }
.art-video-player .art-progress-highlight { display: none !important; }

/* 播放器左上角 LOGO（竖屏 / 页面模式） */
.stage-logo {
    width: auto;
    max-width: 132px;
    object-fit: contain;
    opacity: .92;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55));
    flex: none;
}
/* 横屏剧场：LOGO 置顶右上角；--logo-w 由 JS 实测写入，避免与右侧时钟/线路重叠 */
.stage-shell.is-theater .stage-logo {
    position: absolute;
    top: 16px;
    right: 22px;
    z-index: 2;
}
.stage-shell.is-theater .stage-chrome__right {
    padding-right: calc(var(--logo-w, 44px) + 16px);
    transition: padding-right .2s;
}

/* 陪聊 */
.icon-action--chat { color: var(--accent); }
.icon-action--chat:hover { color: #f3d2a0; }
.drawer--chat { width: 380px; }
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 4px; }
.chat-msg { display: flex; flex-direction: column; gap: 4px; max-width: 90%; align-self: flex-start; }
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg__name { font-size: 9.5px; letter-spacing: .08em; color: var(--muted-2); }
.chat-msg__bubble {
    padding: 9px 12px;
    border-radius: 12px 12px 12px 4px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-msg--user .chat-msg__bubble {
    border-radius: 12px 12px 4px 12px;
    background: rgba(232, 183, 106, .16);
    border-color: rgba(232, 183, 106, .3);
    color: #f6ead6;
}
.chat-msg--typing .chat-msg__bubble { color: var(--muted); letter-spacing: .2em; }
.chat-composer { display: flex; gap: 8px; }
.chat-composer input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .04);
    outline: none;
    color: var(--text);
    font-size: 12.5px;
}
.chat-composer input::placeholder { color: var(--muted-2); }
.chat-composer input:focus { border-color: rgba(232, 183, 106, .5); }

/* 弹幕列表：复制 / 点赞 / 举报 */
.dm-item { align-items: flex-start; }
.dm-item__body { display: flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0; }
.dm-actions {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: none;
    opacity: .92;
    transition: opacity .15s;
}
.dm-item:hover .dm-actions { opacity: 1; }
.dm-actions button {
    height: 24px;
    padding: 0 6px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #b3b6bd;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.dm-actions button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.dm-actions button.is-liked { color: var(--accent); }
.dm-actions svg { width: 13px; height: 13px; }
.dm-actions .dm-count { font-family: var(--mono); font-size: 9px; line-height: 1; }
.dm-item.is-copied .dm-actions button[data-dm-copy] { color: var(--accent); }

/* 倍速选项 */
#rateGroup {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    padding: 4px;
}
#rateGroup button { padding: 7px 0; font-size: 10.5px; }

/* 移动端：弹幕操作常显、陪聊全屏 */
@media (max-width: 760px) {
    .dm-actions { opacity: .9; }
    .drawer--chat { width: 100%; height: min(82dvh, 700px); }
    .stage-logo { max-width: 96px; }
    #rateGroup { grid-template-columns: repeat(4, 1fr); }
}

/* 设置抽屉：倍速与填充按钮换行，避免挤压标题 */
.set-row--stack > .set-row__label { margin-bottom: 8px; }
.set-row--stack > .segmented { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }
.set-row--stack > #fitGroup { grid-template-columns: 1fr 1fr; }

/* 发布弹幕按钮：清晰的胶囊样式 */
.art-control-mz-send { padding-right: 4px !important; }
.mz-send-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px 0 8px;
    border-radius: 13px;
    border: 1px solid rgba(232, 183, 106, .42);
    background: rgba(232, 183, 106, .12);
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .02em;
    transition: background .15s, border-color .15s;
}
.mz-send-pill:hover { background: rgba(232, 183, 106, .22); border-color: rgba(232, 183, 106, .65); }
.mz-send-pill .mz-ico { width: 15px; height: 15px; }
.mz-send-pill .mz-ico svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
    .mz-send-pill { height: 28px; padding: 0 9px 0 7px; border-radius: 14px; font-size: 11px; }
    .mz-send-text { display: inline; }
}

.brand__mark { max-width: 44px; max-height: 44px; object-fit: contain; }
.form-row__label b, .set-row__label b { white-space: nowrap; }

/* 移动端底栏 */
@media (max-width: 760px) {
    .art-video-player .art-bottom {
        height: 62px !important;
        padding: 8px 8px 2px !important;
    }
    .art-video-player .art-bottom .art-progress { flex: 0 0 16px !important; height: 16px !important; }
    .art-video-player .art-bottom .art-control-progress { height: 16px !important; }
    .art-video-player .art-bottom .art-controls { height: 36px; }
    .art-video-player .art-bottom .art-controls .art-control { min-height: 32px; min-width: 32px; }
    .art-video-player .art-bottom .art-controls .art-control .art-icon { width: 32px; height: 32px; }
}

/* 抽屉内容可滚动（横屏高度有限） */
.drawer {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.drawer__head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(11, 13, 17, .92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.drawer__foot {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: rgba(11, 13, 17, .94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.drawer__head { padding-top: 18px; padding-bottom: 14px; }

/* 横屏剧场内抽屉更紧凑 */
.stage-shell.is-theater .drawer__head { padding: 14px 18px 10px; }
.stage-shell.is-theater .drawer__head h3 { font-size: 16px; }
.stage-shell.is-theater .set-group { padding: 12px 18px; }
.stage-shell.is-theater .set-row { padding: 9px 0; }

/* 抽屉子块不压缩，保证横屏可滚动 */
.drawer > * { flex: 0 0 auto; }

/* 剧场全屏：隐藏来源提示，避免压住进度条 */
.stage-shell.is-theater .stage-notice { display: none !important; }
.stage-shell.is-theater .stage-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.stage-shell.is-theater .stage-play svg { width: 23px; height: 23px; }
.stage-shell.is-theater .mz-dm-layer { top: 34px; }

/* 剧场模式下隐藏页面外壳，避免页头时钟压在全屏上 */
body.is-theater-mode .site-head,
body.is-theater-mode .below,
body.is-theater-mode .site-foot { display: none !important; }

/* 竖屏舞台顶部信息更紧凑，避免 LOGO 与标题重叠 */
@media (max-width: 760px) {
    .stage-chrome { padding: 10px 12px 0; }
    .stage-chrome__left { gap: 6px; min-width: 0; }
    .stage-title { font-size: 11.5px; max-width: 46vw; }
    .mz-dm-layer { top: 42px; }
}

/* 剧场全屏不显示舞台时钟 */
.stage-shell.is-theater .stage-clock { display: none !important; }

/* 舞台内 LOGO：高度/宽度由后台「LOGO 大小 / LOGO 宽度」inline 设置优先，
   这里只做缺省兜底；移动端同样显示（左上角可见），仅限制上限防溢出 */
.stage-logo { width: auto; max-width: 160px; }
@media (max-width: 760px) {
    .stage-logo { max-width: 96px; }
    .stage-chrome__left { display: flex; align-items: center; overflow: hidden; }
    .stage-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .stage-clock { display: none; }
}

/* 播放器自带的状态提示（Pause/Play）与自定义按钮重复，隐藏 */
.art-video-player .art-notice { display: none !important; }

/* =========================================================
   V3：进度条缩略图 / 审核警告 / 抖动
   ========================================================= */
.mz-thumb {
    position: fixed;
    z-index: 9995;
    width: 176px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    background: #000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .12s ease, visibility .12s, transform .12s;
    pointer-events: none;
}
.mz-thumb.is-on { opacity: 1; visibility: visible; transform: none; }
.mz-thumb canvas { display: block; width: 100%; height: auto; background: #0b0d11; }
.mz-thumb__t {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .74);
    font: 10px/1.7 var(--mono);
    color: #fff;
    letter-spacing: .02em;
}

.toast.is-warn {
    background: rgba(62, 20, 22, .96);
    border-color: rgba(255, 120, 120, .5);
    color: #ffdede;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 120, 120, .18);
}
.toast.is-warn::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ff7a7a;
    color: #2a0d0d;
    font-size: 10px;
    font-weight: 700;
    vertical-align: -2px;
}

@keyframes mz-shake {
    0%, 100% { transform: translate(-50%, 0); }
    20% { transform: translate(calc(-50% - 7px), 0); }
    40% { transform: translate(calc(-50% + 7px), 0); }
    60% { transform: translate(calc(-50% - 4px), 0); }
    80% { transform: translate(calc(-50% + 4px), 0); }
}
.composer.is-shake { animation: mz-shake .42s ease; }
.composer.is-shake { border-color: rgba(255, 120, 120, .55); }

@media (max-width: 760px) {
    .mz-thumb { width: 128px; }
    .mz-thumb__t { font-size: 9px; right: 4px; bottom: 4px; }
}

/* 弹幕操作气泡 */
.mz-dm-item { pointer-events: auto; cursor: pointer; }
.mz-dm-pop {
    position: absolute;
    z-index: 71;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(16, 17, 20, .95);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px) scale(.96);
    transition: opacity .16s, visibility .16s, transform .16s;
}
.mz-dm-pop.is-on { opacity: 1; visibility: visible; transform: none; }
.mz-dm-pop button {
    width: 42px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e9e7e1;
    display: grid;
    place-items: center;
    transition: background .14s, color .14s;
}
.mz-dm-pop button:hover { background: rgba(255, 255, 255, .1); }
.mz-dm-pop button.is-on { color: var(--accent); }
.mz-dm-pop button.is-on svg { fill: currentColor; }
.mz-dm-pop button:disabled { opacity: .5; }
.mz-dm-pop svg { width: 18px; height: 18px; }
/* 点赞后闪出的最新赞数 */
.mz-dm-pop__n {
    position: absolute;
    top: -6px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent);
    color: #14100a;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}
.mz-dm-pop__n.is-flash { animation: dmPopN 1.6s ease forwards; }
@keyframes dmPopN {
    0% { opacity: 0; transform: translateY(5px) scale(.6); }
    18% { opacity: 1; transform: translateY(0) scale(1.12); }
    32% { transform: translateY(0) scale(1); }
    78% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-4px); }
}
.mz-dm-pop button { position: relative; overflow: visible; }
@media (max-width: 760px) {
    .mz-dm-pop button { width: 44px; height: 40px; }
    .mz-dm-pop svg { width: 19px; height: 19px; }
}

/* 举报弹窗 */
.mz-report {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, visibility .18s;
}
.mz-report.is-on { opacity: 1; visibility: visible; }
.mz-report__mask {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, .66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mz-report__box {
    position: relative;
    width: min(430px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(20, 21, 26, .97);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    transform: translateY(10px) scale(.97);
    transition: transform .18s;
}
.mz-report.is-on .mz-report__box { transform: none; }
.mz-report__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #f0eee9;
}
.mz-report__head b { font-weight: 600; letter-spacing: .5px; }
.mz-report__x {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #b9b6ae;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.mz-report__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mz-report__x svg { width: 12px; height: 12px; }
.mz-report__quote {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border-left: 3px solid var(--accent);
    color: #cfccc4;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}
.mz-report__label {
    margin: 14px 0 8px;
    font-size: 12px;
    color: #8d8a82;
    letter-spacing: 1px;
}
.mz-report__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mz-report__chips button {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: #cfccc4;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .14s, color .14s, background .14s;
}
.mz-report__chips button:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.mz-report__chips button.is-on {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 183, 106, .1);
}
.mz-report__note {
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #e9e7e1;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}
.mz-report__note:focus { border-color: var(--accent); }
.mz-report__note::placeholder { color: #6e6b64; }
.mz-report__foot {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.mz-report__cancel,
.mz-report__ok {
    padding: 9px 18px;
    border-radius: 11px;
    font-size: 13px;
    cursor: pointer;
    transition: filter .14s, background .14s;
}
.mz-report__cancel {
    border: 1px solid rgba(255, 255, 255, .14);
    background: transparent;
    color: #b9b6ae;
}
.mz-report__cancel:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mz-report__ok {
    border: 0;
    background: var(--accent);
    color: #14100a;
    font-weight: 600;
}
.mz-report__ok:hover { filter: brightness(1.1); }
.mz-report__ok:disabled { opacity: .55; cursor: default; }
@media (max-width: 520px) {
    .mz-report { padding: 14px; }
    .mz-report__box { padding: 15px; }
    .mz-report__chips button { padding: 7px 11px; font-size: 12px; }
}

/* 倍速滑动提示 */
.mz-speed-hud {
    position: absolute;
    z-index: 73;
    left: 50%;
    top: 18%;
    transform: translate(-50%, 6px) scale(.96);
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(10, 12, 15, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #f2efe8;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s, visibility .16s, transform .16s;
    pointer-events: none;
}
.mz-speed-hud.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.mz-speed-hud b { font: 700 17px/1 var(--mono); color: var(--accent); }
.mz-speed-hud span { font-size: 12px; color: #d8d5cd; }

/* 进度条圆点：默认可见、可拖 */
.art-video-player .art-progress-indicator {
    visibility: visible !important;
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* ============================================================
   补齐 · 第一版 UI 里没有、但当前功能需要的组件
   （LOGO 九宫格 / 暂停广告 / 倍速 / 手势 HUD / 待机规格表）
   ============================================================ */

/* ---------- LOGO 九宫格定位 ---------- */
/* 无底板：LOGO 直接压在画面上，不加半透明色块 / 毛玻璃 */
.stage-logo {
    position: absolute;
    z-index: 46;
    pointer-events: none;
    padding: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-sizing: content-box;
    mix-blend-mode: var(--logo-blend, normal);
}

.stage-logo.pos-tl { top: 12px; left: 14px; }
.stage-logo.pos-tc { top: 12px; left: 50%; transform: translateX(-50%); }
.stage-logo.pos-tr { top: 12px; right: 14px; }
.stage-logo.pos-ml { top: 50%; left: 14px; transform: translateY(-50%); }
.stage-logo.pos-mc { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.stage-logo.pos-mr { top: 50%; right: 14px; transform: translateY(-50%); }
.stage-logo.pos-bl { bottom: 76px; left: 14px; }
.stage-logo.pos-bc { bottom: 76px; left: 50%; transform: translateX(-50%); }
.stage-logo.pos-br { bottom: 76px; right: 14px; }

/* 左上角有在线人数胶囊，标题整体右让 */
.stage-chrome__left { padding-left: 106px; }

/* 选左上 / 左中时标题让位给 LOGO */
.stage.logo-pos-tl .stage-chrome__left { padding-left: 152px; }
.stage.logo-pos-bl .stage-chrome__left { padding-left: 104px; }
.stage.logo-pos-ml .stage-chrome__left { padding-left: 152px; }

/* 剧院模式没有在线人数的横向占位，收回 */
.stage-shell.is-theater .stage-chrome__left { padding-left: 106px; }

/* 全屏：统一右上角，且不挡点击 */
.stage-shell.is-theater .stage-logo {
    top: 16px;
    right: 22px;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 46;
}

/* ---------- 暂停广告 ---------- */
.pause-ad {
    position: fixed;
    inset: 0;
    z-index: 380;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 4, 6, .87);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.pause-ad[hidden] { display: none; }

.pause-ad__panel {
    position: relative;
    width: min(760px, calc((100vh - 110px) * 16 / 9), 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: #0b0d10;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .92);
    overflow: hidden;
}

.pause-ad__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .015);
}

.pause-ad__tag {
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.pause-ad__count {
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.pause-ad__bar-spacer { flex: 1; }

.pause-ad__nav {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}

.pause-ad__nav svg { width: 12px; height: 12px; }
.pause-ad__nav:hover { background: rgba(255, 255, 255, .07); color: var(--text); border-color: rgba(255, 255, 255, .22); }

.pause-ad__close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: transparent;
    color: var(--text-2);
    font-size: 11px;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.pause-ad__close svg { width: 12px; height: 12px; }
.pause-ad__close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }

.pause-ad__track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pause-ad__track::-webkit-scrollbar { display: none; }

.pause-ad__slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #05060a;
}

.pause-ad__slide img,
.pause-ad__slide video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.pause-ad__link { display: block; cursor: pointer; }

.pause-ad__cta {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    height: 32px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    background: var(--accent);
    color: #14100a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.pause-ad__dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(5, 6, 10, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.pause-ad__dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .34);
    transition: width .2s, background .2s;
}

.pause-ad__dots i.is-on { width: 14px; border-radius: 3px; background: var(--accent); }
.pause-ad__swipe { display: none; }

/* ---------- 倍速按钮 ---------- */
.mz-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
    color: currentColor;
    font-variant-numeric: tabular-nums;
}

/* ---------- 手势 HUD（亮度 / 音量 / 进度） ---------- */
.mz-ghud {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 27;
    transform: translate(-50%, -50%) scale(.97);
    min-width: 130px;
    padding: 12px 16px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(10, 12, 15, .84);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    text-align: center;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.mz-ghud.is-on { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.mz-ghud__val {
    display: block;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.mz-ghud__sub {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--muted);
}

.mz-ghud__bar {
    display: none;
    position: relative;
    width: 92px;
    height: 2px;
    margin: 9px auto 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .16);
    overflow: hidden;
}

.mz-ghud__bar u {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------- 待机页规格表 ---------- */
.empty-spec {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 30px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.empty-spec > div {
    padding: 14px 16px 0 0;
    border-right: 1px solid var(--line);
}

.empty-spec > div:last-child { border-right: 0; }
.empty-spec > div + div { padding-left: 16px; }

.empty-spec dt {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 5px;
}

.empty-spec dd {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--text-2);
}

/* ============================================================
   手机与全屏微调（沿用第一版配色，只补结构差异）
   ============================================================ */

@media (max-width: 760px) {
    /* 触屏下 ArtPlayer 会把底栏写死 100px，这里收回 */
    .art-video-player.art-video-player .art-bottom {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
        background: #0b0d10 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .art-video-player .art-bottom::before { display: none !important; }

    .art-video-player .art-bottom .art-progress {
        flex: 0 0 18px !important;
        height: 18px !important;
        min-height: 0 !important;
        padding: 8px 12px 0 !important;
        margin: 0 !important;
    }

    .art-video-player .art-control.art-control-progress {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
    }

    .art-video-player .art-control-progress-inner {
        height: 3px !important;
        margin-top: 4px;
        border-radius: 3px;
        overflow: visible;
    }

    .art-video-player .art-progress .art-progress-indicator {
        width: 11px !important;
        height: 11px !important;
        top: -4px !important;
        border-width: 2px !important;
    }

    .art-video-player .art-bottom .art-controls {
        flex: 0 0 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        padding: 0 8px !important;
    }

    .art-video-player .art-controls-center { display: none !important; }
    .art-video-player .art-controls-right { margin-left: auto !important; }

    .art-video-player .art-control {
        width: auto !important;
        min-width: 34px !important;
        height: 46px !important;
        padding: 0 5px !important;
        flex: none !important;
    }

    .art-video-player .art-control svg { width: 19px; height: 19px; }

    .art-video-player .art-control-volume,
    .art-video-player .art-control-mz-set { display: none !important; }

    .art-video-player .art-control-time {
        padding: 0 6px 0 2px !important;
        font-size: 11px !important;
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .art-video-player .art-control-time::before,
    .art-video-player .art-control-time::after { display: none !important; }

    .mz-send-pill { height: 26px; padding: 0 10px; font-size: 11px; }
    .mz-send-pill .mz-ico svg { width: 14px; height: 14px; }

    /* 画面内公告条：压在控制条上方，不占半屏 */
    .stage-notice {
        left: 10px;
        right: 10px;
        bottom: 72px;
        z-index: 55;
        max-width: none;
        padding: 7px 10px;
        font-size: 10.5px;
        border-radius: 6px;
    }

    .stage-notice svg { width: 12px; height: 12px; }

    /* 片源标签在手机上不显示 */
    .video-meta .meta-chip--source { display: none; }

    /* 发弹幕：贴底键盘面板 */
    .composer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        transform: none;
        padding: 0;
        z-index: 72;
    }

    .composer.is-open { transform: none; }

    .composer__row {
        margin: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 14px 14px 0 0;
        background: rgba(11, 13, 16, .98);
        flex-wrap: wrap;
        row-gap: 9px;
    }

    .composer__colors { order: 2; }
    .composer__modes { order: 1; margin-left: 0; }
    .composer input { font-size: 16px; }

    /* 倍速按钮别挤成一行 */
    #rateGroup {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    #rateGroup button { width: 100% !important; }
    #fitGroup, #dirGroup { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 380px) {
    .art-video-player .art-control { min-width: 30px !important; padding: 0 3px !important; }
    .art-video-player .art-control svg { width: 18px; height: 18px; }
    .art-video-player .art-control-time { font-size: 10px !important; padding-right: 4px !important; }
    .mz-send-pill { padding: 0 8px; font-size: 10.5px; }
    .mz-send-pill .mz-ico svg { width: 13px; height: 13px; }
    #rateGroup { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 330px) {
    .art-video-player .art-control { min-width: 28px !important; padding: 0 2px !important; }
    .mz-send-pill { padding: 0 6px; font-size: 10px; }
    .mz-send-pill .mz-ico { display: none; }
}

/* 全屏：保留左上角小标题与 LOGO，其余收起 */
.stage-shell.is-theater .stage-chrome {
    display: flex !important;
    opacity: 1 !important;
    z-index: 22;
}

.stage-shell.is-theater .stage-chrome__right { display: none; }

/* 播放/暂停不弹提示气泡 */
.art-video-player .art-control-playAndPause::after,
.art-video-player .art-control-playAndPause::before { display: none !important; }

/* 手机：LOGO 收小、公告条不横跨整屏 */
@media (max-width: 760px) {
    .stage-logo {
        max-width: 92px !important;
        opacity: .62;
        padding: 3px 5px;
    }

    .stage-logo.pos-tl,
    .stage-logo.pos-tr { top: 8px; }
    .stage-logo.pos-tl { left: 10px; }
    .stage-logo.pos-tr { right: 10px; }

    .stage-notice {
        left: 10px;
        right: auto;
        max-width: calc(100% - 20px);
        width: fit-content;
        bottom: 70px;
        font-size: 10px;
        padding: 6px 9px;
        background: rgba(8, 10, 13, .62);
        color: rgba(242, 241, 238, .66);
    }

    .stage-notice span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 78vw;
    }
}

@media (max-width: 760px) {
    .stage-logo { max-width: 76px !important; opacity: .5; }
    .stage-notice span { max-width: 62vw; }
}

/* ============================================================
   选集弹窗
   ============================================================ */
.eps-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 4, 6, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.eps-modal[hidden] { display: none; }

.eps-modal__panel {
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: min(78vh, 660px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #0b0d10;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .92);
    overflow: hidden;
    animation: epsIn .18s ease;
}

@keyframes epsIn {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
}

.eps-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.eps-modal__head .eyebrow {
    margin: 0 0 6px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--muted);
}

.eps-modal__head h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
}

.eps-modal__count {
    margin-left: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
}

.eps-modal__close {
    flex: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: background .18s, color .18s;
}

.eps-modal__close svg { width: 14px; height: 14px; }
.eps-modal__close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }

.eps-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    padding: 16px 20px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.eps-item {
    height: 40px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background .16s, border-color .16s, color .16s;
}

.eps-item:hover {
    border-color: rgba(232, 183, 106, .45);
    background: rgba(232, 183, 106, .08);
    color: var(--text);
}

.eps-item.is-on {
    border-color: var(--accent);
    background: var(--accent);
    color: #14100a;
    font-weight: 600;
}

@media (max-width: 760px) {
    .eps-modal { padding: 14px; align-items: flex-end; }
    .eps-modal__panel { width: 100%; max-height: 72vh; border-radius: 14px 14px 0 0; }
    .eps-modal__head { padding: 16px 16px 12px; }
    .eps-modal__grid {
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
        gap: 7px;
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .eps-item { height: 38px; font-size: 12px; }
}

/* ============================================================
   选集弹窗 · 补充（空状态 / 滚动锁定 / 横屏）
   ============================================================ */
body.is-locked { overflow: hidden; }

.eps-empty {
    grid-column: 1 / -1;
    padding: 26px 8px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* 横屏：弹窗居中、限高，避免溢出屏幕 */
@media (orientation: landscape) and (max-height: 560px) {
    .eps-modal { padding: 12px; }
    .eps-modal__panel { max-height: 88vh; width: min(760px, 92vw); }
    .eps-modal__head { padding: 12px 16px 10px; }
    .eps-modal__head h3 { font-size: 16px; }
    .eps-modal__grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        gap: 7px;
        padding: 12px 16px 16px;
    }
    .eps-item { height: 34px; font-size: 12px; }
}

/* =========================================================
   触屏 / 横屏底栏：沿用第一版的竖屏细线进度条
   新版在 max-width:760px 下给 art-bottom 加了 #0b0d10 实色底板，
   横屏时会出现一条明显的黑底进度条背景；这里恢复为半透明渐变，
   并把进度条尺寸改回第一版的数值。
   ========================================================= */
@media (max-width: 760px) {
    .art-video-player.art-video-player .art-bottom {
        height: 62px !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 8px 8px 2px !important;
        background-color: transparent !important;
        background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .45) 42%, rgba(0, 0, 0, .78)) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        justify-content: flex-end;
    }
    .art-video-player .art-bottom::before { display: none !important; }

    .art-video-player .art-bottom .art-progress {
        flex: 0 0 16px !important;
        height: 16px !important;
        min-height: 0 !important;
        padding: 0 8px !important;
        margin: 0 !important;
        touch-action: none;
    }
    .art-video-player .art-bottom .art-control-progress {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
        align-items: center;
    }
    .art-video-player .art-bottom .art-control-progress-inner {
        height: 6px !important;
        margin-top: 0;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, .3);
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
        overflow: visible;
        transition: height .12s ease;
    }
    .art-video-player .art-bottom .art-progress:hover .art-control-progress-inner { height: 8px !important; }

    .art-video-player .art-progress .art-progress-indicator {
        width: 14px !important;
        height: 14px !important;
        top: 50% !important;
        margin-top: -7px;
        border-width: 2px !important;
        visibility: visible;
        opacity: 1;
    }

    .art-video-player .art-bottom .art-controls {
        flex: 0 0 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 6px !important;
    }
    .art-video-player .art-bottom .art-controls .art-control {
        width: auto !important;
        min-width: 32px !important;
        min-height: 32px !important;
        height: 36px !important;
    }
    .art-video-player .art-bottom .art-controls .art-control .art-icon { width: 32px; height: 32px; }
    .art-video-player .art-bottom .art-controls .art-control .art-icon svg { width: 18px; height: 18px; }
}

/* 横屏（矮屏）下同样去掉实色底板 */
@media (orientation: landscape) and (max-height: 560px) {
    .art-video-player.art-video-player .art-bottom {
        height: 56px !important;
        padding: 6px 10px 2px !important;
        background-color: transparent !important;
        background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .45) 42%, rgba(0, 0, 0, .78)) !important;
    }
    .art-video-player .art-bottom .art-progress { flex: 0 0 14px !important; height: 14px !important; }
    .art-video-player .art-bottom .art-control-progress { height: 14px !important; }
    .art-video-player .art-bottom .art-control-progress-inner { height: 5px !important; }
    .art-video-player .art-progress .art-progress-indicator {
        width: 12px !important;
        height: 12px !important;
        margin-top: -6px;
    }
    .art-video-player .art-bottom .art-controls {
        flex: 0 0 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }
    .art-video-player .art-bottom .art-controls .art-control {
        min-width: 30px !important;
        min-height: 30px !important;
        height: 34px !important;
    }
}

/* =========================================================
   左上角在线人数（与 LOGO 同层，常显不随控制条淡出）
   ========================================================= */
.stage-online {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 47;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(6, 8, 10, .62);
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .74);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.stage-online__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #43d17c;
    box-shadow: 0 0 0 3px rgba(67, 209, 124, .16);
    animation: onlinePulse 2.4s ease-in-out infinite;
    flex: none;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}

.stage-online b {
    font: 600 12px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.stage-online span { opacity: .82; }

/* LOGO 也在左上角时，人数往下让一行 */
.stage.logo-pos-tl .stage-online,
.stage.logo-pos-ml .stage-online { top: 58px; }

/* 控制条整体隐藏时，人数仍然保留 */
.stage.is-ui-off .stage-online { opacity: 1; }

/* 移动端收小 */
@media (max-width: 760px) {
    .stage-online {
        top: 8px;
        left: 10px;
        height: 22px;
        padding: 0 8px;
        font-size: 10px;
        gap: 5px;
    }
    .stage-online b { font-size: 11px; }
    .stage.logo-pos-tl .stage-online,
    .stage.logo-pos-ml .stage-online { top: 46px; }

    /* 窄屏下标题要给人数胶囊留足横向空间 */
    .stage-chrome__left { padding-left: 112px; }
    .stage-shell.is-theater .stage-chrome__left { padding-left: 112px; }
    .stage.logo-pos-tl .stage-chrome__left,
    .stage.logo-pos-ml .stage-chrome__left { padding-left: 112px; }
}

/* 横屏矮屏：贴边收窄 */
@media (orientation: landscape) and (max-height: 560px) {
    .stage-online { top: 6px; left: 10px; height: 20px; font-size: 10px; }
    .stage-shell.is-theater .stage-online { top: 6px; left: 14px; }
    .stage.logo-pos-tl .stage-online,
    .stage.logo-pos-ml .stage-online { top: 40px; }
}

/* 选集 / 下一集按钮：按剧集数据动态显隐 */
#epsBtn[hidden],
#nextBtn[hidden] { display: none !important; }
