/* ============ NEWS V7 ============
 * Hero magazine layout, breaking strip, source trust pill, topic threads,
 * multi-select bar, daily brief bar, reader mode, search palette, sources modal,
 * filter popover, keyword highlight, read indicator.
 * ÜZERİNE EKLER — mevcut .news-* (v2) selectorları KORUNUR.
 */

/* ---------- Header v7 (extends .news-head) ---------- */
.news-sub-v7 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.news-sub-v7 strong { color: var(--text-primary); font-weight: 600; }
.news-sub-v7 .src-chip-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-tinted);
  font-size: 11.5px;
  color: var(--text-secondary);
  border: 1px solid var(--separator);
}

/* ---------- Breaking strip ---------- */
.breaking-strip {
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--separator);
  border-left: 3px solid var(--kw-red);
  border-radius: 16px;
  padding: 14px 18px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.breaking-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left center, rgba(200,16,46,0.08), transparent 60%);
  pointer-events: none;
  animation: breaking-pulse 4s ease-in-out infinite;
}
[data-theme="dark"] .breaking-strip::before {
  background: radial-gradient(ellipse at left center, rgba(255,69,90,0.15), transparent 60%);
}
@keyframes breaking-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.breaking-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kw-red);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.breaking-h .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--kw-red);
  box-shadow: 0 0 0 0 rgba(200,16,46,0.6);
  animation: breaking-dot-pulse 1.6s ease-out infinite;
}
@keyframes breaking-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,0.55); }
  100% { box-shadow: 0 0 0 12px rgba(200,16,46,0); }
}
.breaking-h .breaking-meta {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: none;
}
.breaking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.breaking-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  transition: background 180ms;
}
.breaking-item:hover { background: var(--bg-tinted); }
.breaking-item .b-bullet {
  color: var(--kw-red);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.breaking-item .b-title {
  flex: 1;
  font-weight: 500;
}
.breaking-item .b-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ---------- Hero magazine grid ---------- */
.news-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.news-hero-main {
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--separator);
  border-radius: 24px;
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 280ms, border-color 280ms;
  display: flex;
  flex-direction: column;
}
.news-hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(200,16,46,0.06), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 280ms;
}
[data-theme="dark"] .news-hero-main::before {
  background: radial-gradient(ellipse at top right, rgba(255,69,90,0.10), transparent 60%);
}
.news-hero-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.6);
  border-color: var(--separator-strong);
}
.news-hero-main:hover::before { opacity: 1; }

.news-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-hero-mini {
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 18px 20px 16px;
  flex: 1;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), border-color 220ms;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-hero-mini:hover {
  transform: translateY(-2px);
  border-color: var(--kw-red);
}
.news-hero-rank {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.news-hero-rank.featured { color: var(--kw-red); }

.news-hero-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 14px 0 10px;
  color: var(--text-primary);
  text-wrap: balance;
}
.news-hero-mini-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.32;
  margin: 4px 0 0;
  color: var(--text-primary);
  text-wrap: pretty;
}
.news-hero-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.news-hero-meta .news-time { font-size: 12px; }
.news-hero-hook {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.45);
  border-left: 2px solid var(--text-tertiary);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  margin: 14px 0 12px;
  font-style: italic;
  text-wrap: pretty;
}
[data-theme="dark"] .news-hero-hook {
  background: rgba(255,255,255,0.04);
}
.news-hero-why {
  background: rgba(200,16,46,0.05);
  border-left: 2px solid var(--kw-red);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  text-wrap: pretty;
}
[data-theme="dark"] .news-hero-why {
  background: linear-gradient(135deg, rgba(200,16,46,0.10), rgba(200,16,46,0.04));
}
.news-hero-why-h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kw-red);
  margin-bottom: 6px;
}
.news-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: auto;
  transition: color 180ms;
}
.news-hero-main:hover .news-hero-cta { color: var(--kw-red); }

