:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --canvas: #f7f8fa;
  --red: #c8161d;
  --navy: #12233f;
  --gold: #d6a33b;
}

body { background: var(--canvas); color: var(--ink); font-family: Inter, Arial, "Microsoft YaHei", sans-serif; }
.news-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.news-topbar { max-width: 1240px; min-height: 76px; margin: auto; padding: 12px 24px; display: grid; grid-template-columns: 1fr minmax(260px, 430px) auto; gap: 24px; align-items: center; }
.news-brand { display: flex; gap: 12px; align-items: center; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.news-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; background: var(--red); color: #fff; font-size: 14px; letter-spacing: .08em; }
.news-search { display: flex; border: 1px solid var(--line); background: #fff; }
.news-search input { width: 100%; height: 40px; padding: 0 13px; border: 0; outline: none; }
.news-search button { padding: 0 18px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
.language-switcher { display: flex; gap: 3px; }
.language-switcher a { padding: 8px 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.language-switcher a.active { background: var(--ink); color: #fff; }
.news-nav { background: var(--navy); color: #fff; }
.news-nav-inner { max-width: 1240px; margin: auto; padding: 0 24px; display: flex; overflow-x: auto; }
.news-nav a { flex: 0 0 auto; padding: 13px 17px; color: #d8e1ef; font-size: 14px; }
.news-nav a:hover, .news-nav a.active { background: var(--red); color: #fff; }
.news-page { max-width: 1240px; min-height: 620px; margin: auto; padding: 32px 24px 56px; }
.news-hero { display: flex; min-height: 300px; padding: 42px; align-items: end; justify-content: space-between; color: #fff; background: linear-gradient(125deg, #0b172b, #193c68 70%, #86141a); overflow: hidden; position: relative; }
.news-hero::after { content: "WORLD / LIVE / VERIFIED"; position: absolute; right: -20px; top: 32px; color: rgba(255,255,255,.08); font-size: 48px; font-weight: 900; transform: rotate(-8deg); }
.news-hero h1 { max-width: 720px; margin: 8px 0; font-size: clamp(34px, 6vw, 66px); line-height: .98; letter-spacing: -.045em; }
.news-hero h1 a { color: #fff; }
.news-hero p { max-width: 780px; margin: 0; color: #dfe8f6; font-size: 18px; line-height: 1.65; }
.eyebrow { display: block; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.news-hero .eyebrow { color: #ff777c; }
.live-indicator { position: relative; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: rgba(0,0,0,.28); font-size: 12px; font-weight: 800; }
.live-indicator span { width: 8px; height: 8px; border-radius: 50%; background: #ff3b42; box-shadow: 0 0 0 5px rgba(255,59,66,.2); }
.breaking-strip { margin-top: 24px; padding: 24px; background: #fff; border-top: 4px solid var(--red); }
.breaking-strip > h2 { margin: 0 0 18px; font-size: 20px; }
.breaking-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.breaking-grid article { min-height: 150px; padding: 20px; background: #fff; }
.breaking-grid h3 { margin: 12px 0 18px; font-size: 18px; line-height: 1.35; }
.breaking-grid time { color: var(--muted); font-size: 12px; }
.news-label { display: inline-flex; padding: 4px 7px; color: var(--navy); background: #eef2f6; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.news-label.urgent { color: #fff; background: var(--red); }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; margin-top: 30px; }
.news-stream, .news-sidebar section, .news-detail, .related-news { background: #fff; border: 1px solid var(--line); }
.stream-heading { display: flex; min-height: 92px; padding: 22px 26px; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.stream-heading h1 { margin: 5px 0 0; font-size: 28px; }
.stream-heading > span { color: var(--muted); font-size: 13px; }
.news-card { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 24px 26px; border-bottom: 1px solid var(--line); align-items: start; }
.news-card:last-child { border-bottom: 0; }
.news-card > div { min-width: 0; }
.news-card-visual { display: flex; width: 100%; aspect-ratio: 16 / 10; min-height: 0; align-items: end; padding: 14px; color: #fff; background: linear-gradient(145deg, #1c3153, #506681); text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .12em; position: relative; overflow: hidden; }
.news-card-visual img, .category-card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card-visual::after, .category-card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,10,22,.08), rgba(4,10,22,.72)); }
.news-card-visual span, .category-card-visual span { position: relative; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.news-card-visual:hover img, .category-card-visual:hover img { transform: scale(1.04); }
.news-card.is-breaking .news-card-visual { background: linear-gradient(145deg, #6f0e13, #c8161d); }
.news-card h2 { margin: 9px 0; font-size: 23px; line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
.news-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.news-card-meta a { color: var(--red); font-weight: 800; }
.read-more { color: var(--navy); font-size: 12px; font-weight: 900; }
.news-sidebar { display: grid; align-content: start; gap: 20px; }
.news-sidebar section { padding: 24px; }
.news-sidebar h2 { margin: 7px 0 16px; }
.hot-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); align-items: start; }
.hot-item strong { color: #cbd1da; font-size: 25px; }
.hot-item span { font-size: 14px; line-height: 1.45; font-weight: 700; }
.category-sections { display: grid; gap: 24px; margin-top: 30px; }
.category-section { background: #fff; border: 1px solid var(--line); }
.category-section > header { display: flex; padding: 22px 26px; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.category-section h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.02em; }
.category-section > header > a { color: var(--navy); font-size: 12px; font-weight: 900; }
.category-news-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: var(--line); }
.category-news-grid article { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 18px; background: #fff; align-content: start; }
.category-news-grid article.featured { grid-row: span 2; grid-template-columns: 1fr; }
.category-news-grid article > div { min-width: 0; }
.category-news-grid h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.category-news-grid article.featured h3 { font-size: 24px; letter-spacing: -.02em; }
.category-news-grid p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.category-news-grid time { color: var(--muted); font-size: 12px; }
.category-card-visual { display: flex; width: 100%; aspect-ratio: 16 / 10; min-height: 0; align-items: end; padding: 10px; color: #fff; background: linear-gradient(145deg, #1c3153, #506681); font-size: 10px; font-weight: 900; letter-spacing: .08em; position: relative; overflow: hidden; }
.category-news-grid article.featured .category-card-visual { aspect-ratio: 16 / 9; min-height: 0; }
.theme-breaking { background: linear-gradient(145deg, #7f1016, #d11d24); }
.theme-conflict { background: linear-gradient(145deg, #2b1838, #6a355f); }
.theme-crypto { background: linear-gradient(145deg, #132f4c, #2b75b8); }
.theme-energy_economy { background: linear-gradient(145deg, #233719, #739338); }
.news-pagination { display: flex; gap: 14px; padding: 24px; align-items: center; justify-content: center; border-top: 1px solid var(--line); }
.news-pagination a, .news-pagination span { padding: 9px 13px; border: 1px solid var(--line); }
.news-empty { padding: 64px 24px; text-align: center; color: var(--muted); }
.detail-shell { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; }
.news-detail { padding: clamp(24px,5vw,60px); }
.news-detail h1 { max-width: 900px; margin: 18px 0; font-size: clamp(34px,5vw,62px); line-height: 1.05; letter-spacing: -.04em; }
.detail-summary { max-width: 820px; color: #475467; font-size: 20px; line-height: 1.6; }
.detail-time { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 13px; }
.trust-badge { padding: 4px 7px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.trust-high { color: #067647; background: #ecfdf3; }
.trust-medium { color: #b54708; background: #fffaeb; }
.trust-low { color: #b42318; background: #fef3f2; }
.article-body { font-family: Georgia, "Noto Serif", serif; font-size: 18px; line-height: 1.85; }
.article-body p { margin: 0 0 1.4em; }
.news-detail-cover { margin: 28px 0 34px; background: #eef2f6; }
.news-detail-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-detail-cover figcaption { padding: 8px 0 0; color: var(--muted); font-size: 12px; }
.source-list { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.source-list-muted { color: var(--muted); }
.source-note { max-width: 760px; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.source-list > .source-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.source-list > .source-item > span { color: var(--red); font-size: 10px; font-weight: 900; }
.source-list small { color: var(--muted); }
.news-download { display: inline-flex; margin-top: 30px; padding: 13px 20px; color: #fff; background: var(--red); font-weight: 800; }
.related-news { height: max-content; padding: 24px; }
.related-news h2 { margin: 7px 0 14px; }
.related-news > a { display: grid; gap: 6px; padding: 15px 0; border-top: 1px solid var(--line); }
.related-news > a span { color: var(--red); font-size: 11px; font-weight: 800; }
.related-news > a strong { font-size: 14px; line-height: 1.45; }
.news-footer { padding: 38px 24px; color: #c8d2e0; background: #0b172b; text-align: center; }
.news-footer strong { color: #fff; }
.news-footer p { margin: 10px auto 0; max-width: 720px; font-size: 12px; }

.news-ad-slot {
  position: relative;
  border: 1px dashed #c7ced8;
  background:
    linear-gradient(135deg, rgba(18,35,63,.06), rgba(200,22,29,.05)),
    #fff;
  color: var(--ink);
}
.news-ad-label {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.news-ad-body strong { display: block; font-size: 20px; line-height: 1.25; }
.news-ad-body p { margin: 8px 0; color: var(--muted); line-height: 1.55; }
.news-ad-body em { color: var(--red); font-style: normal; font-size: 13px; font-weight: 900; }
.news-ad-link { display: grid; gap: 14px; color: inherit; }
.news-ad-image { display: block; width: 100%; max-height: 220px; object-fit: cover; background: #eef2f6; }
.news-ad-slot.is-configured { border-style: solid; }
.news-ad-banner {
  margin: 24px 0 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 24px 30px;
}
.news-ad-banner .news-ad-body {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
}
.news-ad-banner .news-ad-link {
  grid-template-columns: minmax(220px, .35fr) minmax(260px, 1fr);
  align-items: center;
  width: 100%;
}
.news-ad-banner .news-ad-image { max-height: 90px; aspect-ratio: 16 / 5; }
.news-ad-banner .news-ad-body p { margin: 0; }
.news-ad-sidebar {
  min-height: 230px;
  padding: 24px;
  display: flex;
  align-items: end;
}
.news-ad-sidebar .news-ad-body { padding-top: 50px; }
.news-ad-sidebar .news-ad-image { aspect-ratio: 1 / 1; max-height: none; }
.news-ad-inline {
  margin: 26px 0 32px;
  padding: 22px 24px;
}
.news-ad-inline .news-ad-link { grid-template-columns: 160px 1fr; align-items: center; }
.news-ad-inline .news-ad-image { aspect-ratio: 16 / 9; max-height: 110px; }

.stats-page { max-width: 1180px; }
.stats-hero,
.stats-panel {
  margin: 0 0 24px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}
.stats-hero h1 { margin: 8px 0 10px; font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.stats-hero p { max-width: 720px; color: var(--muted); }
.stats-filter,
.stats-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.stats-filter label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.stats-filter input,
.stats-login-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font: inherit;
}
.stats-filter button,
.stats-login-form button {
  min-height: 42px;
  border: 0;
  padding: 0 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.public-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.public-stats-grid article {
  padding: 18px;
  background: #f6f8fb;
  border: 1px solid var(--line);
}
.public-stats-grid span { display: block; color: var(--muted); font-size: 13px; }
.public-stats-grid strong { display: block; margin-top: 8px; font-size: 34px; line-height: 1; }
.public-stats-grid.compact strong { font-size: 28px; }
.stats-note { color: var(--muted); font-size: 13px; }
.private-stats-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}
.private-stats-header h2 { margin: 6px 0 8px; }
.stats-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.stats-table-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.stats-table-grid th,
.stats-table-grid td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}
.stats-table-grid th { color: var(--muted); font-size: 12px; }
.stats-table-grid small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .public-stats-grid,
  .stats-table-grid { grid-template-columns: 1fr; }
  .private-stats-header { display: block; }
  .news-ad-banner .news-ad-link,
  .news-ad-inline .news-ad-link { grid-template-columns: 1fr; }
  .news-ad-banner .news-ad-body { grid-template-columns: 1fr; }
}
[dir="rtl"] .news-card-meta, [dir="rtl"] .detail-time { justify-content: flex-start; }

@media (max-width: 900px) {
  .news-topbar { grid-template-columns: 1fr auto; gap: 12px; }
  .news-search { grid-column: 1 / -1; grid-row: 2; }
  .news-layout, .detail-shell { grid-template-columns: 1fr; }
  .breaking-grid { grid-template-columns: 1fr; }
  .category-news-grid { grid-template-columns: 1fr; }
  .news-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .news-topbar, .news-nav-inner, .news-page { padding-left: 14px; padding-right: 14px; }
  .news-brand { font-size: 17px; }
  .news-brand-mark { width: 36px; height: 36px; }
  .language-switcher a { padding: 7px 5px; }
  .news-hero { min-height: 190px; padding: 28px 22px; }
  .live-indicator { display: none; }
  .news-card { grid-template-columns: 1fr; padding: 20px; }
  .news-card-visual { min-height: 0; }
  .category-news-grid article { grid-template-columns: 1fr; }
  .news-sidebar { grid-template-columns: 1fr; }
  .news-detail { padding: 24px 20px; }
  .source-list > .source-item { grid-template-columns: 1fr; gap: 5px; }
}
