
:root{--bg:#fafbfe;--surface:#fff;--surface-muted:#f3f7fb;--border:#dfe7ef;--border-soft:#edf2f7;--text:#17212b;--muted:#6b7a8a;--top:#17212b;--accent:#00a9d6;--accent-soft:#e7f8fc;--accent-dark:#087da0;--success:#22a06b;--danger:#d64545;--warning:#d99000;--radius:6px;--font:Inter,Manrope,Nunito,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px/1.45 var(--font)}a{color:inherit;text-decoration:none}.top{background:var(--top);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.topin{max-width:1240px;margin:auto;height:56px;display:flex;align-items:center;gap:18px;padding:0 18px}.brand{font-weight:800;font-size:18px;letter-spacing:.2px}.brand b{color:#54d8ff}.search{flex:1;max-width:520px}.search input{width:100%;height:34px;border:1px solid #324253;border-radius:5px;background:#22303d;color:#fff;padding:0 12px}.toplink{color:#d8e3ec;font-size:13px}.sec{background:#fff;border-bottom:1px solid var(--border)}.secin{max-width:1240px;margin:auto;height:43px;display:flex;align-items:center;gap:4px;padding:0 18px;overflow:auto}.sec a{padding:11px 12px;color:#314255;border-bottom:2px solid transparent;white-space:nowrap}.sec a.active{color:var(--accent-dark);border-bottom-color:var(--accent)}.wrap{max-width:1240px;margin:18px auto 36px;padding:0 18px}.crumb{color:var(--muted);font-size:12px;margin-bottom:12px}.headline{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:14px}.headline h1{font-size:24px;line-height:1.2;margin:0 0 5px}.headline p{margin:0;color:var(--muted)}.updated{font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:8px 10px;white-space:nowrap}.filters{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:12px;margin-bottom:14px;display:grid;grid-template-columns:repeat(5,1fr) auto;gap:10px}.field label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.field select,.field input{width:100%;height:33px;border:1px solid var(--border);border-radius:4px;background:#fff;padding:0 9px;color:#263645}.btn{height:33px;border:1px solid var(--accent-dark);background:var(--accent);color:#fff;border-radius:4px;padding:0 13px;font-weight:700;align-self:end}.grid{display:grid;grid-template-columns:220px 1fr;gap:14px}.side{position:sticky;top:12px;align-self:start;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:10px}.side h3{font-size:13px;margin:4px 8px 8px}.cat{display:flex;justify-content:space-between;padding:7px 8px;border-radius:4px;color:#33485a}.cat:hover,.cat.active{background:var(--accent-soft);color:var(--accent-dark)}.panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.table-head,.row{display:grid;grid-template-columns:54px 1.75fr .75fr .7fr .7fr .62fr .7fr 72px;align-items:center}.table-head{height:38px;background:#f6f9fc;color:#6b7a8a;font-size:11px;text-transform:uppercase;border-bottom:1px solid var(--border)}.table-head>div,.row>div{padding:0 10px}.row{min-height:68px;border-bottom:1px solid var(--border-soft);background:#fff}.row:hover{background:#fbfdff}.rank{font-weight:800;color:#607283}.avatar{width:38px;height:38px;border-radius:8px;background:linear-gradient(135deg,#00a9d6,#85e7ff);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;overflow:hidden;flex:0 0 38px}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.chan{display:flex;align-items:center;gap:10px;min-width:0}.title{font-weight:750;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user{color:var(--muted);font-size:12px}.tag{display:inline-flex;background:#eef7fb;color:#087da0;border:1px solid #cceff8;border-radius:99px;padding:3px 7px;font-size:12px}.num{font-variant-numeric:tabular-nums;font-weight:650}.pos{color:var(--success);font-weight:800}.neg{color:var(--danger);font-weight:800}.ribbon{background:#f2f8fb;border:1px solid var(--border);border-radius:4px;padding:4px 7px;text-align:center;color:#496173;font-weight:700}.method{margin-top:14px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:14px}.method h2{font-size:16px;margin:0 0 8px}.method p{margin:0;color:#526678}.footer{border-top:1px solid var(--border);background:#fff;margin-top:30px}.footin{max-width:1240px;margin:auto;padding:22px 18px;display:grid;grid-template-columns:2fr repeat(3,1fr);gap:18px;color:#647687}.footin b{color:#17212b}.placeholder{padding:24px;background:#fff;border:1px solid var(--border);border-radius:var(--radius)}.profile{display:flex;gap:14px;align-items:center;padding:18px}.bigav{width:64px;height:64px;border-radius:14px;background:linear-gradient(135deg,#00a9d6,#0d7fa2);display:flex;align-items:center;justify-content:center;color:#fff;font-size:24px;font-weight:800;overflow:hidden;flex:0 0 64px}.bigav img{width:100%;height:100%;object-fit:cover;display:block}.tabs{display:flex;gap:6px;border-top:1px solid var(--border);padding:10px 14px;background:#f7fafc}.tabs span{padding:7px 10px;border:1px solid var(--border);background:#fff;border-radius:4px}.mobile-filter{display:none}@media(max-width:820px){.topin{gap:10px}.search{display:none}.headline{display:block}.updated{display:inline-block;margin-top:10px}.filters{display:none}.mobile-filter{display:block;background:#fff;border:1px solid var(--border);border-radius:6px;padding:11px;margin-bottom:12px;color:#314255}.grid{display:block}.side{display:none}.table-head{display:none}.row{grid-template-columns:44px 1fr 70px;gap:0;padding:10px}.row>div{padding:3px 8px}.row>div:nth-child(n+4):nth-child(-n+7){display:none}.ribbon{font-size:12px}.footin{grid-template-columns:1fr}.secin{padding:0 10px}.wrap{padding:0 10px}.topin{padding:0 10px}}

.posthero{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:end;margin-bottom:14px}.statbar{display:flex;gap:8px;flex-wrap:wrap}.statpill{background:#fff;border:1px solid var(--border);border-radius:6px;padding:8px 10px;min-width:92px}.statpill b{display:block;font-size:16px;line-height:1;color:#14202b}.statpill span{display:block;margin-top:3px;font-size:11px;color:var(--muted)}.quicknav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.quicknav a{background:#fff;border:1px solid var(--border);border-radius:999px;padding:7px 11px;color:#34475a}.quicknav a.primary{background:var(--accent-soft);border-color:#bfeefa;color:var(--accent-dark);font-weight:800}.postlist{display:grid;gap:10px}.postrow{display:grid;grid-template-columns:48px 1fr;gap:10px;background:#fff;border:1px solid var(--border);border-radius:8px;margin:0;padding:12px;box-shadow:0 1px 0 rgba(20,32,43,.02)}.postrow:hover{border-color:#b8dce8;box-shadow:0 3px 12px rgba(21,45,68,.06)}.postrow .avatar{width:48px!important;height:48px!important;min-width:48px!important;border-radius:12px!important;overflow:hidden;background:#e8f7fc;display:flex;align-items:center;justify-content:center;font-weight:800;color:#087da0}.postrow .avatar img{width:48px!important;height:48px!important;object-fit:cover!important;display:block!important}.posthead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.postchan{min-width:0}.postchan .title{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.posttime{font-size:12px;color:var(--muted);white-space:nowrap}.postrow p{margin:7px 0 9px;color:#263645;line-height:1.45;max-width:980px}.postmeta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#607283;font-size:12px}.postmeta span,.postmeta a{background:#f6f9fc;border:1px solid #e7eef5;border-radius:999px;padding:3px 7px}.postmeta a{color:var(--accent-dark);font-weight:800}.postmeta .tag{background:#e7f8fc;color:#087da0;border-color:#c9eef7}.searchbox{background:#fff;border:1px solid var(--border);border-radius:8px;padding:14px;margin-bottom:14px}.searchbox input{width:100%;height:42px;border:1px solid var(--border);border-radius:6px;padding:0 12px;font-size:15px}.searchhint{margin-top:8px;color:var(--muted);font-size:12px}.searchresults{display:grid;gap:10px}.empty{padding:18px;background:#fff;border:1px dashed var(--border);border-radius:8px;color:var(--muted)}@media(max-width:700px){.posthero{grid-template-columns:1fr}.postrow{grid-template-columns:40px 1fr;padding:10px}.postrow .avatar,.postrow .avatar img{width:40px!important;height:40px!important}.posthead{display:block}.posttime{margin-top:2px}.statpill{flex:1}.filters{display:none}}
.postlist{padding:0;background:transparent;border:0}.postrow{background:#fff;border:1px solid var(--border);border-radius:6px;margin-bottom:10px;padding:12px}.postrow p{margin:9px 0;color:#263645;line-height:1.45}.postmeta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#607283;font-size:12px}.postmeta a{margin-left:auto;color:var(--accent-dark);font-weight:700}
.feedwrap{max-width:960px;margin:0 auto}.feedcard{background:#fff;border:1px solid var(--border);border-radius:10px;margin:0 0 14px;padding:14px 16px;box-shadow:0 8px 24px rgba(22,34,48,.04)}.feedhead{display:grid;grid-template-columns:52px 1fr 22px;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--border-soft)}.feedav{width:52px;height:52px;border-radius:12px;background:#e7f8fc;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#087da0;font-weight:900}.feedav img{width:52px;height:52px;object-fit:cover;display:block}.feedtitle{font-size:17px;font-weight:900;line-height:1.15}.feeddate{color:#7b8997;font-size:13px;margin-top:3px}.kebab{color:#a6b0ba;font-size:24px;line-height:1}.mediabox{height:300px;border-radius:14px;margin:14px 0 12px;overflow:hidden;background:linear-gradient(135deg,#dff4fb,#f5f8fb 42%,#dfe7ef);border:1px solid #dbe8ef;position:relative}.mediobox-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;color:#4c6578}.mediobox-inner b{display:block;font-size:18px;color:#203040}.media-blur{position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,rgba(0,169,214,.22),transparent 30%),radial-gradient(circle at 80% 70%,rgba(8,125,160,.16),transparent 34%);filter:blur(10px)}.feedtext{font-size:17px;line-height:1.58;color:#4d5c6a;white-space:pre-wrap;margin:12px 0 16px}.feedtext.compact{max-height:180px;overflow:hidden}.feedstats{display:flex;gap:9px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--border-soft)}.feedstats span,.feedstats a{background:#f3f7fb;border:1px solid #e8eef5;border-radius:999px;padding:7px 12px;color:#3c4d5d;font-weight:700}.feedstats a{margin-left:auto;color:var(--accent-dark)}.entitygrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.entitycard{background:#fff;border:1px solid var(--border);border-radius:8px;padding:14px}.entitycard b{display:block;font-size:22px}.entitycols{display:grid;grid-template-columns:1fr 1fr;gap:14px}.minirow{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border-soft)}.minirow a{color:var(--accent-dark);font-weight:800}@media(max-width:800px){.feedwrap{max-width:100%}.feedcard{padding:12px}.mediabox{height:210px}.feedtext{font-size:15px}.entitygrid,.entitycols{grid-template-columns:1fr}.feedstats a{margin-left:0}.feedhead{grid-template-columns:44px 1fr 18px}.feedav,.feedav img{width:44px;height:44px}}

/* Новый компактный дизайн ленты и entity-карточек */
.feedwrap{max-width:1040px;margin:0 auto}.posthero{background:linear-gradient(135deg,#fff,#f2fbfe);border:1px solid var(--border);border-radius:10px;padding:18px;align-items:center}.posthero h1{margin:0 0 6px;font-size:25px}.posthero p{margin:0;color:var(--muted);max-width:650px}.statbar{display:grid!important;grid-template-columns:repeat(4,1fr);gap:8px}.statpill{border-radius:8px;padding:10px 12px;min-width:110px}.statpill b{font-size:20px}.statpill span{text-transform:uppercase;letter-spacing:.03em}.quicknav{margin:12px 0 14px}.quicknav a{font-weight:700}.feedgrid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;align-items:start}.feedside{position:sticky;top:12px}.sidebox{background:#fff;border:1px solid var(--border);border-radius:9px;padding:13px;margin-bottom:10px}.sidebox h3{margin:0 0 8px;font-size:13px}.sidebox p{margin:0;color:var(--muted);font-size:12px}.feedcard{border-radius:9px!important;margin:0 0 10px!important;padding:12px 14px!important;box-shadow:0 1px 0 rgba(20,32,43,.02)!important}.feedcard:hover{border-color:#bdddeb;box-shadow:0 5px 18px rgba(21,45,68,.055)!important}.feedhead{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding-bottom:0!important;border-bottom:0!important}.feedav,.feedav img{width:42px!important;height:42px!important}.feedav{border-radius:10px!important;border:1px solid #d4edf6}.feedtitle{font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feeddate{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.postlabel{display:inline-flex;align-items:center;gap:5px;background:#f5f8fb;border:1px solid #e5edf5;border-radius:999px;padding:5px 8px;color:#607283;font-size:11px;font-weight:800}.postlabel.media{background:#fff7e8;border-color:#f2dfb7;color:#9a6500}.feedtext{font-size:14px!important;line-height:1.52!important;color:#293847!important;margin:10px 0 11px!important;max-height:176px!important;overflow:hidden!important}.feedtext.long{position:relative}.feedtext.long:after{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;background:linear-gradient(transparent,#fff)}.feedstats{gap:6px!important;padding-top:9px!important}.feedstats span,.feedstats a{padding:4px 8px!important;font-size:12px!important}.feedstats a{margin-left:auto;color:#fff!important;background:var(--accent-dark)!important;border-color:var(--accent-dark)!important}mark.hit{background:#fff0b8;border-radius:3px;padding:0 2px;color:#17212b}.entityhero{background:linear-gradient(135deg,#17212b,#0d6f8b);color:#fff;border-radius:12px;padding:20px;margin-bottom:14px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end}.entityhero .crumb{color:#cfe7ef;margin:0 0 10px}.entityhero h1{margin:0 0 6px;font-size:28px}.entityhero p{margin:0;color:#d7edf4;max-width:720px}.entityhero .updated{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#e9fbff}.entitygrid{grid-template-columns:repeat(4,1fr)!important}.entitycard{border-radius:9px!important}.entitycard b{font-size:24px!important}.entitycard span{display:block;margin-top:5px;color:var(--muted);font-size:12px}.entitylayout{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-bottom:14px}.entitypanel{background:#fff;border:1px solid var(--border);border-radius:9px;padding:14px;min-width:0}.entitypanel h2{margin:0 0 10px;font-size:15px}.minirow{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border-soft);align-items:center}.minirow:last-child{border-bottom:0}.minirow a,.minirow span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.minirow a{color:var(--accent-dark);font-weight:850}.minirow b,.minirow span:last-child{color:#526376;font-size:12px;white-space:nowrap}.sectiontitle{display:flex;align-items:flex-end;justify-content:space-between;margin:4px 0 10px}.sectiontitle h2{margin:0;font-size:18px}.sectiontitle span{color:var(--muted);font-size:12px}@media(max-width:980px){.feedgrid{grid-template-columns:1fr}.feedside{position:static;display:none}.statbar,.entitygrid{grid-template-columns:repeat(2,1fr)!important}.entitylayout{grid-template-columns:1fr}.entityhero{grid-template-columns:1fr}.feedwrap{max-width:100%}}@media(max-width:640px){.statbar{grid-template-columns:1fr 1fr!important;margin-top:12px}.feedstats a{margin-left:0}.feedhead{grid-template-columns:38px minmax(0,1fr)!important}.postlabel{display:none}.feedav,.feedav img{width:38px!important;height:38px!important}.entitygrid{grid-template-columns:1fr 1fr!important}}
/* Аватарки: жёстко фиксируем размер, чтобы картинки Telegram никогда не растягивали строки */
.row .chan .avatar,.profile .bigav{position:relative;overflow:hidden;background:#e8f7fc;border:1px solid #d3edf6;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.row .chan .avatar{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;border-radius:50%!important;padding:0!important}
.row .chan .avatar img{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;object-fit:cover!important;display:block!important;border-radius:50%!important}
.profile .bigav{border-radius:16px!important;padding:0!important}
.profile .bigav img{width:64px!important;height:64px!important;object-fit:cover!important;display:block!important;border-radius:16px!important}
.chan{overflow:hidden}.chan>div:last-child{min-width:0}.title{max-width:100%}

