/* Картина дня. Язык тот же, что у сайдбара: системный гротеск, индиго,
   светлые поверхности, мягкие радиусы (6 — метки, 10 — элементы,
   14–20 — крупные поверхности). Акцентные места — главный сюжет и
   обложка открытого сюжета — тёмные, с градиентом бренда. Эмодзи из
   текстов источников вычищаются. */
.tm {
  --tm-ink: var(--text);
  --tm-sec: var(--text-sec);
  --tm-mut: var(--muted);
  --tm-line: var(--line);
  --tm-surf: var(--surface);
  --tm-soft: var(--surface-hover);
  --tm-brand: var(--brand);
  --tm-brand-soft: var(--brand-light);
  --tm-violet: #7C3AED;
  --tm-night: #0C0B1D;
  --p-tg: #0EA5E9; --p-max: #9333EA; --p-vk: #2A48B5; --p-ok: #EA580C; --p-rutube: #DB2777; --p-web: #16A34A;
  --tm-shadow: 0 1px 2px rgba(16, 17, 38, .04), 0 8px 24px -12px rgba(16, 17, 38, .12);
  --tm-shadow-hi: 0 2px 4px rgba(16, 17, 38, .04), 0 18px 40px -16px rgba(49, 46, 129, .28);
  --tm-mesh: radial-gradient(120% 90% at 0% 0%, rgba(99, 102, 241, .55) 0%, transparent 55%),
             radial-gradient(90% 80% at 100% 0%, rgba(168, 85, 247, .45) 0%, transparent 60%),
             radial-gradient(90% 90% at 80% 110%, rgba(14, 165, 233, .35) 0%, transparent 55%),
             linear-gradient(160deg, #15123A 0%, #0C0B1D 70%);
  color: var(--tm-ink);
}
.tm *, .tm *::before, .tm *::after { box-sizing: border-box; }
:where(.tm) button { font: inherit; color: inherit; }
.tm .num { font-variant-numeric: tabular-nums; }
.tm-page { max-width: 1120px; margin: 0 auto; padding: 32px 36px 96px; }

/* ── шапка ─────────────────────────────────────────────────────────── */
.tm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.tm-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--tm-mut); margin-bottom: 10px; }
.tm-live { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 7px; border-radius: 999px;
           background: rgba(22, 163, 74, .08); color: #15803D; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
.tm-live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.tm-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #16A34A; opacity: 0;
                    animation: tm-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes tm-ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.tm-date::first-letter { text-transform: uppercase; }
.tm-h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.tm-h1 .beta { display: inline-block; vertical-align: 12px; margin-left: 10px; padding: 2px 7px; border-radius: 6px;
               background: var(--tm-brand-soft); color: var(--tm-brand); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.tm-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--tm-sec); max-width: 58ch; }
.tm-upd { font-size: 12.5px; color: var(--tm-mut); white-space: nowrap; padding-bottom: 4px; }

/* ── панель фильтров: липкая, с размытием ──────────────────────────── */
.tm-bar { position: sticky; top: 0; z-index: 20; margin: 0 -12px 22px; padding: 10px 12px;
          background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px);
          -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.tm-bar.stuck { border-bottom-color: var(--tm-line); }
.tm-bar-row { display: flex; align-items: center; gap: 16px; }
.tm-themes { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
}
.tm-themes::-webkit-scrollbar { display: none; }
.tm-chip { appearance: none; border: 0; background: transparent; border-radius: 8px; padding: 7px 12px; cursor: pointer;
           font-size: 13.5px; font-weight: 500; color: var(--tm-sec); white-space: nowrap; transition: background .15s, color .15s; }
.tm-chip:hover { background: var(--tm-soft); color: var(--tm-ink); }
.tm-chip.on { background: var(--tm-brand-soft); color: var(--tm-brand); font-weight: 600; }
.tm-geo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tm-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--tm-soft); }
.tm-seg button { appearance: none; border: 0; background: transparent; border-radius: 8px; padding: 5px 12px; cursor: pointer;
                 font-size: 13px; font-weight: 600; color: var(--tm-mut); transition: background .15s, color .15s, box-shadow .15s; }
