html[data-theme=light]{color-scheme:light;--bg:#f5f5f8;--surface:#fff;--surface2:#eeeef3;--line:#d8d8e2;--text:#171723;--muted:#60606e;--focus:0 0 0 3px #171723,0 0 0 6px #fa2065}
html[data-theme=light] .titlebar{background:#f5f5f8f5;border-color:var(--line)}html[data-theme=light] .brand-mini{color:#353540}html[data-theme=light] .window-actions button:hover{background:#dddde5}html[data-theme=light] .window-actions button:last-child:hover{background:#c42b1c;color:white}
html[data-theme=light] .topbar{background:linear-gradient(#f5f5f8f5,#f5f5f8b3,transparent)}html[data-theme=light] .brand,html[data-theme=light] .nav button,html[data-theme=light] .top-actions button{color:#292934}html[data-theme=light] .nav button.active{color:#111}
html[data-theme=light] .search{background:#ffffffa6;border-color:#bcbcca}html[data-theme=light] .search input{color:#171723}html[data-theme=light] .hero-shade{background:linear-gradient(90deg,#f5f5f8f5,#f5f5f8bf 35%,transparent 80%),linear-gradient(0deg,#f5f5f8,transparent 48%)}html[data-theme=light] .hero #heroMeta,html[data-theme=light] .hero #heroDesc{color:#353540}
html[data-theme=light] .hero-actions .primary{background:#191923;color:#fff}html[data-theme=light] .hero-actions .ghost{background:#ffffffe0;border-color:#b8b8c5;color:#171723}
html[data-theme=light] .card-copy small,html[data-theme=light] .empty-state,html[data-theme=light] .series-empty p{color:#636372}html[data-theme=light] .rank-number{color:#f5f5f8;-webkit-text-stroke-color:#777787}html[data-theme=light] .rail-arrow{border-color:#b8b8c5}html[data-theme=light] .series-empty>div{background:#fff;border-color:var(--line)}
html[data-theme=light] .connection-badge{background:#fffffff2;color:#484856;border-color:var(--line)}html[data-theme=light] .profile-dialog,html[data-theme=light] .profile-editor,html[data-theme=light] .pin-dialog,html[data-theme=light] .detail-dialog,html[data-theme=light] .account-dialog{background:#fff;color:#171723;border-color:var(--line)}html[data-theme=light] .profile-card{color:#171723}html[data-theme=light] .profile-card small,html[data-theme=light] .detail-body p,html[data-theme=light] .account-dialog p{color:#626272}
html[data-theme=light] .profile-dialog .ghost,html[data-theme=light] .profile-editor .ghost,html[data-theme=light] .account-dialog .ghost,html[data-theme=light] .detail-dialog .ghost,html[data-theme=light] .profile-dialog .round,html[data-theme=light] .detail-dialog .round,html[data-theme=light] .upload-button{background:#ededf3;color:#242432;border-color:#d8d8e2}html[data-theme=light] .profile-dialog .primary,html[data-theme=light] .profile-editor .primary,html[data-theme=light] .account-dialog .primary,html[data-theme=light] .detail-dialog .primary{background:#1c1c28;color:#fff}
html[data-theme=light] .form-grid label{color:#535364}html[data-theme=light] .form-grid input,html[data-theme=light] .form-grid select,html[data-theme=light] .pin-dialog input,html[data-theme=light] .account-dialog input{background:#f5f5f8;color:#171723;border-color:#c6c6d2}html[data-theme=light] .detail-backdrop:after{background:linear-gradient(transparent,#fff)}html[data-theme=light] .detail-dialog .episode-row{background:#eeeef3;color:#171723}html[data-theme=light] .badge-line .badge{background:#ededf3;border-color:#d8d8e2}
html[data-theme=light] .card-preview{background:#fff;color:#171723;border-color:var(--line);box-shadow:0 16px 50px #19192340}html[data-theme=light] .preview-tools button{color:#171723;border-color:#8a8a9b}html[data-theme=light] .preview-tools .preview-play{background:#171723;color:#fff}html[data-theme=light] .preview-content small,html[data-theme=light] .preview-content p{color:#606070}html[data-theme=light] .toast{background:#fff;color:#171723;border-color:var(--line)}
/* Cinema remains dark in both themes, including every native control and panel. */
html[data-theme=light] #playerDialog{color-scheme:dark;color:#f7f7fa;--text:#f7f7fa;--muted:#a4a4b2;--bg:#000;--surface:#101016;--line:#282833}
@media(max-width:760px){.top-actions{gap:1px}.top-actions #themeBtn{padding:6px}.top-actions #themeBtn svg{width:19px;height:19px}}
