/* খবর.zip — ওয়েবসাইট */
:root {
  --red: #d7141a;
  --red-deep: #a50f14;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --muted: #6d6a65;
  --paper: #ffffff;
  --bg: #f6f4f0;
  --line: #e6e1d8;
  --radius: 12px;
  --serif: 'Noto Serif Bengali', 'Hind Siliguri', serif;
  --sans: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --wrap: 1220px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(215, 20, 26, .45); outline-offset: 2px; }

/* ---------- লোগো ---------- */
.logo { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -1px; color: var(--ink); white-space: nowrap; }
.logo span { font-family: var(--sans); font-weight: 700; font-size: .62em; color: #fff; background: var(--red); padding: .12em .32em .08em; border-radius: 8px; margin-left: 4px; vertical-align: .28em; letter-spacing: 0; }
.logo:hover { color: var(--ink); }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }

/* ---------- ওপরের সরু পট্টি ---------- */
.topline { background: var(--ink); color: #d9d6d0; font-size: .82rem; }
.topline-in { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 1rem; }
.topline-social { display: flex; gap: 1rem; }
.topline a:hover { color: #fff; }

/* ---------- মাস্টহেড ---------- */
.masthead { background: var(--paper); }
.masthead-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding-top: 22px; padding-bottom: 18px; }
.tagline { margin: 0; color: var(--muted); font-size: .95rem; border-left: 2px solid var(--line); padding-left: 1.25rem; line-height: 1.4; }
.search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 16px; min-width: 260px; }
.search input { border: 0; background: transparent; font: inherit; font-size: .95rem; flex: 1; outline: none; padding: .35rem 0; min-width: 0; }
.search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; }
.search button:hover { background: var(--red); }
.search-big { max-width: 640px; margin: 0 0 1.25rem; background: #fff; padding: 5px 6px 5px 20px; }
.search-big input { font-size: 1.1rem; }
.search-big button { width: auto; height: 42px; padding: 0 1.4rem; font-weight: 600; }

/* ---------- বিভাগ-নেভ ---------- */
.catnav { background: var(--red); position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 0 var(--red-deep); }
.catnav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { color: #fff; font-weight: 600; padding: .72rem .95rem; white-space: nowrap; font-size: 1rem; position: relative; }
.catnav a:hover { background: var(--red-deep); color: #fff; }
.catnav a.on { background: var(--red-deep); }
.catnav a.on::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: 6px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- টিকার ---------- */
.ticker { background: var(--paper); border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 1rem; height: 46px; }
.ticker-label { flex: none; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; padding: .25rem .8rem .25rem .7rem; border-radius: 4px; display: flex; align-items: center; gap: .45rem; }
.ticker-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(215, 20, 26, .7); } 60% { box-shadow: 0 0 0 7px rgba(215, 20, 26, 0); } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-move { display: inline-flex; white-space: nowrap; animation: tick 70s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { padding: 0 1.6rem; font-weight: 500; position: relative; }
.ticker-move a::after { content: '◆'; position: absolute; right: -.35rem; color: var(--red); font-size: .55rem; top: .45em; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; }
  .ticker-track { overflow-x: auto; }
}

main { padding-bottom: 2.5rem; }

/* ---------- সেকশন শিরোনাম ---------- */
.sec-title { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; margin: 2.2rem 0 1.1rem; display: flex; align-items: center; gap: .75rem; border-bottom: 2px solid var(--ink); padding-bottom: .45rem; line-height: 1.3; }
.sec-title > span, .sec-title > a > span { position: relative; padding-left: .85rem; }
.sec-title > span::before, .sec-title > a > span::before { content: ''; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; background: var(--red); border-radius: 2px; }
.sec-title small { font-family: var(--sans); font-weight: 500; font-size: .9rem; color: var(--muted); }
.sec-title .more { margin-left: auto; font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--red); }
.sec-title.big { font-size: 2rem; }

/* ---------- প্রধান খবর ---------- */
.top-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 28px; margin-top: 26px; }
.lead { display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0, 0, 0, .25); }
.lead-media { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--ink); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lead-media:hover img { transform: scale(1.04); }
.lead-body { display: flex; flex-direction: column; justify-content: center; padding: 6px 6px 6px 0; }
.kicker { display: flex; align-items: center; gap: .9rem; font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.kicker a { color: var(--red); text-transform: uppercase; letter-spacing: .3px; }
.live-dot { color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.lead-title { font-family: var(--serif); font-weight: 800; font-size: 2.15rem; line-height: 1.32; margin: 0 0 .9rem; letter-spacing: -.2px; }
.lead-excerpt { color: var(--ink-2); font-size: 1.07rem; line-height: 1.8; margin: 0 0 1.3rem; }

.btn-red { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; background: var(--red); color: #fff; font-weight: 700; padding: .65rem 1.3rem; border-radius: 999px; transition: background .2s, transform .2s; }
.btn-red:hover { background: var(--red-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { display: inline-block; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; padding: .6rem 1.4rem; border-radius: 999px; margin-top: 2rem; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline.small { font-size: .9rem; padding: .4rem 1rem; margin-top: 1rem; }

/* ---------- পাশের তালিকা ---------- */
.side, .aside .sticky { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 1px 0 var(--line); }
.side-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.side-title::before { content: ''; width: 9px; height: 9px; background: var(--red); border-radius: 2px; }
.li { display: grid; grid-template-columns: 66px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li:last-of-type { border-bottom: 0; }
.li-thumb { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--line); }
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-title { font-family: var(--serif); font-weight: 700; font-size: 1rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.li-meta { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ---------- রিল কার্ড ---------- */
.reel { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.reel-media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .55); }
.reel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.reel-media::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.reel:hover .reel-media img { transform: scale(1.05); }
.reel-play { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; transition: background .2s, transform .2s; }
.reel-play::before { content: ''; border-left: 13px solid var(--red); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.reel:hover .reel-play, .lead-media:hover .reel-play { background: var(--red); transform: scale(1.08); }
.reel:hover .reel-play::before, .lead-media:hover .reel-play::before { border-left-color: #fff; }
.reel-play.big { width: 64px; height: 64px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.reel-play.big::before { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 6px; }
.lead-media:hover .reel-play.big { transform: translate(-50%, -50%) scale(1.08); }
.reel-dur { position: absolute; right: 10px; top: 10px; z-index: 1; background: rgba(0, 0, 0, .72); color: #fff; font-size: .78rem; font-weight: 600; padding: .05rem .5rem; border-radius: 6px; }
.no-thumb { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #3a0a0c, var(--ink)); color: #fff; font-family: var(--serif); font-weight: 800; font-size: 1.6rem; }
.no-thumb b { color: var(--red); }
.reel-body { display: flex; flex-direction: column; gap: .2rem; }
.card-cat { color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .3px; }
.reel-title { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-time { font-size: .8rem; color: var(--muted); }

.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 26px 20px; }
.reel-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* শেলফ (আনুভূমিক স্ক্রল) */
.shelf { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: 182px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track .reel { scroll-snap-align: start; }
.shelf-btn { position: absolute; top: calc(182px * 16 / 9 / 2 - 22px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.7rem; line-height: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); display: grid; place-items: center; padding-bottom: 4px; transition: opacity .2s, background .2s; }
.shelf-btn:hover { background: var(--red); color: #fff; }
.shelf-btn.prev { left: -14px; }
.shelf-btn.next { right: -14px; }
.shelf-btn[disabled] { opacity: 0; pointer-events: none; }

/* দুই কলাম */
.two-col, .article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.aside .sticky { position: sticky; top: 64px; margin-top: 2.2rem; }
.two-col.solo { grid-template-columns: 1fr; }
.two-col.solo .sticky { position: static; }
.two-col.solo .popular { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; }
.two-col.solo .popular li:last-child { border-bottom: 1px solid var(--line); }
.popular { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.popular li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.popular li:last-child { border-bottom: 0; }
.rank { font-family: var(--serif); font-weight: 800; font-size: 1.9rem; color: var(--red); line-height: 1; opacity: .85; }
.popular a { font-family: var(--serif); font-weight: 700; line-height: 1.45; font-size: 1rem; }

/* ---------- খবরের পেজ ---------- */
.article { min-width: 0; }
.crumbs { margin: 1.6rem 0 .6rem; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--red); font-weight: 600; }
.art-title { font-family: var(--serif); font-weight: 800; font-size: 2.35rem; line-height: 1.35; margin: 0 0 .8rem; letter-spacing: -.3px; }
.art-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.art-meta span:first-child { color: var(--ink); font-weight: 600; }

.player { position: relative; background: #000; border-radius: 14px; overflow: hidden; display: flex; justify-content: center; isolation: isolate; }
.player::before { content: ''; position: absolute; inset: -40px; background: var(--poster, none) center / cover; filter: blur(34px) brightness(.45) saturate(1.2); z-index: -1; }
.player video { display: block; height: min(78vh, 760px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; background: #000; }
.player.landscape video { width: 100%; height: auto; max-height: 78vh; aspect-ratio: 16 / 9; }
.up-next { position: absolute; right: 14px; bottom: 64px; display: flex; align-items: stretch; background: #fff; border-radius: 12px; overflow: hidden; max-width: min(360px, calc(100% - 28px)); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); animation: rise .35s ease-out; }
.up-next[hidden] { display: none; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.up-next-link { padding: .7rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.up-next-label { font-size: .8rem; font-weight: 700; color: var(--red); }
.up-next-label b { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--red); color: #fff; margin-left: .3rem; font-size: .8rem; }
.up-next-title { font-family: var(--serif); font-weight: 700; line-height: 1.4; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-next-cancel { border: 0; border-left: 1px solid var(--line); background: #f3f3f3; padding: 0 .8rem; color: var(--muted); }
.up-next-cancel:hover { background: #e9e9e9; color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.share-label { font-weight: 700; margin-right: .25rem; font-size: .95rem; }
.sh { border: 0; color: #fff; font-weight: 600; font-size: .88rem; padding: .45rem .95rem; border-radius: 999px; transition: transform .15s, filter .15s; }
.sh:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.sh.wa { background: #1fa855; }
.sh.fb { background: #1877f2; }
.sh.x { background: #111; }
.sh.tg { background: #229ed9; }
.sh.copy, .sh.native { background: #ece9e3; color: var(--ink); }
.sh.copy:hover, .sh.native:hover { color: var(--ink); }

.art-body { font-size: 1.16rem; line-height: 1.95; color: var(--ink-2); max-width: 720px; }
.art-body p { margin: 0 0 1.15rem; }
.art-body p.first { font-size: 1.24rem; color: var(--ink); font-weight: 500; }
.art-body p.first::first-letter { font-family: var(--serif); font-weight: 800; color: var(--red); font-size: 1.15em; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; }
.tags a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; font-weight: 500; }
.tags a:hover { border-color: var(--red); }

.sources { background: #fff; border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.3rem; margin: 1.5rem 0; max-width: 720px; }
.sources h2 { font-size: 1rem; margin: 0 0 .5rem; font-family: var(--serif); }
.sources ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.sources li { margin: .25rem 0; }
.sources a { color: #1a56b8; text-decoration: underline; text-underline-offset: 2px; }

/* পেজার */
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 2.2rem 0 0; font-weight: 600; }
.pager a { border: 2px solid var(--ink); padding: .4rem 1.1rem; border-radius: 999px; }
.pager a:hover { background: var(--ink); color: #fff; }

.empty-home, .notfound { text-align: center; padding: 4rem 1rem; }
.empty-home h1 { font-family: var(--serif); font-size: 2.4rem; }
.empty-home h1 span { color: var(--red); }
.notfound h1 { font-family: var(--serif); font-size: 5rem; color: var(--red); margin: 0; }

/* ---------- ফুটার ---------- */
.footer { background: var(--ink); color: #cfcac2; margin-top: 3rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-top: 2.8rem; padding-bottom: 2rem; }
.footer h4 { color: #fff; font-family: var(--serif); margin: .3rem 0 .8rem; font-size: 1.05rem; }
.f-brand p { max-width: 340px; line-height: 1.7; }
.f-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.f-social { columns: 1; }
.f-links li { margin: .3rem 0; }
.footer a:hover { color: #fff; }
.f-contact a { color: #fff; }
.f-bottom { display: flex; justify-content: space-between; border-top: 1px solid #2c2c2c; padding-top: 1rem; padding-bottom: 1.4rem; font-size: .85rem; }

.f-bottom-links { display: flex; gap: 1.2rem; }
.policy { max-width: 780px; padding-top: 1.5rem; }
.policy h2 { font-family: var(--serif); font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.policy p { line-height: 1.9; color: var(--ink-2); }
.policy a { color: var(--red); text-decoration: underline; }

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 1080px) {
  .lead { grid-template-columns: 240px 1fr; }
  .lead-title { font-size: 1.75rem; }
  .reel-grid.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reel-grid.four .reel:nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .top-grid, .two-col, .article-wrap { grid-template-columns: 1fr; }
  .aside .sticky { position: static; }
  .tagline { display: none; }
  .masthead-in { grid-template-columns: auto 1fr; }
  .search { min-width: 0; justify-self: end; width: 100%; max-width: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .logo { font-size: 2.05rem; }
  .masthead-in { grid-template-columns: 1fr; gap: .8rem; padding-top: 14px; padding-bottom: 12px; }
  .search { max-width: none; justify-self: stretch; }
  .topline-social { display: none; }
  .lead { grid-template-columns: 1fr; padding: 12px; gap: 14px; }
  .lead-media { aspect-ratio: 4 / 5; }
  .lead-title { font-size: 1.5rem; }
  .lead-excerpt { font-size: 1rem; }
  .reel-grid, .reel-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .reel-grid.four .reel:nth-child(4) { display: flex; }
  .shelf-track { grid-auto-columns: 46%; gap: 12px; }
  .shelf-btn { display: none; }
  .sec-title { font-size: 1.25rem; margin-top: 1.8rem; }
  .sec-title.big { font-size: 1.6rem; }
  .art-title { font-size: 1.65rem; }
  .player { border-radius: 0; margin: 0 -14px; }
  .player video { height: min(72vh, 680px); }
  .art-body { font-size: 1.08rem; }
  .art-body p.first { font-size: 1.14rem; }
  .footer-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .up-next { bottom: 56px; right: 10px; }
}