.tm-seg button:hover { color: var(--tm-ink); }
.tm-seg button.on { background: var(--tm-surf); color: var(--tm-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04); }
.tm-select { position: relative; }
.tm-select select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 12px; border-radius: 10px;
                    border: 1px solid var(--tm-line); background: var(--tm-surf); box-shadow: 0 1px 2px rgba(0,0,0,.04);
                    font-size: 13px; font-weight: 600; color: var(--tm-ink); cursor: pointer; max-width: 220px; }
.tm-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
                    border-right: 1.5px solid var(--tm-mut); border-bottom: 1.5px solid var(--tm-mut); transform: rotate(45deg); pointer-events: none; }
.tm-select select:focus-visible, .tm-chip:focus-visible, .tm-seg button:focus-visible, .js-cluster:focus-visible,
.tm-btn:focus-visible, .tm-close:focus-visible, .tm-more:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 2px; }

/* ── общие детали карточек ─────────────────────────────────────────── */
.tm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
          background: var(--tm-soft); color: var(--tm-sec); white-space: nowrap; }
.tm-tag.theme { background: var(--tm-brand-soft); color: var(--tm-brand); }
.tm-tag.time { background: transparent; padding: 0 2px; color: var(--tm-mut); font-weight: 500; }
.tm-cov { display: flex; gap: 2px; height: 4px; border-radius: 99px; overflow: hidden; }
.tm-cov i { display: block; height: 100%; min-width: 3px; }
.tm-avs { display: flex; }
.tm-av { width: 22px; height: 22px; border-radius: 7px; margin-left: -6px; box-shadow: 0 0 0 2px var(--tm-surf); overflow: hidden;
         display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; background: #64748B; }
.tm-av:first-child { margin-left: 0; }
.tm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--tm-mut); }
.tm-meta b { color: var(--tm-ink); font-weight: 650; }
.tm-plats { display: inline-flex; gap: 10px; font-size: 12.5px; color: var(--tm-mut); }
.tm-plats span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.tm-pi { width: 15px; height: 15px; display: block; flex-shrink: 0; border-radius: 4px; }

/* ── главный сюжет ─────────────────────────────────────────────────── */
.tm-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 380px;
           border-radius: 20px; overflow: hidden; background: var(--tm-mesh); color: #fff; cursor: pointer; isolation: isolate;
           box-shadow: var(--tm-shadow-hi); margin-bottom: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.tm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
                   background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 18px 18px;
                   mask-image: linear-gradient(120deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); }