/* Pin in hero corner */
.news-hero-pin {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

/* ---------- Source trust pill ---------- */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  cursor: help;
  transition: all 180ms;
}
.trust-pill .trust-shield {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--text-tertiary);
}
.trust-pill.high   .trust-shield { background: #2DBE6C; }
.trust-pill.med    .trust-shield { background: #C58A2B; }
.trust-pill.low    .trust-shield { background: var(--text-tertiary); }
.trust-pill.high   { color: #1F8E50; border-color: rgba(45,190,108,0.25); }
[data-theme="dark"] .trust-pill.high { color: #4FD68A; border-color: rgba(79,214,138,0.25); }

/* ---------- Read indicator ---------- */
.read-indicator {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all 180ms;
  flex-shrink: 0;
}
.read-indicator:hover { background: var(--bg-tinted); color: var(--text-secondary); }
.read-indicator.read  { color: var(--kw-red); }
.read-indicator .dot-circle {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  transition: background 200ms;
}
.read-indicator.read .dot-circle { background: currentColor; }

/* When card is read */
.news-item-card.is-read {
  opacity: 0.72;
  transition: opacity 240ms, border-color 240ms;
}
.news-item-card.is-read:hover { opacity: 1; }

/* ---------- Keyword highlight ---------- */
.kw-hl {
  color: var(--kw-red);
  font-weight: 600;
  background: rgba(200,16,46,0.06);
  padding: 0 3px;
  border-radius: 3px;
  transition: background 180ms;
}
.news-item-card:hover .kw-hl { background: rgba(200,16,46,0.10); }
[data-theme="dark"] .kw-hl { color: #FF7088; background: rgba(255,69,90,0.08); }

/* ---------- Topic thread badge on card ---------- */
.thread-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 9px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms;
  margin-top: 12px;
}
.thread-badge:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
  background: var(--kw-red-soft-bg);
}
.thread-badge .thread-emoji { font-size: 12px; }
.thread-badge .thread-count { color: var(--text-tertiary); font-size: 11px; margin-left: 2px; }

/* ---------- Multi-select checkbox on card ---------- */
.news-item-card { padding-left: 22px; }
.news-select-checkbox {
  position: absolute;
  left: 14px;
  top: 22px;
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--separator-strong);
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 200ms;
  z-index: 2;
}
.news-item-card:hover .news-select-checkbox,
.news-select-checkbox.checked {
  opacity: 1;
}
.news-select-checkbox.checked {
  background: var(--kw-red-gradient);
  border-color: var(--kw-red);
  color: white;
}
.news-select-checkbox:hover { border-color: var(--kw-red); }

/* ---------- Card foot row v7 ---------- */
.news-item-foot-v7 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.news-item-foot-v7 .foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 180ms;
}
.news-item-card:hover .news-item-foot-v7 .foot-link { color: var(--kw-red); }
.news-item-foot-v7 .reader-btn {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 180ms;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.news-item-foot-v7 .reader-btn:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
}

/* ---------- Multi-select bar (sticky bottom) ---------- */
.multiselect-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--separator-strong);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: multiBarSlide 320ms cubic-bezier(0.32, 0.72, 0, 1);
  font-size: 13px;
}
[data-theme="dark"] .multiselect-bar { box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06); }
@keyframes multiBarSlide {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.multiselect-count {
  font-weight: 600;
  color: var(--text-primary);
  padding-right: 8px;
  border-right: 1px solid var(--separator);
}
.multiselect-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms;
}
.multiselect-bar button:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
  background: var(--kw-red-soft-bg);
}
.multiselect-bar button.primary {
  background: var(--kw-red-gradient);
  color: white;
  border-color: transparent;
}
.multiselect-bar button.primary:hover { color: white; filter: brightness(1.05); }
.multiselect-bar .close-btn {
  width: 30px; height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
}

