
:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-strong: #edf1f5;
  --ink: #121820;
  --muted: #66717f;
  --line: #d8e0e8;
  --primary: #1f3a5f;
  --primary-ink: #ffffff;
  --accent: #b45309;
  --accent-soft: #fff3dc;
  --shadow: 0 14px 32px rgba(18, 24, 32, 0.07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: 0; }
h2 { font-size: 18px; letter-spacing: 0; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
button:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 58, 95, 0.28); outline-offset: 2px; }
.button.secondary {
  background: var(--surface-strong);
  color: var(--ink);
}
.button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.intel-strip {
  display: grid;
  grid-template-columns: 180px 180px 160px minmax(0, 1fr);
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.intel-strip article, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.intel-strip article {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 16px;
}
.intel-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.intel-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.wide-stat strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.panel { padding: 18px; }
.primary { grid-row: span 2; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head p { color: var(--muted); font-size: 13px; }
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}
.tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(18, 24, 32, 0.08);
}
.tab-pane { padding-top: 14px; }
.tab-pane:not(.active) { display: none; }
.event-list { display: grid; gap: 10px; padding-top: 14px; }
.event {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.rank {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.event h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}
.original { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.pill.action {
  background: var(--primary);
  color: var(--primary-ink);
}
.pill.time-pill {
  background: var(--accent-soft);
  color: #7c2d12;
}
.pill.outline {
  background: transparent;
  border: 1px solid var(--line);
}
.score {
  min-width: 108px;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.score-value {
  display: block;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}
.score-label {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.score-rules {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  margin: 0;
  list-style: none;
}
.score-rules li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.score-rules li:last-child { border-bottom: 0; }
.score-rules strong { font-size: 14px; }
.score-rules span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.rule-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #7c2d12;
  font-size: 13px;
  line-height: 1.6;
}
.bars { padding-top: 14px; display: grid; gap: 12px; }
.bar-row { display: grid; gap: 6px; }
.bar-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.bar-track { height: 10px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--accent); }
.item-table { display: grid; gap: 8px; }
.item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 150px;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.platform { color: var(--primary); font-weight: 800; text-transform: capitalize; }
.item a { color: var(--ink); text-decoration: none; }
.item a:hover { text-decoration: underline; }
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.link-row a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.time { color: var(--muted); font-size: 13px; text-align: right; }
.empty { padding: 24px; color: var(--muted); text-align: center; }
.reader-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 52px;
}
.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.reader-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reader-article {
  min-height: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
}
.reader-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.reader-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.reader-article h1 {
  max-width: 820px;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.18;
}
.reader-original-title {
  max-width: 820px;
  margin-top: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.reader-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.reader-section h2 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 17px;
}
.reader-summary {
  max-width: 760px;
  color: #26323f;
  font-size: 18px;
  line-height: 1.75;
}
.article-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.article-images figure {
  margin: 0;
}
.article-images img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-strong);
}
.article-images figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.translated-list {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.translated-paragraph {
  max-width: 780px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.85;
}
.translated-paragraph.pending {
  color: var(--muted);
}
.translate-status {
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
}
.reader-error {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 320px;
  color: var(--muted);
}
.reader-error strong { color: var(--ink); font-size: 22px; }
.loading-block,
.loading-line {
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f7, #f8fafc, #eef3f7);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.loading-block {
  width: 140px;
  height: 32px;
  margin-bottom: 26px;
}
.loading-line {
  width: min(780px, 100%);
  height: 24px;
  margin: 14px 0;
}
.loading-line.wide { height: 46px; }
.loading-line.short { width: min(460px, 65%); }
@keyframes shimmer {
  0% { background-position: 0 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-block,
  .loading-line { animation: none; }
}
@media (max-width: 900px) {
  .intel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .primary { grid-row: auto; }
  .item { grid-template-columns: 1fr; }
  .time { text-align: left; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1280px); padding-top: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  button, .topbar .button { width: 100%; }
  .intel-strip { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
  .panel-head { align-items: start; flex-direction: column; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .event { grid-template-columns: 36px minmax(0, 1fr); }
  .score { grid-column: 2; text-align: left; }
  .score-rules li { grid-template-columns: 1fr; }
  .reader-shell { width: min(100% - 20px, 960px); padding-top: 12px; }
  .reader-nav, .reader-actions { align-items: stretch; flex-direction: column; }
  .reader-nav .button, .reader-actions .button { width: 100%; }
  .reader-article { padding: 18px; }
  .translated-paragraph { font-size: 16px; }
}