.tm-hero:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -24px rgba(49, 46, 129, .55); }
.tm-hero.no-img { grid-template-columns: minmax(0, 1fr); }
.tm-hero-body { display: flex; flex-direction: column; gap: 16px; padding: 30px 34px 28px; min-width: 0; }
.tm-hero .tm-tag { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); }
.tm-hero .tm-tag.theme { background: rgba(165, 180, 252, .22); color: #E0E7FF; }
.tm-hero .tm-tag.rank { background: #fff; color: var(--tm-night); }
.tm-hero .tm-tag.time { background: transparent; color: rgba(255, 255, 255, .6); }
.tm-hero-title { color: #fff !important; margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.tm-hero-sum { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 62ch;
               display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tm-hero-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.tm-hero .tm-meta { color: rgba(255, 255, 255, .62); }
.tm-hero .tm-meta b { color: #fff; }
.tm-hero .tm-av { box-shadow: 0 0 0 2px #1A1740; }
.tm-hero .tm-cov { height: 5px; max-width: 360px; background: rgba(255,255,255,.08); }
.tm-hero-media { position: relative; margin: 14px 14px 14px 0; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); }
.tm-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-hero-media::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* ── два следующих сюжета ─────────────────────────────────────────── */
.tm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.tm-card { display: flex; flex-direction: column; background: var(--tm-surf); border: 1px solid var(--tm-line); border-radius: 16px;
           overflow: hidden; cursor: pointer; box-shadow: var(--tm-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.tm-card:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow-hi); border-color: color-mix(in srgb, var(--tm-brand) 25%, var(--tm-line)); }
.tm-card-img { aspect-ratio: 2 / 1; background: var(--tm-soft); overflow: hidden; }
.tm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tm-card:hover .tm-card-img img { transform: scale(1.03); }
.tm-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; flex: 1; }
.tm-card-title { color: var(--tm-ink); margin: 0; font-size: 19px; line-height: 1.28; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; }
.tm-card-sum { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tm-sec);
               display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tm-card-foot { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 10px; }

/* ── остальная лента: список в одной поверхности ───────────────────── */
.tm-rows { background: var(--tm-surf); border: 1px solid var(--tm-line); border-radius: 16px; box-shadow: var(--tm-shadow); overflow: hidden; }
.tm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 132px; gap: 0 18px; padding: 18px 20px; cursor: pointer;
          position: relative; transition: background .15s; }
.tm-row + .tm-row { border-top: 1px solid var(--tm-line); }
.tm-row.no-img { grid-template-columns: 30px minmax(0, 1fr); }
.tm-row:hover { background: color-mix(in srgb, var(--tm-brand) 3%, var(--tm-surf)); }
.tm-row:hover .tm-row-title { color: var(--tm-brand); }
.tm-rank { font-size: 13px; font-weight: 700; color: var(--tm-mut); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tm-row-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tm-row-title { margin: 0; font-size: 16.5px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; transition: color .15s; }
.tm-row-sum { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--tm-sec);
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-row-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tm-row-foot .tm-cov { width: 88px; }
.tm-row-img { width: 132px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--tm-soft); align-self: start; }
.tm-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tm-empty { padding: 72px 20px; text-align: center; color: var(--tm-mut); font-size: 14px; }
.tm-sk { border-radius: 8px; background: linear-gradient(90deg, var(--tm-soft) 0%, color-mix(in srgb, var(--tm-soft) 50%, var(--tm-surf)) 50%, var(--tm-soft) 100%);
         background-size: 200% 100%; animation: tm-shimmer 1.4s linear infinite; }
@keyframes tm-shimmer { to { background-position: -200% 0; } }

/* ── окно сюжета ───────────────────────────────────────────────────── */
.tm-modal { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 24px; }
.tm-modal.open { display: grid; }
.tm-backdrop { position: absolute; inset: 0; background: rgba(12, 11, 29, .46); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
               opacity: 0; transition: opacity .22s ease; }
.tm-modal.shown .tm-backdrop { opacity: 1; }
.tm-dialog { position: relative; width: min(1180px, 100%); height: min(920px, 100%); border-radius: 20px; overflow: hidden;
             background: var(--bg); box-shadow: 0 40px 100px -30px rgba(12, 11, 29, .55), 0 0 0 1px rgba(12, 11, 29, .06);
             display: flex; flex-direction: column; opacity: 0; transform: translateY(12px) scale(.985);
             transition: opacity .24s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.tm-modal.shown .tm-dialog { opacity: 1; transform: none; }
.tm-close { position: absolute; top: 16px; right: 16px; z-index: 5; appearance: none; border: 0; cursor: pointer; width: 36px; height: 36px;
            border-radius: 10px; display: grid; place-items: center; color: #fff !important; background: rgba(12, 11, 29, .5);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s; }
.tm-close:hover { background: rgba(12, 11, 29, .72); }
.tm-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.tm-cover { position: relative; padding: 34px 40px 30px; color: #fff; background: var(--tm-mesh); overflow: hidden; isolation: isolate; }
.tm-cover-img { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center;
                filter: blur(38px) saturate(1.4); opacity: .55; transform: scale(1.1); }
.tm-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,11,29,.2), rgba(12,11,29,.65)); }
.tm-cover .tm-tag { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); }
.tm-cover .tm-tag.theme { background: rgba(165, 180, 252, .22); color: #E0E7FF; }
.tm-cover .tm-tag.time { background: transparent; color: rgba(255, 255, 255, .65); }
.tm-cover-title { color: #fff !important; margin: 14px 0 0; max-width: 30ch; padding-right: 40px; font-size: 32px; line-height: 1.12; font-weight: 800;
                  letter-spacing: -.03em; text-wrap: balance; }
.tm-cover-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: rgba(255, 255, 255, .66); }
.tm-cover-meta b { color: #fff; font-weight: 650; }

.tm-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 40px 48px; align-items: start; }
.tm-body.with-ed { grid-template-columns: minmax(0, 1fr) 360px; }
.tm-body:not(.with-ed) > .tm-main { max-width: 820px; }
.tm-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tm-panel { background: var(--tm-surf); border: 1px solid var(--tm-line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--tm-shadow); }
.tm-panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px;
              font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-mut); }
