/* ===== AI News: timeline feed ===== */
.news-wrap { max-width: 860px; margin: 0 auto; padding: 22px 20px 80px; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.news-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.news-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }
.news-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); }
.news-live i { width: 7px; height: 7px; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 3px rgba(46,158,91,.18); }
.news-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0 6px; }
.news-chip { font: inherit; font-size: 0.8rem; padding: 5px 11px; border-radius: var(--radius-full); border: 1px solid var(--border-color);
  background: transparent; color: var(--text-muted); cursor: pointer; }
.news-chip:hover { border-color: var(--border-color-hover); color: var(--text-main); }
.news-chip[aria-pressed="true"] { background: var(--text-main); color: var(--text-inverse); border-color: var(--text-main); }

.news-body { display: grid; grid-template-columns: 92px 1fr; gap: 18px; margin-top: 10px; }

/* time rail */
.tl { position: sticky; top: 76px; height: calc(100vh - 100px); user-select: none; touch-action: none; }
.tl-track { position: absolute; left: 62px; top: 8px; bottom: 8px; width: 2px; background: var(--border-color); border-radius: 2px; cursor: pointer; }
.tl-hit { position: absolute; left: 0; right: 0; top: 0; bottom: 0; cursor: pointer; }
.tl-tick { position: absolute; left: 56px; width: 14px; height: 1px; background: var(--border-color); }
.tl-tick.major { left: 52px; width: 22px; background: var(--border-color-hover); }
.tl-label { position: absolute; right: 38px; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); white-space: nowrap; }
.tl-label.day { color: var(--text-main); font-weight: 600; }
.tl-dot { position: absolute; left: 60px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--text-dim); opacity: .55; }
.tl-thumb { position: absolute; left: 44px; width: 38px; height: 22px; margin-top: -11px; border-radius: 11px; background: var(--text-main);
  cursor: grab; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.35); outline: none; }
.tl-thumb::before { content: ''; width: 14px; height: 2px; background: var(--text-inverse); box-shadow: 0 -4px 0 var(--text-inverse), 0 4px 0 var(--text-inverse); opacity: .6; }
.tl-thumb:focus-visible { box-shadow: 0 0 0 3px var(--border-color-hover); }
.tl.dragging .tl-thumb { cursor: grabbing; }
.tl-bubble { position: absolute; left: 88px; transform: translateY(-50%); background: var(--text-main); color: var(--text-inverse);
  font-family: var(--font-mono); font-size: 0.72rem; padding: 4px 8px; border-radius: var(--radius-md); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s; z-index: 5; }
.tl.dragging .tl-bubble, .tl:hover .tl-bubble { opacity: 1; }

/* feed */
.feed { min-width: 0; }
.feed-day { position: sticky; top: 64px; z-index: 2; background: var(--bg-page); font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  padding: 12px 0 8px; border-bottom: 1px solid var(--border-color); }
.post { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--border-color); scroll-margin-top: 110px; }
.post.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--bg-subtle); } to { background: transparent; } }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: #fff; letter-spacing: -0.02em; }
.post-meta { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-dim); }
.post-meta b { color: var(--text-main); font-weight: 650; }
.post-time { font-family: var(--font-mono); font-size: 0.76rem; }
.post-title { display: block; margin: 4px 0 0; font-size: 1.04rem; line-height: 1.38; font-weight: 650; color: var(--text-main); text-decoration: none; letter-spacing: -0.01em; }
.post-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-text { margin: 6px 0 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
.post-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.post-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-subtle); color: var(--text-muted); border: none; cursor: pointer; font-family: inherit; }
.post-tag:hover { color: var(--text-main); }
.post-link { margin-left: auto; font-size: 0.78rem; color: var(--text-dim); text-decoration: none; }
.post-link:hover { color: var(--text-main); }
.news-new { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--text-main); color: var(--text-inverse);
  border: none; font: inherit; font-size: 0.84rem; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-full); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); display: none; }
.news-empty { color: var(--text-dim); padding: 40px 0; text-align: center; }
.news-note { font-size: 0.76rem; color: var(--text-dim); margin-top: 22px; line-height: 1.6; }

@media (max-width: 640px) {
  .news-body { grid-template-columns: 44px 1fr; gap: 10px; }
  .tl-track { left: 30px; } .tl-tick { left: 24px; } .tl-tick.major { left: 20px; } .tl-dot { left: 28px; }
  .tl-thumb { left: 14px; width: 34px; } .tl-label { display: none; } .tl-label.day { display: block; right: auto; left: 0; font-size: 0.6rem; transform: translateY(-140%); }
  .tl-bubble { left: 52px; }
  .post { grid-template-columns: 32px 1fr; } .post-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
  .news-title { font-size: 1.5rem; }
}
.promo { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--border-color); }
.promo-label { font-size: 0.72rem; color: var(--text-dim); }
.promo-open { background: transparent; color: var(--text-dim); border: 1px dashed var(--border-color-hover); font-size: 1.1rem; font-weight: 500; }
@media (max-width: 640px) { .promo { grid-template-columns: 32px 1fr; } }
