/* The original stylesheet remains the default. Skins share the same live controls. */
.topbar-actions{display:flex;align-items:center;gap:12px}.theme-trigger{padding:8px 11px;font-size:11px}#theme-dialog{max-width:850px}#theme-title{font-size:25px;margin:16px 24px 8px 0}.theme-intro,#theme-message{font-size:12px;color:var(--muted)}#theme-message{min-height:22px}#theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}.theme-option{position:relative;min-width:0;text-align:left;background:transparent;border:1px solid var(--line);padding:10px;border-radius:12px}.theme-option:hover{border-color:var(--accent)}.theme-option[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.theme-option strong,.theme-option small{display:block;margin-top:10px}.theme-option strong{font-size:13px}.theme-option small{font-size:10px;color:var(--muted);line-height:1.7}.theme-mark{display:none;position:absolute;top:17px;right:17px;background:var(--accent);color:#111;padding:3px 6px;border-radius:50%}.theme-option[aria-pressed=true] .theme-mark{display:block}.theme-mini{--paper:#111419;--ink:#f67861;display:flex;gap:8px;height:104px;background:var(--paper);border:1px solid #80808040;border-radius:6px;padding:10px}.theme-mini>i{width:17%;background:var(--ink);opacity:.8}.theme-mini>span{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding-top:19px;border-top:3px solid var(--ink)}.theme-mini>span i{background:var(--ink);opacity:.35;border-radius:2px}.theme-option[data-skin=screening] .theme-mini{--paper:#f1efdf;--ink:#393b25}.theme-option[data-skin=screening] .theme-mini>i{background:#bdda40}.theme-option[data-skin=midnight] .theme-mini{--paper:#081b2a;--ink:#95e3d0;flex-direction:column}.theme-option[data-skin=midnight] .theme-mini>i{width:100%;height:8px}.theme-option[data-skin=midnight] .theme-mini>span{padding-top:5px;border:0}.theme-option[data-skin=gallery] .theme-mini{--paper:#f5f6f8;--ink:#2955dc}.theme-option[data-skin=gallery] .theme-mini>i{width:6%}.theme-option[data-skin=archive] .theme-mini{--paper:#e8e5de;--ink:#b63126;flex-direction:column}.theme-option[data-skin=archive] .theme-mini>i{height:15px;width:50%}.theme-option[data-skin=archive] .theme-mini>span{padding-top:4px;border-top-width:1px}
:root[data-theme]:not([data-theme=default]){color:var(--text);background:var(--paper);--line:var(--border);--muted:var(--subtle);--accent:var(--signal)}
:root[data-theme=screening]{--paper:#f1efdf;--panel:#e9e7d6;--text:#292922;--subtle:#656658;--border:#cac9b6;--signal:#bed64b;--button-ink:#22261a;--display:Georgia,"Noto Serif SC","Songti SC",SimSun,serif}
:root[data-theme=midnight]{--paper:#081b2a;--panel:#102a3b;--text:#e2f0ee;--subtle:#9ab8c4;--border:#294454;--signal:#95e3d0;--button-ink:#102c2b;--display:Georgia,"Microsoft YaHei",serif}
:root[data-theme=gallery]{--paper:#f5f6f8;--panel:#fff;--text:#202a3c;--subtle:#5d687a;--border:#d3d9e2;--signal:#2955dc;--button-ink:#fff;--display:"PingFang SC","Microsoft YaHei",sans-serif}
:root[data-theme=archive]{--paper:#e8e5de;--panel:#f3f0e8;--text:#282724;--subtle:#68645c;--border:#c2bcb1;--signal:#b63126;--button-ink:#fff;--display:Georgia,"Noto Serif SC","Songti SC",SimSun,serif}
html[data-theme]:not([data-theme=default]) :is(.breadcrumb strong,.private-badge,.nav-item,.poster-check,.detail-options,.task-meta,.card .tags,.section-head p,.muted,.cache-note,.page-heading p,.detail-top p,.detail-desc,.account-form p,.account-form>label,.admin-table small,footer,.quick-search>span){color:var(--subtle)}
html[data-theme]:not([data-theme=default]) :is(.search,.task-row,.login-card,dialog,.table-wrap){background:var(--panel);border-color:var(--border);color:var(--text);box-shadow:none}
html[data-theme]:not([data-theme=default]) :is(input,select,.search input,.login-card input,.account-form input,.account-form select,.admin-toolbar input,.range-select input,.detail-options select){background:var(--paper);color:var(--text);border-color:var(--border)}
html[data-theme]:not([data-theme=default]) input::placeholder{color:var(--subtle)}
html[data-theme]:not([data-theme=default]) .primary{background:var(--signal);color:var(--button-ink)}
html[data-theme]:not([data-theme=default]) .primary:hover{filter:brightness(1.08)}
html[data-theme]:not([data-theme=default]) :is(.secondary,.quick-search button,.episode){color:var(--text);border-color:var(--border);background:var(--panel)}
html[data-theme]:not([data-theme=default]) :is(.secondary:hover,.quick-search button:hover){background:var(--paper)}
html[data-theme]:not([data-theme=default]) :is(.eyebrow,.hero h1 span){color:var(--text)}
html[data-theme]:not([data-theme=default]) .hero h1{font-family:var(--display);font-size:clamp(32px,3.9vw,58px);line-height:1.4;letter-spacing:0}
html[data-theme]:not([data-theme=default]) .section-head h2{font-family:var(--display);font-weight:700}
html[data-theme]:not([data-theme=default]) .poster{border-radius:2px;border-color:var(--border)}
html[data-theme]:not([data-theme=default]) .card:has(.poster-check input:checked) .poster{outline:2px solid var(--signal);outline-offset:3px}
html[data-theme]:not([data-theme=default]) .private-badge{border-color:var(--border)}
html[data-theme]:not([data-theme=default]) .empty-start{border-color:var(--border);background:transparent;border-radius:2px}
html[data-theme]:not([data-theme=default]) .film-icon{background:var(--panel);color:var(--text)}
html[data-theme]:not([data-theme=default]) .selection-toolbar{background:var(--panel);border-color:var(--signal);color:var(--text)}
html[data-theme]:not([data-theme=default]) .episode.selected,html[data-theme]:not([data-theme=default]) .selected-tab{background:var(--signal);border-color:var(--signal);color:var(--button-ink)}
html[data-theme]:not([data-theme=default]) .admin-table th{background:var(--paper);color:var(--subtle)}
html[data-theme]:not([data-theme=default]) .admin-table td{border-color:var(--border)}
html[data-theme]:not([data-theme=default]) :is(.enabled,.task-state.ready){color:#287854}
html[data-theme=midnight][data-theme] :is(.enabled,.task-state.ready){color:#95e3d0}
html[data-theme]:not([data-theme=default]) :is(.disabled,.danger,.form-error,#password-error,#login-error,.task-state.failed,.task-state.expired){color:#b43a2c}
html[data-theme=midnight][data-theme] :is(.disabled,.danger,.form-error,#password-error,#login-error,.task-state.failed,.task-state.expired){color:#ffa795}
html[data-theme]:not([data-theme=default]) .status-message{background:var(--panel);color:var(--text);border-color:var(--border)}
html[data-theme]:not([data-theme=default]) .hero:after{display:none}
/* Ticket paper and an ink sidebar. */
html[data-theme=screening][data-theme] .sidebar{background:#242524;border-color:#242524;color:#eeeddf;width:244px}
html[data-theme=screening][data-theme] main{margin-left:244px;padding-inline:48px}
html[data-theme=screening][data-theme] .sidebar .nav-item{color:#c8cabd;border-radius:0}
html[data-theme=screening][data-theme] .nav-item.active{background:#bed64b;color:#25271c}
html[data-theme=screening][data-theme] .brand-icon{border-radius:50%;background:#bed64b}
html[data-theme=screening][data-theme] .hero{padding:48px 0 38px;border-bottom:2px solid #292922}
html[data-theme=screening][data-theme] .hero h1 span{display:block}
html[data-theme=screening][data-theme] .search{background:#292922;color:#f1efdf;border:0;border-radius:0;padding:10px 12px}
html[data-theme=screening][data-theme] .search input{background:transparent;color:#f1efdf}
html[data-theme=screening][data-theme] .search input::placeholder{color:#b4b5a7}
html[data-theme=screening][data-theme] .section-head{border:0}
html[data-theme=screening][data-theme] .cards{counter-reset:posters}
html[data-theme=screening][data-theme] .card h3:before{counter-increment:posters;content:counter(posters,decimal-leading-zero) ' / ';font-family:Georgia,serif;color:#72745a}
html[data-theme=screening][data-theme] .card-actions .secondary{border-radius:0;border-width:0 0 1px;padding-inline:0}
html[data-theme=screening][data-theme] .selection-toolbar{border-radius:0;border:0;border-block:1px dashed #bbbda4;background:#292922;color:#eeeddf}
/* A horizontal navigation bar and a quiet ocean glow. */
html[data-theme=midnight][data-theme] .sidebar{position:relative;inset:auto;width:auto;padding:20px 40px;flex-direction:row;align-items:center;gap:12px;background:#0b2131;border-right:0;border-bottom:1px solid var(--border)}
html[data-theme=midnight][data-theme] .sidebar :is(.nav-label,.sidebar-note){display:none}
html[data-theme=midnight][data-theme] .brand{margin-right:auto;white-space:nowrap}
html[data-theme=midnight][data-theme] .nav-item{width:auto;margin:0!important;padding:10px 13px;white-space:nowrap}
html[data-theme=midnight][data-theme] .nav-item.active{background:#173e4b;color:#95e3d0}
html[data-theme=midnight][data-theme] .sidebar .logout{color:#9ab8c4;white-space:nowrap;font-size:11px}
html[data-theme=midnight][data-theme] main{margin-left:0;max-width:1600px;margin-inline:auto}
html[data-theme=midnight][data-theme] .hero{padding:55px 35px 35px;margin:25px 0;background:radial-gradient(ellipse at 84% 30%,#27697466,transparent 40%),linear-gradient(145deg,#173f50,#0b2234 68%);border:1px solid #294454;overflow:hidden}
html[data-theme=midnight][data-theme] .hero h1 span{color:#95e3d0}
html[data-theme=midnight][data-theme] .brand-icon{background:transparent;color:#95e3d0;border:1px solid #95e3d0;border-radius:50%}
html[data-theme=midnight][data-theme] .cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 18px}
/* A slim gallery rail, broad white space and blue numbering. */
html[data-theme=gallery][data-theme] .sidebar{width:90px;padding:28px 12px;background:#fff;align-items:center;border-color:var(--border)}
html[data-theme=gallery][data-theme] .sidebar :is(.brand>span:last-child,.nav-label,.sidebar-note){display:none}
html[data-theme=gallery][data-theme] .nav-item{font-size:0;justify-content:center;margin-block:8px}
html[data-theme=gallery][data-theme] .nav-item:first-of-type{margin-top:45px}
html[data-theme=gallery][data-theme] .nav-item>span{font-size:25px}
html[data-theme=gallery][data-theme] .nav-item.active{background:#e9eeff;color:#2955dc}
html[data-theme=gallery][data-theme] .nav-item b{display:none}
html[data-theme=gallery][data-theme] .sidebar .logout{font-size:10px;color:#5d687a;white-space:nowrap}
html[data-theme=gallery][data-theme] #change-password{margin-top:auto}
html[data-theme=gallery][data-theme] main{margin-left:90px;padding-inline:60px}
html[data-theme=gallery][data-theme] .brand-icon{border-radius:2px;color:white}
html[data-theme=gallery][data-theme] .hero{padding:68px 0 50px}
html[data-theme=gallery][data-theme] .hero h1 span{color:#2955dc}
html[data-theme=gallery][data-theme] .search{border-radius:0;padding:8px;max-width:880px}
html[data-theme=gallery][data-theme] :is(.primary,.secondary){border-radius:3px}
html[data-theme=gallery][data-theme] .cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:32px 22px}
/* An archive masthead replaces the sidebar. */
html[data-theme=archive][data-theme] .sidebar{position:relative;inset:auto;width:auto;display:grid;grid-template-columns:1fr repeat(6,auto);gap:12px;align-items:center;padding:25px 48px 20px;background:transparent;border:0;border-bottom:3px double #393630}
html[data-theme=archive][data-theme] .sidebar :is(.nav-label,.sidebar-note){display:none}
html[data-theme=archive][data-theme] .brand{font-family:var(--display);font-size:44px;letter-spacing:5px}
html[data-theme=archive][data-theme] .brand-icon{display:none}
html[data-theme=archive][data-theme] .brand small{font-size:8px;letter-spacing:2px;color:#68645c}
html[data-theme=archive][data-theme] .nav-item{width:auto;padding:12px 4px;white-space:nowrap;margin:0!important;border-radius:0;font-size:12px}
html[data-theme=archive][data-theme] .nav-item.active{background:none;color:#b63126;box-shadow:inset 0 -2px #b63126}
html[data-theme=archive][data-theme] .nav-item>span{display:none}
html[data-theme=archive][data-theme] .sidebar .logout{color:#68645c;padding:10px 3px;white-space:nowrap}
html[data-theme=archive][data-theme] main{margin:0 auto;padding-inline:48px}
html[data-theme=archive][data-theme] .hero{padding:40px 0 35px;border-bottom:1px solid #393630}
html[data-theme=archive][data-theme] .hero .eyebrow:before{content:'INDEX / 001';display:inline-block;margin-right:20px;padding:5px 8px;border:1px solid #b63126;color:#b63126;font-size:10px;transform:rotate(-3deg)}
html[data-theme=archive][data-theme] .hero h1{font-weight:800}
html[data-theme=archive][data-theme] .hero h1 span{color:#b63126}
html[data-theme=archive][data-theme] .section-head{border:0}
html[data-theme=archive][data-theme] :is(.search,.primary,.secondary,.selection-toolbar){border-radius:0}
html[data-theme=archive][data-theme] .cards{counter-reset:posters}
html[data-theme=archive][data-theme] .card h3:before{counter-increment:posters;content:counter(posters,decimal-leading-zero) ' — ';font-family:Georgia,serif;color:#b63126}
@media(max-width:1200px){html[data-theme=midnight][data-theme] .sidebar{padding:15px 22px;gap:5px}html[data-theme=midnight][data-theme] .brand small{display:none}html[data-theme=midnight][data-theme] .nav-item{gap:6px;font-size:12px;padding:10px 8px}html[data-theme=archive][data-theme] .sidebar{padding-inline:28px;gap:8px}html[data-theme=archive][data-theme] .brand{font-size:32px}html[data-theme=archive][data-theme] .brand small{font-size:6px}html[data-theme=midnight][data-theme] .cards,html[data-theme=gallery][data-theme] .cards{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-theme=screening][data-theme] main{padding-inline:28px}html[data-theme=screening][data-theme] .sidebar{width:210px}html[data-theme=screening][data-theme] main{margin-left:210px}}
@media(max-width:820px){
 html[data-theme]:not([data-theme=default]) main{margin:0;padding:0 22px 85px}
 html[data-theme]:not([data-theme=default]) .sidebar{position:fixed;inset:auto 0 0;width:100%;height:65px;padding:6px 8px;z-index:10;display:flex;flex-direction:row;justify-content:space-around;gap:0;background:var(--panel);border:0;border-top:1px solid var(--border)}
 html[data-theme]:not([data-theme=default]) .sidebar :is(.brand,.nav-label,.sidebar-note){display:none}
 html[data-theme]:not([data-theme=default]) .sidebar .nav-item{margin:0!important;padding:6px 8px;display:flex;flex-direction:column;gap:1px;width:auto;font-size:10px;color:var(--subtle);border-radius:3px;white-space:nowrap;box-shadow:none}
 html[data-theme]:not([data-theme=default]) .sidebar .nav-item.active{color:var(--text);background:var(--paper)}
 html[data-theme]:not([data-theme=default]) .sidebar .nav-item>span{display:block;font-size:19px}
 html[data-theme]:not([data-theme=default]) .sidebar .nav-item b{display:none}
 html[data-theme]:not([data-theme=default]) .sidebar .logout{display:block;margin:0!important;font-size:9px;max-width:40px;white-space:normal;text-align:center;padding:4px;color:var(--subtle)}
 html[data-theme]:not([data-theme=default]) .topbar{height:72px;gap:8px}
 html[data-theme]:not([data-theme=default]) .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 15px}
 html[data-theme=midnight][data-theme] .hero{padding:30px 22px;margin-block:20px}
 html[data-theme=archive][data-theme] .topbar:before{content:'映幕';font:700 22px var(--display);letter-spacing:3px;color:var(--signal)}
 html[data-theme=archive][data-theme] .breadcrumb{display:none}
 html[data-theme=archive][data-theme] .hero .eyebrow:before{margin-right:8px;font-size:8px}
 html[data-theme=gallery][data-theme] .hero{padding:40px 0}
 .topbar-actions{gap:7px}.private-badge{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:540px){
 #theme-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#theme-title{font-size:20px}.theme-mini{height:85px}.theme-option small{font-size:9px}.theme-option strong{font-size:12px}
 .topbar-actions{gap:5px}.theme-trigger{padding:6px 7px;font-size:10px}.private-badge{max-width:106px;font-size:9px}.breadcrumb span{margin:0 4px}
 html[data-theme]:not([data-theme=default]) main{padding-inline:18px}
 html[data-theme]:not([data-theme=default]) .hero h1{font-size:32px}
 html[data-theme]:not([data-theme=default]) .hero h1 span{display:block}
 html[data-theme]:not([data-theme=default]) .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
 html[data-theme=midnight][data-theme] .hero{padding:27px 17px}
 html[data-theme=archive][data-theme] .hero .eyebrow{letter-spacing:1px;font-size:8px}
 html[data-theme]:not([data-theme=default]) .card-actions{flex-direction:row}
 html[data-theme]:not([data-theme=default]) .card-actions button{width:auto;min-width:0;font-size:9px;padding:8px 3px}
}