.tm-panel-h span:last-child:not(:first-child) { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tm-summary .tm-panel-h { color: var(--tm-brand); }
.tm-summary p { margin: 0; font-size: 16.5px; line-height: 1.68; color: var(--tm-ink); }
.tm-summary.pending p { font-size: 14px; color: var(--tm-mut); }
.tm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tm-stat { background: var(--tm-surf); border: 1px solid var(--tm-line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--tm-shadow); }
.tm-stat .v { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tm-stat .l { display: block; margin-top: 4px; font-size: 12px; color: var(--tm-mut); }
.tm-share .tm-cov { height: 10px; gap: 3px; margin-bottom: 12px; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--tm-sec); }
.tm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tm-legend .tm-pi { width: 17px; height: 17px; border-radius: 5px; }
.tm-legend .sw { width: 14px; height: 3px; border-radius: 2px; margin-left: 2px; }
.tm-legend b { color: var(--tm-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-legend small { color: var(--tm-mut); font-size: 12px; }
.tm-rail { position: relative; height: 48px; margin: 18px 14px 6px; }
.tm-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
                   background: linear-gradient(90deg, var(--tm-brand), var(--tm-violet)); opacity: .25; }
.tm-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
          transition: transform .15s; }
.tm-dot:hover { transform: translate(-50%, -50%) scale(1.15); z-index: 2; }
.tm-dot .tm-av { width: 30px; height: 30px; margin: 0; border-radius: 9px; box-shadow: 0 0 0 2px var(--tm-surf), 0 4px 10px -4px rgba(0,0,0,.3); }
.tm-dot .pm { position: absolute; right: -4px; bottom: -4px; display: block; border-radius: 5px; box-shadow: 0 0 0 2px var(--tm-surf); }
.tm-dot .pm .tm-pi { width: 13px; height: 13px; }
.tm-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--tm-mut); }
.tm-ends b { color: var(--tm-ink); font-weight: 650; }

.tm-posts { display: flex; flex-direction: column; gap: 10px; }
.tm-post { background: var(--tm-surf); border: 1px solid var(--tm-line); border-radius: 14px; padding: 16px 18px; transition: box-shadow .6s, border-color .6s; }
.tm-post.flash { border-color: var(--tm-brand); box-shadow: 0 0 0 4px var(--tm-brand-soft); }
.tm-post-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.tm-post-h .tm-av { width: 30px; height: 30px; border-radius: 9px; margin: 0; box-shadow: none; }
.tm-post-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tm-post-who a { font-size: 14px; font-weight: 650; color: var(--tm-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-post-who a[href]:hover { color: var(--tm-brand); }
.tm-post-who span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--tm-mut); }
.tm-post-who span .tm-pi { width: 13px; height: 13px; }
.tm-post-time { font-size: 12.5px; color: var(--tm-mut); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tm-post-text { font-size: 14.5px; line-height: 1.62; color: var(--tm-sec); white-space: pre-wrap; word-break: break-word; }
.tm-post-text.clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tm-post-f { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--tm-mut); }
.tm-post-f b { color: var(--tm-sec); font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-textlink { appearance: none; border: 0; background: none; padding: 8px 0 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--tm-brand) !important; }
.tm-textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-bottom: 12px; }
.tm-media.one { display: block; }
.tm-media .m { position: relative; border-radius: 10px; overflow: hidden; background: var(--tm-soft); }
.tm-media:not(.one) .m { aspect-ratio: 1; }
.tm-media.one .m { display: inline-block; max-width: 100%; }
.tm-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-media.one img { width: auto; max-width: 100%; max-height: 320px; object-fit: contain; }
.tm-media .vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 12px;
                        background: rgba(12, 11, 29, .55) no-repeat 55% 50% / 14px 16px;
                        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M0 0l14 8-14 8z' fill='white'/%3E%3C/svg%3E"); }
