/* Theme choice is shared across every English and Malayalam page. */
:root { --theme-toggle-bg:#ffffff08; --theme-toggle-active:#ddbe8b20; --theme-toggle-border:#ddbe8b55; }
.language-tools { display:flex; align-items:center; gap:14px; }
.theme-switch { display:flex; gap:2px; align-items:center; border:1px solid var(--line-strong); border-radius:24px; padding:2px; background:var(--theme-toggle-bg); flex-shrink:0; }
.theme-switch button { display:grid; place-items:center; width:44px; height:44px; padding:8px; border:1px solid transparent; border-radius:50%; background:transparent; color:var(--muted); transition:background .2s,color .2s,border-color .2s; }
.theme-switch button[aria-pressed=true] { background:var(--theme-toggle-active); border-color:var(--theme-toggle-border); color:var(--gold); }
.theme-switch button:hover { color:var(--paper); border-color:var(--line-strong); }
.theme-switch .icon { width:19px; height:19px; }
html[data-theme=light] {
 --bg:#f7f3eb; --panel:#fffdf8; --panel-raised:#eee8dc;
 --paper:#20271e; --muted:#465342; --subtle:#4f5d49;
 --gold:#744b10; --line:#26351e35; --line-strong:#78836f;
 --theme-toggle-bg:#fffdf8; --theme-toggle-active:#e9dfca; --theme-toggle-border:#8a7147;
 color-scheme:light; color:var(--paper); background:var(--bg);
}
html[data-theme=light] .language-bar { background:#eee8dc; border-color:var(--line); }
html[data-theme=light] .language-switch a[aria-current=true] { color:var(--gold); background:#e3d6b8; border-color:#b9a578; }
html[data-theme=light] .language-switch a:hover { background:#e8dfcf; }
html[data-theme=light] .site-header { background:#f7f3eb70; border-bottom-color:var(--line); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
html[data-theme=light] .site-header.is-scrolled { background:#f7f3eb9c; }
html[data-theme=light] .brand-mark { border-color:#80551866; }
@media(max-width:760px) { html[data-theme=light].nav-enhanced .site-nav { background:#fffdf8; box-shadow:0 16px 36px #35432b20; } }
html[data-theme=light] .site-nav a[aria-current=page] { color:var(--gold); }
html[data-theme=light] .film-announcement { background:linear-gradient(110deg,#eae1cb,#eef0e3); border-color:#a391673f; }
html[data-theme=light] .film-announcement-close { background:#ffffff80; }
html[data-theme=light] .film-announcement-close:hover { background:#e3d6b8; }
html[data-theme=light] .button-primary { background:var(--gold); color:#fffdf8; }
html[data-theme=light] .button-primary:hover { background:#68420f; color:#fff; }
html[data-theme=light] .button-secondary:hover { background:#eae2d4; }
html[data-theme=light] :is(.journal-preview,.roots-section,.music-section,.cast-section,.trailer-section) { background:#eee8dc; }
html[data-theme=light] .site-footer { background:#e9e3d7; }
html[data-theme=light] .chapter-nav { background:#f7f3ebed; }
html[data-theme=light] .story-copy>p { color:#35422e; }
html[data-theme=light] .art-coordinate { color:var(--muted); }
html[data-theme=light] .portrait-main { background:#e5dcc8; border-color:#b7ae9b; box-shadow:0 24px 60px #48503b20; }
html[data-theme=light] .portrait-mini { box-shadow:0 12px 30px #48503b25; }
html[data-theme=light] .portrait-halo { border-color:#80551835; }
html[data-theme=light] .portrait-mat { background:#dedbd2; }
html[data-theme=light] :is(.film-visual,.press-image,.gallery-grid .gallery-photo,.artwork-slide .gallery-photo,.journal-image img,.gallery-photo img) { background:#e9e3d8; border-color:var(--line); }
html[data-theme=light] .film-art { --paper:#f0ece2; --gold:#e0bf87; --muted:#c5c6bb; }
html[data-theme=light] .poster-count,html[data-theme=light] .poster-pause { color:#f0ece2; background:#141713df; }
html[data-theme=light] .card-open { color:#f7f3eb; background:#20271edb; border-color:#fff8; }
html[data-theme=light] .journal-image span { color:var(--paper); background:var(--panel); }
html[data-theme=light] .journal-image .icon { color:var(--gold); }
html[data-theme=light] .contribution { background:#e9dfca; }
html[data-theme=light] .record-graphic { --gold:#e0bf87; --ink:#1b2017; }
html[data-theme=light] .lightbox { background:#fffdf8; color:var(--paper); box-shadow:0 24px 90px #14171355; }
html[data-theme=light] .lightbox::backdrop { background:#20271ebd; }
html[data-theme=light] .lightbox-close { background:#e9e3d7; }
html[data-theme=light] .trailer-panel { --gold:#e0bf87; --paper:#f0ece2; --muted:#e1e1d8; background:#141713; }
html[data-theme=light] .trailer-overlay :is(a,button,small) { color:#f7f3eb; }
html[data-theme=light] .gallery-photo>.icon { background:#fffdf8; color:var(--gold); border:1px solid var(--line-strong); }
html[data-theme=light] :is(.media-card,.career-card,.early-layout,.message-composer,.cta-panel,.gallery-wait,.instagram-card,.empty-frames figure) { border-color:var(--line); }
html[data-theme=light] .instagram-card { background:linear-gradient(140deg,#eee6d5,#e3e9dd); }
html[data-theme=light] .message-composer { background:#fffdf8; }
html[data-theme=light] .field :is(input,select,textarea),html[data-theme=light] .message-preview textarea { background:#fffdf8; color:var(--paper); border-color:#74816b; }
html[data-theme=light] :is(input,textarea)::placeholder { color:var(--muted); opacity:1; }
html[data-theme=light] .field :is(input,select,textarea):focus { border-color:var(--gold); }
html[data-theme=light] .filter-tabs button[aria-pressed=true] { color:var(--paper); background:#e5dcc8; }
html[data-theme=light] .filter-tabs button:hover { background:#eae2d4; }
html[data-theme=light] .search-field input { color:var(--paper); }
html[data-theme=light] .search-field { background:var(--panel); }
html[data-theme=light] .studio-credit { border-color:var(--line); }
html[data-theme=light] .canvas-credit { color:var(--muted); }
html[data-theme=light] .canvas-credit img { filter:brightness(.45); }
html[data-theme=light] .canvas-credit:hover { color:var(--gold); }
html[data-theme=light] .media-shell[data-image-shell]:not(.is-loaded)::before { opacity:.3; filter:grayscale(1) brightness(.4); }
html[data-theme=light] .media-shell.is-error::after { color:var(--muted); }
html[data-theme=light] .floating-slate { box-shadow:0 16px 40px #38432f25; }
@media(max-width:760px) {
 .language-inner { gap:10px; padding-block:5px; flex-wrap:wrap; }
 .language-caption { flex-shrink:0; }
 .language-tools { gap:8px; margin-left:auto; }
 .language-switch { gap:2px; }
 .language-switch a { min-height:40px; display:inline-flex; align-items:center; padding:6px 9px; }
 .language-label { display:none; }
 .theme-switch button { width:44px; height:44px; }
}
@media(max-width:390px) { .language-caption>span { display:none; } .language-tools { gap:6px; } }
@media(prefers-reduced-motion:reduce) { .theme-switch button { transition:none; } }

html[data-theme=light] :is(.media-preview,.early-section,.archive-profiles) { background:#eee8dc; }
html[data-theme=light] .cta-panel { background:linear-gradient(120deg,#e5e7d8,#efe7d8); }
html[data-theme=light] .cta-panel p:not(.eyebrow) { color:var(--muted); }
html[data-theme=light] .ticker-track span { color:var(--muted); }
html[data-theme=light] .empty-frames>div { background:#dbe2d1; color:var(--gold); }
html[data-theme=light] .empty-frames>div:nth-child(2) { background:#e6dfcb; }
html[data-theme=light] .empty-frames>div:nth-child(3) { background:#ddd7c3; }
html[data-theme=light] .empty-frames>div>span { color:var(--gold); }

/* The biography photograph's caption belongs on a light surface as well. */
html[data-theme=light] .portrait-panel { background:var(--panel); border-color:var(--line-strong); color:var(--paper); }
html[data-theme=light] :is(.portrait-location,.portrait-caption) { color:var(--paper); background:var(--panel); }
html[data-theme=light] .portrait-location { margin-top:0; padding:18px 20px; }
html[data-theme=light] .sort-field select { color:var(--paper); background:var(--panel); border-color:#74816b; }
html[data-theme=light] .filter-tabs button { color:var(--muted); border-color:var(--line-strong); }
html[data-theme=light] .gallery-grid figcaption,html[data-theme=light] .artwork-slide figcaption { color:var(--muted); }