/* ---------- Utility bar (search/filter/sources/threads) ---------- */
.news-utility-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}
.utility-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--separator);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-tertiary);
  transition: all 180ms;
}
.utility-search:hover {
  border-color: var(--separator-strong);
  color: var(--text-secondary);
}
.utility-search .kbd {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: var(--text-tertiary);
}
.utility-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--separator);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms;
  white-space: nowrap;
}
.utility-btn:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
}
.utility-btn .util-count {
  background: var(--bg-tinted);
  color: var(--text-tertiary);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- Modals (search, sources, filter, reader) ---------- */
.news-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 24px;
  overflow-y: auto;
  animation: modalBackdropFade 200ms ease-out;
}
@keyframes modalBackdropFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.news-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: 22px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: modalScaleIn 240ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes modalScaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.news-modal-wide  { max-width: 760px; }
.news-modal-reader { max-width: 820px; }

/* ---------- Search palette ---------- */
.search-palette {
  padding: 0;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--separator);
}
.search-input-row svg { color: var(--text-tertiary); flex-shrink: 0; }
.search-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 17px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.search-input-row input::placeholder { color: var(--text-tertiary); }
.search-close-x {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--bg-tinted);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
}
.search-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  border-bottom: 1px solid var(--separator);
}
.search-tab {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 160ms;
}
.search-tab:hover { color: var(--text-secondary); }
.search-tab.active {
  color: var(--kw-red);
  border-bottom-color: var(--kw-red);
}
.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 150ms;
}
.search-result-item:hover { background: var(--bg-tinted); }
.search-result-item .sr-icon { color: var(--text-tertiary); margin-top: 2px; }
.search-result-item .sr-body { flex: 1; min-width: 0; }
.search-result-item .sr-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item .sr-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  gap: 6px;
}
.search-empty-hint {
  padding: 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.search-saved-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 150ms;
}
.search-saved-row:hover { background: var(--bg-tinted); }
.search-saved-row .saved-name { flex: 1; font-size: 13.5px; color: var(--text-primary); font-weight: 500; }
.search-saved-row .saved-query { font-size: 11.5px; color: var(--text-tertiary); }
.search-saved-row .saved-alert {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--kw-red-soft-bg);
  color: var(--kw-red);
}
.search-save-btn {
  margin: 8px 14px 14px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--kw-red-soft-bg);
  border: 1px solid rgba(200,16,46,0.2);
  color: var(--kw-red);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 28px);
  transition: all 180ms;
}
.search-save-btn:hover { background: rgba(200,16,46,0.12); }

/* ---------- Filter popover ---------- */
.filter-popover {
  position: absolute;
  top: 56px;
  right: 0;
  width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.18);
  z-index: 30;
  animation: filterDrop 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes filterDrop {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.filter-section { margin-bottom: 14px; }
.filter-section h4 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms;
}
.filter-chip:hover { border-color: var(--separator-strong); }
.filter-chip.active {
  background: var(--kw-red-soft-bg);
  color: var(--kw-red);
  border-color: rgba(200,16,46,0.3);
}
.filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--separator);
}
.filter-actions button {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--separator);
  background: var(--bg-tinted);
  color: var(--text-secondary);
}
.filter-actions button.apply {
  background: var(--kw-red-gradient);
  color: white;
  border-color: transparent;
}

