/*
 * 主题深色模式覆盖层（video/theme/default 全站）
 * ----------------------------------------------------------------------------
 * 原则：
 * 1. 深色是否生效由 <link media> 控制（本文件无 @media 外壳）：系统深色 =
 *    media"(prefers-color-scheme: dark)"，手动深色 = media"all"，手动浅色 = media"not all"；
 * 2. 全部选择器带 html 前缀提高特异性——head.css 经 body 内的公共头部片段引入、
 *    晚于本文件加载，页面 body 内联 <style> 同理，靠特异性保证覆盖；
 * 3. 映射：白面 #fff→#23252b、页面底 #fff/#f5f5f5→#17181c、浅灰面→#202228、
 *    线 #eaedf1 系→rgba(255,255,255,.08)、近黑字→白字、品牌红提亮为 #ff7a66 保证可读；
 * 4. 保持不动：播放器黑区（.MacPlayer/.player-block）、海报图、黄/金角标与 VIP 金渐变、
 *    黑色遮罩渐变（海报上的 caption）。
 * 关联：public/common.html :: headMeta 声明 color-scheme: light（禁浏览器算法翻色，
 *       不要用 "light dark"——手机夜间模式浏览器会叠加强制反色把白字压黑）；
 *       public/common.html :: darkStyle 在各页 </head> 前引入本文件；
 *       darkStyle 里的「强制夜间探针」检测到被算法改色时给 html 打 data-night-fallback，
 *       本文件全部规则带 html:not([data-night-fallback]) 门控即整体让位。
 */
    /* ============================== 1. 全局表面与文字 ============================== */
    html:not([data-night-fallback]) {
        background: #17181c;
    }

    html:not([data-night-fallback]) body {
        background: #17181c;
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) a {
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) a:hover {
        color: #ff7a66;
    }

    /* ============================== 2. 分割线 / 边框 / 阴影 ============================== */
    html:not([data-night-fallback]) .border::after,
    html:not([data-night-fallback]) .btn-block-o::after,
    html:not([data-night-fallback]) .btn-aux-o::after,
    html:not([data-night-fallback]) .grid-more-link::after,
    html:not([data-night-fallback]) .popup-btn-o::after {
        border: 1px solid rgba(255, 255, 255, .14);
    }

    html:not([data-night-fallback]) .border-top::after,
    html:not([data-night-fallback]) #footer::after,
    html:not([data-night-fallback]) .library-box::after,
    html:not([data-night-fallback]) #friendlink::after,
    html:not([data-night-fallback]) .border-bottom::after,
    html:not([data-night-fallback]) .header-content::after,
    html:not([data-night-fallback]) .play .app-text::after {
        background-color: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) #header::after,
    html:not([data-night-fallback]) .homepage .header-bg::after {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .header-content::after {
        background: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) .space-line-bold {
        background: rgba(255, 255, 255, .16);
    }

    html:not([data-night-fallback]) .line {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .shadow {
        box-shadow: 0 0 10px -3px rgba(0, 0, 0, .5);
    }

    html:not([data-night-fallback]) .shadow-large,
    html:not([data-night-fallback]) #search-content .search-box,
    html:not([data-night-fallback]) .homepage .header-content .search-box,
    html:not([data-night-fallback]) .box,
    html:not([data-night-fallback]) .box::after,
    html:not([data-night-fallback]) .box::before,
    html:not([data-night-fallback]) .mx-mac_msg_jump {
        box-shadow: 0 7px 21px rgba(0, 0, 0, .5);
    }

    html:not([data-night-fallback]) .shadow-larger,
    html:not([data-night-fallback]) .module-item-cover:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
    }

    html:not([data-night-fallback]) .shadow-drop,
    html:not([data-night-fallback]) .btn-aux-o:hover,
    html:not([data-night-fallback]) .drop:hover .drop-content-box {
        box-shadow: 0 3px 12px rgba(0, 0, 0, .5);
    }

    /* ============================== 3. 文字灰阶 ============================== */
    html:not([data-night-fallback]) .load-all,
    html:not([data-night-fallback]) .more-content span,
    html:not([data-night-fallback]) .view .video-info .page-title,
    html:not([data-night-fallback]) .nav-menu-item.selected span,
    html:not([data-night-fallback]) .search-tag a,
    html:not([data-night-fallback]) .homepage .nav-menu-search i {
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .module-row-info a,
    html:not([data-night-fallback]) .handle-more-drop .btn-block-o i,
    html:not([data-night-fallback]) .handle-more-drop .block-name strong,
    html:not([data-night-fallback]) .module-tab-drop .module-tab-item,
    html:not([data-night-fallback]) .module-blocklist a,
    html:not([data-night-fallback]) .mx-mac_msg_jump .msg_jump_tit,
    html:not([data-night-fallback]) .mx-mac_msg_jump .text {
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .module-row-shortcuts a,
    html:not([data-night-fallback]) .btn-gray,
    html:not([data-night-fallback]) .more,
    html:not([data-night-fallback]) .load-all,
    html:not([data-night-fallback]) .module-tab-item,
    html:not([data-night-fallback]) .module-blocklist a,
    html:not([data-night-fallback]) .video-info-aux .tag-link,
    html:not([data-night-fallback]) .page-number,
    html:not([data-night-fallback]) .module-blocklist a,
    html:not([data-night-fallback]) .module-player-tab .module-tab-name,
    html:not([data-night-fallback]) .sort-list .sort-button,
    html:not([data-night-fallback]) .search-stat h2,
    html:not([data-night-fallback]) .video-info-aux .tag-link a,
    html:not([data-night-fallback]) .weui_text .weui_xtts,
    html:not([data-night-fallback]) .user-title,
    html:not([data-night-fallback]) .keyword,
    html:not([data-night-fallback]) .list .list-item .item-title {
        color: rgba(255, 255, 255, .7);
    }

    html:not([data-night-fallback]) .module-item-style,
    html:not([data-night-fallback]) .module-item-style.video-tag a,
    html:not([data-night-fallback]) .library-stat,
    html:not([data-night-fallback]) .video-info-itemtitle,
    html:not([data-night-fallback]) .video-subtitle,
    html:not([data-night-fallback]) .list-item-title strong,
    html:not([data-night-fallback]) .module-row-shortcuts a {
        color: rgba(255, 255, 255, .62);
    }

    html:not([data-night-fallback]) .mx-mac_msg_jump .title,
    html:not([data-night-fallback]) .video-info-itemtitle,
    html:not([data-night-fallback]) #footer,
    html:not([data-night-fallback]) .btn-block-o i {
        color: rgba(255, 255, 255, .5);
    }

    html:not([data-night-fallback]) .module-item-text,
    html:not([data-night-fallback]) .text-list-num,
    html:not([data-night-fallback]) .text-list-title p,
    html:not([data-night-fallback]) .video-player-handle .handle-btn,
    html:not([data-night-fallback]) .handle-more-drop .block-name,
    html:not([data-night-fallback]) .drop-tips,
    html:not([data-night-fallback]) .weui_text .weui_tips,
    html:not([data-night-fallback]) .text-muted {
        color: rgba(255, 255, 255, .42);
    }

    html:not([data-night-fallback]) #friendlink a,
    html:not([data-night-fallback]) .article-content i,
    html:not([data-night-fallback]) .player-info .video-info-main,
    html:not([data-night-fallback]) .player-info .video-info-itemtitle,
    html:not([data-night-fallback]) .player-info .video-info-aux .tag-link,
    html:not([data-night-fallback]) .player-info .video-info-aux .tag-link a {
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .list-item-link span,
    html:not([data-night-fallback]) .popup-footer .url,
    html:not([data-night-fallback]) .app-footer {
        color: rgba(255, 255, 255, .38);
    }

    html:not([data-night-fallback]) .list-item-title strong,
    html:not([data-night-fallback]) .module-item-text,
    html:not([data-night-fallback]) .drop-tips {
        color: rgba(255, 255, 255, .42);
    }

    html:not([data-night-fallback]) .tips-list li,
    html:not([data-night-fallback]) .player-info .page-title,
    html:not([data-night-fallback]) .player-info .page-title a,
    html:not([data-night-fallback]) .player-side-tab .module-tab-item:hover,
    html:not([data-night-fallback]) .player-side-tab .module-tab-item.selected,
    html:not([data-night-fallback]) .player-side-playlist .module-blocklist a:hover.selected,
    html:not([data-night-fallback]) .player-side-playlist .module-blocklist .selected {
        color: rgba(255, 255, 255, .75);
    }

    html:not([data-night-fallback]) .order {
        color: rgba(255, 255, 255, .35);
    }

    html:not([data-night-fallback]) .text-shadow-none,
    html:not([data-night-fallback]) .view .video-info-header .page-title {
        text-shadow: 1px 1px 0 #17181c;
    }

    /* ============================== 4. 品牌红 / 橙（文字、图标、小件，提亮保证可读） ============================== */
    html:not([data-night-fallback]) a:hover,
    html:not([data-night-fallback]) .grid-more-link,
    html:not([data-night-fallback]) .search-btn .icon-search,
    html:not([data-night-fallback]) .search-btn .phb,
    html:not([data-night-fallback]) .module-tab-item i,
    html:not([data-night-fallback]) .module-blocklist .selected,
    html:not([data-night-fallback]) .module-blocklist .selected:hover,
    html:not([data-night-fallback]) .module-item-go.selected .module-item-title,
    html:not([data-night-fallback]) .block-box-content:hover .title::after,
    html:not([data-night-fallback]) .block-box-item.selected .title::after,
    html:not([data-night-fallback]) .block-box-item.selected .title,
    html:not([data-night-fallback]) .library-box-first .library-item.selected::after,
    html:not([data-night-fallback]) .library-item.selected,
    html:not([data-night-fallback]) .more-content,
    html:not([data-night-fallback]) .video-player-handle .drop:hover .handle-btn,
    html:not([data-night-fallback]) .video-player-handle .drop:hover .handle-btn i,
    html:not([data-night-fallback]) .video-player-handle .handle-btn:hover i,
    html:not([data-night-fallback]) .video-player-handle .handle-btn:hover,
    html:not([data-night-fallback]) .handle-more-drop .btn-block-o:hover strong,
    html:not([data-night-fallback]) .module-blocklist .selected,
    html:not([data-night-fallback]) .page-current:hover,
    html:not([data-night-fallback]) .page-current,
    html:not([data-night-fallback]) .article-content a,
    html:not([data-night-fallback]) .plus em,
    html:not([data-night-fallback]) .plus:hover,
    html:not([data-night-fallback]) .nav-menu-item:hover>a>i,
    html:not([data-night-fallback]) .nav-menu-item:hover>span>i,
    html:not([data-night-fallback]) .nav-menu-item.selected i,
    html:not([data-night-fallback]) .nav-menu-item:hover .switcher-label i,
    html:not([data-night-fallback]) .nav-menu-item:hover .nav-menu-item-name,
    html:not([data-night-fallback]) .nav-menu-item.selected .nav-menu-item-name,
    html:not([data-night-fallback]) .nav-search .search-input:focus~.search-btn,
    html:not([data-night-fallback]) .mobile-open .search-box .search-btn i,
    html:not([data-night-fallback]) .module-tab-drop .module-tab-item.selected,
    html:not([data-night-fallback]) .close-drop:hover,
    html:not([data-night-fallback]) .sort-list .module-tab-name i,
    html:not([data-night-fallback]) .sort-list .sort-button i,
    html:not([data-night-fallback]) .module-item-go.selected .module-item-cover .module-item-pic i,
    html:not([data-night-fallback]) .module-item-go .module-item-cover:hover .module-item-pic i,
    html:not([data-night-fallback]) .shrink,
    html:not([data-night-fallback]) .morecontent,
    html:not([data-night-fallback]) .search-tag a:hover,
    html:not([data-night-fallback]) .search-tag .hot,
    html:not([data-night-fallback]) .ac_items li:hover,
    html:not([data-night-fallback]) .module-item .reserve,
    html:not([data-night-fallback]) .btncz,
    html:not([data-night-fallback]) .search-cupfox span,
    html:not([data-night-fallback]) .popup-main p a,
    html:not([data-night-fallback]) .popup strong,
    html:not([data-night-fallback]) .popup-btn-o,
    html:not([data-night-fallback]) .close-popup:hover i,
    html:not([data-night-fallback]) .mobile-open .search-box .search-btn i {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .video-player-handle .handle-btn em:hover {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .weui_icon i {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .list .list-item .one {
        color: #ff8f78;
    }

    html:not([data-night-fallback]) .list .list-item .two {
        color: #ffb74d;
    }

    html:not([data-night-fallback]) .list .list-item .three {
        color: #ffd280;
    }

    html:not([data-night-fallback]) .player-tips-main span {
        color: #ffb74d;
    }

    html:not([data-night-fallback]) .btn-yellow,
    html:not([data-night-fallback]) .btn-yellows {
        background: #ffa640;
        color: #fff;
    }

    /* 红色品牌按钮：底色提亮，白字不变 */
    html:not([data-night-fallback]) .btn-main,
    html:not([data-night-fallback]) .popup-btn,
    html:not([data-night-fallback]) .module-tab-item.selected,
    html:not([data-night-fallback]) .page-current,
    html:not([data-night-fallback]) .page-current:hover,
    html:not([data-night-fallback]) .btnpwd,
    html:not([data-night-fallback]) .btnlogin {
        background: #ff5138;
        color: #fff;
    }

    html:not([data-night-fallback]) .btn-main-linear,
    html:not([data-night-fallback]) .btn-important {
        background: #ff5138;
        background: linear-gradient(90deg, #ffa640, #ff5138) !important;
    }

    html:not([data-night-fallback]) .btn-main-light,
    html:not([data-night-fallback]) .module-item-go.selected .module-item-cover .module-item-pic i,
    html:not([data-night-fallback]) .module-item-go .module-item-cover:hover .module-item-pic i {
        background: rgba(255, 42, 20, .16);
    }

    html:not([data-night-fallback]) .btn-collect {
        background: #ff5138;
        background: linear-gradient(to right, #ff5138 0, #ff7a66 100%);
    }

    html:not([data-night-fallback]) .search-btn,
    html:not([data-night-fallback]) .mobile-search-btn {
        background-color: #ff5138;
        color: white;
    }

    html:not([data-night-fallback]) .nav-menu-item.selected span::after {
        background: #ff5138;
        background: linear-gradient(90deg, #ffa640, #ff5138) !important;
    }

    html:not([data-night-fallback]) .article-content h2::after,
    html:not([data-night-fallback]) .player-info .page-title a::after {
        background: #ff5138;
        background: linear-gradient(90deg, #ffa640, #ff5138) !important;
    }

    html:not([data-night-fallback]) .btnpwd:hover,
    html:not([data-night-fallback]) .btnlogin:hover {
        background: linear-gradient(90deg, #ffa640, #ff5138) !important;
    }

    html:not([data-night-fallback]) .btncz {
        border: 1px solid #ff7a66;
    }

    html:not([data-night-fallback]) .popup-btn-o::after {
        border-color: #ff7a66;
    }

    html:not([data-night-fallback]) .video-info-share button::before {
        border: 1px solid rgba(255, 122, 102, .35);
    }

    html:not([data-night-fallback]) .video-info-share button::after {
        border: 2px solid rgba(255, 122, 102, .35);
        box-shadow: 5px 5px 2px rgba(255, 122, 102, .12) inset;
        background: rgba(255, 42, 20, .12);
    }

    html:not([data-night-fallback]) .video-info-share button:hover::after {
        background: rgba(255, 42, 20, .2);
        box-shadow: 5px 5px 2px rgba(255, 122, 102, .18) inset;
    }

    html:not([data-night-fallback]) .module-item .reserve {
        border: 1px solid rgba(255, 122, 102, .45);
    }

    html:not([data-night-fallback]) .module-item .reserve:hover {
        color: #fff;
        background: #ff5138;
    }

    html:not([data-night-fallback]) .module-item .reserve.mac_ulog_ok {
        color: rgba(255, 255, 255, .45);
        border-color: rgba(255, 255, 255, .25);
    }

    html:not([data-night-fallback]) .module-item .reserve.mac_ulog_ok:hover {
        color: #fff;
        background: rgba(255, 255, 255, .2);
    }

    /* 品牌浅底（标签/选中底） */
    html:not([data-night-fallback]) .search-tag .hot,
    html:not([data-night-fallback]) .video-info-aux .tag-link:first-child,
    html:not([data-night-fallback]) .library-item.selected,
    html:not([data-night-fallback]) .module-tab-drop .module-tab-item.selected,
    html:not([data-night-fallback]) .block-box-item.selected,
    html:not([data-night-fallback]) .block-box-item.selected:hover {
        background: rgba(255, 42, 20, .14);
    }

    html:not([data-night-fallback]) .search-tag .hot:hover,
    html:not([data-night-fallback]) .video-info-aux .tag-link:first-child:hover {
        background: rgba(255, 42, 20, .22);
    }

    html:not([data-night-fallback]) .play .app-text {
        background: rgba(255, 42, 20, .12);
    }

    html:not([data-night-fallback]) .play .app-text a {
        color: #ff7a66;
    }

    /* ============================== 5. 绿色点缀 ============================== */
    html:not([data-night-fallback]) .btn-aux-o {
        color: #3ddc84;
        background: rgba(61, 220, 132, .12);
    }

    html:not([data-night-fallback]) .btn-aux-o::after {
        border-color: #3ddc84;
    }

    html:not([data-night-fallback]) .view .video-info-downbtn {
        color: #3ddc84;
    }

    html:not([data-night-fallback]) .module-row-text .icon-video-file {
        color: #3ddc84;
    }

    html:not([data-night-fallback]) .module-row-shortcuts a:hover::before {
        background: #3ddc84;
    }

    /* ============================== 6. 常见面：卡片 / 下拉 / 输入 / 弹层 ============================== */
    html:not([data-night-fallback]) .drop-content-box,
    html:not([data-night-fallback]) .search-box,
    html:not([data-night-fallback]) .search-cupfox,
    html:not([data-night-fallback]) .popup,
    html:not([data-night-fallback]) .box,
    html:not([data-night-fallback]) .box::before,
    html:not([data-night-fallback]) .module-item-content,
    html:not([data-night-fallback]) .module-tab .module-tab-items,
    html:not([data-night-fallback]) .homepage .header-content .search-box,
    html:not([data-night-fallback]) .mxone-modal__content {
        background: #23252b;
    }

    html:not([data-night-fallback]) .drop-content-items::before {
        border-bottom-color: #23252b;
    }

    html:not([data-night-fallback]) .drop-content-items li a:hover,
    html:not([data-night-fallback]) .btn-gray:hover,
    html:not([data-night-fallback]) .more:hover,
    html:not([data-night-fallback]) .load-all:hover,
    html:not([data-night-fallback]) .module-tab-item:hover,
    html:not([data-night-fallback]) .module-blocklist a:hover,
    html:not([data-night-fallback]) .video-info-aux .tag-link:hover,
    html:not([data-night-fallback]) .page-number:hover,
    html:not([data-night-fallback]) .module-sorttab .module-blocklist a:hover,
    html:not([data-night-fallback]) .text-list-item:nth-child(n+4):hover,
    html:not([data-night-fallback]) .close-drop:hover,
    html:not([data-night-fallback]) .list .list-item .item:hover {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .btn-gray,
    html:not([data-night-fallback]) .more,
    html:not([data-night-fallback]) .load-all,
    html:not([data-night-fallback]) .module-tab-item,
    html:not([data-night-fallback]) .module-blocklist a,
    html:not([data-night-fallback]) .video-info-aux .tag-link,
    html:not([data-night-fallback]) .page-number,
    html:not([data-night-fallback]) .module-sorttab .module-blocklist a,
    html:not([data-night-fallback]) #page .page-number {
        background: #24262c;
    }

    html:not([data-night-fallback]) .btn-gray-dark {
        background: rgba(255, 255, 255, .16);
    }

    html:not([data-night-fallback]) .btn-gray-dark:hover {
        background: rgba(255, 255, 255, .24);
    }

    html:not([data-night-fallback]) .module-player-list {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .module-player-tab .module-tab-item.selected {
        background: rgba(255, 255, 255, .1);
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .module-player-tab .module-tab-name {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .module-blocklist a {
        background: #24262c;
    }

    html:not([data-night-fallback]) .module-blocklist a:hover {
        background: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) .block-box-item {
        background: rgba(255, 255, 255, .07);
    }

    html:not([data-night-fallback]) .block-box-content .title::after {
        background: rgba(255, 255, 255, .16);
    }

    html:not([data-night-fallback]) .list-header .block-box-item:hover {
        background: rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .list-header .space-line-bold {
        background: rgba(255, 255, 255, .14);
    }

    html:not([data-night-fallback]) .grid-item i {
        background: #24262c;
    }

    html:not([data-night-fallback]) .list-item::after {
        background-color: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .list-item-title:before {
        background-color: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) .module-row-info:nth-child(odd) {
        background: rgba(255, 255, 255, .04);
    }

    html:not([data-night-fallback]) .module-row-shortcuts a::after {
        background: rgba(255, 255, 255, .16);
    }

    html:not([data-night-fallback]) .module-search-item {
        background: rgba(255, 255, 255, .05);
    }

    html:not([data-night-fallback]) .video-info-aux .tag-link {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .video-serial {
        border: 3px solid #23252b;
        color: rgba(255, 255, 255, .42);
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .nfmsg {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .nfmsg::after {
        border: 10px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .report-content {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) #report-popup::after {
        background: rgba(255, 255, 255, .14);
    }

    html:not([data-night-fallback]) .popup::after {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .popup-title::after {
        background: rgba(255, 42, 20, .2);
    }

    html:not([data-night-fallback]) .close-popup {
        border: 1px solid rgba(255, 255, 255, .2);
    }

    html:not([data-night-fallback]) .close-popup:hover {
        background: #23252b;
    }

    html:not([data-night-fallback]) .popup-footer .url em {
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .form-control {
        background-color: #24262c;
        color: rgba(255, 255, 255, .62);
        border: 1px solid rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .module-item-pic img.lazyloading+.loading {
        background: #24262c url(../image/load.svg) no-repeat;
        border: 5px solid #24262c;
    }

    html:not([data-night-fallback]) .module-item-pic a i,
    html:not([data-night-fallback]) .module-item-go .module-item-pic i {
        background: #23252b;
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .video-player-handle .handle-btn:hover,
    html:not([data-night-fallback]) .video-player-handle .drop:hover .handle-btn {
        background: #23252b;
    }

    html:not([data-night-fallback]) .video-player-handle .handle-btn::after {
        border-color: rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .video-player-handle .handle-btn:hover::after,
    html:not([data-night-fallback]) .video-player-handle .drop:hover .handle-btn::after {
        background: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) .handle-more-drop .btn-block-o::after {
        border-top-color: rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .video-player-handle .drop .drop-content-items::before {
        border-top: 8px solid #23252b;
        border-bottom-color: transparent;
    }

    html:not([data-night-fallback]) .module-tab .module-tab-items {
        background-color: #23252b;
    }

    html:not([data-night-fallback]) .video-player-handle .handle-btn em,
    html:not([data-night-fallback]) .video-player-handle .handle-btn:hover em {
        color: #17181c;
    }

    /* ============================== 7. 列表热榜名次 / 文本排行 ============================== */
    html:not([data-night-fallback]) .text-list-item:nth-child(1) {
        background: linear-gradient(90deg, rgba(255, 223, 125, .18), rgba(255, 189, 39, .18));
    }

    html:not([data-night-fallback]) .text-list-item:nth-child(2) {
        background: rgba(176, 187, 198, .12);
    }

    html:not([data-night-fallback]) .text-list-item:nth-child(3) {
        background: rgba(200, 190, 153, .12);
    }

    html:not([data-night-fallback]) .text-list-item:nth-child(n+4) {
        background: #202228;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .text-list-num::before {
        background: rgba(255, 255, 255, .16);
    }

    html:not([data-night-fallback]) .top-1::before {
        background: linear-gradient(90deg, #ffdf7d, #ffbd27);
    }

    html:not([data-night-fallback]) .top-2::before {
        background: linear-gradient(90deg, #d0d0d0, #b0bbc6);
    }

    html:not([data-night-fallback]) .top-3::before {
        background: linear-gradient(90deg, #ead9be, #c8be99);
    }

    /* ============================== 8. 页面渐变遮罩（白遮罩必须翻成页面底色） ============================== */
    html:not([data-night-fallback]) .module-bg {
        background: linear-gradient(180deg, #1c1e23, #17181c);
    }

    html:not([data-night-fallback]) .view .mobile-play:before {
        background: linear-gradient(to bottom, rgba(23, 24, 28, 0) 0%, #17181c 80%, #17181c 100%);
    }

    html:not([data-night-fallback]) .view .mobile-play .module-item-cover:before {
        background: linear-gradient(to bottom, rgba(23, 24, 28, 0) 0%, #17181c 100%);
    }

    html:not([data-night-fallback]) .view .video-cover {
        border: 2px solid rgba(255, 255, 255, .2);
        box-shadow: 0 25px 50px -30px rgba(0, 0, 0, .8);
    }

    html:not([data-night-fallback]) .homepage .header-bg {
        background: rgba(23, 24, 28, .96);
    }

    /* ============================== 9. 头部导航（含 head.css，靠 html 前缀压过后加载） ============================== */
    html:not([data-night-fallback]) .navbar {
        background-color: #1c1e23;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
    }

    html:not([data-night-fallback]) .logo-text {
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .search-input,
    html:not([data-night-fallback]) .mobile-search-input {
        border: 1px solid rgba(255, 255, 255, .14);
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .search-input::placeholder {
        color: rgba(255, 255, 255, .38);
    }

    html:not([data-night-fallback]) .nav-link,
    html:not([data-night-fallback]) .mobile-nav-link {
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .nav-link:hover {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .nav-link.active::after,
    html:not([data-night-fallback]) .mobile-nav-link.active::after {
        background-color: #ff7a66;
    }

    html:not([data-night-fallback]) .icon-btn,
    html:not([data-night-fallback]) .user-action,
    html:not([data-night-fallback]) .mobile-icon-btn,
    html:not([data-night-fallback]) .mobile-search-close {
        color: rgba(255, 255, 255, .62);
    }

    html:not([data-night-fallback]) .watch-history-panel {
        background: #23252b;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    }

    html:not([data-night-fallback]) .watch-history-head {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .watch-history-head .historyclean {
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .watch-history-head .historyclean:hover,
    html:not([data-night-fallback]) .watch-history-del:hover {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .watch-history-list a {
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .watch-history-del {
        color: rgba(255, 255, 255, .35);
    }

    html:not([data-night-fallback]) .watch-history-list a .watch-history-pic {
        background: #24262c;
    }

    html:not([data-night-fallback]) .watch-history-list a .watch-history-info span,
    html:not([data-night-fallback]) .watch-history-list a span,
    html:not([data-night-fallback]) .watch-history-list .drop-tips {
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .watch-history-list a:hover {
        background: rgba(255, 255, 255, .08);
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .search-suggestions,
    html:not([data-night-fallback]) .mobile-search-container {
        background: #23252b;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    }

    html:not([data-night-fallback]) .suggestion-header {
        color: rgba(255, 255, 255, .62);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .suggestion-item {
        color: rgba(255, 255, 255, .85);
        background: rgba(255, 42, 20, .1);
        border: 1px solid rgba(255, 122, 102, .25);
        box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    }

    html:not([data-night-fallback]) .suggestion-item:hover {
        background: #ff5138;
        color: white;
        box-shadow: 0 2px 4px rgba(255, 60, 60, .3);
        border-color: #ff5138;
    }

    html:not([data-night-fallback]) .suggestion-item.hot {
        background: rgba(255, 42, 20, .1);
        border-color: rgba(255, 122, 102, .25);
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .suggestion-item.hot:hover {
        background: #ff5138;
        color: white;
        border-color: #ff5138;
    }

    html:not([data-night-fallback]) .suggestion-item.normal {
        background: rgba(255, 255, 255, .06);
        border-color: rgba(255, 255, 255, .1);
        color: rgba(255, 255, 255, .62);
    }

    html:not([data-night-fallback]) .suggestion-item.normal:hover {
        background: rgba(255, 255, 255, .16);
        color: white;
        border-color: rgba(255, 255, 255, .2);
    }

    html:not([data-night-fallback]) .suggestion-item.hot .fire-icon {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .suggestion-item.normal .fire-icon {
        color: rgba(255, 255, 255, .62);
    }

    /* 搜索下拉联想（style.css） */
    html:not([data-night-fallback]) .ac_bg,
    html:not([data-night-fallback]) .ac_hot,
    html:not([data-night-fallback]) .ac_items {
        box-shadow: 0 8px 15px -3px rgba(0, 0, 0, .5);
        background: rgba(35, 37, 43, .96);
    }

    html:not([data-night-fallback]) .ac_bg::after,
    html:not([data-night-fallback]) .ac_hot::after,
    html:not([data-night-fallback]) .ac_items::after {
        background: #23252b;
    }

    html:not([data-night-fallback]) .ac_bg::before,
    html:not([data-night-fallback]) .ac_hot::before,
    html:not([data-night-fallback]) .ac_items::before {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .ac_items li:hover {
        background: rgba(255, 255, 255, .08);
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .nav-search .search-input {
        background: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) .nav-search .search-cupfox::after {
        background: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) .nav-search .search-btn {
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }

    html:not([data-night-fallback]) .nav-search .ac_bg,
    html:not([data-night-fallback]) .nav-search .ac_hot,
    html:not([data-night-fallback]) .nav-search .ac_items,
    html:not([data-night-fallback]) .nav-search .search-focus {
        background: #23252b;
        color: rgba(255, 255, 255, .92) !important;
    }

    html:not([data-night-fallback]) .nav-search .search-input:focus~.search-cupfox::after {
        background: rgba(255, 255, 255, .16);
    }

    html:not([data-night-fallback]) .homepage .nav-search .search-cupfox::after {
        background: rgba(255, 255, 255, .14);
    }

    html:not([data-night-fallback]) .mobile-open .search-box,
    html:not([data-night-fallback]) .mobile-open #search-content .search-box {
        background: rgba(35, 37, 43, .96);
    }

    html:not([data-night-fallback]) .mobile-open .search-box .search-btn,
    html:not([data-night-fallback]) .mobile-open .search-box .cancel-btn,
    html:not([data-night-fallback]) .mobile-open .search-box .search-input {
        background: rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .mobile-open .search-cupfox::after,
    html:not([data-night-fallback]) .mobile-open .nav-search .search-input:focus~.search-cupfox::after {
        background: rgba(255, 255, 255, .3);
    }

    html:not([data-night-fallback]) .mobile-open .nav-search .search-input:focus~.search-btn {
        background: rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .mobile-open .ac_items li {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    html:not([data-night-fallback]) .search-cupfox::after {
        background: rgba(255, 255, 255, .16);
    }

    /* ============================== 10. 首页 / 分类页（theme.css） ============================== */
    html:not([data-night-fallback]) .anime-card {
        background: #23252b;
    }

    html:not([data-night-fallback]) .anime-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, .5);
    }

    html:not([data-night-fallback]) .bottom-nav {
        background: #1c1e23;
        box-shadow: 0 -1px 5px rgba(0, 0, 0, .4);
    }

    html:not([data-night-fallback]) .nav-item {
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .nav-item.active {
        color: #3ddc84;
    }

    html:not([data-night-fallback]) .section-more,
    html:not([data-night-fallback]) .video-meta,
    html:not([data-night-fallback]) .episode,
    html:not([data-night-fallback]) .more-btn {
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .more-btn:hover {
        color: #6ea1ff;
    }

    html:not([data-night-fallback]) .section-title::before {
        background: #3ddc84;
    }

    html:not([data-night-fallback]) .module-heading {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .type-subnav a {
        background: #23252b;
        border: 1px solid rgba(255, 255, 255, .1);
        color: rgba(255, 255, 255, .62);
    }

    html:not([data-night-fallback]) .type-subnav a:hover {
        color: #ff7a66;
        border-color: #ff7a66;
    }

    html:not([data-night-fallback]) #page .page-number {
        background: #24262c;
        color: rgba(255, 255, 255, .7);
    }

    html:not([data-night-fallback]) #page .page-number:hover {
        background: rgba(255, 255, 255, .1);
    }

    html:not([data-night-fallback]) #page .page-current,
    html:not([data-night-fallback]) #page .page-current:hover {
        background: #ff5138;
        color: #fff;
    }

    html:not([data-night-fallback]) .pc-footer {
        background: #101114;
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .footer-link:hover {
        color: #3ddc84;
    }

    /* VIP 横幅保留金色品牌渐变，仅压暗底纹文字底 */
    html:not([data-night-fallback]) .vip-title {
        color: #ffe2a8;
    }

    html:not([data-night-fallback]) .vip-desc {
        color: #f0cf8f;
    }

    /* ============================== 11. 弹层（layer.css / popup / modal） ============================== */
    html:not([data-night-fallback]) .layui-layer {
        background-color: #23252b;
        box-shadow: 1px 1px 50px rgba(0, 0, 0, .6);
    }

    html:not([data-night-fallback]) .layui-layer-border {
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 1px 1px 5px rgba(0, 0, 0, .5);
    }

    html:not([data-night-fallback]) .layui-layer-load {
        background: url(loading-1.gif) center center no-repeat #24262c;
    }

    html:not([data-night-fallback]) .layui-layer-move {
        background-color: #23252b;
    }

    html:not([data-night-fallback]) .layui-layer-title {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .92);
        background-color: #2a2d34;
    }

    html:not([data-night-fallback]) .layui-layer-btn a {
        border: 1px solid rgba(255, 255, 255, .16);
        background-color: #2c2f36;
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .layui-layer-btn .layui-layer-btn0 {
        border-color: #6ea1ff;
        background-color: #3d74d8;
        color: #fff;
    }

    html:not([data-night-fallback]) .layui-layer-prompt .layui-layer-input {
        border: 1px solid rgba(255, 255, 255, .16);
        color: rgba(255, 255, 255, .92);
        background: #24262c;
    }

    html:not([data-night-fallback]) .layui-layer-tab .layui-layer-title span.layui-this {
        border-left: 1px solid rgba(255, 255, 255, .08);
        border-right: 1px solid rgba(255, 255, 255, .08);
        background-color: #23252b;
    }

    html:not([data-night-fallback]) .layui-layer-lan .layui-layer-btn a {
        background: #2c2f36;
        border-color: rgba(255, 255, 255, .12);
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .layui-layer-lan .layui-layer-btn {
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .layui-layer-lan .layui-layer-btn .layui-layer-btn1 {
        background: #3a3d45;
    }

    html:not([data-night-fallback]) .mx-mac_msg_jump .form .item1 {
        border-color: rgba(255, 255, 255, .12);
    }

    /* ============================== 12. 相关演员 / 收藏等杂项 ============================== */
    html:not([data-night-fallback]) .actor_part {
        background: #23252b;
        border: 1px solid rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .actor_pic {
        background: #2c2f36;
    }

    html:not([data-night-fallback]) .actor_xian {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    html:not([data-night-fallback]) .module-items .pack_reserve p {
        background: #23252b;
    }

    html:not([data-night-fallback]) .weui_text .weui-a {
        border: 1px solid rgba(255, 255, 255, .2);
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .weui_text .weui_tzt a {
        color: #6ea1ff;
    }

    html:not([data-night-fallback]) .split-line,
    html:not([data-night-fallback]) .top-line:before {
        background-color: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .top-line:before {
        border-top: 1px solid rgba(255, 255, 255, .08);
        background-color: transparent;
    }

    html:not([data-night-fallback]) .bottom-line:after {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .list .list-item {
        border: 1px solid rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .list .list-item .item-title {
        background: rgba(255, 255, 255, .07);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .list .list-item .item .tag {
        background-color: #3d74d8;
        color: #fff;
    }

    html:not([data-night-fallback]) .fixed_right_bar .moremeum {
        box-shadow: 0 0 12px 0 rgba(0, 0, 0, .5);
    }

    /* 首页频道导航（原生深色设计，仅微调文字对比） */
    html:not([data-night-fallback]) .homepage_title,
    html:not([data-night-fallback]) .homepage_video_wrap {
        color: rgba(255, 255, 255, .8);
    }

    /* 展开按钮文字 */
    html:not([data-night-fallback]) .nav-menu-item-name,
    html:not([data-night-fallback]) .nav-menu-item-name-white {
        color: rgba(255, 255, 255, .85);
    }

    html:not([data-night-fallback]) .switcher-label i {
        color: rgba(255, 255, 255, .85);
    }

    /* 灰色不可用集数 */
    html:not([data-night-fallback]) .noplaylist {
        background: rgba(255, 255, 255, .12);
        color: rgba(255, 255, 255, .38) !important;
    }

    /* 播放器侧栏/信息区在样式表后段被重置为白底（.player-box-side/.player-info background:#fff），
       这里恢复深色 */
    html:not([data-night-fallback]) .player-box-side,
    html:not([data-night-fallback]) .player-info {
        background: #1c1e23;
    }

    html:not([data-night-fallback]) .player-info .video-info-aux .tag-link {
        background: rgba(255, 255, 255, .08);
    }

    html:not([data-night-fallback]) .player-info .video-info-aux .slash {
        color: rgba(255, 255, 255, .5);
    }

    /* 排行榜顶条名次文字 */
    html:not([data-night-fallback]) .top-main {
        color: #fff;
    }

    /* 已收藏按钮（灰态） */
    html:not([data-night-fallback]) .mac_ulog.btn-collect.mac_ulog_ok {
        background: #4a4d55;
        color: #fff;
    }

    /* ============================== 13. SEO 内联样式与表现属性类漏网 ============================== */
    /* seoAssets 片段（common.html 内联）：面包屑与页面 H1 */
    html:not([data-night-fallback]) .page-h1 {
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .breadcrumb {
        color: rgba(255, 255, 255, .45);
    }

    html:not([data-night-fallback]) .breadcrumb a {
        color: rgba(255, 255, 255, .62);
    }

    html:not([data-night-fallback]) .breadcrumb a:hover {
        color: #ff7a66;
    }

    html:not([data-night-fallback]) .breadcrumb .breadcrumb-sep {
        color: rgba(255, 255, 255, .3);
    }

    html:not([data-night-fallback]) .breadcrumb .breadcrumb-current {
        color: rgba(255, 255, 255, .92);
    }

    html:not([data-night-fallback]) .slash {
        color: rgba(255, 255, 255, .45);
    }

    /* 标签名（播放源切换/排序等，原规则 .module-sorttab .module-tab-name 带场景前缀，须同级压过） */
    html:not([data-night-fallback]) .module-tab-name,
    html:not([data-night-fallback]) .module-tab .module-tab-name,
    html:not([data-night-fallback]) .module-sorttab .module-tab-name,
    html:not([data-night-fallback]) .sort-list .module-tab-name {
        background: rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .85);
    }

    /* 集数计数角标 */
    html:not([data-night-fallback]) .module-tab-item small {
        background: rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .45);
    }

    /* 豆瓣链接片名（HTML font color 表现属性，深绿在深底不可读） */
    html:not([data-night-fallback]) font[color="#007711"] {
        color: #3ddc84;
    }

    /* 图片占位渐变（裂图/加载中）深色版，配套逻辑见 style.css「图片加载失败/加载中占位」 */
    html:not([data-night-fallback]) .module-item-cover,
    html:not([data-night-fallback]) .module-item-pic,
    html:not([data-night-fallback]) .swiper-slide,
    html:not([data-night-fallback]) .mobile-play,
    html:not([data-night-fallback]) .detail-pic {
        background-image: linear-gradient(135deg, #262930 0%, #1e2127 100%);
    }

    /* 弹层里深色提示条保持原样：.popup-msg/#shortcuts-info/.layui-layer-msg 本就是深底白字 */