.tm-more { appearance: none; width: 100%; border: 1px dashed var(--line-strong); border-radius: 14px; background: transparent; padding: 14px;
           cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--tm-sec); transition: background .15s, color .15s, border-color .15s; }
.tm-more:hover { background: var(--tm-surf); color: var(--tm-brand); border-color: var(--tm-brand); }
.tm-hidden { display: none; flex-direction: column; gap: 10px; }
.tm-hidden.open { display: flex; }

/* ── панель публикации ─────────────────────────────────────────────── */
.tm-ed { position: sticky; top: 20px; background: var(--tm-surf); border: 1px solid var(--tm-line); border-radius: 16px; padding: 20px;
         box-shadow: var(--tm-shadow); display: flex; flex-direction: column; gap: 16px; }
.tm-ed h3 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.tm-ed h3::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--tm-brand), var(--tm-violet)); }
.tm-lbl { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--tm-sec); }
.tm-lbl small { font-weight: 500; color: var(--tm-mut); }
.tm-ed select, .tm-ed textarea, .tm-editor { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--tm-surf);
            color: var(--tm-ink); font-size: 13.5px; padding: 9px 12px; transition: border-color .15s, box-shadow .15s; }
.tm-ed select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 32px 0 12px; cursor: pointer;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2371717A' stroke-width='1.5'/%3E%3C/svg%3E");
                background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px; }
.tm-ed textarea { resize: vertical; line-height: 1.5; }
.tm-ed select:focus, .tm-ed textarea:focus, .tm-editor:focus { outline: none; border-color: var(--tm-brand); box-shadow: 0 0 0 3px var(--tm-brand-soft); }
.tm-tools { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 6px; border-radius: 10px; background: var(--tm-soft); }
.tm-tools button { appearance: none; border: 0; background: transparent; border-radius: 7px; min-width: 30px; height: 28px; padding: 0 8px;
                   cursor: pointer; font-size: 13px; color: var(--tm-sec); }
.tm-tools button:hover { background: var(--tm-surf); color: var(--tm-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tm-editor { min-height: 160px; max-height: 340px; overflow-y: auto; line-height: 1.55; font-size: 14px; }
.tm-editor:empty::before { content: attr(data-placeholder); color: var(--tm-mut); }
.tm-editor p { margin: 0 0 .6em; }
.tm-hint { margin-top: 6px; font-size: 12px; color: var(--tm-mut); min-height: 1em; }
.tm-hint.warn { color: var(--warning); }
.tm-btn { appearance: none; width: 100%; height: 42px; border: 0; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 650;
          color: #fff !important; background: linear-gradient(135deg, var(--tm-brand) 0%, var(--tm-violet) 100%);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -8px rgba(79, 70, 229, .7);
          transition: filter .15s, transform .1s, box-shadow .15s; }
.tm-btn:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 22px -8px rgba(79, 70, 229, .75); }
.tm-btn:active { transform: translateY(1px); }
.tm-btn.soft { color: var(--tm-brand) !important; background: var(--tm-brand-soft); box-shadow: none; }
.tm-btn.soft:hover { filter: none; background: color-mix(in srgb, var(--tm-brand) 16%, var(--tm-surf)); }
.tm-btn:disabled { opacity: .5; cursor: default; filter: none; }
.tm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.tm-thumb { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--tm-soft);
            box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: box-shadow .15s, transform .15s; }
