/*
 * BankMovie color mode v144
 * Light mode is an additive visual layer. Existing dark mode and accent themes
 * remain the default and are not rewritten.
 * Compact BB-8 switch adapted from the user-provided Uiverse.io component by Galahhad.
 */

/* ---------- Theme transition discipline ---------- */
html.bm-theme-ready body,
html.bm-theme-ready #siteHeader,
html.bm-theme-ready .bottom-nav,
html.bm-theme-ready .sidebar-menu,
html.bm-theme-ready .notif-sidebar,
html.bm-theme-ready .auth-menu,
html.bm-theme-ready .grid-item,
html.bm-theme-ready .scroll-card,
html.bm-theme-ready .movie-card,
html.bm-theme-ready .collection-card,
html.bm-theme-ready .card,
html.bm-theme-ready .panel {
  transition-property: background-color,background,border-color,color,box-shadow,opacity;
  transition-duration: .28s;
  transition-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  html.bm-theme-ready body,
  html.bm-theme-ready #siteHeader,
  html.bm-theme-ready .bottom-nav,
  html.bm-theme-ready .sidebar-menu,
  html.bm-theme-ready .notif-sidebar,
  html.bm-theme-ready .auth-menu,
  html.bm-theme-ready .grid-item,
  html.bm-theme-ready .scroll-card,
  html.bm-theme-ready .movie-card,
  html.bm-theme-ready .collection-card,
  html.bm-theme-ready .card,
  html.bm-theme-ready .panel { transition: none !important; }
}

