/* ==========================================================================
   দুর্নিবার বাংলা — style.css
   Identity: broadcast. Logo red + blue on warm white, TV lower-third motifs.
   Change the --brand-* tokens below and the whole site follows.
   ========================================================================== */

:root {
  /* Brand: taken from the logo */
  --brand-red:      #CB181E;   /* logo red */
  --brand-red-dk:   #9E1015;   /* red for text on white / hover */
  --brand-blue:     #2E3192;   /* logo blue */
  --brand-navy:     #1B1D66;   /* deep blue: nav, livebar, footer */
  --brand-navy-dk:  #12144A;   /* deepest: TV strip */
  --brand-peach:    #F8DECD;   /* logo tagline band */
  --brand-peach-lt: #FDF1E8;

  /* Roles (names kept so every component follows the palette) */
  --brand-ink:      var(--brand-navy);
  --brand-ink-2:    var(--brand-blue);
  --brand-accent:   var(--brand-red);
  --brand-accent-2: var(--brand-red-dk);
  --brand-teal:     var(--brand-blue);

  /* Neutrals */
  --paper:   #FFFFFF;
  --surface: #F6F2EF;
  --line:    #E4DDD8;
  --text:    #1F1D33;
  --muted:   #5F5B73;

  /* Signals */
  --up:   #16803C;
  --down: #C0262D;

  /* Type */
  --f-display: 'Anek Bangla', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  --f-body:    'Tiro Bangla', 'Noto Serif Bengali', serif;

  /* Scale (1.25 minor third on 17px body) */
  --fs-xs: .78rem;
  --fs-sm: .88rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.33rem;
  --fs-xl: 1.66rem;
  --fs-2xl: 2.07rem;
  --fs-3xl: 2.6rem;

  --wrap: 1240px;
  --gap: 24px;
  --radius-s: 3px;
  --radius-m: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink-2); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-ink);
  margin: 0 0 .5em;
}
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.site-main { display: block; min-height: 50vh; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand-red); color: #fff;
  padding: 8px 14px; font-family: var(--f-display); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Live data bar ---------- */
.livebar {
  background: var(--brand-ink);
  color: #E8E6FA;
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  line-height: 1;
}
.livebar-in { display: flex; align-items: stretch; height: 36px; gap: 0; }
.lb-now {
  display: flex; align-items: center; gap: 14px;
  padding-right: 16px; margin-right: 16px;
  border-right: 1px solid rgba(255,255,255,.18);
  white-space: nowrap; flex-shrink: 0;
}
.lb-clock { font-weight: 700; color: var(--brand-peach); font-variant-numeric: tabular-nums; min-width: 8.5em; }
.lb-period { margin-right: .35em; }
.lb-date { opacity: .85; }
.lb-scroll { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.lb-track { display: flex; width: max-content; height: 100%; animation: dnb-marquee 45s linear infinite; }
.lb-scroll:hover .lb-track, .lb-scroll:focus-within .lb-track { animation-play-state: paused; }
.lb-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.lb-item { display: flex; align-items: baseline; gap: 7px; padding: 0 22px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.12); }
.lb-k { opacity: .75; }
.lb-v { font-weight: 700; color: #fff; }
.lb-v small { font-weight: 400; opacity: .7; font-size: .8em; }
.lb-note { opacity: .7; }
.lb-c { font-weight: 600; }
.lb-c.up { color: #5FD68A; }
.lb-c.down { color: #FF8A8F; }
.lb-c.flat { opacity: .7; }

@keyframes dnb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.mh-in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gap);
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--brand-ink); }
.brand:hover { color: var(--brand-ink); }
.brand-logo { max-height: 64px; width: auto; }
.brand-bug {
  width: 18px; height: 52px; flex-shrink: 0;
  background: var(--brand-accent);
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--f-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -.01em;
}
.brand-tag { font-family: var(--f-display); font-size: var(--fs-sm); color: var(--muted); margin-top: 6px; }

