:root[data-pf-theme="dark"] { color-scheme: dark; --pf-page: #08001a; --pf-text: #f1f3fc; --pf-secondary: #b4a8ce; --pf-field: #130b24; --pf-border: #ffffff30; }
:root[data-pf-theme="light"] { color-scheme: light; --pf-page: #f5f3fc; --pf-text: #261d3e; --pf-secondary: #625674; --pf-field: #fff; --pf-border: #78639040; }
html[data-pf-theme] body { background-color: var(--pf-page) !important; color: var(--pf-text); }
body :is(#pf-theme-ui, .pf-theme-toggle) { width: 44px !important; height: 44px; min-width: 44px; flex: 0 0 44px; padding: 10px !important; display: inline-grid; place-items: center; cursor: pointer; margin: 0; }
body .pf-theme-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; }
body .pf-theme-floating { position: fixed !important; bottom: 20px; left: 20px; z-index: 99999; }
body .elementor-location-header .elementor-element-118457be { flex: 1; min-width: 0; width: auto !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-theme-surface) { background-color: #fff9 !important; background-image: linear-gradient(125deg, #ffffffc9, #eee8fa99) !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor, .woocommerce, .login) :is(h1,h2,h3,h4,h5,h6,p,li,td,th,dt,dd,label,.elementor-heading-title,.elementor-widget-text-editor,.elementor-icon-list-text,.elementor-item,.woocommerce-Price-amount,.meta,.description) { color: var(--pf-text) !important; text-shadow: none !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor, .woocommerce) a { color: #5734a2; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-glass) { border-color: var(--pf-border) !important; background: radial-gradient(circle at var(--pf-x) var(--pf-y), hsla(var(--pf-hue), 80%, 60%, .13), transparent 65%), linear-gradient(125deg, #ffffffa8, #ffffff66 45%, #c4a6ef33) !important; box-shadow: inset 0 1px 0 #fff, 0 8px 24px #42335c15 !important; color: var(--pf-text) !important; text-shadow: none !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-glass-button) { color: var(--pf-text) !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .filimo-card) .filimo-hover-box { background: linear-gradient(145deg, #fffffff0, #f0eafaeb) !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .filimo-card) .elementor-heading-title { text-shadow: none !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-location-header, .elementor-location-footer) { color: var(--pf-text); }
html[data-pf-theme] body :is(#pf-theme-ui, .elementor-location-header) > .e-con,
html[data-pf-theme] body :is(#pf-theme-ui, .elementor-location-header) .pf-theme-surface { background: transparent !important; border-color: var(--pf-border) !important; }
html[data-pf-theme] body .elementor-location-header > .e-con::before { background: transparent !important; }
html[data-pf-theme] body { isolation: isolate; }
#pf-constellation { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-location-header) :is(.elementor-button-text,.elementor-button-icon,.elementor-icon,i) { color: var(--pf-text) !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-location-header) .elementor-button-icon svg { fill: currentColor !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-widget-icon-box, .elementor-widget-icon) .elementor-icon { color: #6940ab !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-widget-icon-box, .elementor-widget-icon) .elementor-icon svg { fill: currentColor !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-location-header) a[aria-label] { color: var(--pf-text) !important; }
html[data-pf-theme="light"] body .elementor-location-header :is(.elementor-element-4ab5e5c0, .elementor-element-2196ce7f) img { filter: brightness(.25); }
html[data-pf-theme="light"] body .pf-product-layout { --pf-ink: #261d3e; --pf-muted: #625674; --pf-accent: #6940ab; color: var(--pf-text); }
html[data-pf-theme="light"] body .pf-product-section { border-color: var(--pf-border); background: radial-gradient(ellipse at top right, #b794ec17, transparent 65%), linear-gradient(125deg, #ffffffa8, #ffffff6b); box-shadow: inset 0 1px 0 #fff, 0 8px 24px #42335c0e; }
html[data-pf-theme="light"] body :is(.pf-section-cast, .pf-section-related) { background: transparent; box-shadow: none; }
html[data-pf-theme="light"] body .pf-product-layout :is(.pf-product-prose,.pf-section-game p,.pf-related-info,.pf-related-info h3,.pf-related-price,.playfa-cast-name,.playfa-cast-role,#reviews .description,#reviews .meta,.elementor-heading-title) { color: var(--pf-text) !important; }
html[data-pf-theme="light"] body .pf-product-layout :is(.pf-feature-panel,.playfa-cast-item,.pf-download-panel,.pf-install-grid > div,#reviews .comment_container,#review_form_wrapper,.pf-older-reviews summary) { background: #ffffff80 !important; border-color: var(--pf-border) !important; color: var(--pf-text); }
html[data-pf-theme="light"] body .pf-section-header h2 { background-image: linear-gradient(to right, #5731b2, #b82b57, #7830ac, #285ba8); }
html[data-pf-theme] body :is(.woocommerce, .pf-product-layout, .login) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]), textarea, select) { color: var(--pf-text) !important; background: var(--pf-field) !important; border: 1px solid var(--pf-border) !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .woocommerce) :is(.shop_table,.cart_totals,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.woocommerce-checkout-review-order,.woocommerce-info,.woocommerce-message,.woocommerce-error,.wc-block-components-text-input input,.wc-block-components-totals-wrapper) { background-color: #ffffffb3 !important; color: var(--pf-text) !important; border-color: var(--pf-border) !important; }
html[data-pf-theme="dark"] body :is(#pf-theme-ui, .woocommerce) :is(.woocommerce-MyAccount-content,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-info,.woocommerce-message,.woocommerce-error) { background-color: #130b24 !important; color: var(--pf-text) !important; }
body.login .pf-theme-toggle { color: var(--pf-text); background: var(--pf-field); border: 1px solid var(--pf-border); border-radius: 14px; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-menu-cart__container, .elementor-nav-menu--dropdown, .elementor-popup-modal .dialog-widget-content) { background: #faf8ff !important; color: var(--pf-text) !important; }
html[data-pf-theme="light"] body.login #loginform { background: #fff; color: var(--pf-text); }
/* Media retains its own contrast: no image inversion or video tinting. */
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-theme-media) :is(.pf-theme-surface,.pf-glass-button) { background: #160d26b3 !important; border-color: #ffffff30 !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-theme-media) .pf-theme-surface :is(li,span,.elementor-icon-list-text) { color: #fff !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .e-loop-item) .elementor-post-info__item { color: #fff !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-theme-media, .elementor-widget-slides) :is(h1,h2,h3,h4,h5,h6,p,a,.elementor-heading-title,.elementor-slide-description,.elementor-slide-heading,.pf-glass-button) { color: #fff !important; text-shadow: 0 2px 8px #000b !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .pf-video-controls, .pf-video-dialog) .pf-glass-button { color: #fff !important; background: #161225a6 !important; }
html[data-pf-theme="light"] body .pf-video-dialog { color-scheme: dark; }
html[data-pf-theme="light"] body .pf-video-dialog .pf-player-status { color: #fff !important; }
html[data-pf-theme="light"] body :is(#pf-theme-ui, .elementor-location-footer) :is(.elementor-widget-text-editor,.elementor-button-text,.elementor-heading-title,p,a) { color: var(--pf-text) !important; text-shadow: none !important; }
@media (max-width: 1024px) {
    body .elementor-location-header .elementor-element-2196ce7f { flex: 1; min-width: 0; width: auto !important; }
    body .elementor-location-header .elementor-element-2196ce7f img { width: auto; max-width: 110px; }
    body .elementor-location-header .pf-theme-toggle { margin-inline-start: 8px; }
}