.tm-thumb:hover { transform: translateY(-1px); }
.tm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-thumb.on { box-shadow: 0 0 0 2px var(--tm-surf), 0 0 0 4px var(--tm-brand); }
.tm-thumb .n { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--tm-brand);
               color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.tm-thumb .s { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 5px; font-size: 9px; font-weight: 600; color: #fff;
               background: linear-gradient(transparent, rgba(0,0,0,.7)); display: flex; align-items: center; gap: 3px; }
.tm-thumb .s .tri { width: 0; height: 0; border-style: solid; border-width: 3.5px 0 3.5px 6px; border-color: transparent transparent transparent #fff; }
.tm-dest { display: flex; flex-direction: column; gap: 4px; }
.tm-dest label { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
                 cursor: pointer; font-size: 13.5px; transition: background .15s; }
.tm-dest label:hover { background: var(--tm-soft); }
.tm-dest label.off { opacity: .5; cursor: not-allowed; }
.tm-dest input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line-strong);
                 background: var(--tm-surf); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.tm-dest input:checked { background: var(--tm-brand); border-color: var(--tm-brand); }
.tm-dest input:checked::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.tm-dest .pl { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--tm-soft); color: var(--tm-sec); }
.tm-dest .hint { color: var(--tm-mut); font-size: 12px; }
.tm-steps { display: flex; flex-direction: column; gap: 8px; }
.tm-step { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--tm-sec); }
.tm-step .mk { width: 12px; height: 12px; margin-top: 3px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.tm-step.run .mk { border-color: var(--tm-brand); background: var(--tm-brand-soft); animation: tm-blink 1s ease-in-out infinite; }
.tm-step.ok .mk { background: var(--success); border-color: var(--success); }
.tm-step.error .mk { background: var(--danger); border-color: var(--danger); }
.tm-step .note { color: var(--tm-mut); font-size: 12px; }
@keyframes tm-blink { 50% { opacity: .35; } }
.tm-status { font-size: 13px; font-weight: 600; min-height: 1em; }
.tm-status.err { color: var(--danger); } .tm-status.ok { color: var(--success); } .tm-status.warn { color: var(--warning); }

/* ── узкие экраны ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tm-body.with-ed { grid-template-columns: minmax(0, 1fr); }
  .tm-ed { position: static; }
}
@media (max-width: 900px) {
  .tm-bar-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .tm-geo { justify-content: space-between; }
}
@media (max-width: 720px) {
  .tm-page { padding: 18px 16px 72px; }
  .tm-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
  .tm-h1 { font-size: 30px; }
  .tm-sub { font-size: 14px; }
  .tm-bar { margin: 0 -16px 16px; padding: 8px 16px; }
  .tm-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 16px; }
  .tm-hero-media { order: -1; margin: 10px 10px 0; height: 190px; }
  .tm-hero-body { padding: 20px 20px 22px; gap: 12px; }
  .tm-hero-title { font-size: 24px; }
  .tm-hero-sum { font-size: 14.5px; -webkit-line-clamp: 6; }
  .tm-duo { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
  .tm-row, .tm-row.no-img { grid-template-columns: minmax(0, 1fr) 76px; gap: 0 14px; padding: 16px; }
  .tm-row.no-img { grid-template-columns: minmax(0, 1fr); }
  .tm-rank { display: none; }
  .tm-row-img { width: 76px; height: 76px; }
  .tm-row-title { font-size: 15.5px; }
  .tm-row-foot .tm-plats { display: none; }
  .tm-modal { padding: 0; }
  .tm-dialog { width: 100%; height: 100%; border-radius: 0; }
  .tm-cover { padding: 22px 18px; }
  .tm-cover-title { font-size: 24px; padding-right: 36px; }
  .tm-close { top: 12px; right: 12px; }
  .tm-body { padding: 16px 14px 40px; gap: 14px; }
  .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tm-stat .v { font-size: 20px; }
  .tm-panel { padding: 16px; border-radius: 14px; }
  .tm-summary p { font-size: 15.5px; }
}

/* ── ссылки-заголовки, лидмагнит, подвал ленты ─────────────────────── */
.tm-a { color: inherit; text-decoration: none; }
.tm-a:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 3px; border-radius: 4px; }
.for-user { display: none !important; }
.is-authed .for-user { display: block !important; }
.tm-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 28px;
          margin-bottom: 18px; padding: 22px 26px; border-radius: 16px; overflow: hidden; isolation: isolate;
          background: linear-gradient(135deg, color-mix(in srgb, var(--tm-brand) 9%, var(--tm-surf)), color-mix(in srgb, var(--tm-violet) 7%, var(--tm-surf)));
          border: 1px solid color-mix(in srgb, var(--tm-brand) 22%, var(--tm-line)); }
