:root {
  --wine: #421126;
  --wine-deep: #2d0b1b;
  --rose: #d94f83;
  --rose-dark: #b83c6b;
  --cream: #fff7f0;
  --paper: #ffffff;
  --ink: #351d29;
  --muted: #866c78;
  --line: #f0d9df;
  --soft-rose: #fff0f4;
  --max: 1180px;
  --radius: 24px;
  --sans: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --head: "Tiro Bangla", "Noto Serif Bengali", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}
img, iframe, video, audio { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  color: #fff;
  background: var(--wine);
  box-shadow: 0 8px 24px rgba(66, 17, 38, .16);
}
.top-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo { display: grid; flex: 0 0 auto; line-height: 1.05; }
.logo .hearts {
  color: #fff;
  font-family: var(--head);
  font-size: 28px;
  font-weight: 600;
}
.logo small {
  margin-top: 5px;
  color: #e9b9c9;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border-radius: 999px;
  color: #f5dce5;
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover, .nav a.on { color: #fff; background: rgba(255,255,255,.13); }
.nav a.on { color: #ffc0d5; }
.searchbox {
  display: flex;
  flex: 0 0 168px;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.searchbox input {
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}
.searchbox button { padding: 8px 12px; color: var(--rose); background: transparent; border: 0; cursor: pointer; }
.social-row.compact { flex: 0 0 auto; gap: 5px; }
.social-row.compact .social-btn { padding: 6px 8px; }

/* Homepage hero and category rail */
.mayabi-home .hero {
  width: min(var(--max), calc(100% - 40px));
  min-height: 355px;
  margin: 22px auto 0;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  background-color: var(--wine-deep);
  box-shadow: 0 18px 38px rgba(66,17,38,.14);
}
.mayabi-home .hero::after {
  background: linear-gradient(90deg, rgba(45,11,27,.86), rgba(45,11,27,.36) 57%, rgba(45,11,27,.08)), linear-gradient(0deg, rgba(45,11,27,.42), transparent 58%);
}
.mayabi-home .hero-inner {
  width: min(100% - 72px, var(--max));
  min-height: 355px;
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  align-content: center;
  max-width: none;
}
.hero .script { margin: 0 0 10px; color: #f5b6ca; font-size: 13px; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; }
.hero h1 { margin: 0 0 6px; color: #fff; font-family: var(--head); font-size: clamp(42px, 5vw, 56px); line-height: 1.12; }
.hero h1 span { color: #f39ab8; }
.hero h2 { margin: 0 0 12px; color: #ffd4e1; font-family: var(--head); font-size: clamp(22px, 3vw, 32px); font-weight: 400; }
.hero p { max-width: 500px; color: #f7dce5; }
.hero-quote { right: max(28px, calc((100% - var(--max)) / 2)); color: #fff; }
.pink-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; color: #fff; background: var(--rose); border-radius: 999px; box-shadow: 0 10px 20px rgba(217,79,131,.25); }
.pink-btn:hover { background: var(--rose-dark); }
.catbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 34px;
}
.cat-chip {
  min-width: 0;
  padding: 17px 10px 15px;
  text-align: center;
  background: linear-gradient(145deg, #fff, #f9e7ed);
  border: 1px solid #f5e0e5;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(66,17,38,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-chip:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(66,17,38,.11); }
.cat-chip .ico { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 8px; color: var(--rose); background: #ffe8ef; border-radius: 50%; }
.cat-chip strong { display: block; color: var(--wine); font-size: 15px; }
.cat-chip small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.feelings-intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 30px; }
.feelings-intro h2 { margin: 0; color: var(--wine); font-size: 24px; line-height: 1.4; }
.feelings-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.feelings-intro > a { flex: 0 0 auto; color: var(--rose-dark); font-size: 13px; }
.mayabi-home .catbar { margin-top: 16px; }

/* Main content and cards */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; padding: 8px 0 56px; }
.mayabi-home .layout { display: block; }
.mayabi-home .side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; color: var(--wine); font-family: var(--head); font-size: 25px; font-weight: 400; }
.section-head a { flex: 0 0 auto; color: var(--rose-dark); font-size: 14px; }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid #f2dfe4; border-radius: 20px; box-shadow: 0 10px 24px rgba(66,17,38,.055); }
.post-media { display: block; background: #fcf0f3; line-height: 0; }
.post-media img { display: block; width: 100%; height: 220px; object-fit: contain; object-position: center; background: #fbf4f1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 9px 13px 8px; color: var(--muted); font-size: 12px; }
.meta-btn { padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; font-size: inherit; }
.like-btn.on, .meta-btn:hover { color: var(--rose-dark); }
.verse-box { position: relative; margin: 0 11px 13px; padding: 15px 15px 17px; background: linear-gradient(145deg, #fff9f6, #fff0f4); border: 1px solid #f3d2dc; border-radius: 17px; }
.verse-box::before { position: absolute; top: 8px; left: 12px; color: #e89ab3; content: "✿"; opacity: .75; }
.verse-box::after { position: absolute; right: 12px; bottom: 8px; color: #e89ab3; content: "❀"; opacity: .65; }
.verse-badge { display: inline-block; margin: 0 0 7px; padding: 3px 10px; color: #fff; background: var(--rose); border-radius: 999px; font-size: 11px; }
.verse-title { margin: 0 0 7px; color: var(--wine); font-family: var(--head); font-size: 19px; font-weight: 400; line-height: 1.45; }
.verse-text { margin: 0; color: #593845; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.cmt-box { padding: 11px 13px 13px; background: #fffafd; border-top: 1px solid #f5e4e8; }
.cmt-item { margin-bottom: 8px; }
.cmt-item strong { color: var(--rose-dark); font-size: 13px; }
.cmt-item p, .cmt-empty { color: var(--muted); font-size: 13px; }
.cmt-form { display: grid; gap: 8px; }
.cmt-form input, .cmt-form textarea, .news-form input { border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fff; }
.cmt-form button, .news-form button { border: 0; border-radius: 999px; color: #fff; background: var(--rose); cursor: pointer; }

/* Sidebar: normal article pages retain a two-column layout */
.side { display: flex; flex-direction: column; gap: 17px; }
.panel, .comments-panel { padding: 18px; background: var(--paper); border: 1px solid #f2dfe4; border-radius: 20px; box-shadow: 0 10px 24px rgba(66,17,38,.05); }
.panel h3, .comments-panel h3 { margin: 0 0 11px; color: var(--wine); font-family: var(--head); font-size: 19px; font-weight: 400; }
.cat-row { display: flex; justify-content: space-between; padding: 9px 4px; color: #603e4c; border-bottom: 1px solid #f7e8eb; }
.cat-row:last-child { border-bottom: 0; }
.quote-card { min-height: 235px; padding: 25px 20px; border-radius: 20px; background-color: var(--wine); box-shadow: inset 0 0 0 2000px rgba(45,11,27,.38); }
.quote-card p { color: #fff7f1; font-family: var(--head); font-size: 18px; }
.news p { color: var(--muted); font-size: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input { min-width: 0; flex: 1; padding: 9px 12px; }
.news-form button { padding: 9px 13px; white-space: nowrap; }

/* Other public pages and full-photo watch view */
.page-hero { color: #fff; background: linear-gradient(90deg, var(--wine), #7b3153); }
.watch-frame { width: 100%; max-width: 560px; margin: 0 auto 14px; overflow: visible; background: #160910; border-radius: 20px; }
.watch-frame .full-photo { display: block; width: 100%; border: 0; border-radius: 20px; background: #160910; cursor: zoom-in; }
.watch-frame img, .watch-frame .full-photo img { display: block !important; width: 100% !important; height: auto !important; max-width: 560px !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; margin: 0 auto !important; border: 0; background: #160910; }
.watch-verse .verse-title, .watch-verse h1 { color: var(--wine); font-family: var(--head); font-weight: 400; }
.engage { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 10px 0 16px; }
.lightbox img { width: auto !important; height: auto !important; max-width: min(720px, 92vw) !important; max-height: 88vh !important; object-fit: contain !important; }

/* Existing generated footer, kept simple and wine-forward */
.foot { margin-top: 16px; color: #f7dce5; background: var(--wine); }
.foot-inner { width: min(var(--max), calc(100% - 40px)); min-height: 145px; margin-inline: auto; padding: 28px 0 12px; display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 18px; align-items: center; }
.foot-tag { margin: 0; text-align: center; color: #ffe6ed; font-family: var(--head); font-size: 18px; }
.foot .social-row { justify-content: center; }
.copy { margin: 0; padding: 9px 20px 18px; color: #eabaca; border-top-color: rgba(255,255,255,.12); }

@media (max-width: 1040px) {
  .top-inner { gap: 12px; }
  .nav { justify-content: flex-start; }
  .searchbox { flex-basis: 145px; }
  .catbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mayabi-home .layout { display: block; }
  .mayabi-home .side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
  .mayabi-home .side > * { min-width: 0; }
  .foot-inner { grid-template-columns: 1fr 1.3fr 1fr; }
  .foot-inner .bye { display: none; }
}

@media (max-width: 700px) {
  .wrap, .top-inner, .foot-inner { width: min(100% - 28px, var(--max)); }
  .top-inner { min-height: 70px; flex-wrap: wrap; gap: 7px 10px; padding: 9px 0; }
  .logo { order: 1; }
  .searchbox { order: 2; flex: 1 1 130px; min-width: 0; }
  .top .social-row.compact { display: none; }
  .nav { order: 4; flex-basis: 100%; justify-content: flex-start; margin: 1px -2px -3px; }
  .nav a { padding: 6px 9px; font-size: 13px; }
  .mayabi-home .hero { width: calc(100% - 28px); min-height: 325px; margin-top: 14px; border-radius: 20px; }
  .mayabi-home .hero-inner { width: calc(100% - 36px); min-height: 325px; padding: 32px 0; }
  .hero h1 { font-size: 46px; }
  .hero h2 { font-size: 23px; }
  .hero-quote { display: none; }
  .feelings-intro { margin-top: 24px; gap: 10px; }
  .feelings-intro h2 { font-size: 20px; }
  .feelings-intro > a { font-size: 11px; }
  .catbar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px auto 27px; }
  .cat-chip { padding: 13px 7px 12px; border-radius: 17px; }
  .cat-chip .ico { width: 36px; height: 36px; }
  .layout { display: block; padding-bottom: 40px; }
  .section-head { align-items: center; margin-bottom: 13px; }
  .section-head h2 { font-size: 21px; line-height: 1.35; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .post { border-radius: 16px; }
  .post-media img { height: 150px; }
  .meta { gap: 8px; padding: 8px 9px; font-size: 11px; }
  .verse-box { margin: 0 7px 9px; padding: 12px 11px 14px; border-radius: 14px; }
  .verse-title { font-size: 16px; }
  .verse-text { font-size: 13px; }
  .mayabi-home .side { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 24px; }
  .side { margin-top: 24px; }
  .watch-frame, .watch-frame img, .watch-frame .full-photo img { max-width: 420px !important; }
  .watch-verse .verse-title, .watch-verse h1 { font-size: 27px; }
  .watch-verse .verse-text { font-size: 17px; }
  .foot-inner { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .foot-inner > div:first-child, .foot-tag, .foot .social-row { justify-self: center; }
  .socials, .bye { text-align: center; }
}

@media (max-width: 375px) {
  .wrap, .top-inner, .foot-inner { width: calc(100% - 24px); }
  .mayabi-home .hero { width: calc(100% - 24px); }
  .logo .hearts { font-size: 24px; }
  .searchbox { flex-basis: 112px; }
  .social-row.compact .social-btn { padding-inline: 6px; }
  .cat-chip strong { font-size: 14px; }
  .post-media img { height: 132px; }
  .meta { gap: 6px; font-size: 10px; }
}

/* Compact hero CTA, matching the reference rather than grid stretching. */
.hero .pink-btn { justify-self: start; width: auto; }
