:root{color-scheme:dark;--st-panel:#101b28;--st-line:#405462;--st-muted:#aab9c2;--st-blue:#8fd0e1;--st-fg:#f0f5f7;--st-hover:#ffffff12}
body{background:radial-gradient(ellipse at 50% 46%,#171228 0%,#0c0b19 55%,#06050e 100%)}
#stars{position:fixed;inset:0;width:100%;height:100%;display:block;pointer-events:none}
#sky{z-index:1}
.site-header.topbar{z-index:12;min-height:59px;height:59px;padding:8px 22px;gap:15px;background:#101820ed;border-bottom:1px solid #5364746b;pointer-events:auto}
.site-header .brand{min-width:0;flex:none;font-size:22px;letter-spacing:-.6px}
.site-header .brand img{width:33px;height:33px}
.header-label{margin:0;padding-left:15px;border-left:1px solid #52616c;color:#a8b9c4;font-size:13px;font-weight:400;white-space:nowrap}
.site-header .scitopus-site-nav{margin-left:auto}
.site-header .scitopus-site-links svg,.site-header .scitopus-site-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.site-header .scitopus-site-links a{display:inline-flex;align-items:center;gap:6px;color:#aab9c2;line-height:1}
.site-header .scitopus-site-links a:hover,.site-header .scitopus-site-links a:focus-visible{color:#8fd0e1}
.site-header .scitopus-site-links svg,.site-header .scitopus-site-toggle svg{display:block;flex:none}
.site-header .search-wrap{width:clamp(150px,19vw,260px)}
.site-header .search{height:34px}
.site-header .search-icon{display:block;flex:none;width:17px;height:17px;fill:none;stroke:#a7d9e8;stroke-width:1.8;stroke-linecap:round}
.site-header .search input{line-height:1.2}
.site-header .search input::-webkit-search-cancel-button{display:none}
.site-header #search-clear{display:grid;place-items:center;flex:none;width:24px;height:24px;padding:3px;border:0;border-radius:4px;background:transparent;color:#a7b9c5}
.site-header #search-clear:hover,.site-header #search-clear:focus-visible{color:#fff;background:#ffffff18}
.site-header #search-clear svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.site-header .top-actions{gap:3px}
.site-header .info-button{width:34px;height:34px}
.map-toolbar{position:fixed;top:75px;left:22px;right:22px;z-index:5;display:flex;align-items:center;flex-wrap:wrap;gap:8px;pointer-events:none}
.map-toolbar>*{pointer-events:auto}
.toolbar-button{min-height:35px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;border:1px solid #71879775;border-radius:8px;background:#101a27e8;color:#d8e6ed;font-size:11px;white-space:nowrap}
.toolbar-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.toolbar-button:hover{background:#263b4b}
.map-toolbar .segmented{min-height:35px;background:#101a27e8}
.map-toolbar .segmented button{min-width:66px;padding:6px 9px;white-space:nowrap}
.map-toolbar .top-stats{margin-left:auto;padding:6px 8px;border-radius:5px;background:#101a27aa}
.settings{top:120px;left:22px;right:auto}
.settings .segmented button{min-width:0;line-height:1.2;white-space:normal}
.channel-card{top:120px}
.close-button{padding:0;display:grid;place-items:center;line-height:1}
.close-button svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.small-control{padding:0;display:grid;place-items:center;line-height:1}
.small-control svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.video-list{gap:18px}
.video-item{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.video-item img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.video-item strong{font-size:12px;line-height:1.35}
.video-author{margin:7px 0 0;font-size:11px}
.video-author-avatar{width:26px;height:26px}
.video-dialog{width:min(1040px,calc(100vw - 56px),calc(177.78dvh - 302px));max-width:calc(100vw - 32px);padding:0;overflow:visible}
.video-frame{overflow:hidden;border-radius:11px 11px 0 0}
.video-frame iframe{display:block}
.video-info{max-height:145px;overflow:auto;padding:14px 17px 12px}
.video-info h2{margin:0 0 10px;line-height:1.3;overflow-wrap:anywhere}
.video-channel{display:inline-flex;align-items:center;gap:9px;font-size:12px}
.video-channel img,.video-channel-placeholder{display:block;width:32px;height:32px;flex:none;border-radius:50%;object-fit:cover;background:#263b49}
.video-info .video-back{display:block;margin:10px 0 0;padding:4px 0;font-size:11px}
.network-back{top:120px}
@media(max-width:1200px){.site-header .header-label{font-size:11px;padding-left:9px}.site-header.topbar{gap:10px;padding-inline:13px}.site-header .search-wrap{width:clamp(135px,18vw,210px)}}
@media(max-width:780px){
 .site-header.topbar{height:100px;min-height:100px;flex-wrap:wrap;align-content:center;gap:6px 9px;padding:7px 10px}
 .site-header .brand{order:0;flex:none;font-size:18px}.site-header .brand img{width:28px;height:28px}
 .site-header .header-label{order:1;flex:1;overflow:hidden;text-overflow:ellipsis}
 .site-header .scitopus-site-nav{order:2;margin-left:auto}.site-header .top-actions{order:3}
 .site-header .search-wrap{order:4;width:100%;flex:1 1 100%}.site-header .search{height:30px}
 .map-toolbar{top:108px;left:10px;right:10px;gap:5px}
 .map-toolbar .top-stats{flex-basis:100%;width:max-content;margin:0;max-width:max-content;font-size:9px}
 .map-toolbar .segmented{min-height:31px}.map-toolbar .segmented button{min-width:0;padding:5px 7px;font-size:9px}
 .toolbar-button{min-height:31px;padding:5px 8px;font-size:10px}
 .settings{top:150px;left:10px;right:auto;max-height:calc(100dvh - 205px)}
 .channel-card{top:155px;right:10px;max-height:calc(100dvh - 215px)}
 .network-back{top:165px;left:10px}
 .video-dialog{width:min(calc(100vw - 32px),calc(177.78dvh - 302px));max-width:calc(100vw - 32px)}
}
