/* ═══════════════════════════════════════════════════════════
   DARKNEWS — Global Stylesheet
   Dark intelligence / OSINT terminal aesthetic.
   Content readable at ambient level; spotlight adds drama.
════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #cc2200;
  --red-dim:   rgba(204,34,0,0.18);
  --amber:     #ff9500;
  --paper:     #ddd4c0;        /* headlines — warm off-white */
  --paper-dim: #a89880;        /* body text — readable warm gray */
  --dim:       #685848;        /* secondary — dark warm gray */
  --very-dim:  #3a2e20;        /* tertiary */
  --border:    #221e16;        /* card borders — visible */
  --border-2:  #1a1612;        /* subtle dividers */
  --bg:        #0e0d0b;        /* card surface — elevated from pure black */
  --black:     #000000;
  --verified-color:   #22aa44;
  --documented-color: #4488ff;
  --reported-color:   #ff9500;
  --unverified-color: #888;
  --debunked-color:   #cc2200;
}

html { background: #050504; height: 100%; scroll-behavior: smooth; }

body {
  background: #050504;
  color: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  cursor: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ─── CURSOR ─────────────────────────────────────────────── */
#cursor {
  position: fixed; width: 6px; height: 6px;
  background: rgba(255,210,120,0.95);
  border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  mix-blend-mode: screen;
  transition: opacity 0.3s, transform 0.08s;
}
#cursor.clicked { transform: translate(-50%,-50%) scale(2.5); }
@media (hover: none) { #cursor { display: none; } body { cursor: default; } }

/* ─── CANVAS LAYERS ──────────────────────────────────────── */
#cv-warm { position: fixed; inset: 0; pointer-events: none; z-index: 100; mix-blend-mode: screen; }
#cv-dark { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ─── SCANLINES ──────────────────────────────────────────── */
.scanlines {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* ─── GRAIN ──────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 350; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.4s steps(1) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }   12% { transform: translate(-6%,-12%); }
  25%  { transform: translate(8%,5%); } 37% { transform: translate(-4%,20%); }
  50%  { transform: translate(12%,-8%); } 62% { transform: translate(-10%,15%); }
  75%  { transform: translate(5%,-20%); } 87% { transform: translate(-8%,8%); }
  100% { transform: translate(4%,-5%); }
}

/* ─── INTRO ──────────────────────────────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity 1.4s ease;
  gap: 0;
}
#intro.gone { opacity: 0; }
.intro-line {
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 3.2vw, 20px);
  letter-spacing: 0.45em;
  color: #0e0e0a;                  /* intentionally hidden — revealed only by spotlight */
  text-transform: uppercase; text-align: center;
  margin: 5px 0;
}
.intro-sub { font-size: clamp(9px, 1.8vw, 11px); letter-spacing: 0.3em; color: #0b0b08; margin-top: 20px; }

/* ─── PARTICLES ──────────────────────────────────────────── */
.particles { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.pt {
  position: absolute; border-radius: 50%; background: rgba(255,180,60,0.3);
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%  { opacity: 0; transform: translateY(105vh); }
  5%  { opacity: 1; }
  95% { opacity: 0.5; }
  100%{ opacity: 0; transform: translateY(-5vh); }
}

/* ─── SCROLL HINT ────────────────────────────────────────── */
#scroll-hint {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; font-family: 'Space Mono', monospace;
  font-size: 7.5px; letter-spacing: 0.4em; color: #181612;
  text-transform: uppercase; pointer-events: none;
  animation: scroll-hint-pulse 3s ease-in-out infinite;
  transition: opacity 0.6s;
}
#scroll-hint.gone { opacity: 0; }
@keyframes scroll-hint-pulse {
  0%,100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0; transform: translateX(-50%) translateY(4px); }
}

/* ─── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-2);
  background: rgba(5,5,4,0.97); backdrop-filter: blur(8px);
}
.logo {
  font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 700;
  letter-spacing: 0.38em; color: var(--red); text-decoration: none;
}
.logo em { color: #484030; font-style: normal; }   /* NEWS part — dim but present */