/* ---------- Sources modal ---------- */
.sources-modal-body {
  padding: 18px 22px 22px;
  max-height: 70vh;
  overflow-y: auto;
}
.sources-modal-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.sources-modal-meta {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.sources-region {
  margin-bottom: 20px;
}
.sources-region h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 10px;
}
.source-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px 70px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
}
.source-name { color: var(--text-primary); font-weight: 500; }
.source-bar-wrap {
  height: 8px;
  background: var(--bg-tinted);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.source-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(200,16,46,0.5), var(--kw-red));
  border-radius: 4px;
  transition: width 600ms cubic-bezier(0.32, 0.72, 0, 1);
}
.source-count { color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
.source-trust-cell { color: var(--text-tertiary); text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; }

.echo-warning {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3px solid #C58A2B;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
}
.echo-warning.ok {
  background: rgba(45,190,108,0.06);
  border-color: rgba(45,190,108,0.2);
  border-left-color: #2DBE6C;
}
.echo-warning .echo-h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #C58A2B;
}
.echo-warning.ok .echo-h { color: #1F8E50; }

/* ---------- Topic threads modal/view ---------- */
.threads-modal-body {
  padding: 18px 22px 22px;
}
.threads-modal-body h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.thread-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--separator);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 200ms;
  background: var(--bg-elevated);
}
.thread-card:hover {
  border-color: var(--kw-red);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.1);
}
.thread-emoji-lg {
  font-size: 28px;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-tinted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thread-body { flex: 1; min-width: 0; }
.thread-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.thread-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.thread-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.thread-summary {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.thread-heat {
  width: 60px;
  height: 4px;
  background: var(--bg-tinted);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.thread-heat-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFB347, var(--kw-red));
  border-radius: 2px;
}

/* Topic thread DETAIL view (full-page) */
.thread-detail-page { padding-top: 8px; }
.thread-detail-head {
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--separator);
  border-radius: 22px;
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.thread-detail-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(245,158,11,0.08), transparent 60%);
  pointer-events: none;
}
.thread-detail-head .thread-emoji-lg { width: 56px; height: 56px; font-size: 36px; }
.thread-detail-head h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 12px 0 8px;
  color: var(--text-primary);
}
.thread-detail-head .thread-detail-summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 12px;
  text-wrap: pretty;
}
.thread-detail-head .thread-detail-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.thread-detail-head .thread-detail-meta strong { color: var(--text-primary); }

/* ---------- Reader mode ---------- */
.reader-modal {
  background: var(--bg-elevated);
  border-radius: 22px;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--separator);
  background: var(--bg-glass);
  backdrop-filter: blur(40px);
}
.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 160ms;
}
.reader-back:hover { background: var(--bg-tinted); color: var(--text-primary); }
.reader-actions {
  display: flex;
  gap: 8px;
}
.reader-actions button {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms;
}
.reader-actions button:hover { border-color: var(--kw-red); color: var(--kw-red); }
.reader-actions button.liked { background: var(--kw-red-gradient); color: white; border-color: transparent; }

.reader-body {
  padding: 26px 36px 36px;
  overflow-y: auto;
  flex: 1;
}
.reader-body .reader-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.reader-body h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.2;
  margin: 0 0 22px;
  color: var(--text-primary);
  text-wrap: balance;
}
.reader-divider {
  height: 1px;
  background: var(--separator);
  margin: 22px 0;
}
.reader-section h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kw-red);
  margin: 0 0 10px;
}
.reader-why {
  background: rgba(200,16,46,0.05);
  border-left: 3px solid var(--kw-red);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-primary);
  text-wrap: pretty;
}
[data-theme="dark"] .reader-why {
  background: linear-gradient(135deg, rgba(200,16,46,0.10), rgba(200,16,46,0.04));
}
.reader-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  text-wrap: pretty;
}
.reader-summary p { margin: 0 0 14px; }
.reader-summary ul { padding-left: 20px; margin: 8px 0 14px; }
.reader-summary li { margin-bottom: 6px; line-height: 1.55; }
.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px;
  color: var(--text-secondary);
  font-size: 13.5px;
}
.reader-loading .heart-pulse {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--kw-red-gradient);
  animation: heartPulse 1.4s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.reader-loading .reader-loading-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}
.reader-related {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reader-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--separator);
  border-radius: 10px;
  cursor: pointer;
  transition: all 160ms;
  font-size: 13px;
}
.reader-related-item:hover {
  border-color: var(--kw-red);
  background: var(--kw-red-soft-bg);
}
.reader-related-item .rr-meta { font-size: 11px; color: var(--text-tertiary); margin-left: auto; white-space: nowrap; }
.reader-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.reader-cta-row button, .reader-cta-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 180ms;
  border: 1px solid var(--separator);
  background: var(--bg-tinted);
  color: var(--text-primary);
}
.reader-cta-row button.primary, .reader-cta-row a.primary {
  background: var(--kw-red-gradient);
  color: white;
  border-color: transparent;
}
.reader-cta-row button:hover, .reader-cta-row a:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
}
.reader-cta-row button.primary:hover, .reader-cta-row a.primary:hover {
  color: white;
  filter: brightness(1.05);
}

