:root {
  --ink: #141414;
  --red: #d0121a;
  --red-dark: #9d0c12;
  --paper: #f6f4f1;
  --card: #ffffff;
  --line: #e4dfd8;
  --muted: #6e6a64;
  --gold: #a15c12;
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Nastaliq Urdu", serif;
  line-height: 2.15;
  padding-bottom: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #111;
  color: #f3f3f3;
  font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.topbar a:hover { color: #fff; }
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 128px; width: auto; object-fit: contain;
  background: transparent;
}
.brand small { display: block; color: var(--muted); font-size: 13px; }
.live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(208, 18, 26, 0.25);
}
.live-btn i {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
nav.cats { border-top: 1px solid var(--line); background: #fff; }
nav.cats .wrap { display: flex; gap: 6px; overflow: auto; padding: 8px 0; }
nav.cats a {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  color: #333;
}
nav.cats a:hover, nav.cats a.on { background: #111; color: #fff; }
.breaking {
  background: var(--red);
  color: #fff;
}
.breaking .wrap { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.breaking b { background: #fff; color: var(--red); border-radius: 4px; padding: 0 8px; }
main { padding: 22px 0 40px; }
.ad {
  display: block;
  margin: 0 0 18px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.ad img { margin: 0 auto; max-height: 140px; width: auto; object-fit: contain; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.story {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.story .pic { aspect-ratio: 16/9; background: #111 center/cover no-repeat; }
.story .txt { padding: 14px 16px 16px; }
.kicker { color: var(--red); font-size: 13px; font-weight: 700; }
.story h2, .story h3 { margin: 4px 0; line-height: 1.55; }
.story p { margin: 6px 0 0; color: var(--muted); }
.side { display: grid; gap: 12px; align-content: start; }
.side .story { display: grid; grid-template-columns: 96px 1fr; min-height: 84px; }
.side .story .pic { aspect-ratio: auto; min-height: 100%; }
.side .story .txt { padding: 10px 12px; }
.side .story p { display: none; }
.side .story h3 { font-size: 16px; }
.list { display: grid; gap: 14px; margin-top: 22px; }
.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.row .pic { min-height: 140px; background: #111 center/cover no-repeat; }
.row .txt { padding: 12px 14px; }
.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 16px 14px; }
.panel h3 { border-bottom: 2px solid var(--red); display: inline-block; margin-bottom: 8px; }
.panel a.item { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta { color: var(--muted); font-size: 13px; }
article.post { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
article.post h1 { line-height: 1.6; margin-top: 6px; }
article.post .heroimg { border-radius: 12px; max-height: 460px; width: 100%; object-fit: cover; margin: 12px 0; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.search {
  display: flex; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 8px 6px 14px;
}
.search input { border: 0; outline: 0; flex: 1; font: inherit; background: transparent; }
.search button { border: 0; background: #111; color: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.live-stage { background: #0c0c0c; border-radius: 16px; overflow: hidden; }
.live-stage iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.note { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
footer.site { background: #111; color: #eee; padding: 28px 0; }
footer.site a { color: #ddd; }
.footgrid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; height: 46px;
  background: #111; color: #fff; display: flex; align-items: center; z-index: 30;
  border-top: 3px solid var(--red);
}
.ticker .label { background: var(--red); height: 100%; display: flex; align-items: center; padding: 0 14px; font-weight: 700; }
.ticker .mask { overflow: hidden; flex: 1; }
.ticker .track { display: flex; gap: 28px; width: max-content; animation: marquee 46s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tag { font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.tag.breaking { background: var(--red); }
.tag.important { background: var(--gold); }
.tag.normal { background: #3a3a3a; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.menu-btn { display: none; background: #111; color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; }
@media (max-width: 860px) {
  .hero, .sections, .related { grid-template-columns: 1fr; }
  .side .story { grid-template-columns: 96px 1fr; }
  .row { grid-template-columns: 120px 1fr; }
  .brand small, .topbar { display: none; }
  .brand img { height: 88px; width: auto; }
  .menu-btn { display: inline-block; }
  nav.cats { display: none; }
  nav.cats.open { display: block; }
}
