/* News Analysis v2 theme. Tokens and shared components for the redesign (design kit:
   .planning/research/redesign/README.md). Used only by Views/Shared/_AppLayout.cshtml.
   Layout: the shell fills the window; only panes scroll. Below 1000px the page scrolls and panes stack.
   Direction-neutral: logical properties throughout, so dir="rtl" needs no extra rules. */

:root {
  /* core */
  --slate: #35536b;
  --slate-deep: #2b4558;
  --slate-ink: #1f3445;
  --slate-line: #56718a;
  --page: #f3f5f7;
  --panel: #ffffff;
  --border: #e2e7ec;
  --divider: #eef1f4;
  --ink: #16212b;
  --ink-strong: #101a23;
  --body: #2c3843;
  --muted: #5f6b77;
  --on-slate: #dbe4ec;
  --selection: #e9f0f6;
  --live: #2e8540;
  --accent: #c2410c;
  --chart-axis: #b8c3cd;
  --scroll-thumb: #c5ced8;

  /* section (category) colors: fill / bright / dark / ink */
  --sec-world-fill: #b3191a; --sec-world-bright: #ef5350; --sec-world-dark: #55090a; --sec-world-ink: #a3171a;
  --sec-nation-fill: #a8650c; --sec-nation-bright: #f0a030; --sec-nation-dark: #5a3608; --sec-nation-ink: #8f5509;
  --sec-business-fill: #35536b; --sec-business-bright: #7fa8cc; --sec-business-dark: #1c2c39; --sec-business-ink: #35536b;
  --sec-technology-fill: #4d7a26; --sec-technology-bright: #8cc554; --sec-technology-dark: #263d13; --sec-technology-ink: #3f6720;
  --sec-entertainment-fill: #006666; --sec-entertainment-bright: #2bbcbc; --sec-entertainment-dark: #013636; --sec-entertainment-ink: #006060;
  --sec-sports-fill: #8a7205; --sec-sports-bright: #e2c02a; --sec-sports-dark: #4a3d03; --sec-sports-ink: #7a6504;
  --sec-science-fill: #c2410c; --sec-science-bright: #ff7b59; --sec-science-dark: #6b2407; --sec-science-ink: #b23c0b;
  --sec-health-fill: #942b63; --sec-health-bright: #dc6aa6; --sec-health-dark: #4f1735; --sec-health-ink: #8c285d;

  /* analysis gauges */
  --sent-neg: #c2410c; --sent-neu: #5f6b77; --sent-pos: #0f766e;
  --sent-track: linear-gradient(90deg, #f5cdbb, #e6eaee 50%, #c3e3df);
  --bias-left: #2563a8; --bias-center: #5f6b77; --bias-right: #b42318;
  --bias-track: linear-gradient(90deg, #c9dcf2, #e6eaee 50%, #f2cdc9);

  /* entity types */
  --ent-people: #35536b; --ent-orgs: #12788e; --ent-places: #4f8a2e; --ent-topics: #8a6d3b;

  /* type and spacing */
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-base: 14px;
  --fs-label: 12px;
  --fs-feed: 13.5px;
  --fs-meta: 12px;
  --fs-body: 14.5px;
  --lh-body: 1.66;
  --radius: 10px;
  --radius-sm: 6px;
  --gap: 14px;
  --main-pad-block: 14px;
  --main-pad-inline: 20px;
  --header-h: 50px;
  --subbar-h: 44px;
  --footer-h: 28px;
  --shadow-on: 0 1px 2px rgba(16, 26, 35, 0.18);
  --focus: 0 0 0 3px rgba(53, 83, 107, 0.45);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body, :lang(he) body { font-family: 'Noto Sans Arabic', 'Noto Sans Hebrew', var(--font); }
:lang(ja) body { font-family: 'Noto Sans JP', var(--font); }
:lang(ko) body { font-family: 'Noto Sans KR', var(--font); }
:lang(zh) body { font-family: 'Noto Sans SC', var(--font); }
:lang(th) body { font-family: 'Noto Sans Thai', var(--font); }
:lang(hi) body { font-family: 'Noto Sans Devanagari', var(--font); }
a { color: var(--slate); }
a:hover { color: var(--slate-ink); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.na-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.na-scroll { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.na-muted { color: var(--muted); }
.na-num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.na-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.na-header { flex: none; background: var(--slate); color: #fff; }
.na-header-in {
  min-height: var(--header-h);
  padding: 3px var(--main-pad-inline);
  display: flex;
  align-items: center;
  gap: 6px 26px;
}
.na-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.na-brand:hover { color: #fff; }
.na-brand img { height: 44px; width: auto; display: block; }
.na-brand span { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.na-nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.na-nav::-webkit-scrollbar { display: none; }
.na-nav a {
  color: var(--on-slate);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  white-space: nowrap;
}
.na-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.na-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.16); font-weight: 600; }
.na-header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; flex: none; }
.na-lang { display: flex; align-items: center; gap: 7px; color: var(--on-slate); }
.na-lang select {
  background: var(--slate-deep);
  color: #fff;
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 13px;
  max-width: 220px;
}
.na-account { display: flex; align-items: center; gap: 12px; color: var(--on-slate); font-size: 13px; }
.na-account a, .na-account button.na-linkbtn { color: #fff; font-weight: 600; text-decoration: none; padding: 8px 4px; background: none; border: 0; }
.na-account details { position: relative; }
.na-account summary { list-style: none; cursor: pointer; color: #fff; font-weight: 600; padding: 8px 4px; }
.na-account summary::-webkit-details-marker { display: none; }
.na-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 190px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 26, 35, 0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.na-menu a { color: var(--ink) !important; font-weight: 500 !important; padding: 7px 10px !important; border-radius: 6px; }
.na-menu a:hover { background: var(--selection); }

.na-subbar { flex: none; background: var(--panel); border-bottom: 1px solid var(--border); }
.na-subbar-in {
  min-height: var(--subbar-h);
  padding: 0 var(--main-pad-inline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.na-subbar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--muted); padding: 6px 0; flex-wrap: wrap; }
.na-live { display: inline-flex; align-items: center; gap: 8px; }
.na-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(46, 133, 64, 0.18);
  flex: none;
}
.na-live[data-state="stale"]::before { background: var(--muted); box-shadow: none; }

.na-main {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: var(--gap);
  padding: var(--main-pad-block) var(--main-pad-inline);
}
.na-footer {
  flex: none;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--main-pad-inline);
  background: var(--panel);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.na-footer-end { margin-inline-start: auto; display: flex; gap: 16px; }

/* ---------- panes ---------- */
.na-pane {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.na-pane-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.na-pane-head.na-soft { border-bottom-color: var(--divider); }
.na-pane-body { flex: 1; min-height: 0; overflow-y: auto; }
.na-pad { padding: 12px 14px 14px; }
.na-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.na-label {
  margin: 0;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}
.na-count { font-size: 12px; color: var(--muted); }
.na-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.na-loading { opacity: 0.55; transition: opacity 0.2s; }
.na-error { padding: 16px; color: var(--accent); font-size: 13px; }

/* ---------- controls ---------- */
.na-seg { display: inline-flex; background: var(--divider); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.na-seg button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.na-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-on); }
.na-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.na-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--divider);
  color: var(--muted);
  white-space: nowrap;
}
.na-chip[aria-pressed="true"] { background: var(--slate); color: #fff; }
.na-chip .n { opacity: 0.7; font-weight: 500; }
.na-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 0; font-size: 12.5px; color: var(--muted); }
.na-switch .track { width: 32px; height: 20px; border-radius: 999px; background: #c9d2db; position: relative; flex: none; transition: background 0.2s; }
.na-switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start 0.2s; }
.na-switch[aria-checked="true"] .track { background: var(--slate); }
.na-switch[aria-checked="true"] .track::after { inset-inline-start: 15px; }
.na-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 5px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate);
  text-decoration: none;
}
.na-iconbtn:hover { background: var(--selection); }
.na-iconbtn svg { display: block; }
.na-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  background: var(--slate);
  color: #fff;
  text-decoration: none;
}
.na-btn:hover { background: var(--slate-ink); color: #fff; }
.na-btn.na-ghost { background: var(--divider); color: var(--ink); }
.na-btn.na-ghost:hover { background: var(--selection); }
.na-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px 8px;
  font-size: 13px;
  max-width: 100%;
}
.na-input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; min-width: 0; }

