.news-body {
  padding-bottom: calc(var(--tabbar-height) + 18px + env(safe-area-inset-bottom, 0px));
}

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

.news-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 56px 10px;
  background: linear-gradient(180deg, rgba(8, 16, 38, 0.96), rgba(8, 16, 38, 0.78));
  backdrop-filter: blur(14px);
}

.news-back {
  position: absolute;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #d5e4ff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.news-topbar-title {
  text-align: center;
}

.news-topbar-title h1 {
  font-size: 1.12rem;
  color: #fff;
  font-weight: 700;
}

.news-topbar-title p {
  font-size: 11px;
  color: #8ea3c7;
  margin-top: 2px;
}

.mood-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px 16px 12px;
}

.mood-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(16, 28, 58, 0.88);
  border: 1px solid rgba(120, 160, 220, 0.16);
}

.mood-card span {
  display: block;
  font-size: 11px;
  color: #93a7c8;
  margin-bottom: 6px;
}

.mood-card strong {
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.mood-pos strong { color: #3ee08a; }
.mood-neg strong { color: #ff6b7a; }

.hot-strip-wrap {
  padding: 0 0 8px;
}

.hot-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px 8px;
}

.hot-strip-head h2 {
  font-size: 0.95rem;
  color: #fff;
}

.hot-strip-head small {
  color: #8ea3c7;
  font-size: 11px;
}

.hot-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 6px;
  scrollbar-width: none;
}

.hot-strip::-webkit-scrollbar { display: none; }

.hot-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(14, 26, 54, 0.95);
  border: 1px solid rgba(90, 130, 190, 0.22);
  color: #fff;
  text-decoration: none;
}

.hot-chip b { font-size: 13px; }
.hot-chip em {
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}
.hot-chip .tone-pos { background: rgba(62, 224, 138, 0.16); color: #3ee08a; }
.hot-chip .tone-neg { background: rgba(255, 107, 122, 0.16); color: #ff6b7a; }
.hot-chip .tone-neu { background: rgba(255, 255, 255, 0.08); color: #b7c6e0; }

.news-tabs {
  position: sticky;
  top: 58px;
  z-index: 18;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 12px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.94), rgba(10, 18, 40, 0.4));
  scrollbar-width: none;
}

.news-tabs::-webkit-scrollbar { display: none; }

.news-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(140, 170, 220, 0.22);
  background: transparent;
  color: #9db2d6;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.news-tab.is-active {
  background: #eef3ff;
  color: #132047;
  border-color: #eef3ff;
}

.news-feed {
  padding: 0 12px 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 10px;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.news-card-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ea3c7;
  font-size: 11px;
  margin-bottom: 6px;
}

.cat-pill {
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(78, 140, 255, 0.12);
  color: #8cbcff;
  font-size: 10px;
}

.news-card h3 {
  color: #f4f8ff;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-size: 10px;
  border-radius: 999px;
  padding: 3px 7px;
  font-weight: 700;
}

.tag-pos { background: rgba(62, 224, 138, 0.14); color: #3ee08a; }
.tag-neg { background: rgba(255, 107, 122, 0.14); color: #ff6b7a; }
.tag-neu { background: rgba(255, 255, 255, 0.08); color: #c4d2ea; }
.tag-ind { background: rgba(120, 150, 200, 0.14); color: #b7c8e6; }
.tag-sym { background: rgba(30, 198, 230, 0.14); color: #7be7ff; }

.news-thumb {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(145deg, #1a2c5c, #0c1734);
}

.news-thumb.placeholder {
  display: grid;
  place-items: center;
  color: #7be7ff;
  font-weight: 800;
  font-size: 13px;
}

.news-more {
  display: block;
  margin: 8px 16px 20px;
  width: calc(100% - 32px);
  border: 1px solid rgba(120, 160, 220, 0.25);
  background: rgba(16, 28, 58, 0.8);
  color: #d5e6ff;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
}

.news-empty, .news-error {
  text-align: center;
  padding: 24px 20px;
  color: #9db2d6;
  font-size: 0.95rem;
}

.news-error { color: #ff8b96; }

.news-intercept {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 24, 0.62);
  backdrop-filter: blur(8px);
}

.intercept-card {
  width: min(78vw, 280px);
  text-align: center;
  padding: 28px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #16305f, #0c1733);
  border: 1px solid rgba(120, 180, 255, 0.2);
  color: #fff;
}

.intercept-card span {
  display: block;
  margin-top: 8px;
  color: #8ea3c7;
  font-size: 11px;
}

.intercept-orbit {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #4ec8ff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.news-detail {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 8, 20, 0.72);
  display: flex;
  align-items: flex-end;
}

.news-detail-panel {
  width: 100%;
  max-height: 88dvh;
  overflow: auto;
  background: linear-gradient(180deg, #13244a, #0b152e);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(88px + env(safe-area-inset-bottom, 0px));
}

.news-detail-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.detail-meta {
  color: #8ea3c7;
  font-size: 12px;
  margin-bottom: 8px;
}

#detail-title {
  font-size: 1.2rem;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 12px;
}

.detail-snippet {
  color: #c9d7ef;
  line-height: 1.55;
  margin: 12px 0 16px;
}

.detail-tags, .detail-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-link {
  display: block;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
  color: #081428;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
}

.skel {
  height: 88px;
  border-radius: 16px;
  margin: 10px 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}

@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
