/* News page — Inter only */
.news-page-hero {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding: 8px 0 22px;
}

.news-page-hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
}

.news-page-hero p {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(226, 232, 248, 0.78);
}

.news-mood {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-mood div {
  background: rgba(10, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 92px;
  backdrop-filter: blur(12px);
}

.news-mood small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-secondary);
}

.news-mood small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, #6b7798);
}

.news-mood b {
  display: block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin-top: 2px;
}

.news-filters-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin: 0 -4px 8px;
  border-radius: 18px;
  background: rgba(7, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-filters-bar .filter-chips {
  margin: 0;
  flex: 1;
}

.news-sent {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px;
  margin-left: auto;
}

.news-sent button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 999px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.news-sent button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.news-sent button.on {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.news-day {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 2px 10px;
}

.news-day i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.news-day[hidden] {
  display: none !important;
}

.news-cat-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 1px 7px;
}

/* Filter chips — white active like mock */
.news-filters-bar .filter-chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 248, 0.7);
  border-radius: 999px;
}
.news-filters-bar .filter-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.news-filters-bar .filter-chip.active {
  background: #fff;
  color: #07080f;
  border-color: #fff;
  font-weight: 600;
}

.news-result-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6b7798;
  margin: 4px 2px 12px;
}

/* Glass 3-col rows */
.page-content .news-item,
.news-page .news-item {
  --c: #6b7798;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px 15px 20px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  overflow: hidden;
  cursor: pointer;
}

.page-content .news-item:hover,
.news-page .news-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.page-content .news-item .news-sentiment,
.news-page .news-item .news-sentiment {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}

.page-content .news-item .news-sentiment.positive { --c: #2dd4a0; background: #2dd4a0; box-shadow: 0 0 14px #2dd4a0; }
.page-content .news-item .news-sentiment.negative { --c: #f0607a; background: #f0607a; box-shadow: 0 0 14px #f0607a; }
.page-content .news-item .news-sentiment.neutral { --c: #6b7798; background: #6b7798; }

.news-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(226, 232, 248, 0.65);
}

.page-content .news-item .news-body,
.news-page .news-item .news-body {
  min-width: 0;
  display: block;
}

.page-content .news-item .news-meta,
.news-page .news-item .news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 11.5px;
}

.news-ent {
  font-weight: 600;
  color: #c9d6ff;
}

.page-content .news-item .news-title-text,
.news-page .news-item .news-title-text {
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.news-score-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 62px;
}

.page-content .news-item .news-score,
.news-page .news-item .news-score {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  min-width: 44px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 10px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
}

.news-meter {
  position: relative;
  width: 62px;
  height: 3px;
  margin-top: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
  overflow: visible;
  max-width: none;
}

.news-meter::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  width: 1px;
  height: 7px;
  background: rgba(255, 255, 255, 0.25);
}

.news-meter i {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--c, #6b7798);
  display: block;
}

.news-meter.pos i { background: #2dd4a0; }
.news-meter.neg i { background: #f0607a; }
.news-meter.neu i { background: #6b7798; width: 0 !important; }

@media (max-width: 640px) {
  .news-mood { margin-left: 0; width: 100%; }
  .news-sent { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .page-content .news-item,
  .news-page .news-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 13px 14px 13px 18px;
  }
  .news-time {
    grid-column: 1 / -1;
    margin-bottom: -6px;
    font-size: 10.5px;
  }
  .page-content .news-item .news-title-text { font-size: 14.5px; }
  .news-meter { display: none; }
}