.header-center {
  display: none; flex-direction: column; align-items: center; gap: 2px;
}
@media (min-width: 640px) { .header-center { display: flex; } }
.live-badge {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.25em; color: #686050;
}
.live-dot { width: 5px; height: 5px; background: var(--red); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.15;} }
.header-status { font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.2em; color: #585048; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-meta { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.15em; color: #505040; text-align: right; line-height: 1.8; display: none; }
@media (min-width: 900px) { .header-meta { display: block; } }
.header-admin { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.2em; color: #706050; text-decoration: none; }
.header-admin:hover { color: var(--red); }

/* ─── MAIN CONTENT ───────────────────────────────────────── */
main { padding-top: 60px; min-height: 100vh; }

/* ─── ARCHIVE TABS ───────────────────────────────────────── */
.archive-tabs {
  display: flex; align-items: center; gap: 0;
  max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  overflow-x: auto; scrollbar-width: none;
}
.archive-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: #685848; padding: 14px 16px; border: none; background: none;
  cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: #907868; }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.5em; color: #585048;
  text-transform: uppercase; padding: 20px 20px 14px; border-bottom: 1px solid var(--border-2);
  max-width: 1200px; margin: 0 auto;
}
.section-label .red { color: rgba(204,34,0,0.4); }

/* ─── NEWS GRID ──────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: #0a0908;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 580px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .news-card[data-rank="1"] { grid-column: span 2; }
}

/* ─── NEWS CARD ──────────────────────────────────────────── */
.news-card {
  background: var(--bg); position: relative; overflow: hidden;
  cursor: none; transition: background 0.2s;
}
.news-card::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--border); pointer-events: none; }
.news-card:active { background: #111008; }

.card-img { width: 100%; overflow: hidden; position: relative; }
.card-img svg { display: block; width: 100%; height: auto; }

.classified-mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-13deg);
  font-family: 'Space Mono', monospace; font-size: clamp(13px, 2.5vw, 24px); font-weight: 700;
  letter-spacing: 0.35em; color: rgba(204,34,0,0.07);
  border: 2px solid rgba(204,34,0,0.05); padding: 5px 12px;
  white-space: nowrap; pointer-events: none;
}
.ai-tag {
  position: absolute; top: 10px; right: 10px;
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.2em;
  color: rgba(255,149,0,0.22);
}