/* ---------- Compact BB-8 theme switch ---------- */
.bm-theme-control {
  --bb8-unit: 6px;
  --bb8-width: 10.625em;
  --bb8-height: 5.625em;
  --bb8-ball: 4.375em;
  --bb8-offset: calc((var(--bb8-height) - var(--bb8-ball)) / 2);
  --bb8-accent: #de7d2f;
  --bb8-white: #fff;
  --bb8-radius: 99em;
  --bb8-transition: .38s cubic-bezier(.2,.8,.2,1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: calc(var(--bb8-width) * var(--bb8-unit));
  height: calc(var(--bb8-height) * var(--bb8-unit));
  font-size: var(--bb8-unit);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.bm-theme-control,
.bm-theme-control * {
  box-sizing: border-box;
}
.bm-theme-control__input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.bm-theme-control__scene {
  position: relative;
  width: var(--bb8-width);
  height: var(--bb8-height);
  overflow: hidden;
  border: .12em solid rgba(255,255,255,.18);
  border-radius: var(--bb8-radius);
  background:
    radial-gradient(circle at 25% 28%,#fff 0 .08em,transparent .1em),
    radial-gradient(circle at 65% 22%,#fff 0 .07em,transparent .09em),
    radial-gradient(circle at 78% 58%,#fff 0 .09em,transparent .11em),
    linear-gradient(180deg,#0c1635 0%,#203b67 48%,#7fa9c5 49%,#dbeaf2 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.28),0 .8em 2.6em rgba(0,0,0,.28);
  transition: background var(--bb8-transition),border-color var(--bb8-transition),box-shadow var(--bb8-transition);
}
.bm-theme-control__scene::before {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:29%;
  background:#b18d71;
  transition:background var(--bb8-transition),transform var(--bb8-transition);
}
.bm-theme-control__scene::after {
  content:"";
  position:absolute;
  top:.7em;
  right:1.2em;
  width:1.15em;
  height:1.15em;
  border-radius:50%;
  background:#fdf4df;
  box-shadow:0 0 .75em #fff3d5;
  transition:transform var(--bb8-transition),opacity var(--bb8-transition);
}
.bm-theme-control__stars {
  position:absolute;
  inset:0;
  opacity:1;
  transition:opacity var(--bb8-transition),transform var(--bb8-transition);
}
.bm-theme-control__stars::before,
.bm-theme-control__stars::after {
  content:"";
  position:absolute;
  width:.11em;
  height:.11em;
  border-radius:50%;
  background:#fff;
  color:#fff;
  filter:drop-shadow(0 0 .08em #fff);
}
.bm-theme-control__stars::before {
  left:5.2em;
  top:.9em;
  box-shadow:1.1em .7em,-1.9em 1.5em,2.7em 1.6em,-3.8em .4em,-.8em 2.8em,3.6em 3.1em;
}
.bm-theme-control__stars::after {
  left:6.2em;
  top:2.2em;
  box-shadow:1.8em -.7em,-2.9em .6em,2.6em 1.5em,-4.8em 1.8em,.5em 2.2em;
}
.bm-theme-control__clouds {
  position:absolute;
  inset:0;
  transition:opacity var(--bb8-transition),transform var(--bb8-transition);
}
.bm-theme-control__cloud,
.bm-theme-control__cloud::before,
.bm-theme-control__cloud::after {
  position:absolute;
  content:"";
  border-radius:99em;
  background:rgba(255,255,255,.88);
  filter:blur(.04em);
}
.bm-theme-control__cloud { width:1.15em;height:.42em;right:1.45em;top:1.55em; }
.bm-theme-control__cloud::before { width:.75em;height:.55em;left:-.4em;top:-.25em; }
.bm-theme-control__cloud::after { width:.7em;height:.48em;right:-.35em;top:-.2em; }
.bm-theme-control__cloud--two { right:4.7em;top:3.05em;transform:scale(.78);opacity:.72; }
.bm-theme-control__planet {
  position:absolute;
  border-radius:50%;
  opacity:1;
  transition:opacity var(--bb8-transition),transform var(--bb8-transition);
}
.bm-theme-control__planet--one {
  width:1.8em;height:1.8em;left:1.1em;top:.75em;
  background:linear-gradient(#fff,#7894aa);
  box-shadow:inset -.22em -.16em .2em rgba(48,68,84,.35),0 0 .35em rgba(255,255,255,.4);
}
.bm-theme-control__planet--two {
  width:.72em;height:.72em;left:3.55em;top:2.15em;
  background:linear-gradient(#f4f8fb,#7997ab);
}
.bm-bb8 {
  position:absolute;
  z-index:3;
  left:var(--bb8-offset);
  top:calc(var(--bb8-offset) - 1.5em);
  display:flex;
  flex-direction:column;
  align-items:center;
  transition:left var(--bb8-transition),transform var(--bb8-transition);
}
.bm-bb8__head-wrap {
  position:relative;
  z-index:2;
  transform-origin:1.25em 3.75em;
  transition:transform .2s ease;
}
.bm-bb8__antenna {
  position:absolute;
  width:.08em;
  border-radius:99em 99em 0 0;
  background:linear-gradient(#111 .2em,#c8d0d4 .2em);
  transform:translateY(-90%);
}
.bm-bb8__antenna--one { height:.95em;right:.92em; }
.bm-bb8__antenna--two { height:.43em;left:1.32em;background:#c8d0d4; }
.bm-bb8__head {
  position:relative;
  width:2.5em;
  height:1.7em;
  margin-bottom:-.17em;
  overflow:hidden;
  border-radius:99em 99em 0 0;
  background:
    linear-gradient(transparent .08em,#5c6368 .08em .31em,transparent .31em .4em,var(--bb8-accent) .4em .53em,transparent .53em 1.32em,#b9c0c4 1.32em 1.44em,transparent 1.44em),
    linear-gradient(45deg,transparent .19em,var(--bb8-white) .19em 1.25em,transparent 1.25em),
    linear-gradient(-45deg,transparent .19em,var(--bb8-white) .19em 1.25em,transparent 1.25em),
    linear-gradient(var(--bb8-white) 1.25em,transparent 1.25em);
  filter:drop-shadow(0 .06em .12em rgba(0,0,0,.45));
}
.bm-bb8__head::before {
  content:"";
  position:absolute;
  top:.42em;
  left:50%;
  width:.56em;
  height:.56em;
  border-radius:50%;
  transform:translateX(-50%);
  background:radial-gradient(circle at 42% 65%,#f22 0 .11em,transparent .13em),linear-gradient(45deg,#050505 .18em,#686d70 .31em .37em,#050505 .5em);
  box-shadow:0 0 0 .09em #d6dadd,.56em .28em 0 -.14em #111,.56em .28em 0 -.09em var(--bb8-white),.56em .28em 0 -.05em #111;
}
.bm-bb8__head::after {
  content:"";
  position:absolute;
  left:0;
  bottom:.36em;
  width:100%;
  height:.19em;
  background:repeating-linear-gradient(90deg,var(--bb8-accent) 0 .13em,transparent .13em .22em);
}
.bm-bb8__body {
  position:relative;
  width:var(--bb8-ball);
  height:var(--bb8-ball);
  overflow:hidden;
  border-radius:50%;
  transform:rotate(45deg);
  background:
    linear-gradient(-90deg,var(--bb8-white) 4%,var(--bb8-accent) 4% 10%,transparent 10% 90%,var(--bb8-accent) 90% 96%,var(--bb8-white) 96%),
    linear-gradient(var(--bb8-white) 4%,var(--bb8-accent) 4% 10%,transparent 10% 90%,var(--bb8-accent) 90% 96%,var(--bb8-white) 96%),
    linear-gradient(90deg,transparent 2.15em,#b8c0c5 2.15em 2.22em,transparent 2.22em),
    linear-gradient(transparent 2.15em,#b8c0c5 2.15em 2.22em,transparent 2.22em),
    var(--bb8-white);
  transition:transform var(--bb8-transition),background-color var(--bb8-transition);
  filter:drop-shadow(0 .14em .18em rgba(0,0,0,.34));
}
.bm-bb8__body::before {
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  width:2.62em;
  height:2.62em;
  border:.31em solid var(--bb8-accent);
  border-radius:50%;
  transform:translate(-50%,-50%);
  background:
    radial-gradient(circle at center,#ececec 0 1em,transparent 1.03em),
    radial-gradient(circle at center,var(--bb8-white) 0 1.25em,transparent 1.28em),
    linear-gradient(-90deg,transparent 42%,var(--bb8-accent) 42% 58%,transparent 58%),
    linear-gradient(var(--bb8-white) 42%,var(--bb8-accent) 42% 58%,var(--bb8-white) 58%);
}
.bm-bb8__body::after {
  content:"";
  position:absolute;
  left:.56em;
  bottom:1.5em;
  width:.18em;
  height:.18em;
  border-radius:50%;
  background:#ececec;
  color:#ececec;
  box-shadow:.88em .94em,0 -1.25em,.88em -2.12em,2.13em -2.12em,3.06em -1.25em,3.06em 0,2.13em .94em;
}
.bm-bb8__shadow {
  position:absolute;
  z-index:2;
  left:calc(var(--bb8-offset) - .8em);
  bottom:.1em;
  width:var(--bb8-ball);
  height:18%;
  border-radius:50%;
  background:#3a271c;
  opacity:.24;
  filter:blur(.13em);
  transform:skew(-65deg);
  transition:left var(--bb8-transition),transform var(--bb8-transition),opacity var(--bb8-transition);
}
.bm-theme-control:hover .bm-bb8__head-wrap { transform:rotate(5deg); }
.bm-theme-control:active .bm-bb8__head-wrap { transform:rotate(18deg); }
.bm-theme-control:focus-within .bm-theme-control__scene {
  outline:2px solid rgba(49,133,255,.88);
  outline-offset:2px;
}
html[data-bm-color-mode="light"] .bm-theme-control__scene {
  background:linear-gradient(180deg,#87b5db 0%,#d7ebf5 58%,#f4d2a6 59%,#c49167 100%);
  border-color:rgba(15,23,42,.14);
  box-shadow:inset 0 1px rgba(255,255,255,.65),0 .7em 2.2em rgba(42,67,93,.18);
}
html[data-bm-color-mode="light"] .bm-theme-control__stars,
html[data-bm-color-mode="light"] .bm-theme-control__planet { opacity:0;transform:translateY(1em); }
html[data-bm-color-mode="light"] .bm-theme-control__clouds { opacity:1;transform:translateX(0); }
html[data-bm-color-mode="light"] .bm-theme-control__scene::after { opacity:1;transform:translateY(0); }
html[data-bm-color-mode="light"] .bm-bb8 { left:var(--bb8-offset); }
html[data-bm-color-mode="light"] .bm-bb8__body { transform:rotate(45deg); }
html[data-bm-color-mode="light"] .bm-bb8__shadow { left:calc(var(--bb8-offset) - .8em);transform:skew(-65deg); }
html[data-bm-color-mode="dark"] .bm-theme-control__scene {
  background:linear-gradient(180deg,#070e2b 0%,#172b52 48%,#2c4770 100%);
}
html[data-bm-color-mode="dark"] .bm-theme-control__scene::before { background:#253044; }
html[data-bm-color-mode="dark"] .bm-theme-control__scene::after { opacity:0;transform:translateY(4em); }
html[data-bm-color-mode="dark"] .bm-theme-control__clouds { opacity:0;transform:translateX(7em); }
html[data-bm-color-mode="dark"] .bm-theme-control__stars,
html[data-bm-color-mode="dark"] .bm-theme-control__planet { opacity:1;transform:none; }
html[data-bm-color-mode="dark"] .bm-bb8 { left:calc(100% - var(--bb8-ball) - var(--bb8-offset)); }
html[data-bm-color-mode="dark"] .bm-bb8__body { transform:rotate(225deg); }
html[data-bm-color-mode="dark"] .bm-bb8__shadow { left:calc(100% - var(--bb8-ball) - var(--bb8-offset) + .8em);transform:skew(65deg); }

@media (max-width: 991px) {
  .bm-theme-control { --bb8-unit: 5.2px; order:2; }
  #siteHeader .bm-header-collection { display:none !important; }
  #siteHeader .header-actions { gap:7px !important; }
}
@media (max-width: 420px) {
  .bm-theme-control { --bb8-unit: 4.8px; }
}

/* ---------- Light palette / design tokens ---------- */
html[data-bm-color-mode="light"] {
  --bm-bg-0:#f6f8fc;
  --bm-bg-1:#eef3f8;
  --bm-bg-2:#e7edf5;
  --bm-surface:rgba(255,255,255,.88);
  --bm-surface-strong:#ffffff;
  --bm-surface-soft:rgba(15,23,42,.045);
  --bm-line:rgba(15,23,42,.10);
  --bm-line-strong:rgba(var(--accent-rgb,47,128,255),.30);
  --bm-text:#121a28;
  --bm-text-2:#4d5a6e;
  --bm-text-3:#7b8798;
  --bm-shadow-card:0 14px 38px rgba(26,44,71,.09);
  --bm-shadow-float:0 24px 65px rgba(26,44,71,.16);
  --bg-primary:#f6f8fc;
  --bg-secondary:#ffffff;
  --bg-tertiary:#edf2f7;
  --bg-card:#ffffff;
  --bg-card-hover:#fbfdff;
  --text-primary:#121a28;
  --text-secondary:#4d5a6e;
  --text-tertiary:#7b8798;
  --border-subtle:rgba(15,23,42,.10);
  --surface:#ffffff;
  --card-bg:#ffffff;
  --border-color:rgba(15,23,42,.10);
  color-scheme:light;
}
html[data-bm-color-mode="light"] body {
  color:var(--bm-text) !important;
  background:
    radial-gradient(900px 520px at 92% -12%,rgba(49,133,255,.10),transparent 68%),
    radial-gradient(760px 460px at 5% 24%,rgba(140,92,255,.06),transparent 68%),
    linear-gradient(180deg,#f8fafc 0%,#f1f5f9 44%,#edf2f7 100%) !important;
}
html[data-bm-color-mode="light"] body::before {
  background:
    linear-gradient(rgba(255,255,255,.44),rgba(255,255,255,.44)),
    radial-gradient(circle at 15% 10%,rgba(49,133,255,.065),transparent 38%) !important;
  opacity:1 !important;
}
html[data-bm-color-mode="light"] ::selection { background:rgba(49,133,255,.24);color:#0b1320; }
html[data-bm-color-mode="light"] * { scrollbar-color:rgba(68,102,150,.38) transparent; }
html[data-bm-color-mode="light"] *::-webkit-scrollbar-thumb { background:rgba(68,102,150,.30) !important; }

/* ---------- Header ---------- */
html[data-bm-color-mode="light"] #siteHeader {
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(250,252,255,.84)) !important;
  border-bottom:1px solid rgba(15,23,42,.08) !important;
  box-shadow:0 14px 38px rgba(27,47,75,.10) !important;
  backdrop-filter:blur(20px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(135%) !important;
}
html[data-bm-color-mode="light"] body.has-hero #siteHeader:not(.header-scrolled) {
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.68)) !important;
}
html[data-bm-color-mode="light"] #siteHeader .desktop-nav-item,
html[data-bm-color-mode="light"] #siteHeader .user-trigger,
html[data-bm-color-mode="light"] #siteHeader .admin-panel-trigger,
html[data-bm-color-mode="light"] #siteHeader .notif-bell,
html[data-bm-color-mode="light"] #siteHeader .menu-btn,
html[data-bm-color-mode="light"] #siteHeader .bm-header-collection {
  color:#283548 !important;
}
html[data-bm-color-mode="light"] #siteHeader .desktop-nav-item:hover,
html[data-bm-color-mode="light"] #siteHeader .desktop-nav-item.active {
  color:#1264d8 !important;
  background:rgba(49,133,255,.09) !important;
}
html[data-bm-color-mode="light"] #siteHeader .notif-bell,
html[data-bm-color-mode="light"] #siteHeader .menu-btn,
html[data-bm-color-mode="light"] #siteHeader .bm-header-collection,
html[data-bm-color-mode="light"] #siteHeader .admin-panel-trigger,
html[data-bm-color-mode="light"] #siteHeader .user-trigger {
  background:rgba(255,255,255,.72) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.8),0 8px 22px rgba(27,47,75,.08) !important;
}
html[data-bm-color-mode="light"] #siteHeader .bm-header-search-dark { background:#f9fbfe !important; }
html[data-bm-color-mode="light"] #siteHeader .bm-header-search-white { background:#ffffff !important; }
html[data-bm-color-mode="light"] #siteHeader .bm-header-search-border { background:linear-gradient(90deg,#6aa7ff,#8d72ff,#57c9ff) !important; }
html[data-bm-color-mode="light"] #siteHeader .bm-header-search-content { color:#27354a !important; }
html[data-bm-color-mode="light"] #siteHeader .bm-header-search-label { color:#445268 !important; }
html[data-bm-color-mode="light"] #siteHeader .auth-menu {
  background:rgba(255,255,255,.97) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 24px 60px rgba(24,44,72,.16) !important;
}
html[data-bm-color-mode="light"] #siteHeader .auth-menu-link { color:#253247 !important; }
html[data-bm-color-mode="light"] #siteHeader .auth-menu-link:hover { background:rgba(49,133,255,.08) !important;color:#1264d8 !important; }
html[data-bm-color-mode="light"] .bm-header-logo-img { filter:drop-shadow(0 8px 16px rgba(33,72,128,.16)) !important; }

/* ---------- Global text and controls ---------- */
html[data-bm-color-mode="light"] body :is(h1,h2,h3,h4,h5,h6,.section-title,.page-title,.hero-title:not(.hero-slider *),.collection-title,.movie-title-fa,.grid-title-fa,.scroll-card-title-fa,.card-title-fa,.profile-name,.cinema-title,.filter-section-title,.settings-row-title,.settings-choice-title) {
  color:var(--bm-text) !important;
}
html[data-bm-color-mode="light"] body :is(p,small,.section-subtitle,.page-desc,.hero-desc:not(.hero-slider *),.grid-title-en,.scroll-card-title-en,.card-title-en,.movie-title-en,.grid-meta,.scroll-card-meta,.movie-meta,.profile-username,.settings-choice-desc,.settings-row-desc,.meta-item,.comment-date,.notif-date) {
  color:var(--bm-text-2) !important;
}
html[data-bm-color-mode="light"] input,
html[data-bm-color-mode="light"] textarea,
html[data-bm-color-mode="light"] select {
  color:#162033 !important;
  background:#ffffff !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.04) !important;
}
html[data-bm-color-mode="light"] input::placeholder,
html[data-bm-color-mode="light"] textarea::placeholder { color:#8a95a6 !important; }
html[data-bm-color-mode="light"] input:focus,
html[data-bm-color-mode="light"] textarea:focus,
html[data-bm-color-mode="light"] select:focus {
  border-color:rgba(49,133,255,.58) !important;
  box-shadow:0 0 0 4px rgba(49,133,255,.10) !important;
}

/* ---------- Generic light surfaces ---------- */
html[data-bm-color-mode="light"] body :is(
  .card,.panel,.page-header,.toolbar,.filter-bar,.filter-section,.filter-field-card,
  .search-section,.search-box,.premium-hero,.hero-band,.collection-hero-main,.collection-card,.movie-card,
  .grid-item,.scroll-card,.a1-card,.profile-card,.profile-hero-main,.overview-mini-card,.comment-card,
  .release-card,.download-panel,.download-tile,.tv-download-tile,.pwa-tile,.ios-web-tile,.soon-card,
  .quick-input-card,.cinema-panel,.player-hero,.archive-guide-card,.archive-switcher-wrap,.support-section,
  .bm-promo-banner,.notif-item,.modal-content,.bm-share-panel,.bm-loader-card,.settings-panel,
  .settings-choice,.settings-row,.settings-range-card,.season-tab,.arc1-season-header,.arc1-ep-card,
  .download-section,.download-box,.movie-info-block,.request-hero-card,.request-form-card,.theme-card,
  .settings-card,.watch-history-card,.actor-profile,.actor-movie-card,.empty-state
) {
  background:rgba(255,255,255,.90) !important;
  color:var(--bm-text) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 12px 36px rgba(28,48,76,.08) !important;
}
html[data-bm-color-mode="light"] body :is(.grid-item,.scroll-card,.movie-card,.collection-card,.a1-card,.actor-movie-card):hover {
  border-color:rgba(49,133,255,.34) !important;
  box-shadow:0 22px 48px rgba(28,48,76,.15) !important;
}
html[data-bm-color-mode="light"] body :is(.grid-info,.scroll-card-info,.card-info,.movie-info,.a1-info,.pro-grid-info) {
  background:linear-gradient(180deg,#ffffff,#f8fafc) !important;
  border-color:rgba(15,23,42,.08) !important;
}
html[data-bm-color-mode="light"] body :is(.year-badge,.year-poster-badge,.imdb-badge,.imdb-poster-badge,.media-tag,.type-pill,.grid-badge,.pro-type,.stat-pill,.feature-chip,.quick-tag,.filter-chip,.genre-link,.type-btn,.arc-pill,.archive-search-tab,.bm-poster-badge) {
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:none !important;
}

/* ---------- Home page ---------- */
html[data-bm-color-mode="light"] body.has-hero .hero-slider,
html[data-bm-color-mode="light"] body.has-hero .hero-slide {
  background:#08101d !important;
  color:#fff !important;
}
html[data-bm-color-mode="light"] body.has-hero .hero-title,
html[data-bm-color-mode="light"] body.has-hero .hero-desc,
html[data-bm-color-mode="light"] body.has-hero .imdb-rating-badge,
html[data-bm-color-mode="light"] body.has-hero .rating-score,
html[data-bm-color-mode="light"] body.has-hero .rating-votes { color:#fff !important; }
html[data-bm-color-mode="light"] body.has-hero .hero-overlay {
  background:
    linear-gradient(90deg,rgba(4,8,15,.90),rgba(4,8,15,.48) 38%,rgba(4,8,15,.08) 68%),
    linear-gradient(0deg,#eef3f8 0%,rgba(5,9,16,.50) 19%,transparent 54%) !important;
}
html[data-bm-color-mode="light"] .stories-title,
html[data-bm-color-mode="light"] .story-name { color:#536176 !important; }
html[data-bm-color-mode="light"] .story-avatar img,
html[data-bm-color-mode="light"] .story-avatar video,
html[data-bm-color-mode="light"] .story-video-thumb-wrap { border-color:#f7f9fc !important;background:#e8eef6 !important; }
html[data-bm-color-mode="light"] .section-title { color:#172235 !important; }
html[data-bm-color-mode="light"] .view-all-btn,
html[data-bm-color-mode="light"] .random-btn,
html[data-bm-color-mode="light"] .archive-guide-btn {
  color:#425169 !important;
  background:rgba(255,255,255,.84) !important;
  border-color:rgba(15,23,42,.10) !important;
}
html[data-bm-color-mode="light"] .view-all-btn:hover,
html[data-bm-color-mode="light"] .random-btn:hover,
html[data-bm-color-mode="light"] .archive-guide-btn:hover { color:#1264d8 !important;background:rgba(49,133,255,.09) !important; }
html[data-bm-color-mode="light"] .scroll-card {
  background:linear-gradient(180deg,#ffffff,#f7f9fc) !important;
  border-color:rgba(15,23,42,.09) !important;
}
html[data-bm-color-mode="light"] .scroll-card .poster-wrap,
html[data-bm-color-mode="light"] .grid-item .poster-shell,
html[data-bm-color-mode="light"] .grid-item .poster-wrap { background:#e8edf4 !important; }
html[data-bm-color-mode="light"] .scroll-card-title-fa,
html[data-bm-color-mode="light"] .grid-title-fa { color:#182235 !important; }
html[data-bm-color-mode="light"] .scroll-card-title-en,
html[data-bm-color-mode="light"] .grid-title-en,
html[data-bm-color-mode="light"] .scroll-card-meta { color:#748196 !important; }
html[data-bm-color-mode="light"] .support-section,
html[data-bm-color-mode="light"] .archive-switcher-wrap,
html[data-bm-color-mode="light"] .filter-bar {
  background:rgba(255,255,255,.72) !important;
  border-color:rgba(15,23,42,.09) !important;
}
html[data-bm-color-mode="light"] .bm-ad-card { background:#ffffff !important;border-color:rgba(15,23,42,.09) !important;box-shadow:0 12px 32px rgba(28,48,76,.08) !important; }

/* ---------- Search, collections, listing pages ---------- */
html[data-bm-color-mode="light"] .premium-hero,
html[data-bm-color-mode="light"] .hero-band,
html[data-bm-color-mode="light"] .collection-hero-main {
  background:
    radial-gradient(circle at 85% 10%,rgba(49,133,255,.16),transparent 38%),
    linear-gradient(135deg,#ffffff,#edf3fb) !important;
}
html[data-bm-color-mode="light"] .premium-hero .hero-title,
html[data-bm-color-mode="light"] .collection-hero-main .collection-title,
html[data-bm-color-mode="light"] .page-header .page-title { color:#1767d7 !important; }
html[data-bm-color-mode="light"] .collection-cover-wrap,
html[data-bm-color-mode="light"] .poster-frame,
html[data-bm-color-mode="light"] .poster-shell { background:#e9eef5 !important; }
html[data-bm-color-mode="light"] .search-section,
html[data-bm-color-mode="light"] .filter-section,
html[data-bm-color-mode="light"] .filter-modal-shell,
html[data-bm-color-mode="light"] .filter-modal-content {
  background:#ffffff !important;
  border-color:rgba(15,23,42,.10) !important;
  color:#172235 !important;
}
html[data-bm-color-mode="light"] .filter-modal { background:rgba(34,49,72,.34) !important; }
html[data-bm-color-mode="light"] .filter-modal-header,
html[data-bm-color-mode="light"] .filter-actions,
html[data-bm-color-mode="light"] .filter-presets,
html[data-bm-color-mode="light"] .filter-draft-summary {
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.09) !important;
}
html[data-bm-color-mode="light"] .filter-choice,
html[data-bm-color-mode="light"] .filter-preset-btn,
html[data-bm-color-mode="light"] .archive-search-tab,
html[data-bm-color-mode="light"] .page-link,
html[data-bm-color-mode="light"] .sort-btn {
  color:#415069 !important;
  background:#f7f9fc !important;
  border-color:rgba(15,23,42,.10) !important;
}
html[data-bm-color-mode="light"] .filter-choice.active,
html[data-bm-color-mode="light"] .filter-preset-btn.active,
html[data-bm-color-mode="light"] .archive-search-tab.active,
html[data-bm-color-mode="light"] .page-link.active,
html[data-bm-color-mode="light"] .sort-btn.active {
  color:#fff !important;
  background:linear-gradient(135deg,#2f7cff,#6f6cff) !important;
  border-color:transparent !important;
}
html[data-bm-color-mode="light"] .result-hint,
html[data-bm-color-mode="light"] .result-tools,
html[data-bm-color-mode="light"] .collection-description,
html[data-bm-color-mode="light"] .section-subtitle { color:#617086 !important; }

/* ---------- Movie detail: keep artwork cinematic, lighten functional surfaces ---------- */
html[data-bm-color-mode="light"] body.movie-page {
  background:#eef3f8 !important;
}
html[data-bm-color-mode="light"] body.movie-page .movie-detail,
html[data-bm-color-mode="light"] body.movie-page .movie-detail :is(.movie-title-fa,.movie-title-en,.description,.meta-item,.genre-link,.movie-info-title,.value,.label) {
  color:#fff !important;
}
html[data-bm-color-mode="light"] body.movie-page .movie-detail::before,
html[data-bm-color-mode="light"] body.movie-page .movie-detail::after { opacity:1; }
html[data-bm-color-mode="light"] body.movie-page :is(.tabs,.movie-tabs,.tab-nav) {
  background:rgba(255,255,255,.96) !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 10px 30px rgba(24,44,72,.08) !important;
}
html[data-bm-color-mode="light"] body.movie-page :is(.tab-btn,.tab-item) { color:#536176 !important; }
html[data-bm-color-mode="light"] body.movie-page :is(.tab-btn.active,.tab-item.active) { color:#1767d7 !important;background:rgba(49,133,255,.09) !important; }
html[data-bm-color-mode="light"] body.movie-page :is(.downloads-section,.episodes-section,.comments-section,.suggestions-section,.tab-content,.download-content,.episodes-container,.season-content) {
  background:#f4f7fb !important;
  color:#172235 !important;
}
html[data-bm-color-mode="light"] body.movie-page :is(.download-item,.download-row,.episode-item,.arc1-link-row,.arc1-ep-card,.comment-card,.reply-item,.season-panel,.season-header,.bm-bulk-copy-bar) {
  background:#ffffff !important;
  color:#172235 !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 10px 28px rgba(28,48,76,.07) !important;
}
html[data-bm-color-mode="light"] body.movie-page :is(.download-item,.download-row,.episode-item,.arc1-link-row,.arc1-ep-card) :is(span,strong,p,.quality,.size,.link-info,.arc1-link-meta) { color:#334258 !important; }
html[data-bm-color-mode="light"] body.movie-page .bm-share-sheet { background:rgba(33,48,70,.38) !important; }
html[data-bm-color-mode="light"] body.movie-page .bm-share-panel,
html[data-bm-color-mode="light"] body.movie-page .settings-panel,
html[data-bm-color-mode="light"] body.movie-page .settings-modal {
  background:#ffffff !important;
  color:#172235 !important;
  border-color:rgba(15,23,42,.10) !important;
}
html[data-bm-color-mode="light"] body.movie-page .settings-choice:hover,
html[data-bm-color-mode="light"] body.movie-page .settings-row:hover { background:#f3f7fc !important; }
html[data-bm-color-mode="light"] body.movie-page .player-wrapper,
html[data-bm-color-mode="light"] body.movie-page .player-video,
html[data-bm-color-mode="light"] body.movie-page video { background:#000 !important; }

/* ---------- Standalone player ---------- */
html[data-bm-color-mode="light"] body:not(.movie-page) .player-hero,
html[data-bm-color-mode="light"] body:not(.movie-page) .quick-input-card,
html[data-bm-color-mode="light"] body:not(.movie-page) .cinema-panel {
  background:#ffffff !important;
  color:#172235 !important;
  border-color:rgba(15,23,42,.10) !important;
}
html[data-bm-color-mode="light"] .player-wrapper,
html[data-bm-color-mode="light"] .player-video,
html[data-bm-color-mode="light"] .video-js,
html[data-bm-color-mode="light"] video { background:#000 !important; }
html[data-bm-color-mode="light"] .player-controls { background:linear-gradient(0deg,rgba(0,0,0,.88),transparent) !important;color:#fff !important; }
html[data-bm-color-mode="light"] .player-controls * { color:#fff; }
html[data-bm-color-mode="light"] .player-empty,
html[data-bm-color-mode="light"] .unlock-overlay { background:rgba(6,10,18,.88) !important;color:#fff !important; }

/* ---------- Profile ---------- */
html[data-bm-color-mode="light"] .profile-hero-bg { opacity:.18 !important;filter:saturate(.75) !important; }
html[data-bm-color-mode="light"] .profile-hero-main,
html[data-bm-color-mode="light"] .profile-overview-grid,
html[data-bm-color-mode="light"] .section,
html[data-bm-color-mode="light"] .theme-option,
html[data-bm-color-mode="light"] .overview-mini-card {
  background:rgba(255,255,255,.92) !important;
  border-color:rgba(15,23,42,.10) !important;
  color:#172235 !important;
}
html[data-bm-color-mode="light"] .profile-tabs { background:rgba(255,255,255,.86) !important;border-color:rgba(15,23,42,.09) !important; }
html[data-bm-color-mode="light"] .profile-tabs button { color:#536176 !important; }
html[data-bm-color-mode="light"] .profile-tabs button.active { color:#1767d7 !important;background:rgba(49,133,255,.10) !important; }

/* ---------- Authentication ---------- */
html[data-bm-color-mode="light"] body.auth-page {
  background:
    radial-gradient(circle at 15% 10%,rgba(49,133,255,.12),transparent 35%),
    radial-gradient(circle at 85% 80%,rgba(140,92,255,.08),transparent 36%),
    linear-gradient(180deg,#f8fafc,#edf2f7) !important;
}
html[data-bm-color-mode="light"] body.auth-page :is(.form-box,.login__box,.toggle-panel,.toggle-box) {
  background:rgba(255,255,255,.92) !important;
  color:#172235 !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 24px 65px rgba(28,48,76,.14) !important;
}
html[data-bm-color-mode="light"] body.auth-page :is(.login__label,.captcha-text,.strength-text,.login__register) { color:#536176 !important; }
html[data-bm-color-mode="light"] body.auth-page .login__input { color:#172235 !important;background:#f8fafc !important; }
html[data-bm-color-mode="light"] body.auth-page .cinema-bg,
html[data-bm-color-mode="light"] body.auth-page .login__bg { opacity:.10 !important; }

/* ---------- App, actor and misc public pages ---------- */
html[data-bm-color-mode="light"] body.page-app .bm-app-page,
html[data-bm-color-mode="light"] body.page-app { background:#f2f6fb !important;color:#172235 !important; }
html[data-bm-color-mode="light"] body.page-app :is(.hero,.release-card,.feature,.cards,.shot,.download-panel,.download-tile,.tv-download-tile,.pwa-tile,.ios-web-tile,.soon-card) {
  background:rgba(255,255,255,.92) !important;
  border-color:rgba(15,23,42,.10) !important;
  color:#172235 !important;
}
html[data-bm-color-mode="light"] body.page-app .visual { background:linear-gradient(145deg,#edf3fb,#e5ecf6) !important; }
html[data-bm-color-mode="light"] body.bm-actor-v98,
html[data-bm-color-mode="light"] body.bm-actor-v98 .bm-actor-page { background:#f2f6fb !important;color:#172235 !important; }
html[data-bm-color-mode="light"] body.bm-actor-v98 :is(.actor-profile,.actor-movie-card,.actor-catalog) { background:#fff !important;border-color:rgba(15,23,42,.10) !important; }
html[data-bm-color-mode="light"] body:not([class]) :is(.wrap,.card,.top,.hero,.grid) { color:#172235; }

/* ---------- Sidebar, notifications, modal, footer ---------- */
html[data-bm-color-mode="light"] .menu-overlay,
html[data-bm-color-mode="light"] .notif-backdrop,
html[data-bm-color-mode="light"] .modal { background:rgba(37,51,72,.36) !important; }
html[data-bm-color-mode="light"] .sidebar-menu,
html[data-bm-color-mode="light"] .notif-sidebar,
html[data-bm-color-mode="light"] .auth-menu,
html[data-bm-color-mode="light"] .modal-content,
html[data-bm-color-mode="light"] .archive-guide-modal {
  background:rgba(255,255,255,.98) !important;
  color:#172235 !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 28px 75px rgba(24,44,72,.20) !important;
}
html[data-bm-color-mode="light"] :is(.sidebar-item,.notif-item,.auth-menu-link) { color:#334258 !important; }
html[data-bm-color-mode="light"] :is(.sidebar-item,.notif-item,.auth-menu-link):hover { background:rgba(49,133,255,.08) !important;color:#1767d7 !important; }
html[data-bm-color-mode="light"] .sidebar-header,
html[data-bm-color-mode="light"] .notif-header,
html[data-bm-color-mode="light"] .modal-header { border-color:rgba(15,23,42,.09) !important; }
html[data-bm-color-mode="light"] .bm-global-footer,
html[data-bm-color-mode="light"] footer[data-bm-global-footer] {
  background:linear-gradient(180deg,#f7f9fc,#edf2f7) !important;
  color:#536176 !important;
  border-color:rgba(15,23,42,.09) !important;
}
html[data-bm-color-mode="light"] .bm-global-footer :is(h2,h3,h4,strong,.footer-title,.footer-block-title) { color:#172235 !important; }

/* ---------- Mobile bottom navigation ---------- */
html[data-bm-color-mode="light"] .bottom-nav,
html[data-bm-color-mode="light"] [data-mobile-bottom-nav] {
  background:linear-gradient(180deg,rgba(255,255,255,.93),rgba(245,248,252,.96)) !important;
  border:1px solid rgba(15,23,42,.10) !important;
  box-shadow:0 18px 45px rgba(27,47,75,.16),inset 0 1px rgba(255,255,255,.9) !important;
  backdrop-filter:blur(22px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(135%) !important;
}
html[data-bm-color-mode="light"] .bottom-nav .nav-item { color:#56647a !important; }
html[data-bm-color-mode="light"] .bottom-nav .nav-item.active {
  color:#1767d7 !important;
  background:linear-gradient(145deg,#ffffff,#eaf2ff) !important;
  box-shadow:0 9px 24px rgba(49,133,255,.16) !important;
}
html[data-bm-color-mode="light"] .bottom-nav .nav-item svg { stroke:currentColor !important; }

/* ---------- Inline dark blocks that need a light counterpart ---------- */
html[data-bm-color-mode="light"] .notification-modal > div,
html[data-bm-color-mode="light"] #donateModal > div {
  background:#ffffff !important;
  color:#172235 !important;
  border-color:rgba(15,23,42,.10) !important;
  box-shadow:0 24px 65px rgba(24,44,72,.18) !important;
}
html[data-bm-color-mode="light"] .notification-modal { background:rgba(36,51,73,.48) !important; }
html[data-bm-color-mode="light"] .loading-overlay:not(.bm-video-loading-overlay) { background:#f4f7fb !important; }
html[data-bm-color-mode="light"] .bm-page-loader { background:#f4f7fb !important; }

/* ---------- Small-screen header fit ---------- */
@media (max-width: 991px) {
  #siteHeader .bm-theme-control { display:inline-flex !important; }
  html[data-bm-color-mode="light"] #siteHeader { background:rgba(255,255,255,.92) !important; }
}
@media (max-width: 560px) {
  #siteHeader .header-inner { padding-inline:10px !important; }
  #siteHeader .header-actions { max-width:calc(50% - 32px); }
  #siteHeader .notif-bell,
  #siteHeader .menu-btn { width:36px !important;height:36px !important;min-width:36px !important; }
  #siteHeader .bm-theme-control { margin-inline:1px; }
}

@media (max-width: 360px) {
  #siteHeader .bm-theme-control { --bb8-unit:4.2px; }
  #siteHeader .header-actions { gap:4px !important; }
  #siteHeader .notif-bell,
  #siteHeader .menu-btn { width:32px !important;height:32px !important;min-width:32px !important; }
}

/* In dark mode the supplied component is the only new visible change. */
html[data-bm-color-mode="dark"] .bm-theme-control { color:#fff; }