/* category tab bar (sub-bar) */
.na-cats { display: flex; flex-wrap: wrap; gap: 2px; }
.na-cats button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 10px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.na-cats button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--dot, var(--slate)); }
.na-cats .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--slate)); flex: none; }

/* ---------- feed rows ---------- */
.na-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: start;
  padding: 10px 14px 11px;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.na-row:hover { background: #f7f9fb; }
.na-row[aria-pressed="true"], .na-row[aria-current="true"] { background: var(--selection); }
.na-row .kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-c, var(--slate));
}
.na-row .kicker .clock { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.na-row .kicker .sq { width: 7px; height: 7px; border-radius: 2px; background: var(--dot, var(--slate)); flex: none; }
.na-row .title {
  font-size: var(--fs-feed);
  line-height: 1.36;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.na-row[aria-pressed="true"] .title { font-weight: 600; }
.na-row .meta { font-size: 11.5px; color: var(--muted); }
.na-row.na-new { animation: na-flash 2.4s ease-out; }
@keyframes na-flash { from { background: #fff4d6; } to { background: transparent; } }
.na-thumbrow { display: flex; gap: 10px; align-items: flex-start; }
.na-thumbrow img { width: 72px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; flex: none; background: #e9edf1; }

/* ---------- reader ---------- */
.na-reader { padding: 16px 18px 22px; }
.na-reader .hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: #e9edf1; }
.na-reader .metaline { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.na-badge {
  background: var(--dot, var(--slate));
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}
.na-reader h1 { margin: 0 0 12px; font-size: 21px; line-height: 1.24; letter-spacing: -0.015em; font-weight: 700; color: var(--ink-strong); text-wrap: balance; }
.na-reader .ai { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); }
.na-reader .body { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--body); white-space: pre-line; text-wrap: pretty; overflow-wrap: anywhere; }
.na-readlink { font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- gauges ---------- */
.na-gauge { margin-top: 12px; }
.na-gauge .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.na-gauge .top .name { font-weight: 600; }
.na-gauge .top .val { font-weight: 700; color: var(--g, var(--muted)); }
.na-gauge .track { position: relative; height: 8px; border-radius: 4px; margin: 9px 0 6px; background: var(--sent-track); }
.na-gauge.bias .track { background: var(--bias-track); }
.na-gauge .track .mid { position: absolute; inset-inline-start: 50%; top: -4px; width: 2px; height: 16px; background: #9aa5b1; transform: translateX(-50%); }
.na-gauge .track .knob {
  position: absolute;
  left: var(--pct, 50%);
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g, var(--muted));
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 26, 35, 0.4);
  transform: translate(-50%, -50%);
  transition: left 0.5s ease;
}
.na-gauge .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.na-gauge.na-na .track .knob { display: none; }
/* gauges read left-to-right in every language (the scales are spatial, not textual) */
.na-gauge .track, .na-gauge .ends { direction: ltr; }

/* ---------- entities ---------- */
.na-entgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 14px 20px; }
.na-entgrid h3 { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.na-entlist { list-style: none; margin: 0; padding: 0; }
.na-entlist li { display: flex; align-items: center; padding: 1px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.na-entlist .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-entlist .na-iconbtn { min-width: 26px; min-height: 26px; padding: 6px; }
.na-entlist .na-iconbtn.tl { color: #5a8bb0; }

/* ---------- map ---------- */
.na-map { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #f5f7f9; border: 1px solid var(--border); direction: ltr; }
.na-map .layer { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.na-map .layer img { width: 100%; height: 100%; display: block; }
.na-map .pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(53, 83, 107, 0.18);
  transition: left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.na-map .none { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.na-mapnames { margin: 6px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- bar chart ---------- */
.na-bars { flex: 1; min-height: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 8px; padding-top: 10px; direction: ltr; }
.na-bars .yaxis { display: flex; flex-direction: column; justify-content: space-between; margin: -6px 0; font-size: 10.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.na-bars .plot { position: relative; min-height: 0; }
.na-bars .grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); }
.na-bars .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--chart-axis); }
.na-bars .cols > * { flex: 1; min-width: 0; background: var(--bar, var(--slate)); border-radius: 2px 2px 0 0; border: 0; padding: 0; }
.na-bars .cols > button[aria-pressed="true"] { background: var(--accent); }
.na-bars .ticks { display: flex; gap: 2px; margin-top: 5px; }
.na-bars .ticks > span { flex: 1; position: relative; height: 13px; }
.na-bars .ticks > span > span { position: absolute; left: 0; font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---------- media ---------- */
.na-video { position: relative; border-radius: 6px; overflow: hidden; background: #0d1620; aspect-ratio: 16 / 9; }
.na-video img, .na-video iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.na-video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 16, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
}
.na-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding: 4px; }
.na-thumbs button { flex: none; width: 76px; padding: 0; border: 0; background: #0d1620; border-radius: 4px; overflow: hidden; }
.na-thumbs button[aria-pressed="true"] { outline: 2px solid var(--slate); outline-offset: 2px; }
.na-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.na-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- motion ---------- */
@keyframes na-dwell { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- phone / tablet: normal page scrolling, stacked panes ---------- */
@media (max-width: 1000px) {
  .na-shell { height: auto; min-height: 100vh; overflow: visible; }
  .na-main { display: flex !important; flex-direction: column; }
  .na-main > * { grid-column: auto !important; grid-row: auto !important; }
  .na-pane { height: min(80vh, 720px); flex: none; }
  .na-pane.na-auto { height: auto; }
  .na-col { flex: none; }
  .na-split { display: flex !important; flex-direction: column !important; }
  .na-split > * { flex: 1; min-height: 0; }
  .na-header-in { flex-wrap: wrap; }
  .na-nav { order: 3; flex-basis: 100%; }
  .na-brand span { display: none; }
  .na-footer { height: auto; min-height: var(--footer-h); flex-wrap: wrap; padding-block: 6px; white-space: normal; }
}
@media (max-width: 560px) {
  :root { --main-pad-inline: 12px; --gap: 12px; }
  .na-lang select { max-width: 150px; }
}

/* ======================================================================
   Pages
   ====================================================================== */

/* ---------- Home (G · Dashboard) ---------- */
.na-home {
  grid-template-columns: 276px minmax(0, 1.3fr) minmax(0, 1fr) 292px;
  grid-template-rows: minmax(0, 1.12fr) minmax(0, 1fr);
}
.na-home .home-feed { grid-column: 1; grid-row: 1 / span 2; }
.na-home .home-reader { grid-column: 2; grid-row: 1 / span 2; }
.na-home .home-mid { grid-column: 3; grid-row: 1 / span 2; }
.na-home .home-volume { flex: none; }
.na-home .home-entities { flex: 1; }
.na-home .home-analysis { grid-column: 4; grid-row: 1; }
.na-home .home-media { grid-column: 4; grid-row: 2; }
.home-social { display: block; text-decoration: none; color: var(--ink); background: #f5f7f9; border: 1px solid #e8ecf0; border-radius: 10px; padding: 12px; }
.home-social:hover { color: var(--ink); border-color: var(--border); }
.home-social .who { display: flex; align-items: center; gap: 10px; }
.home-social .who img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.home-social .names { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.home-social .names strong { font-size: 13px; color: var(--ink); }
.home-social .plat { font-size: 11px; font-weight: 700; color: #fff; background: #0a62c9; padding: 2px 7px; border-radius: 4px; text-transform: capitalize; }
.home-social .text { display: block; margin: 10px 0; font-size: 13px; line-height: 1.45; }
.home-social .pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.home-social .when { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 1280px) and (min-width: 1001px) {
  .na-home { grid-template-columns: 240px minmax(0, 1.3fr) minmax(0, 1fr) 260px; }
}

/* ---------- Newsmap ---------- */
.na-newsmap { grid-template-columns: minmax(0, 1fr) 340px; }
.nm-toggles { padding: 8px 0; gap: 5px; }
.nm-toggle { padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--fill); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.nm-toggle[aria-pressed="true"] { background: var(--fill); color: #fff; }
.nm-map .na-pane-head { min-height: 0; }
.nm-stage { flex: 1; min-height: 0; position: relative; margin: 0 8px 8px; direction: ltr; }
.nm-head { position: absolute; padding: 1px; }
.nm-head > div {
  height: 100%;
  background: #1d2a35;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.nm-head span:first-child { overflow: hidden; text-overflow: ellipsis; }
.nm-head .n { color: #aebccb; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.nm-tile { position: absolute; padding: 1px; margin: 0; border: 0; background: #fff; text-align: start; }
.nm-tile .in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  height: 100%;
  color: #fff;
  overflow: hidden;
  transition: filter 0.15s ease;
}
.nm-tile:hover .in { filter: brightness(1.12); }
.nm-tile[aria-pressed="true"] .in { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgba(0, 0, 0, 0.45); }
.nm-tile .t { font-weight: 600; line-height: 1.14; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.nm-tile .m { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: rgba(255, 255, 255, 0.86); white-space: nowrap; }
.nm-tile .m span:first-child { overflow: hidden; text-overflow: ellipsis; }
.nm-tile:focus-visible { box-shadow: none; }
.nm-tile:focus-visible .in { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--slate); }
.nm-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: #e9edf1; }
.nm-ptitle { margin: 0; font-size: 18px; line-height: 1.28; font-weight: 700; color: var(--ink-strong); text-wrap: balance; }
.nm-outlets { margin-top: 8px; display: inline-flex; font-size: 12px; font-weight: 600; color: var(--slate); background: #eef3f8; border-radius: 999px; padding: 3px 10px; }
.nm-body { margin-top: 10px; font-size: 14px; line-height: 1.62; color: var(--body); white-space: pre-line; text-wrap: pretty; }
.nm-actions { display: flex; gap: 10px; margin-top: 16px; }
.nm-actions .na-btn { flex: 1; justify-content: center; font-size: 13px; }
a.na-chip { text-decoration: none; }
a.na-chip:hover { background: var(--selection); color: var(--ink); }
@media (max-width: 1000px) {
  .nm-map { height: min(75vh, 640px); }
}
.nm-note { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: #f5f7f9; border-radius: 8px; padding: 10px 12px; }

/* ---------- search with suggestions ---------- */
.na-search { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--muted); min-width: min(320px, 100%); margin: 6px 0; }
.na-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; color: var(--ink); }
.na-search:focus-within { box-shadow: var(--focus); }
.na-suggest { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 26, 35, 0.18); padding: 4px; max-height: 320px; overflow-y: auto; }
.na-suggest [role="option"] { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
.na-suggest [role="option"][aria-selected="true"], .na-suggest [role="option"]:hover { background: var(--selection); }
.na-suggest .n { color: var(--muted); font-size: 12px; white-space: nowrap; }
.na-suggest .none { padding: 8px 10px; color: var(--muted); font-size: 13px; }

/* ---------- Link Analysis ---------- */
.na-graph { grid-template-columns: 300px minmax(0, 1fr) 380px; }
.na-graph-empty { grid-template-columns: minmax(0, 1fr); }
.ga-analyzing { font-size: 13px; color: var(--muted); }
.ga-analyzing strong { color: var(--ink); }
.ga-start-title { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; }
.ga-card { display: flex; gap: 12px; align-items: flex-start; }
.ga-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #e9edf1; }
.ga-name { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ga-type { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--c, var(--slate)); padding: 2px 7px; border-radius: 4px; }
.ga-articles { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ga-articles strong { color: var(--ink); }
.ga-wiki { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.ga-wiki-src { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.ga-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--divider); }
.ga-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ga-conn { margin-top: 10px; }
.ga-conn-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ga-conn-head .dot, .ga-sel .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ga-conn-item { display: inline-block; border: 0; background: var(--divider); color: var(--ink); border-radius: 999px; padding: 3px 9px; margin: 0 4px 4px 0; font-size: 12px; }
.ga-conn-item[aria-pressed="true"] { background: var(--slate); color: #fff; }
.ga-type-chip { border-color: var(--c); }
.ga-type-chip[aria-pressed="true"] { background: var(--c); color: #fff; }
.ga-type-chip[aria-pressed="false"] { background: #fff; color: var(--c); }
.ga-zoom button { min-width: 34px; padding: 4px 8px; }
.ga-stage-wrap { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #fbfcfd; cursor: grab; touch-action: none; direction: ltr; }
.ga-stage-wrap.dragging { cursor: grabbing; }
.ga-stage { position: absolute; inset: 22px 30px 34px; transform-origin: 50% 50%; transition: transform 0.15s ease; }
.ga-stage-wrap.dragging .ga-stage { transition: none; }
.ga-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ga-node {
  position: absolute;
  transform: translate(-50%, -6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  transition: opacity 0.2s ease;
}
.ga-node .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.ga-node.l1 { transform: translate(-50%, -9px); }
.ga-node.l1 .dot { width: 18px; height: 18px; }
.ga-node .lbl { font-size: 10px; font-weight: 500; line-height: 1.2; color: var(--ink); max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(251, 252, 253, 0.88); padding: 0 3px; border-radius: 3px; }
.ga-node.l1 .lbl { font-size: 11.5px; font-weight: 600; }
.ga-node[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }
.ga-node.dim { opacity: 0.28; }
.ga-center { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; transition: opacity 0.2s; }
.ga-center.dim { opacity: 0.4; }
.ga-center-dot { width: 58px; height: 58px; border-radius: 50%; background: var(--slate) center / cover no-repeat; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--slate); }
.ga-center-name { font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.92); padding: 1px 6px; border-radius: 4px; max-width: 160px; text-align: center; }
.ga-sel { position: absolute; inset-inline-start: 12px; bottom: 12px; width: min(300px, calc(100% - 24px)); background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 26, 35, 0.16); padding: 12px; cursor: default; }
.ga-sel .top { display: flex; justify-content: space-between; gap: 8px; }
.ga-sel .nm { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.ga-sel .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ga-sel .via { margin-top: 8px; font-size: 12.5px; color: var(--body); }
.ga-sel .acts { display: flex; gap: 8px; margin-top: 10px; }
.ga-sel .acts .na-btn { flex: 1; justify-content: center; font-size: 12.5px; padding: 7px 10px; }
.ga-hint { position: absolute; inset-inline-end: 12px; bottom: 10px; font-size: 11.5px; color: var(--muted); pointer-events: none; }
.ga-list { flex: 0 1 44%; min-height: 120px; overflow-y: auto; }
.ga-reader { flex: 1 1 56%; }
.ga-nothumb { width: 72px; aspect-ratio: 4 / 3; border-radius: 6px; background: #eef1f4; flex: none; }
@media (max-width: 1280px) and (min-width: 1001px) {
  .na-graph { grid-template-columns: 260px minmax(0, 1fr) 330px; }
}
@media (max-width: 1000px) {
  .ga-graph { height: min(80vh, 640px); }
}

/* ---------- Timeline · Filmstrip Player ---------- */
.na-timeline { grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr); }
.na-timeline-empty { grid-template-rows: minmax(0, 1fr); }
.tl-head { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tl-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.tl-head h2 { font-size: 16px; font-weight: 700; }
.tl-pos { margin-inline-start: auto; font-size: 13px; }
.tl-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #fafbfc; direction: ltr; }
.tl-reel { position: absolute; top: 10px; bottom: 10px; left: 50%; display: flex; gap: 12px; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tl-reel > .na-empty { position: static; width: 60vw; transform: translateX(-50%); }
.tl-col { flex: none; height: 100%; border-radius: 10px; }
.tl-gap { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #f0f3f6 0 6px, #f8fafb 6px 12px); }
.tl-gap span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tl-earlier { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px; background: #eef1f4; font-size: 12px; color: var(--muted); }
.tl-earlier .h { font-weight: 700; color: var(--ink); }
.tl-day { display: flex; flex-direction: column; background: #f1f4f7; overflow: hidden; }
.tl-dayhead { flex: none; display: block; width: 100%; text-align: start; border: 0; padding: 9px 12px 8px; background: transparent; transition: background 0.3s ease; }
.tl-dayhead .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tl-dayhead .d { font-size: 14px; font-weight: 700; color: var(--ink); }
.tl-dayhead .c { font-size: 12px; color: var(--muted); }
.tl-dayhead .bar { display: block; height: 4px; border-radius: 2px; background: rgba(127, 155, 181, 0.35); margin-top: 7px; overflow: hidden; }
.tl-dayhead .bar span { display: block; height: 100%; background: var(--muted); }
.tl-day.active .tl-dayhead { background: var(--slate); }
.tl-day.active .tl-dayhead .d { color: #fff; }
.tl-day.active .tl-dayhead .c { color: #d3dde7; }
.tl-day.active .tl-dayhead .bar span { background: #d3dde7; }
.tl-list { flex: 1; min-height: 0; position: relative; overflow: hidden; padding: 8px 10px 0; }
.tl-cards { display: flex; flex-direction: column; gap: 8px; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tl-card {
  position: relative;
  flex: none;
  height: 72px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  text-align: start;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
  transition: opacity 0.4s ease, box-shadow 0.3s ease;
}
.tl-card[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--slate), 0 6px 16px rgba(16, 26, 35, 0.16); }
.tl-card.later { opacity: 0.5; }
.tl-card .th { width: 50px; height: 50px; border-radius: 6px; overflow: hidden; display: block; background: #dfe5eb; }
.tl-card .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-card .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-card .mt { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-card .tt { font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-card .dwell { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.tl-card[aria-pressed="true"] .dwell { width: 100%; }
.tl-card.dwelling .dwell { width: 0; animation: na-dwell var(--dwell, 6s) linear forwards; }
.tl-more { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; background: linear-gradient(rgba(241, 244, 247, 0), #f1f4f7 60%); font-size: 12px; font-weight: 600; color: var(--slate); text-align: center; }
.tl-edge { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(16, 26, 35, 0.12); }
.tl-edge.prev { left: 12px; }
.tl-edge.next { right: 12px; }
.tl-controls { flex: none; border-top: 1px solid var(--border); padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.tl-scrub { display: flex; align-items: center; gap: 10px; font-size: 12px; direction: ltr; }
.tl-segs { flex: 1; display: flex; gap: 2px; min-width: 0; }
.tl-segs button { position: relative; height: 10px; min-width: 4px; padding: 0; border: 0; border-radius: 3px; background: #e2e7ec; overflow: hidden; }
.tl-segs button.on { background: #c9d6e3; }
.tl-segs button span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); }
.tl-transport { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-buttons { display: flex; align-items: center; gap: 4px; }
.tl-play { min-width: 128px; justify-content: center; }
.tl-play .ico { display: inline-flex; }
.tl-note { font-size: 12px; margin-inline-start: auto; }
.tl-detail { flex-direction: row; }
.tl-split { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) 300px; }
.tl-media { min-height: 0; overflow-y: auto; border-inline-end: 1px solid var(--divider); }
.tl-text { min-height: 0; display: flex; flex-direction: column; border-inline-end: 1px solid var(--divider); }
.tl-analysis { min-height: 0; overflow-y: auto; }
.tl-playing { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
.tl-playing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl-eg { margin-top: 10px; }
.tl-eg .h { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
@media (max-width: 1000px) {
  .tl-player { height: min(80vh, 640px); }
  .tl-detail { height: auto; }
  .tl-split { display: flex; flex-direction: column; }
}
/* timeline: one control row on wide screens so the reel keeps its height */
.na-timeline { grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (min-width: 1101px) {
  .tl-controls { flex-direction: row; align-items: center; gap: 16px; padding: 8px 14px; }
  .tl-transport { order: 1; flex: none; }
  .tl-scrub { order: 2; flex: 1 1 320px; }
  .tl-note { display: none; }
}
@media (max-height: 760px) and (min-width: 1001px) {
  .tl-dayhead { padding: 7px 12px 6px; }
  .tl-dayhead .bar { margin-top: 5px; }
  .tl-head { padding: 7px 14px; }
}

/* ---------- Podcast ---------- */
.na-podcast { grid-template-columns: 290px minmax(0, 1fr) 370px; }
.na-podcast-empty, .na-pc-archive { grid-template-columns: minmax(0, 1fr); }
.na-pc-archive { max-width: 900px; width: 100%; margin: 0 auto; }
.pc-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.pc-brand strong { font-size: 15px; }
.pc-day { padding: 4px 0 8px; }
.pc-dayhead { padding: 10px 14px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pc-ep { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
a.pc-ep:hover { background: #f7f9fb; color: var(--ink); }
.pc-ep.current { background: var(--selection); }
.pc-ep .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--divider); color: var(--slate); display: flex; align-items: center; justify-content: center; flex: none; }
.pc-ep .ico svg { width: 13px; height: 13px; }
.pc-ep.current .ico { background: var(--slate); color: #fff; }
.pc-ep .tx { display: flex; flex-direction: column; min-width: 0; }
.pc-ep .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ep .m { font-size: 11.5px; color: var(--muted); }
.pc-ga { display: none; }
.genalpha-unlocked .pc-ga { display: flex; background: linear-gradient(90deg, #ff4fd8, #8b5cf6, #22d3ee); background-size: 200% 100%; animation: pc-ga 6s linear infinite; }
.genalpha-unlocked .pc-ga .t, .genalpha-unlocked .pc-ga .m { color: #fff; }
@keyframes pc-ga { from { background-position: 0 0; } to { background-position: 200% 0; } }
.pc-toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 100; background: rgba(16, 26, 35, 0.92); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.pc-player .pc-top { flex: none; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.pc-hero { display: flex; gap: 16px; align-items: center; }
.pc-cover { width: 96px; height: 96px; border-radius: 12px; background: var(--slate); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: none; color: #fff; }
.pc-cover img { width: 46px; height: auto; }
.pc-cover span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.pc-epno { font-size: 12px; font-weight: 600; }
.pc-title { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 2px 0 4px; }
.pc-transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-transport .na-btn { padding: 7px 10px; font-size: 12.5px; }
.pc-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--slate); color: #fff; display: flex; align-items: center; justify-content: center; }
.pc-play:hover { background: var(--slate-ink); }
.pc-play svg { width: 24px; height: 24px; }
.pc-time { font-size: 13px; color: var(--muted); min-width: 92px; }
.pc-chapters { display: flex; gap: 3px; direction: ltr; }
.pc-ch { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; min-width: 18px; }
.pc-ch .fill { display: block; height: 10px; border-radius: 3px; background: #dfe7ef; overflow: hidden; position: relative; }
.pc-ch .fill span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); }
.pc-ch.aux .fill span { background: #7f93a6; }
.pc-ch[aria-pressed="true"] .fill { box-shadow: 0 0 0 2px #c9d6e3; }
.pc-ch .lb { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.pc-ch[aria-pressed="true"] .lb { color: var(--ink); font-weight: 700; }
.pc-now-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pc-now-text { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--body); white-space: pre-line; }
.pc-tblock { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--divider); background: transparent; padding: 12px 16px; }
.pc-tblock[aria-pressed="true"] { background: #eef3f8; }
.pc-tblock .h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pc-tblock .tx { font-size: 14px; line-height: 1.6; color: var(--body); white-space: pre-line; }
.pc-story { padding: 10px 12px 12px; border-bottom: 1px solid var(--divider); }
.pc-story-btn { display: flex; gap: 10px; width: 100%; text-align: start; border: 0; border-radius: 8px; background: #fff; padding: 8px; box-shadow: 0 0 0 1px var(--border); }
.pc-story-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--slate); background: #f7fafc; }
.pc-story-btn .n { width: 26px; height: 26px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.pc-story-btn .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-story-btn .sec { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.pc-story-btn .sec .na-muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pc-story-btn .lede { font-size: 13.5px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.pc-readmore { display: inline-block; margin: 6px 0 0 44px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
@media (max-width: 1280px) and (min-width: 1001px) {
  .na-podcast { grid-template-columns: 250px minmax(0, 1fr) 320px; }
}

/* ---------- TV News ---------- */
.na-tv { grid-template-columns: minmax(0, 1fr) 440px; }
.tv-now { overflow: hidden; }
.tv-player { flex: none; padding: 14px 16px 0; }
.tv-player .na-video { border-radius: 8px; max-height: 52vh; margin: 0 auto; aspect-ratio: 16 / 9; }
.tv-player .na-video .play { width: 64px; height: 64px; }
.tv-dur { position: absolute; inset-inline-end: 8px; bottom: 8px; background: rgba(10, 16, 22, 0.8); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.tv-info { flex: none; padding: 12px 16px 0; }
.tv-title { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.tv-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.tv-meta .na-switch { margin-inline-start: auto; }
.tv-chanbtn { border: 0; background: none; padding: 0; font-weight: 700; color: var(--slate); }
.tv-chanbtn:hover { text-decoration: underline; }
.tv-next { display: grid; grid-template-columns: auto 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; text-align: start; margin-top: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #f7f9fb; }
.tv-next .lbl { grid-row: 1 / span 2; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tv-next img { grid-row: 1 / span 2; width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.tv-next .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-next .c { font-size: 12px; color: var(--muted); }
.tv-text { padding: 12px 16px 16px; }
.tv-desc { font-size: 13.5px; line-height: 1.6; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.tv-pending { display: flex; gap: 12px; align-items: flex-start; background: #f5f7f9; border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.tv-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 10px; width: 100%; text-align: start; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--divider); background: transparent; }
.tv-row:hover { background: #f7f9fb; }
.tv-row[aria-pressed="true"] { background: var(--selection); }
.tv-thumb { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #0d1620; aspect-ratio: 16 / 9; }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-thumb .d { position: absolute; inset-inline-end: 4px; bottom: 4px; background: rgba(10, 16, 22, 0.8); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 3px; }
.tv-row .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tv-row .t { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-row .c { font-size: 12px; color: var(--slate); font-weight: 600; }
.tv-row .m { font-size: 11.5px; color: var(--muted); }
.tv-row .now { font-size: 11px; font-weight: 700; color: var(--accent); }
@media (max-width: 1280px) and (min-width: 1001px) {
  .na-tv { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1000px) {
  .tv-now { height: auto; }
  .tv-text { max-height: 50vh; }
}
.tv-player .na-video { max-height: 46vh; }

/* ---------- About ---------- */
.na-about { grid-template-columns: minmax(0, 1fr) 540px; }
.ab-body { padding: 22px 24px 28px; }
.ab-intro { display: flex; gap: 18px; align-items: flex-start; }
.ab-intro img { width: 96px; height: auto; flex: none; }
.ab-intro h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.ab-intro p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 70ch; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ab-stats > div { background: #f5f7f9; border-radius: 10px; padding: 14px; }
.ab-stats .n { font-size: 24px; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }
.ab-stats .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ab-h2 { margin-top: 26px; margin-bottom: 10px; }
.ab-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ab-steps > div { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.ab-steps .h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ab-steps .n { width: 24px; height: 24px; border-radius: 50%; background: var(--slate); color: #fff; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }
.ab-steps p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.ab-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.ab-tools a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--ink); }
.ab-tools a:hover { border-color: var(--slate); background: #f7f9fb; color: var(--ink); }
.ab-tools .mk { width: 36px; height: 36px; border-radius: 8px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.ab-tools .nm { display: block; font-weight: 700; }
.ab-tools .d { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.ab-entry { padding: 14px 16px; border-bottom: 1px solid var(--divider); }
.ab-entry .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ab-entry .ver { font-weight: 600; color: var(--ink); }
.ab-entry .ty { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.ty-feature { color: #35536b; background: #e6eef5; }
.ty-fix { color: #b42318; background: #fbe9e7; }
.ty-cleanup { color: #4f5d6b; background: #eef1f4; }
.ty-release { color: #0f766e; background: #e3f4f2; }
.ab-entry h3 { margin-top: 6px; font-size: 15px; font-weight: 700; }
.ab-entry details { margin-top: 6px; }
.ab-entry summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.ab-details { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--body); overflow-wrap: anywhere; }
.ab-details ul { padding-inline-start: 18px; margin: 4px 0; }
@media (max-width: 1280px) and (min-width: 1001px) {
  .na-about { grid-template-columns: minmax(0, 1fr) 440px; }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ab-stats, .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-intro { flex-direction: column; }
}