.mh-ad { justify-self: center; min-width: 0; }
.mh-ad .ad-slot { margin: 0; }

.mh-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mh-search { display: flex; border: 2px solid var(--brand-ink); border-radius: var(--radius-s); overflow: hidden; background: var(--paper); }
.mh-search input {
  border: 0; outline: 0; background: transparent;
  font: 500 var(--fs-sm) var(--f-display);
  padding: 8px 12px; width: 220px; color: var(--text);
}
.mh-search button {
  border: 0; background: var(--brand-ink); color: #fff;
  width: 40px; display: grid; place-items: center; cursor: pointer;
}
.mh-search button svg { width: 18px; height: 18px; }
.mh-search button:hover { background: var(--brand-ink-2); }
.mh-search:focus-within { outline: 3px solid var(--brand-accent); outline-offset: 1px; }

.mh-row { display: flex; align-items: center; gap: 8px; }
.soc {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: var(--brand-ink); border: 1.5px solid var(--line);
}
.soc svg { width: 16px; height: 16px; fill: currentColor; }
.soc:hover { color: #fff; border-color: transparent; }
.soc-facebook:hover { background: #1877F2; }
.soc-youtube:hover  { background: #FF0000; }
.soc-twitter:hover  { background: #000; }
.epaper-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 700; font-size: var(--fs-sm);
  background: var(--brand-red); color: #fff;
  padding: 7px 14px; border-radius: var(--radius-s); line-height: 1.2;
}
.epaper-btn svg { width: 16px; height: 16px; }
.epaper-btn:hover { background: var(--brand-blue); color: #fff; }

/* ---------- Main nav ---------- */
.mainnav { background: var(--brand-ink); position: sticky; top: 0; z-index: 40; }
.nav-in { display: flex; align-items: center; }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; position: relative;
  padding: 13px 16px 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem;
  color: #fff; line-height: 1.2;
}
.nav-list a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px;
  background: #FF4B52; transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-list a:hover { color: #fff; background: var(--brand-ink-2); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: #fff; background: rgba(255,255,255,.12); }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; color: #fff; cursor: pointer;
  font: 600 1rem var(--f-display); padding: 12px 0;
}
.burger { display: grid; gap: 4px; width: 22px; }
.burger span { height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Breaking ticker: TV lower-third ---------- */
.ticker { display: flex; background: var(--paper); border-bottom: 3px solid var(--brand-ink); }
.ticker-in { display: flex; align-items: stretch; width: 100%; padding-left: 0; }
.ticker-label {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--brand-red); color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  padding: 0 34px 0 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: dnb-pulse 1.6s ease-out infinite;
}
@keyframes dnb-pulse { to { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.ticker-scroll { flex: 1; overflow: hidden; margin-left: -6px; }
.ticker-track { display: flex; width: max-content; animation: dnb-marquee var(--dur, 30s) linear infinite; }
.ticker-scroll:hover .ticker-track, .ticker-scroll:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: center; }
.ticker-list li::after {
  content: ''; width: 7px; height: 7px; background: var(--brand-accent);
  transform: rotate(45deg); margin: 0 4px;
}
.ticker-list a {
  display: block; padding: 11px 18px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.3;
  color: var(--brand-ink); white-space: nowrap;
}
.ticker-list a:hover { color: var(--brand-red); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Ads ---------- */
.ad-slot { position: relative; margin: 16px auto; text-align: center; line-height: 0; }
.ad-slot img { margin: 0 auto; }
.ad-label {
  display: block; line-height: 1.4; margin-bottom: 4px;
  font: 400 var(--fs-xs) var(--f-display); color: var(--muted);
}
.header-ad { padding-top: 4px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0; font-family: var(--f-display); }
.pagination a, .pagination span {
  min-width: 40px; padding: 8px 12px; text-align: center; line-height: 1.2;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper);
}
.pagination a:hover { border-color: var(--brand-ink); }
.pagination .pg-cur { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; font-weight: 700; }
.pagination .pg-gap { border-color: transparent; background: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mh-in { grid-template-columns: auto 1fr; }
  .mh-ad { grid-column: 1 / -1; grid-row: 2; }
  .mh-search input { width: 170px; }
}
@media (max-width: 760px) {
  .lb-date { display: none; }
  .lb-now { padding-right: 12px; margin-right: 0; }
  .mh-in { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .brand-name { font-size: var(--fs-2xl); }
  .brand-bug { height: 40px; width: 14px; }
  .mh-ad { grid-row: auto; }
  .mh-tools { align-items: stretch; }
  .mh-search input { width: 100%; }
  .mh-row { justify-content: flex-start; }
  .epaper-btn { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-in { flex-wrap: wrap; }
  .nav-list { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 11px 4px 11px 14px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-list a::after { left: 0; right: auto; width: 4px; top: 0; bottom: 0; height: auto; transform: scaleY(0); }
  .nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleY(1); }
  .ticker-label { padding: 0 26px 0 12px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-track, .ticker-track { animation: none; }
  .lb-scroll, .ticker-scroll { overflow-x: auto; }
  .lb-list[aria-hidden], .ticker-list[aria-hidden] { display: none; }
  .live-dot { animation: none; }
  .nav-list a::after { transition: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-ad { padding-top: 8px; }
.site-footer {
  margin-top: 48px;
  background: var(--brand-ink);
  color: #D9D6F2;
  font-family: var(--f-display);
  border-top: 6px solid var(--brand-red);
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr;
  gap: 40px;
  padding-top: 44px; padding-bottom: 40px;
}
.ft-name {
  display: inline-block;
  font-size: var(--fs-2xl); font-weight: 800; font-stretch: 78%;
  line-height: 1; color: #fff;
}
.ft-name:hover { color: var(--brand-peach); }
.ft-tag { margin: 8px 0 0; color: var(--brand-peach); font-weight: 600; }
.ft-about { margin: 14px 0 18px; line-height: 1.6; max-width: 32ch; opacity: .85; }
.ft-epaper {
  display: inline-block; padding: 8px 16px; line-height: 1.3;
  border: 2px solid var(--brand-peach); color: var(--brand-peach);
  border-radius: var(--radius-s); font-weight: 700;
}
.ft-epaper:hover { background: var(--brand-peach); color: var(--brand-navy); }
.ft-h {
  font-size: 1.05rem; font-weight: 700; font-stretch: 100%;
  color: #fff; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.ft-cats { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.ft-cats li { break-inside: avoid; }
.ft-cats a, .ft-social a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; color: #D9D6F2; line-height: 1.4; }
.ft-cats a:hover, .ft-social a:hover { color: var(--brand-peach); }
.ft-social { list-style: none; margin: 0; padding: 0; }
.ft-soc-ic {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08);
}
.ft-soc-ic svg { width: 15px; height: 15px; fill: currentColor; }
.ft-bottom { background: rgba(0,0,0,.22); font-size: var(--fs-sm); }
.ft-bottom-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; line-height: 1.5; }
.ft-en { opacity: .6; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--brand-red); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(27,29,102,.35);
}
.back-top[hidden] { display: none; }
.back-top svg { width: 22px; height: 22px; }
.back-top:hover { background: var(--brand-blue); }

/* ---------- Reading progress (article.php) ---------- */
#readProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60;
  background: var(--brand-accent); transform: scaleX(0); transform-origin: left;
}

/* ---------- YouTube modal ---------- */
.yt-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.yt-modal[hidden] { display: none; }
.yt-backdrop { position: absolute; inset: 0; background: rgba(15,11,45,.88); }
.yt-box { position: relative; width: min(960px, 100%); }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-top: 4px solid var(--brand-accent); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-close {
  position: absolute; right: 0; top: -48px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; color: var(--brand-ink); cursor: pointer; display: grid; place-items: center;
}
.yt-close svg { width: 18px; height: 18px; }
body.no-scroll { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 110;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brand-ink); color: #fff; border-left: 5px solid var(--brand-red);
  font: 600 var(--fs-sm) var(--f-display); padding: 12px 18px; border-radius: var(--radius-s);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

img.img-failed { visibility: hidden; }

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .ft-bottom-in { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* ==========================================================================
   Shared content components
   ========================================================================== */
.sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 18px;
}
.sec-title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: var(--fs-xl); font-weight: 800; font-stretch: 82%;
}
.sec-title::before {
  content: ''; width: 10px; height: 26px; flex-shrink: 0; background: var(--brand-accent);
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
}
.sec-title a:hover { color: var(--brand-ink-2); }
.sec-more {
  font: 600 var(--fs-sm) var(--f-display); color: var(--brand-teal); white-space: nowrap;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.sec-more:hover { color: var(--brand-teal); border-bottom-color: currentColor; }

.chip {
  display: inline-block; align-self: flex-start;
  font: 700 var(--fs-xs) var(--f-display); line-height: 1.2;
  background: var(--brand-blue); color: #fff;
  padding: 4px 14px 4px 8px; margin-bottom: 8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}
a.chip:hover { background: var(--brand-red); color: #fff; }

.img-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-ink-2) 100%);
}
.img-ph-bug { width: 18%; max-width: 34px; aspect-ratio: 1 / 2.6; background: var(--brand-accent); clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%); opacity: .9; }
.play-badge {
  position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(27,29,102,.88); border: 2px solid #fff;
}
.play-badge::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff;
}

/* ---------- Cards ---------- */
.card { display: flex; min-width: 0; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--surface); border-radius: var(--radius-m); flex-shrink: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-size: var(--fs-md); font-weight: 700; font-stretch: 92%; line-height: 1.4; margin: 0 0 6px; }
.card-title a { color: var(--brand-ink); }
.card-title a:hover { color: var(--brand-teal); }
.card-sum { margin: 0 0 8px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.card-meta { font: 400 var(--fs-xs) var(--f-display); color: var(--muted); }

.card-lead { flex-direction: column; gap: 12px; }
.card-lead .card-media { aspect-ratio: 16 / 9; }
.card-lead .card-title { font-size: var(--fs-lg); line-height: 1.35; }

.card-small { gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.card-small:first-child { border-top: 0; padding-top: 0; }
.card-small .card-media { width: 112px; aspect-ratio: 4 / 3; border-radius: var(--radius-s); }
.card-small .card-title { font-size: .98rem; line-height: 1.45; }
.card-small .play-badge { width: 26px; height: 26px; left: 6px; bottom: 6px; }
.card-small .play-badge::after { border-width: 5px 0 5px 8px; }

.card-strip { gap: 16px; align-items: center; padding: 14px; background: var(--paper); border-radius: var(--radius-m); border-left: 4px solid var(--brand-ink); }
.card-strip .card-media { width: 150px; aspect-ratio: 16 / 10; border-radius: var(--radius-s); }
.card-strip .chip { margin-bottom: 6px; }

.card-list { gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.card-list .card-media { width: 120px; aspect-ratio: 1 / 1; border-radius: var(--radius-s); }
.card-list .card-title { font-size: var(--fs-lg); }

/* ---------- Page scaffolding ---------- */
.panel, .latest-sec, .cat-sec, .widget, .art, .cat-group {
  background: var(--paper); border-radius: 10px;
}
.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-title { font-size: var(--fs-3xl); font-weight: 800; font-stretch: 80%; margin: 0; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-family: var(--f-display); }
.with-side, .hp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; margin-top: 20px; }
.main-col { min-width: 0; }
.empty-note {
  background: var(--paper); border-radius: 10px; padding: 28px; text-align: center;
  font-family: var(--f-display); color: var(--muted);
}
.list-stack { background: var(--paper); border-radius: 10px; padding: 4px 20px; }
.list-stack .card-list:first-child { border-top: 0; }

/* ---------- বিশেষ সংবাদ carousel ---------- */
.bisesh { padding-top: 26px; }
.bisesh .sec-head { margin-bottom: 4px; }
.bisesh-ctrl { display: flex; gap: 8px; }
.bisesh-btn, .tv-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--brand-ink); background: var(--paper); color: var(--brand-ink);
}
.bisesh-btn svg, .tv-btn svg { width: 18px; height: 18px; }
.bisesh-btn:hover { background: var(--brand-ink); color: #fff; }
.bisesh-viewport { overflow: hidden; padding: 18px 0 26px; margin: 0 -16px; }
.bisesh-track { display: flex; will-change: transform; }
.bisesh-card { flex: 0 0 var(--card-w, 20%); width: var(--card-w, 20%); padding: 0 8px; }
.bisesh-card > a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border-radius: 10px; overflow: hidden;
  border: 2px solid transparent;
  opacity: .72;
  transition: transform .45s cubic-bezier(.45,0,.2,1), box-shadow .45s, border-color .45s, opacity .45s;
}
.bisesh-card.bisesh-active > a {
  transform: scale(1.07) translateY(-5px);
  border-color: var(--brand-accent);
  box-shadow: 0 14px 30px rgba(28,22,80,.22);
  opacity: 1;
}
.bisesh-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.bisesh-media img { width: 100%; height: 100%; object-fit: cover; }
.bisesh-body { display: flex; flex-direction: column; padding: 12px 14px 16px; }
.bisesh-title { font: 700 1rem/1.45 var(--f-display); font-stretch: 92%; color: var(--brand-ink); }
.bisesh-static { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 14px 0 20px; }
.bisesh-static .bisesh-card { width: auto; padding: 0; }
.bisesh-static .bisesh-card > a { transform: none; box-shadow: none; }

