/* Header tools shared by all film themes. */
.xm .xvt-header-tools{display:flex;align-items:center;gap:22px;flex:none;font-size:13px;color:var(--vt-muted)}
.xm .xvt-history{position:relative;z-index:10}
.xm .xvt-history summary{display:flex;gap:7px;align-items:center;cursor:pointer;list-style:none;white-space:nowrap}
.xm .xvt-history summary::-webkit-details-marker{display:none}
.xm .xvt-history-panel{position:absolute;right:0;top:34px;width:280px;max-width:85vw;background:var(--vt-surface);border:1px solid var(--vt-line);padding:18px;border-radius:8px;box-shadow:0 12px 30px #0003;color:var(--vt-text)}
.xm .xvt-history-panel>div{display:flex;justify-content:space-between;gap:15px;align-items:center}
.xm .xvt-history-panel button{background:none;border:0;color:var(--vt-accent);cursor:pointer;padding:5px}
.xm .xvt-history-panel ul{list-style:none;padding:0;margin:12px 0 0;max-height:290px;overflow-y:auto}
.xm .xvt-history-panel li{padding:10px 0;border-top:1px solid var(--vt-line)}
.xm .xvt-history-panel li a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.xm:not(.xvt) .xm-header{--vt-muted:#a5b2c5;--vt-surface:#19212d;--vt-line:#303a48;--vt-text:#edf0f6;--vt-accent:#c9f16c;gap:26px}
.xm:not(.xvt) .xm-header>.xm-search{border-radius:6px;max-width:320px;background:#19212d;border-color:#303a48;box-shadow:none}
.xm:not(.xvt) .xm-header>.xm-search:hover{background:#202936;border-color:#465368}
.xm:not(.xvt) .xm-header>.xm-search:focus-within{background:#19212d;border-color:#c9f16c;box-shadow:0 0 0 3px #c9f16c14}
.xm:not(.xvt) .xm-search input{color:#edf0f6;caret-color:#c9f16c}
.xm:not(.xvt) .xm-search input:focus-visible{outline:none}
@media(min-width:701px) and (max-width:1300px){.xm:not(.xvt) .xvt-history summary span{display:none}.xm:not(.xvt) .xvt-header-tools{gap:14px}.xm:not(.xvt) .xm-header{gap:20px}}
@media(max-width:700px){
 .xm:not(.xvt) .xm-header{gap:16px 12px}
 .xm:not(.xvt) .xm-header>.xm-logo{flex:0 1 auto;max-width:32%;font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .xm:not(.xvt) .xm-header>.xm-search{flex:1 1 0;max-width:none;min-width:0;margin-left:auto}
 .xm:not(.xvt) .xvt-history summary span,.xm:not(.xvt) .xvt-library{display:none}
 .xm:not(.xvt) .xvt-header-tools{gap:0}
 .xm:not(.xvt) .xm-header nav{order:3;flex-basis:100%;overflow-x:auto;scrollbar-width:none}
 .xm:not(.xvt) .xm-header nav::-webkit-scrollbar{display:none}
}