.card-body { padding: 16px 18px 18px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-case {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.3em; color: var(--red); opacity: 0.7;
}
.card-score {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.1em;
  color: #686050; display: flex; align-items: center; gap: 5px;
}
.score-val { color: #807060; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.card-cat {
  font-family: 'Space Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: 0.25em;
  color: var(--red); padding: 2px 6px; border: 1px solid rgba(204,34,0,0.25);
  background: rgba(204,34,0,0.06); white-space: nowrap;
}
.card-date { font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.1em; color: #686050; }

.card-headline {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(14px, 2.1vw, 19px);
  font-weight: 600; line-height: 1.3; color: var(--paper); margin-bottom: 10px; letter-spacing: -0.01em;
}
.news-card[data-rank="1"] .card-headline { font-size: clamp(17px, 2.8vw, 26px); }

.card-teaser { font-size: 12px; line-height: 1.65; color: #a09080; margin-bottom: 14px; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 11px; border-top: 1px solid var(--border-2); flex-wrap: wrap;
}
.card-loc { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.15em; color: #686050; text-transform: uppercase; }
.card-loc::before { content: '◉ '; color: #484030; }
.card-actions { display: flex; align-items: center; gap: 10px; }
.verify-badge {
  font-family: 'Space Mono', monospace; font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.2em; padding: 2px 5px; border-radius: 0;
}
.verify-badge.CONFIRMED   { color: var(--verified-color); border: 1px solid rgba(34,170,68,0.25); }
.verify-badge.VERIFIED    { color: var(--verified-color); border: 1px solid rgba(34,170,68,0.25); }
.verify-badge.DOCUMENTED  { color: var(--documented-color); border: 1px solid rgba(68,136,255,0.25); }
.verify-badge.REPORTED    { color: var(--reported-color); border: 1px solid rgba(255,149,0,0.25); }
.verify-badge.UNVERIFIED  { color: var(--unverified-color); border: 1px solid rgba(136,136,136,0.25); }
.verify-badge.DEBUNKED    { color: var(--debunked-color); border: 1px solid rgba(204,34,0,0.25); }

.card-open {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.2em;
  color: #706050; text-transform: uppercase; cursor: none;
}
.card-open:hover { color: var(--red); }

/* Developing pulse */
.card-developing {
  position: absolute; top: 12px; left: 14px;
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.3em;
  color: var(--red); animation: blink 1.5s ease-in-out infinite;
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  max-width: 1200px; margin: 0 auto; padding: 80px 20px;
  text-align: center;
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.4em; color: #686050;
}

/* ─── ARCHIVE END ────────────────────────────────────────── */
.archive-end { max-width: 1200px; margin: 0 auto; padding: 50px 20px; text-align: center; }
.archive-end p { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.45em; color: #181612; text-transform: uppercase; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-2); padding: 34px 20px; max-width: 1200px; margin: 0 auto; }
.footer-txt { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.3em; color: #302818; text-align: center; line-height: 2.2; }

/* ═══ DOSSIER OVERLAY ════════════════════════════════════════════════════ */

#dossier {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(4,3,2,0.97);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  cursor: default;
}
#dossier.open { opacity: 1; pointer-events: all; }

.dossier-inner {
  max-width: 780px; margin: 0 auto; padding: 0 20px 80px;
  min-height: 100vh; position: relative;
}

/* Header bar */
.dos-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4,3,2,0.98); backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.dos-case { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.4em; color: var(--red); }
.dos-close {
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.3em; color: #706050;
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s;
}
.dos-close:hover { color: var(--red); }

/* Verification banner */
.dos-verify {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 24px;
  font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.3em;
}
.dos-verify.VERIFIED   { color: var(--verified-color);   border: 1px solid rgba(34,170,68,0.3); }
.dos-verify.DOCUMENTED { color: var(--documented-color); border: 1px solid rgba(68,136,255,0.3); }
.dos-verify.REPORTED   { color: var(--reported-color);   border: 1px solid rgba(255,149,0,0.3); }
.dos-verify.UNVERIFIED { color: var(--unverified-color); border: 1px solid rgba(136,136,136,0.3); }

/* Category chip */
.dos-cat {
  font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--red); padding: 3px 8px;
  border: 1px solid rgba(204,34,0,0.25); background: rgba(204,34,0,0.06);
  display: inline-block; margin-bottom: 16px;
}

/* Headline */
.dos-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 4.5vw, 38px); font-weight: 700;
  line-height: 1.2; color: var(--paper);
  margin-bottom: 32px; letter-spacing: -0.02em;
}

/* Section heading */
.dos-section {
  font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.45em; color: var(--red); text-transform: uppercase;
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 28px; margin-bottom: 10px;
}
.dos-section:first-of-type { margin-top: 0; }

/* Body text */
.dos-body { font-size: 14px; line-height: 1.75; color: var(--paper-dim); white-space: pre-wrap; }
.dos-body p { margin-bottom: 12px; }

/* Two-col layout for know/don't-know */
.dos-two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .dos-two-col { grid-template-columns: 1fr 1fr; } }
.dos-col-label { font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.3em; color: #686050; margin-bottom: 8px; }

/* Sources */
.dos-sources { display: flex; flex-direction: column; gap: 8px; }
.dos-source {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; background: #0d0c0a; border: 1px solid var(--border);
  flex-wrap: wrap;
}
.dos-source-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--paper-dim); }
.dos-source-cred {
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.2em;
  padding: 2px 6px;
}
.dos-source-cred.OFFICIAL  { color: var(--verified-color); border: 1px solid rgba(34,170,68,0.2); }
.dos-source-cred.VERIFIED  { color: var(--verified-color); border: 1px solid rgba(34,170,68,0.2); }
.dos-source-cred.HIGH      { color: var(--documented-color); border: 1px solid rgba(68,136,255,0.2); }
.dos-source-cred.MEDIUM    { color: var(--reported-color); border: 1px solid rgba(255,149,0,0.2); }

