
/* TamilYogi Porcelain Ink style — light, subtle, low-radius, no green */
:root{
  --typi-bg:#f6f8fb;
  --typi-panel:#ffffff;
  --typi-panel-soft:#f2f5f7;
  --typi-border:#e2e8ee;
  --typi-text:#21303b;
  --typi-muted:#68757f;
  --typi-accent:#33485c;
  --typi-accent-2:#2b3e50;
  --typi-link:#3d5b75;
  --typi-shadow:0 8px 22px rgba(27,42,56,.04);
  --typi-radius:8px;
}
body{background:var(--typi-bg);color:var(--typi-text)}
body, button, input, select, textarea{font-weight:400}
a{color:var(--typi-link)}
a:hover{color:var(--typi-accent-2)}
.site,.site.grid-container,.site-content{background:transparent}
.site-header,.main-navigation,.inside-header,.inside-navigation{background:#fff}
.site-header{border-bottom:1px solid var(--typi-border);box-shadow:0 3px 14px rgba(27,42,56,.03)}
.main-navigation .main-nav ul li a,.main-navigation .menu-toggle,.main-navigation .menu-bar-item > a{font-size:13px;font-weight:500;color:var(--typi-text)}
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a{background:#f0f4f7;color:var(--typi-accent)}
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.sidebar .widget,
.widget,
.wp-block-group,
.wp-block-search,
.archive .post,
.search .post,
.page .entry-content,
.single .entry-content{background:var(--typi-panel);border:1px solid var(--typi-border);border-radius:var(--typi-radius);box-shadow:var(--typi-shadow)}
.inside-article,.sidebar .widget,.widget{padding:18px}
.entry-title,h1,h2,h3,h4,h5{color:var(--typi-text);font-weight:600;letter-spacing:0}
.entry-title{font-size:26px}
h2{font-size:22px} h3{font-size:18px}
p,li,td,th,label,.site-content{font-size:14px;line-height:1.65}
.site-main .entry-content,.site-main .entry-summary{color:#34424c}
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
.wp-block-button__link,
.generate-back-to-top{background:var(--typi-accent);color:#fff;border:1px solid var(--typi-accent);border-radius:7px;font-size:13px;font-weight:500;padding:10px 16px}
button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover,a.button:hover,.wp-block-button__link:hover,.generate-back-to-top:hover{background:var(--typi-accent-2);border-color:var(--typi-accent-2);color:#fff}
input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],textarea,select{background:#fff;border:1px solid var(--typi-border);border-radius:7px;color:var(--typi-text);font-size:13px;min-height:42px}
input:focus,textarea:focus,select:focus{border-color:#bfcbd6;outline:none}
.entry-meta,.post-date,.byline,.cat-links,.tags-links,.nav-links,.pagination,.wp-caption-text{color:var(--typi-muted);font-size:12px}
.pagination .page-numbers,.nav-links .page-numbers{background:#fff;border:1px solid var(--typi-border);border-radius:7px;color:var(--typi-text);min-width:36px;display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 10px}
.pagination .page-numbers.current,.nav-links .page-numbers.current{background:#eef2f6;border-color:#d5dde4;color:var(--typi-accent);font-weight:600}
.ml-language-tabs button{border:1px solid var(--typi-border)!important;background:#fff!important;color:var(--typi-text)!important;border-radius:7px!important;font-size:12px!important;font-weight:500!important;padding:8px 12px!important}
.ml-language-tabs button.ml-active{border-color:#c8d3dc!important;background:#eef2f5!important;color:var(--typi-accent)!important}
/* TamilYogi 2.8.6: readable Porcelain Ink light/dark modes, presentation only. */
html[data-ty-theme="light"]{color-scheme:light}
html[data-ty-theme="dark"]{color-scheme:dark;
 --typi-bg:#111821;--typi-panel:#1c2631;--typi-panel-soft:#23303c;
 --typi-border:#344453;--typi-text:#edf2f6;--typi-muted:#b5c2cd;
 --typi-accent:#a2b8cf;--typi-accent-2:#c4d6e7;--typi-link:#b5d2f3;
 --typi-shadow:0 6px 16px rgba(0,0,0,.1);
}
/* Never inherit hard-coded green or high-contrast black typography from old widgets. */
.typi-theme-toggle{display:inline-flex!important;gap:7px;align-items:center;justify-content:center;align-self:center;flex:0 0 auto;order:50;
 margin:5px 10px 5px auto!important;padding:7px 12px!important;min-height:35px;
 background:var(--typi-panel)!important;color:var(--typi-text)!important;
 border:1px solid var(--typi-border)!important;border-radius:7px!important;
 font-family:inherit;font-size:12px!important;font-weight:500!important;line-height:1.15;white-space:nowrap;cursor:pointer}
.typi-theme-toggle:hover{background:var(--typi-panel-soft)!important;border-color:var(--typi-muted)!important;color:var(--typi-text)!important}
.typi-theme-toggle:focus-visible{outline:2px solid #6e91b8!important;outline-offset:3px}
.typi-theme-icon{font-size:16px;line-height:1;font-weight:400}
@media(max-width:768px){.typi-theme-toggle{margin:5px 7px 5px auto!important;min-height:34px;padding:6px 9px!important;font-size:11px!important}}

html[data-ty-theme="dark"] body{background:var(--typi-bg);color:var(--typi-text)}
html[data-ty-theme="dark"] .site-header,
html[data-ty-theme="dark"] .main-navigation,
html[data-ty-theme="dark"] .inside-header,
html[data-ty-theme="dark"] .inside-navigation,
html[data-ty-theme="dark"] .site-footer,
html[data-ty-theme="dark"] .site-info,
html[data-ty-theme="dark"] .footer-widgets{background:var(--typi-panel);color:var(--typi-text);border-color:var(--typi-border)}
html[data-ty-theme="dark"] .main-navigation .main-nav ul li a,
html[data-ty-theme="dark"] .main-navigation .menu-toggle,
html[data-ty-theme="dark"] .main-navigation .menu-bar-item > a,
html[data-ty-theme="dark"] .site-footer a{color:var(--typi-text)}
html[data-ty-theme="dark"] .main-navigation .main-nav ul li:hover > a,
html[data-ty-theme="dark"] .main-navigation .main-nav ul li[class*="current-menu-"] > a,
html[data-ty-theme="dark"] .main-navigation .main-nav ul li.sfHover > a{background:#2c3b4a;color:#fff}
html[data-ty-theme="dark"] .main-navigation ul ul{background:var(--typi-panel);border:1px solid var(--typi-border)}
html[data-ty-theme="dark"] .separate-containers .inside-article,
html[data-ty-theme="dark"] .separate-containers .comments-area,
html[data-ty-theme="dark"] .separate-containers .page-header,
html[data-ty-theme="dark"] .separate-containers .paging-navigation,
html[data-ty-theme="dark"] .one-container .site-content,
html[data-ty-theme="dark"] .sidebar .widget,
html[data-ty-theme="dark"] .widget,
html[data-ty-theme="dark"] .wp-block-group,
html[data-ty-theme="dark"] .wp-block-search,
html[data-ty-theme="dark"] .archive .post,
html[data-ty-theme="dark"] .search .post,
html[data-ty-theme="dark"] .page .entry-content,
html[data-ty-theme="dark"] .single .entry-content{background:var(--typi-panel);color:var(--typi-text);border-color:var(--typi-border)}
html[data-ty-theme="dark"] .entry-title,
html[data-ty-theme="dark"] .site-content :is(h1,h2,h3,h4,h5),
html[data-ty-theme="dark"] .site-content .entry-content,
html[data-ty-theme="dark"] .site-content .entry-summary,
html[data-ty-theme="dark"] .site-content .entry-content p{color:var(--typi-text)}
html[data-ty-theme="dark"] .entry-meta,
html[data-ty-theme="dark"] .post-date,
html[data-ty-theme="dark"] .byline{color:var(--typi-muted)}
html[data-ty-theme="dark"] .pagination .page-numbers,
html[data-ty-theme="dark"] .nav-links .page-numbers{background:var(--typi-panel);border-color:var(--typi-border);color:var(--typi-text)}
html[data-ty-theme="dark"] .pagination .page-numbers.current,
html[data-ty-theme="dark"] .nav-links .page-numbers.current{background:#2f4153;color:#fff}
html[data-ty-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-ty-theme="dark"] textarea,
html[data-ty-theme="dark"] select{background:#202d3a;color:#f0f5f9;border-color:#425365}
html[data-ty-theme="dark"] input::placeholder,
html[data-ty-theme="dark"] textarea::placeholder{color:#acbac6;opacity:1}
html[data-ty-theme="dark"] button[type="submit"],
html[data-ty-theme="dark"] input[type="submit"],
html[data-ty-theme="dark"] a.button,
html[data-ty-theme="dark"] .wp-block-button__link{background:#354e66;border-color:#526e87;color:#fff}
html[data-ty-theme="dark"] .ml-language-tabs button{background:#24313e!important;color:#edf2f6!important;border-color:#435261!important}
html[data-ty-theme="dark"] .ml-language-tabs button.ml-active{background:#394d61!important;border-color:#788da2!important;color:#fff!important}

/* Light mode: repair text contrast on the existing homepage buttons/cards. */
html[data-ty-theme="light"] .tyhm .tyhm-language,
html[data-ty-theme="light"] .tyhm .tyhm-language-label,
html[data-ty-theme="light"] .tyhm .tyhm-genre-link,
html[data-ty-theme="light"] .tyhm .tyhm-cat,
html[data-ty-theme="light"] .tyhm .tyhm-collection-tabs button,
html[data-ty-theme="light"] .tyhm .tyhm-quick-choice a,
html[data-ty-theme="light"] .tyhm .tyhm-carousel-nav button{background:#fff;color:#263949!important;border-color:#e0e6eb;border-radius:7px;font-weight:500}
html[data-ty-theme="light"] .tyhm .tyhm-language[aria-pressed="true"],
html[data-ty-theme="light"] .tyhm .tyhm-cat[aria-pressed="true"],
html[data-ty-theme="light"] .tyhm .tyhm-collection-tabs button[aria-pressed="true"]{background:#e9eef3;border-color:#bccbd8;color:#263b4e!important}
html[data-ty-theme="light"] .tyhm .tyhm-genre-link b,
html[data-ty-theme="light"] .tyhm .tyhm-section-jump,
html[data-ty-theme="light"] .tyhm .tyhm-simple-link,
html[data-ty-theme="light"] .tyhm .tyhm-audio{color:#35546e!important}
html[data-ty-theme="light"] .tyhm .tyhm-card-info h3,
html[data-ty-theme="light"] .tyhm .tyhm-section-top h2,
html[data-ty-theme="light"] .tyhm .tyhm-languages h2,
html[data-ty-theme="light"] .tyhm .tyhm-category-title strong{color:#21303b!important;font-weight:550}
html[data-ty-theme="light"] .tyhm .tyhm-tamilgun,
html[data-ty-theme="light"] .tyhm .tyhm-update,
html[data-ty-theme="light"] .tyhm .tyhm-panel,
html[data-ty-theme="light"] .tyhm .tyhm-loading-scene{background:#fff;border:1px solid #e1e7ec;border-radius:8px;box-shadow:0 6px 18px rgba(25,42,57,.03)}
html[data-ty-theme="light"] .tyhm .tyhm-update span,
html[data-ty-theme="light"] .tyhm .tyhm-tamilgun-text,
html[data-ty-theme="light"] .tyhm .tyhm-panel p,
html[data-ty-theme="light"] .tyhm .tyhm-loading-heading,
html[data-ty-theme="light"] .tyhm .tyhm-schedule-text{color:#475765}
html[data-ty-theme="light"] .tyhm .tyhm-tamilgun-text strong,
html[data-ty-theme="light"] .tyhm .tyhm-update strong{color:#2d4355;border-color:#d4dde5}
html[data-ty-theme="light"] .tyhm .tyhm-search input{color-scheme:light!important;background:#fff;color:#21303b;border-color:#d7e0e7}
html[data-ty-theme="light"] .tyhm .tyhm-search input::placeholder{color:#73808b;opacity:1}
html[data-ty-theme="light"] .tyhm .tyhm-loading-mark i,
html[data-ty-theme="light"] .tyhm .tyhm-progress-track:before{background:#667c91}
html[data-ty-theme="light"] .tyhm .tyhm-progress-track{background:#e1e7ed}
html[data-ty-theme="light"] .tyhm .tyhm-collection-feedback,
html[data-ty-theme="light"] .tyhm .tyhm-loading-indicator{color:#68757f}
html[data-ty-theme="light"] .tyhm .tyhm-collection-action button{background:#33485c;border-color:#33485c;color:#fff;font-weight:500}
html[data-ty-theme="light"] .tyhm .tyhm-quality,
html[data-ty-theme="light"] .tyhm .tyhm-new-badge{background:#33485c;color:#fff;font-weight:550}
html[data-ty-theme="light"] .tyhm .tyhm-type{background:#263746dd;color:#fff}
html[data-ty-theme="light"] .tyhm .tyhm-upcoming-label{color:#856021}

/* Dark: homepage uses neutral ink/slate, not the old green palette. */
html[data-ty-theme="dark"] .tyhm{--ty-bg:#111821;--ty-panel:#1c2631;--ty-sub:#243140;--ty-edge:#344453;--ty-text:#edf2f6;--ty-muted:#b5c2cd;--ty-green:#9eb5cb;background:#111821;color:#edf2f6}
html[data-ty-theme="dark"] .tyhm .tyhm-hero h1,
html[data-ty-theme="dark"] .tyhm :is(h1,h2,h3),
html[data-ty-theme="dark"] .tyhm .tyhm-card-info h3,
html[data-ty-theme="dark"] .tyhm .tyhm-category-title strong,
html[data-ty-theme="dark"] .tyhm .tyhm-section-top h2{color:#edf2f6!important;font-weight:550}
html[data-ty-theme="dark"] .tyhm .tyhm-hero p,
html[data-ty-theme="dark"] .tyhm .tyhm-languages p,
html[data-ty-theme="dark"] .tyhm .tyhm-section-top p,
html[data-ty-theme="dark"] .tyhm .tyhm-browse-helper,
html[data-ty-theme="dark"] .tyhm .tyhm-category-title,
html[data-ty-theme="dark"] .tyhm .tyhm-card-sub,
html[data-ty-theme="dark"] .tyhm .tyhm-results-status,
html[data-ty-theme="dark"] .tyhm .tyhm-footnote,
html[data-ty-theme="dark"] .tyhm .tyhm-collection-helper,
html[data-ty-theme="dark"] .tyhm .tyhm-collection-feedback,
html[data-ty-theme="dark"] .tyhm .tyhm-loading-indicator{color:#bac5d0}
html[data-ty-theme="dark"] .tyhm .tyhm-language,
html[data-ty-theme="dark"] .tyhm .tyhm-quick-choice a,
html[data-ty-theme="dark"] .tyhm .tyhm-cat,
html[data-ty-theme="dark"] .tyhm .tyhm-genre-link,
html[data-ty-theme="dark"] .tyhm .tyhm-collection-tabs button,
html[data-ty-theme="dark"] .tyhm .tyhm-carousel-nav button,
html[data-ty-theme="dark"] .tyhm .tyhm-switch button{background:#243240;border:1px solid #415366;color:#e8f0f6!important;border-radius:7px;font-size:12px;font-weight:500}
html[data-ty-theme="dark"] .tyhm .tyhm-language[aria-pressed="true"],
html[data-ty-theme="dark"] .tyhm .tyhm-cat[aria-pressed="true"],
html[data-ty-theme="dark"] .tyhm .tyhm-collection-tabs button[aria-pressed="true"],
html[data-ty-theme="dark"] .tyhm .tyhm-switch button[aria-pressed="true"]{background:#40566b;border-color:#8ca6bc;color:#fff!important}
html[data-ty-theme="dark"] .tyhm .tyhm-genre-link b,
html[data-ty-theme="dark"] .tyhm .tyhm-simple-link,
html[data-ty-theme="dark"] .tyhm .tyhm-section-jump,
html[data-ty-theme="dark"] .tyhm .tyhm-quick a,
html[data-ty-theme="dark"] .tyhm .tyhm-audio{color:#b6d5ef!important}
html[data-ty-theme="dark"] .tyhm .tyhm-search input{color-scheme:dark!important;background:#202d3a;color:#f3f6f9;border:1px solid #4a6071;border-radius:7px}
html[data-ty-theme="dark"] .tyhm .tyhm-search input::placeholder{color:#b6c2cc;opacity:1}
html[data-ty-theme="dark"] .tyhm .tyhm-search button,
html[data-ty-theme="dark"] .tyhm .tyhm-load-more,
html[data-ty-theme="dark"] .tyhm .tyhm-collection-action button,
html[data-ty-theme="dark"] .tyhm .tyhm-more-link,
html[data-ty-theme="dark"] .tyhm .tyhm-tamilgun-link{background:#3b5268;color:#fff!important;border:1px solid #59738a;border-radius:7px;font-size:12px;font-weight:500}
html[data-ty-theme="dark"] .tyhm .tyhm-tamilgun,
html[data-ty-theme="dark"] .tyhm .tyhm-update,
html[data-ty-theme="dark"] .tyhm .tyhm-panel,
html[data-ty-theme="dark"] .tyhm .tyhm-loading-scene,
html[data-ty-theme="dark"] .tyhm .tyhm-none,
html[data-ty-theme="dark"] .tyhm .tyhm-inline-error{background:#1b2835;border:1px solid #3c5062;color:#dae5ed;box-shadow:none;border-radius:8px}
html[data-ty-theme="dark"] .tyhm .tyhm-update strong,
html[data-ty-theme="dark"] .tyhm .tyhm-update span,
html[data-ty-theme="dark"] .tyhm .tyhm-tamilgun-label,
html[data-ty-theme="dark"] .tyhm .tyhm-tamilgun-text,
html[data-ty-theme="dark"] .tyhm .tyhm-tamilgun-text strong,
html[data-ty-theme="dark"] .tyhm .tyhm-panel p,
html[data-ty-theme="dark"] .tyhm .tyhm-schedule-text,
html[data-ty-theme="dark"] .tyhm .tyhm-loading-heading{color:#e2ebf3;border-color:#60758a}
html[data-ty-theme="dark"] .tyhm .tyhm-switch{background:#18232d;border:1px solid #3f5060}
html[data-ty-theme="dark"] .tyhm .tyhm-poster{background:#253444;border:1px solid #435369;border-radius:8px}
html[data-ty-theme="dark"] .tyhm .tyhm-poster-placeholder{color:#c1d0db}
html[data-ty-theme="dark"] .tyhm .tyhm-card{background:transparent;color:#edf2f6}
html[data-ty-theme="dark"] .tyhm .tyhm-quality,
html[data-ty-theme="dark"] .tyhm .tyhm-new-badge,
html[data-ty-theme="dark"] .tyhm .tyhm-type{background:#354b5f;color:#f2f6fa;border:1px solid #597187;font-weight:500}
html[data-ty-theme="dark"] .tyhm .tyhm-load-more:hover,
html[data-ty-theme="dark"] .tyhm .tyhm-collection-action button:hover{background:#526c84}
html[data-ty-theme="dark"] .tyhm .tyhm-progress-track{background:#304558}
html[data-ty-theme="dark"] .tyhm .tyhm-loading-mark i,
html[data-ty-theme="dark"] .tyhm .tyhm-progress-track:before{background:#9ab4cb}

/* Movie and TV show: color all hard-coded legacy text and controls. Keep the iframe black. */
html[data-ty-theme="light"] .cpx-tv .tytv-browser{background:#fff;border:1px solid #e2e8ee;color:#21303b}
html[data-ty-theme="light"] .cpx-tv .tytv-ep-button,
html[data-ty-theme="light"] .cpx-tv .tytv-ep-search,
html[data-ty-theme="light"] .cpx-tv .tytv-ep-range{background:#fff;color:#21303b;border-color:#dce5eb;font-weight:500}
html[data-ty-theme="light"] .cpx-tv .tytv-ep-button.is-selected{background:#e9eef3;border-color:#aebfce;color:#253a4d}
html[data-ty-theme="light"] .cpx-tv .tytv-latest-banner{background:#33485c;color:#fff;border-color:#33485c;font-weight:500}
html[data-ty-theme="light"] .cpx-tv .tytv-fresh-badge{background:#33485c;color:#fff;font-weight:550}
html[data-ty-theme="light"] .cpx-tv .tytv-episode-hint,
html[data-ty-theme="light"] .cpx-tv .tytv-legacy-note,
html[data-ty-theme="light"] .cpx-tv .tytv-none{color:#5d6f7c}
html[data-ty-theme="light"] .cpx .cpx-server-meta,
html[data-ty-theme="light"] .cpx .cpx-section-sub{color:#586976}
html[data-ty-theme="light"] .cpx .cpx-support .ty-badge{color:#33485c}
html[data-ty-theme="light"] .cpx .cpx-download{color:#fff}
html[data-ty-theme="dark"] .cpx{--cx-bg:#111821;--cx-panel:#1c2631;--cx-panel2:#243140;--cx-border:#344453;--cx-green:#9eb5cb;--cx-text:#edf2f6;--cx-muted:#b5c2cd;--cx-blue:#b3d2f1;background:#111821;color:#edf2f6}
html[data-ty-theme="dark"] .cpx .cpx-hero,
html[data-ty-theme="dark"] .cpx .cpx-section,
html[data-ty-theme="dark"] .cpx .cpx-download-card,
html[data-ty-theme="dark"] .cpx .cpx-support,
html[data-ty-theme="dark"] .cpx-tv .tytv-browser{background:#1c2631;border:1px solid #344453;color:#edf2f6;box-shadow:none}
html[data-ty-theme="dark"] .cpx .cpx-hero{background:linear-gradient(180deg,#23303e,#1c2631)}
html[data-ty-theme="dark"] .cpx .cpx-title{color:#f4f7fa!important;font-weight:550!important}
html[data-ty-theme="dark"] .cpx .cpx-eyebrow,
html[data-ty-theme="dark"] .cpx .cpx-original,
html[data-ty-theme="dark"] .cpx .cpx-tagline,
html[data-ty-theme="dark"] .cpx .cpx-section-sub,
html[data-ty-theme="dark"] .cpx .cpx-label,
html[data-ty-theme="dark"] .cpx .cpx-note,
html[data-ty-theme="dark"] .cpx .cpx-crumb,
html[data-ty-theme="dark"] .cpx .cpx-crumb a,
html[data-ty-theme="dark"] .cpx .cpx-server-meta,
html[data-ty-theme="dark"] .cpx .cpx-download-info,
html[data-ty-theme="dark"] .cpx .cpx-metadata dt,
html[data-ty-theme="dark"] .cpx .cpx-home-mini,
html[data-ty-theme="dark"] .cpx-tv .tytv-episode-hint,
html[data-ty-theme="dark"] .cpx-tv .tytv-legacy-note,
html[data-ty-theme="dark"] .cpx-tv .tytv-none{color:#b9c6d0}
html[data-ty-theme="dark"] .cpx .cpx-section-title,
html[data-ty-theme="dark"] .cpx .cpx-server-name,
html[data-ty-theme="dark"] .cpx .cpx-download-name,
html[data-ty-theme="dark"] .cpx .cpx-metadata dd,
html[data-ty-theme="dark"] .cpx .cpx-simple-body,
html[data-ty-theme="dark"] .cpx .cpx-support strong{color:#f1f5f9;font-weight:550}
html[data-ty-theme="dark"] .cpx .cpx-chip,
html[data-ty-theme="dark"] .cpx .cpx-pill,
html[data-ty-theme="dark"] .cpx .cpx-tab,
html[data-ty-theme="dark"] .cpx .cpx-action,
html[data-ty-theme="dark"] .cpx .cpx-server,
html[data-ty-theme="dark"] .cpx-tv .tytv-ep-button,
html[data-ty-theme="dark"] .cpx-tv .tytv-ep-search,
html[data-ty-theme="dark"] .cpx-tv .tytv-ep-range{background:#273645;border:1px solid #425768;color:#edf2f6!important;border-radius:7px;font-weight:500}
html[data-ty-theme="dark"] .cpx .cpx-tab.is-selected,
html[data-ty-theme="dark"] .cpx .cpx-server.active,
html[data-ty-theme="dark"] .cpx-tv .tytv-ep-button.is-selected{background:#3a5064;border:1px solid #91a8bc;color:#fff!important}
html[data-ty-theme="dark"] .cpx .cpx-action--primary,
html[data-ty-theme="dark"] .cpx .cpx-download,
html[data-ty-theme="dark"] .cpx-tv .tytv-latest-banner{background:#435d74!important;border:1px solid #7590a8!important;color:#fff!important;font-weight:500}
html[data-ty-theme="dark"] .cpx-tv .tytv-fresh-badge{background:#405a73;color:#fff;font-weight:550}
html[data-ty-theme="dark"] .cpx .cpx-server-badge{background:#405468;color:#ecf2f8}
html[data-ty-theme="dark"] .cpx .cpx-download-info span{background:#314456;color:#e6eef5}
html[data-ty-theme="dark"] .cpx .cpx-metadata-row{border-bottom-color:#334555}
html[data-ty-theme="dark"] .cpx .cpx-home-mini a,
html[data-ty-theme="dark"] .cpx .cpx-metadata dd a{color:#b3d2f1}
html[data-ty-theme="dark"] .cpx .cpx-play-icon{background:#3a536b}
html[data-ty-theme="dark"] .cpx .cpx-spinner,
html[data-ty-theme="dark"] .cpx .v3-spinner{border-top-color:#9eb5cb}
html[data-ty-theme="dark"] .cpx .v3-video-box{background:#050608}

/* Existing archive/search templates have their own inline dark palettes. Override both modes. */
html[data-ty-theme="light"] .ty-archive-page,
html[data-ty-theme="light"] .ty-search-page{--ta-bg:#f6f8fb;--ta-main:#21303b;--ta-muted:#68757f;--ta-border:#e2e8ee;--ta-accent:#33485c;--ty-bg:#f6f8fb;--ty-panel:#fff;--ty-border:#e2e8ee;--ty-ink:#21303b;--ty-muted:#68757f;--ty-accent:#33485c;background:#f6f8fb;color:#21303b}
html[data-ty-theme="dark"] .ty-archive-page,
html[data-ty-theme="dark"] .ty-search-page{--ta-bg:#111821;--ta-main:#edf2f6;--ta-muted:#b5c2cd;--ta-border:#344453;--ta-accent:#9eb5cb;--ty-bg:#111821;--ty-panel:#1c2631;--ty-border:#344453;--ty-ink:#edf2f6;--ty-muted:#b5c2cd;--ty-accent:#9eb5cb;background:#111821;color:#edf2f6}
html[data-ty-theme="light"] .ty-archive-page :is(.ty-archive-head h1,.ty-archive-toolbar h2,.ty-archive-details h3),
html[data-ty-theme="light"] .ty-search-page :is(.ty-search-top h1,.ty-search-results-head h2,.ty-search-info h3){color:#21303b!important;font-weight:550}
html[data-ty-theme="dark"] .ty-archive-page :is(.ty-archive-head h1,.ty-archive-toolbar h2,.ty-archive-details h3),
html[data-ty-theme="dark"] .ty-search-page :is(.ty-search-top h1,.ty-search-results-head h2,.ty-search-info h3){color:#edf2f6!important;font-weight:550}
html[data-ty-theme="light"] .ty-archive-page :is(.ty-archive-crumb,.ty-archive-crumb a,.ty-archive-description,.ty-archive-kicker,.ty-archive-count,.ty-archive-year,.ty-archive-load-status),
html[data-ty-theme="light"] .ty-search-page :is(.ty-search-breadcrumb,.ty-search-breadcrumb a,.ty-search-top p,.ty-search-count,.ty-search-year,.ty-search-load-status){color:#667782}
html[data-ty-theme="dark"] .ty-archive-page :is(.ty-archive-crumb,.ty-archive-crumb a,.ty-archive-description,.ty-archive-kicker,.ty-archive-count,.ty-archive-year,.ty-archive-load-status),
html[data-ty-theme="dark"] .ty-search-page :is(.ty-search-breadcrumb,.ty-search-breadcrumb a,.ty-search-top p,.ty-search-count,.ty-search-year,.ty-search-load-status){color:#b9c6d0}
html[data-ty-theme="light"] .ty-archive-page .ty-archive-audio,
html[data-ty-theme="light"] .ty-search-page :is(.ty-search-audio,.ty-search-highlight){color:#42617a}
html[data-ty-theme="dark"] .ty-archive-page .ty-archive-audio,
html[data-ty-theme="dark"] .ty-search-page :is(.ty-search-audio,.ty-search-highlight){color:#b5d5ee}
html[data-ty-theme="light"] .ty-archive-page :is(.ty-archive-back,.ty-archive-loadmore,.ty-archive-pagination a,.ty-archive-pagination span),
html[data-ty-theme="light"] .ty-search-page :is(.ty-search-loadmore,.ty-search-pagination a,.ty-search-pagination span){background:#fff;border:1px solid #dce4e9;color:#2e4355!important;border-radius:7px;font-weight:500}
html[data-ty-theme="dark"] .ty-archive-page :is(.ty-archive-back,.ty-archive-loadmore,.ty-archive-pagination a,.ty-archive-pagination span),
html[data-ty-theme="dark"] .ty-search-page :is(.ty-search-loadmore,.ty-search-pagination a,.ty-search-pagination span){background:#273746;border:1px solid #435669;color:#edf2f6!important;border-radius:7px;font-weight:500}
html[data-ty-theme="light"] .ty-archive-page .ty-archive-pagination .current,
html[data-ty-theme="light"] .ty-search-page .current{background:#eaf0f4;border-color:#cbd7df;color:#30475b!important}
html[data-ty-theme="dark"] .ty-archive-page .ty-archive-pagination .current,
html[data-ty-theme="dark"] .ty-search-page .current{background:#3b5063;border-color:#8da3b7;color:#fff!important}
html[data-ty-theme="light"] .ty-archive-page .ty-archive-poster,
html[data-ty-theme="light"] .ty-search-page .ty-search-poster{background:#edf2f6;border-color:#dce5ec}
html[data-ty-theme="dark"] .ty-archive-page .ty-archive-poster,
html[data-ty-theme="dark"] .ty-search-page .ty-search-poster{background:#243341;border-color:#435568}
html[data-ty-theme="light"] .ty-archive-page .ty-archive-placeholder span,
html[data-ty-theme="light"] .ty-search-page .ty-search-fallback{color:#586d7e}
html[data-ty-theme="dark"] .ty-archive-page .ty-archive-placeholder span,
html[data-ty-theme="dark"] .ty-search-page .ty-search-fallback{color:#ccdae5}
html[data-ty-theme="light"] .ty-archive-page :is(.ty-archive-quality,.ty-archive-new),
html[data-ty-theme="light"] .ty-search-page :is(.ty-search-quality,.ty-search-new){background:#33485c;color:#fff;font-weight:550}
html[data-ty-theme="dark"] .ty-archive-page :is(.ty-archive-quality,.ty-archive-new),
html[data-ty-theme="dark"] .ty-search-page :is(.ty-search-quality,.ty-search-new){background:#405a73;color:#fff;font-weight:550}
html[data-ty-theme="light"] .ty-archive-page .ty-archive-empty,
html[data-ty-theme="light"] .ty-search-page .ty-search-empty,
html[data-ty-theme="light"] .ty-search-page .ty-search-top{background:#fff;border:1px solid #e2e8ee;color:#334553;border-radius:8px}
html[data-ty-theme="dark"] .ty-archive-page .ty-archive-empty,
html[data-ty-theme="dark"] .ty-search-page .ty-search-empty,
html[data-ty-theme="dark"] .ty-search-page .ty-search-top{background:#1c2631;border:1px solid #344453;color:#edf2f6;border-radius:8px}
html[data-ty-theme="light"] .ty-search-page .ty-search-form input{color-scheme:light;background:#fff;color:#21303b;border-color:#dce5eb}
html[data-ty-theme="dark"] .ty-search-page .ty-search-form input{color-scheme:dark;background:#233240;color:#edf2f6;border-color:#475a6c}
html[data-ty-theme="light"] .ty-search-page .ty-search-form button{background:#33485c;color:#fff;border-color:#33485c;font-weight:500}
html[data-ty-theme="dark"] .ty-search-page .ty-search-form button{background:#425c74;color:#fff;border-color:#597690;font-weight:500}
html[data-ty-theme="light"] .ty-search-page .ty-search-form input::placeholder{color:#71808b}
html[data-ty-theme="dark"] .ty-search-page .ty-search-form input::placeholder{color:#b3c1cc}
@media(max-width:560px){.typi-theme-toggle .typi-theme-label{font-size:11px}}
/* Search submit is a plain button (no class) in the original home template. */
html[data-ty-theme="light"] .tyhm .tyhm-search button{background:#33485c!important;border:1px solid #33485c!important;color:#fff!important;border-radius:7px;font-weight:500}
html[data-ty-theme="light"] .tyhm .tyhm-search button:hover{background:#2a3c4d!important}
html[data-ty-theme="light"] .cpx #v3-loader-text{color:#586b79!important}
html[data-ty-theme="dark"] .cpx #v3-loader-text{color:#c2d1dc!important}
/* Top-level navigation and text links retain readability even with custom GP settings. */
html[data-ty-theme="light"] .main-navigation .main-nav a,
html[data-ty-theme="light"] .site-header .site-title a{color:#243544}
html[data-ty-theme="dark"] .main-navigation .main-nav a,
html[data-ty-theme="dark"] .site-header .site-title a{color:#f0f5fa}