.tm-cta::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; z-index: -1; border-radius: 50%;
                  background: radial-gradient(circle, color-mix(in srgb, var(--tm-violet) 22%, transparent), transparent 70%); }
.tm-cta-kicker { display: inline-flex; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--tm-surf);
                 color: var(--tm-brand); font-size: 11.5px; font-weight: 700; }
.tm-cta h3 { margin: 0 0 6px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; color: var(--tm-ink); }
.tm-cta p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tm-sec); max-width: 64ch; }
.tm-cta-act { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tm-cta .tm-btn { display: inline-grid; place-items: center; width: auto; padding: 0 22px; text-decoration: none; white-space: nowrap; }
.tm-cta-link { font-size: 12.5px; font-weight: 600; color: var(--tm-mut); text-decoration: none; }
.tm-cta-link:hover { color: var(--tm-brand); }
.tm-foot-links { display: flex; justify-content: center; gap: 10px; margin: 26px 0 0; font-size: 13px; color: var(--tm-mut); }
.tm-foot-links a { color: var(--tm-sec); text-decoration: none; font-weight: 600; }
.tm-foot-links a:hover { color: var(--tm-brand); }

/* ── страница сюжета ───────────────────────────────────────────────── */
.tm-crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--tm-mut); }
.tm-crumbs a { color: var(--tm-brand); font-weight: 600; text-decoration: none; }
.tm-cover-page { border-radius: 20px; box-shadow: var(--tm-shadow-hi); }
.tm-cover-page .tm-cover-title { max-width: 34ch; padding-right: 0; font-size: 34px; }
.tm-story .tm-body { padding: 22px 0 0; }
.tm-body.with-side { grid-template-columns: minmax(0, 1fr) 320px; }
.tm-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.tm-side .tm-cta { grid-template-columns: 1fr; margin: 0; padding: 20px; }
.tm-side .tm-cta-act { align-items: stretch; }
.tm-side .tm-cta .tm-btn { width: 100%; }
.tm-side-act p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--tm-sec); }
.tm-side-act .tm-btn { display: grid; place-items: center; text-decoration: none; }
.tm-related ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.tm-related li { padding: 10px 0; border-top: 1px solid var(--tm-line); display: flex; flex-direction: column; gap: 3px; }
.tm-related li:first-child { border-top: 0; padding-top: 0; }
.tm-related li a { font-size: 14px; font-weight: 650; line-height: 1.35; color: var(--tm-ink); text-decoration: none; }
.tm-related li a:hover { color: var(--tm-brand); }
.tm-related li small { font-size: 12px; color: var(--tm-mut); }
a.tm-dot { display: block; }
a.tm-more { display: block; text-align: center; text-decoration: none; }
.tm-missing { text-align: center; padding: 48px 24px; }
.tm-missing h1 { margin: 0 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tm-missing p { margin: 0 auto 20px; max-width: 52ch; color: var(--tm-sec); }
@media (max-width: 1000px) {
  .tm-body.with-side { grid-template-columns: minmax(0, 1fr); }
  .tm-side { position: static; }
}
@media (max-width: 720px) {
  .tm-cta { grid-template-columns: 1fr; padding: 18px; }
  .tm-cta-act { align-items: stretch; }
  .tm-cta .tm-btn { width: 100%; }
  .tm-cover-page { border-radius: 16px; }
  .tm-cover-page .tm-cover-title { font-size: 24px; }
}

.tm-ai-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--tm-line); font-size: 12px; color: var(--tm-mut); }
.tm-ai-note a { color: var(--tm-sec); font-weight: 600; }
