/* ========== HEADER ========== */
.masthead {
  background: linear-gradient(180deg, #0a0a0c 0%, #141417 100%);
  color: #fffaf0;
  position: relative;
  border-bottom: 3px solid var(--flame);
}
.masthead::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--flame), var(--gold), var(--flame), var(--ember));
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--urgent); margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.lang-toggle { display: inline-flex; gap: 2px; background: rgba(255,255,255,0.08); padding: 2px; border-radius: var(--r-md); }
.lang-toggle button { padding: 3px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); border-radius: 2px; }
.lang-toggle button.on { background: var(--flame); color: #0d0d0f; font-weight: 700; }

.brand {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 22px 32px 24px;
  position: relative;
}
.brand-logo {
  width: 64px; height: 64px;
  object-fit: contain;
}
.brand-title { display: flex; flex-direction: column; align-items: center; }
.brand-title .main {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 44px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand-title .main .fire {
  background: linear-gradient(180deg, #ffb86b, #e8743a 50%, #c83820);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-title .main .angel { color: #fffaf0; }
.brand-title .sub {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.6em;
  margin-top: 6px;
  display: flex; align-items: center; gap: 10px;
}
.brand-title .sub::before, .brand-title .sub::after {
  content: ""; width: 40px; height: 1px; background: var(--gold); opacity: 0.6;
}
.brand-date {
  position: absolute;
  left: 32px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.brand-search {
  position: absolute;
  right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.7);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
}
.brand-search input {
  background: none; border: none; outline: none;
  color: #fff; width: 140px;
  font-family: inherit; font-size: 11px; letter-spacing: 0.08em;
}
.brand-search input::placeholder { color: rgba(255,255,255,0.4); }

/* Category nav */
.catnav {
  display: flex; overflow-x: auto; scrollbar-width: none;
  background: #0a0a0c;
  padding: 0 16px;
  gap: 0;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  padding: 14px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  white-space: nowrap;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.catnav a.top {
  color: #fffaf0;
  background: linear-gradient(180deg, rgba(232,116,58,0.2), transparent);
}
.catnav a.top::before {
  content: "●"; color: var(--flame); margin-right: 6px;
}
.catnav a:hover {
  color: var(--flame-2);
  border-bottom-color: var(--flame);
}

/* ========== MAIN LAYOUT ========== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section { padding: 40px 0; border-bottom: 1px solid var(--rule); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.01em;
}
.section-head h2 .accent { color: var(--ember); }
.section-head .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}

/* TOP NEWS */
.topnews {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-top: 1px solid var(--rule);
}
.topnews-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  padding: 32px 0 40px;
}
.topnews-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--flame-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 16px;
}
.topnews-label .fire-icon { color: var(--flame); }

.hero-card {
  cursor: pointer;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-media {
  aspect-ratio: 16/10;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.hero-media .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #2a2a2f, #1a1a1d);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-media .ph.orange {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #c83820, #e8743a);
}
.hero-media .ph.blue {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #1e3a5f, #3a5f8f);
}
.hero-media .ph.green {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #2d4a2d, #4a6b4a);
}
.hero-media .ph.gold {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #8a6a1a, #d4a93a);
}
.hero-media .ph.slate {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #3a3f4a, #5a6070);
}

.badge-cat {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--ink);
  color: #fffaf0;
}
.badge-cat.politics { background: #1e3a5f; }
.badge-cat.economy  { background: #2d4a2d; }
.badge-cat.intl     { background: #4a1e5f; }
.badge-cat.social   { background: #8a4a1e; }
.badge-cat.court    { background: #5a1e1e; }
.badge-cat.sports   { background: #1e5a4a; }
.badge-cat.culture  { background: #5a3a1e; }
.badge-cat.health   { background: #1e5a5a; }
.badge-cat.edu      { background: #3a1e5a; }
.badge-cat.food     { background: #8a5a1e; }
.badge-cat.tourism  { background: #1e4a8a; }
.badge-cat.defense  { background: #2a2a2f; border: 1px solid var(--ember); color: var(--flame-2); }
.badge-cat.security { background: #2a2a2f; border: 1px solid var(--gold); color: var(--gold); }
.badge-cat.intel    { background: #0d0d0f; border: 1px solid var(--flame); color: var(--flame); }
.badge-cat.tech     { background: #1e1e4a; }
.badge-cat.media    { background: #4a1e4a; }
.badge-cat.articles { background: #4a3a2a; }
.badge-cat.history  { background: #3a2a1e; }
.badge-cat.env      { background: #1e4a2a; }
.badge-cat.breaking { background: var(--urgent); }

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 4px 0;
}
.hero-card:hover .hero-title { color: var(--ember); }
.hero-dek {
  font-size: 16px; line-height: 1.55; color: var(--muted);
  font-family: var(--serif); font-style: italic;
  max-width: 58ch;
}
.hero-meta {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}
.hero-meta .by { color: var(--ink); font-weight: 600; }

.side-stack { display: flex; flex-direction: column; gap: 22px; }
.side-card {
  display: grid; grid-template-columns: 100px 1fr; gap: 14px;
  cursor: pointer;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.side-card:last-child { border-bottom: none; }
.side-card .sm-media { aspect-ratio: 1/1; overflow: hidden; }
.side-card .sm-title {
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  line-height: 1.2; margin: 6px 0 4px;
}
.side-card:hover .sm-title { color: var(--ember); }
.side-card .sm-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }

/* Ticker */
.ticker {
  background: var(--ink);
  color: #fffaf0;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ticker-label {
  background: var(--urgent); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  font-weight: 700; text-transform: uppercase;
  padding: 12px 16px;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.ticker-label .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.ticker-track {
  overflow: hidden; flex: 1;
  padding: 12px 0;
  position: relative;
}
.ticker-track .inner {
  display: inline-flex; gap: 48px; white-space: nowrap;
  animation: scroll 60s linear infinite;
  padding-left: 100%;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.ticker-item { font-size: 13px; }
.ticker-item .time { font-family: var(--mono); color: var(--flame); margin-right: 10px; font-size: 11px; }
.ticker-item .src  { color: var(--gold); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; margin-left: 10px; }

/* Flow */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.flow-list { display: flex; flex-direction: column; }
.flow-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: center;
  cursor: pointer;
}
.flow-item:hover .flow-title { color: var(--ember); }
.flow-item .flow-time {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink); font-weight: 700;
  letter-spacing: 0.05em;
}
.flow-item .flow-time .ago {
  display: block; font-weight: 400; color: var(--muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px;
}
.flow-item .flow-title {
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  line-height: 1.3;
}
.flow-item .flow-src {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: right;
}
.flow-item .flow-src .src-name { color: var(--ember); font-weight: 700; display: block; }

.flow-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.flow-filter button {
  padding: 6px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
}
.flow-filter button.on {
  background: var(--ink); color: var(--flame-2); border-color: var(--ink);
}

.sidebar-box {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-box h3 {
  font-family: var(--serif); font-weight: 900;
  font-size: 18px; margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.mini-item {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  cursor: pointer;
}
.mini-item:last-child { border-bottom: none; }
.mini-item .num {
  font-family: var(--serif); font-weight: 900;
  font-size: 28px; color: var(--flame);
  line-height: 1; min-width: 28px;
}
.mini-item .t { font-family: var(--serif); font-weight: 600; font-size: 13px; line-height: 1.3; }
.mini-item:hover .t { color: var(--ember); }

/* Papers */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.paper {
  aspect-ratio: 3/4;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
  padding: 14px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.paper:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.paper-masthead {
  font-family: var(--serif); font-weight: 900;
  font-size: 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
  line-height: 1; letter-spacing: -0.01em;
}
.paper-date {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.1em; color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.paper-lines {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.paper-lines .big {
  font-family: var(--serif); font-weight: 800;
  font-size: 11px; line-height: 1.1;
  margin-bottom: 6px;
}
.paper-lines .line {
  height: 3px; background: var(--rule); width: 100%;
}
.paper-lines .line.short { width: 70%; }
.paper-lines .line.mid { width: 85%; }
.paper-photo {
  height: 40px;
  margin-top: 6px;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 8px), linear-gradient(135deg, var(--rule), var(--cream));
}

/* Popular */
.pop-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pop-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.pop-card:hover { border-color: var(--ink); }
.pop-card .rank {
  font-family: var(--serif); font-weight: 900;
  font-size: 44px; line-height: 1;
  background: linear-gradient(180deg, var(--flame), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pop-card .t {
  font-family: var(--serif); font-weight: 700;
  font-size: 15px; line-height: 1.25;
  margin: 10px 0 12px;
}
.pop-card .m {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; gap: 12px;
}
.pop-card .m .views::before { content: "👁 "; }

/* Columns section */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.cat-col h3 {
  font-family: var(--serif); font-weight: 900;
  font-size: 22px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.cat-col h3 a { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ember); font-weight: 500; }
.cat-col .item {
  display: grid; grid-template-columns: 70px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
  cursor: pointer;
}
.cat-col .item:last-child { border-bottom: none; }
.cat-col .item .thumb { aspect-ratio: 1/1; }
.cat-col .item .ti { font-family: var(--serif); font-weight: 600; font-size: 14px; line-height: 1.25; }
.cat-col .item:hover .ti { color: var(--ember); }
.cat-col .item .mi { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Footer */
.footer {
  background: #0a0a0c;
  color: rgba(255,255,255,0.7);
  padding: 50px 32px 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1400px; margin: 0 auto;
}
.footer h4 {
  color: #fff; font-family: var(--serif);
  font-size: 15px; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 4px 0; font-size: 13px; color: rgba(255,255,255,0.65); cursor: pointer; }
.footer ul li:hover { color: var(--flame-2); }
.footer .brand-foot {
  display: flex; gap: 14px; align-items: flex-start;
}
.footer .brand-foot img { width: 52px; height: 52px; object-fit: contain; }
.footer .brand-foot p { font-size: 13px; line-height: 1.6; margin: 4px 0; max-width: 36ch; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 20px;
  max-width: 1400px; margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.footer-bar .secret {
  color: rgba(255,255,255,0.08);
  cursor: default;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono); font-size: 9px;
}
.footer-bar .secret:hover { color: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.15); }
