/* 土剧TV · Logo red / white. Palette overrides only; player media stays dark. */
:root{--tj-red:#ed173e;--tj-red-hover:#cf1235;--tj-red-soft:#fff0f3;--tj-white:#fff;--tj-paper:#fff8fa;--tj-ink:#28232a;--tj-muted:#81747c;--tj-line:#f0e2e7;--red:var(--tj-red);--paper:var(--tj-white);color-scheme:light}
html,body{color-scheme:var(--tj-scheme,light)}body{background:var(--tj-paper)!important;color:var(--tj-ink)!important}a{color:var(--tj-ink)}a:hover{color:var(--tj-accent,var(--tj-red))}
.header,.sidebar,.sidebar-bg,.footer-content,.module-list,.module-paper-item,.module-card-item,.module-info-content,.module-info-footer,.module-item-content,.module-info-tag-link,.popup,.popup::after,.drop:hover .drop-content,.search-recommend,.MIZHI-results,.mxui-back-whits,.mxui-part-core-bg{background:var(--tj-white)!important;color:var(--tj-ink)!important}
.header,.sidebar,.mxui-back-whits{border-color:var(--tj-line)!important}.header{box-shadow:0 1px 0 var(--tj-line)}.footer-content{border-top:1px solid var(--tj-line)}.searchbar,.search-tag a,.search-history-tag a,.module-card-item-class,.module-card-item-footer,.module-tab-items,.module-tab-item small,.module-player-info,.player .player-heading,.module-player-handle-items,.close-popup{background:var(--tj-red-soft)!important;color:var(--tj-ink)!important}.searchbar-main.open .searchbar,.searchbar:hover{background:#fff!important;border-color:#efb5c3!important}
.search-input,.header-op-list-btn,.module-tab-item,.module-item-style,.module-play-list-link,.module-heading-tab-link,.drop-item-link,.close-popup i,.mxui-user-title,.mxui-user-list,.mxui-user-input{color:var(--tj-ink)!important}.search-input::placeholder{color:var(--tj-muted)}
.navbar-item.active,.navbar-item.active a{background:var(--tj-red-soft)!important;color:var(--tj-red)!important}.navbar-item a:hover,.navbar-item.active i,.module-heading-search-result strong,.search-tag .hot,.search-history-tag .hot,.module-paper-item-num-first,.module-info-item-content span:nth-child(2n-1):hover,.module-info-tag-link a:hover,.MIZHI-results li strong,.mxui-text-gules{color:var(--tj-red)!important}.radian::before,.navbar-item.active::before,.radian .links::before,.navbar-item.active .links::before{background:#fff!important;border-color:var(--tj-line)!important}.radian::after,.navbar-item.active::after,.radian .links::after,.navbar-item.active .links::after{background:var(--tj-paper)!important}.navbar-hr,.line{background:var(--tj-line)!important}
.color-main,.module-ranking-tab-link i,.search-tag i,.search-history-tag i,.navbar-item.active a i{background:none!important;-webkit-text-fill-color:var(--tj-red)!important;color:var(--tj-red)!important}.active-bg::after,.module-heading-tab .module-heading-tab-link.active::after,.playon i,.module-poster-items-small .module-item-note{background:var(--tj-red)!important}
.btn-main,.btn-main-linear,.main-btn,.popup-btn,.play-btn,.header-op-user,.app-downlist .app-downlist-go,.module-prompt p a,.page-current,.page-current:hover,.mxui-btns-gules,.mxui-btns-green,.mxui-user-submit,.vip-submit,.action.primary,.cashier-bar,.tj-iosapp-download{background:var(--tj-red)!important;color:#fff!important;border-color:var(--tj-red)!important;box-shadow:0 6px 16px rgba(237,23,62,.15)!important}.btn-main:hover,.main-btn:hover,.popup-btn:hover,.play-btn:hover,.header-op-user:hover,.vip-submit:hover{background:var(--tj-red-hover)!important;color:#fff!important}.btn-aux-linear{background:var(--tj-red-soft)!important;color:var(--tj-red)!important}
.play-btn-o,.btn-block-o,.module-heading-more{background:#fff!important;color:var(--tj-red)!important}.play-btn-o::after,.btn-block-o::after{border-color:#efb5c3!important}.module-tab-item.active,.module-play-list-link.active,.module-play-list-link:hover,.module-item-box .active,.module-heading-tab .module-heading-tab-link.active{background:var(--tj-red-soft)!important;color:var(--tj-red)!important}.module-play-list-link:visited{color:var(--tj-red)!important}.module-play-list-link{background:#fff!important}.page-link,.page-more{background:var(--tj-red-soft)!important;color:var(--tj-ink)}.module-item-box .active::after{border-color:#efb5c3!important}
.border::after,.module-heading-more::after,.module-tab-name::after,.module-class::after,.module-item-box a::after,.module-info-tag-link::after,.module-play-list-link::after{border-color:var(--tj-line)!important}.border-top::after,.drop-item-link::after,.module-paper-item-main a::after,.module-info-footer::after,.popup-main p:last-child::after,.border-bottom::after,.module-heading-tab::after,.module-tab-title::after,.module-class-items::after,.module-class-item::after,.module-info-introduction::after{background:var(--tj-line)!important}.module-card-item,.module-paper-item,.module-list{box-shadow:0 4px 20px rgba(96,26,46,.04)!important}
.report-content,.form-control,.message .msg-content textarea,.form-control.verify,.mxui-user-text,.mxui-user-input input,.mxui-user-input select,.mxui-user-input textarea{background:var(--tj-white)!important;color:var(--tj-ink)!important;border-color:var(--tj-line)!important}.message .msg-content .msg-wrap .msg-item .msg-item-left .uname,.message .msg-content .msg-wrap .msg-item .msg-item-left .content{color:var(--tj-ink)!important}.popup-title::before{background:var(--tj-red-soft)!important}.fixedGroup{background:var(--tj-white)!important;color:var(--tj-ink)!important;border:1px solid var(--tj-line)}
.vip-plan.is-active,.vip-plan:hover{border-color:var(--tj-red)!important;box-shadow:0 7px 18px rgba(237,23,62,.1)!important}.vip-plan-badge{background:var(--tj-red)!important}.vip-rights li:before{color:var(--tj-red)!important}.vip-buy-wrap{color:var(--tj-ink)!important}.cashier-card{border-color:var(--tj-line)!important}.cashier-card .action.primary{border-radius:9px}.gbook-quick-tip,.gbook-quick-tip i{background:var(--tj-red)!important}.mxui-user-head .mxui-list-pics{background:linear-gradient(130deg,#ed173e,#b80b31)!important}.mxui-user-head .mxui-text-white{color:#fff!important}
.tj-iosapp-dialog{background:#fff!important}.tj-iosapp-topline{color:var(--tj-red)!important}
@media(min-width:1025px){.player-box{background:#fff!important}.player .module-list.active{border-color:var(--tj-line)!important}.module-player-handle-item{border-color:var(--tj-line)!important}}
/* Keep poster overlays and actual video/canvas contrast: do not recolor media. */
.logo .tj-brand-lockup{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.logo .tj-brand-logo{width:42px!important;height:42px!important;max-width:42px!important;object-fit:contain;border-radius:10px;margin:0;background:#fff}.tj-brand-name{font-size:19px;font-weight:800;letter-spacing:-.6px;color:var(--tj-ink)}.tj-brand-name em{color:var(--tj-red);font-style:normal}
/* One state for the brand and the original MXpro stylesheet. No layout or media overrides. */
:root{--tj-scheme:light;--tj-accent:#c61539;--tj-muted:#74666e;--tj-secondary:#594d54;--tj-input:#fff;--tj-story-end:#ffe0e7;--tj-shadow:rgba(96,26,46,.06);--ink:var(--tj-ink);--muted:var(--tj-muted);--line:var(--tj-line)}
html[data-tj-theme="dark"]{--tj-scheme:dark;--tj-white:#22232a;--tj-paper:#17181e;--tj-ink:#f4f1f3;--tj-muted:#bcb1b8;--tj-secondary:#d7c9d1;--tj-line:#3d333b;--tj-red-soft:#39232d;--tj-accent:#ff738e;--tj-input:#292a32;--tj-story-end:#40212d;--tj-shadow:rgba(0,0,0,.2);color-scheme:dark}
.searchbar-main.open .searchbar,.searchbar:hover,.play-btn-o,.btn-block-o,.module-heading-more,.module-play-list-link,.radian::before,.navbar-item.active::before,.radian .links::before,.navbar-item.active .links::before,.tj-iosapp-dialog{background:var(--tj-white)!important}
.module-info .module-main,.module-class,.module-tab-name,.drop_content,.mxui-part-layout,.mxui-user-head .mxui-hide-md,.cashier-card,.vip-plan{background:var(--tj-white)!important;color:var(--tj-ink)!important;border-color:var(--tj-line)!important}
.mxui-form-control,.mxui-user-yzm{background:var(--tj-input)!important;color:var(--tj-ink)!important;border-color:var(--tj-line)!important}
.navbar-item.active,.navbar-item.active a,.navbar-item.active i,.navbar-item a:hover,.module-heading-search-result strong,.search-tag .hot,.search-history-tag .hot,.module-paper-item-num-first,.module-info-tag-link a:hover,.MIZHI-results li strong,.mxui-text-gules,.play-btn-o,.btn-block-o,.module-heading-more,.module-tab-item.active,.module-play-list-link.active,.module-play-list-link:hover,.module-play-list-link:visited,.module-heading-tab .module-heading-tab-link.active,.tj-iosapp-topline,.tj-brand-name em,.btn-aux-linear{color:var(--tj-accent)!important}
.color-main,.module-ranking-tab-link i,.search-tag i,.search-history-tag i,.navbar-item.active a i{-webkit-text-fill-color:var(--tj-accent)!important;color:var(--tj-accent)!important}
.module-info-item-title,.module-card-item-class,.module-item-caption,.module-info-introduction-content,.module-player-handle-item,.module-prompt,.foot-copyright p{color:var(--tj-muted)!important}
.mxprofoot{background:var(--tj-white)!important;border-color:var(--tj-line)!important}.mxprofoot a{color:var(--tj-ink)!important}.mxprofoot .active,.mxprofoot .active i{color:var(--tj-accent)!important}
.module-poster-bg::before{background:linear-gradient(to bottom,transparent,var(--tj-white) 85%,var(--tj-white))!important}
.fixedGroup .fixedGroup-item:hover i,.fixedGroup__cell{background:var(--tj-red-soft)!important;color:var(--tj-ink)!important}
html[data-tj-theme="dark"] .icon-yejian,html[data-tj-theme="light"] .icon-rijian{display:none!important}
html[data-tj-theme="dark"] .icon-rijian,html[data-tj-theme="light"] .icon-yejian{display:block!important}
@media(min-width:1025px){.player-box{background:var(--tj-white)!important}}
/* VIP/payment: QR codes keep their white quiet zone; payment flow is untouched. */
.order-summary,.amount,.pay-subtip,.wechat-hint,.countdown,.state-view p,.vip-plan-desc,.vip-subtitle,.vip-rights{color:var(--tj-muted)!important;border-color:var(--tj-line)!important}
.order-summary strong,.amount strong,.vip-plan-name,.vip-plan-price{color:var(--tj-ink)!important}
.cashier-card .action:not(.primary){background:var(--tj-white)!important;color:var(--tj-ink)!important;border-color:var(--tj-line)!important}
.countdown{background:var(--tj-paper)!important}.save-tip{background:var(--tj-red-soft)!important;color:var(--tj-secondary)!important}
html[data-tj-theme="dark"] .pay-status{color:#72d5a0!important}
html[data-tj-theme="dark"] .pay-status[style*="c93434"],html[data-tj-theme="dark"] .pay-status[style*="rgb(201, 52, 52)"]{color:#ff8898!important}
/* Standalone installation pages use the same cookie, palette and readable tutorial surfaces. */
.site-header~main .red{color:var(--tj-accent)}.quick-steps li,.ui-demo,.floating-note,.button.secondary{background:var(--tj-white);color:var(--tj-ink);border-color:var(--tj-line)}
.bottom-cta,.before-you-start,.guide-step .tip,.home-demo,.demo-address,.demo-dialog{background:var(--tj-red-soft);color:var(--tj-ink)}
.before-you-start ul,.guide-step>p,.demo-dialog p,.settings-row>span,.guide-nav>p,.art-caption{color:var(--tj-muted)}
.notice{background:var(--tj-red-soft);border-color:var(--tj-line);color:var(--tj-secondary)}.notice a{color:var(--tj-accent)}
.check,.step-number,.guide-nav a[aria-current]{background:var(--tj-red-soft);color:var(--tj-accent)}
.settings-row.highlighted{background:var(--tj-red-soft);border-color:var(--tj-line)}.settings-row.highlighted>span{color:var(--tj-accent)}
/* Homepage iPhone invitation is dynamically inserted, but inherits the current palette. */
.tj-iosapp-dialog h2,.tj-iosapp-dialog h3,.tj-iosapp-dialog strong{color:var(--tj-ink)!important}
.tj-iosapp-dialog p,.tj-iosapp-dialog small{color:var(--tj-muted)!important}
.tj-iosapp-close,.tj-iosapp-later{background:var(--tj-red-soft)!important;color:var(--tj-secondary)!important}
#tuju-iosapp-popup .tj-iosapp-dialog{border-color:var(--tj-line)!important}#tuju-iosapp-popup h2,#tuju-iosapp-popup .tj-iosapp-benefits{color:var(--tj-ink)!important}#tuju-iosapp-popup h2 span{color:var(--tj-accent)!important}
#tuju-iosapp-popup #tj-iosapp-description,#tuju-iosapp-popup .tj-iosapp-footnote{color:var(--tj-muted)!important}
.vip-pay-panel,.vip-submit-bar{background:var(--tj-white)!important;border-color:var(--tj-line)!important}.vip-buy-head p,.vip-current,.vip-plan-sub,.vip-plan-days,.vip-plan-original,.vip-total{color:var(--tj-muted)!important}.vip-total strong{color:var(--tj-ink)!important}
.phone{color:#383245}html[data-tj-theme="dark"]{--blue:#91beff}
@media print{html[data-tj-theme]{--tj-white:#fff;--tj-paper:#fff;--tj-ink:#222;--tj-muted:#555;--tj-secondary:#444;--tj-line:#ddd;--tj-red-soft:#fff;color-scheme:light}}