/* ---------- CoS Daily Brief bar (sticky bottom) ---------- */
.daily-brief-bar {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border: 1px solid var(--separator-strong);
  border-radius: 18px;
  padding: 14px 20px 16px;
  margin-top: 32px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: briefSlideUp 400ms cubic-bezier(0.32, 0.72, 0, 1) 600ms backwards;
}
[data-theme="dark"] .daily-brief-bar {
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}
@keyframes briefSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.daily-brief-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kw-red);
  margin-bottom: 10px;
}
.daily-brief-h .brief-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--kw-red-soft-bg);
}
.daily-brief-h .brief-time {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: none;
}
.daily-brief-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: brief;
}
.daily-brief-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  text-wrap: pretty;
  counter-increment: brief;
}
.daily-brief-list li::before {
  content: counter(brief);
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--kw-red-soft-bg);
  color: var(--kw-red);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.daily-brief-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.daily-brief-actions button {
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms;
}
.daily-brief-actions button:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
}
.daily-brief-actions button.primary {
  background: var(--kw-red-gradient);
  color: white;
  border-color: transparent;
}
.daily-brief-actions button.dismiss {
  margin-left: auto;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
}

/* ---------- Ask CoS modal ---------- */
.ask-cos-modal {
  padding: 22px 26px 22px;
}
.ask-cos-modal h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.ask-cos-modal .ask-sub {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.ask-cos-modal textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: 12px;
  background: var(--bg-tinted);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: all 180ms;
}
.ask-cos-modal textarea:focus { border-color: var(--kw-red); background: var(--bg-elevated); }
.ask-cos-modal textarea::placeholder { color: var(--text-tertiary); }

.ask-suggestions {
  margin-top: 14px;
}
.ask-suggestions h4 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}
.ask-suggestions .sug-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-tinted);
  border: 1px solid var(--separator);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 160ms;
}
.ask-suggestions .sug-chip:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
  background: var(--kw-red-soft-bg);
}
.ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--separator);
}
.ask-actions button {
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--separator);
  background: var(--bg-tinted);
  color: var(--text-secondary);
  transition: all 160ms;
}
.ask-actions button.primary {
  background: var(--kw-red-gradient);
  color: white;
  border-color: transparent;
}

/* ---------- Date pill count rosette ---------- */
.date-pill-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 5px;
  background: var(--bg-tinted);
  color: var(--text-tertiary);
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: middle;
}
.date-pill.active .date-pill-count {
  background: var(--kw-red-soft-bg);
  color: var(--kw-red);
}

/* ---------- Liked v2 extras (export, topic filter) ---------- */
.liked-export-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.liked-thread-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--separator);
  background: var(--bg-tinted);
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms;
}
.liked-thread-pill:hover { border-color: var(--separator-strong); }
.liked-thread-pill.active {
  background: var(--kw-red-soft-bg);
  border-color: rgba(200,16,46,0.3);
  color: var(--kw-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .news-hero-grid { grid-template-columns: 1fr; }
  .news-hero-side { flex-direction: row; }
  .news-hero-mini { flex: 1; }
}
@media (max-width: 720px) {
  .news-hero-side { flex-direction: column; }
  .news-hero-main { padding: 22px 22px 20px; }
  .news-hero-title { font-size: 24px; }
  .multiselect-bar { left: 12px; right: 12px; transform: none; bottom: 12px; }
  .multiselect-bar { transform: none; }
  @keyframes multiBarSlide {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .utility-search { min-width: 0; }
  .source-row { grid-template-columns: 100px 1fr 40px 56px; gap: 8px; font-size: 12px; }
  .reader-body { padding: 22px 22px 28px; }
  .reader-body h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .breaking-strip::before, .breaking-h .pulse-dot,
  .reader-loading .heart-pulse, .multiselect-bar, .daily-brief-bar { animation: none; }
}
