/* MovieCMS direct-v2 daytime contrast (P2 batch 2, 【美工】). Loaded after each family's own CSS.
   Only colours and one panel background; no layout. html:root:root:root:root[data-portal-theme="light"] body.front = daytime only, html:root:root:root:root body.front = both themes. */

/* keke-direct-v2: the play page side column sits on the player's near-black stage in daytime;
   give it the light panel the rest of the daytime page uses, so its dark text reads. */
/* (the family rule that makes it transparent carries an id inside :is(), hence :not(#…) to outrank it) */
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-keke-direct-v2 .oletv-player-stage .oletv-player-side:not(#p2b-none){background-color:#f7f8fb!important;border-radius:12px!important}
/* keke-direct-v2: green secondary text one step darker (was ~3.3–3.7:1 on the light page). */
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-keke-direct-v2 :is(.keke-actions .keke-pill,.keke-actions .theme-toggle,.keke-lines a:not(.current),.keke-btn-secondary){color:#2f6f5d!important}
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-keke-direct-v2 :is(.keke-search button,.keke-sidebar a.current,.oletv-player-tabs a.active,.keke-lines a.current){color:#146b55!important}
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-keke-direct-v2 .keke-dock a.current{color:#8a5b00!important}
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-keke-direct-v2 .oletv-player-tabs a:not(.active){color:#5c6f68!important}

/* oletv-direct-v2 play page */
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-oletv-direct-v2 .oletv-player-episode-head span{color:#5c6f68!important}
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-oletv-direct-v2 .oletv-player-tabs a{color:#5c6f68!important}
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-oletv-direct-v2 .oletv-player-tabs a.active{color:#0a6a99!important}
/* episode buttons: light grey buttons with near-white text in daytime (render check); dark text, active one untouched */
html:root:root:root:root[data-portal-theme="light"] body.front.tpl-oletv-direct-v2 .oletv-episode-list a:not(.active){color:#1f2a28!important}
/* 全屏/投影 float over the video (dark) but can also land on the light side panel: a dark pill reads on both */
html:root:root:root:root body.front.tpl-oletv-direct-v2 .keke-video .keke-player-tools button{color:#fff!important;background-color:rgba(0,0,0,.55)!important}

/* desktop language switcher chip is dark in both themes */
@media (min-width:768px){
html:root:root:root:root body.front:is(.tpl-oletv-direct-v2,.tpl-keke-direct-v2) .keke-actions .language-switcher-trigger .language-switcher-current{color:#eef3f1!important}
}

/* iqiyi-direct-v2: pre-roll badge/countdown and loading text sit on the black loading stage */
html:root:root:root:root body.front.tpl-iqiyi-direct-v2 .player-loading-stage :is(.player-ad-badge,.player-ad-countdown){color:#fff!important}
html:root:root:root:root body.front.tpl-iqiyi-direct-v2 .player-loading-stage :is(.player-loading-text,.player-loading-hint){color:rgba(255,255,255,.78)!important}
