/* ফন্ট নিজের সাইট থেকে (OFL লাইসেন্স, fonts/README.txt দেখুন) — গুগলের সার্ভারে পাঠকের IP যায় না */
@font-face { font-family: 'Noto Serif Bengali'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/NotoSerifBengali-bengali.woff2) format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF9; }
@font-face { font-family: 'Noto Serif Bengali'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/NotoSerifBengali-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tiro Bangla'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/TiroBangla-bengali.woff2) format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF9; }
@font-face { font-family: 'Tiro Bangla'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/TiroBangla-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ খবরপাতা ============
   লেখা: Tiro Bangla (এতে বোল্ড নেই) · শিরোনাম ও বোল্ড: Noto Serif Bengali
   রঙ: সবুজ (আশা) + সূর্যরঙা হলুদ-কমলা; প্রতিটি বিভাগের নিজস্ব রঙ */
:root {
  --body: "Tiro Bangla", "Noto Serif Bengali", "Kohinoor Bangla", "Bangla Sangam MN", serif;
  --head: "Noto Serif Bengali", "Kohinoor Bangla", "Bangla Sangam MN", serif;

  --bg: #fbf8f1; --surface: #ffffff; --text: #1f1d18; --muted: #57524a; --faint: #706a60;
  --line: #ebe5d8; --img-bg: #efe9dc; --chip: #f3eee3;
  --brand: #0d7a5f; --brand-soft: #e3f3ec; --brand-ink: #0a5c48;
  --sun: #e8890c; --sun-soft: #fdf0dc;
  --good: #1f8a4c; --good-soft: #e5f4ea;

  --c-national: #0d7a5f; --c-intl: #2563a8; --c-sports: #b9540a; --c-business: #0c7380;
  --c-entertainment: #c23a78; --c-tech: #6d4bc4; --c-opinion: #8a5a2b; --c-literature: #9b3d8f;
  --c-video: #c8372d; --c-all: #1f1d18;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12130f; --surface: #1b1c18; --text: #eeebe3; --muted: #c1bbaf; --faint: #979186;
    --line: #2b2b25; --img-bg: #26261f; --chip: #24241e;
    --brand: #4cc79d; --brand-soft: #173329; --brand-ink: #7ddcb9;
    --sun: #f2a641; --sun-soft: #33281a; --good: #5ccf8a; --good-soft: #193022;
    --c-national: #4cc79d; --c-intl: #6ea8ec; --c-sports: #f2924a; --c-business: #4cc3cf;
    --c-entertainment: #ec7bb0; --c-tech: #a78bfa; --c-opinion: #d4a373; --c-literature: #d98bce;
    --c-video: #f0756b; --c-all: #eeebe3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12130f; --surface: #1b1c18; --text: #eeebe3; --muted: #c1bbaf; --faint: #979186;
  --line: #2b2b25; --img-bg: #26261f; --chip: #24241e;
  --brand: #4cc79d; --brand-soft: #173329; --brand-ink: #7ddcb9;
  --sun: #f2a641; --sun-soft: #33281a; --good: #5ccf8a; --good-soft: #193022;
  --c-national: #4cc79d; --c-intl: #6ea8ec; --c-sports: #f2924a; --c-business: #4cc3cf;
  --c-entertainment: #ec7bb0; --c-tech: #a78bfa; --c-opinion: #d4a373; --c-literature: #d98bce;
  --c-video: #f0756b; --c-all: #eeebe3;
  color-scheme: dark;
}

/* লেখা ২ পয়েন্ট বড়: মূল আকার ১৬px → প্রায় ১৮.৭px, তাই rem-এ মাপা সব লেখা একসাথে বড় হয় */
html { font-size: 116.7%; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-weight: 400; font-synthesis: none;
  font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; font-synthesis: none; }
button { cursor: pointer; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
svg { display: block; }

/* ============ উপরের অংশ ============ */
.head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); transition: transform .22s ease;
}
.hh .head { transform: translateY(-100%); }
.r1 { display: flex; align-items: center; gap: 4px; height: 54px; }
.brand { display: flex; align-items: center; gap: 7px; margin-right: auto; font-family: var(--head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; color: var(--brand); }
.brand svg { width: 26px; height: 26px; flex: none; }
.status { display: none; align-items: center; gap: 6px; font-size: .72rem; color: var(--faint); white-space: nowrap; margin-right: 6px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.fresh { border: 0; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 600; font-size: .7rem; padding: 3px 11px; border-radius: 99px; white-space: nowrap; }
.ib { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.ib:hover, .ib[aria-pressed="true"] { background: var(--chip); color: var(--text); }
.ib svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ib .n { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--bg); }
.searchrow { padding-bottom: 8px; }
.searchrow input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; font-size: 1rem; outline: none; }
.searchrow input:focus { border-color: var(--brand); }

/* বিভাগের ট্যাব — প্রতিটির নিজস্ব রঙ */
.tabs, .subs, .bar { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar, .subs::-webkit-scrollbar, .bar::-webkit-scrollbar, .goodrow::-webkit-scrollbar { display: none; }
.tabs { gap: 2px; }
.tab {
  --c: var(--c-all);
  flex: none; border: 0; background: none; padding: 6px 12px 9px; white-space: nowrap; position: relative;
  font-family: var(--body); font-size: .95rem; color: var(--muted);
}
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.tab[aria-selected="true"] { color: var(--c); font-family: var(--head); font-weight: 600; font-size: .9rem; }
.tab[aria-selected="true"]::after { background: var(--c); }
.subs { gap: 6px; padding: 4px 0 8px; }
.sub { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 1px 13px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.sub[aria-pressed="true"] { background: var(--c, var(--brand)); color: #fff; border-color: transparent; font-family: var(--head); font-weight: 500; font-size: .8rem; }

/* ছাঁকনির সারি */
.bar { gap: 6px; padding: 8px 0 10px; border-top: 1px solid var(--line); }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line);
  background: var(--surface); border-radius: 10px; padding: 2px 11px; font-size: .85rem; white-space: nowrap; color: var(--text);
}
.pill svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.pill[aria-expanded="true"] svg { transform: rotate(180deg); }
.pill.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.pill.mood { border-color: transparent; background: var(--good-soft); color: var(--good); }
.pill.mood.off { background: var(--chip); color: var(--muted); }
.pill .k { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
.pill.clear { border-style: dashed; color: var(--muted); background: none; }

/* খোলা ছাঁকনি (পাতার ভেতরেই খোলে, আলাদা pop-up নয়) */
.drawer { max-height: 52vh; overflow-y: auto; padding: 6px 16px 14px; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.grp { margin: 10px 0 4px; font-family: var(--head); font-weight: 600; font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.grp button { border: 0; background: none; color: var(--brand); font-size: .75rem; padding: 0; font-family: var(--body); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 0; background: var(--chip); border-radius: 99px; padding: 2px 12px; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.opt small { color: var(--faint); font-size: .68rem; }
.opt[aria-pressed="true"] { background: var(--brand); color: #fff; font-family: var(--head); font-weight: 500; font-size: .8rem; }
.opt[aria-pressed="true"] small { color: inherit; opacity: .75; }
.opt.hid[aria-pressed="true"] { background: var(--chip); color: var(--faint); text-decoration: line-through; font-family: var(--body); font-weight: 400; font-size: .85rem; }
.opt.hid[aria-pressed="false"] { background: var(--sun-soft); color: var(--text); }
.opt:disabled { opacity: .4; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); display: inline-block; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.switch:last-child { border-bottom: 0; }
.note { font-size: .8rem; color: var(--muted); margin: 6px 0 2px; line-height: 1.6; }

/* সুইচ বোতাম */
.tog { flex: none; width: 46px; height: 26px; border-radius: 99px; border: 0; background: var(--line); position: relative; transition: background .15s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.tog[aria-pressed="true"] { background: var(--good); }
.tog[aria-pressed="true"]::after { transform: translateX(20px); }

/* ============ মন ভালো মোডের বার্তা ============ */
.moodline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(100deg, var(--good-soft), var(--sun-soft));
  font-size: .82rem; color: var(--text);
}
.moodline .sun { width: 18px; height: 18px; flex: none; }
.moodline b { font-family: var(--head); font-weight: 600; color: var(--good); }
.moodline button { margin-left: auto; border: 0; background: var(--surface); color: var(--brand-ink); border-radius: 99px; padding: 1px 12px; font-size: .78rem; }

/* ============ মূল খবর ============ */
.hero { display: grid; padding-top: 12px; }
.lead { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--img-bg); aspect-ratio: 4 / 3; }
.lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead .shade { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.42) 50%, rgba(0,0,0,0) 80%); }
.lead h2 { margin: 6px 0 6px; font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.5; }
.lead p { margin: 0 0 8px; font-size: .92rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead .meta, .lead .meta .src { color: rgba(255,255,255,.88); }
.lead .badge { align-self: flex-start; }
.side { display: flex; flex-direction: column; }

/* ============ আজকের ভালো খবর ============ */
.good { margin-top: 18px; }
.good-h { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--good); margin: 0 0 10px; }
.good-h svg { width: 22px; height: 22px; }
.good-h small { font-family: var(--body); font-weight: 400; font-size: .75rem; color: var(--faint); }
.goodrow { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.gcard { --c: var(--c-national); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.gcard .gi { aspect-ratio: 16 / 9; background: var(--img-bg); overflow: hidden; }
.gcard .gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard .gb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gcard:hover h3 { color: var(--c); }
.gcard .meta { margin-top: auto; }

.count { font-size: .75rem; color: var(--faint); padding: 10px 0 0; }

/* ============ সময়ের ভাগ ============ */
.stream { display: grid; grid-template-columns: 1fr; column-gap: 30px; }
.bucket {
  grid-column: 1 / -1; position: sticky; top: var(--head-h, 130px); z-index: 2; background: var(--bg);
  display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 6px 0 4px;
  font-family: var(--head); font-weight: 600; font-size: .75rem; color: var(--muted); transition: top .22s ease;
}
.hh .bucket { top: 0; }
.bucket::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bucket b { color: var(--brand); font-weight: 600; }

/* ============ খবরের সারি ============ */
.row { --c: var(--c-national); display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.row-text { grid-column: 1; min-width: 0; }
.row h3 { margin: 0 0 3px; font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-text:hover h3 { color: var(--c); }
.row-text:focus-visible, .thumb:focus-visible, .gcard:focus-visible, .lead:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.row p { margin: 0 0 4px; color: var(--muted); font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .thumb { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
.row .thumb img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; background: var(--img-bg); display: block; }
.row.read h3 { color: var(--faint); font-weight: 500; }
.compact .row { padding: 9px 0 7px; }

.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .72rem; color: var(--faint); line-height: 1.5; }
.row .meta { grid-column: 1; }
.meta .src { font-family: var(--head); font-weight: 600; font-size: .68rem; color: var(--muted); }
.sec { font-family: var(--head); font-weight: 600; font-size: .66rem; color: var(--c); }
.badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 99px; padding: 0 8px; font-family: var(--head); font-weight: 600; font-size: .64rem; line-height: 1.7; background: var(--good-soft); color: var(--good); }
.lead .badge { background: rgba(255,255,255,.92); color: #13693a; }
.tag { border-radius: 4px; padding: 0 6px; font-size: .66rem; line-height: 1.6; background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 70%, var(--text)); }
.save { margin-left: auto; border: 0; background: none; padding: 0 2px; width: 28px; height: 24px; color: var(--faint); display: grid; place-items: center; }
.save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.save[aria-pressed="true"] { color: var(--sun); }
.save[aria-pressed="true"] svg { fill: currentColor; }

/* ============ ভিডিও ============ */
.vgrid { display: grid; grid-template-columns: 1fr; gap: 20px 16px; padding-top: 14px; }
.vcard .vbox { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--img-bg); }
.vbox img, .vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vplay { position: absolute; inset: 0; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.vplay span { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.vplay svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.vcard h3 { margin: 8px 0 2px; font-family: var(--head); font-weight: 600; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.more { height: 1px; }
.empty { color: var(--muted); padding: 44px 8px; text-align: center; }
.foot { color: var(--faint); font-size: .72rem; padding-top: 28px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); text-align: center; line-height: 1.7; }

/* ============ বড় ফোন / ট্যাবলেট ============ */
@media (min-width: 600px) {
  .status { display: flex; }
  .lead { aspect-ratio: 16 / 8; }
  .lead h2 { font-size: 1.5rem; }
  .lead .shade { padding: 24px; }
  .stream { grid-template-columns: 1fr 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .goodrow { grid-auto-columns: calc((100% - 24px) / 3); }
  .vgrid { grid-template-columns: 1fr 1fr; }
}

/* ============ কম্পিউটার ============ */
@media (min-width: 960px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .drawer { padding-left: 28px; padding-right: 28px; }
  .r1 { height: 60px; }
  .brand { font-size: 1.45rem; }
  .brand svg { width: 30px; height: 30px; }
  .tab { padding: 7px 15px 10px; }
  .tab::after { left: 15px; right: 15px; }
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; padding-top: 18px; }
  .lead { aspect-ratio: auto; min-height: 440px; }
  .lead h2 { font-size: 1.7rem; }
  .lead p { font-size: 1rem; }
  .side { display: flex; }
  .side .row:last-child { border-bottom: 0; }
  .side .row:first-child { padding-top: 0; }
  .goodrow { grid-auto-columns: calc((100% - 48px) / 5); }
  .stream { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row .thumb img { width: 108px; height: 84px; }
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .drawer { max-height: 44vh; }
}


/* ============ বিন্যাস: কম্পিউটারে বামে ছাঁকনি, ডানে খবর ============ */
.layout { display: block; }
.side-col { display: none; }
.main-col { min-width: 0; }
.drawer .wrap { padding-top: 0; padding-bottom: 0; }

/* ============ ভালো খবরের শিরোনাম ============ */
.good-h { margin: 16px 0 0; }

/* ============ স্লাইডার (বড় ছবির জায়গায় অনেক খবর) ============ */
.slider { position: relative; border-radius: 16px; overflow: hidden; background: var(--img-bg); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slides .lead { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #1f1d18; display: none; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.sl-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sl-prev { left: 12px; } .sl-next { right: 12px; }
.slider:hover .sl-nav { display: grid; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots button { pointer-events: auto; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 22px; background: #fff; }
.slider .lead .shade { padding-bottom: 30px; }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

/* ============ বাম কলামের ছাঁকনি ============ */
.sb { position: sticky; top: calc(var(--head-h, 110px) + 12px); max-height: calc(100vh - var(--head-h, 110px) - 24px); overflow-y: auto; scrollbar-width: thin; padding: 4px 4px 16px 0; transition: top .22s ease; }
.hh .sb { top: 12px; max-height: calc(100vh - 24px); }
.sb-mood { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, var(--good-soft), var(--sun-soft)); margin-bottom: 10px; }
.sb-mood.off { background: var(--chip); }
.sb-mood svg { width: 22px; height: 22px; flex: none; }
.sb-mood .t { flex: 1; font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--good); line-height: 1.4; }
.sb-mood.off .t { color: var(--muted); }
.sb-mood .t small { display: block; font-family: var(--body); font-weight: 400; font-size: .7rem; color: var(--muted); }
.sb-sec { border-bottom: 1px solid var(--line); }
.sb-head { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 4px; text-align: left; }
.sb-head .l { flex: 1; min-width: 0; }
.sb-head .n { display: block; font-family: var(--head); font-weight: 600; font-size: .8rem; color: var(--text); }
.sb-head .s { display: block; font-size: .74rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-head .s.on { color: var(--brand-ink); }
.sb-head svg { width: 12px; height: 12px; fill: none; stroke: var(--faint); stroke-width: 2; transition: transform .15s; flex: none; }
.sb-head[aria-expanded="true"] svg { transform: rotate(180deg); }
.sb-body { padding: 0 2px 12px; }
.sb-body .opts { gap: 5px; }
.sb-body .opt { font-size: .78rem; padding: 1px 10px; }
.sb-body .opt[aria-pressed="true"] { font-size: .74rem; }
.sb-body .opt.hid[aria-pressed="true"] { font-size: .78rem; }
.sb-body .grp { margin-top: 8px; }
.sb-body .switch { font-size: .82rem; }
.sb-clear { margin-top: 12px; width: 100%; border: 1.5px dashed var(--line); background: none; border-radius: 10px; padding: 6px; font-size: .8rem; color: var(--muted); }

@media (min-width: 1100px) {
  .bar, .drawer { display: none !important; }
  .layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding-left: 28px; padding-right: 28px; }
  .side-col { display: block; }
  .good-h { margin-top: 20px; }
}


/* ================= v5: স্লাইডার ঠিক করা, স্মার্ট রঙ, নতুন অংশ ================= */
/* বক্স আর ছবির সামঞ্জস্য: বক্সের মাপ ঠিক করে দিই, ছবি পুরোটা ভরে */
.slider { position: relative; border-radius: 16px; overflow: hidden; background: var(--img-bg); aspect-ratio: 4 / 3; min-height: 0; }
.slides { height: 100%; }
.slides .lead { height: 100%; aspect-ratio: auto; min-height: 0; border-radius: 0; }
.slides .lead img { object-position: center 30%; }
.slider .lead .shade { padding: 18px 18px 46px; }
@media (min-width: 600px) { .slider { aspect-ratio: 16 / 8; } }
@media (min-width: 960px) { .slider { aspect-ratio: auto; min-height: 460px; height: 100%; } }
/* তীর লেখার উপর নয়, নিচের ডানদিকে */
.sl-nav { top: auto; bottom: 12px; transform: none; width: 34px; height: 34px; display: none; background: rgba(255,255,255,.9); }
.sl-prev { left: auto; right: 54px; } .sl-next { right: 12px; }
@media (min-width: 600px) { .sl-nav { display: grid; } }
.dots { left: 18px; right: auto; bottom: 20px; justify-content: flex-start; }
.chiprow { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.sec-chip { display: inline-flex; border-radius: 99px; padding: 0 9px; font-family: var(--head); font-weight: 600; font-size: .64rem; line-height: 1.7; background: color-mix(in srgb, var(--c) 82%, #000); color: #fff; }

/* শিরোনামের স্মার্ট রঙ: বিভাগের রঙকে লেখার রঙের সাথে মিশিয়ে গাঢ় করা — পড়তে আরামদায়ক, তবু রঙিন */
.row h3 { color: color-mix(in srgb, var(--c) 58%, var(--text)); }
.row-text:hover h3 { color: var(--c); }
.row.read h3 { color: var(--faint); }
.gcard h3, .vcard h3 { color: color-mix(in srgb, var(--c, var(--brand)) 58%, var(--text)); }
.row p { color: var(--muted); }
.side .row { border-left: 3px solid color-mix(in srgb, var(--c) 55%, transparent); padding-left: 12px; margin-left: -2px; }

/* শুভেচ্ছা */
.greet { margin: 14px 0 0; font-size: .8rem; color: var(--faint); letter-spacing: .01em; }
.greet + .good-h { margin-top: 2px; }
.good-h { font-size: 1.15rem; }

/* বাছাই করা ছাঁকনির চিহ্ন */
.active { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.achip { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 1px 6px 1px 12px; font-size: .8rem; background: var(--brand-soft); color: var(--brand-ink); }
.achip span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; background: color-mix(in srgb, var(--brand) 18%, transparent); }
.achip:hover span { background: var(--brand); color: #fff; }
.achip.clr { background: none; color: var(--muted); padding-right: 10px; text-decoration: underline; }

/* সাজানো */
.sortrow { display: flex; align-items: center; gap: 6px; padding: 12px 0 0; font-size: .75rem; color: var(--faint); }
.sortrow button { border: 0; background: none; padding: 1px 10px; border-radius: 99px; font-size: .78rem; color: var(--muted); }
.sortrow button[aria-pressed="true"] { background: var(--chip); color: var(--text); font-family: var(--head); font-weight: 600; font-size: .74rem; }

/* ফিল্টারের ভেতরের খোঁজার ঘর */
.fsearch { width: 100%; height: 36px; margin: 6px 0 4px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 12px; font-size: .9rem; outline: none; }
.fsearch:focus { border-color: var(--brand); }
.opt[hidden] { display: none; }
.pill.good { border-color: transparent; background: var(--sun-soft); color: var(--text); }
.pill.good.on { background: var(--good); color: #fff; }
.sb-only { padding: 8px 4px; border: 0; margin-bottom: 4px; font-size: .82rem; }

/* অপেক্ষার কঙ্কাল */
.skel { background: linear-gradient(100deg, var(--chip) 30%, var(--img-bg) 50%, var(--chip) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 14px; }
.skel.big { aspect-ratio: 4 / 3; margin-top: 12px; }
.skel-list { padding-top: 14px; display: grid; gap: 12px; }
.skel.line { height: 64px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .skel.big { aspect-ratio: auto; min-height: 460px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ধীরে ফুটে ওঠা */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slider, .side .row { animation: rise .4s ease both; }
@media (prefers-reduced-motion: reduce) { .slider, .side .row { animation: none; } }

/* উপরে ফেরার বোতাম */
.totop { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 15; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }


/* ================= v7: tourfo-র ধারণা থেকে — ফিল্টার-কার্ড, টুলবার, কার্ড-দেখা ================= */
.head .r1 .status { margin-left: auto; }

/* ---- টুলবার ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; }
.tsearch { flex: 1 1 240px; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.tsearch:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.tsearch svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; }
.tsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; }
.tsel { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .78rem; color: var(--faint); }
.tsel select { border: 0; background: none; font: inherit; font-size: .88rem; color: var(--text); height: 100%; padding-right: 4px; outline: none; cursor: pointer; }
.vtog { display: flex; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.vtog button { width: 46px; height: 43px; border: 0; background: none; color: var(--faint); display: grid; place-items: center; }
.vtog button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vtog button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); }

/* ---- বাম ফিল্টার-কার্ড ---- */
.sb { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px -12px rgba(0,0,0,.08); }
.sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sb-t { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }
.sb-top button { border: 0; background: none; padding: 0; font-size: .78rem; color: var(--brand); text-decoration: underline; }
.sb-sec { padding: 12px 0 8px; border-top: 1px solid var(--line); }
.sb-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--text); }
.sb-h .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sb-body.long { max-height: 250px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.sb .fsearch { margin: 0 0 6px; height: 38px; }
.sb .opts { flex-direction: column; gap: 0; }
.sb .grp { margin: 8px 0 2px; font-size: .68rem; }
.sb-sec .note { font-size: .74rem; }
.sb-mood { margin-bottom: 4px; }
.sb-only { padding: 8px 2px; border-bottom: 0; }

/* টিক-বক্স */
.sb .opt { display: flex; width: 100%; align-items: center; gap: 10px; border-radius: 9px; background: none; padding: 6px 6px; font-size: .88rem; text-align: left; font-family: var(--body); font-weight: 400; }
.sb .opt:hover { background: var(--chip); }
.sb .opt::before { content: ""; order: -1; flex: none; width: 18px; height: 18px; border: 1.6px solid var(--faint); border-radius: 5px; background: var(--surface) center / 12px no-repeat; transition: background-color .12s, border-color .12s; }
.sb .opt.rad::before { border-radius: 50%; }
.sb .opt[aria-pressed="true"] { background: var(--brand-soft); color: var(--text); font-family: var(--body); font-weight: 400; font-size: .88rem; }
.sb .opt[aria-pressed="true"]::before { border-color: var(--brand); background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.4 2.4 4.6-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sb .opt.rad[aria-pressed="true"]::before { background-image: none; box-shadow: inset 0 0 0 3.5px var(--surface); }
.sb .opt.hid[aria-pressed="true"] { text-decoration: none; background: var(--sun-soft); color: var(--text); font-family: var(--body); }
.sb .opt.hid[aria-pressed="true"]::before { background-color: var(--sun); border-color: var(--sun); }
.sb .opt.hid[aria-pressed="false"] { background: none; }
.sb .opt .dot { order: 0; }

@media (min-width: 1100px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr); }
  .sb { top: calc(var(--head-h, 110px) + 12px); }
}

/* ---- কার্ড-দেখা ---- */
.stream.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { box-shadow: 0 14px 28px -14px rgba(0,0,0,.22); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.cmedia { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--img-bg); overflow: hidden; }
.cmedia img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .cmedia img { transform: scale(1.04); }
.cmedia.ph { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 24%, var(--surface)), var(--sun-soft)); display: grid; place-items: center; }
.ph-sun svg { width: 54px; height: 54px; opacity: .55; }
.c-badge { position: absolute; left: 10px; top: 10px; border-radius: 7px; padding: 0 9px; font-family: var(--head); font-weight: 600; font-size: .68rem; line-height: 1.8; color: #fff; background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.c-good { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.c-good svg { width: 20px; height: 20px; }
.cbody { padding: 12px 14px 12px; display: flex; flex-direction: column; flex: 1; }
.ctext { display: block; }
.card h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.55; color: color-mix(in srgb, var(--c) 58%, var(--text)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .ctext:hover h3 { color: var(--c); }
.card p { margin: 0 0 6px; font-size: .88rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.card.read h3 { color: var(--faint); font-weight: 500; }
.stream.cards .bucket { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .card, .cmedia img { transition: none; } .card:hover { transform: none; } }

@media (max-width: 599px) {
  .toolbar { gap: 8px; }
  .tsearch { flex-basis: 100%; }
  .tsel { flex: 1; }
  .tsel span { display: none; }
}

/* ================= v8: ট্যাগলাইন, আমার জেলা, গুচ্ছ ================= */
/* ট্যাগলাইন: লোগোর নিচে ছোট করে */
.brand { align-items: center; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.15; }
.brand .bnm { font-family: var(--head); font-weight: 700; }
.brand .tagl { font-family: var(--body); font-weight: 400; font-size: .6rem; letter-spacing: .01em; color: var(--faint); margin-top: 1px; white-space: nowrap; }
@media (min-width: 960px) { .brand .tagl { font-size: .68rem; } }
.foot-tag { font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--brand); }

/* আমার জেলা */
.mygrp { display: flex; gap: 6px; align-items: center; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .9rem; white-space: nowrap; color: var(--text); }
.tbtn .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tbtn[aria-pressed="true"] .ic svg { stroke: #fff; }
.tbtn.mini { padding: 0 10px; font-size: .74rem; color: var(--muted); }
.mybox { margin-top: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, var(--brand-soft), var(--surface)); }
.mb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.mb-row label { font-family: var(--head); font-weight: 600; font-size: .82rem; }
.mb-row select { height: 40px; min-width: 180px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; font-size: .95rem; }
.mb-btn { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: .9rem; }
.mb-btn.ghost { background: var(--surface); color: var(--brand-ink); border: 1.5px solid var(--brand); }
.mb-link { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: .85rem; }
.mb-note { margin: 0; font-size: .76rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 599px) { .mygrp { flex: 0 0 auto; } .tbtn { padding: 0 11px; } }

/* একই ঘটনার গুচ্ছ: "৭টি সূত্রে এই খবর" */
.cl-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 99px; padding: 0 9px; font-family: var(--head); font-weight: 600; font-size: .64rem; line-height: 1.8; background: var(--sun-soft); color: color-mix(in srgb, var(--sun) 65%, var(--text)); cursor: pointer; }
.cl-btn svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.cl-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cl-btn:hover { background: color-mix(in srgb, var(--sun) 24%, var(--sun-soft)); }
.cl-chip { border-radius: 99px; padding: 0 9px; font-family: var(--head); font-weight: 600; font-size: .64rem; line-height: 1.8; background: rgba(255,255,255,.92); color: #7a4a00; }
.cl-panel { grid-column: 1 / -1; margin: 8px 0 4px; padding: 8px 10px 6px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); animation: rise .25s ease both; }
.card .cl-panel { margin: 0; border-radius: 0; border-width: 1px 0 0; }
.cl-why { font-size: .72rem; color: var(--muted); margin-bottom: 4px; line-height: 1.55; }
.cl-item { display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 6px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: .8rem; }
.cl-item:first-of-type { border-top: 0; }
.cl-item .cl-src { font-family: var(--head); font-weight: 600; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.cl-item .cl-t { color: var(--text); min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.cl-item time { font-size: .66rem; color: var(--faint); white-space: nowrap; }
.cl-item:hover .cl-t { color: var(--brand); }

/* আজকের ভালো খবরের সারি (প্রধান খবরের নিচে) */
.good { margin-top: 22px; }
.good-h.sub { font-size: 1.02rem; margin: 0 0 10px; }
.goodrow { grid-auto-columns: 78%; }
.goodrow .card { scroll-snap-align: start; }
@media (min-width: 600px) { .goodrow { grid-auto-columns: calc((100% - 24px) / 3); } }
@media (min-width: 960px) { .goodrow { grid-auto-columns: calc((100% - 36px) / 4); } }
.goodrow .card h3 { font-size: .92rem; }
.goodrow .card p { display: none; }

/* ================= v10: লোগো (অ্যাপ-আইকনের মতো টাইল + দুই-রঙা নাম + ট্যাগলাইন) ================= */
.brand { gap: 10px; }
.brand svg { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 3px 8px -2px rgba(13,122,95,.45); flex: none; }
.brand .rays { transform-origin: 16px 16px; transition: transform .9s cubic-bezier(.3,.7,.2,1); }
.brand:hover .rays { transform: rotate(45deg); }
.brand .bnm { font-size: 1.32rem; letter-spacing: -.015em; line-height: 1.05; }
.brand .k1 { color: var(--text); }
.brand .k2 { color: var(--brand); margin-left: 0; }
.brand .tagl { margin-top: 3px; font-size: .62rem; letter-spacing: .02em; color: var(--muted); }
.brand .tagl em { font-style: normal; font-family: var(--head); font-weight: 600; font-size: .62rem; color: color-mix(in srgb, var(--sun) 78%, var(--text)); }
@media (min-width: 960px) {
  .brand svg { width: 40px; height: 40px; border-radius: 11px; }
  .brand .bnm { font-size: 1.5rem; }
  .brand .tagl, .brand .tagl em { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .brand .rays { transition: none; } }

/* v11: নাম আর ট্যাগলাইন একই চওড়া — JS মাপ ঠিক করে */
.brand .bt { display: flex; flex-direction: column; align-items: flex-start; }
.brand .bnm { display: block; width: max-content; white-space: nowrap; }
.brand .tagl { display: block; width: max-content; white-space: nowrap; }

/* v14: হেডারের মাঝে শুভেচ্ছা */
.r1 { position: relative; }
.hgreet { display: none; }
@media (min-width: 760px) {
  .hgreet { display: flex; flex-direction: column; align-items: center; gap: 1px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap; }
  .hg1 { font-family: var(--head); font-weight: 700; font-size: .95rem; line-height: 1.15; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--sun) 85%, var(--brand))); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hg2 { font-size: .68rem; color: var(--muted); letter-spacing: .01em; line-height: 1.2; }
}
@media (max-width: 1100px) and (min-width: 760px) { .hg2 { display: none; } }
.brand svg { border-radius: 0 !important; box-shadow: none !important; }

/* v19: আজ এক নজরে, শুধু নতুন, সারাংশ পাতা */
.glance { margin: 4px 0 16px; padding: 14px 16px 10px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--bg, #fbf8f1)), color-mix(in srgb, var(--sun) 12%, var(--bg, #fbf8f1))); border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.gl-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.gl-h b { font-family: var(--head); font-size: 1.05rem; color: var(--brand); }
.gl-h span { font-size: .75rem; color: var(--muted); }
.gl-more { margin-left: auto; font-size: .75rem; color: var(--brand); text-decoration: none; font-weight: 600; }
.glance ol { list-style: none; margin: 0; padding: 0; counter-reset: gl; }
.glance li { counter-increment: gl; border-top: 1px solid color-mix(in srgb, var(--brand) 12%, transparent); }
.glance li:first-child { border-top: 0; }
.gl-a { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; text-decoration: none; color: inherit; flex-wrap: wrap; }
.gl-a::before { content: counter(gl, bengali); font-family: var(--head); font-weight: 700; color: var(--sun); min-width: 1.1em; }
.gl-t { flex: 1 1 60%; font-family: var(--head); font-weight: 600; font-size: .96rem; line-height: 1.4; }
.gl-a:hover .gl-t { color: var(--brand); }
.gl-n { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.tbtn.on, .tbtn[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); border-color: var(--brand); }
.aj-head { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 4px; font-size: .85rem; }
.aj-back { color: var(--brand); text-decoration: none; font-family: var(--head); font-weight: 700; }
.aj-date { color: var(--muted); }
.aj { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.aj h1 { font-family: var(--head); font-size: 1.7rem; margin: 10px 0 2px; }
.aj-sub { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.aj-list { list-style: none; margin: 0; padding: 0; }
.aj-i { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line, #e6e0d2); }
.aj-no { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--sun); min-width: 1.4em; line-height: 1.2; }
.aj-t { font-family: var(--head); font-weight: 600; font-size: 1.1rem; line-height: 1.4; color: var(--text); text-decoration: none; }
.aj-t:hover { color: var(--brand); }
.aj-p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.aj-m { margin-top: 5px; font-size: .74rem; color: var(--faint); }
.aj-foot, .aj-load { color: var(--faint); font-size: .78rem; margin-top: 16px; list-style: none; }

/* v20: শেয়ার বোতাম, দিনের রঙ */
.shr { margin-left: auto; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .72rem; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.shr:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
:root:not([data-theme="dark"]) body { background-image: linear-gradient(180deg, var(--day, transparent), transparent 380px); background-repeat: no-repeat; }
:root[data-day="morning"] { --day: color-mix(in srgb, #f6c453 14%, transparent); }
:root[data-day="noon"] { --day: color-mix(in srgb, #7fd0b4 10%, transparent); }
:root[data-day="evening"] { --day: color-mix(in srgb, #f08a4b 13%, transparent); }
:root[data-day="night"] { --day: color-mix(in srgb, #6d7bd6 9%, transparent); }

/* v21: স্ক্রল করা যায় — তার ইঙ্গিত */
.hs.can-r:not(.can-l) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.hs.can-l:not(.can-r) { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); }
.hs.can-l.can-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 44px), transparent); }
.hrow { position: relative; }
.hr-btn { position: absolute; top: 38%; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line, #ddd); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px -3px rgba(0,0,0,.25); display: none; align-items: center; justify-content: center; padding: 0 0 3px; z-index: 3; transition: transform .15s, opacity .2s; }
.hr-btn:hover { transform: scale(1.08); color: var(--brand); }
.hr-l { left: -10px; } .hr-r { right: -10px; }
.hrow.has-l .hr-l, .hrow.has-r .hr-r { display: flex; }
@media (hover: none) { .hr-btn { width: 32px; height: 32px; opacity: .92; } .hr-l { left: -6px; } .hr-r { right: -6px; } }
.goodrow.can-r:not(.can-l)::after { content: none; }

/* v22: আজ এক নজরে — নতুন নকশা */
.glance { position: relative; margin: 6px 0 18px; padding: 16px 18px 8px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--sun) 16%, var(--surface)), var(--surface) 55%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--sun) 22%, var(--line, #e6e0d2)); box-shadow: 0 10px 28px -16px rgba(60, 50, 20, .35); }
.glance::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--sun), var(--brand)); }
.gl-h { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.gl-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--sun) 18%, transparent); }
.gl-ic svg { width: 26px; height: 26px; }
.gl-ht { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gl-ht b { font-family: var(--head); font-size: 1.2rem; line-height: 1.2; color: var(--text); }
.gl-ht span { font-size: .74rem; color: var(--muted); }
.gl-more { margin-left: auto; flex: none; font-size: .76rem; font-weight: 600; color: var(--brand); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); transition: background .2s; }
.gl-more:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.glance li { border-top: 1px dashed color-mix(in srgb, var(--text) 14%, transparent); }
.glance li:first-child { border-top: 0; }
.gl-a { display: flex; align-items: center; gap: 14px; padding: 12px 6px; margin: 0 -6px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .2s, transform .2s; }
.gl-a::before { content: none; }
.gl-a:hover { background: color-mix(in srgb, var(--c) 7%, transparent); }
.gl-no { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: .95rem; color: #fff; background: var(--c); box-shadow: 0 3px 8px -3px var(--c); }
.gl-top .gl-no { width: 40px; height: 40px; font-size: 1.15rem; background: linear-gradient(135deg, var(--sun), color-mix(in srgb, var(--sun) 60%, #c4571f)); box-shadow: 0 4px 10px -3px var(--sun); }
.gl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gl-t { font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.4; color: color-mix(in srgb, var(--c) 40%, var(--text)); }
.gl-top .gl-t { font-size: 1.22rem; line-height: 1.35; }
.gl-a:hover .gl-t { color: var(--c); }
.gl-p { font-size: .85rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-m { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: .72rem; color: var(--muted); }
.gl-sec { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 75%, var(--text)); font-weight: 600; }
.gl-meter { width: 64px; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; flex: none; }
.gl-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--sun)); }
.gl-n b { color: var(--text); font-size: .8rem; }
.gl-time::before { content: "·"; margin-right: 8px; }
.gl-img { flex: none; width: 78px; height: 58px; object-fit: cover; border-radius: 12px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.gl-top .gl-img { width: 132px; height: 88px; }
@media (max-width: 600px) { .glance { padding: 14px 12px 6px 16px; } .gl-img { width: 60px; height: 48px; } .gl-top .gl-img { width: 84px; height: 64px; } .gl-no { width: 28px; height: 28px; } .gl-top .gl-no { width: 34px; height: 34px; } .gl-top .gl-t { font-size: 1.08rem; } .gl-more { display: none; } .gl-a { gap: 10px; } }

/* v23: যাচাই-চিহ্ন */
.one-src { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(255, 244, 214, .92); color: #7a5200; border: 1px solid rgba(224, 144, 42, .55); }
.one-src::before { content: "!"; display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: #e0902a; color: #fff; font-size: .62rem; line-height: 1; }

/* v24: আজ এক নজরে — কম জায়গা */
.glance { margin: 2px 0 12px; padding: 8px 14px 4px 16px; border-radius: 14px; }
.gl-h { margin: 0 0 2px; gap: 8px; }
.gl-ic { width: 26px; height: 26px; border-radius: 8px; } .gl-ic svg { width: 18px; height: 18px; }
.gl-ht { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gl-ht b { font-size: 1rem; } .gl-ht span { font-size: .7rem; }
.gl-more { padding: 3px 10px; font-size: .72rem; }
.gl-a { padding: 6px 4px; gap: 10px; align-items: baseline; }
.gl-img, .gl-p { display: none !important; }
.gl-no, .gl-top .gl-no { width: 22px; height: 22px; font-size: .8rem; box-shadow: none; align-self: flex-start; margin-top: 1px; }
.gl-top .gl-t { font-size: 1.02rem; } .gl-t { font-size: .94rem; line-height: 1.35; }
.gl-body { gap: 2px; }
.gl-m { gap: 4px 8px; font-size: .68rem; } .gl-meter { width: 44px; height: 5px; }
@media (max-width: 600px) { .glance { padding: 8px 10px 2px 14px; } .gl-ht span { display: none; } .gl-sec { display: none; } }
.aj-head { padding-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line, #e6e0d2); margin-bottom: 6px; } .aj-head .brand { display: inline-flex; align-items: center; text-decoration: none; }

/* v29: হেডারের তারিখ-পট্টি */
.hg1 { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.hg-time { font-style: normal; font-family: var(--head); font-weight: 600; font-size: .78rem; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.hg2 { display: flex; align-items: center; gap: 7px; font-size: .7rem; color: var(--muted); }
.hg2 b { font-weight: 500; color: var(--text); }
.hg2 i { font-style: normal; color: var(--sun); font-size: .55rem; }
.hg-bn { color: color-mix(in srgb, var(--brand) 80%, var(--text)); font-weight: 600; }
.hg-hj { color: color-mix(in srgb, var(--sun) 55%, var(--text)); font-weight: 600; }

/* v30: লোগো উপরে লেগে যাওয়া ঠিক — হেডার লোগোর মাপে বাড়ে */
.r1 { height: auto !important; min-height: 60px; padding-top: 10px; padding-bottom: 8px; }
@media (max-width: 600px) { .r1 { padding-top: 8px; padding-bottom: 6px; } }

/* v31: মোবাইলে তারিখ-পট্টি */
.mgreet { display: none; }
@media (max-width: 759px) {
  .mgreet { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 0; padding-bottom: 6px; font-size: .72rem; color: var(--muted); }
  .mgreet b { font-family: var(--head); font-size: .8rem; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--sun) 85%, var(--brand))); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mgreet i { font-style: normal; color: var(--sun); font-size: .5rem; }
  .mg-bn { color: color-mix(in srgb, var(--brand) 80%, var(--text)); font-weight: 600; }
  .mg-hj { color: color-mix(in srgb, var(--sun) 55%, var(--text)); font-weight: 600; }
  .mg-t { color: var(--muted); }
}

/* v33: মোবাইল — থ্রি-লাইন মেনু বামে, লোগো মাঝে */
.menu-btn { display: none; position: relative; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mb-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); border: 2px solid var(--bg, #fbf8f1); }
.menu-ov { position: fixed; inset: 0; z-index: 90; background: rgba(15, 22, 18, .45); backdrop-filter: blur(2px); animation: mnfade .2s; }
.menu-pn { position: fixed; z-index: 91; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); display: flex; flex-direction: column; background: var(--bg, #fbf8f1); box-shadow: 8px 0 30px -8px rgba(0,0,0,.35); animation: mnin .25s cubic-bezier(.3,.7,.2,1); }
.menu-pn[hidden], .menu-ov[hidden] { display: none; }
.mn-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line, #e6e0d2); }
.mn-h b { font-family: var(--head); font-size: 1.1rem; color: var(--brand); }
.mn-h button { border: 0; background: transparent; font-size: 1.2rem; width: 36px; height: 36px; border-radius: 50%; color: var(--text); cursor: pointer; }
.mn-body { flex: 1; overflow-y: auto; padding: 10px 12px 16px; -webkit-overflow-scrolling: touch; }
.mn-body .sb { position: static !important; max-height: none !important; overflow: visible !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.mn-f { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, #e6e0d2); }
.mn-f button { width: 100%; padding: 12px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-family: var(--head); font-weight: 700; font-size: 1rem; cursor: pointer; }
.menu-lock { overflow: hidden; }
@keyframes mnin { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes mnfade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 759px) {
  .menu-btn { display: inline-flex; }
  .r1 { gap: 0; }
  .brand { margin: 0 auto !important; }
  #theme { margin-left: 0; }
  #bar { display: none; }      /* ছাঁকনির বোতামের সারি এখন মেনুর ভেতরে */
}

/* v34: মোবাইলে স্লাইড — ছবি ওপরে, লেখা নিচে আলাদা পরিষ্কার জায়গায় (মিলমিশ নেই) */
@media (max-width: 599px) {
  .slider { aspect-ratio: auto; height: auto; min-height: 0; background: var(--surface); border: 1px solid var(--line, #e6e0d2); box-shadow: 0 10px 24px -16px rgba(40, 35, 15, .4); }
  .slides { height: auto; align-items: stretch; }
  .slides .lead { height: auto; display: flex; flex-direction: column; background: var(--surface); aspect-ratio: auto; }
  .slides .lead img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; flex: none; object-position: center 25%; }
  .slider .lead .shade { position: relative; inset: auto; flex: 1; justify-content: flex-start; padding: 12px 14px 30px; color: var(--text); background: transparent; }
  .slider .lead h2 { font-size: 1.12rem; line-height: 1.45; margin: 8px 0 4px; color: var(--text); text-shadow: none; }
  .slider .lead p { color: var(--muted); opacity: 1; font-size: .86rem; -webkit-line-clamp: 2; margin: 0 0 6px; }
  .slider .lead .meta { color: var(--muted); text-shadow: none; }
  .slider .lead .meta .src { color: var(--c, var(--muted)); text-shadow: none; }
  .slider .lead .badge { background: color-mix(in srgb, var(--good, #1b8a4a) 14%, transparent); color: var(--good, #13693a); }
  .slider .lead .sec-chip { color: #fff; }
  .dots { left: 14px; bottom: 12px; }
  .dots button { background: color-mix(in srgb, var(--text) 25%, transparent); }
  .dots button[aria-current="true"] { background: var(--brand); }
}

/* ===== v36: ভাসমান থিম — ছায়া, গ্রেডিয়েন্ট, হালকা/বর্ডারহীন ===== */
:root {
  --line: #f2ede2;
  --sh1: 0 1px 2px rgba(60, 45, 15, .05), 0 6px 18px -8px rgba(60, 45, 15, .16);
  --sh2: 0 2px 4px rgba(60, 45, 15, .06), 0 20px 38px -16px rgba(60, 45, 15, .30);
  --grad-brand: linear-gradient(135deg, #12906f, #0b6a53);
  --grad-sun: linear-gradient(135deg, #f6b042, #e8830e);
}
:root[data-theme="dark"] { --line: #25251f; --sh1: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -10px rgba(0,0,0,.6); --sh2: 0 2px 4px rgba(0,0,0,.5), 0 22px 40px -16px rgba(0,0,0,.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --line: #25251f; --sh1: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -10px rgba(0,0,0,.6); --sh2: 0 2px 4px rgba(0,0,0,.5), 0 22px 40px -16px rgba(0,0,0,.75); } }

/* পাতার পটভূমি: কোণায় হালকা রঙের আভা */
:root:not([data-theme="dark"]) body {
  background-image:
    radial-gradient(900px 440px at 6% -6%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
    radial-gradient(820px 420px at 100% 0%, color-mix(in srgb, var(--sun) 11%, transparent), transparent 70%),
    linear-gradient(180deg, var(--day, transparent), transparent 380px);
  background-repeat: no-repeat; background-attachment: fixed, fixed, scroll;
}

/* হেডার: দাগ নেই, নিচে নরম ছায়া */
.head { border-bottom: 0 !important; box-shadow: 0 8px 22px -14px rgba(60, 45, 15, .30); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), color-mix(in srgb, var(--bg) 90%, transparent)); }
.bar, .drawer { border-top: 0; }
.aj-head { border-bottom: 0; }
.tab[aria-selected="true"]::after { height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, var(--sun))); box-shadow: 0 3px 8px -2px var(--c); }

/* ভাসমান কার্ড: বর্ডার নেই, ছায়া আছে */
.card, .sb, .glance, .slider, .mybox, .cl-panel, .tsearch, .tsel, .vtog, .tbtn, .pill { border-color: transparent !important; }
.card { box-shadow: var(--sh1); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 94%, var(--brand-soft))); }
.card:hover { box-shadow: var(--sh2); }
.tsearch, .tsel, .vtog, .tbtn { box-shadow: var(--sh1); }
.tsearch:focus-within { box-shadow: var(--sh1), 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.sb { box-shadow: var(--sh1); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 93%, var(--brand-soft))) !important; padding: 16px 14px 14px 16px !important; }
.glance { box-shadow: var(--sh2); }
.slider { box-shadow: var(--sh2); }
.mybox { box-shadow: var(--sh1); }
.cl-panel { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 8%, transparent); background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); }
.pill { box-shadow: var(--sh1); background: var(--surface); }
.pill.on { box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 50%, transparent); }

/* গ্রেডিয়েন্ট বোতাম */
.tbtn[aria-pressed="true"], .tbtn.on { background: var(--grad-brand) !important; color: #fff !important; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.tbtn[aria-pressed="true"] .ic svg, .tbtn.on .ic svg { stroke: #fff; }
.vtog button[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 60%, var(--sun-soft))); }
.mn-f button, .mb-btn:not(.ghost) { background: var(--grad-brand); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.gl-more { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), color-mix(in srgb, var(--sun) 16%, transparent)); }
.mn-h { border-bottom: 0; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); } .mn-f { border-top: 0; box-shadow: 0 -6px 16px -12px rgba(0,0,0,.3); }

/* তালিকার দাগ: কার্ডে নেই, তালিকায় অতি হালকা */
.card .meta { border-top: 0; }
.cl-item { border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.sb-sec { border-top: 0 !important; border-bottom: 0; padding: 10px 0 6px; }
.sb-sec + .sb-sec { box-shadow: 0 -1px 0 color-mix(in srgb, var(--text) 5%, transparent); margin-top: 4px; padding-top: 14px; }
.switch { border-bottom: 0; }
.row { border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.glance li { border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.aj-i { border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.good-h { border: 0; }
.menu-pn { box-shadow: 14px 0 44px -10px rgba(0,0,0,.4); }
.brand svg { filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--sun) 45%, transparent)); }
.glance .gl-no { box-shadow: 0 6px 12px -5px var(--c); }

/* লোগোর ট্যাগলাইন: "খ" থেকে "া" পর্যন্ত নামের সমান চওড়া (মাপ JS ঠিক করে) */
.brand .tagl { letter-spacing: 0; line-height: 1.15; margin-top: 4px; }
.brand .tagl em { font-size: inherit !important; font-weight: 700; color: var(--sun); }
.brand .bnm { font-size: 1.55rem; }
@media (min-width: 960px) { .brand .bnm { font-size: 1.8rem; } }

/* v38: ট্যাগলাইন — একই ফন্ট ও মাপ, নামের সমান চওড়া */
.brand .tagl { font-family: var(--head) !important; font-weight: 500 !important; color: var(--muted) !important; letter-spacing: 0; }
.brand .tagl em { font-family: inherit !important; font-size: inherit !important; font-weight: 700 !important; font-style: normal; color: var(--sun) !important; }

/* v39: মোবাইলের তারিখ-পট্টি মাঝখানে */
@media (max-width: 759px) { .mgreet { justify-content: center; text-align: center; } }

/* ===== v42: মোবাইল ভিউ — আরও গোছানো ===== */
.shr { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; color: var(--faint); }
.shr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shr.ok { color: var(--good); font-weight: 700; }
.tog { background: color-mix(in srgb, var(--text) 20%, transparent); }
.sb-h .ic { position: relative; }

@media (max-width: 759px) {
  /* হেডার ছোট */
  .r1 { min-height: 50px; }
  .mgreet { padding-bottom: 4px; font-size: .7rem; }

  /* টুলবার: ওপরে সার্চ+ভিউ, নিচে সাজানো/নতুন/জেলা */
  .toolbar { gap: 8px; padding-top: 10px; align-items: stretch; }
  .tsearch { order: 1; flex: 1 1 0; min-width: 0; height: 44px; }
  .vtog { order: 2; align-self: stretch; }
  .vtog button { width: 40px; height: 42px; }
  .tsel { order: 3; flex: 1 1 auto; height: 42px; padding: 0 6px 0 12px; }
  .tsel > span { display: none; }
  .tsel select { width: 100%; font-size: .85rem; }
  #unr { order: 4; height: 42px; padding: 0 12px; font-size: .82rem; }
  .mygrp { order: 5; }
  .mygrp .tbtn { height: 42px; padding: 0 12px; font-size: .82rem; }
  .greet { margin-top: 10px; font-size: .74rem; }

  /* শিরোনাম: এক লাইনে */
  .good-h { font-size: 1.05rem; margin-top: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .good-h small { display: none; }

  /* তালিকা: ভাসমান কার্ডের সারি */
  .stream:not(.cards) { display: flex; flex-direction: column; gap: 10px; }
  .stream:not(.cards) .row { background: var(--surface); border-radius: 16px; padding: 12px 12px 8px; border: 0; box-shadow: var(--sh1); column-gap: 12px; }
  .row h3 { font-size: .98rem; line-height: 1.5; }
  .row p { font-size: .84rem; line-height: 1.55; }
  .row .thumb img { width: 88px; height: 88px; border-radius: 12px; }
  .row .meta { gap: 2px 8px; font-size: .7rem; padding-top: 2px; }
  .row .meta .tag { font-size: .64rem; padding: 0 7px; }
  .row .meta .cl-btn { font-size: .68rem; }
  .stream .bucket, .stream h4 { margin: 14px 2px 2px; }

  /* মেনু: ভাঁজ করা অংশ */
  .sb.acc { padding: 0 !important; }
  .sb.acc .sb-top { padding: 4px 2px 8px; }
  .sb.acc .sb-sec { border-radius: 14px; margin: 0 0 8px; padding: 0; background: var(--surface); box-shadow: var(--sh1); overflow: hidden; }
  .sb.acc .sb-sec + .sb-sec { box-shadow: var(--sh1); margin-top: 0; padding-top: 0; }
  .sb.acc .sb-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: .95rem; position: relative; }
  .sb.acc .sb-h::after { content: "›"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--faint); transform: rotate(90deg); transition: transform .2s; }
  .sb.acc .sb-sec.open .sb-h::after { transform: rotate(-90deg); color: var(--brand); }
  .sb.acc .sb-sec.has .ic::after { content: ""; position: absolute; top: -3px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
  .sb.acc .sb-body { display: none; padding: 0 12px 12px; }
  .sb.acc .sb-sec.open .sb-body { display: block; max-height: 280px; overflow-y: auto; }
  .sb.acc .sb-sec.open .sb-h { color: var(--brand); }
}
.opts.dim .opt { opacity: .62; }
.opts.dim .opt:hover { opacity: 1; }

/* কার্ড জায়গা থেকে নড়ে না (কিনারায় কার্সর রাখলে কাঁপত); শুধু ছায়া গাঢ় হয় */
.card, .card:hover { transform: none !important; }
/* সূত্রের নাম নিজের রঙে (আগে নামের আগে রঙিন ফোঁটা ছিল) */
.meta .src, .cl-item .cl-src, .oname { color: var(--c, var(--muted)); }
:root[data-theme="dark"] .meta .src, :root[data-theme="dark"] .cl-item .cl-src, :root[data-theme="dark"] .oname { color: color-mix(in srgb, var(--c, #999) 62%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .meta .src, :root:not([data-theme="light"]) .cl-item .cl-src, :root:not([data-theme="light"]) .oname { color: color-mix(in srgb, var(--c, #999) 62%, #fff); } }
/* ছবির উপরের লেখায় (.lead .meta .src) নাম সাদাই থাকে — সেই নিয়মের জোর বেশি */

/* ---- খবরের সারি: সব জায়গায় একই ছাঁদ ---- */
/* বাম দিকে সূত্র · সময়, ডান দিকে (সংখ্যা-বোতাম + শেয়ার); জায়গা না হলে ডানের দলটা নিচের লাইনে ডান কিনারায় যায় */
.meta { justify-content: space-between; row-gap: 4px; }
.meta .m-info { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.meta .m-act { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.meta .shr { margin-left: 0; }
/* ছবি না থাকলে রঙিন আদ্যক্ষরের ঘর (ছবি-ঘরের মাপেই) */
.row .thumb.ph { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--surface)), color-mix(in srgb, var(--c) 8%, var(--surface))); }
.row .thumb.ph .ph-l { font-family: var(--head); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--c); opacity: .85; }
@media (min-width: 960px) { .row .thumb.ph { width: 108px; height: 84px; } }
@media (max-width: 759px) { .row .thumb.ph { width: 88px; height: 88px; border-radius: 12px; } }
:root[data-theme="dark"] .row .thumb.ph .ph-l { color: color-mix(in srgb, var(--c) 62%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row .thumb.ph .ph-l { color: color-mix(in srgb, var(--c) 62%, #fff); } }
.compact .row .thumb.ph { display: none; }
/* বড় স্লাইডে "১৬টি সূত্রে" চিহ্ন সময়ের পাশেই থাকে */
.lead .meta { justify-content: flex-start; }
.lead .meta .m-act { margin-left: 0; }

/* কার্ডের ছবির ঘর ফাঁকা থাকলে রঙিন বিকল্প (সূর্য-চিহ্ন) */
.cmedia.ph .ph-sun { display: grid; place-items: center; width: 100%; height: 100%; }
.cmedia.ph .ph-sun svg { width: 54px; height: 54px; }
/* কার্ডের নিচের সারি সব কার্ডে একই লাইনে: সূত্র · সময় বামে, বোতাম ডানে */
.card .meta { flex-wrap: nowrap; }
.card .meta .m-info { flex: 1 1 auto; overflow: hidden; }
.card .meta .m-info .src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11em; }
.card .meta .m-info time { white-space: nowrap; }

/* ---- বড় পর্দায় দুই পাশের ফাঁকা জায়গা কম, কার্ড ৪টি; কার্ডের মাপ আগের মতোই (≈৩৩০–৩৫০px) ---- */
@media (min-width: 1680px) {   /* ছোট পর্দায় (১৬৮০px-এর নিচে) আগের মতোই, কিছু বদলায় না */
  .wrap { max-width: 2200px; padding-left: 20px; padding-right: 20px; }
  .layout { gap: 24px; padding-left: 20px; padding-right: 20px; }
  .stream.cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* ---- বাংলা হরফের কিনারা কাটা পড়া ঠিক: "হ", "ও" ইত্যাদির বাঁ-ডান কিনারা হরফের ঘরের বাইরে সামান্য বেরোয়,
   আর লাইন-কাটা (line-clamp / ellipsis) বাক্সের overflow:hidden তা ছেঁটে দিত।
   বাক্সের ভেতরে একটু ফাঁকা দিয়ে একই মাপ বাইরে থেকে ফেরত নিই, ফলে লেখা আগের জায়গাতেই থাকে ---- */
.row h3, .row p, .card h3, .card p, .gcard h3, .vcard h3, .lead h2, .lead p, .slider .lead p,
.cl-item .cl-t, .gl-p, .gl-t, .mgreet, .sb-head .s, .ctext h3, .ctext p {
  padding-left: .16em; padding-right: .16em; margin-left: -.16em; margin-right: -.16em;
}
/* লাইনের উপর-নিচে মাত্রা/ু-কার কাটা না পড়ে */
.row h3, .card h3, .gcard h3, .vcard h3 { padding-top: .04em; padding-bottom: .1em; margin-top: -.04em; margin-bottom: -.1em; }
.card .meta .m-info .src { padding: 0 .14em; margin: 0 -.14em; }

/* ================= নতুন ট্যাবের রঙ ================= */
:root { --c-politics: #b4452d; --c-edu: #2f6fb0; --c-health: #1e8e6e; --c-law: #7a4b2a; --c-weather: #3a86c8; }
:root[data-theme="dark"] { --c-politics: #f08a6e; --c-edu: #7fb2ea; --c-health: #6fd0ae; --c-law: #d2a47b; --c-weather: #7bbcf0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-politics: #f08a6e; --c-edu: #7fb2ea; --c-health: #6fd0ae; --c-law: #d2a47b; --c-weather: #7bbcf0; } }

/* ================= হেডার (কম্পিউটার): বামে শুভেচ্ছা+সময়, মাঝে লোগো, ডানে তারিখ ৩ লাইনে ================= */
.hleft, .hdate { display: none; }
@media (min-width: 760px) {
  .r1 { min-height: 80px !important; }
  .r1 > .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 !important; z-index: 1; }
  .hleft { display: flex; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; }
  .hgreet { position: static !important; transform: none !important; left: auto !important; top: auto !important; pointer-events: auto !important; align-items: flex-start !important; }
  .hg1 { font-size: 1.05rem; display: inline-flex; align-items: baseline; gap: 8px; }
  .hg-time { font-style: normal; font-weight: 600; font-size: .98rem; -webkit-text-fill-color: var(--muted); color: var(--muted); }
  .hleft .status { margin: 0 !important; display: flex; font-size: .7rem; }
  .hdate { display: flex; position: absolute; right: 62px; top: 50%; transform: translateY(-50%); flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; z-index: 1; font-size: .74rem; line-height: 1.35; }
  .hd1 { font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--text); }
  .hd2 { color: color-mix(in srgb, var(--brand) 80%, var(--text)); font-weight: 600; }
  .hd3 { color: color-mix(in srgb, var(--sun) 60%, var(--text)); font-weight: 600; }
  #theme { margin-left: auto !important; }
  .fresh { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% - 4px); z-index: 3; }
}
@media (min-width: 960px) { .hleft { left: 28px; } .hdate { right: 74px; } }
@media (min-width: 1680px) { .hleft { left: 20px; } .hdate { right: 66px; } }

/* আবহাওয়ার ছোট চিহ্ন (হেডারে ও মোবাইলের তারিখ-পট্টিতে) */
.hwx { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 3px 10px; border-radius: 99px; font-size: .76rem; color: var(--text);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c-weather) 16%, var(--surface)), color-mix(in srgb, var(--sun) 14%, var(--surface))); box-shadow: var(--sh1); white-space: nowrap; }
.hwx[hidden] { display: none; }
.hwx b { font-family: var(--head); font-weight: 700; }
.hwx .wx-r { color: color-mix(in srgb, var(--c-weather) 75%, var(--text)); font-weight: 600; }
.hwx:hover { background: color-mix(in srgb, var(--c-weather) 24%, var(--surface)); }
.mg-wx { border: 0; background: none; padding: 0; font: inherit; color: color-mix(in srgb, var(--c-weather) 75%, var(--text)); font-weight: 600; cursor: pointer; white-space: nowrap; }

/* ================= আবহাওয়া পাতা ================= */
.wx { margin: 4px 0 18px; padding: 16px 18px 12px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-weather) 16%, var(--surface)), var(--surface) 60%); box-shadow: var(--sh1); }
.wx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wx-h h2 { margin: 0; font-family: var(--head); font-size: 1.2rem; color: var(--text); }
.wx-h span { font-size: .72rem; color: var(--faint); }
.wx-alert { margin: 4px 0 10px; padding: 8px 12px; border-radius: 12px; font-size: .86rem; font-weight: 600; background: color-mix(in srgb, var(--c-weather) 18%, transparent); color: color-mix(in srgb, var(--c-weather) 70%, var(--text)); }
.wx-main { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-ic { font-size: 3.4rem; line-height: 1; }
.wx-city { font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--muted); }
.wx-temp { font-family: var(--head); font-weight: 700; font-size: 3rem; line-height: 1.1; color: var(--text); }
.wx-desc { font-size: .9rem; color: var(--muted); }
.wx-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--text); }
.wx-facts b { font-weight: 600; color: var(--muted); }
.wx-rain.mid { color: #b4690e; } .wx-rain.hi { color: #1c6fc4; font-weight: 700; }
.wx-days { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.wx-day { text-align: center; padding: 10px 6px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, var(--c-weather)); }
.wd-n { font-family: var(--head); font-weight: 600; font-size: .8rem; color: var(--muted); }
.wd-i { font-size: 1.8rem; line-height: 1.3; }
.wd-t { font-family: var(--head); font-weight: 700; font-size: 1.05rem; } .wd-t small { font-weight: 500; font-size: .8rem; color: var(--faint); }
.wd-r { font-size: .76rem; color: var(--muted); margin-top: 2px; } .wd-r.mid { color: #b4690e; } .wd-r.hi { color: #1c6fc4; font-weight: 700; }
.wx-sub { margin: 14px 0 6px; font-size: .76rem; color: var(--faint); }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.wx-c { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n i" "t r"; gap: 2px 6px; align-items: center; padding: 9px 11px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, var(--c-weather)); }
.wx-c:hover { background: color-mix(in srgb, var(--surface) 70%, var(--c-weather)); }
.wx-c.on { outline: 2px solid var(--c-weather); background: color-mix(in srgb, var(--surface) 62%, var(--c-weather)); }
.wc-n { grid-area: n; font-family: var(--head); font-weight: 600; font-size: .84rem; } .wc-i { grid-area: i; font-size: 1.2rem; }
.wc-t { grid-area: t; font-family: var(--head); font-size: 1.15rem; } .wc-r { grid-area: r; font-size: .72rem; color: var(--muted); justify-self: end; }
.wc-r.mid { color: #b4690e; } .wc-r.hi { color: #1c6fc4; font-weight: 700; }
.wx-note { margin: 10px 0 0; font-size: .7rem; color: var(--faint); line-height: 1.5; } .wx-note a { color: var(--brand); }
.wx-empty { padding: 20px 0; color: var(--muted); } .wx-retry { margin-left: 8px; border: 0; background: var(--brand); color: #fff; padding: 3px 12px; border-radius: 99px; font: inherit; font-size: .8rem; }
@media (max-width: 600px) { .wx { padding: 14px 12px 10px; } .wx-main { grid-template-columns: 1fr; } .wx-temp { font-size: 2.6rem; } }
:root[data-theme="dark"] .wx-rain.hi, :root[data-theme="dark"] .wd-r.hi, :root[data-theme="dark"] .wc-r.hi { color: #7bbcf0; }
:root[data-theme="dark"] .wx-rain.mid, :root[data-theme="dark"] .wd-r.mid, :root[data-theme="dark"] .wc-r.mid { color: #e8b35a; }

/* ================= v44: হেডার নিখুঁত করা ================= */
/* একই বাম/ডান ফাঁকা (--gut) হেডার, ট্যাব, ছাঁকনি ও কার্ড — সবখানে, তাই সব এক লাইনে */
:root { --gut: 16px; }
@media (min-width: 960px) { :root { --gut: 28px; } }
@media (min-width: 1680px) { :root { --gut: 20px; } }
.wrap { padding-left: var(--gut); padding-right: var(--gut); }
@media (min-width: 1100px) { .layout { padding-left: var(--gut); padding-right: var(--gut); } }

/* মোবাইলে বাম-ডান খোপ নেই (লোগো মাঝে, মেনু বামে, থিম ডানে আগের মতো) */
.hleft, .hstat { display: contents; }
.hwx, .hgreet, .status, .hdate { display: none; }
@media (min-width: 760px) {
  .r1 { min-height: 98px !important; }
  .r1 > .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 !important; z-index: 1; }
  /* বাম ও ডান খোপ: দুটোই ৩ সারি × ২৪px, মাঝ বরাবর — তাই সারি ধরে ধরে এক লাইনে (শুভেচ্ছা ↔ বার-তারিখ, আবহাওয়া ↔ বাংলা তারিখ, হালনাগাদ ↔ হিজরি) */
  .hleft, .hdate { display: grid; grid-template-rows: repeat(3, 24px); align-items: center; height: 72px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; white-space: nowrap; }
  .hleft { left: var(--gut); justify-items: start; }
  .hdate { right: var(--gut); justify-items: end; text-align: right; font-size: .76rem; line-height: 1.2; }
  .hgreet { display: flex !important; grid-row: 1; align-items: center !important; height: 24px; }
  .hg1 { line-height: 1.2; }
  .hwx { display: inline-flex; grid-row: 2; height: 24px; padding: 0 10px; line-height: 1; }
  .hwx[hidden] { display: none; }
  .hstat { display: flex; grid-row: 3; align-items: center; gap: 10px; height: 24px; }
  .hleft .status { display: flex; margin: 0 !important; line-height: 1; }
  .hstat #theme { width: 26px; height: 26px; margin: 0 !important; flex: none; }
  .hstat #theme svg { width: 16px; height: 16px; }
  .hd1, .hd2, .hd3 { display: block; line-height: 24px; height: 24px; }
  .fresh { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% - 4px); z-index: 3; }
}
/* ছোট পর্দায় ডানের তারিখ লোগোর গায়ে লাগলে হিজরি লাইন বাদ */
@media (min-width: 760px) and (max-width: 1000px) { .hd3 { display: none; } .hdate { grid-template-rows: repeat(2, 24px); } }

/* ট্যাব ও উপ-ট্যাব সারি মাঝখানে; জায়গা কম পড়লে আড়াআড়ি স্ক্রল (margin:auto ছেঁটে ফেলে না) */
.tabs > :first-child, .subs > :first-child { margin-left: auto; }
.tabs > :last-child, .subs > :last-child { margin-right: auto; }

/* ================= আজ এক নজরে: ডানের ফাঁকা জায়গায় আবহাওয়া ================= */
.glance { display: grid; grid-template-columns: minmax(0, 1fr); }
.gl-side { display: none; }
@media (min-width: 1000px) {
  .glance.has-side { grid-template-columns: minmax(0, 1fr) clamp(280px, 28%, 360px); column-gap: 28px; }
  .glance.has-side .gl-side { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin: 4px 0 6px; border-radius: 16px;
    background: linear-gradient(150deg, color-mix(in srgb, var(--c-weather) 15%, var(--surface)), color-mix(in srgb, var(--sun) 10%, var(--surface))); }
  .gl-side[hidden] { display: none !important; }
}
.gw-h { display: flex; align-items: center; justify-content: space-between; }
.gw-h b { font-family: var(--head); font-size: 1rem; color: var(--text); }
.gw-more { border: 0; background: none; font: inherit; font-size: .76rem; font-weight: 600; color: var(--brand); cursor: pointer; padding: 2px 6px; border-radius: 99px; }
.gw-more:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.gw-now { display: flex; align-items: center; gap: 12px; }
.gw-ic { font-size: 2.6rem; line-height: 1; }
.gw-t { font-family: var(--head); font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--text); }
.gw-d { font-size: .78rem; color: var(--muted); }
.gw-rain { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .8rem; color: var(--muted); }
.gw-rain b { font-family: var(--head); font-size: 1.05rem; color: var(--text); }
.gw-rain.mid b { color: #b4690e; } .gw-rain.hi b { color: #1c6fc4; }
.gw-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.gw-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6bb6ee, #2a74c6); }
.gw-sub { margin-top: 4px; font-size: .72rem; color: var(--faint); }
.gw-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gw-c { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n t" "r r"; align-items: baseline; gap: 0 6px; padding: 6px 9px; border-radius: 10px; font-size: .82rem; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, var(--c-weather)); }
.gw-c em { grid-area: n; font-style: normal; font-family: var(--head); font-weight: 600; }
.gw-c small { grid-area: r; font-size: .7rem; color: var(--muted); }
.gw-c.mid small { color: #b4690e; } .gw-c.hi small { color: #1c6fc4; font-weight: 700; }
:root[data-theme="dark"] .gw-rain.hi b, :root[data-theme="dark"] .gw-c.hi small { color: #7bbcf0; }
:root[data-theme="dark"] .gw-rain.mid b, :root[data-theme="dark"] .gw-c.mid small { color: #e8b35a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gw-rain.hi b, :root:not([data-theme="light"]) .gw-c.hi small { color: #7bbcf0; } }

/* ================= v45: আজ এক নজরে — পরিচ্ছন্ন, নান্দনিক নকশা (আগের স্তরে স্তরে জমা নিয়মগুলো এখানে একসাথে ঠিক করা) ================= */
.glance { position: relative; margin: 6px 0 22px; padding: 18px 26px 8px; border-radius: 24px; overflow: hidden; border: 0 !important;
  background: var(--surface); box-shadow: var(--sh1); }
.glance::before { display: none; }
.glance .gl-h { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 0 14px; }
.glance .gl-ic { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--sun) 16%, transparent); display: grid; place-items: center; flex: none; }
.glance .gl-ic svg { width: 22px; height: 22px; }
.glance .gl-ht { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.glance .gl-ht b { font-size: 1.2rem; color: var(--text); }
.glance .gl-ht span { font-size: .76rem; color: var(--faint); }
.glance .gl-more { margin-left: auto; padding: 4px 2px; background: none; border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--brand); }
.glance .gl-more span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.glance .gl-more:hover { background: none; } .glance .gl-more:hover span { transform: translateX(4px); }
.glance ol { counter-reset: none; }
.glance li { border-top: 1px solid color-mix(in srgb, var(--text) 7%, transparent); }
.glance li:first-child { border-top: 0; }
.glance .gl-a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 4px 18px; padding: 15px 10px; margin: 0 -10px; border-radius: 16px; background: none; transition: background .2s ease; }
.glance .gl-a:hover { background: color-mix(in srgb, var(--c) 6%, transparent); }
.glance .gl-no { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; align-self: start; margin: 0; padding-top: 2px;
  font-family: var(--head); font-weight: 700; font-size: 1.7rem; line-height: 1; color: color-mix(in srgb, var(--sun) 50%, transparent); }
.glance .gl-top .gl-no { width: auto; height: auto; background: none; box-shadow: none; font-size: 2rem; color: var(--sun); }
.glance .gl-body { gap: 6px; }
.glance .gl-t { font-size: 1.06rem; line-height: 1.5; font-weight: 600; color: var(--text); }
.glance .gl-top .gl-t { font-size: 1.28rem; line-height: 1.45; }
.glance .gl-a:hover .gl-t { color: var(--c); }
.glance .gl-p { display: -webkit-box !important; font-size: .88rem; line-height: 1.6; color: var(--muted); -webkit-line-clamp: 2; }
.glance .gl-m { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: .76rem; color: var(--muted); }
.glance .gl-n b { color: var(--brand); font-size: .8rem; }
.glance .gl-sec { padding: 1px 9px; border-radius: 99px; font-size: .7rem; }
.glance .gl-time::before { content: "·"; margin-right: 8px; color: var(--faint); }
.glance .gl-img { display: block !important; width: 104px; height: 70px; border-radius: 14px; object-fit: cover; flex: none; background: var(--img-bg); }
.glance .gl-top .gl-img { width: 104px; height: 70px; }

/* ডান দিকের আবহাওয়া-খোপ: হালকা নীল-সোনালি আভা, ভেতরে পরিষ্কার সারি */
@media (min-width: 1000px) {
  .glance.has-side { padding-right: 18px; }
  .glance.has-side .gl-side { margin: 0 0 10px; padding: 18px 18px 16px; border-radius: 20px; gap: 12px; align-self: start;
    background: linear-gradient(155deg, color-mix(in srgb, var(--c-weather) 17%, var(--surface)) 0%, color-mix(in srgb, var(--sun) 11%, var(--surface)) 100%); }
}
.glance .gw-h b { font-size: 1.02rem; }
.glance .gw-more { padding: 2px 0; }
.glance .gw-ic { font-size: 2.8rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.glance .gw-t { font-size: 1.55rem; }
.glance .gw-sub { margin-top: 2px; }
.glance .gw-c { background: color-mix(in srgb, var(--surface) 72%, transparent); }
@media (max-width: 600px) {
  .glance { padding: 14px 14px 4px; border-radius: 20px; margin-bottom: 16px; }
  .glance .gl-h { padding-bottom: 8px; } .glance .gl-ht span { display: none; }
  .glance .gl-a { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 6px; margin: 0 -6px; }
  .glance .gl-no, .glance .gl-top .gl-no { font-size: 1.35rem; }
  .glance .gl-t { font-size: .98rem; } .glance .gl-top .gl-t { font-size: 1.08rem; }
  .glance .gl-img, .glance .gl-top .gl-img { width: 66px; height: 50px; border-radius: 10px; }
  .glance .gl-p { display: none !important; }
}

/* ================= v46: আজকের আবহাওয়া খোপ — নিচের কিনারা বামের তালিকার সাথে এক লাইনে ================= */
@media (min-width: 1000px) {
  .glance.has-side .gl-side { align-self: stretch; margin: 0 0 8px; }
  .glance.has-side .gw-cities { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
  .glance.has-side .gw-c { align-content: center; }
}

/* ================= বড় মনিটর: ফাঁকা না রেখে কার্ড বাড়ে ================= */
/* কার্ডের মাপ ৩২০px-এর নিচে নামে না; জায়গা বাড়লে সারিতে কার্ডও বাড়ে (৪ → ৫ → ৬ → ৭) */
@media (min-width: 1680px) {
  .wrap { max-width: 2800px; }
  .slider { max-height: 620px; }
  .stream:not(.cards) { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); }
  .goodrow { grid-auto-columns: calc((100% - 60px) / 4); }
}
@media (min-width: 2014px) { .goodrow { grid-auto-columns: calc((100% - 80px) / 5); } }
@media (min-width: 2354px) { .goodrow { grid-auto-columns: calc((100% - 100px) / 6); } }
@media (min-width: 2694px) { .goodrow { grid-auto-columns: calc((100% - 120px) / 7); } }

/* ================= মোবাইল-ফার্স্ট: পড়ার মতো লেখা আর আঙুলে চাপার মতো বোতাম ================= */
html, body { overflow-x: clip; }
.wrap { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
@media (max-width: 759px) {
  /* লেখা: ফোনে ১২px-এর নিচে কিছু নয় (আগে .৬–.৬৮rem ≈ ৯.৬–১১px ছিল) */
  .meta { font-size: .78rem; }
  .meta .src, .row .meta .src, .cl-item .cl-src { font-size: .76rem; }
  .sec, .tag, .badge, .cl-chip, .one-src, .gl-sec { font-size: .72rem; }
  .cl-btn, .row .meta .cl-btn { font-size: .74rem; min-height: 30px; padding: 0 11px; }
  .gl-n, .gl-time, .gl-m { font-size: .76rem; }
  .c-badge, .sec-chip { font-size: .74rem; }
  .mgreet { font-size: .78rem; } .mgreet b { font-size: .86rem; }
  .wx-sub, .wx-note, .wx-h span { font-size: .76rem; }
  /* আঙুলের মাপ: দৃশ্যমান মাপ একই, চাপার জায়গা ৪০–৪৪px */
  .shr { width: 40px; height: 40px; margin: -8px -6px -8px 0; }
  .tab { min-height: 44px; padding-top: 11px; padding-bottom: 12px; }
  .opt { min-height: 40px; }
  .hr-btn { width: 40px; height: 40px; }
  .pill { min-height: 40px; }
  .ib { width: 44px; height: 44px; }
  .wx-c { min-height: 56px; }
  .totop { width: 48px; height: 48px; }
}
@media (max-width: 759px) and (hover: none) { .card:hover { transform: none; } }

/* ================= v47: হেডার সবসময় স্থির; স্ক্রল করলে ছোট হয় ================= */
.hh .head { transform: none !important; }
.r1 { transition: min-height .2s ease, padding .2s ease; }
@media (min-width: 760px) {
  .sc .r1 { min-height: 58px !important; padding-top: 4px !important; padding-bottom: 4px !important; }
  .sc .r1 > .brand { transform: translate(-50%, -50%) scale(.8); }
  .sc .hgreet, .sc .hwx, .sc .status, .sc .hdate { display: none !important; }
  .sc .hleft { left: auto; right: var(--gut); height: auto; grid-template-rows: auto; }
  .sc .hstat { grid-row: 1; }
}
@media (max-width: 759px) { .sc .mgreet { display: none; } }

/* ================= v48: বাম-ডান খোপের সারি হুবহু এক লাইনে ================= */
/* আগের নিয়মে বামে ৪px আর ডানে ২px ফাঁক ছিল, তাই সারির দূরত্ব ২৮ বনাম ২৬px হয়ে নিচের সারি মিলত না */
@media (min-width: 760px) {
  .hleft, .hdate { gap: 0 !important; row-gap: 0 !important; grid-template-rows: repeat(3, 24px) !important; grid-auto-rows: 24px; height: 72px !important; }
  .hleft > *, .hdate > * { margin-top: 0 !important; margin-bottom: 0 !important; align-self: center; min-height: 0; }
  .hleft > .hgreet { grid-row: 1; } .hleft > .hwx { grid-row: 2; } .hleft > .hstat { grid-row: 3; }
  .hdate > .hd1 { grid-row: 1; } .hdate > .hd2 { grid-row: 2; } .hdate > .hd3 { grid-row: 3; }
  /* সব লেখার লাইন-উচ্চতা সারির সমান: মাঝ-রেখা এক হয় */
  .hg1, .hg1 .hg-time, .hleft .status, .hwx { line-height: 24px; }
  .hwx { height: 24px; align-items: center; }
  .hd1, .hd2, .hd3 { line-height: 24px; height: 24px; }
  .hstat { height: 24px; align-items: center; }
  .hstat #theme { align-self: center; }
}
@media (min-width: 760px) { .sc .hleft { height: auto !important; grid-template-rows: auto !important; } .sc .hstat { grid-row: 1 !important; } }

/* ================= v49: আসল ফোনের স্ক্রিনশট দেখে মোবাইলের অসামঞ্জস্য ঠিক ================= */
/* হেডার: পেছনের লেখা ঝাপসা হয়ে ভেসে উঠত — এখন নিরেট জমিন */
.head { background: linear-gradient(180deg, var(--surface), var(--bg)) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ট্যাবের নিচের দাগ: ছাঁটা-কাটা আলোর আভা বাদ, "সব"-এর দাগ কালোর বদলে ব্র্যান্ড-সবুজ */
.tab[aria-selected="true"]::after { box-shadow: none !important; }
.tab[data-id="all"][aria-selected="true"]::after, .tab:first-child[aria-selected="true"]::after { background: var(--brand); }
.tabs { padding-bottom: 2px; }

@media (max-width: 759px) {
  /* তারিখ-পট্টি: দুই পাশ কেটে যেত — এখন কিনারা থেকে শুরু, মাঝে সাজানো; ছোট ফোনে হিজরি লাইন বাদ */
  .mgreet { justify-content: flex-start; padding-left: var(--gut); padding-right: var(--gut); }
  .mgreet > :first-child { margin-left: auto; } .mgreet > :last-child { margin-right: auto; }

  /* টুলবার: সার্চ কুঁচকে ছোট্ট আইকন হয়ে যেত। এখন ১ম সারি: সার্চ + ভিউ; ২য় সারি: সাজানো · শুধু নতুন · জেলা (পুরো চওড়া) */
  .toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
  .toolbar::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .tsearch { order: 1; flex: 1 1 0; min-width: 0; }
  .vtog { order: 2; flex: none; }
  .tsel { order: 3; flex: 1.4 1 auto; min-width: 0; }
  #unr { order: 4; flex: 1 1 auto; justify-content: center; }
  .mygrp { order: 5; flex: 1.1 1 auto; } .mygrp .tbtn { flex: 1; justify-content: center; padding: 0 10px; }

  /* কার্ড/সারির নিচের সারি: শেয়ার সবসময় ১ম লাইনের ডান কোণায়, "N টি সূত্রে" বোতাম নিচের লাইনে বাঁয়ে */
  .meta, .card .meta { flex-wrap: wrap; justify-content: flex-start; row-gap: 2px; }
  .meta .m-info { flex: 1 1 calc(100% - 46px); min-width: 0; overflow: visible; }
  .meta .m-act { display: contents; }
  .meta .shr { order: 2; margin: -8px -6px -8px auto; flex: none; }
  .meta .cl-btn, .meta .cl-chip { order: 3; margin-right: auto; }
}

/* ================= v50: তারিখ-পট্টি মাঝে · সারাংশ পাতার লিংক মোবাইলে · সূত্র-তালিকার নতুন নকশা ================= */
/* তারিখ-পট্টি: ইনলাইন + text-align:center — জায়গা কম পড়লে বাঁ থেকে শুরু হয়ে ডানে ছাঁটে (দুই পাশ কাটে না) */
@media (max-width: 759px) {
  .mgreet { display: block !important; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mgreet > * { display: inline; vertical-align: baseline; margin: 0 !important; }
  .mgreet i { margin: 0 7px !important; }
  .mgreet .mg-wx { display: inline; }
}

/* "সারাংশ পাতা" লিংক মোবাইলেও দেখা যায় (আগে ≤৬০০px-এ লুকানো ছিল) + মেনুতেও */
.glance .gl-more { display: inline-flex !important; align-items: center; white-space: nowrap; }
@media (max-width: 600px) { .glance .gl-h { gap: 10px; } .glance .gl-more { font-size: .78rem; } }
.mn-aj { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  font-family: var(--head); font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--sun) 14%, var(--surface)); }

/* "N টি সূত্রে একই ঘটনা" তালিকা */
.cl-panel.clp { grid-column: 1 / -1; margin: 10px 0 6px; padding: 0; border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: 0 10px 30px -12px rgba(40, 32, 12, .35), 0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent); animation: rise .22s ease both; }
.card .cl-panel.clp { margin: 0; border-radius: 0 0 16px 16px; box-shadow: none; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.clp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--sun) 14%, var(--surface)), color-mix(in srgb, var(--brand) 9%, var(--surface))); }
.clp-top b { display: block; font-family: var(--head); font-size: .95rem; color: var(--text); }
.clp-top span { font-size: .74rem; color: var(--muted); }
.clp-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); font-size: .85rem; cursor: pointer; }
.clp-x:hover { background: color-mix(in srgb, var(--text) 16%, transparent); color: var(--text); }
.clp-list { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 6px; }
.clp-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; }
.clp-row + .clp-row { border-top: 0; }
.clp-row:hover { background: color-mix(in srgb, var(--c, var(--brand)) 7%, transparent); }
.clp-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: .95rem; line-height: 1;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); }
.clp-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clp-meta { display: flex; align-items: baseline; gap: 8px; }
.clp-meta b { font-family: var(--head); font-weight: 600; font-size: .8rem; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp-meta time { font-size: .72rem; color: var(--faint); white-space: nowrap; }
.clp-t { font-size: .9rem; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clp-go { color: var(--faint); font-size: .9rem; }
.clp-row:hover .clp-t { color: var(--brand); } .clp-row:hover .clp-go { color: var(--brand); }
:root[data-theme="dark"] .clp-meta b, :root[data-theme="dark"] .clp-av { color: color-mix(in srgb, var(--c) 62%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .clp-meta b, :root:not([data-theme="light"]) .clp-av { color: color-mix(in srgb, var(--c) 62%, #fff); } }
@media (max-width: 759px) { .clp-list { max-height: 52vh; } .clp-row { padding: 11px 6px; } .clp-t { font-size: .92rem; } .clp-meta b { font-size: .82rem; } .clp-meta time { font-size: .74rem; } }

/* v51: তারিখ-পট্টি — হিজরি অংশ লুকানোর নিয়ম আগের "display:inline" নিয়মের কাছে হেরে যাচ্ছিল (জোর কম ছিল) */
@media (max-width: 759px) {
  .mgreet .mg-t { margin-left: 6px !important; }
}

/* v52: লোগোর সূর্যের রশ্মি — "পাতা"-র সবুজ রঙে (আলো/অন্ধকার দুই মোডেই ব্র্যান্ড-সবুজ) */
.brand .rays { stroke: var(--brand); }

/* ================= v53: মোবাইলের তারিখ-পট্টি — বামে শুভেচ্ছা+আবহাওয়া, ডানে বার/ইংরেজি, বাংলা, হিজরি (৩ লাইন) ================= */
@media (max-width: 759px) {
  .mgreet { display: grid !important; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: center; column-gap: 12px; white-space: normal !important;
    text-align: left; overflow: visible !important; padding-top: 2px; padding-bottom: 8px; font-size: .76rem; }
  .mgreet > .mg-l, .mgreet > .mg-r { display: flex !important; flex-direction: column; gap: 3px; margin: 0 !important; min-width: 0; }
  .mgreet > .mg-l { align-items: flex-start; }
  .mgreet > .mg-r { align-items: flex-end; text-align: right; gap: 1px; line-height: 1.5; }
  .mgreet .mg-g { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
  .mgreet .mg-g b { font-family: var(--head); font-size: .92rem; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--sun) 85%, var(--brand))); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mgreet .mg-t { font-family: var(--head); font-weight: 600; color: var(--muted); }
  .mgreet .mg-wx { display: inline-flex; align-items: center; padding: 3px 10px; border: 0; border-radius: 99px; font-size: .74rem; white-space: nowrap; color: var(--text);
    background: linear-gradient(120deg, color-mix(in srgb, var(--c-weather) 16%, var(--surface)), color-mix(in srgb, var(--sun) 12%, var(--surface))); box-shadow: var(--sh1); }
  .mgreet .mg-d1 { font-family: var(--head); font-weight: 600; font-size: .78rem; color: var(--text); white-space: nowrap; }
  .mgreet .mg-bn { color: color-mix(in srgb, var(--brand) 80%, var(--text)); font-weight: 600; white-space: nowrap; }
  .mgreet .mg-hj { color: color-mix(in srgb, var(--sun) 60%, var(--text)); font-weight: 600; white-space: nowrap; }
  .mgreet i { display: none; }
  .sc .mgreet { display: none !important; }       /* স্ক্রলে হেডার ছোট: পট্টি লুকায় */
}
@media (max-width: 350px) { .mgreet .mg-d1, .mgreet .mg-bn, .mgreet .mg-hj { font-size: .7rem; } .mgreet .mg-wx { font-size: .7rem; padding: 3px 8px; } }

/* v54: মোবাইলে "হালনাগাদ …" লাইন (বাম কলামের ৩য় সারি) — আগে ফোনে লুকানো ছিল */
@media (max-width: 759px) {
  .mgreet .mg-up { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); white-space: nowrap; }
  .mgreet .mg-up .live { display: inline-block; flex: none; width: 6px; height: 6px; }
}

/* v55: হিজরি লাইন ফিরল (v51-এর লুকানোর নিয়ম বাদ); বাম-ডান দুই কলামেই ৩টি ২২px সারি, তাই সারি ধরে এক লাইনে */
@media (max-width: 759px) {
  .mgreet > .mg-l, .mgreet > .mg-r { display: grid !important; grid-template-rows: repeat(3, 22px); gap: 0 !important; align-items: center; }
  .mgreet > .mg-l { justify-items: start; } .mgreet > .mg-r { justify-items: end; }
  .mgreet .mg-hj { display: block !important; }
  .mgreet .mg-d1, .mgreet .mg-bn, .mgreet .mg-hj, .mgreet .mg-g, .mgreet .mg-up { line-height: 22px; }
  .mgreet .mg-wx { height: 22px; padding: 0 10px; line-height: 1; }
}

/* v56: আবহাওয়ার চিহ্নের বাক্স বাদ — শুধু লেখা (হেডারে ও মোবাইলের তারিখ-পট্টিতে); চাপা যায়, হোভারে নিচে দাগ */
.hwx, .mgreet .mg-wx { background: none !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; border-radius: 0; }
.hwx:hover, .mgreet .mg-wx:hover { background: none !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--c-weather) 60%, transparent); }

/* ================= v57: হেডারের অ্যালাইনমেন্ট ও লাইনস্পেস — মাপ নির্দিষ্ট করে ================= */
@media (min-width: 760px) {
  /* হেডার ঠিক ৯৬px, উপর-নিচে প্যাডিং শূন্য (আগে ১০/৮px অসমান ছিল); ৭২px-এর খোপ দুটো মাঝ বরাবর ⇒ উপরে-নিচে ঠিক ১২px করে ফাঁক */
  .r1 { height: 96px !important; min-height: 96px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  .sc .r1 { height: 58px !important; min-height: 58px !important; }
  /* সারি-১ (শুভেচ্ছা ↔ বার-তারিখ), সারি-২ (আবহাওয়া ↔ বাংলা), সারি-৩ (হালনাগাদ ↔ হিজরি): দুই পাশের লেখার মাপ জোড়ায় জোড়ায় সমান */
  .hg1, .hd1 { font-size: .94rem; } .hg1 .hg-time { font-size: .92rem; }
  .hwx, .hd2 { font-size: .8rem; }
  .hleft .status, .hd3 { font-size: .78rem; }
  .hleft > *, .hdate > * { display: flex; align-items: center; }
  .hdate > * { justify-content: flex-end; }
  .hgreet, .hwx, .hstat, .hd1, .hd2, .hd3 { height: 24px; line-height: 24px; }
}

/* ================= v58: বিভাগ অনুযায়ী হোম — প্রতিটি বিষয়ের আলাদা ব্লক ================= */
.sec-h { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 -2px; padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--c) 30%, transparent); }
.stream > .sec-h:first-child { margin-top: 4px; }
.sec-h h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--c); }
.sec-h h2::before { content: ""; width: 5px; height: 1.2em; border-radius: 3px; background: var(--c); }
.sec-go { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--c); cursor: pointer; padding: 6px 4px; border-radius: 8px; min-height: 32px; }
.sec-go span { display: inline-block; transition: transform .2s ease; }
.sec-go:hover span { transform: translateX(4px); }
@media (max-width: 759px) { .stream:not(.cards) > .sec-h { margin: 16px 2px 0; } .stream.cards > .sec-h { margin-top: 18px; } .sec-go { min-height: 40px; } }
:root[data-theme="dark"] .sec-h h2, :root[data-theme="dark"] .sec-go { color: var(--c); }

/* ================= v59: প্রবেশযোগ্যতা (WCAG ২.২) ও নীতিমালা পাতা ================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 600; text-decoration: none; transition: top .15s ease; }
.skip:focus { top: 10px; }
/* কীবোর্ডে চলার সময় ফোকাস সবসময় দৃশ্যমান */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.main-col:focus { outline: none; }
.foot-links { margin-top: 8px; font-size: .78rem; }
.foot-links a { color: var(--brand); text-decoration: none; display: inline-block; padding: 4px 2px; } .foot-links a:hover { text-decoration: underline; }
.policy h2 { font-family: var(--head); font-size: 1.15rem; margin: 26px 0 6px; color: var(--text); }
.policy p, .policy li { line-height: 1.8; color: var(--text); font-size: .98rem; }
.policy ul { padding-left: 1.2em; } .policy a { color: var(--brand); }
.policy code { font-size: .85em; padding: 1px 6px; border-radius: 6px; background: var(--chip); }
.sec-note { font-size: .76rem; color: var(--muted); }
.more-h { margin-top: 30px; }

/* v15: লোগো — রেফারেন্স ছবির মতো: সূর্য বাম দিকে, "খবরপাতা"-র মাত্রা-রেখা থেকে ট্যাগলাইনের বেসলাইন পর্যন্ত লম্বা; ডান দিকে নাম + ট্যাগলাইন বাম-সারিবদ্ধ ও সমান চওড়া */
.brand { gap: 4px; align-items: center; }
.brand svg { border-radius: 0; box-shadow: none; overflow: visible; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--sun) 38%, transparent)); }
.brand .bt { align-items: flex-start; justify-content: center; }
@media (min-width: 960px) { .brand { gap: 5px; } .brand svg { border-radius: 0; } }

/* v16: শিরোনামে চোখ-টানা রঙ — বিভাগের রঙ আগের ৫৮% থেকে ৮২%; কনট্রাস্ট ৪.৫:১ (WCAG AA)-এর ওপরেই থাকে (হালকা: রঙের সঙ্গে গাঢ় লেখা মেশানো, গাঢ়: সাদাটে লেখা) */
.card h3, .row h3, .gcard h3, .vcard h3 { color: color-mix(in srgb, var(--c, var(--brand)) 82%, var(--text)); }
.row-text:hover h3, .card a:hover h3, .gcard:hover h3, .vcard:hover h3 { color: var(--c, var(--brand)); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--c, var(--brand)) 45%, transparent); }
/* বিভাগের রঙের ছোট বাঁ-দাগ: স্ক্যান করার সময় চোখ বিভাগ ধরতে পারে */
.row { border-left: 3px solid color-mix(in srgb, var(--c) 70%, transparent); padding-left: 10px; }

/* ---------- এইমাত্র: পালা করে সদ্য ছাপা শিরোনাম ---------- */
.ticker { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c-video); min-height: 64px; }
.ticker[hidden] { display: none; }
.tk-lbl { display: inline-flex; align-items: center; gap: 7px; flex: none; font-family: var(--head); font-weight: 700; font-size: .8rem; color: var(--c-video); padding-right: 10px; border-right: 1px solid var(--line); }
.tk-lbl .live { background: var(--c-video); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-video) 25%, transparent); animation: tk-pulse 1.6s ease-in-out infinite; }
@keyframes tk-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-video) 0%, transparent); } }
.tk-view { flex: 1; min-width: 0; }
.tk-item.on { animation: tk-in .35s ease both; }
@keyframes tk-in { from { opacity: 0; transform: translateY(6px); } }
.tk-a { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.tk-t { font-family: var(--head); font-weight: 600; font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-t { color: var(--c-video); }
.tk-a:hover .tk-t, .tk-a:focus-visible .tk-t { text-decoration: underline; text-underline-offset: 3px; }
.tk-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .72rem; color: var(--muted); }
.tk-time { font-weight: 600; color: var(--c-sports); }   /* কমলা; --sun সাদা জমিনে পড়তে কষ্ট (কনট্রাস্ট কম) */
.tk-src { font-family: var(--head); font-weight: 700; color: var(--sc, var(--muted)); }
.tk-src::before { content: "·"; margin-right: 8px; color: var(--faint); font-weight: 400; }
.tk-n { font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 0 8px; border-radius: 99px; }
.tk-ctl { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.tk-b { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.tk-b:hover { background: var(--chip); color: var(--text); }
.tk-pos { font-size: .7rem; color: var(--faint); min-width: 2.4em; text-align: center; }
@media (max-width: 759px) {
  .ticker { flex-wrap: wrap; gap: 4px 8px; padding: 8px 6px 6px 12px; }
  .tk-lbl { border-right: 0; padding-right: 0; }
  .tk-ctl { margin-left: auto; order: 2; }
  .tk-view { flex-basis: 100%; order: 3; min-height: 3.6em; }
  .tk-lbl { order: 1; }
}
@media (prefers-reduced-motion: reduce) { .tk-item.on, .tk-lbl .live { animation: none; } }

/* ---------- এইমাত্র-সময়রেখা: বড় পর্দায় ডান কলাম, ছোট পর্দায় পট্টির নিচে খোলে ---------- */
.live-col { display: none; }
.live-col[hidden], .lv-box[hidden] { display: none !important; }
.lv-box { margin: -6px 0 16px; padding: 4px 14px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c-video); }
.tk-all { width: auto; padding: 0 10px; border-radius: 99px; font-family: var(--head); font-size: .74rem; font-weight: 700; color: var(--c-video); gap: 2px; display: inline-flex; align-items: center; }
.tk-all svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.tk-all[aria-expanded="true"] svg { transform: rotate(180deg); }
.lv-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--head); font-weight: 800; font-size: 1rem; color: var(--c-video); }
.lv-h .live { background: var(--c-video); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-video) 25%, transparent); animation: tk-pulse 1.6s ease-in-out infinite; }
.lv-h small { font-weight: 400; font-size: .72rem; color: var(--faint); font-family: var(--body); }
.lv-f { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.lv-f button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 2px 11px; font-size: .74rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .15s, border-color .15s, color .15s; }
.lv-f button:hover { border-color: var(--c-video); color: var(--c-video); }
.lv-f button b { font-size: .68rem; min-width: 1.5em; padding: 0 5px; border-radius: 99px; text-align: center; color: var(--c-video); background: color-mix(in srgb, var(--c-video) 12%, transparent); }
.lv-f button.lv-f-rise.has { border-color: color-mix(in srgb, var(--c-video) 45%, var(--line)); color: var(--c-video); font-weight: 700; }
.lv-f button.lv-f-rise.has b { color: #fff; background: linear-gradient(135deg, #d9480f, #c8372d); }
.lv-f button[aria-pressed="true"] { background: var(--c-video); border-color: var(--c-video); color: #fff; font-weight: 700; }
.lv-f button[aria-pressed="true"] b { color: var(--c-video); background: #fff; }

/* সময়রেখা: বাঁয়ে সময়, মাঝে খাড়া রেখা ও বিন্দু, ডানে খবর */
.lv-l { list-style: none; margin: 0; padding: 4px 0 0; --tc: 58px; --tg: 20px; }
.lv-i { position: relative; display: grid; grid-template-columns: var(--tc) minmax(0, 1fr); gap: var(--tg); padding: 10px 0; }
.lv-i::before { content: ""; position: absolute; left: calc(var(--tc) + var(--tg) / 2 - 1px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.lv-i:first-child::before { top: 20px; }
.lv-i:last-child::before { bottom: auto; height: 20px; }
.lv-i:only-child::before { display: none; }
.lv-i::after { content: ""; position: absolute; left: calc(var(--tc) + var(--tg) / 2 - 5px); top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid color-mix(in srgb, var(--c-video) 45%, var(--line)); box-sizing: border-box; }
.lv-i.urg::after { background: var(--c-video); border-color: var(--c-video); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-video) 22%, transparent); animation: lv-ring 1.8s ease-in-out infinite; }
.lv-i.rise::after { width: 14px; height: 14px; left: calc(var(--tc) + var(--tg) / 2 - 7px); top: 13px; background: linear-gradient(135deg, #f08c00, #c8372d); border: 0; }
@keyframes lv-ring { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-video) 0%, transparent); } }
.lv-i.in { animation: lv-in .6s ease both; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-8px); } }
.lv-t { padding-top: 10px; line-height: 1.3; text-align: right; }
.lv-t .lv-ago { font-size: .72rem; color: var(--faint); font-weight: 600; }
.lv-i.hot .lv-t .lv-ago { color: var(--c-video); font-weight: 800; }
.lv-b { min-width: 0; padding: 6px 0; }
/* এইমাত্র-এর সব শিরোনাম লাল, মোটা অক্ষরে */
.lv-a { display: block; font-family: var(--head); font-weight: 700; font-size: .92rem; line-height: 1.5; color: var(--c-video); }
@media (hover: hover) { .lv-a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } }
/* দ্রুত বাড়ছে: হালকা লাল কার্ড ও শিরোনামের উপরে কমলা-লাল পতাকা */
.lv-i.rise .lv-b { padding: 8px 10px 9px; border-radius: 12px; background: linear-gradient(100deg, color-mix(in srgb, #f08c00 12%, var(--surface)), color-mix(in srgb, var(--c-video) 5%, var(--surface))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-video) 22%, transparent); }
.lv-flag { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 2px 5px; margin-bottom: 5px; padding: 2px 10px 2px 7px; border-radius: 99px; font-family: var(--head); font-size: .72rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #d9480f, #c8372d); box-shadow: 0 2px 10px color-mix(in srgb, #c8372d 35%, transparent); animation: lv-glow 2s ease-in-out infinite; }
.lv-flag small { white-space: nowrap; font-weight: 600; font-size: .66rem; opacity: .9; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .45); }
.lv-flag-ic svg { display: block; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes lv-glow { 50% { box-shadow: 0 2px 16px color-mix(in srgb, #c8372d 60%, transparent); } }
.lv-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: .72rem; }
.lv-m .s { font-family: var(--head); font-weight: 700; color: var(--c); }
.lv-n { border: 0; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .7rem; padding: 0 8px; border-radius: 99px; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.lv-n svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.lv-n[aria-expanded="true"] svg { transform: rotate(180deg); }
.lv-one { color: #8a5a00; background: #fff3d6; padding: 0 7px; border-radius: 99px; font-weight: 600; }
.lv-new { color: #fff; background: var(--c-video); padding: 0 7px; border-radius: 99px; font-weight: 700; }
.lv-src { list-style: none; margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--chip); font-size: .74rem; }
.lv-src li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 4px 0; align-items: baseline; border-top: 1px dashed var(--line); }
.lv-src li:first-child { border-top: 0; }
.lv-st { color: var(--faint); white-space: nowrap; font-size: .7rem; }
.lv-src a { font-weight: 700; font-size: .8rem; overflow-wrap: anywhere; }   /* নাম কাটা যায় না, দরকারে পরের লাইনে যায় */
.lv-src a:hover { text-decoration: underline; }
.lv-first { color: var(--brand); }
.lv-gap { color: var(--muted); font-size: .7rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-empty { margin: 12px 0; font-size: .8rem; color: var(--muted); }
.lv-more { display: block; width: 100%; margin-top: 6px; border: 1px dashed var(--line); background: none; border-radius: 10px; padding: 6px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.lv-more:hover { border-color: var(--c-video); color: var(--c-video); }
@media (min-width: 1360px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 28px; }
  .live-col { display: block; position: sticky; top: calc(var(--head-h, 110px) + 12px); align-self: start; max-height: calc(100vh - var(--head-h, 110px) - 24px); overflow-y: auto; scrollbar-width: thin; margin-top: 14px; padding: 14px 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  .ticker, .lv-box { display: none !important; }   /* ডান কলামেই সব আছে */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv-one { color: #f2c063; background: #33290f; } }
:root[data-theme="dark"] .lv-one { color: #f2c063; background: #33290f; }
@media (prefers-reduced-motion: reduce) { .lv-i.in, .lv-h .live, .lv-i.urg::after, .lv-flag { animation: none; } }

/* আঙুলে চাপার মাপ: টাচ-পর্দায় বোতাম অন্তত ৩৬–৪০px */
@media (hover: none) {
  .tk-b { width: 40px; height: 40px; }
  .tk-all { width: auto; min-height: 40px; padding: 0 12px; }
  .lv-f button { min-height: 36px; padding: 0 14px; font-size: .8rem; }
  .lv-n { min-height: 32px; padding: 0 12px; font-size: .74rem; }
  .lv-src li { padding: 7px 0; }
  .lv-src a { padding: 4px 0; }
  .lv-more { min-height: 44px; }
}
@media (max-width: 380px) { .lv-l { --tc: 50px; --tg: 16px; } }
