/* Shared palette for web, native shell, profiles, policies and admin. */
html:root:root:root,html:root:root:root body,html:root:root:root body #settings-view-container#settings-view-container#settings-view-container {--browse-panel:var(--bg-card)!important;--browse-chip:var(--bg-hover)!important;--browse-text:var(--text-main)!important;--browse-muted:var(--text-sub)!important;--settings-page:var(--bg-primary)!important;--settings-surface:var(--bg-card)!important;--settings-field:var(--bg-hover)!important;--settings-text:var(--text-main)!important;--settings-secondary:var(--text-sub)!important;--settings-line:var(--border-color)!important;--settings-action:var(--selected-bg)!important}
html:root:root:root,html:root:root:root body {--browse-bg:#000!important;--bg-primary:#000!important;--bg-card:#101010!important;--bg-hover:#1c1c1c!important;--navbar-bg:#000!important;--modal-bg:#101010!important;--text-main:#fff!important;--text-sub:#a3a3a3!important;--border-color:#292929!important;--selected-bg:#fff!important;--selected-text:#000!important;--klino-home-bg:#000!important;--klino-home-panel:#101010!important;--klino-home-chip:#1c1c1c!important;--klino-mobile-solid:#000!important;--web-tab-idle:#a3a3a3!important;--web-tab-selected:#1c1c1c!important}
html:root:root:root.light-theme,html:root:root:root.light-theme body {--browse-bg:#fff!important;--bg-primary:#fff!important;--bg-card:#f5f5f5!important;--bg-hover:#eee!important;--navbar-bg:#fff!important;--modal-bg:#f5f5f5!important;--text-main:#000!important;--text-sub:#666!important;--border-color:#e0e0e0!important;--selected-bg:#000!important;--selected-text:#fff!important;--klino-home-bg:#fff!important;--klino-home-panel:#f5f5f5!important;--klino-home-chip:#eee!important;--klino-mobile-solid:#fff!important;--web-tab-idle:#666!important;--web-tab-selected:#eee!important}
html:root:root:root body,html:root:root:root body #main-content,html:root:root:root body footer,html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation,html:root:root:root body #klino-splash {background:var(--bg-primary)!important;color:var(--text-main)!important}
html:root:root:root body #navbar#navbar#navbar#navbar {background:var(--navbar-bg)!important;color:var(--text-main)!important;backdrop-filter:none!important}
html:root:root:root body :is(input,select,textarea),html:root:root:root body :is(.klino-select-menu,.klino-select-option,.settings-nav-btn,.discover-category-grid button) {color:var(--text-main)!important;background-color:var(--bg-hover)!important;border-color:var(--border-color)!important}
html:root:root:root body :is(.text-white,.text-slate-100,.text-slate-200,.text-gray-100,.text-gray-200,.metallic-title) {color:var(--text-main)}
html:root:root:root body :is(.text-slate-300,.text-slate-400,.text-gray-400) {color:var(--text-sub)!important}
html:root:root:root body :is(.bg-klino-cardBg,.bg-slate-800,.bg-slate-900,.bg-gray-800,.bg-gray-900) {background-color:var(--bg-card)!important}
html:root:root:root body :is(.hero-bg,#hero-banner img,.movie-card img,.episode-card img) {filter:none!important}
html:root:root:root body #video-modal {color:#fff;--text-main:#fff!important;--text-sub:#ddd!important;--bg-hover:#1c1c1c!important;--bg-card:#101010!important;--modal-bg:#101010!important;--selected-bg:#fff!important;--selected-text:#000!important}
html:root:root:root body #video-modal .text-white {color:#fff!important}
html:root:root:root body #klino-splash .klino-splash-wordmark {color:var(--text-main)!important;-webkit-text-fill-color:var(--text-main)!important}
html:root:root:root body #klino-splash .klino-splash-mark img {filter:brightness(0) invert(1)!important}
html:root:root:root.light-theme body #klino-splash .klino-splash-mark img {filter:brightness(0)!important}
html:root:root:root body :is(#hero-play-btn,#hero-mobile-play-btn) {background:var(--selected-bg)!important;color:var(--selected-text)!important;border-color:var(--selected-bg)!important}
html:root:root:root body #hero-watchlist-btn {background:var(--bg-hover)!important;color:var(--text-main)!important}
html:root:root:root body :is([data-klino-brand],#navbar a[aria-label="Klino Home"]) {color:var(--text-main)!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:26px;font-weight:800;letter-spacing:-1px;min-height:44px;display:inline-flex;align-items:center}
html:root:root:root body :is(#mobile-search-button,#search-container) {display:none!important}
html:root:root:root body #mobile-category-tabs {gap:6px!important;padding:8px 10px!important;overflow:visible!important;flex-wrap:nowrap!important}
html:root:root:root body #mobile-category-tabs button {flex:0 1 auto!important;min-width:0!important;padding:8px clamp(9px,3vw,16px)!important;height:40px!important;font-size:13px!important;white-space:nowrap!important;background:var(--bg-hover)!important;color:var(--text-main)!important}
html:root:root:root body #mobile-category-tabs button:is(.active,[aria-selected="true"],[aria-current="page"]) {background:var(--selected-bg)!important;color:var(--selected-text)!important}
html:root:root:root body #klino-notification-button {color:var(--text-main)!important;background:transparent!important;border:0!important}
.klino-discovery-group {margin:20px 0}.klino-discovery-group h2 {font-size:1.2rem;font-weight:700;margin-bottom:12px}.klino-discovery-row {display:flex;gap:12px;overflow-x:auto}.klino-discovery-row>* {flex:0 0 150px}.klino-discovery-genres {display:flex;flex-wrap:wrap;gap:8px}.klino-discovery-genres button {padding:10px 16px;border-radius:24px;background:var(--bg-hover);color:var(--text-main)}
.klino-discover-filters {display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.klino-discover-filters label {min-width:120px;flex:1;font-size:13px;color:var(--text-sub)}
html:root:root:root body #navbar#navbar#navbar#navbar .nav-tab {color:var(--text-main)!important}
html:root:root:root body :is(.movie-card,.continue-watching-card,.klino-cw-card) {height:auto;min-height:0;background-color:var(--bg-card);color:var(--text-main)}
html:root:root:root body :is(.movie-card,.continue-watching-card,.klino-cw-card) :is(h3,h4) {color:var(--text-main)!important}
html:root:root:root body :is(.movie-type-badge,.premium-badge) {color:#fff!important}
html:root:root:root body #mobile-category-tabs button.active-tab {background:var(--selected-bg)!important;color:var(--selected-text)!important}
@media(max-width:767px){html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation{height:calc(60px + env(safe-area-inset-bottom,0px))!important;padding:2px 4px env(safe-area-inset-bottom,0px)!important}html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation button{min-height:44px!important;gap:4px!important;padding:2px!important;font-size:11px!important}html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation :is(svg,i){width:24px!important;height:24px!important;font-size:24px!important;flex-shrink:0}html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation button>span:first-child{width:48px!important;height:30px!important;display:inline-flex;align-items:center;justify-content:center}html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation button>span:last-child{font-size:11px!important}html:root:root:root body #navbar#navbar#navbar#navbar #klino-notification-button{width:44px!important;height:44px!important;min-width:44px!important}html:root:root:root body #navbar#navbar#navbar#navbar #klino-notification-button i{font-size:22px!important}.klino-discovery-row>*{flex-basis:125px}}
/* Inactive overlays remain noninteractive. Active account/profile dialogs retain their authorization gates. */
html:root:root:root body #continue-watching-list .continue-poster-card{height:auto!important;min-height:0!important;background:var(--bg-card)!important;color:var(--text-main)!important}
html:root:root:root body #continue-watching-list .continue-poster-card h3{color:var(--text-main)!important;-webkit-text-fill-color:var(--text-main)!important;text-shadow:none!important;white-space:normal!important;overflow-wrap:anywhere}
html:root:root:root body #row-continue-watching h2{color:var(--text-main)!important;-webkit-text-fill-color:var(--text-main)!important}
html:root:root:root body #continue-watching-list .ux-continue-meta,html body .klino-continue-empty{color:var(--text-sub)!important;-webkit-text-fill-color:var(--text-sub)!important}
html{--klino-mobile-nav-pill:#333333}
html.light-theme{--klino-mobile-nav-pill:#dddddd}
html.klino-premium-unlocked [aria-label="Premium content"],html.klino-premium-unlocked #movie-detail-premium-badge,html.klino-premium-unlocked #series-detail-premium-badge{display:none!important}
[role="dialog"].hidden,#klino-splash.is-hidden {pointer-events:none!important}
html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation [data-category="Discover"] {display:none!important}
html:root:root:root body footer {margin-top:24px!important;padding-block:24px!important}
html:root:root:root body #navbar#navbar#navbar#navbar a[aria-label="Klino Home"] {font-family:inherit!important;letter-spacing:-1px!important}
html:root:root:root body #mobile-bottom-navigation#mobile-bottom-navigation#mobile-bottom-navigation .mobile-nav-btn[aria-current="page"] {color:var(--text-main)!important}
html:root:root:root body #navbar#navbar#navbar#navbar :is(#mobile-search-button,#header-search-field,#search-container) {display:none!important}
.klino-discover-filters details {flex-basis:100%}.klino-discover-filters details label {display:inline-block;margin:8px;max-width:220px}.klino-discover-filters summary {cursor:pointer;padding:10px 0;color:var(--text-main)}
#filtered-grid[hidden],#klino-discovery-sections[hidden] {display:none!important}
html:root:root:root body .movie-poster-card .movie-poster-caption {position:static!important;background:var(--bg-card)!important;color:var(--text-main)!important;padding:8px!important;min-height:0!important}
html:root:root:root body .movie-poster-card .movie-poster-art {aspect-ratio:2/3;object-fit:cover}
html:root:root:root body .continue-poster-card {min-height:0!important;height:auto!important;background:var(--bg-card)!important}
html:root:root:root body #hero-content .hero-actions button {min-height:44px;border-radius:999px}
html:root:root:root body #hero-content .hero-actions button i.fa-play {display:none!important}
html:root:root:root body #hero-artwork .hero-gradient {pointer-events:none}
@media(min-width:768px){html:root:root:root body #hero-content :is(#hero-title,#hero-synopsis,.hero-metadata){color:var(--text-main)!important;-webkit-text-fill-color:var(--text-main)!important}html:root:root:root body #hero-content{background:var(--bg-primary)!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