/* ---------- সর্বশেষ সংবাদ ---------- */
.latest-sec { margin-top: 26px; padding: 22px; }
.latest-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; }
.latest-lead .card-title { font-size: var(--fs-2xl); font-weight: 800; font-stretch: 84%; line-height: 1.25; }
.latest-lead .card-sum { font-size: 1.02rem; }
.latest-side { display: flex; flex-direction: column; }
.latest-strips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.latest-strips .card-strip { background: var(--surface); }
.empty-home { padding-top: 60px; padding-bottom: 60px; text-align: center; }

/* ---------- Hero ---------- */
.hero-sec { margin-top: 26px; }
.hero {
  display: grid; grid-template-columns: 55% 45%;
  background: var(--brand-ink); border-radius: 12px; overflow: hidden;
  border-left: 8px solid var(--brand-accent);
}
.hero-media { position: relative; display: block; min-height: 340px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .img-ph { position: absolute; inset: 0; }
.hero-body { display: flex; flex-direction: column; justify-content: center; padding: 34px 36px; color: #E3E0F7; }
.hero-badge {
  align-self: flex-start; margin-bottom: 14px;
  font: 800 var(--fs-sm) var(--f-display); color: #fff; background: var(--brand-red);
  padding: 6px 20px 6px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.hero-body .chip { background: rgba(255,255,255,.16); }
.hero-title { font-size: var(--fs-2xl); font-weight: 800; font-stretch: 84%; line-height: 1.25; margin: 0 0 12px; }
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--brand-peach); }
.hero-sum { margin: 0 0 18px; line-height: 1.75; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 var(--fs-sm) var(--f-display); }
.hero-read { color: var(--brand-peach); font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.hero-read:hover { color: #fff; }

/* ---------- দুর্নিবার বাংলা TV ---------- */
.tv-sec { margin-top: 32px; background: var(--brand-navy-dk); padding: 26px 0 30px; color: #fff; }
.tv-sec-page { margin-top: 0; }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tv-title { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-size: var(--fs-xl); font-weight: 800; font-stretch: 82%; }
.tv-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 0 4px rgba(255,59,59,.25); }
.tv-actions { display: flex; align-items: center; gap: 8px; }
.tv-sub {
  font: 700 var(--fs-sm) var(--f-display); background: #FF0000; color: #fff;
  padding: 8px 16px; border-radius: 999px; line-height: 1.2;
}
.tv-sub:hover { background: #fff; color: #C00; }
.tv-btn { border-color: rgba(255,255,255,.4); background: transparent; color: #fff; }
.tv-btn:hover { background: #fff; color: var(--brand-ink); }
.tv-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px;
}
.tv-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: #fff; }
.tv-card:hover { color: var(--brand-peach); }
.tv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: #000; }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-t { font: 600 .98rem/1.45 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-d { font: 400 var(--fs-xs) var(--f-display); opacity: .65; }
#homeTicker { margin-top: 0; }

/* ---------- Category sections ---------- */
.hp-body { margin-top: 28px; }
.hp-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cat-sec { padding: 22px; }
.cat-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.cat-side { display: flex; flex-direction: column; }
.cat-side .ad-slot { margin: 12px 0 0; }
.cat-strip { margin-top: 18px; }
.cat-strip .card-strip { background: var(--surface); }
.hp-mid-ad .ad-slot { margin: 0 auto; }

/* ---------- Sidebar + widgets ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sidebar .ad-slot { margin: 0; }
.widget { padding: 18px 18px 14px; }
.w-title {
  font-size: 1.12rem; font-weight: 800; font-stretch: 90%; margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 3px solid var(--brand-ink);
}
.rank-list, .latest-list, .yt-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-n {
  flex-shrink: 0; width: 34px; font: 800 1.9rem/1 var(--f-display); font-stretch: 75%;
  color: var(--brand-accent-2);
}
.rank-list a, .latest-list a { font: 600 .96rem/1.45 var(--f-display); color: var(--brand-ink); }
.rank-list a:hover, .latest-list a:hover, .yt-list a:hover .yt-t { color: var(--brand-teal); }
.latest-list li { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); position: relative; }
.latest-list li::before { content: ''; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand-accent); }
.latest-list time { display: block; font: 400 var(--fs-xs) var(--f-display); color: var(--muted); margin-bottom: 2px; }
.yt-list li { padding: 8px 0; }
.yt-list a { display: flex; gap: 10px; align-items: flex-start; }
.yt-thumb { position: relative; flex-shrink: 0; width: 110px; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb .play-badge { width: 24px; height: 24px; left: 6px; bottom: 6px; }
.yt-thumb .play-badge::after { border-width: 5px 0 5px 8px; }
.yt-t { font: 600 .9rem/1.4 var(--f-display); color: var(--brand-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-more { display: block; margin-top: 8px; font: 600 var(--fs-sm) var(--f-display); color: var(--brand-teal); }

/* ---------- Category page ---------- */
.cat-group { padding: 20px; margin-bottom: 20px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.cat-group-lead .card-media { aspect-ratio: 16 / 7; }
.cat-group-lead .card-title { font-size: var(--fs-xl); font-weight: 800; font-stretch: 86%; }
.cat-group-list .card-list:first-child { border-top: 1px solid var(--line); }
.main-col > .ad-slot { margin: 0 auto 20px; }

/* ---------- Search, pills, grids ---------- */
.big-search { display: flex; max-width: 640px; margin-top: 16px; border: 2px solid var(--brand-ink); border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 16px; font: 500 1.05rem var(--f-display); background: transparent; }
.big-search button { border: 0; background: var(--brand-ink); color: #fff; padding: 0 24px; font: 700 1rem var(--f-display); cursor: pointer; }
.big-search button:hover { background: var(--brand-ink-2); }
.big-search:focus-within { outline: 3px solid var(--brand-accent); outline-offset: 1px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter-pills a {
  font: 600 var(--fs-sm) var(--f-display); padding: 6px 14px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--brand-ink);
}
.filter-pills a.is-on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.video-grid, .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.video-grid { margin-top: 20px; }
.card-video { flex-direction: column; gap: 10px; background: var(--paper); border-radius: 10px; padding: 12px; }
.card-video .card-media { aspect-ratio: 16 / 9; }

/* ---------- E-paper ---------- */
.epaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; margin-top: 12px; }
.ep-card { background: var(--paper); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ep-lead { grid-column: 1 / -1; flex-direction: row; gap: 28px; padding: 22px; border-left: 8px solid var(--brand-accent); }
.ep-cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.ep-lead .ep-cover { width: 260px; flex-shrink: 0; }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; }
.ep-ph { display: grid; place-items: center; height: 100%; font: 800 1.3rem var(--f-display); color: var(--brand-ink); background: linear-gradient(180deg, #fff, var(--surface)); }
.ep-body { display: flex; flex-direction: column; justify-content: center; }
.ep-today { font: 700 var(--fs-sm) var(--f-display); color: var(--brand-accent-2); margin-bottom: 6px; }
.ep-title { font-size: var(--fs-md); margin: 0 0 4px; }
.ep-lead .ep-title { font-size: var(--fs-2xl); }
.ep-date { margin: 0 0 12px; color: var(--muted); font-family: var(--f-display); font-size: var(--fs-sm); }
.ep-open {
  align-self: flex-start; font: 700 var(--fs-sm) var(--f-display); padding: 8px 16px; border-radius: var(--radius-s);
  background: var(--brand-ink); color: #fff; line-height: 1.2;
}
.ep-open:hover { background: var(--brand-red); color: #fff; }

/* ==========================================================================
   Article page
   ========================================================================== */
.preview-bar { background: var(--brand-red); color: #fff; text-align: center; padding: 10px 16px; font: 600 var(--fs-sm) var(--f-display); }
.preview-bar a { text-decoration: underline; margin-left: 8px; }
.art-wrap { padding-top: 20px; }
.art-grid { display: grid; grid-template-columns: 56px minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.share-rail { position: sticky; top: 72px; }
.art { padding: 28px 36px 32px; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 var(--fs-sm) var(--f-display); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--brand-teal); }
.art-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; font-stretch: 82%; line-height: 1.22; margin: 0 0 14px; }
.art-summary { font-size: 1.16rem; line-height: 1.8; color: var(--text); margin: 0 0 18px; padding-left: 16px; border-left: 4px solid var(--brand-accent); }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 var(--fs-sm) var(--f-display); color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-author { font-weight: 700; color: var(--brand-ink); }
.art-media { margin: 20px 0 24px; }
.art-media img { width: 100%; border-radius: var(--radius-m); }
.art-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: #000; }
.art-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.art-body { font-size: 1.16rem; line-height: 1.95; max-width: 70ch; }
.art-body > * { margin: 0 0 1.1em; }
.art-body h2 { font-size: var(--fs-xl); margin-top: 1.4em; }
.art-body h3 { font-size: var(--fs-lg); margin-top: 1.3em; }
.art-body a { color: var(--brand-teal); text-decoration: underline; text-underline-offset: 3px; }
.art-body img { border-radius: var(--radius-m); margin: 1.2em auto; }
.art-body blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--surface); border-left: 5px solid var(--brand-accent); font-size: 1.1rem; }
.art-body ul, .art-body ol { padding-left: 1.4em; }
.art-body li { margin-bottom: .4em; }
.art-body li[data-list="bullet"] { list-style-type: disc; }
.art-body .ql-ui { display: none; }
.art-body iframe, .art-body .ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-m); margin: 1.2em 0; }
.art-body .ql-align-center { text-align: center; }
.art-body .ql-align-right { text-align: right; }
.art-body .ql-align-justify { text-align: justify; }
.art-body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.art-body td, .art-body th { border: 1px solid var(--line); padding: 8px 10px; }
.art-mid-ad .ad-slot { margin: 1.5em auto; }

.share { display: flex; align-items: center; gap: 8px; }
.share-inline { flex-wrap: wrap; margin: 16px 0; }
.share-rail .share { flex-direction: column; }
.share-label { font: 700 var(--fs-sm) var(--f-display); color: var(--brand-ink); margin-right: 4px; }
.sh {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--brand-ink); cursor: pointer; padding: 0;
}
.sh svg { width: 18px; height: 18px; fill: currentColor; }
.sh-link svg { fill: none; }
.sh:hover { color: #fff; border-color: transparent; }
.sh-facebook:hover { background: #1877F2; }
.sh-whatsapp:hover { background: #25D366; }
.sh-twitter:hover { background: #000; }
.sh-telegram:hover { background: #229ED9; }
.sh-link:hover { background: var(--brand-ink); }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.art-tags a { font: 600 var(--fs-sm) var(--f-display); padding: 5px 12px; background: var(--surface); border-radius: 999px; color: var(--brand-ink); }
.art-tags a:hover { background: var(--brand-ink); color: #fff; }
.related { margin-top: 32px; padding-top: 24px; border-top: 3px solid var(--brand-ink); }
.related .card-lead .card-title { font-size: var(--fs-md); }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-latest .related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.more-read { margin-top: 36px; padding: 30px 0; background: var(--paper); border-top: 6px solid var(--brand-ink); }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.more-grid .card-small { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; align-items: center; }
.nf-code { font: 800 7rem/1 var(--f-display); font-stretch: 75%; color: var(--brand-accent); }
.nf-title { font-size: var(--fs-2xl); margin: 10px 0; }
.nf-text { max-width: 52ch; color: var(--muted); margin: 0 0 8px; }
.nf .big-search { width: 100%; }
.nf-home { margin-top: 18px; font: 700 1rem var(--f-display); color: var(--brand-teal); border-bottom: 2px solid currentColor; }
.nf-latest { margin-top: 30px; }

/* ---------- Responsive (content) ---------- */
@media (max-width: 1100px) {
  .art-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .share-rail { display: none; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .with-side, .hp-body, .art-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 9; }
  .tv-scroller { grid-auto-columns: minmax(230px, 42%); }
}
@media (max-width: 760px) {
  .latest-sec, .cat-sec { padding: 16px; }
  .latest-top, .cat-top { grid-template-columns: 1fr; gap: 16px; }
  .latest-strips { grid-template-columns: 1fr; }
  .latest-lead .card-title { font-size: var(--fs-xl); }
  .card-strip .card-media { width: 110px; }
  .card-strip .card-sum { display: none; }
  .card-list .card-media { width: 92px; }
  .card-list .card-title { font-size: var(--fs-md); }
  .card-list .card-sum { display: none; }
  .art { padding: 18px 16px 24px; }
  .art-body { font-size: 1.1rem; }
  .hero-body { padding: 22px 20px; }
  .hero-title { font-size: var(--fs-xl); }
  .tv-scroller { grid-auto-columns: 78%; }
  .ep-lead { flex-direction: column; }
  .ep-lead .ep-cover { width: 100%; max-width: 280px; }
  .more-grid { grid-template-columns: 1fr; }
  .page-title { font-size: var(--fs-2xl); }
  .bisesh-viewport { margin: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-media img, .bisesh-card > a { transition: none; }
  .card:hover .card-media img { transform: none; }
}


/* ---------- Logo ---------- */
.brand-logo { height: 80px; width: auto; max-height: none; }
.ft-logo {
  display: inline-block; background: #fff; border-radius: 10px; padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.ft-logo img { height: 64px; width: auto; }
.ft-logo:hover { background: var(--brand-peach-lt); }
.mainnav :focus-visible, .site-footer :focus-visible, .livebar :focus-visible, .tv-sec :focus-visible, .hero :focus-visible { outline-color: #fff; }
@media (max-width: 760px) { .brand-logo { height: 56px; } .ft-logo img { height: 54px; } }