/* Timestamps */
.dos-timestamps {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding: 14px 0; font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.15em; color: #686050;
}
.dos-ts span { display: block; font-size: 7px; letter-spacing: 0.3em; color: #585048; margin-bottom: 4px; }

/* AI Score footer */
.dos-ai-footer {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding: 16px; background: #0c0a08; border: 1px solid var(--border);
  margin-top: 28px;
}
.dos-score-item { display: flex; flex-direction: column; gap: 3px; }
.dos-score-label { font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.3em; color: #585048; }
.dos-score-val { font-family: 'Space Mono', monospace; font-size: 14px; color: #808068; }
.dos-score-val.main { color: var(--red); font-size: 18px; }

/* Score bar */
.score-bar-wrap { display: flex; align-items: center; gap: 6px; }
.score-bars { display: flex; gap: 1.5px; }
.s-bar { width: 12px; height: 3px; background: #1e1c14; }
.s-bar.on { background: var(--red); opacity: 0.6; }

/* ═══ FIVE EYES SECTION ═════════════════════════════════════════════════════
   Hidden admin entry — center eye responds to 6× tap.
   No hints, no labels, no visible interaction except a brief subtle pulse.
════════════════════════════════════════════════════════════════════════════ */
.eyes-section {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 20px 80px;
  display: flex; justify-content: center;
  border-top: 1px solid #0a0905;
}
.eyes-frame {
  position: relative;
  width: 100%; max-width: 740px;
  /* Keep the natural image aspect ratio (1320×869 ≈ 1.518:1) */
  aspect-ratio: 1320 / 869;
  overflow: hidden;
}
.eyes-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  /* Very dark by default — revealed by the flashlight canvas above */
  filter: brightness(0.35) contrast(1.1);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;   /* prevent image from capturing events */
}

/* ── Eye hitboxes ────────────────────────────────────────────────────────── */
.eye-zone {
  position: absolute;
  /* No visible indicator — completely invisible */
  background: transparent;
  cursor: default;           /* no pointer cursor, so it's not obvious */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Coordinates are % of image (1320×869). Generous zones ~18% wide, ~22% tall.
   Tweak these if the hitboxes don't align with the eyes on the actual device. */
[data-eye="tl"] { left: 14%; top:  8%; width: 22%; height: 34%; }
[data-eye="tr"] { left: 64%; top:  8%; width: 22%; height: 34%; }
[data-eye="c"]  { left: 38%; top: 38%; width: 24%; height: 30%; }
[data-eye="bl"] { left: 14%; top: 58%; width: 22%; height: 34%; }
[data-eye="br"] { left: 64%; top: 58%; width: 22%; height: 34%; }

/* Center eye — same invisible look, different ID for JS */
.eye-zone-center {
  cursor: default;
}

/* ── Subtle pulse feedback (shown briefly on valid tap) ─────────────────── */
.eye-pulse {
  position: absolute;
  /* Centered over the center eye (38% + 12% = 50% center, 38% + 15% = 53% center) */
  left: 50%; top: 53%;
  transform: translate(-50%, -50%);
  width: 10%; height: 0;
  padding-bottom: 10%;   /* square */
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 120, 0);
  pointer-events: none;
  opacity: 0;
}
.eye-pulse.flash {
  animation: eye-pulse-anim 0.55s ease-out forwards;
}
@keyframes eye-pulse-anim {
  0%   { border-color: rgba(255, 210, 120, 0.0); transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  20%  { border-color: rgba(255, 210, 120, 0.35); opacity: 1; }
  100% { border-color: rgba(255, 210, 120, 0.0);  transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* ═══ DEMO BANNER ═══════════════════════════════════════════════════════════ */
#demo-banner {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(120,60,0,0.15); border-bottom: 1px solid rgba(204,120,0,0.3);
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.35em;
  color: rgba(255,149,0,0.7); text-align: center; padding: 6px 20px;
  text-transform: uppercase;
}
#demo-banner.visible { display: block; }
body.demo-banner-active header { top: 29px; }
body.demo-banner-active main  { padding-top: 89px; }

/* ═══ SEARCH BUTTON ═════════════════════════════════════════════════════════ */
.header-search-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: #706050;
  padding: 2px 4px; transition: color 0.2s;
  font-family: inherit;
}
.header-search-btn:hover { color: var(--red); }

/* ═══ CATEGORY CHIPS ════════════════════════════════════════════════════════ */
.category-chips {
  display: flex; align-items: center; gap: 6px;
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border-2);
}
.category-chips::-webkit-scrollbar { display: none; }
.category-chips:empty { display: none; }

.chip {
  flex-shrink: 0;
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.25em;
  text-transform: uppercase; color: #686050;
  border: 1px solid #221e14; background: none;
  padding: 5px 12px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.chip:hover { color: #907868; border-color: #382e1e; }
.chip.active {
  color: var(--red); border-color: rgba(204,34,0,0.4);
  background: rgba(204,34,0,0.06);
}

/* ═══ SEARCH OVERLAY ════════════════════════════════════════════════════════ */
#search-overlay {
  position: fixed; inset: 0; z-index: 6000;
  background: rgba(4,3,2,0.97);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto; overscroll-behavior: contain;
}
#search-overlay.open { opacity: 1; pointer-events: all; }

.search-box {
  max-width: 700px; margin: 0 auto; padding: 60px 20px 80px;
}

.search-input-row {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid rgba(204,34,0,0.4);
  padding-bottom: 12px; margin-bottom: 16px;
}
.search-icon {
  font-size: 20px; color: #686050; flex-shrink: 0;
}
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 22px;
  color: var(--paper); caret-color: var(--red);
  letter-spacing: 0.02em;
}
.search-input::placeholder { color: #484030; }
.search-close {
  background: none; border: none; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.3em;
  color: #706050; padding: 4px 8px;
  transition: color 0.2s; flex-shrink: 0;
}
.search-close:hover { color: var(--red); }

.search-filters {
  display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.search-filter-select {
  background: #0e0c0a; border: 1px solid #282010; color: #686050;
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.2em;
  padding: 6px 10px; outline: none; cursor: pointer;
}
.search-filter-select:focus { border-color: rgba(204,34,0,0.4); }

.search-hint {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.3em;
  color: #585048; margin-bottom: 24px; text-transform: uppercase;
}

.search-results { display: flex; flex-direction: column; gap: 1px; background: #0a0908; }

.search-result {
  background: var(--bg); padding: 14px 16px;
  cursor: pointer; text-decoration: none; display: block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.search-result:hover { border-bottom-color: var(--red); }
.search-result-cat {
  font-family: 'Space Mono', monospace; font-size: 8px; font-weight: 700;
  letter-spacing: 0.25em; color: var(--red); margin-bottom: 6px;
}
.search-result-headline {
  font-size: 14px; font-weight: 600; color: var(--paper); line-height: 1.3;
  margin-bottom: 6px;
}
.search-result-meta {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.1em;
  color: #686050; display: flex; align-items: center; gap: 10px;
}
.search-empty {
  padding: 50px 0; text-align: center;
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.4em; color: #585048;
}
.search-loading {
  padding: 30px 0; text-align: center;
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.4em; color: #585048;
  animation: blink 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARKNEWS v4.0 — LIVE GLOBAL TOP 10 ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── HEADER TAGLINE & STATUS BAR ─────────────────────────────────────────── */
.header-tagline {
  font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.35em;
  color: #484030; text-transform: uppercase; text-align: center;
}

.hstat-item {
  font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.15em;
  color: #585048; white-space: nowrap;
}
.hstat-item span { color: #807060; }

.hstat-sep {
  color: #484030; font-family: 'Space Mono', monospace; font-size: 7px;
}

/* ─── FOOTER ARCHIVE BUTTON ────────────────────────────────────────────────── */
.footer-archive-link {
  margin-top: 18px; text-align: center;
}
.footer-btn {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #585048;
  background: none; border: 1px solid #221e14;
  padding: 7px 18px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.footer-btn:hover { color: var(--red); border-color: rgba(204,34,0,0.3); }

/* ─── GLOBAL ATTENTION SCORE BAR ───────────────────────────────────────────── */
.card-global-score {
  margin: 10px 0 12px;
}
.gscore-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 5px;
}
.gscore-title {
  font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.3em;
  color: #686050; text-transform: uppercase;
}
.gscore-value {
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  color: #908070; font-weight: 700;
}
.gscore-bar-wrap {
  display: flex; align-items: center; gap: 7px;
  width: 100%;
}
.gscore-bar {
  height: 2px; background: var(--red); opacity: 0.5; border-radius: 1px;
  flex: 1; max-width: calc(100% - 30px);
  transition: width 0.6s ease, opacity 0.3s;
}
.gscore-bar.critical { background: #ff2200; opacity: 0.9; }
.gscore-bar.high     { background: #ff6600; opacity: 0.75; }
.gscore-bar.medium   { background: #cc8800; opacity: 0.6; }
.gscore-bar.low      { background: #4a4030; opacity: 0.5; }
.gscore-label {
  font-family: 'Space Mono', monospace; font-size: 7px; color: #686050;
  width: 22px; text-align: right; flex-shrink: 0;
}

/* ─── TREND INDICATORS ─────────────────────────────────────────────────────── */
.trend-rising  { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.1em; color: #22aa44; white-space: nowrap; }
.trend-falling { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.1em; color: #4488ff; white-space: nowrap; }
.trend-breaking{
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.1em;
  color: var(--red); white-space: nowrap;
  animation: blink 1s ease-in-out infinite;
}
.trend-stable  { font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.1em; color: #686050; white-space: nowrap; }

/* ─── CARD RIGHT BADGES ────────────────────────────────────────────────────── */
.card-right-badges {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
}

/* ─── CARD SIGNALS GRID ────────────────────────────────────────────────────── */
.card-signals {
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: 12px;
}
.signal-row {
  display: flex; align-items: baseline; gap: 8px;
}
.signal-label {
  font-family: 'Space Mono', monospace; font-size: 6.5px; letter-spacing: 0.2em;
  color: #585048; flex-shrink: 0; width: 72px; text-transform: uppercase;
}
.signal-val {
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.1em;
  color: #806858; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}

/* ─── CARD TIMING ───────────────────────────────────────────────────────────── */
.card-timing {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.1em;
  color: #585048;
}

/* ─── RANK BADGE ────────────────────────────────────────────────────────────── */
.card-rank-badge {
  position: absolute; bottom: 10px; left: 12px;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; color: rgba(204,34,0,0.4);
}

/* ─── BREAKING BANNER ──────────────────────────────────────────────────────── */
.breaking-banner {
  position: absolute; top: 0; left: 0; right: 0;
  background: rgba(204,34,0,0.12);
  border-bottom: 1px solid rgba(204,34,0,0.2);
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.3em;
  color: rgba(204,34,0,0.7); text-align: center; padding: 4px 10px;
  animation: blink 1.5s ease-in-out infinite;
}

/* ─── BREAKING CARD ACCENT ──────────────────────────────────────────────────── */
.news-card.breaking::after {
  border: 1px solid rgba(204,34,0,0.2);
}
.news-card.breaking .card-headline { color: var(--paper); }

/* ─── RANK-ENTERED ANIMATION ────────────────────────────────────────────────── */
@keyframes rank-enter-flash {
  0%   { box-shadow: inset 0 0 0 1px rgba(204,34,0,0.0); }
  15%  { box-shadow: inset 0 0 0 1px rgba(204,34,0,0.6); }
  40%  { box-shadow: inset 0 0 0 1px rgba(204,34,0,0.3); }
  100% { box-shadow: inset 0 0 0 1px rgba(204,34,0,0.0); }
}
.news-card.rank-entered {
  animation: rank-enter-flash 3s ease forwards;
}

/* ─── DOSSIER ADDITIONS ─────────────────────────────────────────────────────── */

.dos-story-link {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.25em;
  color: #706050; text-decoration: none; text-transform: uppercase;
  transition: color 0.2s;
}
.dos-story-link:hover { color: var(--red); }

.dos-global-score-panel {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px;
  padding: 16px; background: #0c0a08; border: 1px solid var(--border);
  margin-bottom: 28px;
}
.dos-gs-item {
  display: flex; flex-direction: column; gap: 5px; min-width: 100px;
}
.dos-gs-label {
  font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.3em;
  color: #585048; text-transform: uppercase;
}
.dos-gs-value {
  font-family: 'Space Mono', monospace; font-size: 22px; font-weight: 700;
  color: var(--red); line-height: 1; letter-spacing: -0.02em;
}
.dos-gs-max {
  font-size: 11px; color: #808068; font-weight: normal; letter-spacing: 0;
}
.dos-gs-item .gscore-bar-wrap { margin-top: 2px; }

.dos-breaking-badge {
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.25em;
  color: var(--red); border: 1px solid rgba(204,34,0,0.3);
  padding: 4px 10px; animation: blink 1.5s ease-in-out infinite;
  align-self: center;
}

.dos-geo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 4px;
}
.dos-geo-item {
  display: flex; flex-direction: column; gap: 5px;
  padding: 10px 12px; background: #0d0c0a; border: 1px solid var(--border);
}
.dos-geo-label {
  font-family: 'Space Mono', monospace; font-size: 7px; letter-spacing: 0.3em;
  color: #585048; text-transform: uppercase;
}
.dos-geo-val {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--paper-dim);
  line-height: 1.4;
}

.dos-orig-headlines {
  display: flex; flex-direction: column; gap: 8px;
}
.dos-orig-hl {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  color: var(--paper-dim); line-height: 1.4;
  padding: 8px 0; border-bottom: 1px solid var(--border-2);
}
.dos-lang-badge {
  font-family: 'Space Mono', monospace; font-size: 7.5px; letter-spacing: 0.15em;
  color: #686050; border: 1px solid #282010;
  padding: 2px 5px; flex-shrink: 0; margin-top: 2px;
}

.dos-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  padding: 0;
}
.dos-list li {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  color: var(--paper-dim); line-height: 1.55;
  padding-left: 14px; position: relative;
}
.dos-list li::before {
  content: '—'; position: absolute; left: 0;
  color: #484030; font-size: 10px;
}

.dos-source-meta {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.1em;
  color: #686050;
}

#live-badge-label {
  font-family: 'Space Mono', monospace; font-size: 8px; letter-spacing: 0.25em;
  color: #686050;
}
